ui-ingredients 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/accordion/root.svelte +3 -1
  2. package/dist/avatar/root.svelte +2 -1
  3. package/dist/carousel/root.svelte +2 -1
  4. package/dist/checkbox/root.svelte +3 -1
  5. package/dist/clipboard/root.svelte +2 -1
  6. package/dist/collapsible/root.svelte +2 -1
  7. package/dist/combobox/root.svelte +2 -1
  8. package/dist/date-picker/input.svelte +1 -1
  9. package/dist/date-picker/root.svelte +2 -1
  10. package/dist/editable/root.svelte +2 -1
  11. package/dist/file-upload/root.svelte +2 -1
  12. package/dist/number-input/root.svelte +2 -1
  13. package/dist/pagination/root.svelte +2 -1
  14. package/dist/pin-input/clear-trigger.svelte +1 -2
  15. package/dist/pin-input/root.svelte +2 -1
  16. package/dist/presence/root.svelte +2 -1
  17. package/dist/progress/root.svelte +2 -1
  18. package/dist/qr-code/root.svelte +2 -1
  19. package/dist/radio-group/root.svelte +2 -1
  20. package/dist/rating-group/root.svelte +2 -1
  21. package/dist/segment-group/root.svelte +2 -1
  22. package/dist/select/root.svelte +2 -1
  23. package/dist/signature-pad/current-segment-path.svelte +1 -1
  24. package/dist/signature-pad/root.svelte +2 -1
  25. package/dist/slider/root.svelte +2 -1
  26. package/dist/splitter/root.svelte +2 -1
  27. package/dist/steps/root.svelte +2 -1
  28. package/dist/switch/root.svelte +2 -1
  29. package/dist/tabs/root.svelte +2 -1
  30. package/dist/tags-input/root.svelte +2 -1
  31. package/dist/time-picker/input.svelte +1 -1
  32. package/dist/time-picker/root.svelte +2 -1
  33. package/dist/timer/root.svelte +2 -1
  34. package/dist/toggle-group/root.svelte +2 -1
  35. package/dist/tree-view/root.svelte +2 -1
  36. package/package.json +2 -2
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {accordionContext} from './context.svelte.js';
20
21
  import {createAccordion} from './create-accordion.svelte.js';
@@ -35,7 +36,8 @@
35
36
  ])(props),
36
37
  );
37
38
 
38
- let accordion = createAccordion(accordionProps);
39
+ let accordion = createAccordion(reflect(() => accordionProps));
40
+
39
41
  let mergedProps = $derived(mergeProps(otherProps, accordion.getRootProps()));
40
42
 
41
43
  accordionContext.set(accordion);
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {avatarContext} from './context.svelte.js';
20
21
  import {createAvatar} from './create-avatar.svelte.js';
@@ -25,7 +26,7 @@
25
26
  createSplitProps<CreateAvatarProps>(['id', 'ids', 'onStatusChange'])(props),
26
27
  );
27
28
 
28
- let avatar = createAvatar(avatarProps);
29
+ let avatar = createAvatar(reflect(() => avatarProps));
29
30
 
30
31
  let mergedProps = $derived(mergeProps(otherProps, avatar.getRootProps()));
31
32
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {carouselContext} from './context.svelte.js';
20
21
  import {createCarousel} from './create-carousel.svelte.js';
@@ -35,7 +36,7 @@
35
36
  ])(props),
36
37
  );
37
38
 
38
- let carousel = createCarousel(carouselProps);
39
+ let carousel = createCarousel(reflect(() => carouselProps));
39
40
 
40
41
  let mergedProps = $derived(mergeProps(otherProps, carousel.getRootProps()));
41
42
 
@@ -19,6 +19,8 @@
19
19
  import {checkboxContext} from './context.svelte.js';
20
20
  import {createCheckbox} from './create-checkbox.svelte.js';
21
21
 
22
+ import {reflect} from '@zag-js/svelte';
23
+
22
24
  let {asChild, children, ...props}: CheckboxProps = $props();
23
25
 
24
26
  let [checkboxProps, otherProps] = $derived(
@@ -37,7 +39,7 @@
37
39
  ])(props),
38
40
  );
39
41
 
40
- let checkbox = createCheckbox(checkboxProps);
42
+ let checkbox = createCheckbox(reflect(() => checkboxProps));
41
43
 
42
44
  let mergedProps = $derived(mergeProps(otherProps, checkbox.getRootProps()));
43
45
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {clipboardContext} from './context.svelte.js';
20
21
  import {createClipboard} from './create-clipboard.svelte.js';
@@ -31,7 +32,7 @@
31
32
  ])(props),
32
33
  );
33
34
 
34
- let clipboard = createClipboard(clipboardProps);
35
+ let clipboard = createClipboard(reflect(() => clipboardProps));
35
36
 
36
37
  let mergedProps = $derived(mergeProps(otherProps, clipboard.getRootProps()));
37
38
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {collapsibleContext} from './context.svelte.js';
20
21
  import {createCollapsible} from './create-collapsible.svelte.js';
@@ -33,7 +34,7 @@
33
34
  ])(props),
34
35
  );
35
36
 
36
- let collapsible = createCollapsible(collapsibleProps);
37
+ let collapsible = createCollapsible(reflect(() => collapsibleProps));
37
38
 
38
39
  let mergedProps = $derived(
39
40
  mergeProps(otherProps, collapsible.getRootProps()),
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts" generics="T">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {comboboxContext} from './context.svelte.js';
20
21
  import {createCombobox} from './create-combobox.svelte.js';
@@ -67,7 +68,7 @@
67
68
  ])(props),
68
69
  );
69
70
 
70
- let combobox = createCombobox(comboboxProps);
71
+ let combobox = createCombobox(reflect(() => comboboxProps));
71
72
 
72
73
  let mergedProps = $derived(mergeProps(otherProps, combobox.getRootProps()));
73
74
 
@@ -12,7 +12,7 @@
12
12
  import {mergeProps} from '../merge-props.js';
13
13
  import {datePickerContext} from './context.svelte.js';
14
14
 
15
- let {index, asChild, children, ...props}: DatePickerInputProps = $props();
15
+ let {index, asChild, ...props}: DatePickerInputProps = $props();
16
16
 
17
17
  let datePicker = datePickerContext.get();
18
18
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {datePickerContext} from './context.svelte.js';
20
21
  import {createDatePicker} from './create-date-picker.svelte.js';
@@ -54,7 +55,7 @@
54
55
  ])(props),
55
56
  );
56
57
 
57
- let datePicker = createDatePicker(datePickerProps);
58
+ let datePicker = createDatePicker(reflect(() => datePickerProps));
58
59
 
59
60
  let mergedProps = $derived(mergeProps(otherProps, datePicker.getRootProps()));
60
61
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {editableContext} from './context.svelte.js';
20
21
  import {createEditable} from './create-editable.svelte.js';
@@ -52,7 +53,7 @@
52
53
  ])(props),
53
54
  );
54
55
 
55
- let editable = createEditable(editableProps);
56
+ let editable = createEditable(reflect(() => editableProps));
56
57
 
57
58
  let mergedProps = $derived(mergeProps(otherProps, editable.getRootProps()));
58
59
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {fileUploadContext} from './context.svelte.js';
20
21
  import {createFileUpload} from './create-file-upload.svelte.js';
@@ -44,7 +45,7 @@
44
45
  ])(props),
45
46
  );
46
47
 
47
- let fileUpload = createFileUpload(fileUploadProps);
48
+ let fileUpload = createFileUpload(reflect(() => fileUploadProps));
48
49
 
49
50
  let mergedProps = $derived(mergeProps(otherProps, fileUpload.getRootProps()));
50
51
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {numberInputContext} from './context.svelte.js';
20
21
  import {createNumberInput} from './create-number-input.svelte.js';
@@ -51,7 +52,7 @@
51
52
  ])(props),
52
53
  );
53
54
 
54
- let numberInput = createNumberInput(numberInputProps);
55
+ let numberInput = createNumberInput(reflect(() => numberInputProps));
55
56
 
56
57
  let mergedProps = $derived(
57
58
  mergeProps(otherProps, numberInput.getRootProps()),
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {paginationContext} from './context.svelte.js';
20
21
  import {createPagination} from './create-pagination.svelte.js';
@@ -36,7 +37,7 @@
36
37
  ])(props),
37
38
  );
38
39
 
39
- let pagination = createPagination(paginationProps);
40
+ let pagination = createPagination(reflect(() => paginationProps));
40
41
 
41
42
  let mergedProps = $derived(mergeProps(otherProps, pagination.getRootProps()));
42
43
 
@@ -11,8 +11,7 @@
11
11
  import {parts} from './anatomy.js';
12
12
  import {pinInputContext} from './context.svelte.js';
13
13
 
14
- let {asChild, children, onclick, ...props}: PinInputClearTriggerProps =
15
- $props();
14
+ let {asChild, children, ...props}: PinInputClearTriggerProps = $props();
16
15
 
17
16
  let pinInput = pinInputContext.get();
18
17
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {pinInputContext} from './context.svelte.js';
20
21
  import {createPinInputContext} from './create-pin-input.svelte.js';
@@ -47,7 +48,7 @@
47
48
  ])(props),
48
49
  );
49
50
 
50
- let pinInput = createPinInputContext(pinInputProps);
51
+ let pinInput = createPinInputContext(reflect(() => pinInputProps));
51
52
 
52
53
  let mergedProps = $derived(mergeProps(otherProps, pinInput.getRootProps()));
53
54
 
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script lang="ts">
10
10
  import {mergeProps} from '../merge-props.js';
11
+ import {reflect} from '@zag-js/svelte';
11
12
  import {createSplitProps} from '@zag-js/utils';
12
13
  import {createPresence} from './create-presence.svelte.js';
13
14
 
@@ -17,7 +18,7 @@
17
18
  createSplitProps<CreatePresenceProps>(['present', 'keepMounted'])(props),
18
19
  );
19
20
 
20
- let presence = createPresence(presenceProps);
21
+ let presence = createPresence(reflect(() => presenceProps));
21
22
 
22
23
  let mergedProps = $derived(mergeProps(otherProps, presence.getRootProps()));
23
24
  </script>
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {progressContext} from './context.svelte.js';
20
21
  import {createProgress} from './create-progress.svelte.js';
@@ -33,7 +34,7 @@
33
34
  ])(props),
34
35
  );
35
36
 
36
- let progress = createProgress(progressProps);
37
+ let progress = createProgress(reflect(() => progressProps));
37
38
 
38
39
  let mergedProps = $derived(mergeProps(otherProps, progress.getRootProps()));
39
40
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {qrCodeContext} from './context.svelte.js';
20
21
  import {createQRCode} from './create-qr-code.svelte.js';
@@ -27,7 +28,7 @@
27
28
  ),
28
29
  );
29
30
 
30
- let qrCode = createQRCode(qrCodeProps);
31
+ let qrCode = createQRCode(reflect(() => qrCodeProps));
31
32
 
32
33
  let mergedProps = $derived(mergeProps(otherProps, qrCode.getRootProps()));
33
34
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {radioGroupContext} from './context.svelte.js';
20
21
  import {createRadioGroup} from './create-radio-group.svelte.js';
@@ -35,7 +36,7 @@
35
36
  ])(props),
36
37
  );
37
38
 
38
- let radioGroup = createRadioGroup(radioGroupProps);
39
+ let radioGroup = createRadioGroup(reflect(() => radioGroupProps));
39
40
 
40
41
  let mergedProps = $derived(mergeProps(otherProps, radioGroup.getRootProps()));
41
42
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {ratingGroupContext} from './context.svelte.js';
20
21
  import {createRatingGroup} from './create-rating-group.svelte.js';
@@ -40,7 +41,7 @@
40
41
  ])(props),
41
42
  );
42
43
 
43
- let ratingGroup = createRatingGroup(ratingGroupProps);
44
+ let ratingGroup = createRatingGroup(reflect(() => ratingGroupProps));
44
45
 
45
46
  let mergedProps = $derived(
46
47
  mergeProps(otherProps, ratingGroup.getRootProps()),
@@ -18,6 +18,7 @@
18
18
 
19
19
  <script lang="ts">
20
20
  import {mergeProps} from '../merge-props.js';
21
+ import {reflect} from '@zag-js/svelte';
21
22
  import {createSplitProps} from '@zag-js/utils';
22
23
  import {parts} from './anatomy.js';
23
24
  import {segmentGroupContext} from './context.svelte.js';
@@ -39,7 +40,7 @@
39
40
  ])(props),
40
41
  );
41
42
 
42
- let segmentGroup = createSegmentGroup(segmentGroupProps);
43
+ let segmentGroup = createSegmentGroup(reflect(() => segmentGroupProps));
43
44
 
44
45
  let mergedProps = $derived(
45
46
  mergeProps(otherProps, segmentGroup.getRootProps(), parts.root.attrs),
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts" generics="T">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {selectContext} from './context.svelte.js';
20
21
  import {createSelect} from './create-select.svelte.js';
@@ -54,7 +55,7 @@
54
55
  ])(props),
55
56
  );
56
57
 
57
- let select = createSelect(selectProps);
58
+ let select = createSelect(reflect(() => selectProps));
58
59
 
59
60
  let mergedProps = $derived(mergeProps(otherProps, select.getRootProps()));
60
61
 
@@ -11,7 +11,7 @@
11
11
  import {mergeProps} from '../merge-props.js';
12
12
  import {signaturePadContext} from './context.svelte.js';
13
13
 
14
- let {path, asChild, children, ...props}: SignaturePadCurrentSegmentPathProps =
14
+ let {asChild, children, ...props}: SignaturePadCurrentSegmentPathProps =
15
15
  $props();
16
16
 
17
17
  let signaturePad = signaturePadContext.get();
@@ -18,6 +18,7 @@
18
18
 
19
19
  <script lang="ts">
20
20
  import {mergeProps} from '../merge-props.js';
21
+ import {reflect} from '@zag-js/svelte';
21
22
  import {createSplitProps} from '@zag-js/utils';
22
23
  import {signaturePadContext} from './context.svelte.js';
23
24
  import {createSignaturePad} from './create-signature-pad.svelte.js';
@@ -39,7 +40,7 @@
39
40
  ])(props),
40
41
  );
41
42
 
42
- let signaturePad = createSignaturePad(signaturePadProps);
43
+ let signaturePad = createSignaturePad(reflect(() => signaturePadProps));
43
44
 
44
45
  let mergedProps = $derived(
45
46
  mergeProps(otherProps, signaturePad.getRootProps()),
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {sliderContext} from './context.svelte.js';
20
21
  import {createSlider} from './create-slider.svelte.js';
@@ -48,7 +49,7 @@
48
49
  ])(props),
49
50
  );
50
51
 
51
- let slider = createSlider(sliderProps);
52
+ let slider = createSlider(reflect(() => sliderProps));
52
53
 
53
54
  let mergedProps = $derived(mergeProps(otherProps, slider.getRootProps()));
54
55
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {splitterContext} from './context.svelte.js';
20
21
  import {createSplitter} from './create-splitter.svelte.js';
@@ -32,7 +33,7 @@
32
33
  ])(props),
33
34
  );
34
35
 
35
- let splitter = createSplitter(splitterProps);
36
+ let splitter = createSplitter(reflect(() => splitterProps));
36
37
 
37
38
  let mergedProps = $derived(mergeProps(otherProps, splitter.getRootProps()));
38
39
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {stepsContext} from './context.svelte.js';
20
21
  import {createSteps} from './create-steps.svelte.js';
@@ -34,7 +35,7 @@
34
35
  ])(props),
35
36
  );
36
37
 
37
- let steps = createSteps(stepsProps);
38
+ let steps = createSteps(reflect(() => stepsProps));
38
39
 
39
40
  let mergedProps = $derived(mergeProps(otherProps, steps.getRootProps()));
40
41
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {switchContext} from './context.svelte.js';
20
21
  import {createSwitch} from './create-switch.svelte.js';
@@ -38,7 +39,7 @@
38
39
  ])(props),
39
40
  );
40
41
 
41
- let switch$ = createSwitch(switchProps);
42
+ let switch$ = createSwitch(reflect(() => switchProps));
42
43
 
43
44
  let mergedProps = $derived(mergeProps(otherProps, switch$.getRootProps()));
44
45
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {tabsContext} from './context.svelte.js';
20
21
  import {createTabs} from './create-tabs.svelte.js';
@@ -36,7 +37,7 @@
36
37
  ])(props),
37
38
  );
38
39
 
39
- let tabs = createTabs(tabsProps);
40
+ let tabs = createTabs(reflect(() => tabsProps));
40
41
 
41
42
  let mergedProps = $derived(mergeProps(otherProps, tabs.getRootProps()));
42
43
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {tagsInputContext} from './context.svelte.js';
20
21
  import {createTagsInput} from './create-tags-input.svelte.js';
@@ -53,7 +54,7 @@
53
54
  ])(props),
54
55
  );
55
56
 
56
- let tagsInput = createTagsInput(tagsInputProps);
57
+ let tagsInput = createTagsInput(reflect(() => tagsInputProps));
57
58
 
58
59
  let mergedProps = $derived(mergeProps(otherProps, tagsInput.getRootProps()));
59
60
 
@@ -10,7 +10,7 @@
10
10
  import {mergeProps} from '../merge-props.js';
11
11
  import {timePickerContext} from './context.svelte.js';
12
12
 
13
- let {asChild, children, ...props}: TimePickerInputProps = $props();
13
+ let {asChild, ...props}: TimePickerInputProps = $props();
14
14
 
15
15
  let timePicker = timePickerContext.get();
16
16
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {timePickerContext} from './context.svelte.js';
20
21
  import {createTimePicker} from './create-time-picker.svelte.js';
@@ -45,7 +46,7 @@
45
46
  ])(props),
46
47
  );
47
48
 
48
- let timePicker = createTimePicker(timePickerProps);
49
+ let timePicker = createTimePicker(reflect(() => timePickerProps));
49
50
 
50
51
  let mergedProps = $derived(mergeProps(otherProps, timePicker.getRootProps()));
51
52
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {timerContext} from './context.svelte.js';
20
21
  import {createTimer} from './create-timer.svelte.js';
@@ -34,7 +35,7 @@
34
35
  ])(props),
35
36
  );
36
37
 
37
- let timer = createTimer(timerProps);
38
+ let timer = createTimer(reflect(() => timerProps));
38
39
 
39
40
  let mergedProps = $derived(mergeProps(otherProps, timer.getRootProps()));
40
41
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {toggleGroupContext} from './context.svelte.js';
20
21
  import {createToggleGroup} from './create-toggle-group.svelte.js';
@@ -35,7 +36,7 @@
35
36
  ])(props),
36
37
  );
37
38
 
38
- let toggleGroup = createToggleGroup(toggleGroupProps);
39
+ let toggleGroup = createToggleGroup(reflect(() => toggleGroupProps));
39
40
 
40
41
  let mergedProps = $derived(
41
42
  mergeProps(otherProps, toggleGroup.getRootProps()),
@@ -15,6 +15,7 @@
15
15
 
16
16
  <script lang="ts">
17
17
  import {mergeProps} from '../merge-props.js';
18
+ import {reflect} from '@zag-js/svelte';
18
19
  import {createSplitProps} from '@zag-js/utils';
19
20
  import {treeViewContext} from './context.svelte.js';
20
21
  import {createTreeView} from './create-tree-view.svelte.js';
@@ -37,7 +38,7 @@
37
38
  ])(props),
38
39
  );
39
40
 
40
- let treeView = createTreeView(treeViewProps);
41
+ let treeView = createTreeView(reflect(() => treeViewProps));
41
42
 
42
43
  let mergedProps = $derived(mergeProps(otherProps, treeView.getRootProps()));
43
44
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.29",
4
+ "version": "0.0.30",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -145,7 +145,7 @@
145
145
  "postcss": "8.4.41",
146
146
  "publint": "0.2.10",
147
147
  "release-it": "17.6.0",
148
- "svelte": "5.0.0-next.239",
148
+ "svelte": "5.0.0-next.241",
149
149
  "svelte-check": "3.8.6",
150
150
  "tailwindcss": "3.4.10",
151
151
  "typescript": "5.5.4",