ui-ingredients 0.0.65 → 0.0.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (441) hide show
  1. package/README.md +0 -2
  2. package/dist/accordion/accordion-item-content.svelte +3 -3
  3. package/dist/accordion/accordion-item-indicator.svelte +1 -1
  4. package/dist/accordion/accordion-item-trigger.svelte +1 -1
  5. package/dist/accordion/accordion-item.svelte +1 -1
  6. package/dist/accordion/accordion-root.svelte +1 -1
  7. package/dist/accordion/avatar-context.svelte.d.ts +2 -2
  8. package/dist/accordion/create-accordion.svelte.d.ts +1 -1
  9. package/dist/avatar/avatar-context.svelte.d.ts +1 -1
  10. package/dist/avatar/avatar-fallback.svelte +1 -1
  11. package/dist/avatar/avatar-image.svelte +1 -1
  12. package/dist/avatar/avatar-root.svelte +1 -1
  13. package/dist/avatar/create-avatar.svelte.d.ts +1 -1
  14. package/dist/carousel/carousel-context.svelte.d.ts +1 -1
  15. package/dist/carousel/carousel-indicator-group.svelte +1 -1
  16. package/dist/carousel/carousel-indicator.svelte +1 -1
  17. package/dist/carousel/carousel-item-group.svelte +1 -1
  18. package/dist/carousel/carousel-item.svelte +1 -1
  19. package/dist/carousel/carousel-next-trigger.svelte +1 -1
  20. package/dist/carousel/carousel-prev-trigger.svelte +1 -1
  21. package/dist/carousel/carousel-root.svelte +1 -1
  22. package/dist/carousel/carousel-viewport.svelte +1 -1
  23. package/dist/carousel/create-carousel.svelte.d.ts +1 -1
  24. package/dist/checkbox/checkbox-context.svelte.d.ts +1 -1
  25. package/dist/checkbox/checkbox-control.svelte +1 -1
  26. package/dist/checkbox/checkbox-hidden-input.svelte +1 -1
  27. package/dist/checkbox/checkbox-indicator.svelte +1 -1
  28. package/dist/checkbox/checkbox-label.svelte +1 -1
  29. package/dist/checkbox/checkbox-root.svelte +1 -1
  30. package/dist/checkbox/create-checkbox.svelte.d.ts +1 -1
  31. package/dist/clipboard/clipboard-context.svelte.d.ts +1 -1
  32. package/dist/clipboard/clipboard-control.svelte +1 -1
  33. package/dist/clipboard/clipboard-indicator.svelte +1 -1
  34. package/dist/clipboard/clipboard-input.svelte +1 -1
  35. package/dist/clipboard/clipboard-label.svelte +1 -1
  36. package/dist/clipboard/clipboard-root.svelte +1 -1
  37. package/dist/clipboard/clipboard-trigger.svelte +1 -1
  38. package/dist/clipboard/create-clipboard.svelte.d.ts +1 -1
  39. package/dist/collapsible/collapsible-content.svelte +19 -8
  40. package/dist/collapsible/collapsible-content.svelte.d.ts +2 -1
  41. package/dist/collapsible/collapsible-context.svelte.d.ts +1 -1
  42. package/dist/collapsible/collapsible-root.svelte +24 -5
  43. package/dist/collapsible/collapsible-root.svelte.d.ts +2 -1
  44. package/dist/collapsible/collapsible-trigger.svelte +1 -2
  45. package/dist/color-picker/color-picker-area-background.svelte +1 -1
  46. package/dist/color-picker/color-picker-area-thumb.svelte +1 -1
  47. package/dist/color-picker/color-picker-area.svelte +1 -1
  48. package/dist/color-picker/color-picker-channel-input.svelte +1 -1
  49. package/dist/color-picker/color-picker-channel-slider-label.svelte +1 -1
  50. package/dist/color-picker/color-picker-channel-slider-thumb.svelte +1 -1
  51. package/dist/color-picker/color-picker-channel-slider-track.svelte +1 -1
  52. package/dist/color-picker/color-picker-channel-slider-value-text.svelte +5 -2
  53. package/dist/color-picker/color-picker-channel-slider.svelte +1 -1
  54. package/dist/color-picker/color-picker-content.svelte +3 -3
  55. package/dist/color-picker/color-picker-context.svelte.d.ts +6 -8
  56. package/dist/color-picker/color-picker-control.svelte +1 -1
  57. package/dist/color-picker/color-picker-eye-dropper-trigger.svelte +1 -1
  58. package/dist/color-picker/color-picker-format-select.svelte +1 -1
  59. package/dist/color-picker/color-picker-format-trigger.svelte +1 -1
  60. package/dist/color-picker/color-picker-hidden-input.svelte +1 -1
  61. package/dist/color-picker/color-picker-label.svelte +1 -1
  62. package/dist/color-picker/color-picker-positioner.svelte +1 -1
  63. package/dist/color-picker/color-picker-root.svelte +1 -1
  64. package/dist/color-picker/color-picker-swatch-group.svelte +1 -1
  65. package/dist/color-picker/color-picker-swatch-indicator.svelte +1 -1
  66. package/dist/color-picker/color-picker-swatch-trigger.svelte +1 -1
  67. package/dist/color-picker/color-picker-swatch.svelte +1 -1
  68. package/dist/color-picker/color-picker-transparency-grid.svelte +1 -1
  69. package/dist/color-picker/color-picker-trigger.svelte +1 -1
  70. package/dist/color-picker/color-picker-value-swatch.svelte +1 -1
  71. package/dist/color-picker/color-picker-value-text.svelte +1 -1
  72. package/dist/color-picker/color-picker-view.svelte +1 -1
  73. package/dist/combobox/combobox-clear-trigger.svelte +1 -1
  74. package/dist/combobox/combobox-content.svelte +3 -3
  75. package/dist/combobox/combobox-context.svelte.d.ts +3 -3
  76. package/dist/combobox/combobox-control.svelte +1 -1
  77. package/dist/combobox/combobox-input.svelte +1 -3
  78. package/dist/combobox/combobox-item-group-label.svelte +1 -1
  79. package/dist/combobox/combobox-item-group.svelte +1 -1
  80. package/dist/combobox/combobox-item-indicator.svelte +1 -1
  81. package/dist/combobox/combobox-item-text.svelte +1 -1
  82. package/dist/combobox/combobox-item.svelte +1 -1
  83. package/dist/combobox/combobox-label.svelte +1 -1
  84. package/dist/combobox/combobox-list.svelte +1 -1
  85. package/dist/combobox/combobox-positioner.svelte +1 -1
  86. package/dist/combobox/combobox-root.svelte +1 -1
  87. package/dist/combobox/combobox-trigger.svelte +1 -1
  88. package/dist/create-context.svelte.d.ts +7 -4
  89. package/dist/create-context.svelte.js +26 -15
  90. package/dist/date-picker/date-picker-clear-trigger.svelte +1 -1
  91. package/dist/date-picker/date-picker-content.svelte +3 -3
  92. package/dist/date-picker/date-picker-context.svelte.d.ts +5 -5
  93. package/dist/date-picker/date-picker-control.svelte +1 -1
  94. package/dist/date-picker/date-picker-day-table-cell-trigger.svelte +1 -1
  95. package/dist/date-picker/date-picker-day-table-cell.svelte +1 -1
  96. package/dist/date-picker/date-picker-input.svelte +1 -1
  97. package/dist/date-picker/date-picker-label.svelte +1 -1
  98. package/dist/date-picker/date-picker-month-select.svelte +1 -1
  99. package/dist/date-picker/date-picker-month-table-cell-trigger.svelte +1 -1
  100. package/dist/date-picker/date-picker-month-table-cell.svelte +1 -1
  101. package/dist/date-picker/date-picker-next-trigger.svelte +1 -1
  102. package/dist/date-picker/date-picker-positioner.svelte +1 -1
  103. package/dist/date-picker/date-picker-preset-trigger.svelte +1 -1
  104. package/dist/date-picker/date-picker-prev-trigger.svelte +1 -1
  105. package/dist/date-picker/date-picker-range-text.svelte +1 -1
  106. package/dist/date-picker/date-picker-root.svelte +1 -1
  107. package/dist/date-picker/date-picker-table-body.svelte +1 -1
  108. package/dist/date-picker/date-picker-table-head.svelte +1 -1
  109. package/dist/date-picker/date-picker-table-header.svelte +1 -1
  110. package/dist/date-picker/date-picker-table-row.svelte +1 -1
  111. package/dist/date-picker/date-picker-table.svelte +1 -1
  112. package/dist/date-picker/date-picker-trigger.svelte +1 -1
  113. package/dist/date-picker/date-picker-view-control.svelte +1 -1
  114. package/dist/date-picker/date-picker-view-trigger.svelte +1 -1
  115. package/dist/date-picker/date-picker-view.svelte +1 -1
  116. package/dist/date-picker/date-picker-year-select.svelte +1 -1
  117. package/dist/date-picker/date-picker-year-table-cell-trigger.svelte +1 -1
  118. package/dist/date-picker/date-picker-year-table-cell.svelte +1 -1
  119. package/dist/dialog/dialog-backdrop.svelte +3 -3
  120. package/dist/dialog/dialog-close-trigger.svelte +1 -1
  121. package/dist/dialog/dialog-content.svelte +3 -3
  122. package/dist/dialog/dialog-context.svelte.d.ts +1 -1
  123. package/dist/dialog/dialog-description.svelte +1 -1
  124. package/dist/dialog/dialog-positioner.svelte +1 -1
  125. package/dist/dialog/dialog-title.svelte +1 -1
  126. package/dist/dialog/dialog-trigger.svelte +1 -1
  127. package/dist/editable/editable-area.svelte +1 -1
  128. package/dist/editable/editable-cancel-trigger.svelte +1 -1
  129. package/dist/editable/editable-context.svelte.d.ts +1 -1
  130. package/dist/editable/editable-control.svelte +1 -1
  131. package/dist/editable/editable-edit-trigger.svelte +1 -1
  132. package/dist/editable/editable-input.svelte +1 -1
  133. package/dist/editable/editable-label.svelte +1 -1
  134. package/dist/editable/editable-preview.svelte +1 -1
  135. package/dist/editable/editable-root.svelte +1 -1
  136. package/dist/editable/editable-submit-trigger.svelte +1 -1
  137. package/dist/environment-provider/enviroment-provider-context.svelte.d.ts +1 -1
  138. package/dist/field/create-field.svelte.d.ts +1 -1
  139. package/dist/field/field-context.svelte.d.ts +1 -1
  140. package/dist/field/field-error-text.svelte +3 -1
  141. package/dist/field/field-helper-text.svelte +3 -1
  142. package/dist/field/field-input.svelte +1 -1
  143. package/dist/field/field-label.svelte +1 -1
  144. package/dist/field/field-root.svelte +1 -1
  145. package/dist/field/field-select.svelte +1 -1
  146. package/dist/field/field-textarea.svelte +3 -1
  147. package/dist/file-upload/create-file-upload.svelte.d.ts +1 -1
  148. package/dist/file-upload/file-upload-clear-trigger.svelte +1 -1
  149. package/dist/file-upload/file-upload-context.svelte.d.ts +2 -2
  150. package/dist/file-upload/file-upload-dropzone.svelte +1 -1
  151. package/dist/file-upload/file-upload-hidden-input.svelte +1 -1
  152. package/dist/file-upload/file-upload-item-delete-trigger.svelte +1 -1
  153. package/dist/file-upload/file-upload-item-group.svelte +1 -1
  154. package/dist/file-upload/file-upload-item-name.svelte +1 -1
  155. package/dist/file-upload/file-upload-item-preview-image.svelte +1 -1
  156. package/dist/file-upload/file-upload-item-preview.svelte +1 -1
  157. package/dist/file-upload/file-upload-item-size-text.svelte +1 -1
  158. package/dist/file-upload/file-upload-item.svelte +1 -1
  159. package/dist/file-upload/file-upload-label.svelte +1 -1
  160. package/dist/file-upload/file-upload-root.svelte +1 -1
  161. package/dist/file-upload/file-upload-trigger.svelte +1 -1
  162. package/dist/floating-panel/create-floating-panel.svelte.d.ts +1 -1
  163. package/dist/floating-panel/floating-panel-body.svelte +1 -1
  164. package/dist/floating-panel/floating-panel-close-trigger.svelte +1 -1
  165. package/dist/floating-panel/floating-panel-content.svelte +3 -3
  166. package/dist/floating-panel/floating-panel-context.svelte.d.ts +1 -1
  167. package/dist/floating-panel/floating-panel-drag-trigger.svelte +1 -1
  168. package/dist/floating-panel/floating-panel-header.svelte +1 -1
  169. package/dist/floating-panel/floating-panel-maximize-trigger.svelte +1 -1
  170. package/dist/floating-panel/floating-panel-minimize-trigger.svelte +1 -1
  171. package/dist/floating-panel/floating-panel-positioner.svelte +1 -1
  172. package/dist/floating-panel/floating-panel-resize-trigger.svelte +1 -1
  173. package/dist/floating-panel/floating-panel-restore-trigger.svelte +1 -1
  174. package/dist/floating-panel/floating-panel-title.svelte +1 -1
  175. package/dist/floating-panel/floating-panel-trigger.svelte +1 -1
  176. package/dist/hover-card/hover-card-arrow-tip.svelte +1 -1
  177. package/dist/hover-card/hover-card-arrow.svelte +1 -1
  178. package/dist/hover-card/hover-card-content.svelte +3 -3
  179. package/dist/hover-card/hover-card-context.svelte.d.ts +1 -1
  180. package/dist/hover-card/hover-card-positioner.svelte +1 -1
  181. package/dist/hover-card/hover-card-trigger.svelte +1 -1
  182. package/dist/is-pojo.d.ts +2 -0
  183. package/dist/{is-object.js → is-pojo.js} +1 -1
  184. package/dist/locale-provider/local-provider-context.svelte.d.ts +1 -1
  185. package/dist/menu/menu-arrow-tip.svelte +1 -1
  186. package/dist/menu/menu-arrow.svelte +1 -1
  187. package/dist/menu/menu-content.svelte +3 -3
  188. package/dist/menu/menu-context-trigger.svelte +1 -1
  189. package/dist/menu/menu-context.svelte.d.ts +5 -5
  190. package/dist/menu/menu-indicator.svelte +1 -1
  191. package/dist/menu/menu-item-group-label.svelte +2 -2
  192. package/dist/menu/menu-item-group.svelte +1 -1
  193. package/dist/menu/menu-item.svelte +2 -2
  194. package/dist/menu/menu-option-item-indicator.svelte +1 -1
  195. package/dist/menu/menu-option-item-text.svelte +1 -1
  196. package/dist/menu/menu-option-item.svelte +2 -2
  197. package/dist/menu/menu-positioner.svelte +1 -1
  198. package/dist/menu/menu-separator.svelte +1 -1
  199. package/dist/menu/menu-trigger-item.svelte +1 -1
  200. package/dist/menu/menu-trigger.svelte +1 -1
  201. package/dist/merge-props.js +2 -2
  202. package/dist/number-input/create-number-input.svelte.d.ts +1 -1
  203. package/dist/number-input/number-input-context.svelte.d.ts +1 -1
  204. package/dist/number-input/number-input-control.svelte +1 -1
  205. package/dist/number-input/number-input-decrement-trigger.svelte +1 -1
  206. package/dist/number-input/number-input-increment-trigger.svelte +1 -1
  207. package/dist/number-input/number-input-input.svelte +1 -1
  208. package/dist/number-input/number-input-label.svelte +1 -1
  209. package/dist/number-input/number-input-root.svelte +1 -1
  210. package/dist/number-input/number-input-scrubber.svelte +1 -1
  211. package/dist/pagination/create-pagination.svelte.d.ts +1 -1
  212. package/dist/pagination/pagination-context.svelte.d.ts +1 -1
  213. package/dist/pagination/pagination-ellipsis.svelte +1 -1
  214. package/dist/pagination/pagination-item.svelte +1 -1
  215. package/dist/pagination/pagination-next-trigger.svelte +1 -1
  216. package/dist/pagination/pagination-prev-trigger.svelte +1 -1
  217. package/dist/pagination/pagination-root.svelte +1 -1
  218. package/dist/pin-input/create-pin-input.svelte.d.ts +3 -3
  219. package/dist/pin-input/pin-input-clear-trigger.svelte +2 -2
  220. package/dist/pin-input/pin-input-context.svelte.d.ts +1 -1
  221. package/dist/pin-input/pin-input-hidden-input.svelte +1 -1
  222. package/dist/pin-input/pin-input-input.svelte +1 -1
  223. package/dist/pin-input/pin-input-label.svelte +1 -1
  224. package/dist/pin-input/pin-input-root.svelte +1 -1
  225. package/dist/popover/popover-arrow-tip.svelte +1 -1
  226. package/dist/popover/popover-arrow.svelte +1 -1
  227. package/dist/popover/popover-close-trigger.svelte +1 -1
  228. package/dist/popover/popover-content.svelte +3 -3
  229. package/dist/popover/popover-context.svelte.d.ts +1 -1
  230. package/dist/popover/popover-description.svelte +1 -1
  231. package/dist/popover/popover-positioner.svelte +1 -1
  232. package/dist/popover/popover-title.svelte +1 -1
  233. package/dist/popover/popover-trigger.svelte +1 -1
  234. package/dist/presence/create-presence.svelte.d.ts +2 -2
  235. package/dist/presence/create-presence.svelte.js +2 -2
  236. package/dist/presence/presence-context.svelte.d.ts +2 -2
  237. package/dist/presence/presence.svelte +3 -3
  238. package/dist/progress/create-progress.svelte.d.ts +1 -1
  239. package/dist/progress/progress-circle-range.svelte +1 -1
  240. package/dist/progress/progress-circle-track.svelte +1 -1
  241. package/dist/progress/progress-circle.svelte +1 -1
  242. package/dist/progress/progress-context.svelte.d.ts +1 -1
  243. package/dist/progress/progress-label.svelte +1 -1
  244. package/dist/progress/progress-range.svelte +1 -1
  245. package/dist/progress/progress-root.svelte +1 -1
  246. package/dist/progress/progress-track.svelte +1 -1
  247. package/dist/progress/progress-value-text.svelte +1 -1
  248. package/dist/progress/progress-view.svelte +1 -1
  249. package/dist/qr-code/create-qr-code.svelte.d.ts +1 -1
  250. package/dist/qr-code/qr-code-context.svelte.d.ts +1 -1
  251. package/dist/qr-code/qr-code-frame.svelte +1 -1
  252. package/dist/qr-code/qr-code-overlay.svelte +1 -1
  253. package/dist/qr-code/qr-code-pattern.svelte +1 -1
  254. package/dist/qr-code/qr-code-root.svelte +1 -1
  255. package/dist/radio-group/create-radio-group.svelte.d.ts +1 -1
  256. package/dist/radio-group/radio-group-context.svelte.d.ts +2 -2
  257. package/dist/radio-group/radio-group-indicator.svelte +1 -1
  258. package/dist/radio-group/radio-group-item-control.svelte +1 -1
  259. package/dist/radio-group/radio-group-item-hidden-input.svelte +1 -1
  260. package/dist/radio-group/radio-group-item-text.svelte +1 -1
  261. package/dist/radio-group/radio-group-item.svelte +1 -1
  262. package/dist/radio-group/radio-group-label.svelte +1 -1
  263. package/dist/radio-group/radio-group-root.svelte +1 -1
  264. package/dist/rating-group/create-rating-group.svelte.d.ts +1 -1
  265. package/dist/rating-group/rating-group-context.svelte.d.ts +1 -1
  266. package/dist/rating-group/rating-group-control.svelte +1 -1
  267. package/dist/rating-group/rating-group-hidden-input.svelte +1 -1
  268. package/dist/rating-group/rating-group-item.svelte +1 -1
  269. package/dist/rating-group/rating-group-label.svelte +1 -1
  270. package/dist/rating-group/rating-group-root.svelte +1 -1
  271. package/dist/segment-group/create-segment-group.svelte.d.ts +1 -1
  272. package/dist/segment-group/segment-group-context.svelte.d.ts +2 -2
  273. package/dist/segment-group/segment-group-indicator.svelte +1 -1
  274. package/dist/segment-group/segment-group-item-control.svelte +1 -1
  275. package/dist/segment-group/segment-group-item-hidden-input.svelte +1 -1
  276. package/dist/segment-group/segment-group-item-text.svelte +1 -1
  277. package/dist/segment-group/segment-group-item.svelte +1 -1
  278. package/dist/segment-group/segment-group-label.svelte +1 -1
  279. package/dist/segment-group/segment-group-root.svelte +1 -1
  280. package/dist/select/select-clear-trigger.svelte +1 -1
  281. package/dist/select/select-content.svelte +3 -3
  282. package/dist/select/select-context.svelte.d.ts +3 -3
  283. package/dist/select/select-control.svelte +1 -1
  284. package/dist/select/select-hidden-select.svelte +1 -1
  285. package/dist/select/select-indicator.svelte +1 -1
  286. package/dist/select/select-item-group-label.svelte +1 -1
  287. package/dist/select/select-item-group.svelte +1 -1
  288. package/dist/select/select-item-indicator.svelte +1 -1
  289. package/dist/select/select-item-text.svelte +1 -1
  290. package/dist/select/select-item.svelte +1 -1
  291. package/dist/select/select-label.svelte +1 -1
  292. package/dist/select/select-list.svelte +1 -1
  293. package/dist/select/select-positioner.svelte +1 -1
  294. package/dist/select/select-root.svelte +1 -1
  295. package/dist/select/select-trigger.svelte +1 -1
  296. package/dist/select/select-value-text.svelte +1 -1
  297. package/dist/signature-pad/create-signature-pad.svelte.d.ts +1 -1
  298. package/dist/signature-pad/signature-pad-clear-trigger.svelte +1 -1
  299. package/dist/signature-pad/signature-pad-context.svelte.d.ts +1 -1
  300. package/dist/signature-pad/signature-pad-control.svelte +1 -1
  301. package/dist/signature-pad/signature-pad-current-segment-path.svelte +1 -1
  302. package/dist/signature-pad/signature-pad-guide.svelte +1 -1
  303. package/dist/signature-pad/signature-pad-hidden-input.svelte +1 -1
  304. package/dist/signature-pad/signature-pad-label.svelte +1 -1
  305. package/dist/signature-pad/signature-pad-root.svelte +1 -1
  306. package/dist/signature-pad/signature-pad-segment-path.svelte +1 -1
  307. package/dist/signature-pad/signature-pad-segment.svelte +1 -1
  308. package/dist/slider/create-slider.svelte.d.ts +1 -1
  309. package/dist/slider/slider-context.svelte.d.ts +2 -2
  310. package/dist/slider/slider-control.svelte +1 -1
  311. package/dist/slider/slider-hidden-input.svelte +1 -1
  312. package/dist/slider/slider-label.svelte +1 -1
  313. package/dist/slider/slider-marker-group.svelte +1 -1
  314. package/dist/slider/slider-marker.svelte +1 -1
  315. package/dist/slider/slider-range.svelte +1 -1
  316. package/dist/slider/slider-root.svelte +1 -1
  317. package/dist/slider/slider-thumb.svelte +1 -1
  318. package/dist/slider/slider-track.svelte +1 -1
  319. package/dist/slider/slider-value-text.svelte +1 -1
  320. package/dist/splitter/create-splitter.svelte.d.ts +1 -1
  321. package/dist/splitter/splitter-context.svelte.d.ts +1 -1
  322. package/dist/splitter/splitter-panel.svelte +1 -1
  323. package/dist/splitter/splitter-resize-trigger.svelte +1 -1
  324. package/dist/splitter/splitter-root.svelte +1 -1
  325. package/dist/steps/create-steps.svelte.d.ts +1 -1
  326. package/dist/steps/steps-completed-content.svelte +1 -1
  327. package/dist/steps/steps-content.svelte +1 -1
  328. package/dist/steps/steps-context.svelte.d.ts +2 -2
  329. package/dist/steps/steps-indicator.svelte +1 -1
  330. package/dist/steps/steps-item.svelte +1 -1
  331. package/dist/steps/steps-list.svelte +1 -1
  332. package/dist/steps/steps-next-trigger.svelte +1 -1
  333. package/dist/steps/steps-prev-trigger.svelte +1 -1
  334. package/dist/steps/steps-progress.svelte +1 -1
  335. package/dist/steps/steps-root.svelte +1 -1
  336. package/dist/steps/steps-separator.svelte +1 -1
  337. package/dist/steps/steps-trigger.svelte +1 -1
  338. package/dist/switch/create-switch.svelte.d.ts +1 -1
  339. package/dist/switch/switch-context.svelte.d.ts +1 -1
  340. package/dist/switch/switch-control.svelte +1 -1
  341. package/dist/switch/switch-hidden-input.svelte +1 -1
  342. package/dist/switch/switch-label.svelte +1 -1
  343. package/dist/switch/switch-root.svelte +1 -1
  344. package/dist/switch/switch-thumb.svelte +1 -1
  345. package/dist/tabs/create-tabs.svelte.d.ts +1 -1
  346. package/dist/tabs/tabs-content.svelte +1 -1
  347. package/dist/tabs/tabs-context.svelte.d.ts +1 -1
  348. package/dist/tabs/tabs-list.svelte +1 -1
  349. package/dist/tabs/tabs-root.svelte +1 -1
  350. package/dist/tabs/tabs-trigger.svelte +1 -1
  351. package/dist/tags-input/create-tags-input.svelte.d.ts +1 -1
  352. package/dist/tags-input/tags-input-clear-trigger.svelte +1 -1
  353. package/dist/tags-input/tags-input-context.svelte.d.ts +2 -2
  354. package/dist/tags-input/tags-input-control.svelte +1 -1
  355. package/dist/tags-input/tags-input-hidden-input.svelte +1 -1
  356. package/dist/tags-input/tags-input-input.svelte +1 -1
  357. package/dist/tags-input/tags-input-item-delete-trigger.svelte +1 -1
  358. package/dist/tags-input/tags-input-item-input.svelte +1 -1
  359. package/dist/tags-input/tags-input-item-preview.svelte +1 -1
  360. package/dist/tags-input/tags-input-item-text.svelte +1 -1
  361. package/dist/tags-input/tags-input-item.svelte +1 -1
  362. package/dist/tags-input/tags-input-label.svelte +1 -1
  363. package/dist/tags-input/tags-input-root.svelte +1 -1
  364. package/dist/time-picker/time-picker-clear-trigger.svelte +1 -1
  365. package/dist/time-picker/time-picker-column.svelte +1 -1
  366. package/dist/time-picker/time-picker-content.svelte +3 -3
  367. package/dist/time-picker/time-picker-context.svelte.d.ts +1 -1
  368. package/dist/time-picker/time-picker-control.svelte +1 -1
  369. package/dist/time-picker/time-picker-hour-cell.svelte +1 -1
  370. package/dist/time-picker/time-picker-input.svelte +1 -1
  371. package/dist/time-picker/time-picker-label.svelte +1 -1
  372. package/dist/time-picker/time-picker-minute-cell.svelte +1 -1
  373. package/dist/time-picker/time-picker-period-cell.svelte +1 -1
  374. package/dist/time-picker/time-picker-positioner.svelte +1 -1
  375. package/dist/time-picker/time-picker-root.svelte +1 -1
  376. package/dist/time-picker/time-picker-second-cell.svelte +1 -1
  377. package/dist/time-picker/time-picker-spacer.svelte +1 -1
  378. package/dist/time-picker/time-picker-trigger.svelte +1 -1
  379. package/dist/timer/create-timer.svelte.d.ts +1 -1
  380. package/dist/timer/timer-action-trigger.svelte +1 -1
  381. package/dist/timer/timer-area.svelte +1 -1
  382. package/dist/timer/timer-context.svelte.d.ts +2 -2
  383. package/dist/timer/timer-control.svelte +1 -1
  384. package/dist/timer/timer-item-label.svelte +1 -1
  385. package/dist/timer/timer-item-value.svelte +1 -1
  386. package/dist/timer/timer-item.svelte +1 -1
  387. package/dist/timer/timer-root.svelte +1 -1
  388. package/dist/timer/timer-separator.svelte +1 -1
  389. package/dist/toast/create-toaster.svelte.d.ts +1 -1
  390. package/dist/toast/toast-action-trigger.svelte +1 -1
  391. package/dist/toast/toast-actor.svelte +3 -3
  392. package/dist/toast/toast-actor.svelte.d.ts +1 -1
  393. package/dist/toast/toast-close-trigger.svelte +1 -1
  394. package/dist/toast/toast-context.svelte.d.ts +1 -1
  395. package/dist/toast/toast-description.svelte +1 -1
  396. package/dist/toast/toast-ghost-after.svelte +1 -1
  397. package/dist/toast/toast-ghost-before.svelte +1 -1
  398. package/dist/toast/toast-root.svelte +1 -1
  399. package/dist/toast/toast-title.svelte +1 -1
  400. package/dist/toast/toaster.svelte +6 -4
  401. package/dist/toggle-group/create-toggle-group.svelte.d.ts +1 -1
  402. package/dist/toggle-group/toggle-group-context.svelte.d.ts +1 -1
  403. package/dist/toggle-group/toggle-group-item.svelte +1 -1
  404. package/dist/toggle-group/toggle-group-root.svelte +1 -1
  405. package/dist/tooltip/tooltip-arrow-tip.svelte +1 -1
  406. package/dist/tooltip/tooltip-arrow.svelte +1 -1
  407. package/dist/tooltip/tooltip-content.svelte +3 -3
  408. package/dist/tooltip/tooltip-context.svelte.d.ts +1 -1
  409. package/dist/tooltip/tooltip-positioner.svelte +1 -1
  410. package/dist/tooltip/tooltip-trigger.svelte +1 -1
  411. package/dist/tour/create-tour.svelte.d.ts +1 -1
  412. package/dist/tour/tour-arrow-tip.svelte +1 -1
  413. package/dist/tour/tour-arrow.svelte +1 -1
  414. package/dist/tour/tour-close-trigger.svelte +1 -1
  415. package/dist/tour/tour-content.svelte +2 -2
  416. package/dist/tour/tour-context.svelte.d.ts +1 -1
  417. package/dist/tour/tour-description.svelte +1 -1
  418. package/dist/tour/tour-next-trigger.svelte +1 -1
  419. package/dist/tour/tour-overlay.svelte +2 -2
  420. package/dist/tour/tour-positioner.svelte +1 -1
  421. package/dist/tour/tour-prev-trigger.svelte +1 -1
  422. package/dist/tour/tour-progress-text.svelte +1 -1
  423. package/dist/tour/tour-skip-trigger.svelte +1 -1
  424. package/dist/tour/tour-spotlight.svelte +1 -1
  425. package/dist/tour/tour-title.svelte +1 -1
  426. package/dist/tree-view/create-tree-view.svelte.d.ts +1 -1
  427. package/dist/tree-view/tree-view-branch-content.svelte +1 -1
  428. package/dist/tree-view/tree-view-branch-control.svelte +1 -1
  429. package/dist/tree-view/tree-view-branch-indicator.svelte +1 -1
  430. package/dist/tree-view/tree-view-branch-text.svelte +1 -1
  431. package/dist/tree-view/tree-view-branch-trigger.svelte +1 -1
  432. package/dist/tree-view/tree-view-branch.svelte +1 -1
  433. package/dist/tree-view/tree-view-context.svelte.d.ts +3 -3
  434. package/dist/tree-view/tree-view-item-indicator.svelte +1 -1
  435. package/dist/tree-view/tree-view-item-text.svelte +1 -1
  436. package/dist/tree-view/tree-view-item.svelte +1 -1
  437. package/dist/tree-view/tree-view-label.svelte +1 -1
  438. package/dist/tree-view/tree-view-root.svelte +1 -1
  439. package/dist/tree-view/tree-view-tree.svelte +1 -1
  440. package/package.json +5 -5
  441. package/dist/is-object.d.ts +0 -2
package/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  Headless component library for [Svelte](https://svelte.dev/) powered by [zag](https://zagjs.com/)
4
4
 
5
- > ⚠️ This project is currently in the early stages of development. You're welcome to use it and we encourage contributions. Please use with caution as it is still evolving!
6
-
7
5
  ## Installation
8
6
 
9
7
  ```bash
@@ -37,18 +37,18 @@
37
37
 
38
38
  let mergedProps = $derived(
39
39
  mergeProps(
40
- props,
41
40
  accordion.getItemContentProps(itemProps),
42
41
  presence.getPresenceProps(),
42
+ props,
43
43
  ),
44
44
  );
45
45
  </script>
46
46
 
47
47
  {#if presence.mounted}
48
48
  {#if asChild}
49
- {@render asChild(presence.ref, mergedProps)}
49
+ {@render asChild(presence.setReference, mergedProps)}
50
50
  {:else}
51
- <div bind:this={ref} use:presence.ref {...mergedProps}>
51
+ <div bind:this={ref} use:presence.setReference {...mergedProps}>
52
52
  {@render children?.()}
53
53
  </div>
54
54
  {/if}
@@ -23,7 +23,7 @@
23
23
  let itemProps = getAccordionItemPropsContext();
24
24
 
25
25
  let mergedProps = $derived(
26
- mergeProps(props, accordion.getItemIndicatorProps(itemProps)),
26
+ mergeProps(accordion.getItemIndicatorProps(itemProps), props),
27
27
  );
28
28
  </script>
29
29
 
@@ -23,7 +23,7 @@
23
23
  let itemProps = getAccordionItemPropsContext();
24
24
 
25
25
  let mergedProps = $derived(
26
- mergeProps(props, accordion.getItemTriggerProps(itemProps)),
26
+ mergeProps(accordion.getItemTriggerProps(itemProps), props),
27
27
  );
28
28
  </script>
29
29
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  let itemState = $derived(accordion.getItemState(itemProps));
34
34
  let mergedProps = $derived(
35
- mergeProps(localProps, accordion.getItemProps(itemProps)),
35
+ mergeProps(accordion.getItemProps(itemProps), localProps),
36
36
  );
37
37
 
38
38
  setAccordionItemPropsContext(() => itemProps);
@@ -51,7 +51,7 @@
51
51
 
52
52
  let accordion = createAccordion(reflect(() => createAccordionProps));
53
53
 
54
- let mergedProps = $derived(mergeProps(localProps, accordion.getRootProps()));
54
+ let mergedProps = $derived(mergeProps(accordion.getRootProps(), localProps));
55
55
 
56
56
  setAccordionContext(accordion);
57
57
  setPresenceStrategyPropsContext(() => presenceStrategyProps);
@@ -1,4 +1,4 @@
1
1
  import type { ItemProps } from '@zag-js/accordion';
2
2
  import type { CreateAccordionReturn } from './create-accordion.svelte.js';
3
- export declare const getAccordionContext: () => CreateAccordionReturn, setAccordionContext: (context: CreateAccordionReturn | (() => CreateAccordionReturn)) => CreateAccordionReturn;
4
- export declare const getAccordionItemPropsContext: () => ItemProps, setAccordionItemPropsContext: (context: ItemProps | (() => ItemProps)) => ItemProps;
3
+ export declare const getAccordionContext: () => CreateAccordionReturn, setAccordionContext: (context: CreateAccordionReturn | (() => CreateAccordionReturn)) => void;
4
+ export declare const getAccordionItemPropsContext: () => ItemProps, setAccordionItemPropsContext: (context: ItemProps | (() => ItemProps)) => void;
@@ -1,6 +1,6 @@
1
1
  import * as accordion from '@zag-js/accordion';
2
2
  export interface CreateAccordionProps extends Omit<accordion.Context, 'id' | 'dir' | 'getRootNode'> {
3
- id?: string | null;
3
+ id?: string;
4
4
  }
5
5
  export interface CreateAccordionReturn extends accordion.Api {
6
6
  }
@@ -1,2 +1,2 @@
1
1
  import type { CreateAvatarReturn } from './create-avatar.svelte.js';
2
- export declare const getAvatarContext: () => CreateAvatarReturn, setAvatarContext: (context: CreateAvatarReturn | (() => CreateAvatarReturn)) => CreateAvatarReturn;
2
+ export declare const getAvatarContext: () => CreateAvatarReturn, setAvatarContext: (context: CreateAvatarReturn | (() => CreateAvatarReturn)) => void;
@@ -18,7 +18,7 @@
18
18
 
19
19
  let avatar = getAvatarContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, avatar.getFallbackProps()));
21
+ let mergedProps = $derived(mergeProps(avatar.getFallbackProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -13,7 +13,7 @@
13
13
 
14
14
  let avatar = getAvatarContext();
15
15
 
16
- let mergedProps = $derived(mergeProps(props, avatar.getImageProps()));
16
+ let mergedProps = $derived(mergeProps(avatar.getImageProps(), props));
17
17
  </script>
18
18
 
19
19
  {#if asChild}
@@ -32,7 +32,7 @@
32
32
 
33
33
  let avatar = createAvatar(reflect(() => createAvatarProps));
34
34
 
35
- let mergedProps = $derived(mergeProps(localProps, avatar.getRootProps()));
35
+ let mergedProps = $derived(mergeProps(avatar.getRootProps(), localProps));
36
36
 
37
37
  setAvatarContext(avatar);
38
38
  </script>
@@ -1,6 +1,6 @@
1
1
  import * as avatar from '@zag-js/avatar';
2
2
  export interface CreateAvatarProps extends Omit<avatar.Context, 'id' | 'dir' | 'getRootNode'> {
3
- id?: string | null;
3
+ id?: string;
4
4
  }
5
5
  export interface CreateAvatarReturn extends avatar.Api {
6
6
  }
@@ -1,2 +1,2 @@
1
1
  import type { CreateCarouselReturn } from './create-carousel.svelte.js';
2
- export declare const getCarouselContext: () => CreateCarouselReturn, setCarouselContext: (context: CreateCarouselReturn | (() => CreateCarouselReturn)) => CreateCarouselReturn;
2
+ export declare const getCarouselContext: () => CreateCarouselReturn, setCarouselContext: (context: CreateCarouselReturn | (() => CreateCarouselReturn)) => void;
@@ -19,7 +19,7 @@
19
19
  let carousel = getCarouselContext();
20
20
 
21
21
  let mergedProps = $derived(
22
- mergeProps(props, carousel.getIndicatorGroupProps()),
22
+ mergeProps(carousel.getIndicatorGroupProps(), props),
23
23
  );
24
24
  </script>
25
25
 
@@ -28,7 +28,7 @@
28
28
  );
29
29
 
30
30
  let mergedProps = $derived(
31
- mergeProps(localProps, carousel.getIndicatorProps(indicatorProps)),
31
+ mergeProps(carousel.getIndicatorProps(indicatorProps), localProps),
32
32
  );
33
33
  </script>
34
34
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  let carousel = getCarouselContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, carousel.getItemGroupProps()));
21
+ let mergedProps = $derived(mergeProps(carousel.getItemGroupProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -29,7 +29,7 @@
29
29
 
30
30
  let itemState = $derived(carousel.getItemState(itemProps));
31
31
  let mergedProps = $derived(
32
- mergeProps(localProps, carousel.getItemProps(itemProps)),
32
+ mergeProps(carousel.getItemProps(itemProps), localProps),
33
33
  );
34
34
  </script>
35
35
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  let carousel = getCarouselContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, carousel.getNextTriggerProps()));
21
+ let mergedProps = $derived(mergeProps(carousel.getNextTriggerProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -18,7 +18,7 @@
18
18
 
19
19
  let carousel = getCarouselContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, carousel.getPrevTriggerProps()));
21
+ let mergedProps = $derived(mergeProps(carousel.getPrevTriggerProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -42,7 +42,7 @@
42
42
 
43
43
  let carousel = createCarousel(reflect(() => createCarouselProps));
44
44
 
45
- let mergedProps = $derived(mergeProps(localProps, carousel.getRootProps()));
45
+ let mergedProps = $derived(mergeProps(carousel.getRootProps(), localProps));
46
46
 
47
47
  setCarouselContext(carousel);
48
48
  </script>
@@ -18,7 +18,7 @@
18
18
 
19
19
  let carousel = getCarouselContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, carousel.getViewportProps()));
21
+ let mergedProps = $derived(mergeProps(carousel.getViewportProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -1,6 +1,6 @@
1
1
  import * as carousel from '@zag-js/carousel';
2
2
  export interface CreateCarouselProps extends Omit<carousel.Context, 'id' | 'dir' | 'getRootNode'> {
3
- id?: string | null;
3
+ id?: string;
4
4
  }
5
5
  export interface CreateCarouselReturn extends carousel.Api {
6
6
  }
@@ -1,2 +1,2 @@
1
1
  import type { CreateCheckboxReturn } from './create-checkbox.svelte.js';
2
- export declare const getCheckboxContext: () => CreateCheckboxReturn, setCheckboxContext: (context: CreateCheckboxReturn | (() => CreateCheckboxReturn)) => CreateCheckboxReturn;
2
+ export declare const getCheckboxContext: () => CreateCheckboxReturn, setCheckboxContext: (context: CreateCheckboxReturn | (() => CreateCheckboxReturn)) => void;
@@ -18,7 +18,7 @@
18
18
 
19
19
  let checkbox = getCheckboxContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, checkbox.getControlProps()));
21
+ let mergedProps = $derived(mergeProps(checkbox.getControlProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -17,7 +17,7 @@
17
17
 
18
18
  let checkbox = getCheckboxContext();
19
19
 
20
- let mergedProps = $derived(mergeProps(props, checkbox.getHiddenInputProps()));
20
+ let mergedProps = $derived(mergeProps(checkbox.getHiddenInputProps(), props));
21
21
  </script>
22
22
 
23
23
  {#if asChild}
@@ -18,7 +18,7 @@
18
18
 
19
19
  let checkbox = getCheckboxContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, checkbox.getIndicatorProps()));
21
+ let mergedProps = $derived(mergeProps(checkbox.getIndicatorProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -18,7 +18,7 @@
18
18
 
19
19
  let checkbox = getCheckboxContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, checkbox.getLabelProps()));
21
+ let mergedProps = $derived(mergeProps(checkbox.getLabelProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -45,7 +45,7 @@
45
45
 
46
46
  let checkbox = createCheckbox(reflect(() => createCheckboxProps));
47
47
 
48
- let mergedProps = $derived(mergeProps(localProps, checkbox.getRootProps()));
48
+ let mergedProps = $derived(mergeProps(checkbox.getRootProps(), localProps));
49
49
 
50
50
  setCheckboxContext(checkbox);
51
51
  </script>
@@ -1,6 +1,6 @@
1
1
  import * as checkbox from '@zag-js/checkbox';
2
2
  export interface CreateCheckboxProps extends Omit<checkbox.Context, 'id' | 'dir' | 'getRootNode'> {
3
- id?: string | null;
3
+ id?: string;
4
4
  }
5
5
  export interface CreateCheckboxReturn extends checkbox.Api {
6
6
  }
@@ -1,2 +1,2 @@
1
1
  import type { CreateClipboardReturn } from './create-clipboard.svelte.js';
2
- export declare const getClipboardContext: () => CreateClipboardReturn, setClipboardContext: (context: CreateClipboardReturn | (() => CreateClipboardReturn)) => CreateClipboardReturn;
2
+ export declare const getClipboardContext: () => CreateClipboardReturn, setClipboardContext: (context: CreateClipboardReturn | (() => CreateClipboardReturn)) => void;
@@ -18,7 +18,7 @@
18
18
 
19
19
  let clipboard = getClipboardContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, clipboard.getControlProps()));
21
+ let mergedProps = $derived(mergeProps(clipboard.getControlProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -24,7 +24,7 @@
24
24
  let clipboard = getClipboardContext();
25
25
 
26
26
  let mergedProps = $derived(
27
- mergeProps(props, clipboard.getIndicatorProps({copied})),
27
+ mergeProps(clipboard.getIndicatorProps({copied}), props),
28
28
  );
29
29
  </script>
30
30
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  let clipboard = getClipboardContext();
19
19
 
20
- let mergedProps = $derived(mergeProps(props, clipboard.getInputProps()));
20
+ let mergedProps = $derived(mergeProps(clipboard.getInputProps(), props));
21
21
  </script>
22
22
 
23
23
  {#if asChild}
@@ -18,7 +18,7 @@
18
18
 
19
19
  let clipboard = getClipboardContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, clipboard.getLabelProps()));
21
+ let mergedProps = $derived(mergeProps(clipboard.getLabelProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -38,7 +38,7 @@
38
38
 
39
39
  let clipboard = createClipboard(reflect(() => createClipboardProps));
40
40
 
41
- let mergedProps = $derived(mergeProps(localProps, clipboard.getRootProps()));
41
+ let mergedProps = $derived(mergeProps(clipboard.getRootProps(), localProps));
42
42
 
43
43
  setClipboardContext(clipboard);
44
44
  </script>
@@ -18,7 +18,7 @@
18
18
 
19
19
  let clipboard = getClipboardContext();
20
20
 
21
- let mergedProps = $derived(mergeProps(props, clipboard.getTriggerProps()));
21
+ let mergedProps = $derived(mergeProps(clipboard.getTriggerProps(), props));
22
22
  </script>
23
23
 
24
24
  {#if asChild}
@@ -1,6 +1,6 @@
1
1
  import * as clipboard from '@zag-js/clipboard';
2
2
  export interface CreateClipboardProps extends Omit<clipboard.Context, 'id' | 'getRootNode'> {
3
- id?: string | null;
3
+ id?: string;
4
4
  }
5
5
  export interface CreateClipboardReturn extends clipboard.Api {
6
6
  }
@@ -1,12 +1,14 @@
1
1
  <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
+ import type {Action} from 'svelte/action';
3
4
 
4
5
  export interface CollapsibleContentProps
5
- extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
+ extends HtmlIngredientProps<'div', HTMLDivElement, never, Action> {}
6
7
  </script>
7
8
 
8
9
  <script lang="ts">
9
10
  import {mergeProps} from '../merge-props.js';
11
+ import {getPresenceContext} from '../presence/presence-context.svelte.js';
10
12
  import {getCollapsibleContext} from './collapsible-context.svelte.js';
11
13
 
12
14
  let {
@@ -17,14 +19,23 @@
17
19
  }: CollapsibleContentProps = $props();
18
20
 
19
21
  let collapsible = getCollapsibleContext();
22
+ let presence = getPresenceContext();
20
23
 
21
- let mergedProps = $derived(mergeProps(props, collapsible.getContentProps()));
24
+ let mergedProps = $derived(
25
+ mergeProps(
26
+ collapsible.getContentProps(),
27
+ presence.getPresenceProps(),
28
+ props,
29
+ ),
30
+ );
22
31
  </script>
23
32
 
24
- {#if asChild}
25
- {@render asChild(mergedProps)}
26
- {:else}
27
- <div bind:this={ref} {...mergedProps}>
28
- {@render children?.()}
29
- </div>
33
+ {#if presence.mounted}
34
+ {#if asChild}
35
+ {@render asChild(presence.setReference, mergedProps)}
36
+ {:else}
37
+ <div bind:this={ref} use:presence.setReference {...mergedProps}>
38
+ {@render children?.()}
39
+ </div>
40
+ {/if}
30
41
  {/if}
@@ -1,5 +1,6 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface CollapsibleContentProps extends HtmlIngredientProps<'div', HTMLDivElement> {
2
+ import type { Action } from 'svelte/action';
3
+ export interface CollapsibleContentProps extends HtmlIngredientProps<'div', HTMLDivElement, never, Action> {
3
4
  }
4
5
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,2 +1,2 @@
1
1
  import type { CreateCollapsibleReturn } from './create-collapsible.svelte.js';
2
- export declare const getCollapsibleContext: () => CreateCollapsibleReturn, setCollapsibleContext: (context: CreateCollapsibleReturn | (() => CreateCollapsibleReturn)) => CreateCollapsibleReturn;
2
+ export declare const getCollapsibleContext: () => CreateCollapsibleReturn, setCollapsibleContext: (context: CreateCollapsibleReturn | (() => CreateCollapsibleReturn)) => void;
@@ -1,4 +1,8 @@
1
1
  <script lang="ts" module>
2
+ import {
3
+ createPresence,
4
+ type PresenceStrategyProps,
5
+ } from '../presence/create-presence.svelte.js';
2
6
  import type {Assign, HtmlIngredientProps} from '../types.js';
3
7
  import type {
4
8
  CreateCollapsibleProps,
@@ -7,13 +11,15 @@
7
11
 
8
12
  export interface CollapsibleProps
9
13
  extends Assign<
10
- HtmlIngredientProps<'div', HTMLDivElement, CreateCollapsibleReturn>,
11
- CreateCollapsibleProps
12
- > {}
14
+ HtmlIngredientProps<'div', HTMLDivElement, CreateCollapsibleReturn>,
15
+ CreateCollapsibleProps
16
+ >,
17
+ PresenceStrategyProps {}
13
18
  </script>
14
19
 
15
20
  <script lang="ts">
16
21
  import {mergeProps} from '../merge-props.js';
22
+ import {setPresenceContext} from '../presence/presence-context.svelte.js';
17
23
  import {reflect} from '@zag-js/svelte';
18
24
  import {createSplitProps} from '@zag-js/utils';
19
25
  import {setCollapsibleContext} from './collapsible-context.svelte.js';
@@ -26,6 +32,12 @@
26
32
  ...props
27
33
  }: CollapsibleProps = $props();
28
34
 
35
+ let [presenceStrategyProps, rest] = $derived(
36
+ createSplitProps<PresenceStrategyProps>(['lazyMount', 'keepMounted'])(
37
+ props,
38
+ ),
39
+ );
40
+
29
41
  let [createCollapsibleProps, localProps] = $derived(
30
42
  createSplitProps<CreateCollapsibleProps>([
31
43
  'id',
@@ -35,16 +47,23 @@
35
47
  'disabled',
36
48
  'onOpenChange',
37
49
  'onExitComplete',
38
- ])(props),
50
+ ])(rest),
39
51
  );
40
52
 
41
53
  let collapsible = createCollapsible(reflect(() => createCollapsibleProps));
54
+ let presence = createPresence(
55
+ reflect(() => ({
56
+ present: collapsible.open,
57
+ ...presenceStrategyProps,
58
+ })),
59
+ );
42
60
 
43
61
  let mergedProps = $derived(
44
- mergeProps(localProps, collapsible.getRootProps()),
62
+ mergeProps(collapsible.getRootProps(), localProps),
45
63
  );
46
64
 
47
65
  setCollapsibleContext(collapsible);
66
+ setPresenceContext(presence);
48
67
  </script>
49
68
 
50
69
  {#if asChild}
@@ -1,6 +1,7 @@
1
+ import { type PresenceStrategyProps } from '../presence/create-presence.svelte.js';
1
2
  import type { Assign, HtmlIngredientProps } from '../types.js';
2
3
  import type { CreateCollapsibleProps, CreateCollapsibleReturn } from './create-collapsible.svelte.js';
3
- export interface CollapsibleProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement, CreateCollapsibleReturn>, CreateCollapsibleProps> {
4
+ export interface CollapsibleProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement, CreateCollapsibleReturn>, CreateCollapsibleProps>, PresenceStrategyProps {
4
5
  }
5
6
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
7
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -17,8 +17,7 @@
17
17
  }: CollapsibleTriggerProps = $props();
18
18
 
19
19
  let collapsible = getCollapsibleContext();
20
-
21
- let mergedProps = $derived(mergeProps(props, collapsible.getTriggerProps()));
20
+ let mergedProps = $derived(mergeProps(collapsible.getTriggerProps(), props));
22
21
  </script>
23
22
 
24
23
  {#if asChild}
@@ -23,7 +23,7 @@
23
23
  let areaProps = getColorPickerAreaPropsContext();
24
24
 
25
25
  let mergedProps = $derived(
26
- mergeProps(props, colorPicker.getAreaBackgroundProps(areaProps)),
26
+ mergeProps(colorPicker.getAreaBackgroundProps(areaProps), props),
27
27
  );
28
28
  </script>
29
29
 
@@ -23,7 +23,7 @@
23
23
  let areaProps = getColorPickerAreaPropsContext();
24
24
 
25
25
  let mergedProps = $derived(
26
- mergeProps(props, colorPicker.getAreaThumbProps(areaProps)),
26
+ mergeProps(colorPicker.getAreaThumbProps(areaProps), props),
27
27
  );
28
28
  </script>
29
29
 
@@ -29,7 +29,7 @@
29
29
  });
30
30
 
31
31
  let mergedProps = $derived(
32
- mergeProps(props, colorPicker.getAreaProps(areaProps)),
32
+ mergeProps(colorPicker.getAreaProps(areaProps), props),
33
33
  );
34
34
 
35
35
  setColorPickerAreaPropsContext(() => areaProps);
@@ -25,11 +25,11 @@
25
25
 
26
26
  let mergedProps = $derived(
27
27
  mergeProps(
28
- props,
29
28
  colorPicker.getChannelInputProps({
30
29
  channel,
31
30
  orientation,
32
31
  }),
32
+ props,
33
33
  ),
34
34
  );
35
35
  </script>
@@ -26,7 +26,7 @@
26
26
  let channelProps = getColorPickerChannelPropsContext();
27
27
 
28
28
  let mergedProps = $derived(
29
- mergeProps(props, colorPicker.getChannelSliderLabelProps(channelProps)),
29
+ mergeProps(colorPicker.getChannelSliderLabelProps(channelProps), props),
30
30
  );
31
31
  </script>
32
32
 
@@ -30,8 +30,8 @@
30
30
 
31
31
  let mergedProps = $derived(
32
32
  mergeProps(
33
- props,
34
33
  colorPicker.getChannelSliderThumbProps(channelSliderProps),
34
+ props,
35
35
  ),
36
36
  );
37
37
  </script>
@@ -30,8 +30,8 @@
30
30
 
31
31
  let mergedProps = $derived(
32
32
  mergeProps(
33
- props,
34
33
  colorPicker.getChannelSliderTrackProps(channelSliderProps),
34
+ props,
35
35
  ),
36
36
  );
37
37
  </script>
@@ -25,7 +25,7 @@
25
25
  let channelProps = getColorPickerChannelPropsContext();
26
26
 
27
27
  let mergedProps = $derived(
28
- mergeProps(props, colorPicker.getChannelSliderValueTextProps(channelProps)),
28
+ mergeProps(colorPicker.getChannelSliderValueTextProps(channelProps), props),
29
29
  );
30
30
  </script>
31
31
 
@@ -36,7 +36,10 @@
36
36
  {#if children}
37
37
  {@render children()}
38
38
  {:else}
39
- {colorPicker.getChannelValueText(channelProps.channel, locale.locale)}
39
+ {colorPicker.getChannelValueText(
40
+ channelProps.channel,
41
+ locale?.locale ?? 'en-US',
42
+ )}
40
43
  {/if}
41
44
  </div>
42
45
  {/if}
@@ -36,7 +36,7 @@
36
36
  });
37
37
 
38
38
  let mergedProps = $derived(
39
- mergeProps(props, colorPicker.getChannelSliderProps(channelSliderProps)),
39
+ mergeProps(colorPicker.getChannelSliderProps(channelSliderProps), props),
40
40
  );
41
41
 
42
42
  setColorPickerChannelPropsContext(() => channelProps);