ui-ingredients 0.0.20 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (435) hide show
  1. package/README.md +7 -4
  2. package/dist/accordion/accordion.d.ts +1 -0
  3. package/dist/accordion/accordion.js +1 -0
  4. package/dist/accordion/create-accordion.svelte.js +4 -4
  5. package/dist/accordion/index.d.ts +0 -1
  6. package/dist/accordion/index.js +0 -1
  7. package/dist/accordion/item-content.svelte +2 -3
  8. package/dist/accordion/item-indicator.svelte +2 -3
  9. package/dist/accordion/item-trigger.svelte +2 -3
  10. package/dist/accordion/item.svelte +3 -4
  11. package/dist/accordion/root.svelte +5 -5
  12. package/dist/avatar/avatar.d.ts +1 -0
  13. package/dist/avatar/avatar.js +1 -0
  14. package/dist/avatar/create-avatar.svelte.js +4 -4
  15. package/dist/avatar/fallback.svelte +2 -2
  16. package/dist/avatar/image.svelte +2 -2
  17. package/dist/avatar/index.d.ts +0 -1
  18. package/dist/avatar/index.js +0 -1
  19. package/dist/avatar/root.svelte +5 -5
  20. package/dist/carousel/carousel.d.ts +1 -0
  21. package/dist/carousel/carousel.js +1 -0
  22. package/dist/carousel/create-carousel.svelte.js +4 -4
  23. package/dist/carousel/index.d.ts +0 -1
  24. package/dist/carousel/index.js +0 -1
  25. package/dist/carousel/indicator-group.svelte +2 -2
  26. package/dist/carousel/indicator.svelte +2 -2
  27. package/dist/carousel/item-group.svelte +2 -2
  28. package/dist/carousel/item.svelte +3 -3
  29. package/dist/carousel/next-trigger.svelte +2 -2
  30. package/dist/carousel/prev-trigger.svelte +2 -2
  31. package/dist/carousel/root.svelte +5 -5
  32. package/dist/carousel/viewport.svelte +2 -2
  33. package/dist/checkbox/checkbox.d.ts +1 -0
  34. package/dist/checkbox/checkbox.js +1 -0
  35. package/dist/checkbox/control.svelte +2 -2
  36. package/dist/checkbox/create-checkbox.svelte.js +4 -4
  37. package/dist/checkbox/hidden-input.svelte +2 -2
  38. package/dist/checkbox/index.d.ts +0 -1
  39. package/dist/checkbox/index.js +0 -1
  40. package/dist/checkbox/indicator.svelte +2 -2
  41. package/dist/checkbox/label.svelte +2 -2
  42. package/dist/checkbox/root.svelte +5 -5
  43. package/dist/clipboard/clipboard.d.ts +1 -0
  44. package/dist/clipboard/clipboard.js +1 -0
  45. package/dist/clipboard/control.svelte +2 -2
  46. package/dist/clipboard/create-clipboard.svelte.js +2 -2
  47. package/dist/clipboard/index.d.ts +0 -1
  48. package/dist/clipboard/index.js +0 -1
  49. package/dist/clipboard/indicator.svelte +2 -2
  50. package/dist/clipboard/input.svelte +2 -2
  51. package/dist/clipboard/label.svelte +2 -2
  52. package/dist/clipboard/root.svelte +5 -5
  53. package/dist/clipboard/trigger.svelte +2 -2
  54. package/dist/collapsible/collapsible.d.ts +1 -0
  55. package/dist/collapsible/collapsible.js +1 -0
  56. package/dist/collapsible/content.svelte +2 -2
  57. package/dist/collapsible/create-collapsible.svelte.js +4 -4
  58. package/dist/collapsible/index.d.ts +0 -1
  59. package/dist/collapsible/index.js +0 -1
  60. package/dist/collapsible/root.svelte +4 -4
  61. package/dist/collapsible/trigger.svelte +2 -2
  62. package/dist/combobox/clear-trigger.svelte +2 -2
  63. package/dist/combobox/combobox.d.ts +1 -0
  64. package/dist/combobox/combobox.js +1 -0
  65. package/dist/combobox/content.svelte +2 -2
  66. package/dist/combobox/control.svelte +2 -2
  67. package/dist/combobox/create-combobox.svelte.js +4 -4
  68. package/dist/combobox/index.d.ts +1 -2
  69. package/dist/combobox/index.js +0 -1
  70. package/dist/combobox/input.svelte +2 -2
  71. package/dist/combobox/item-group-label.svelte +2 -3
  72. package/dist/combobox/item-group.svelte +2 -2
  73. package/dist/combobox/item-indicator.svelte +2 -3
  74. package/dist/combobox/item-text.svelte +3 -4
  75. package/dist/combobox/item.svelte +3 -4
  76. package/dist/combobox/label.svelte +2 -2
  77. package/dist/combobox/list.svelte +2 -2
  78. package/dist/combobox/positioner.svelte +2 -2
  79. package/dist/combobox/root.svelte +5 -5
  80. package/dist/combobox/trigger.svelte +2 -2
  81. package/dist/date-picker/anatomy.js +3 -3
  82. package/dist/date-picker/clear-trigger.svelte +2 -2
  83. package/dist/date-picker/content.svelte +2 -2
  84. package/dist/date-picker/control.svelte +2 -2
  85. package/dist/date-picker/create-date-picker.svelte.d.ts +1 -1
  86. package/dist/date-picker/create-date-picker.svelte.js +5 -5
  87. package/dist/date-picker/date-picker.d.ts +2 -0
  88. package/dist/date-picker/date-picker.js +2 -0
  89. package/dist/date-picker/day-table-cell-trigger.svelte +2 -3
  90. package/dist/date-picker/day-table-cell.svelte +3 -4
  91. package/dist/date-picker/index.d.ts +0 -2
  92. package/dist/date-picker/index.js +0 -2
  93. package/dist/date-picker/input.svelte +2 -2
  94. package/dist/date-picker/label.svelte +2 -2
  95. package/dist/date-picker/month-select.svelte +2 -2
  96. package/dist/date-picker/month-table-cell-trigger.svelte +2 -3
  97. package/dist/date-picker/month-table-cell.svelte +3 -4
  98. package/dist/date-picker/next-trigger.svelte +2 -3
  99. package/dist/date-picker/positioner.svelte +2 -2
  100. package/dist/date-picker/preset-trigger.svelte +2 -2
  101. package/dist/date-picker/prev-trigger.svelte +2 -3
  102. package/dist/date-picker/range-text.svelte +3 -3
  103. package/dist/date-picker/root.svelte +7 -5
  104. package/dist/date-picker/table-body.svelte +2 -3
  105. package/dist/date-picker/table-head.svelte +2 -3
  106. package/dist/date-picker/table-header.svelte +2 -3
  107. package/dist/date-picker/table-row.svelte +2 -3
  108. package/dist/date-picker/table.svelte +2 -4
  109. package/dist/date-picker/trigger.svelte +2 -2
  110. package/dist/date-picker/view-control.svelte +2 -3
  111. package/dist/date-picker/view.svelte +2 -2
  112. package/dist/date-picker/year-select.svelte +2 -2
  113. package/dist/date-picker/year-table-cell-trigger.svelte +2 -3
  114. package/dist/date-picker/year-table-cell.svelte +3 -4
  115. package/dist/dialog/backdrop.svelte +2 -2
  116. package/dist/dialog/close-trigger.svelte +2 -2
  117. package/dist/dialog/content.svelte +2 -2
  118. package/dist/dialog/create-dialog.svelte.js +4 -4
  119. package/dist/dialog/description.svelte +2 -2
  120. package/dist/dialog/dialog.d.ts +1 -0
  121. package/dist/dialog/dialog.js +1 -0
  122. package/dist/dialog/index.d.ts +1 -2
  123. package/dist/dialog/index.js +0 -1
  124. package/dist/dialog/positioner.svelte +2 -2
  125. package/dist/dialog/root.svelte +4 -4
  126. package/dist/dialog/title.svelte +2 -2
  127. package/dist/dialog/trigger.svelte +2 -2
  128. package/dist/editable/area.svelte +2 -2
  129. package/dist/editable/cancel-trigger.svelte +2 -2
  130. package/dist/editable/control.svelte +2 -2
  131. package/dist/editable/create-editable.svelte.js +4 -4
  132. package/dist/editable/edit-trigger.svelte +2 -2
  133. package/dist/editable/editable.d.ts +1 -0
  134. package/dist/editable/editable.js +1 -0
  135. package/dist/editable/index.d.ts +1 -2
  136. package/dist/editable/index.js +0 -1
  137. package/dist/editable/input.svelte +2 -2
  138. package/dist/editable/label.svelte +2 -2
  139. package/dist/editable/preview.svelte +3 -3
  140. package/dist/editable/root.svelte +4 -4
  141. package/dist/editable/submit-trigger.svelte +2 -2
  142. package/dist/environment-provider/root.svelte +2 -2
  143. package/dist/file-upload/context.svelte.d.ts +5 -8
  144. package/dist/file-upload/context.svelte.js +3 -14
  145. package/dist/file-upload/create-file-upload.svelte.d.ts +7 -0
  146. package/dist/file-upload/create-file-upload.svelte.js +18 -0
  147. package/dist/file-upload/dropzone.svelte +19 -2
  148. package/dist/file-upload/dropzone.svelte.d.ts +3 -3
  149. package/dist/file-upload/file-upload.d.ts +1 -0
  150. package/dist/file-upload/file-upload.js +1 -0
  151. package/dist/file-upload/hidden-input.svelte +17 -2
  152. package/dist/file-upload/hidden-input.svelte.d.ts +3 -3
  153. package/dist/file-upload/index.d.ts +12 -0
  154. package/dist/file-upload/item-delete-trigger.svelte +20 -2
  155. package/dist/file-upload/item-delete-trigger.svelte.d.ts +3 -3
  156. package/dist/file-upload/item-group.svelte +19 -2
  157. package/dist/file-upload/item-group.svelte.d.ts +3 -3
  158. package/dist/file-upload/item-name.svelte +24 -2
  159. package/dist/file-upload/item-name.svelte.d.ts +3 -3
  160. package/dist/file-upload/item-preview-image.svelte +26 -2
  161. package/dist/file-upload/item-preview-image.svelte.d.ts +3 -3
  162. package/dist/file-upload/item-preview.svelte +20 -2
  163. package/dist/file-upload/item-preview.svelte.d.ts +3 -3
  164. package/dist/file-upload/item-size-text.svelte +24 -2
  165. package/dist/file-upload/item-size-text.svelte.d.ts +3 -3
  166. package/dist/file-upload/item.svelte +25 -2
  167. package/dist/file-upload/item.svelte.d.ts +3 -3
  168. package/dist/file-upload/label.svelte +19 -2
  169. package/dist/file-upload/label.svelte.d.ts +3 -3
  170. package/dist/file-upload/root.svelte +67 -2
  171. package/dist/file-upload/root.svelte.d.ts +3 -3
  172. package/dist/file-upload/trigger.svelte +19 -2
  173. package/dist/file-upload/trigger.svelte.d.ts +3 -3
  174. package/dist/floating-panel/.gitkeep +0 -0
  175. package/dist/hover-card/arrow-tip.svelte +2 -2
  176. package/dist/hover-card/arrow.svelte +2 -2
  177. package/dist/hover-card/content.svelte +2 -2
  178. package/dist/hover-card/create-hover-card.svelte.js +4 -4
  179. package/dist/hover-card/hover-card.d.ts +1 -0
  180. package/dist/hover-card/hover-card.js +1 -0
  181. package/dist/hover-card/index.d.ts +1 -2
  182. package/dist/hover-card/index.js +0 -1
  183. package/dist/hover-card/positioner.svelte +2 -2
  184. package/dist/hover-card/root.svelte +4 -4
  185. package/dist/hover-card/trigger.svelte +2 -2
  186. package/dist/locale-provider/root.svelte +2 -2
  187. package/dist/menu/arrow-tip.svelte +2 -2
  188. package/dist/menu/arrow.svelte +2 -2
  189. package/dist/menu/context-trigger.svelte +2 -2
  190. package/dist/menu/create-menu.svelte.js +4 -4
  191. package/dist/menu/index.d.ts +1 -2
  192. package/dist/menu/index.js +1 -2
  193. package/dist/menu/indicator.svelte +2 -2
  194. package/dist/menu/item-group-label.svelte +2 -3
  195. package/dist/menu/item-group.svelte +2 -2
  196. package/dist/menu/item.svelte +3 -4
  197. package/dist/menu/menu.d.ts +1 -0
  198. package/dist/menu/menu.js +1 -0
  199. package/dist/menu/option-item-indicator.svelte +2 -3
  200. package/dist/menu/option-item-text.svelte +2 -3
  201. package/dist/menu/option-item.svelte +3 -4
  202. package/dist/menu/positioner.svelte +2 -2
  203. package/dist/menu/root.svelte +4 -4
  204. package/dist/menu/separator.svelte +2 -2
  205. package/dist/menu/trigger-item.svelte +2 -2
  206. package/dist/menu/trigger.svelte +2 -2
  207. package/dist/number-input/control.svelte +2 -2
  208. package/dist/number-input/create-number-input.svelte.d.ts +1 -1
  209. package/dist/number-input/create-number-input.svelte.js +5 -5
  210. package/dist/number-input/decrement-trigger.svelte +2 -2
  211. package/dist/number-input/increment-trigger.svelte +2 -2
  212. package/dist/number-input/index.d.ts +1 -2
  213. package/dist/number-input/index.js +0 -1
  214. package/dist/number-input/input.svelte +2 -2
  215. package/dist/number-input/label.svelte +2 -2
  216. package/dist/number-input/number-input.d.ts +1 -0
  217. package/dist/number-input/number-input.js +1 -0
  218. package/dist/number-input/root.svelte +7 -5
  219. package/dist/number-input/scrubber.svelte +2 -2
  220. package/dist/pagination/create-pagination.svelte.js +4 -4
  221. package/dist/pagination/ellipsis.svelte +2 -2
  222. package/dist/pagination/index.d.ts +1 -2
  223. package/dist/pagination/index.js +0 -1
  224. package/dist/pagination/item.svelte +2 -2
  225. package/dist/pagination/next-trigger.svelte +2 -2
  226. package/dist/pagination/pagination.d.ts +1 -0
  227. package/dist/pagination/pagination.js +1 -0
  228. package/dist/pagination/prev-trigger.svelte +2 -2
  229. package/dist/pagination/root.svelte +5 -5
  230. package/dist/pin-input/clear-trigger.svelte +2 -2
  231. package/dist/pin-input/create-pin-input.svelte.js +4 -4
  232. package/dist/pin-input/hidden-input.svelte +2 -2
  233. package/dist/pin-input/index.d.ts +1 -2
  234. package/dist/pin-input/index.js +0 -1
  235. package/dist/pin-input/input.svelte +2 -2
  236. package/dist/pin-input/label.svelte +2 -2
  237. package/dist/pin-input/pin-input.d.ts +1 -0
  238. package/dist/pin-input/pin-input.js +1 -0
  239. package/dist/pin-input/root.svelte +5 -5
  240. package/dist/popover/arrow-tip.svelte +2 -2
  241. package/dist/popover/arrow.svelte +2 -2
  242. package/dist/popover/close-trigger.svelte +2 -2
  243. package/dist/popover/content.svelte +2 -2
  244. package/dist/popover/create-popover.svelte.js +4 -4
  245. package/dist/popover/description.svelte +2 -2
  246. package/dist/popover/index.d.ts +1 -2
  247. package/dist/popover/index.js +0 -1
  248. package/dist/popover/popover.d.ts +1 -0
  249. package/dist/popover/popover.js +1 -0
  250. package/dist/popover/positioner.svelte +2 -2
  251. package/dist/popover/root.svelte +4 -4
  252. package/dist/popover/title.svelte +2 -2
  253. package/dist/popover/trigger.svelte +2 -2
  254. package/dist/portal/root.svelte +2 -4
  255. package/dist/presence/create-presence.svelte.d.ts +10 -0
  256. package/dist/presence/create-presence.svelte.js +19 -0
  257. package/dist/presence/root.svelte +11 -20
  258. package/dist/progress/circle-range.svelte +2 -2
  259. package/dist/progress/circle-track.svelte +2 -2
  260. package/dist/progress/circle.svelte +2 -2
  261. package/dist/progress/create-progress.svelte.js +4 -4
  262. package/dist/progress/index.d.ts +1 -2
  263. package/dist/progress/index.js +0 -1
  264. package/dist/progress/label.svelte +2 -2
  265. package/dist/progress/progress.d.ts +1 -0
  266. package/dist/progress/progress.js +1 -0
  267. package/dist/progress/range.svelte +2 -2
  268. package/dist/progress/root.svelte +5 -5
  269. package/dist/progress/track.svelte +2 -2
  270. package/dist/progress/value-text.svelte +3 -3
  271. package/dist/qr-code/create-qr-code.svelte.js +4 -4
  272. package/dist/qr-code/frame.svelte +2 -2
  273. package/dist/qr-code/index.d.ts +1 -2
  274. package/dist/qr-code/index.js +0 -1
  275. package/dist/qr-code/overlay.svelte +2 -2
  276. package/dist/qr-code/pattern.svelte +2 -2
  277. package/dist/qr-code/qr-code.d.ts +1 -0
  278. package/dist/qr-code/qr-code.js +1 -0
  279. package/dist/qr-code/root.svelte +5 -5
  280. package/dist/radio-group/create-radio-group.svelte.js +4 -4
  281. package/dist/radio-group/index.d.ts +1 -2
  282. package/dist/radio-group/index.js +0 -1
  283. package/dist/radio-group/indicator.svelte +2 -2
  284. package/dist/radio-group/item-control.svelte +2 -3
  285. package/dist/radio-group/item-hidden-input.svelte +2 -3
  286. package/dist/radio-group/item-text.svelte +2 -3
  287. package/dist/radio-group/item.svelte +3 -4
  288. package/dist/radio-group/label.svelte +2 -2
  289. package/dist/radio-group/radio-group.d.ts +1 -0
  290. package/dist/radio-group/radio-group.js +1 -0
  291. package/dist/radio-group/root.svelte +5 -5
  292. package/dist/rating-group/control.svelte +2 -2
  293. package/dist/rating-group/create-rating-group.svelte.js +4 -4
  294. package/dist/rating-group/hidden-input.svelte +2 -2
  295. package/dist/rating-group/index.d.ts +1 -2
  296. package/dist/rating-group/index.js +0 -1
  297. package/dist/rating-group/item.svelte +3 -4
  298. package/dist/rating-group/label.svelte +2 -2
  299. package/dist/rating-group/rating-group.d.ts +1 -0
  300. package/dist/rating-group/rating-group.js +1 -0
  301. package/dist/rating-group/root.svelte +5 -5
  302. package/dist/segment-group/anatomy.js +3 -3
  303. package/dist/segment-group/create-segment-group.svelte.js +4 -4
  304. package/dist/segment-group/index.d.ts +1 -2
  305. package/dist/segment-group/index.js +0 -1
  306. package/dist/segment-group/indicator.svelte +2 -2
  307. package/dist/segment-group/item-control.svelte +2 -3
  308. package/dist/segment-group/item-hidden-input.svelte +2 -3
  309. package/dist/segment-group/item-text.svelte +2 -3
  310. package/dist/segment-group/item.svelte +3 -4
  311. package/dist/segment-group/label.svelte +2 -2
  312. package/dist/segment-group/root.svelte +5 -5
  313. package/dist/segment-group/segment-group.d.ts +1 -0
  314. package/dist/segment-group/segment-group.js +1 -0
  315. package/dist/select/clear-trigger.svelte +2 -2
  316. package/dist/select/content.svelte +2 -2
  317. package/dist/select/control.svelte +2 -2
  318. package/dist/select/create-select.svelte.js +4 -4
  319. package/dist/select/hidden-select.svelte +2 -2
  320. package/dist/select/index.d.ts +1 -2
  321. package/dist/select/index.js +0 -1
  322. package/dist/select/indicator.svelte +2 -2
  323. package/dist/select/item-group-label.svelte +2 -3
  324. package/dist/select/item-group.svelte +2 -2
  325. package/dist/select/item-indicator.svelte +2 -3
  326. package/dist/select/item-text.svelte +3 -4
  327. package/dist/select/item.svelte +3 -4
  328. package/dist/select/label.svelte +2 -2
  329. package/dist/select/list.svelte +2 -2
  330. package/dist/select/positioner.svelte +2 -2
  331. package/dist/select/root.svelte +5 -5
  332. package/dist/select/select.d.ts +1 -0
  333. package/dist/select/select.js +1 -0
  334. package/dist/select/trigger.svelte +2 -2
  335. package/dist/select/value-text.svelte +4 -4
  336. package/dist/slider/control.svelte +2 -2
  337. package/dist/slider/create-slider.svelte.js +4 -4
  338. package/dist/slider/hidden-input.svelte +2 -3
  339. package/dist/slider/index.d.ts +1 -2
  340. package/dist/slider/index.js +0 -1
  341. package/dist/slider/label.svelte +2 -2
  342. package/dist/slider/marker-group.svelte +2 -2
  343. package/dist/slider/marker.svelte +2 -2
  344. package/dist/slider/range.svelte +2 -2
  345. package/dist/slider/root.svelte +5 -5
  346. package/dist/slider/slider.d.ts +1 -0
  347. package/dist/slider/slider.js +1 -0
  348. package/dist/slider/thumb.svelte +2 -3
  349. package/dist/slider/track.svelte +2 -2
  350. package/dist/slider/value-text.svelte +3 -3
  351. package/dist/steps/content.svelte +2 -2
  352. package/dist/steps/create-steps.svelte.js +4 -4
  353. package/dist/steps/index.d.ts +1 -2
  354. package/dist/steps/index.js +0 -1
  355. package/dist/steps/indicator.svelte +2 -3
  356. package/dist/steps/item.svelte +3 -4
  357. package/dist/steps/list.svelte +2 -2
  358. package/dist/steps/next-trigger.svelte +2 -2
  359. package/dist/steps/prev-trigger.svelte +2 -2
  360. package/dist/steps/progress.svelte +2 -2
  361. package/dist/steps/root.svelte +5 -5
  362. package/dist/steps/separator.svelte +2 -3
  363. package/dist/steps/steps.d.ts +1 -0
  364. package/dist/steps/steps.js +1 -0
  365. package/dist/steps/trigger.svelte +2 -3
  366. package/dist/switch/control.svelte +2 -2
  367. package/dist/switch/create-switch.svelte.js +4 -4
  368. package/dist/switch/hidden-input.svelte +2 -2
  369. package/dist/switch/index.d.ts +1 -2
  370. package/dist/switch/index.js +0 -1
  371. package/dist/switch/label.svelte +2 -2
  372. package/dist/switch/root.svelte +5 -5
  373. package/dist/switch/switch.d.ts +1 -0
  374. package/dist/switch/switch.js +1 -0
  375. package/dist/switch/thumb.svelte +2 -2
  376. package/dist/tabs/content.svelte +2 -2
  377. package/dist/tabs/create-tabs.svelte.js +4 -4
  378. package/dist/tabs/index.d.ts +1 -2
  379. package/dist/tabs/index.js +0 -1
  380. package/dist/tabs/list.svelte +2 -2
  381. package/dist/tabs/root.svelte +5 -5
  382. package/dist/tabs/tabs.d.ts +1 -0
  383. package/dist/tabs/tabs.js +1 -0
  384. package/dist/tabs/trigger.svelte +2 -2
  385. package/dist/tags-input/clear-trigger.svelte +2 -2
  386. package/dist/tags-input/control.svelte +2 -2
  387. package/dist/tags-input/create-tags-input.svelte.js +4 -4
  388. package/dist/tags-input/hidden-input.svelte +2 -2
  389. package/dist/tags-input/index.d.ts +1 -2
  390. package/dist/tags-input/index.js +0 -1
  391. package/dist/tags-input/input.svelte +2 -2
  392. package/dist/tags-input/item-delete-trigger.svelte +2 -3
  393. package/dist/tags-input/item-input.svelte +2 -3
  394. package/dist/tags-input/item-preview.svelte +2 -3
  395. package/dist/tags-input/item-text.svelte +2 -3
  396. package/dist/tags-input/item.svelte +3 -4
  397. package/dist/tags-input/label.svelte +2 -2
  398. package/dist/tags-input/root.svelte +5 -5
  399. package/dist/tags-input/tags-input.d.ts +1 -0
  400. package/dist/tags-input/tags-input.js +1 -0
  401. package/dist/time-picker/.gitkeep +0 -0
  402. package/dist/timer/action-trigger.svelte +2 -2
  403. package/dist/timer/create-timer.svelte.js +2 -2
  404. package/dist/timer/item-label.svelte +2 -3
  405. package/dist/timer/item-value.svelte +3 -4
  406. package/dist/timer/item.svelte +2 -3
  407. package/dist/timer/root.svelte +5 -5
  408. package/dist/timer/separator.svelte +2 -2
  409. package/dist/timer/timer.d.ts +1 -0
  410. package/dist/timer/timer.js +1 -0
  411. package/dist/toast/create-toaster.svelte.js +4 -4
  412. package/dist/toast/index.d.ts +6 -7
  413. package/dist/toast/index.js +1 -7
  414. package/dist/toast/toast.d.ts +6 -5
  415. package/dist/toast/toast.js +1 -0
  416. package/dist/toggle-group/create-toggle-group.svelte.js +4 -4
  417. package/dist/toggle-group/index.d.ts +1 -2
  418. package/dist/toggle-group/index.js +0 -1
  419. package/dist/toggle-group/item.svelte +3 -4
  420. package/dist/toggle-group/root.svelte +4 -4
  421. package/dist/toggle-group/toggle-group.d.ts +1 -0
  422. package/dist/toggle-group/toggle-group.js +1 -0
  423. package/dist/tooltip/arrow-tip.svelte +2 -2
  424. package/dist/tooltip/arrow.svelte +2 -2
  425. package/dist/tooltip/content.svelte +2 -2
  426. package/dist/tooltip/create-tooltip.svelte.js +4 -4
  427. package/dist/tooltip/index.d.ts +1 -2
  428. package/dist/tooltip/index.js +0 -1
  429. package/dist/tooltip/positioner.svelte +2 -2
  430. package/dist/tooltip/root.svelte +4 -4
  431. package/dist/tooltip/tooltip.d.ts +1 -0
  432. package/dist/tooltip/tooltip.js +1 -0
  433. package/dist/tooltip/trigger.svelte +2 -2
  434. package/dist/tour/.gitkeep +0 -0
  435. package/package.json +5 -1
@@ -1,2 +1 @@
1
- export { anatomy as tagsInputAnatomy } from '@zag-js/tags-input';
2
1
  export * as TagsInput from './tags-input.js';
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {...props}: TagsInputInputProps = $props();
12
12
 
13
- let context = tagsInputContext.get();
13
+ let tagsInput = tagsInputContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getInputProps()));
15
+ let attrs = $derived(mergeProps(props, tagsInput.getInputProps()));
16
16
  </script>
17
17
 
18
18
  <input {...attrs} />
@@ -10,11 +10,10 @@
10
10
 
11
11
  let {children, ...props}: TagsInputItemDeleteTriggerProps = $props();
12
12
 
13
- let context = tagsInputContext.get();
14
-
13
+ let tagsInput = tagsInputContext.get();
15
14
  let itemProps = tagsInputItemPropsContext.get();
16
15
 
17
- let attrs = $derived(mergeProps(props, context.getItemDeleteTriggerProps(itemProps)));
16
+ let attrs = $derived(mergeProps(props, tagsInput.getItemDeleteTriggerProps(itemProps)));
18
17
  </script>
19
18
 
20
19
  <button type="button" {...attrs}>
@@ -10,11 +10,10 @@
10
10
 
11
11
  let {...props}: TagsInputItemInputProps = $props();
12
12
 
13
- let context = tagsInputContext.get();
14
-
13
+ let tagsInput = tagsInputContext.get();
15
14
  let itemProps = tagsInputItemPropsContext.get();
16
15
 
17
- let attrs = $derived(mergeProps(props, context.getItemInputProps(itemProps)));
16
+ let attrs = $derived(mergeProps(props, tagsInput.getItemInputProps(itemProps)));
18
17
  </script>
19
18
 
20
19
  <input {...attrs} />
@@ -10,11 +10,10 @@
10
10
 
11
11
  let {children, ...props}: TagsInputItemPreviewProps = $props();
12
12
 
13
- let context = tagsInputContext.get();
14
-
13
+ let tagsInput = tagsInputContext.get();
15
14
  let itemProps = tagsInputItemPropsContext.get();
16
15
 
17
- let attrs = $derived(mergeProps(props, context.getItemPreviewProps(itemProps)));
16
+ let attrs = $derived(mergeProps(props, tagsInput.getItemPreviewProps(itemProps)));
18
17
  </script>
19
18
 
20
19
  <div {...attrs}>
@@ -10,11 +10,10 @@
10
10
 
11
11
  let {children, ...props}: TagsInputItemTextProps = $props();
12
12
 
13
- let context = tagsInputContext.get();
14
-
13
+ let tagsInput = tagsInputContext.get();
15
14
  let itemProps = tagsInputItemPropsContext.get();
16
15
 
17
- let attrs = $derived(mergeProps(props, context.getItemTextProps(itemProps)));
16
+ let attrs = $derived(mergeProps(props, tagsInput.getItemTextProps(itemProps)));
18
17
  </script>
19
18
 
20
19
  <span {...attrs}>
@@ -22,16 +22,15 @@
22
22
  ...props
23
23
  }: TagsInputItemProps = $props();
24
24
 
25
- let context = tagsInputContext.get();
26
-
25
+ let tagsInput = tagsInputContext.get();
27
26
  let itemProps = $derived({
28
27
  index,
29
28
  value,
30
29
  disabled,
31
30
  });
32
31
 
33
- let state = $derived(context.getItemState(itemProps));
34
- let attrs = $derived(mergeProps(props, context.getItemProps(itemProps)));
32
+ let state = $derived(tagsInput.getItemState(itemProps));
33
+ let attrs = $derived(mergeProps(props, tagsInput.getItemProps(itemProps)));
35
34
 
36
35
  tagsInputItemPropsContext.set(() => itemProps);
37
36
  </script>
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {children, ...props}: TagsInputLabelProps = $props();
12
12
 
13
- let context = tagsInputContext.get();
13
+ let tagsInput = tagsInputContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getLabelProps()));
15
+ let attrs = $derived(mergeProps(props, tagsInput.getLabelProps()));
16
16
  </script>
17
17
 
18
18
  <label {...attrs}>
@@ -5,7 +5,7 @@
5
5
 
6
6
  export interface TagsInputProps
7
7
  extends Assign<Omit<HtmlProps<'div'>, 'children'>, CreateTagsInputProps> {
8
- children?: Snippet<[api: CreateTagsInputReturn]>;
8
+ children?: Snippet<[tagsInput: CreateTagsInputReturn]>;
9
9
  }
10
10
  </script>
11
11
 
@@ -46,7 +46,7 @@
46
46
  ...props
47
47
  }: TagsInputProps = $props();
48
48
 
49
- let context = createTagsInputt({
49
+ let tagsInput = createTagsInputt({
50
50
  id,
51
51
  ids,
52
52
  max,
@@ -76,11 +76,11 @@
76
76
  onPointerDownOutside,
77
77
  });
78
78
 
79
- let attrs = $derived(mergeProps(props, context.getRootProps()));
79
+ let attrs = $derived(mergeProps(props, tagsInput.getRootProps()));
80
80
 
81
- tagsInputContext.set(context);
81
+ tagsInputContext.set(tagsInput);
82
82
  </script>
83
83
 
84
84
  <div {...attrs}>
85
- {@render children?.(context)}
85
+ {@render children?.(tagsInput)}
86
86
  </div>
@@ -1,3 +1,4 @@
1
+ export { anatomy } from '@zag-js/tags-input';
1
2
  export { default as ClearTrigger } from './clear-trigger.svelte';
2
3
  export { default as Control } from './control.svelte';
3
4
  export { default as HiddenInput } from './hidden-input.svelte';
@@ -1,3 +1,4 @@
1
+ export { anatomy } from '@zag-js/tags-input';
1
2
  export { default as ClearTrigger } from './clear-trigger.svelte';
2
3
  export { default as Control } from './control.svelte';
3
4
  export { default as HiddenInput } from './hidden-input.svelte';
File without changes
@@ -12,9 +12,9 @@
12
12
 
13
13
  let {action, children, ...props}: TimerActionTriggerProps = $props();
14
14
 
15
- let context = timerContext.get();
15
+ let timer = timerContext.get();
16
16
 
17
- let attrs = $derived(mergeProps(props, context.getActionTriggerProps({action})));
17
+ let attrs = $derived(mergeProps(props, timer.getActionTriggerProps({action})));
18
18
  </script>
19
19
 
20
20
  <button type="button" {...attrs}>
@@ -3,11 +3,11 @@ import { createUniqueId } from '../utils.svelte.js';
3
3
  import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
4
4
  import * as timer from '@zag-js/timer';
5
5
  export function createTimer(props) {
6
- const environmentContext = getEnvironmentContext();
6
+ const environment = getEnvironmentContext();
7
7
  const [state, send] = useMachine(timer.machine({
8
8
  ...props,
9
9
  id: props.id ?? createUniqueId(),
10
- getRootNode: environmentContext?.getRootNode,
10
+ getRootNode: environment?.getRootNode,
11
11
  }));
12
12
  const api = $derived(reflect(() => timer.connect(state, send, normalizeProps)));
13
13
  return api;
@@ -10,11 +10,10 @@
10
10
 
11
11
  let {children, ...props}: TimerItemLabelProps = $props();
12
12
 
13
- let context = timerContext.get();
14
-
13
+ let timer = timerContext.get();
15
14
  let itemProps = timerItemPropsContext.get();
16
15
 
17
- let attrs = $derived(mergeProps(props, context.getItemLabelProps(itemProps)));
16
+ let attrs = $derived(mergeProps(props, timer.getItemLabelProps(itemProps)));
18
17
  </script>
19
18
 
20
19
  <span {...attrs}>
@@ -10,17 +10,16 @@
10
10
 
11
11
  let {children, ...props}: TimerItemValueProps = $props();
12
12
 
13
- let context = timerContext.get();
14
-
13
+ let timer = timerContext.get();
15
14
  let itemProps = timerItemPropsContext.get();
16
15
 
17
- let attrs = $derived(mergeProps(props, context.getItemValueProps(itemProps)));
16
+ let attrs = $derived(mergeProps(props, timer.getItemValueProps(itemProps)));
18
17
  </script>
19
18
 
20
19
  <span {...attrs}>
21
20
  {#if children}
22
21
  {@render children?.()}
23
22
  {:else}
24
- {context.formattedTime[itemProps.type]}
23
+ {timer.formattedTime[itemProps.type]}
25
24
  {/if}
26
25
  </span>
@@ -11,13 +11,12 @@
11
11
 
12
12
  let {type, children, ...props}: TimerItemProps = $props();
13
13
 
14
- let context = timerContext.get();
15
-
14
+ let timer = timerContext.get();
16
15
  let itemProps = $derived({
17
16
  type,
18
17
  });
19
18
 
20
- let attrs = $derived(mergeProps(props, context.getItemProps(itemProps)));
19
+ let attrs = $derived(mergeProps(props, timer.getItemProps(itemProps)));
21
20
 
22
21
  timerItemPropsContext.set(() => itemProps);
23
22
  </script>
@@ -4,7 +4,7 @@
4
4
  import type {CreateTimerProps, CreateTimerReturn} from './create-timer.svelte.js';
5
5
 
6
6
  export interface TimerProps extends Assign<Omit<HtmlProps<'div'>, 'children'>, CreateTimerProps> {
7
- children?: Snippet<[api: CreateTimerReturn]>;
7
+ children?: Snippet<[timer: CreateTimerReturn]>;
8
8
  }
9
9
  </script>
10
10
 
@@ -26,7 +26,7 @@
26
26
  ...props
27
27
  }: TimerProps = $props();
28
28
 
29
- let context = createTimer({
29
+ let timer = createTimer({
30
30
  id,
31
31
  startMs,
32
32
  targetMs,
@@ -37,11 +37,11 @@
37
37
  onComplete,
38
38
  });
39
39
 
40
- let attrs = $derived(mergeProps(props, context.getRootProps()));
40
+ let attrs = $derived(mergeProps(props, timer.getRootProps()));
41
41
 
42
- timerContext.set(context);
42
+ timerContext.set(timer);
43
43
  </script>
44
44
 
45
45
  <div {...attrs}>
46
- {@render children?.(context)}
46
+ {@render children?.(timer)}
47
47
  </div>
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {children, ...props}: TimerSeparatorProps = $props();
12
12
 
13
- let context = timerContext.get();
13
+ let timer = timerContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getSeparatorProps()));
15
+ let attrs = $derived(mergeProps(props, timer.getSeparatorProps()));
16
16
  </script>
17
17
 
18
18
  <span {...attrs}>
@@ -1,3 +1,4 @@
1
+ export { parse } from '@zag-js/timer';
1
2
  export { default as ActionTrigger } from './action-trigger.svelte';
2
3
  export { default as ItemLabel } from './item-label.svelte';
3
4
  export { default as ItemValue } from './item-value.svelte';
@@ -1,3 +1,4 @@
1
+ export { parse } from '@zag-js/timer';
1
2
  export { default as ActionTrigger } from './action-trigger.svelte';
2
3
  export { default as ItemLabel } from './item-label.svelte';
3
4
  export { default as ItemValue } from './item-value.svelte';
@@ -4,13 +4,13 @@ import { createUniqueId } from '../utils.svelte.js';
4
4
  import { normalizeProps, reflect } from '@zag-js/svelte';
5
5
  import * as toast from '@zag-js/toast';
6
6
  export function createToaster(props) {
7
- const localContext = getLocaleContext();
8
- const environmentContext = getEnvironmentContext();
7
+ const locale = getLocaleContext();
8
+ const environment = getEnvironmentContext();
9
9
  const machine = $derived(toast.group.machine({
10
10
  ...props,
11
11
  id: props?.id ?? createUniqueId(),
12
- dir: localContext?.dir,
13
- getRootNode: environmentContext?.getRootNode,
12
+ dir: locale?.dir,
13
+ getRootNode: environment?.getRootNode,
14
14
  }));
15
15
  const api = $derived(reflect(() => ({
16
16
  machine,
@@ -1,9 +1,8 @@
1
- export { anatomy as toastAnatomy } from '@zag-js/toast';
2
- export { type ToastActionTriggerProps } from './action-trigger.svelte';
3
- export { type ToastCloseTriggerProps } from './close-trigger.svelte';
4
- export { createToaster, type CreateToasterProps, type CreateToasterReturn, } from './create-toaster.svelte.js';
5
- export { type ToastDescriptionProps } from './description.svelte';
6
- export { type ToastProps } from './root.svelte';
7
- export { type ToastTitleProps } from './title.svelte';
8
1
  export * as Toast from './toast.js';
2
+ export type { ToastActionTriggerProps } from './action-trigger.svelte';
3
+ export type { ToastCloseTriggerProps } from './close-trigger.svelte';
4
+ export type { ToastDescriptionProps } from './description.svelte';
5
+ export type { ToastProps } from './root.svelte';
6
+ export type { ToastTitleProps } from './title.svelte';
7
+ export { createToaster, type CreateToasterProps, type CreateToasterReturn, } from './create-toaster.svelte.js';
9
8
  export { default as Toaster, type ToasterProps } from './toaster.svelte';
@@ -1,9 +1,3 @@
1
- export { anatomy as toastAnatomy } from '@zag-js/toast';
2
- export {} from './action-trigger.svelte';
3
- export {} from './close-trigger.svelte';
4
- export { createToaster, } from './create-toaster.svelte.js';
5
- export {} from './description.svelte';
6
- export {} from './root.svelte';
7
- export {} from './title.svelte';
8
1
  export * as Toast from './toast.js';
2
+ export { createToaster, } from './create-toaster.svelte.js';
9
3
  export { default as Toaster } from './toaster.svelte';
@@ -1,5 +1,6 @@
1
- export { default as ActionTrigger, type ToastActionTriggerProps } from './action-trigger.svelte';
2
- export { default as CloseTrigger, type ToastCloseTriggerProps } from './close-trigger.svelte';
3
- export { default as Description, type ToastDescriptionProps } from './description.svelte';
4
- export { default as Root, type ToastProps } from './root.svelte';
5
- export { default as Title, type ToastTitleProps } from './title.svelte';
1
+ export { anatomy } from '@zag-js/toast';
2
+ export { default as ActionTrigger } from './action-trigger.svelte';
3
+ export { default as CloseTrigger } from './close-trigger.svelte';
4
+ export { default as Description } from './description.svelte';
5
+ export { default as Root } from './root.svelte';
6
+ export { default as Title } from './title.svelte';
@@ -1,3 +1,4 @@
1
+ export { anatomy } from '@zag-js/toast';
1
2
  export { default as ActionTrigger } from './action-trigger.svelte';
2
3
  export { default as CloseTrigger } from './close-trigger.svelte';
3
4
  export { default as Description } from './description.svelte';
@@ -4,13 +4,13 @@ import { createUniqueId } from '../utils.svelte.js';
4
4
  import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
5
5
  import * as toggleGroup from '@zag-js/toggle-group';
6
6
  export function createToggleGroup(props) {
7
- const localeContext = getLocaleContext();
8
- const environmentContext = getEnvironmentContext();
7
+ const locale = getLocaleContext();
8
+ const environment = getEnvironmentContext();
9
9
  const [state, send] = useMachine(toggleGroup.machine({
10
10
  ...props,
11
11
  id: props.id ?? createUniqueId(),
12
- dir: localeContext?.dir,
13
- getRootNode: environmentContext?.getRootNode,
12
+ dir: locale?.dir,
13
+ getRootNode: environment?.getRootNode,
14
14
  }));
15
15
  const api = $derived(reflect(() => toggleGroup.connect(state, send, normalizeProps)));
16
16
  return api;
@@ -1,4 +1,3 @@
1
- export { anatomy as toggleGroupAnatomy } from '@zag-js/toggle-group';
1
+ export * as ToggleGroup from './toggle-group.js';
2
2
  export type { ToggleGroupItemProps } from './item.svelte';
3
3
  export type { ToggleGroupProps } from './root.svelte';
4
- export * as ToggleGroup from './toggle-group.js';
@@ -1,2 +1 @@
1
- export { anatomy as toggleGroupAnatomy } from '@zag-js/toggle-group';
2
1
  export * as ToggleGroup from './toggle-group.js';
@@ -15,15 +15,14 @@
15
15
 
16
16
  let {value, disabled, children, ...props}: ToggleGroupItemProps = $props();
17
17
 
18
- let context = toggleGroupContext.get();
19
-
18
+ let toggleGroup = toggleGroupContext.get();
20
19
  let itemProps = $derived({
21
20
  value,
22
21
  disabled,
23
22
  });
24
23
 
25
- let state = $derived(context.getItemState(itemProps));
26
- let attrs = $derived(mergeProps(props, context.getItemProps(itemProps)));
24
+ let state = $derived(toggleGroup.getItemState(itemProps));
25
+ let attrs = $derived(mergeProps(props, toggleGroup.getItemProps(itemProps)));
27
26
  </script>
28
27
 
29
28
  <button type="button" {...attrs}>
@@ -31,7 +31,7 @@
31
31
  ...props
32
32
  }: ToggleGroupProps = $props();
33
33
 
34
- let context = createToggleGroup({
34
+ let toggleGroup = createToggleGroup({
35
35
  id,
36
36
  ids,
37
37
  value: $state.snapshot(value),
@@ -43,11 +43,11 @@
43
43
  onValueChange,
44
44
  });
45
45
 
46
- let attrs = $derived(mergeProps(props, context.getRootProps()));
46
+ let attrs = $derived(mergeProps(props, toggleGroup.getRootProps()));
47
47
 
48
- toggleGroupContext.set(context);
48
+ toggleGroupContext.set(toggleGroup);
49
49
  </script>
50
50
 
51
51
  <div {...attrs}>
52
- {@render children?.(context)}
52
+ {@render children?.(toggleGroup)}
53
53
  </div>
@@ -1,2 +1,3 @@
1
+ export { anatomy } from '@zag-js/toggle-group';
1
2
  export { default as Item } from './item.svelte';
2
3
  export { default as Root } from './root.svelte';
@@ -1,2 +1,3 @@
1
+ export { anatomy } from '@zag-js/toggle-group';
1
2
  export { default as Item } from './item.svelte';
2
3
  export { default as Root } from './root.svelte';
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {children, ...props}: TooltipArrowTipProps = $props();
12
12
 
13
- let context = tooltipContext.get();
13
+ let tooltip = tooltipContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getArrowTipProps()));
15
+ let attrs = $derived(mergeProps(props, tooltip.getArrowTipProps()));
16
16
  </script>
17
17
 
18
18
  <div {...attrs}>
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {children, ...props}: TooltipArrowProps = $props();
12
12
 
13
- let context = tooltipContext.get();
13
+ let tooltip = tooltipContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getArrowProps()));
15
+ let attrs = $derived(mergeProps(props, tooltip.getArrowProps()));
16
16
  </script>
17
17
 
18
18
  <div {...attrs}>
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {children, ...props}: TooltipContentProps = $props();
12
12
 
13
- let context = tooltipContext.get();
13
+ let tooltip = tooltipContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getContentProps()));
15
+ let attrs = $derived(mergeProps(props, tooltip.getContentProps()));
16
16
  </script>
17
17
 
18
18
  <div {...attrs}>
@@ -4,14 +4,14 @@ import { createUniqueId } from '../utils.svelte.js';
4
4
  import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
5
5
  import * as tooltip from '@zag-js/tooltip';
6
6
  export function createTooltip(props) {
7
- const localeContext = getLocaleContext();
8
- const environmentContext = getEnvironmentContext();
7
+ const locale = getLocaleContext();
8
+ const environment = getEnvironmentContext();
9
9
  const [state, send] = useMachine(tooltip.machine({
10
10
  ...props,
11
11
  id: props.id ?? createUniqueId(),
12
- dir: localeContext?.dir,
12
+ dir: locale?.dir,
13
13
  open: props.defaultOpen,
14
- getRootNode: environmentContext?.getRootNode,
14
+ getRootNode: environment?.getRootNode,
15
15
  'open.controlled': props.open != null,
16
16
  }));
17
17
  const api = $derived(reflect(() => tooltip.connect(state, send, normalizeProps)));
@@ -1,8 +1,7 @@
1
- export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
1
+ export * as Tooltip from './tooltip.js';
2
2
  export type { TooltipArrowTipProps } from './arrow-tip.svelte';
3
3
  export type { TooltipArrowProps } from './arrow.svelte';
4
4
  export type { TooltipContentProps } from './content.svelte';
5
5
  export type { TooltipPositionerProps } from './positioner.svelte';
6
6
  export type { TooltipProps } from './root.svelte';
7
- export * as Tooltip from './tooltip.js';
8
7
  export type { TooltipTriggerProps } from './trigger.svelte';
@@ -1,2 +1 @@
1
- export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
2
1
  export * as Tooltip from './tooltip.js';
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {children, ...props}: TooltipPositionerProps = $props();
12
12
 
13
- let context = tooltipContext.get();
13
+ let tooltip = tooltipContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getPositionerProps()));
15
+ let attrs = $derived(mergeProps(props, tooltip.getPositionerProps()));
16
16
  </script>
17
17
 
18
18
  <div {...attrs}>
@@ -3,7 +3,7 @@
3
3
  import type {CreateTooltipProps, CreateTooltipReturn} from './create-tooltip.svelte.js';
4
4
 
5
5
  export interface TooltipProps extends CreateTooltipProps {
6
- children?: Snippet<[api: CreateTooltipReturn]>;
6
+ children?: Snippet<[tooltip: CreateTooltipReturn]>;
7
7
  }
8
8
  </script>
9
9
 
@@ -13,9 +13,9 @@
13
13
 
14
14
  let {children, ...props}: TooltipProps = $props();
15
15
 
16
- let context = createTooltip(props);
16
+ let tooltip = createTooltip(props);
17
17
 
18
- tooltipContext.set(context);
18
+ tooltipContext.set(tooltip);
19
19
  </script>
20
20
 
21
- {@render children?.(context)}
21
+ {@render children?.(tooltip)}
@@ -1,3 +1,4 @@
1
+ export { anatomy } from '@zag-js/tooltip';
1
2
  export { default as ArrowTip } from './arrow-tip.svelte';
2
3
  export { default as Arrow } from './arrow.svelte';
3
4
  export { default as Content } from './content.svelte';
@@ -1,3 +1,4 @@
1
+ export { anatomy } from '@zag-js/tooltip';
1
2
  export { default as ArrowTip } from './arrow-tip.svelte';
2
3
  export { default as Arrow } from './arrow.svelte';
3
4
  export { default as Content } from './content.svelte';
@@ -10,9 +10,9 @@
10
10
 
11
11
  let {children, ...props}: TooltipTriggerProps = $props();
12
12
 
13
- let context = tooltipContext.get();
13
+ let tooltip = tooltipContext.get();
14
14
 
15
- let attrs = $derived(mergeProps(props, context.getTriggerProps()));
15
+ let attrs = $derived(mergeProps(props, tooltip.getTriggerProps()));
16
16
  </script>
17
17
 
18
18
  <button type="button" {...attrs}>
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.22",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -87,6 +87,7 @@
87
87
  "dependencies": {
88
88
  "@internationalized/date": "3.5.5",
89
89
  "@zag-js/accordion": "0.65.1",
90
+ "@zag-js/anatomy": "0.65.1",
90
91
  "@zag-js/avatar": "0.65.1",
91
92
  "@zag-js/carousel": "0.65.1",
92
93
  "@zag-js/checkbox": "0.65.1",
@@ -99,6 +100,7 @@
99
100
  "@zag-js/dom-query": "0.65.1",
100
101
  "@zag-js/editable": "0.65.1",
101
102
  "@zag-js/file-upload": "0.65.1",
103
+ "@zag-js/floating-panel": "0.65.1",
102
104
  "@zag-js/hover-card": "0.65.1",
103
105
  "@zag-js/i18n-utils": "0.65.1",
104
106
  "@zag-js/menu": "0.65.1",
@@ -120,10 +122,12 @@
120
122
  "@zag-js/switch": "0.65.1",
121
123
  "@zag-js/tabs": "0.65.1",
122
124
  "@zag-js/tags-input": "0.65.1",
125
+ "@zag-js/time-picker": "0.65.1",
123
126
  "@zag-js/timer": "0.65.1",
124
127
  "@zag-js/toast": "0.65.1",
125
128
  "@zag-js/toggle-group": "0.65.1",
126
129
  "@zag-js/tooltip": "0.65.1",
130
+ "@zag-js/tour": "0.65.1",
127
131
  "@zag-js/tree-view": "0.65.1",
128
132
  "uid": "2.0.2"
129
133
  },