ui-ingredients 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. package/dist/accordion/accordion-anatomy.d.ts +1 -0
  2. package/dist/accordion/accordion-anatomy.js +1 -0
  3. package/dist/accordion/index.d.ts +1 -1
  4. package/dist/accordion/index.js +1 -1
  5. package/dist/anatomy.d.ts +46 -0
  6. package/dist/anatomy.js +46 -0
  7. package/dist/avatar/avatar-anatomy.d.ts +1 -0
  8. package/dist/avatar/avatar-anatomy.js +1 -0
  9. package/dist/avatar/index.d.ts +2 -1
  10. package/dist/avatar/index.js +2 -1
  11. package/dist/breadcrumbs/breadcrumbs-anatomy.d.ts +2 -2
  12. package/dist/carousel/carousel-anatomy.d.ts +1 -0
  13. package/dist/carousel/carousel-anatomy.js +1 -0
  14. package/dist/carousel/index.d.ts +1 -1
  15. package/dist/carousel/index.js +1 -1
  16. package/dist/checkbox/checkbox-anatomy.d.ts +1 -0
  17. package/dist/checkbox/checkbox-anatomy.js +1 -0
  18. package/dist/checkbox/index.d.ts +1 -1
  19. package/dist/checkbox/index.js +1 -1
  20. package/dist/clipboard/clipboard-anatomy.d.ts +1 -0
  21. package/dist/clipboard/clipboard-anatomy.js +1 -0
  22. package/dist/clipboard/index.d.ts +1 -1
  23. package/dist/clipboard/index.js +1 -1
  24. package/dist/collapsible/collapsible-anatomy.d.ts +1 -0
  25. package/dist/collapsible/collapsible-anatomy.js +1 -0
  26. package/dist/collapsible/index.d.ts +1 -1
  27. package/dist/collapsible/index.js +1 -1
  28. package/dist/color-picker/color-picker-anatomy.d.ts +2 -2
  29. package/dist/combobox/combobox-anatomy.d.ts +1 -0
  30. package/dist/combobox/combobox-anatomy.js +1 -0
  31. package/dist/combobox/index.d.ts +1 -1
  32. package/dist/combobox/index.js +1 -1
  33. package/dist/date-picker/date-picker-anatomy.d.ts +2 -2
  34. package/dist/dialog/dialog-anatomy.d.ts +1 -0
  35. package/dist/dialog/dialog-anatomy.js +1 -0
  36. package/dist/dialog/index.d.ts +1 -1
  37. package/dist/dialog/index.js +1 -1
  38. package/dist/drawer/drawer-anatomy.d.ts +2 -2
  39. package/dist/editable/editable-anatomy.d.ts +1 -0
  40. package/dist/editable/editable-anatomy.js +1 -0
  41. package/dist/editable/index.d.ts +1 -1
  42. package/dist/editable/index.js +1 -1
  43. package/dist/field/field-anatomy.d.ts +2 -2
  44. package/dist/file-upload/file-upload-anatomy.d.ts +1 -0
  45. package/dist/file-upload/file-upload-anatomy.js +1 -0
  46. package/dist/file-upload/index.d.ts +1 -1
  47. package/dist/file-upload/index.js +1 -1
  48. package/dist/floating-panel/floating-panel-anatomy.d.ts +1 -0
  49. package/dist/floating-panel/floating-panel-anatomy.js +1 -0
  50. package/dist/floating-panel/index.d.ts +1 -1
  51. package/dist/floating-panel/index.js +1 -1
  52. package/dist/hover-card/hover-card-anatomy.d.ts +1 -0
  53. package/dist/hover-card/hover-card-anatomy.js +1 -0
  54. package/dist/hover-card/index.d.ts +1 -1
  55. package/dist/hover-card/index.js +1 -1
  56. package/dist/index.d.ts +1 -0
  57. package/dist/index.js +1 -0
  58. package/dist/menu/index.d.ts +1 -1
  59. package/dist/menu/index.js +1 -1
  60. package/dist/menu/menu-anatomy.d.ts +1 -0
  61. package/dist/menu/menu-anatomy.js +1 -0
  62. package/dist/number-input/index.d.ts +1 -1
  63. package/dist/number-input/index.js +1 -1
  64. package/dist/number-input/number-input-anatomy.d.ts +1 -0
  65. package/dist/number-input/number-input-anatomy.js +1 -0
  66. package/dist/pagination/index.d.ts +1 -1
  67. package/dist/pagination/index.js +1 -1
  68. package/dist/pagination/pagination-anatomy.d.ts +1 -0
  69. package/dist/pagination/pagination-anatomy.js +1 -0
  70. package/dist/pin-input/pin-input-anatomy.d.ts +2 -2
  71. package/dist/popover/index.d.ts +1 -1
  72. package/dist/popover/index.js +1 -1
  73. package/dist/popover/popover-anatomy.d.ts +1 -0
  74. package/dist/popover/popover-anatomy.js +1 -0
  75. package/dist/progress/index.d.ts +1 -1
  76. package/dist/progress/index.js +1 -1
  77. package/dist/progress/progress-anatomy.d.ts +1 -0
  78. package/dist/progress/progress-anatomy.js +1 -0
  79. package/dist/qr-code/index.d.ts +1 -1
  80. package/dist/qr-code/index.js +1 -1
  81. package/dist/qr-code/qr-code-anatomy.d.ts +1 -0
  82. package/dist/qr-code/qr-code-anatomy.js +1 -0
  83. package/dist/radio-group/index.d.ts +1 -1
  84. package/dist/radio-group/index.js +1 -1
  85. package/dist/radio-group/radio-group-anatomy.d.ts +1 -0
  86. package/dist/radio-group/radio-group-anatomy.js +1 -0
  87. package/dist/rating-group/index.d.ts +1 -1
  88. package/dist/rating-group/index.js +1 -1
  89. package/dist/rating-group/rating-group-anatomy.d.ts +1 -0
  90. package/dist/rating-group/rating-group-anatomy.js +1 -0
  91. package/dist/segment-group/create-segment-group.svelte.js +1 -1
  92. package/dist/segment-group/segment-group-anatomy.d.ts +2 -2
  93. package/dist/select/index.d.ts +1 -1
  94. package/dist/select/index.js +1 -1
  95. package/dist/select/select-anatomy.d.ts +1 -0
  96. package/dist/select/select-anatomy.js +1 -0
  97. package/dist/signature-pad/index.d.ts +1 -1
  98. package/dist/signature-pad/index.js +1 -1
  99. package/dist/signature-pad/signature-pad-anatomy.d.ts +1 -0
  100. package/dist/signature-pad/signature-pad-anatomy.js +1 -0
  101. package/dist/slider/index.d.ts +1 -1
  102. package/dist/slider/index.js +1 -1
  103. package/dist/slider/slider-anatomy.d.ts +1 -0
  104. package/dist/slider/slider-anatomy.js +1 -0
  105. package/dist/splitter/index.d.ts +1 -1
  106. package/dist/splitter/index.js +1 -1
  107. package/dist/splitter/splitter-anatomy.d.ts +1 -0
  108. package/dist/splitter/splitter-anatomy.js +1 -0
  109. package/dist/steps/index.d.ts +1 -1
  110. package/dist/steps/index.js +1 -1
  111. package/dist/steps/steps-anatomy.d.ts +1 -0
  112. package/dist/steps/steps-anatomy.js +1 -0
  113. package/dist/switch/index.d.ts +1 -1
  114. package/dist/switch/index.js +1 -1
  115. package/dist/switch/switch-anatomy.d.ts +1 -0
  116. package/dist/switch/switch-anatomy.js +1 -0
  117. package/dist/tabs/index.d.ts +1 -1
  118. package/dist/tabs/index.js +1 -1
  119. package/dist/tabs/tabs-anatomy.d.ts +1 -0
  120. package/dist/tabs/tabs-anatomy.js +1 -0
  121. package/dist/tags-input/index.d.ts +1 -1
  122. package/dist/tags-input/index.js +1 -1
  123. package/dist/tags-input/tags-input-anatomy.d.ts +1 -0
  124. package/dist/tags-input/tags-input-anatomy.js +1 -0
  125. package/dist/time-picker/index.d.ts +2 -1
  126. package/dist/time-picker/index.js +1 -1
  127. package/dist/time-picker/time-picker-anatomy.d.ts +1 -0
  128. package/dist/time-picker/time-picker-anatomy.js +1 -0
  129. package/dist/timer/index.d.ts +1 -1
  130. package/dist/timer/index.js +1 -1
  131. package/dist/timer/timer-anatomy.d.ts +1 -0
  132. package/dist/timer/timer-anatomy.js +1 -0
  133. package/dist/toast/index.d.ts +1 -1
  134. package/dist/toast/index.js +1 -1
  135. package/dist/toast/toast-anatomy.d.ts +1 -0
  136. package/dist/toast/toast-anatomy.js +1 -0
  137. package/dist/toggle/create-toggle.svelte.js +1 -1
  138. package/dist/toggle/index.d.ts +1 -1
  139. package/dist/toggle/index.js +1 -1
  140. package/dist/toggle-group/index.d.ts +1 -1
  141. package/dist/toggle-group/index.js +1 -1
  142. package/dist/toggle-group/toggle-group-anatomy.d.ts +1 -0
  143. package/dist/toggle-group/toggle-group-anatomy.js +1 -0
  144. package/dist/tooltip/index.d.ts +1 -1
  145. package/dist/tooltip/index.js +1 -1
  146. package/dist/tooltip/tooltip-anatomy.d.ts +1 -0
  147. package/dist/tooltip/tooltip-anatomy.js +1 -0
  148. package/dist/tour/index.d.ts +1 -1
  149. package/dist/tree-view/index.d.ts +1 -1
  150. package/dist/tree-view/index.js +1 -1
  151. package/dist/tree-view/tree-view-anatomy.d.ts +1 -0
  152. package/dist/tree-view/tree-view-anatomy.js +1 -0
  153. package/package.json +5 -1
  154. /package/dist/toggle/{anatomy.d.ts → toggle-anatomy.d.ts} +0 -0
  155. /package/dist/toggle/{anatomy.js → toggle-anatomy.js} +0 -0
@@ -4,5 +4,5 @@ export type { RatingGroupHiddenInputProps } from './rating-group-hidden-input.sv
4
4
  export type { RatingGroupItemProps } from './rating-group-item.svelte';
5
5
  export type { RatingGroupLabelProps } from './rating-group-label.svelte';
6
6
  export type { RatingGroupProps } from './rating-group-root.svelte';
7
- export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
7
+ export { anatomy as ratingGroupAnatomy } from './rating-group-anatomy.js';
8
8
  export { getRatingGroupContext } from './rating-group-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as RatingGroup from './rating-group.js';
2
- export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
2
+ export { anatomy as ratingGroupAnatomy } from './rating-group-anatomy.js';
3
3
  export { getRatingGroupContext } from './rating-group-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/rating-group';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/rating-group';
@@ -15,7 +15,7 @@ export function createSegmentGroup(props) {
15
15
  getRootNode: environment?.getRootNode,
16
16
  ...props,
17
17
  }));
18
- const [state, send] = useMachine(segmentGroup.machine(context));
18
+ const [state, send] = useMachine(segmentGroup.machine(context), { context });
19
19
  return reflect(() => {
20
20
  const o = segmentGroup.connect(state, send, normalizeProps);
21
21
  return {
@@ -1,2 +1,2 @@
1
- export declare const anatomy: import("@zag-js/anatomy").Anatomy<"label" | "root" | "indicator" | "item" | "itemText" | "itemControl">;
2
- export declare const parts: Record<"label" | "root" | "indicator" | "item" | "itemText" | "itemControl", import("@zag-js/anatomy").AnatomyPart>;
1
+ export declare const anatomy: import("@zag-js/anatomy").Anatomy<"root" | "indicator" | "item" | "label" | "itemText" | "itemControl">;
2
+ export declare const parts: Record<"root" | "indicator" | "item" | "label" | "itemText" | "itemControl", import("@zag-js/anatomy").AnatomyPart>;
@@ -15,5 +15,5 @@ export type { SelectPositionerProps } from './select-positioner.svelte';
15
15
  export type { SelectProps } from './select-root.svelte';
16
16
  export type { SelectTriggerProps } from './select-trigger.svelte';
17
17
  export type { SelectValueTextProps } from './select-value-text.svelte';
18
- export { anatomy as selectAnatomy } from '@zag-js/select';
18
+ export { anatomy as selectAnatomy } from './select-anatomy.js';
19
19
  export { getSelectContext } from './select-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Select from './select.js';
2
- export { anatomy as selectAnatomy } from '@zag-js/select';
2
+ export { anatomy as selectAnatomy } from './select-anatomy.js';
3
3
  export { getSelectContext } from './select-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/select';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/select';
@@ -8,5 +8,5 @@ export type { SignaturePadLabelProps } from './signature-pad-label.svelte';
8
8
  export type { SignaturePadProps } from './signature-pad-root.svelte';
9
9
  export type { SignaturePadSegmentPathProps } from './signature-pad-segment-path.svelte';
10
10
  export type { SignaturePadSegmentProps } from './signature-pad-segment.svelte';
11
- export { anatomy as signaturePadAnatomy } from '@zag-js/signature-pad';
11
+ export { anatomy as signaturePadAnatomy } from './signature-pad-anatomy.js';
12
12
  export { getSignaturePadContext } from './signature-pad-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as SignaturePad from './signature-pad.js';
2
- export { anatomy as signaturePadAnatomy } from '@zag-js/signature-pad';
2
+ export { anatomy as signaturePadAnatomy } from './signature-pad-anatomy.js';
3
3
  export { getSignaturePadContext } from './signature-pad-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/signature-pad';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/signature-pad';
@@ -10,5 +10,5 @@ export type { SliderProps } from './slider-root.svelte';
10
10
  export type { SliderThumbProps } from './slider-thumb.svelte';
11
11
  export type { SliderTrackProps } from './slider-track.svelte';
12
12
  export type { SliderValueTextProps } from './slider-value-text.svelte';
13
- export { anatomy as sliderAnatomy } from '@zag-js/slider';
13
+ export { anatomy as sliderAnatomy } from './slider-anatomy.js';
14
14
  export { getSliderContext } from './slider-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Slider from './slider.js';
2
- export { anatomy as sliderAnatomy } from '@zag-js/slider';
2
+ export { anatomy as sliderAnatomy } from './slider-anatomy.js';
3
3
  export { getSliderContext } from './slider-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/slider';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/slider';
@@ -2,5 +2,5 @@ export * as Splitter from './splitter.js';
2
2
  export type { SplitterPanelProps } from './splitter-panel.svelte';
3
3
  export type { SplitterResizeTriggerProps } from './splitter-resize-trigger.svelte';
4
4
  export type { SplitterProps } from './splitter-root.svelte';
5
- export { anatomy as splitterAnatomy } from '@zag-js/splitter';
5
+ export { anatomy as splitterAnatomy } from './splitter-anatomy.js';
6
6
  export { getSplitterContext } from './splitter-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Splitter from './splitter.js';
2
- export { anatomy as splitterAnatomy } from '@zag-js/splitter';
2
+ export { anatomy as splitterAnatomy } from './splitter-anatomy.js';
3
3
  export { getSplitterContext } from './splitter-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/splitter';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/splitter';
@@ -10,5 +10,5 @@ export type { StepsProgressProps } from './steps-progress.svelte';
10
10
  export type { StepsProps } from './steps-root.svelte';
11
11
  export type { StepsSeparatorProps } from './steps-separator.svelte';
12
12
  export type { StepsTriggerProps } from './steps-trigger.svelte';
13
- export { anatomy as stepsAnatomy } from '@zag-js/steps';
13
+ export { anatomy as stepsAnatomy } from './steps-anatomy.js';
14
14
  export { getStepsContext } from './steps-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Steps from './steps.js';
2
- export { anatomy as stepsAnatomy } from '@zag-js/steps';
2
+ export { anatomy as stepsAnatomy } from './steps-anatomy.js';
3
3
  export { getStepsContext } from './steps-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/steps';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/steps';
@@ -4,5 +4,5 @@ export type { SwitchHiddenInputProps } from './switch-hidden-input.svelte';
4
4
  export type { SwitchLabelProps } from './switch-label.svelte';
5
5
  export type { SwitchProps } from './switch-root.svelte';
6
6
  export type { SwitchThumbProps } from './switch-thumb.svelte';
7
- export { anatomy as switchAnatomy } from '@zag-js/switch';
7
+ export { anatomy as switchAnatomy } from './switch-anatomy.js';
8
8
  export { getSwitchContext } from './switch-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Switch from './switch.js';
2
- export { anatomy as switchAnatomy } from '@zag-js/switch';
2
+ export { anatomy as switchAnatomy } from './switch-anatomy.js';
3
3
  export { getSwitchContext } from './switch-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/switch';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/switch';
@@ -4,5 +4,5 @@ export type { TabsIndicatorProps } from './tabs-indicator.svelte';
4
4
  export type { TabsListProps } from './tabs-list.svelte';
5
5
  export type { TabsProps } from './tabs-root.svelte';
6
6
  export type { TabsTriggerProps } from './tabs-trigger.svelte';
7
- export { anatomy as tabsAnatomy } from '@zag-js/tabs';
7
+ export { anatomy as tabsAnatomy } from './tabs-anatomy.js';
8
8
  export { getTabsContext } from './tabs-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Tabs from './tabs.js';
2
- export { anatomy as tabsAnatomy } from '@zag-js/tabs';
2
+ export { anatomy as tabsAnatomy } from './tabs-anatomy.js';
3
3
  export { getTabsContext } from './tabs-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tabs';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tabs';
@@ -10,5 +10,5 @@ export type { TagsInputItemTextProps } from './tags-input-item-text.svelte';
10
10
  export type { TagsInputItemProps } from './tags-input-item.svelte';
11
11
  export type { TagsInputLabelProps } from './tags-input-label.svelte';
12
12
  export type { TagsInputProps } from './tags-input-root.svelte';
13
- export { anatomy as tagsInputAnatomy } from '@zag-js/tags-input';
13
+ export { anatomy as tagsInputAnatomy } from './tags-input-anatomy.js';
14
14
  export { getTagsInputContext } from './tags-input-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as TagsInput from './tags-input.js';
2
- export { anatomy as tagsInputAnatomy } from '@zag-js/tags-input';
2
+ export { anatomy as tagsInputAnatomy } from './tags-input-anatomy.js';
3
3
  export { getTagsInputContext } from './tags-input-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tags-input';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tags-input';
@@ -1,4 +1,5 @@
1
1
  export * as TimePicker from './time-picker.js';
2
+ export type { Time } from '@zag-js/time-picker';
2
3
  export type { TimePickerClearTriggerProps } from './time-picker-clear-trigger.svelte';
3
4
  export type { TimePickerColumnProps } from './time-picker-column.svelte';
4
5
  export type { TimePickerContentProps } from './time-picker-content.svelte';
@@ -13,5 +14,5 @@ export type { TimePickerProps } from './time-picker-root.svelte';
13
14
  export type { TimePickerSecondCellProps } from './time-picker-second-cell.svelte';
14
15
  export type { TimePickerSpacerProps } from './time-picker-spacer.svelte';
15
16
  export type { TimePickerTriggerProps } from './time-picker-trigger.svelte';
16
- export { anatomy as timePickerAnatomy, type Time } from '@zag-js/time-picker';
17
+ export { anatomy as timePickerAnatomy } from './time-picker-anatomy.js';
17
18
  export { getTimePickerContext } from './time-picker-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as TimePicker from './time-picker.js';
2
- export { anatomy as timePickerAnatomy } from '@zag-js/time-picker';
2
+ export { anatomy as timePickerAnatomy } from './time-picker-anatomy.js';
3
3
  export { getTimePickerContext } from './time-picker-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/time-picker';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/time-picker';
@@ -7,5 +7,5 @@ export type { TimerItemValueProps } from './timer-item-value.svelte';
7
7
  export type { TimerItemProps } from './timer-item.svelte';
8
8
  export type { TimerProps } from './timer-root.svelte';
9
9
  export type { TimerSeparatorProps } from './timer-separator.svelte';
10
- export { anatomy as timerAnatomy } from '@zag-js/timer';
10
+ export { anatomy as timerAnatomy } from './timer-anatomy.js';
11
11
  export { getTimerContext } from './timer-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Timer from './timer.js';
2
- export { anatomy as timerAnatomy } from '@zag-js/timer';
2
+ export { anatomy as timerAnatomy } from './timer-anatomy.js';
3
3
  export { getTimerContext } from './timer-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/timer';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/timer';
@@ -6,7 +6,7 @@ export type { ToastGhostAfterProps } from './toast-ghost-after.svelte';
6
6
  export type { ToastGhostBeforeProps } from './toast-ghost-before.svelte';
7
7
  export type { ToastProps } from './toast-root.svelte';
8
8
  export type { ToastTitleProps } from './toast-title.svelte';
9
- export { anatomy as toastAnatomy } from '@zag-js/toast';
9
+ export { anatomy as toastAnatomy } from './toast-anatomy.js';
10
10
  export { getToastContext } from './toast-context.svelte.js';
11
11
  export { createToaster, type CreateToasterProps, type CreateToasterReturn, } from './create-toaster.svelte.js';
12
12
  export { default as Toaster, type ToasterProps } from './toaster.svelte';
@@ -1,5 +1,5 @@
1
1
  export * as Toast from './toast.js';
2
- export { anatomy as toastAnatomy } from '@zag-js/toast';
2
+ export { anatomy as toastAnatomy } from './toast-anatomy.js';
3
3
  export { getToastContext } from './toast-context.svelte.js';
4
4
  export { createToaster, } from './create-toaster.svelte.js';
5
5
  export { default as Toaster } from './toaster.svelte';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/toast';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/toast';
@@ -1,6 +1,6 @@
1
1
  import { ariaAttr, dataAttr } from '@zag-js/dom-query';
2
2
  import { reflect } from '@zag-js/svelte';
3
- import { parts } from './anatomy.js';
3
+ import { parts } from './toggle-anatomy.js';
4
4
  export function createToggle(props) {
5
5
  let pressed = $state(props.pressed ?? false);
6
6
  function setPressed(value) {
@@ -1,3 +1,3 @@
1
1
  export * as Toggle from './toggle.js';
2
2
  export type { ToggleProps } from './toggle-root.svelte';
3
- export { anatomy as toggleAnatomy } from './anatomy.js';
3
+ export { anatomy as toggleAnatomy } from './toggle-anatomy.js';
@@ -1,2 +1,2 @@
1
1
  export * as Toggle from './toggle.js';
2
- export { anatomy as toggleAnatomy } from './anatomy.js';
2
+ export { anatomy as toggleAnatomy } from './toggle-anatomy.js';
@@ -1,5 +1,5 @@
1
1
  export * as ToggleGroup from './toggle-group.js';
2
2
  export type { ToggleGroupItemProps } from './toggle-group-item.svelte';
3
3
  export type { ToggleGroupProps } from './toggle-group-root.svelte';
4
- export { anatomy as toggleGroupAnatomy } from '@zag-js/toggle-group';
4
+ export { anatomy as toggleGroupAnatomy } from './toggle-group-anatomy.js';
5
5
  export { getToggleGroupContext } from './toggle-group-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as ToggleGroup from './toggle-group.js';
2
- export { anatomy as toggleGroupAnatomy } from '@zag-js/toggle-group';
2
+ export { anatomy as toggleGroupAnatomy } from './toggle-group-anatomy.js';
3
3
  export { getToggleGroupContext } from './toggle-group-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/toggle-group';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/toggle-group';
@@ -5,5 +5,5 @@ export type { TooltipContentProps } from './tooltip-content.svelte';
5
5
  export type { TooltipPositionerProps } from './tooltip-positioner.svelte';
6
6
  export type { TooltipProps } from './tooltip-root.svelte';
7
7
  export type { TooltipTriggerProps } from './tooltip-trigger.svelte';
8
- export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
8
+ export { anatomy as tooltipAnatomy } from './tooltip-anatomy.js';
9
9
  export { getTooltipContext } from './tooltip-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as Tooltip from './tooltip.js';
2
- export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
2
+ export { anatomy as tooltipAnatomy } from './tooltip-anatomy.js';
3
3
  export { getTooltipContext } from './tooltip-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tooltip';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tooltip';
@@ -1,4 +1,5 @@
1
1
  export * as Tour from './tour.js';
2
+ export type { TourStepDetails } from './create-tour.svelte.js';
2
3
  export type { TourActionTriggerProps } from './tour-action-trigger.svelte';
3
4
  export type { TourArrowTipProps } from './tour-arrow-tip.svelte';
4
5
  export type { TourArrowProps } from './tour-arrow.svelte';
@@ -12,6 +13,5 @@ export type { TourProps } from './tour-root.svelte';
12
13
  export type { TourSpotlightProps } from './tour-spotlight.svelte';
13
14
  export type { TourTitleProps } from './tour-title.svelte';
14
15
  export type { TourTriggerProps } from './tour-trigger.svelte';
15
- export type { TourStepDetails } from './create-tour.svelte.js';
16
16
  export { anatomy as tourAnatomy } from './tour-anatomy.js';
17
17
  export { getTourContext } from './tour-context.svelte.js';
@@ -12,6 +12,6 @@ export type { TreeViewItemProps } from './tree-view-item.svelte';
12
12
  export type { TreeViewLabelProps } from './tree-view-label.svelte';
13
13
  export type { TreeViewProps } from './tree-view-root.svelte';
14
14
  export type { TreeViewTreeProps } from './tree-view-tree.svelte';
15
- export { anatomy as treeViewAnatomy } from '@zag-js/tree-view';
15
+ export { anatomy as treeViewAnatomy } from './tree-view-anatomy.js';
16
16
  export { getTreeViewContext } from './tree-view-context.svelte.js';
17
17
  export type { NodeProps } from './types.js';
@@ -1,3 +1,3 @@
1
1
  export * as TreeView from './tree-view.js';
2
- export { anatomy as treeViewAnatomy } from '@zag-js/tree-view';
2
+ export { anatomy as treeViewAnatomy } from './tree-view-anatomy.js';
3
3
  export { getTreeViewContext } from './tree-view-context.svelte.js';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tree-view';
@@ -0,0 +1 @@
1
+ export { anatomy } from '@zag-js/tree-view';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
4
  "license": "MIT",
5
- "version": "0.14.0",
5
+ "version": "0.15.0",
6
6
  "packageManager": "pnpm@9.12.3",
7
7
  "svelte": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
@@ -210,6 +210,10 @@
210
210
  "./tree-view": {
211
211
  "types": "./dist/tree-view/index.d.ts",
212
212
  "svelte": "./dist/tree-view/index.js"
213
+ },
214
+ "./anatomy": {
215
+ "types": "./dist/anatomy.d.ts",
216
+ "import": "./dist/anatomy.js"
213
217
  }
214
218
  },
215
219
  "files": [
File without changes