ui-ingredients 0.21.1 → 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/angle-slider/create-angle-slider.svelte.js +0 -2
- 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/toast/create-toast.svelte.d.ts +1 -1
- package/dist/toast/create-toast.svelte.js +2 -2
- package/dist/toast/create-toaster.svelte.d.ts +1 -1
- package/dist/toast/create-toaster.svelte.js +2 -2
- package/dist/toast/toast-action-trigger.svelte +29 -32
- package/dist/toast/toast-actor.svelte +1 -1
- package/dist/toast/toast-actor.svelte.d.ts +1 -1
- package/dist/toast/toast-anatomy.d.ts +1 -1
- package/dist/toast/toast-anatomy.js +1 -1
- package/dist/toast/toast-close-trigger.svelte +29 -30
- package/dist/toast/toast-description.svelte +33 -34
- package/dist/toast/toast-ghost-after.svelte +29 -30
- package/dist/toast/toast-ghost-before.svelte +29 -30
- package/dist/toast/toast-root.svelte +32 -33
- package/dist/toast/toast-title.svelte +33 -34
- package/dist/toast/toaster.svelte +12 -3
- 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 +60 -58
@@ -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,8 +13,6 @@ export function createAngleSlider(props) {
|
|
13
13
|
getRootNode: environment?.getRootNode,
|
14
14
|
...props,
|
15
15
|
}));
|
16
|
-
// @ts-expect-error "Incompatible version of @zag-js/svelte"
|
17
16
|
const [state, send] = useMachine(angleSlider.machine(context), { context });
|
18
|
-
// @ts-expect-error "Incompatible version of @zag-js/svelte"
|
19
17
|
return reflect(() => angleSlider.connect(state, send, normalizeProps));
|
20
18
|
}
|
@@ -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
|
|