ui-ingredients 0.22.0 → 0.22.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/accordion/accordion-item.svelte +1 -1
- package/dist/accordion/accordion-root.svelte +1 -1
- package/dist/alert-dialog/alert-dialog-root.svelte +1 -1
- package/dist/angle-slider/angle-slider-marker.svelte +1 -1
- package/dist/angle-slider/angle-slider-root.svelte +1 -1
- package/dist/avatar/avatar-root.svelte +1 -1
- package/dist/breadcrumbs/breadcrumbs-link.svelte +1 -1
- package/dist/carousel/carousel-indicator.svelte +1 -1
- package/dist/carousel/carousel-item.svelte +1 -1
- package/dist/carousel/carousel-root.svelte +1 -1
- package/dist/checkbox/checkbox-root.svelte +1 -1
- package/dist/clipboard/clipboard-root.svelte +1 -1
- package/dist/collapsible/collapsible-root.svelte +1 -1
- package/dist/color-picker/color-picker-root.svelte +1 -1
- package/dist/combobox/combobox-item.svelte +1 -1
- package/dist/combobox/combobox-root.svelte +1 -1
- package/dist/combobox/combobox-trigger.svelte +1 -1
- package/dist/create-split-props.d.ts +19 -0
- package/dist/create-split-props.js +37 -0
- package/dist/date-picker/date-picker-day-table-cell.svelte +1 -1
- package/dist/date-picker/date-picker-month-table-cell.svelte +1 -1
- package/dist/date-picker/date-picker-root.svelte +1 -1
- package/dist/date-picker/date-picker-year-table-cell.svelte +1 -1
- package/dist/dialog/dialog-root.svelte +1 -1
- package/dist/drawer/drawer-root.svelte +1 -1
- package/dist/editable/editable-root.svelte +1 -1
- package/dist/field/field-root.svelte +1 -1
- package/dist/file-upload/file-upload-item.svelte +1 -1
- package/dist/file-upload/file-upload-root.svelte +1 -1
- package/dist/floating-panel/floating-panel-resize-trigger.svelte +1 -1
- package/dist/floating-panel/floating-panel-root.svelte +1 -1
- package/dist/highlight/highlight.svelte +1 -1
- package/dist/hover-card/hover-card-root.svelte +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/menu/menu-item.svelte +1 -1
- package/dist/menu/menu-option-item.svelte +1 -1
- package/dist/menu/menu-root.svelte +1 -1
- package/dist/number-input/number-input-root.svelte +1 -1
- package/dist/pagination/pagination-root.svelte +1 -1
- package/dist/pin-input/pin-input-root.svelte +1 -1
- package/dist/popover/popover-root.svelte +1 -1
- package/dist/portal/portal.svelte +1 -1
- package/dist/presence/presence.svelte +1 -1
- package/dist/progress/progress-root.svelte +1 -1
- package/dist/qr-code/qr-code-root.svelte +1 -1
- package/dist/radio-group/radio-group-item.svelte +1 -1
- package/dist/radio-group/radio-group-root.svelte +1 -1
- package/dist/rating-group/rating-group-root.svelte +1 -1
- package/dist/segment-group/segment-group-item.svelte +1 -1
- package/dist/segment-group/segment-group-root.svelte +1 -1
- package/dist/select/select-item.svelte +1 -1
- package/dist/select/select-root.svelte +1 -1
- package/dist/signature-pad/signature-pad-root.svelte +1 -1
- package/dist/slider/slider-root.svelte +1 -1
- package/dist/slider/slider-thumb.svelte +1 -1
- package/dist/splitter/splitter-panel.svelte +1 -1
- package/dist/splitter/splitter-resize-trigger.svelte +1 -1
- package/dist/splitter/splitter-root.svelte +1 -1
- package/dist/steps/steps-item.svelte +1 -1
- package/dist/steps/steps-root.svelte +1 -1
- package/dist/switch/switch-root.svelte +1 -1
- package/dist/tabs/tabs-content.svelte +1 -1
- package/dist/tabs/tabs-root.svelte +1 -1
- package/dist/tabs/tabs-trigger.svelte +1 -1
- package/dist/tags-input/tags-input-item.svelte +1 -1
- package/dist/tags-input/tags-input-root.svelte +1 -1
- package/dist/time-picker/time-picker-root.svelte +1 -1
- package/dist/timer/timer-item.svelte +1 -1
- package/dist/timer/timer-root.svelte +1 -1
- package/dist/toggle/toggle-root.svelte +1 -1
- package/dist/toggle-group/toggle-group-item.svelte +1 -1
- package/dist/toggle-group/toggle-group-root.svelte +1 -1
- package/dist/tooltip/tooltip-root.svelte +1 -1
- package/dist/tour/tour-root.svelte +1 -1
- package/dist/tree-view/tree-view-branch.svelte +1 -1
- package/dist/tree-view/tree-view-item.svelte +1 -1
- package/dist/tree-view/tree-view-root.svelte +1 -1
- package/package.json +4 -4
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getAccordionContext,
|
17
17
|
setAccordionItemPropsContext,
|
@@ -15,10 +15,10 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {setPresenceStrategyPropsContext} from '../presence/presence-context.svelte.js';
|
20
21
|
import {reflect} from '@zag-js/svelte';
|
21
|
-
import {createSplitProps} from '@zag-js/utils';
|
22
22
|
import {setAccordionContext} from './accordion-context.svelte.js';
|
23
23
|
import {createAccordion} from './create-accordion.svelte.js';
|
24
24
|
|
@@ -14,13 +14,13 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {
|
19
20
|
setPresenceContext,
|
20
21
|
setPresenceStrategyPropsContext,
|
21
22
|
} from '../presence/presence-context.svelte.js';
|
22
23
|
import {reflect} from '@zag-js/svelte';
|
23
|
-
import {createSplitProps} from '@zag-js/utils';
|
24
24
|
import {setAlertDialogContext} from './alert-dialog-context.svelte.js';
|
25
25
|
import {createAlertDialog} from './create-alert-dialog.svelte.js';
|
26
26
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
|
+
import {createSplitProps} from '../create-split-props.js';
|
10
11
|
import {mergeProps} from '../merge-props.js';
|
11
|
-
import {createSplitProps} from '@zag-js/utils';
|
12
12
|
import {getAngleSliderContext} from './angle-slider-context.svelte.js';
|
13
13
|
|
14
14
|
let {
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {setAngleSliderContext} from './angle-slider-context.svelte.js';
|
20
20
|
import {createAngleSlider} from './create-angle-slider.svelte.js';
|
21
21
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {setAvatarContext} from './avatar-context.svelte.js';
|
20
20
|
import {createAvatar} from './create-avatar.svelte.js';
|
21
21
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
|
+
import {createSplitProps} from '../create-split-props.js';
|
10
11
|
import {mergeProps} from '../merge-props.js';
|
11
|
-
import {createSplitProps} from '@zag-js/utils';
|
12
12
|
import {getBreadcrumbsContext} from './breadcrumbs-context.svelte.js';
|
13
13
|
|
14
14
|
let {ref, asChild, children, ...props}: BreadcrumbsLinkProps = $props();
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {getCarouselContext} from './carousel-context.svelte.js';
|
16
16
|
|
17
17
|
let {
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {getCarouselContext} from './carousel-context.svelte.js';
|
16
16
|
|
17
17
|
let {
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {setCarouselContext} from './carousel-context.svelte.js';
|
20
20
|
import {createCarousel} from './create-carousel.svelte.js';
|
21
21
|
|
@@ -13,8 +13,8 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
|
-
import {createSplitProps} from '@zag-js/utils';
|
18
18
|
import {setCheckboxContext} from './checkbox-context.svelte.js';
|
19
19
|
import {createCheckbox} from './create-checkbox.svelte.js';
|
20
20
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {setClipboardContext} from './clipboard-context.svelte.js';
|
20
20
|
import {createClipboard} from './create-clipboard.svelte.js';
|
21
21
|
|
@@ -18,10 +18,10 @@
|
|
18
18
|
</script>
|
19
19
|
|
20
20
|
<script lang="ts">
|
21
|
+
import {createSplitProps} from '../create-split-props.js';
|
21
22
|
import {mergeProps} from '../merge-props.js';
|
22
23
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
23
24
|
import {reflect} from '@zag-js/svelte';
|
24
|
-
import {createSplitProps} from '@zag-js/utils';
|
25
25
|
import {setCollapsibleContext} from './collapsible-context.svelte.js';
|
26
26
|
import {createCollapsible} from './create-collapsible.svelte.js';
|
27
27
|
|
@@ -15,11 +15,11 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
20
21
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
21
22
|
import {reflect} from '@zag-js/svelte';
|
22
|
-
import {createSplitProps} from '@zag-js/utils';
|
23
23
|
import {setColorPickerContext} from './color-picker-context.svelte.js';
|
24
24
|
import {createColorPicker} from './create-color-picker.svelte.js';
|
25
25
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getComboboxContext,
|
17
17
|
setComboboxItemPropsContext,
|
@@ -15,11 +15,11 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
20
21
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
21
22
|
import {reflect} from '@zag-js/svelte';
|
22
|
-
import {createSplitProps} from '@zag-js/utils';
|
23
23
|
import {setComboboxContext} from './combobox-context.svelte.js';
|
24
24
|
import {createCombobox} from './create-combobox.svelte.js';
|
25
25
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import type {TriggerProps} from '@zag-js/combobox';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {getComboboxContext} from './combobox-context.svelte.js';
|
16
16
|
|
17
17
|
let {
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { GenericObject } from './types.js';
|
2
|
+
/**
|
3
|
+
* @example
|
4
|
+
* ```ts
|
5
|
+
* const props = {
|
6
|
+
* a: 1,
|
7
|
+
* b: 2,
|
8
|
+
* c: 3,
|
9
|
+
* d: 4,
|
10
|
+
* e: 5
|
11
|
+
* };
|
12
|
+
*
|
13
|
+
* const [i, j] = splitProps(['a', 'b'])(props);
|
14
|
+
*
|
15
|
+
* console.log(i); // {a: 1, b: 2}
|
16
|
+
* console.log(j); // {c: 3, d: 4, e: 5}
|
17
|
+
* ```
|
18
|
+
*/
|
19
|
+
export declare function createSplitProps<T extends GenericObject>(keys: (keyof T)[]): <Props extends T>(props: Props) => [T, Omit<Props, keyof T>];
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/* Credits to https://github.com/chakra-ui/zag/blob/main/packages/utilities/core/src/split-props.ts */
|
2
|
+
function splitProps(props, keys) {
|
3
|
+
const rest = {};
|
4
|
+
const result = {};
|
5
|
+
const keySet = new Set(keys);
|
6
|
+
for (const key in props) {
|
7
|
+
if (keySet.has(key)) {
|
8
|
+
result[key] = props[key];
|
9
|
+
}
|
10
|
+
else {
|
11
|
+
rest[key] = props[key];
|
12
|
+
}
|
13
|
+
}
|
14
|
+
return [result, rest];
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @example
|
18
|
+
* ```ts
|
19
|
+
* const props = {
|
20
|
+
* a: 1,
|
21
|
+
* b: 2,
|
22
|
+
* c: 3,
|
23
|
+
* d: 4,
|
24
|
+
* e: 5
|
25
|
+
* };
|
26
|
+
*
|
27
|
+
* const [i, j] = splitProps(['a', 'b'])(props);
|
28
|
+
*
|
29
|
+
* console.log(i); // {a: 1, b: 2}
|
30
|
+
* console.log(j); // {c: 3, d: 4, e: 5}
|
31
|
+
* ```
|
32
|
+
*/
|
33
|
+
export function createSplitProps(keys) {
|
34
|
+
return function split(props) {
|
35
|
+
return splitProps(props, keys);
|
36
|
+
};
|
37
|
+
}
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getDatePickerContext,
|
17
17
|
setDatePickerDayTableCellPropsContext,
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getDatePickerContext,
|
17
17
|
setDatePickerTableCellPropsContext,
|
@@ -15,11 +15,11 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
20
21
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
21
22
|
import {reflect} from '@zag-js/svelte';
|
22
|
-
import {createSplitProps} from '@zag-js/utils';
|
23
23
|
import {createDatePicker} from './create-date-picker.svelte.js';
|
24
24
|
import {setDatePickerContext} from './date-picker-context.svelte.js';
|
25
25
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getDatePickerContext,
|
17
17
|
setDatePickerTableCellPropsContext,
|
@@ -14,13 +14,13 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {
|
19
20
|
setPresenceContext,
|
20
21
|
setPresenceStrategyPropsContext,
|
21
22
|
} from '../presence/presence-context.svelte.js';
|
22
23
|
import {reflect} from '@zag-js/svelte';
|
23
|
-
import {createSplitProps} from '@zag-js/utils';
|
24
24
|
import {createDialog} from './create-dialog.svelte.js';
|
25
25
|
import {setDialogContext} from './dialog-context.svelte.js';
|
26
26
|
|
@@ -14,13 +14,13 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {
|
19
20
|
setPresenceContext,
|
20
21
|
setPresenceStrategyPropsContext,
|
21
22
|
} from '../presence/presence-context.svelte.js';
|
22
23
|
import {reflect} from '@zag-js/svelte';
|
23
|
-
import {createSplitProps} from '@zag-js/utils';
|
24
24
|
import {createDrawer} from './create-drawer.svelte.js';
|
25
25
|
import {setDrawerContext} from './drawer-context.svelte.js';
|
26
26
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createEditable} from './create-editable.svelte.js';
|
20
20
|
import {setEditableContext} from './editable-context.svelte.js';
|
21
21
|
|
@@ -14,11 +14,11 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {mergeProps} from '../merge-props.js';
|
18
19
|
import type {PresenceStrategyProps} from '../presence/create-presence.svelte.js';
|
19
20
|
import {setPresenceStrategyPropsContext} from '../presence/presence-context.svelte.js';
|
20
21
|
import {reflect} from '@zag-js/svelte';
|
21
|
-
import {createSplitProps} from '@zag-js/utils';
|
22
22
|
import {createField} from './create-field.svelte.js';
|
23
23
|
import {setFieldContext} from './field-context.svelte.js';
|
24
24
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
|
+
import {createSplitProps} from '../create-split-props.js';
|
10
11
|
import {mergeProps} from '../merge-props.js';
|
11
|
-
import {createSplitProps} from '@zag-js/utils';
|
12
12
|
import {
|
13
13
|
getFileUploadContext,
|
14
14
|
setFileUploadItemPropsContext,
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createFileUpload} from './create-file-upload.svelte.js';
|
20
20
|
import {setFileUploadContext} from './file-upload-context.svelte.js';
|
21
21
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {getFloatingPanelContext} from './floating-panel-context.svelte.js';
|
16
16
|
|
17
17
|
let {
|
@@ -14,10 +14,10 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
19
20
|
import {reflect} from '@zag-js/svelte';
|
20
|
-
import {createSplitProps} from '@zag-js/utils';
|
21
21
|
import {createFloatingPanel} from './create-floating-panel.svelte.js';
|
22
22
|
import {setFloatingPanelContext} from './floating-panel-context.svelte.js';
|
23
23
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {highlightWord} from '@zag-js/highlight-word';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
|
16
16
|
let {ref = $bindable(null), asChild, ...props}: HighlightProps = $props();
|
17
17
|
|
@@ -14,10 +14,10 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
19
20
|
import {reflect} from '@zag-js/svelte';
|
20
|
-
import {createSplitProps} from '@zag-js/utils';
|
21
21
|
import {createHoverCard} from './create-hover-card.svelte.js';
|
22
22
|
import {setHoverCardContext} from './hover-card-context.svelte.js';
|
23
23
|
|
package/dist/index.d.ts
CHANGED
@@ -50,6 +50,7 @@ export * from './tooltip/index.js';
|
|
50
50
|
export * from './tour/index.js';
|
51
51
|
export * from './tree-view/index.js';
|
52
52
|
export * from './create-context.svelte.js';
|
53
|
+
export * from './create-split-props.js';
|
53
54
|
export * from './create-unique-id.js';
|
54
55
|
export * from './merge-props.js';
|
55
56
|
export * from '@zag-js/anatomy';
|
package/dist/index.js
CHANGED
@@ -50,6 +50,7 @@ export * from './tooltip/index.js';
|
|
50
50
|
export * from './tour/index.js';
|
51
51
|
export * from './tree-view/index.js';
|
52
52
|
export * from './create-context.svelte.js';
|
53
|
+
export * from './create-split-props.js';
|
53
54
|
export * from './create-unique-id.js';
|
54
55
|
export * from './merge-props.js';
|
55
56
|
export * from '@zag-js/anatomy';
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {getMenuContext} from './menu-context.svelte.js';
|
16
16
|
|
17
17
|
let {
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getMenuContext,
|
17
17
|
setMenuOptionItemPropsContext,
|
@@ -14,10 +14,10 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
19
20
|
import {reflect} from '@zag-js/svelte';
|
20
|
-
import {createSplitProps} from '@zag-js/utils';
|
21
21
|
import {createMenu} from './create-menu.svelte.js';
|
22
22
|
import {
|
23
23
|
getMenuContext,
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createNumberInput} from './create-number-input.svelte.js';
|
20
20
|
import {setNumberInputContext} from './number-input-context.svelte.js';
|
21
21
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createPagination} from './create-pagination.svelte.js';
|
20
20
|
import {setPaginationContext} from './pagination-context.svelte.js';
|
21
21
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createPinInputContext} from './create-pin-input.svelte.js';
|
20
20
|
import {setPinInputContext} from './pin-input-context.svelte.js';
|
21
21
|
|
@@ -14,10 +14,10 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
19
20
|
import {reflect} from '@zag-js/svelte';
|
20
|
-
import {createSplitProps} from '@zag-js/utils';
|
21
21
|
import {createPopover} from './create-popover.svelte.js';
|
22
22
|
import {setPopoverContext} from './popover-context.svelte.js';
|
23
23
|
|
@@ -12,9 +12,9 @@
|
|
12
12
|
</script>
|
13
13
|
|
14
14
|
<script lang="ts">
|
15
|
+
import {createSplitProps} from '../create-split-props.js';
|
15
16
|
import {getEnvironmentContext} from '../environment-provider/index.js';
|
16
17
|
import {portal} from '@zag-js/svelte';
|
17
|
-
import {createSplitProps} from '@zag-js/utils';
|
18
18
|
import {getPortalProviderPropsContext} from './portal-context.svelte.js';
|
19
19
|
|
20
20
|
let {children, ...props}: PortalProps = $props();
|
@@ -10,9 +10,9 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
15
|
import {reflect} from '@zag-js/svelte';
|
15
|
-
import {createSplitProps} from '@zag-js/utils';
|
16
16
|
import type {Action} from 'svelte/action';
|
17
17
|
import type {HTMLAttributes} from 'svelte/elements';
|
18
18
|
import {createPresence} from './create-presence.svelte.js';
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createProgress} from './create-progress.svelte.js';
|
20
20
|
import {setProgressContext} from './progress-context.svelte.js';
|
21
21
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createQRCode} from './create-qr-code.svelte.js';
|
20
20
|
import {setQrCodeContext} from './qr-code-context.svelte.js';
|
21
21
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getRadioGroupContext,
|
17
17
|
setRadioGroupItemPropsContext,
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createRadioGroup} from './create-radio-group.svelte.js';
|
20
20
|
import {setRadioGroupContext} from './radio-group-context.svelte.js';
|
21
21
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createRatingGroup} from './create-rating-group.svelte.js';
|
20
20
|
import {setRatingGroupContext} from './rating-group-context.svelte.js';
|
21
21
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getSegmentGroupContext,
|
17
17
|
setSegmentGroupItemPropsContext,
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createSegmentGroup} from './create-segment-group.svelte.js';
|
20
20
|
import {setSegmentGroupContext} from './segment-group-context.svelte.js';
|
21
21
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getSelectContext,
|
17
17
|
setSelectItemPropsContext,
|
@@ -15,11 +15,11 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
20
21
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
21
22
|
import {reflect} from '@zag-js/svelte';
|
22
|
-
import {createSplitProps} from '@zag-js/utils';
|
23
23
|
import {createSelect} from './create-select.svelte.js';
|
24
24
|
import {setSelectContext} from './select-context.svelte.js';
|
25
25
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createSignaturePad} from './create-signature-pad.svelte.js';
|
20
20
|
import {setSignaturePadContext} from './signature-pad-context.svelte.js';
|
21
21
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createSlider} from './create-slider.svelte.js';
|
20
20
|
import {setSliderContext} from './slider-context.svelte.js';
|
21
21
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
|
+
import {createSplitProps} from '../create-split-props.js';
|
10
11
|
import {mergeProps} from '../merge-props.js';
|
11
|
-
import {createSplitProps} from '@zag-js/utils';
|
12
12
|
import {getSplitterContext} from './splitter-context.svelte.js';
|
13
13
|
|
14
14
|
let {
|
@@ -19,8 +19,8 @@
|
|
19
19
|
</script>
|
20
20
|
|
21
21
|
<script lang="ts">
|
22
|
+
import {createSplitProps} from '../create-split-props.js';
|
22
23
|
import {mergeProps} from '../merge-props.js';
|
23
|
-
import {createSplitProps} from '@zag-js/utils';
|
24
24
|
import {getSplitterContext} from './splitter-context.svelte.js';
|
25
25
|
|
26
26
|
let {
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createSplitter} from './create-splitter.svelte.js';
|
20
20
|
import {setSplitterContext} from './splitter-context.svelte.js';
|
21
21
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getStepsContext,
|
17
17
|
setStepsItemPropsContext,
|
@@ -15,10 +15,10 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {setPresenceStrategyPropsContext} from '../presence/presence-context.svelte.js';
|
20
21
|
import {reflect} from '@zag-js/svelte';
|
21
|
-
import {createSplitProps} from '@zag-js/utils';
|
22
22
|
import {createSteps} from './create-steps.svelte.js';
|
23
23
|
import {setStepsContext} from './steps-context.svelte.js';
|
24
24
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createSwitch} from './create-switch.svelte.js';
|
20
20
|
import {setSwitchContext} from './switch-context.svelte.js';
|
21
21
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
|
+
import {createSplitProps} from '../create-split-props.js';
|
10
11
|
import {mergeProps} from '../merge-props.js';
|
11
|
-
import {createSplitProps} from '@zag-js/utils';
|
12
12
|
import {getTabsContext} from './tabs-context.svelte.js';
|
13
13
|
|
14
14
|
let {
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createTabs} from './create-tabs.svelte.js';
|
20
20
|
import {setTabsContext} from './tabs-context.svelte.js';
|
21
21
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {getTabsContext} from './tabs-context.svelte.js';
|
16
16
|
|
17
17
|
let {
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getTagsInputContext,
|
17
17
|
setTagsInputItemPropsContext,
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createTagsInput} from './create-tags-input.svelte.js';
|
20
20
|
import {setTagsInputContext} from './tags-input-context.svelte.js';
|
21
21
|
|
@@ -15,11 +15,11 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
20
21
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
21
22
|
import {reflect} from '@zag-js/svelte';
|
22
|
-
import {createSplitProps} from '@zag-js/utils';
|
23
23
|
import {createTimePicker} from './create-time-picker.svelte.js';
|
24
24
|
import {setTimePickerContext} from './time-picker-context.svelte.js';
|
25
25
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createTimer} from './create-timer.svelte.js';
|
20
20
|
import {setTimerContext} from './timer-context.svelte.js';
|
21
21
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createToggle} from './create-toggle.svelte.js';
|
20
20
|
import {setToggleContext} from './toggle-context.svelte.js';
|
21
21
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {getToggleGroupContext} from './toggle-group-context.svelte.js';
|
16
16
|
|
17
17
|
let {
|
@@ -13,9 +13,9 @@
|
|
13
13
|
</script>
|
14
14
|
|
15
15
|
<script lang="ts">
|
16
|
+
import {createSplitProps} from '../create-split-props.js';
|
16
17
|
import {mergeProps} from '../merge-props.js';
|
17
18
|
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
19
|
import {createToggleGroup} from './create-toggle-group.svelte.js';
|
20
20
|
import {setToggleGroupContext} from './toggle-group-context.svelte.js';
|
21
21
|
|
@@ -14,10 +14,10 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang="ts">
|
17
|
+
import {createSplitProps} from '../create-split-props.js';
|
17
18
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
18
19
|
import {setPresenceContext} from '../presence/presence-context.svelte.js';
|
19
20
|
import {reflect} from '@zag-js/svelte';
|
20
|
-
import {createSplitProps} from '@zag-js/utils';
|
21
21
|
import {createTooltip} from './create-tooltip.svelte.js';
|
22
22
|
import {setTooltipContext} from './tooltip-context.svelte.js';
|
23
23
|
|
@@ -12,13 +12,13 @@
|
|
12
12
|
</script>
|
13
13
|
|
14
14
|
<script lang="ts">
|
15
|
+
import {createSplitProps} from '../create-split-props.js';
|
15
16
|
import {createPresence} from '../presence/create-presence.svelte.js';
|
16
17
|
import {
|
17
18
|
setPresenceContext,
|
18
19
|
setPresenceStrategyPropsContext,
|
19
20
|
} from '../presence/presence-context.svelte.js';
|
20
21
|
import {reflect} from '@zag-js/svelte';
|
21
|
-
import {createSplitProps} from '@zag-js/utils';
|
22
22
|
import {createTour} from './create-tour.svelte.js';
|
23
23
|
import {setTourContext} from './tour-context.svelte.js';
|
24
24
|
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {createSplitProps} from '../create-split-props.js';
|
13
14
|
import {mergeProps} from '../merge-props.js';
|
14
|
-
import {createSplitProps} from '@zag-js/utils';
|
15
15
|
import {
|
16
16
|
getTreeViewContext,
|
17
17
|
setTreeViewNodePropsContext,
|
@@ -7,8 +7,8 @@
|
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
|
+
import {createSplitProps} from '../create-split-props.js';
|
10
11
|
import {mergeProps} from '../merge-props.js';
|
11
|
-
import {createSplitProps} from '@zag-js/utils';
|
12
12
|
import {
|
13
13
|
getTreeViewContext,
|
14
14
|
setTreeViewNodePropsContext,
|
@@ -15,10 +15,10 @@
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<script lang="ts">
|
18
|
+
import {createSplitProps} from '../create-split-props.js';
|
18
19
|
import {mergeProps} from '../merge-props.js';
|
19
20
|
import {setPresenceStrategyPropsContext} from '../presence/presence-context.svelte.js';
|
20
21
|
import {reflect} from '@zag-js/svelte';
|
21
|
-
import {createSplitProps} from '@zag-js/utils';
|
22
22
|
import {createTreeView} from './create-tree-view.svelte.js';
|
23
23
|
import {setTreeViewContext} from './tree-view-context.svelte.js';
|
24
24
|
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "ui-ingredients",
|
3
3
|
"type": "module",
|
4
4
|
"license": "MIT",
|
5
|
-
"version": "0.22.
|
5
|
+
"version": "0.22.1",
|
6
6
|
"packageManager": "pnpm@9.15.1",
|
7
7
|
"svelte": "./dist/index.js",
|
8
8
|
"types": "./dist/index.d.ts",
|
@@ -218,7 +218,8 @@
|
|
218
218
|
"./anatomy": {
|
219
219
|
"types": "./dist/anatomy.d.ts",
|
220
220
|
"import": "./dist/anatomy.js"
|
221
|
-
}
|
221
|
+
},
|
222
|
+
"./package.json": "./package.json"
|
222
223
|
},
|
223
224
|
"files": [
|
224
225
|
"dist",
|
@@ -354,12 +355,11 @@
|
|
354
355
|
"@zag-js/tooltip": "^0.78.3",
|
355
356
|
"@zag-js/tour": "^0.78.3",
|
356
357
|
"@zag-js/tree-view": "^0.78.3",
|
357
|
-
"@zag-js/utils": "^0.78.3",
|
358
358
|
"zagjs-legacy-svelte": "npm:@zag-js/svelte@0.77.1",
|
359
359
|
"zagjs-legacy-toast": "npm:@zag-js/toast@0.77.1"
|
360
360
|
},
|
361
361
|
"peerDependencies": {
|
362
|
-
"svelte": "
|
362
|
+
"svelte": "^5.0.0"
|
363
363
|
},
|
364
364
|
"devDependencies": {
|
365
365
|
"@faker-js/faker": "^9.3.0",
|