ui-ingredients 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (454) hide show
  1. package/README.md +4 -3
  2. package/dist/accordion/context.svelte.d.ts +1 -1
  3. package/dist/accordion/context.svelte.js +1 -1
  4. package/dist/accordion/index.d.ts +3 -3
  5. package/dist/accordion/index.js +3 -3
  6. package/dist/accordion/item-content.svelte +9 -5
  7. package/dist/accordion/item-content.svelte.d.ts +2 -3
  8. package/dist/accordion/item-indicator.svelte +9 -5
  9. package/dist/accordion/item-indicator.svelte.d.ts +2 -3
  10. package/dist/accordion/item-trigger.svelte +10 -5
  11. package/dist/accordion/item-trigger.svelte.d.ts +2 -3
  12. package/dist/accordion/item.svelte +19 -6
  13. package/dist/accordion/item.svelte.d.ts +5 -4
  14. package/dist/accordion/root.svelte +10 -8
  15. package/dist/accordion/root.svelte.d.ts +3 -4
  16. package/dist/avatar/fallback.svelte +2 -3
  17. package/dist/avatar/fallback.svelte.d.ts +2 -3
  18. package/dist/avatar/image.svelte +2 -3
  19. package/dist/avatar/image.svelte.d.ts +2 -3
  20. package/dist/avatar/root.svelte +10 -8
  21. package/dist/avatar/root.svelte.d.ts +3 -4
  22. package/dist/carousel/index.d.ts +5 -5
  23. package/dist/carousel/index.js +5 -5
  24. package/dist/carousel/indicator-group.svelte +2 -3
  25. package/dist/carousel/indicator-group.svelte.d.ts +2 -3
  26. package/dist/carousel/indicator.svelte +2 -3
  27. package/dist/carousel/indicator.svelte.d.ts +2 -3
  28. package/dist/carousel/item-group.svelte +2 -3
  29. package/dist/carousel/item-group.svelte.d.ts +2 -3
  30. package/dist/carousel/item.svelte +10 -5
  31. package/dist/carousel/item.svelte.d.ts +5 -4
  32. package/dist/carousel/next-trigger.svelte +2 -3
  33. package/dist/carousel/next-trigger.svelte.d.ts +2 -3
  34. package/dist/carousel/prev-trigger.svelte +2 -3
  35. package/dist/carousel/prev-trigger.svelte.d.ts +2 -3
  36. package/dist/carousel/root.svelte +9 -7
  37. package/dist/carousel/root.svelte.d.ts +2 -3
  38. package/dist/carousel/viewport.svelte +2 -3
  39. package/dist/carousel/viewport.svelte.d.ts +2 -3
  40. package/dist/checkbox/control.svelte +2 -3
  41. package/dist/checkbox/control.svelte.d.ts +2 -3
  42. package/dist/checkbox/hidden-input.svelte +2 -3
  43. package/dist/checkbox/hidden-input.svelte.d.ts +2 -3
  44. package/dist/checkbox/index.d.ts +2 -2
  45. package/dist/checkbox/index.js +2 -2
  46. package/dist/checkbox/indicator.svelte +2 -3
  47. package/dist/checkbox/indicator.svelte.d.ts +2 -3
  48. package/dist/checkbox/label.svelte +2 -3
  49. package/dist/checkbox/label.svelte.d.ts +2 -3
  50. package/dist/checkbox/root.svelte +10 -8
  51. package/dist/checkbox/root.svelte.d.ts +3 -4
  52. package/dist/clipboard/control.svelte +2 -3
  53. package/dist/clipboard/control.svelte.d.ts +2 -3
  54. package/dist/clipboard/index.d.ts +1 -1
  55. package/dist/clipboard/index.js +1 -1
  56. package/dist/clipboard/indicator.svelte +2 -3
  57. package/dist/clipboard/indicator.svelte.d.ts +2 -3
  58. package/dist/clipboard/input.svelte +2 -3
  59. package/dist/clipboard/input.svelte.d.ts +2 -3
  60. package/dist/clipboard/label.svelte +2 -3
  61. package/dist/clipboard/label.svelte.d.ts +2 -3
  62. package/dist/clipboard/root.svelte +10 -8
  63. package/dist/clipboard/root.svelte.d.ts +3 -4
  64. package/dist/clipboard/trigger.svelte +2 -3
  65. package/dist/clipboard/trigger.svelte.d.ts +2 -3
  66. package/dist/collapsible/content.svelte +2 -3
  67. package/dist/collapsible/content.svelte.d.ts +2 -3
  68. package/dist/collapsible/index.d.ts +2 -2
  69. package/dist/collapsible/index.js +2 -2
  70. package/dist/collapsible/root.svelte +10 -8
  71. package/dist/collapsible/root.svelte.d.ts +3 -4
  72. package/dist/collapsible/trigger.svelte +2 -3
  73. package/dist/collapsible/trigger.svelte.d.ts +2 -3
  74. package/dist/combobox/clear-trigger.svelte +3 -3
  75. package/dist/combobox/clear-trigger.svelte.d.ts +2 -3
  76. package/dist/combobox/content.svelte +2 -3
  77. package/dist/combobox/content.svelte.d.ts +2 -3
  78. package/dist/combobox/context.svelte.js +3 -3
  79. package/dist/combobox/control.svelte +2 -3
  80. package/dist/combobox/control.svelte.d.ts +2 -3
  81. package/dist/combobox/index.d.ts +5 -5
  82. package/dist/combobox/index.js +5 -5
  83. package/dist/combobox/input.svelte +2 -3
  84. package/dist/combobox/input.svelte.d.ts +2 -3
  85. package/dist/combobox/item-group-label.svelte +7 -4
  86. package/dist/combobox/item-group-label.svelte.d.ts +2 -3
  87. package/dist/combobox/item-group.svelte +13 -7
  88. package/dist/combobox/item-group.svelte.d.ts +2 -3
  89. package/dist/combobox/item-indicator.svelte +9 -5
  90. package/dist/combobox/item-indicator.svelte.d.ts +2 -3
  91. package/dist/combobox/item-text.svelte +9 -5
  92. package/dist/combobox/item-text.svelte.d.ts +2 -3
  93. package/dist/combobox/item.svelte +19 -6
  94. package/dist/combobox/item.svelte.d.ts +5 -4
  95. package/dist/combobox/label.svelte +2 -3
  96. package/dist/combobox/label.svelte.d.ts +2 -3
  97. package/dist/combobox/list.svelte +2 -3
  98. package/dist/combobox/list.svelte.d.ts +2 -3
  99. package/dist/combobox/positioner.svelte +2 -3
  100. package/dist/combobox/positioner.svelte.d.ts +2 -3
  101. package/dist/combobox/root.svelte +10 -8
  102. package/dist/combobox/root.svelte.d.ts +3 -4
  103. package/dist/combobox/trigger.svelte +2 -3
  104. package/dist/combobox/trigger.svelte.d.ts +2 -3
  105. package/dist/dialog/backdrop.svelte +2 -3
  106. package/dist/dialog/backdrop.svelte.d.ts +2 -3
  107. package/dist/dialog/close-trigger.svelte +2 -3
  108. package/dist/dialog/close-trigger.svelte.d.ts +2 -3
  109. package/dist/dialog/content.svelte +2 -3
  110. package/dist/dialog/content.svelte.d.ts +2 -3
  111. package/dist/dialog/description.svelte +2 -3
  112. package/dist/dialog/description.svelte.d.ts +2 -3
  113. package/dist/dialog/index.d.ts +3 -3
  114. package/dist/dialog/index.js +3 -3
  115. package/dist/dialog/positioner.svelte +2 -3
  116. package/dist/dialog/positioner.svelte.d.ts +2 -3
  117. package/dist/dialog/root.svelte +11 -5
  118. package/dist/dialog/root.svelte.d.ts +2 -2
  119. package/dist/dialog/title.svelte +2 -3
  120. package/dist/dialog/title.svelte.d.ts +2 -3
  121. package/dist/dialog/trigger.svelte +2 -3
  122. package/dist/dialog/trigger.svelte.d.ts +2 -3
  123. package/dist/editable/area.svelte +20 -0
  124. package/dist/editable/area.svelte.d.ts +21 -0
  125. package/dist/editable/cancel-trigger.svelte +21 -0
  126. package/dist/editable/cancel-trigger.svelte.d.ts +21 -0
  127. package/dist/editable/context.svelte.d.ts +8 -0
  128. package/dist/editable/context.svelte.js +14 -0
  129. package/dist/editable/control.svelte +20 -0
  130. package/dist/editable/control.svelte.d.ts +21 -0
  131. package/dist/editable/edit-trigger.svelte +20 -0
  132. package/dist/editable/edit-trigger.svelte.d.ts +21 -0
  133. package/dist/editable/index.d.ts +9 -0
  134. package/dist/editable/index.js +9 -0
  135. package/dist/editable/input.svelte +18 -0
  136. package/dist/editable/input.svelte.d.ts +21 -0
  137. package/dist/editable/label.svelte +20 -0
  138. package/dist/editable/label.svelte.d.ts +21 -0
  139. package/dist/editable/preview.svelte +24 -0
  140. package/dist/editable/preview.svelte.d.ts +21 -0
  141. package/dist/editable/root.svelte +29 -0
  142. package/dist/editable/root.svelte.d.ts +24 -0
  143. package/dist/editable/submit-trigger.svelte +21 -0
  144. package/dist/editable/submit-trigger.svelte.d.ts +21 -0
  145. package/dist/hover-card/arrow-tip.svelte +2 -3
  146. package/dist/hover-card/arrow-tip.svelte.d.ts +2 -3
  147. package/dist/hover-card/arrow.svelte +2 -3
  148. package/dist/hover-card/arrow.svelte.d.ts +2 -3
  149. package/dist/hover-card/content.svelte +2 -3
  150. package/dist/hover-card/content.svelte.d.ts +2 -3
  151. package/dist/hover-card/index.d.ts +2 -2
  152. package/dist/hover-card/index.js +2 -2
  153. package/dist/hover-card/positioner.svelte +2 -3
  154. package/dist/hover-card/positioner.svelte.d.ts +2 -3
  155. package/dist/hover-card/root.svelte +12 -5
  156. package/dist/hover-card/root.svelte.d.ts +2 -2
  157. package/dist/hover-card/trigger.svelte +2 -3
  158. package/dist/hover-card/trigger.svelte.d.ts +2 -3
  159. package/dist/index.d.ts +6 -0
  160. package/dist/index.js +3 -0
  161. package/dist/number-input/control.svelte +3 -3
  162. package/dist/number-input/control.svelte.d.ts +2 -3
  163. package/dist/number-input/decrement-trigger.svelte +2 -3
  164. package/dist/number-input/decrement-trigger.svelte.d.ts +2 -3
  165. package/dist/number-input/increment-trigger.svelte +2 -3
  166. package/dist/number-input/increment-trigger.svelte.d.ts +2 -3
  167. package/dist/number-input/index.d.ts +2 -2
  168. package/dist/number-input/index.js +2 -2
  169. package/dist/number-input/input.svelte +2 -3
  170. package/dist/number-input/input.svelte.d.ts +2 -3
  171. package/dist/number-input/label.svelte +2 -3
  172. package/dist/number-input/label.svelte.d.ts +2 -3
  173. package/dist/number-input/root.svelte +10 -8
  174. package/dist/number-input/root.svelte.d.ts +3 -4
  175. package/dist/number-input/scrubber.svelte +2 -3
  176. package/dist/number-input/scrubber.svelte.d.ts +2 -3
  177. package/dist/pagination/ellipsis.svelte +2 -3
  178. package/dist/pagination/ellipsis.svelte.d.ts +2 -3
  179. package/dist/pagination/index.d.ts +3 -3
  180. package/dist/pagination/index.js +3 -3
  181. package/dist/pagination/item.svelte +2 -3
  182. package/dist/pagination/item.svelte.d.ts +2 -3
  183. package/dist/pagination/next-trigger.svelte +3 -3
  184. package/dist/pagination/next-trigger.svelte.d.ts +2 -3
  185. package/dist/pagination/prev-trigger.svelte +3 -3
  186. package/dist/pagination/prev-trigger.svelte.d.ts +2 -3
  187. package/dist/pagination/root.svelte +10 -8
  188. package/dist/pagination/root.svelte.d.ts +3 -4
  189. package/dist/pin-input/clear-trigger.svelte +3 -3
  190. package/dist/pin-input/clear-trigger.svelte.d.ts +2 -3
  191. package/dist/pin-input/hidden-input.svelte +2 -3
  192. package/dist/pin-input/hidden-input.svelte.d.ts +2 -3
  193. package/dist/pin-input/index.d.ts +2 -2
  194. package/dist/pin-input/index.js +2 -2
  195. package/dist/pin-input/input.svelte +3 -3
  196. package/dist/pin-input/input.svelte.d.ts +2 -3
  197. package/dist/pin-input/label.svelte +2 -3
  198. package/dist/pin-input/label.svelte.d.ts +2 -3
  199. package/dist/pin-input/root.svelte +10 -8
  200. package/dist/pin-input/root.svelte.d.ts +3 -4
  201. package/dist/popover/arrow-tip.svelte +2 -3
  202. package/dist/popover/arrow-tip.svelte.d.ts +2 -3
  203. package/dist/popover/arrow.svelte +2 -3
  204. package/dist/popover/arrow.svelte.d.ts +2 -3
  205. package/dist/popover/close-trigger.svelte +2 -3
  206. package/dist/popover/close-trigger.svelte.d.ts +2 -3
  207. package/dist/popover/content.svelte +2 -3
  208. package/dist/popover/content.svelte.d.ts +2 -3
  209. package/dist/popover/description.svelte +2 -3
  210. package/dist/popover/description.svelte.d.ts +2 -3
  211. package/dist/popover/index.d.ts +4 -4
  212. package/dist/popover/index.js +4 -4
  213. package/dist/popover/positioner.svelte +2 -3
  214. package/dist/popover/positioner.svelte.d.ts +2 -3
  215. package/dist/popover/root.svelte +11 -5
  216. package/dist/popover/root.svelte.d.ts +2 -2
  217. package/dist/popover/title.svelte +2 -3
  218. package/dist/popover/title.svelte.d.ts +2 -3
  219. package/dist/popover/trigger.svelte +2 -3
  220. package/dist/popover/trigger.svelte.d.ts +2 -3
  221. package/dist/portal/root.svelte +1 -1
  222. package/dist/presence/root.svelte +11 -4
  223. package/dist/presence/root.svelte.d.ts +2 -3
  224. package/dist/progress/circle-range.svelte +2 -3
  225. package/dist/progress/circle-range.svelte.d.ts +2 -3
  226. package/dist/progress/circle-track.svelte +2 -3
  227. package/dist/progress/circle-track.svelte.d.ts +2 -3
  228. package/dist/progress/circle.svelte +2 -3
  229. package/dist/progress/circle.svelte.d.ts +2 -3
  230. package/dist/progress/index.d.ts +3 -3
  231. package/dist/progress/index.js +3 -3
  232. package/dist/progress/label.svelte +2 -3
  233. package/dist/progress/label.svelte.d.ts +2 -3
  234. package/dist/progress/range.svelte +2 -3
  235. package/dist/progress/range.svelte.d.ts +2 -3
  236. package/dist/progress/root.svelte +10 -8
  237. package/dist/progress/root.svelte.d.ts +3 -4
  238. package/dist/progress/track.svelte +2 -3
  239. package/dist/progress/track.svelte.d.ts +2 -3
  240. package/dist/progress/value-text.svelte +2 -3
  241. package/dist/progress/value-text.svelte.d.ts +2 -3
  242. package/dist/qr-code/frame.svelte +20 -21
  243. package/dist/qr-code/frame.svelte.d.ts +2 -3
  244. package/dist/qr-code/overlay.svelte +20 -21
  245. package/dist/qr-code/overlay.svelte.d.ts +2 -3
  246. package/dist/qr-code/pattern.svelte +20 -21
  247. package/dist/qr-code/pattern.svelte.d.ts +2 -3
  248. package/dist/qr-code/root.svelte +50 -48
  249. package/dist/qr-code/root.svelte.d.ts +3 -4
  250. package/dist/radio-group/index.d.ts +3 -3
  251. package/dist/radio-group/index.js +3 -3
  252. package/dist/radio-group/indicator.svelte +2 -3
  253. package/dist/radio-group/indicator.svelte.d.ts +2 -3
  254. package/dist/radio-group/item-control.svelte +9 -5
  255. package/dist/radio-group/item-control.svelte.d.ts +2 -3
  256. package/dist/radio-group/item-hidden-input.svelte +10 -5
  257. package/dist/radio-group/item-hidden-input.svelte.d.ts +2 -3
  258. package/dist/radio-group/item-text.svelte +9 -5
  259. package/dist/radio-group/item-text.svelte.d.ts +2 -3
  260. package/dist/radio-group/item.svelte +28 -7
  261. package/dist/radio-group/item.svelte.d.ts +5 -4
  262. package/dist/radio-group/label.svelte +2 -3
  263. package/dist/radio-group/label.svelte.d.ts +2 -3
  264. package/dist/radio-group/root.svelte +10 -8
  265. package/dist/radio-group/root.svelte.d.ts +3 -4
  266. package/dist/rating-group/context.svelte.d.ts +10 -0
  267. package/dist/rating-group/context.svelte.js +20 -0
  268. package/dist/rating-group/control.svelte +20 -0
  269. package/dist/rating-group/control.svelte.d.ts +21 -0
  270. package/dist/rating-group/hidden-input.svelte +19 -0
  271. package/dist/rating-group/hidden-input.svelte.d.ts +21 -0
  272. package/dist/rating-group/index.d.ts +5 -0
  273. package/dist/rating-group/index.js +5 -0
  274. package/dist/rating-group/item.svelte +27 -0
  275. package/dist/rating-group/item.svelte.d.ts +24 -0
  276. package/dist/rating-group/label.svelte +20 -0
  277. package/dist/rating-group/label.svelte.d.ts +21 -0
  278. package/dist/rating-group/root.svelte +73 -0
  279. package/dist/rating-group/root.svelte.d.ts +24 -0
  280. package/dist/segment-group/index.d.ts +1 -0
  281. package/dist/segment-group/index.js +1 -0
  282. package/dist/select/clear-trigger.svelte +2 -3
  283. package/dist/select/clear-trigger.svelte.d.ts +2 -3
  284. package/dist/select/content.svelte +2 -3
  285. package/dist/select/content.svelte.d.ts +2 -3
  286. package/dist/select/context.svelte.js +3 -3
  287. package/dist/select/control.svelte +2 -3
  288. package/dist/select/control.svelte.d.ts +2 -3
  289. package/dist/select/hidden-select.svelte +2 -3
  290. package/dist/select/hidden-select.svelte.d.ts +2 -3
  291. package/dist/select/index.d.ts +9 -9
  292. package/dist/select/index.js +9 -9
  293. package/dist/select/indicator.svelte +2 -3
  294. package/dist/select/indicator.svelte.d.ts +2 -3
  295. package/dist/select/item-group-label.svelte +10 -5
  296. package/dist/select/item-group-label.svelte.d.ts +2 -3
  297. package/dist/select/item-group.svelte +13 -7
  298. package/dist/select/item-group.svelte.d.ts +2 -3
  299. package/dist/select/item-indicator.svelte +5 -4
  300. package/dist/select/item-indicator.svelte.d.ts +2 -3
  301. package/dist/select/item-text.svelte +5 -4
  302. package/dist/select/item-text.svelte.d.ts +2 -3
  303. package/dist/select/item.svelte +15 -5
  304. package/dist/select/item.svelte.d.ts +5 -4
  305. package/dist/select/label.svelte +2 -3
  306. package/dist/select/label.svelte.d.ts +2 -3
  307. package/dist/select/list.svelte +2 -3
  308. package/dist/select/list.svelte.d.ts +2 -3
  309. package/dist/select/positioner.svelte +2 -3
  310. package/dist/select/positioner.svelte.d.ts +2 -3
  311. package/dist/select/root.svelte +10 -8
  312. package/dist/select/root.svelte.d.ts +3 -4
  313. package/dist/select/trigger.svelte +2 -3
  314. package/dist/select/trigger.svelte.d.ts +2 -3
  315. package/dist/select/value-text.svelte +2 -3
  316. package/dist/select/value-text.svelte.d.ts +2 -3
  317. package/dist/slider/control.svelte +2 -3
  318. package/dist/slider/control.svelte.d.ts +2 -3
  319. package/dist/slider/hidden-input.svelte +5 -4
  320. package/dist/slider/hidden-input.svelte.d.ts +2 -3
  321. package/dist/slider/index.d.ts +3 -3
  322. package/dist/slider/index.js +3 -3
  323. package/dist/slider/label.svelte +2 -3
  324. package/dist/slider/label.svelte.d.ts +2 -3
  325. package/dist/slider/marker-group.svelte +2 -3
  326. package/dist/slider/marker-group.svelte.d.ts +2 -3
  327. package/dist/slider/marker.svelte +3 -3
  328. package/dist/slider/marker.svelte.d.ts +2 -3
  329. package/dist/slider/range.svelte +2 -3
  330. package/dist/slider/range.svelte.d.ts +2 -3
  331. package/dist/slider/root.svelte +10 -8
  332. package/dist/slider/root.svelte.d.ts +3 -4
  333. package/dist/slider/thumb.svelte +3 -3
  334. package/dist/slider/thumb.svelte.d.ts +2 -3
  335. package/dist/slider/track.svelte +2 -3
  336. package/dist/slider/track.svelte.d.ts +2 -3
  337. package/dist/slider/value-text.svelte +2 -3
  338. package/dist/slider/value-text.svelte.d.ts +2 -3
  339. package/dist/steps/content.svelte +3 -3
  340. package/dist/steps/content.svelte.d.ts +2 -3
  341. package/dist/steps/index.d.ts +4 -4
  342. package/dist/steps/index.js +4 -4
  343. package/dist/steps/indicator.svelte +5 -4
  344. package/dist/steps/indicator.svelte.d.ts +2 -3
  345. package/dist/steps/item.svelte +10 -5
  346. package/dist/steps/item.svelte.d.ts +5 -4
  347. package/dist/steps/list.svelte +2 -3
  348. package/dist/steps/list.svelte.d.ts +2 -3
  349. package/dist/steps/next-trigger.svelte +2 -3
  350. package/dist/steps/next-trigger.svelte.d.ts +2 -3
  351. package/dist/steps/prev-trigger.svelte +2 -3
  352. package/dist/steps/prev-trigger.svelte.d.ts +2 -3
  353. package/dist/steps/progress.svelte +2 -3
  354. package/dist/steps/progress.svelte.d.ts +2 -3
  355. package/dist/steps/root.svelte +10 -8
  356. package/dist/steps/root.svelte.d.ts +3 -4
  357. package/dist/steps/separator.svelte +5 -4
  358. package/dist/steps/separator.svelte.d.ts +2 -3
  359. package/dist/steps/trigger.svelte +2 -3
  360. package/dist/steps/trigger.svelte.d.ts +2 -3
  361. package/dist/switch/control.svelte +2 -3
  362. package/dist/switch/control.svelte.d.ts +2 -3
  363. package/dist/switch/hidden-input.svelte +2 -3
  364. package/dist/switch/hidden-input.svelte.d.ts +2 -3
  365. package/dist/switch/index.d.ts +1 -1
  366. package/dist/switch/index.js +1 -1
  367. package/dist/switch/label.svelte +2 -3
  368. package/dist/switch/label.svelte.d.ts +2 -3
  369. package/dist/switch/root.svelte +10 -8
  370. package/dist/switch/root.svelte.d.ts +3 -4
  371. package/dist/switch/thumb.svelte +2 -3
  372. package/dist/switch/thumb.svelte.d.ts +2 -3
  373. package/dist/tabs/content.svelte +3 -3
  374. package/dist/tabs/content.svelte.d.ts +2 -3
  375. package/dist/tabs/list.svelte +2 -3
  376. package/dist/tabs/list.svelte.d.ts +2 -3
  377. package/dist/tabs/root.svelte +12 -7
  378. package/dist/tabs/root.svelte.d.ts +3 -4
  379. package/dist/tabs/trigger.svelte +6 -4
  380. package/dist/tabs/trigger.svelte.d.ts +2 -3
  381. package/dist/tags-input/clear-trigger.svelte +21 -21
  382. package/dist/tags-input/clear-trigger.svelte.d.ts +2 -3
  383. package/dist/tags-input/control.svelte +20 -21
  384. package/dist/tags-input/control.svelte.d.ts +2 -3
  385. package/dist/tags-input/hidden-input.svelte +18 -19
  386. package/dist/tags-input/hidden-input.svelte.d.ts +2 -3
  387. package/dist/tags-input/index.d.ts +5 -5
  388. package/dist/tags-input/index.js +5 -5
  389. package/dist/tags-input/input.svelte +18 -19
  390. package/dist/tags-input/input.svelte.d.ts +2 -3
  391. package/dist/tags-input/item-delete-trigger.svelte +27 -23
  392. package/dist/tags-input/item-delete-trigger.svelte.d.ts +2 -3
  393. package/dist/tags-input/item-input.svelte +24 -20
  394. package/dist/tags-input/item-input.svelte.d.ts +2 -3
  395. package/dist/tags-input/item-preview.svelte +26 -22
  396. package/dist/tags-input/item-preview.svelte.d.ts +2 -3
  397. package/dist/tags-input/item-text.svelte +26 -22
  398. package/dist/tags-input/item-text.svelte.d.ts +2 -3
  399. package/dist/tags-input/item.svelte +52 -37
  400. package/dist/tags-input/item.svelte.d.ts +5 -4
  401. package/dist/tags-input/label.svelte +20 -21
  402. package/dist/tags-input/label.svelte.d.ts +2 -3
  403. package/dist/tags-input/root.svelte +99 -97
  404. package/dist/tags-input/root.svelte.d.ts +3 -4
  405. package/dist/timer/action-trigger.svelte +24 -23
  406. package/dist/timer/action-trigger.svelte.d.ts +2 -3
  407. package/dist/timer/index.d.ts +4 -4
  408. package/dist/timer/index.js +4 -4
  409. package/dist/timer/item-label.svelte +23 -22
  410. package/dist/timer/item-label.svelte.d.ts +2 -3
  411. package/dist/timer/item-value.svelte +27 -26
  412. package/dist/timer/item-value.svelte.d.ts +2 -3
  413. package/dist/timer/item.svelte +24 -24
  414. package/dist/timer/item.svelte.d.ts +2 -3
  415. package/dist/timer/root.svelte +56 -54
  416. package/dist/timer/root.svelte.d.ts +3 -4
  417. package/dist/timer/separator.svelte +20 -21
  418. package/dist/timer/separator.svelte.d.ts +2 -3
  419. package/dist/toast/action-trigger.svelte +2 -3
  420. package/dist/toast/action-trigger.svelte.d.ts +2 -3
  421. package/dist/toast/close-trigger.svelte +2 -3
  422. package/dist/toast/close-trigger.svelte.d.ts +2 -3
  423. package/dist/toast/description.svelte +2 -3
  424. package/dist/toast/description.svelte.d.ts +2 -3
  425. package/dist/toast/root.svelte +7 -4
  426. package/dist/toast/root.svelte.d.ts +5 -3
  427. package/dist/toast/title.svelte +2 -3
  428. package/dist/toast/title.svelte.d.ts +2 -3
  429. package/dist/toast/toast.d.ts +3 -3
  430. package/dist/toast/toast.js +3 -3
  431. package/dist/toast/toaster.svelte +3 -3
  432. package/dist/toast/toaster.svelte.d.ts +2 -3
  433. package/dist/toggle-group/item.svelte +13 -6
  434. package/dist/toggle-group/item.svelte.d.ts +5 -4
  435. package/dist/toggle-group/root.svelte +10 -8
  436. package/dist/toggle-group/root.svelte.d.ts +3 -4
  437. package/dist/tooltip/arrow-tip.svelte +2 -3
  438. package/dist/tooltip/arrow-tip.svelte.d.ts +2 -3
  439. package/dist/tooltip/arrow.svelte +2 -3
  440. package/dist/tooltip/arrow.svelte.d.ts +2 -3
  441. package/dist/tooltip/content.svelte +2 -3
  442. package/dist/tooltip/content.svelte.d.ts +2 -3
  443. package/dist/tooltip/index.d.ts +2 -2
  444. package/dist/tooltip/index.js +2 -2
  445. package/dist/tooltip/positioner.svelte +2 -3
  446. package/dist/tooltip/positioner.svelte.d.ts +2 -3
  447. package/dist/tooltip/root.svelte +11 -5
  448. package/dist/tooltip/root.svelte.d.ts +2 -2
  449. package/dist/tooltip/trigger.svelte +2 -3
  450. package/dist/tooltip/trigger.svelte.d.ts +2 -3
  451. package/dist/types.d.ts +7 -4
  452. package/package.json +39 -39
  453. package/dist/editable/.gitkeep +0 -0
  454. package/dist/rating-group/.gitkeep +0 -0
package/README.md CHANGED
@@ -45,8 +45,8 @@ npm install ui-ingredients
45
45
  - 🟢 Combobox
46
46
  - 🟡 DatePicker
47
47
  - 🟢 Dialog
48
- - 🟡 Editable
49
- - FileUpload
48
+ - 🟢 Editable
49
+ - 🟡 FileUpload
50
50
  - 🟢 HoverCard
51
51
  - 🟡 Menu
52
52
  - 🟢 NumberInput
@@ -58,8 +58,9 @@ npm install ui-ingredients
58
58
  - 🟢 Progress
59
59
  - 🟢 QRCode
60
60
  - 🟢 RadioGroup
61
- - RatingGroup
61
+ - 🟢 RatingGroup
62
62
  - 🟢 Select
63
+ - 🟢 SegmentGroup
63
64
  - ⚪ SignaturePad
64
65
  - 🟢 Slider
65
66
  - ⚪ Splitter
@@ -4,7 +4,7 @@ export interface CreateAccordionContextProps extends accordion.Context {
4
4
  export interface CreateAccordionContextReturn extends ReturnType<typeof createAccordionContext> {
5
5
  }
6
6
  export declare function createAccordionContext(props: CreateAccordionContextProps): accordion.Api;
7
- export declare function setAccordionContext(value: CreateAccordionContextReturn): any;
7
+ export declare function setAccordionContext(value: CreateAccordionContextReturn): CreateAccordionContextReturn;
8
8
  export declare function useAccordionContext(): CreateAccordionContextReturn;
9
9
  export declare function setAccordionItemContext(value: accordion.ItemProps): void;
10
10
  export declare function useAccordionItemContext(): accordion.ItemProps;
@@ -7,7 +7,7 @@ export function createAccordionContext(props) {
7
7
  return api;
8
8
  }
9
9
  export function setAccordionContext(value) {
10
- return setContext('Accordion', reflect(() => value));
10
+ return setContext('Accordion', value);
11
11
  }
12
12
  export function useAccordionContext() {
13
13
  return getContext('Accordion');
@@ -1,5 +1,5 @@
1
- export { default as ItemContent, type AccordionItemContentProps } from './item-content.svelte';
2
- export { default as ItemIndicator, type AccordionIndicatorProps } from './item-indicator.svelte';
3
- export { default as ItemTrigger, type AccordionItemTriggerProps } from './item-trigger.svelte';
1
+ export { default as ItemContent, type AccordionItemContentProps, } from './item-content.svelte';
2
+ export { default as ItemIndicator, type AccordionIndicatorProps, } from './item-indicator.svelte';
3
+ export { default as ItemTrigger, type AccordionItemTriggerProps, } from './item-trigger.svelte';
4
4
  export { default as Item, type AccordionItemProps } from './item.svelte';
5
5
  export { default as Root, type AccordionProps } from './root.svelte';
@@ -1,5 +1,5 @@
1
- export { default as ItemContent } from './item-content.svelte';
2
- export { default as ItemIndicator } from './item-indicator.svelte';
3
- export { default as ItemTrigger } from './item-trigger.svelte';
1
+ export { default as ItemContent, } from './item-content.svelte';
2
+ export { default as ItemIndicator, } from './item-indicator.svelte';
3
+ export { default as ItemTrigger, } from './item-trigger.svelte';
4
4
  export { default as Item } from './item.svelte';
5
5
  export { default as Root } from './root.svelte';
@@ -1,20 +1,24 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface AccordionItemContentProps extends Assign<SvelteHTMLElements['div'], {}> {}
4
+ export interface AccordionItemContentProps extends SvelteHtmlProps<'div'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
8
  import {mergeProps} from '@zag-js/svelte';
10
- import {useAccordionContext, useAccordionItemContext} from './context.svelte.js';
9
+ import {
10
+ useAccordionContext,
11
+ useAccordionItemContext,
12
+ } from './context.svelte.js';
11
13
 
12
14
  let {children, ...props}: AccordionItemContentProps = $props();
13
15
 
14
16
  let context = useAccordionContext();
15
17
  let itemContext = useAccordionItemContext();
16
18
 
17
- let attrs = $derived(mergeProps(props, context.getItemContentProps(itemContext)));
19
+ let attrs = $derived(
20
+ mergeProps(props, context.getItemContentProps(itemContext)),
21
+ );
18
22
  </script>
19
23
 
20
24
  <div {...attrs}>
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface AccordionItemContentProps extends Assign<SvelteHTMLElements['div'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface AccordionItemContentProps extends SvelteHtmlProps<'div'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,20 +1,24 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface AccordionIndicatorProps extends Assign<SvelteHTMLElements['span'], {}> {}
4
+ export interface AccordionIndicatorProps extends SvelteHtmlProps<'span'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
8
  import {mergeProps} from '@zag-js/svelte';
10
- import {useAccordionContext, useAccordionItemContext} from './context.svelte.js';
9
+ import {
10
+ useAccordionContext,
11
+ useAccordionItemContext,
12
+ } from './context.svelte.js';
11
13
 
12
14
  let {children, ...props}: AccordionIndicatorProps = $props();
13
15
 
14
16
  let context = useAccordionContext();
15
17
  let itemContext = useAccordionItemContext();
16
18
 
17
- let attrs = $derived(mergeProps(props, context.getItemIndicatorProps(itemContext)));
19
+ let attrs = $derived(
20
+ mergeProps(props, context.getItemIndicatorProps(itemContext)),
21
+ );
18
22
  </script>
19
23
 
20
24
  <span {...attrs}>
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface AccordionIndicatorProps extends Assign<SvelteHTMLElements['span'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface AccordionIndicatorProps extends SvelteHtmlProps<'span'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,20 +1,25 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface AccordionItemTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {}
4
+ export interface AccordionItemTriggerProps
5
+ extends SvelteHtmlProps<'button'> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
9
9
  import {mergeProps} from '@zag-js/svelte';
10
- import {useAccordionContext, useAccordionItemContext} from './context.svelte.js';
10
+ import {
11
+ useAccordionContext,
12
+ useAccordionItemContext,
13
+ } from './context.svelte.js';
11
14
 
12
15
  let {children, ...props}: AccordionItemTriggerProps = $props();
13
16
 
14
17
  let context = useAccordionContext();
15
18
  let itemContext = useAccordionItemContext();
16
19
 
17
- let attrs = $derived(mergeProps(props, context.getItemTriggerProps(itemContext)));
20
+ let attrs = $derived(
21
+ mergeProps(props, context.getItemTriggerProps(itemContext)),
22
+ );
18
23
  </script>
19
24
 
20
25
  <button type="button" {...attrs}>
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface AccordionItemTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface AccordionItemTriggerProps extends SvelteHtmlProps<'button'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,19 +1,32 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {ItemProps} from '@zag-js/accordion';
4
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {Assign, SvelteHtmlProps} from '../types.js';
3
+ import type {ItemProps, ItemState} from '@zag-js/accordion';
4
+ import type {Snippet} from 'svelte';
5
5
 
6
- export interface AccordionItemProps extends Assign<SvelteHTMLElements['div'], ItemProps> {}
6
+ export interface AccordionItemProps
7
+ extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, ItemProps> {
8
+ children?: Snippet<[state: ItemState]>;
9
+ }
7
10
  </script>
8
11
 
9
12
  <script lang="ts">
10
13
  import {mergeProps} from '@zag-js/svelte';
11
- import {setAccordionItemContext, useAccordionContext} from './context.svelte.js';
14
+ import {
15
+ setAccordionItemContext,
16
+ useAccordionContext,
17
+ } from './context.svelte.js';
12
18
 
13
19
  let {value, disabled, children, ...props}: AccordionItemProps = $props();
14
20
 
15
21
  let context = useAccordionContext();
16
22
 
23
+ let state = $derived(
24
+ context.getItemState({
25
+ value,
26
+ disabled,
27
+ }),
28
+ );
29
+
17
30
  let attrs = $derived(
18
31
  mergeProps(
19
32
  props,
@@ -31,5 +44,5 @@
31
44
  </script>
32
45
 
33
46
  <div {...attrs}>
34
- {@render children?.()}
47
+ {@render children?.(state)}
35
48
  </div>
@@ -1,7 +1,8 @@
1
- import type { Assign } from '../types.js';
2
- import type { ItemProps } from '@zag-js/accordion';
3
- import type { SvelteHTMLElements } from 'svelte/elements';
4
- export interface AccordionItemProps extends Assign<SvelteHTMLElements['div'], ItemProps> {
1
+ import type { Assign, SvelteHtmlProps } from '../types.js';
2
+ import type { ItemProps, ItemState } from '@zag-js/accordion';
3
+ import type { Snippet } from 'svelte';
4
+ export interface AccordionItemProps extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, ItemProps> {
5
+ children?: Snippet<[state: ItemState]>;
5
6
  }
6
7
  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> {
7
8
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,7 +1,6 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign, OptionalId, WithoutChildren} from '../types.js';
2
+ import type {Assign, SvelteHtmlProps} from '../types.js';
3
3
  import type {Snippet} from 'svelte';
4
- import type {SvelteHTMLElements} from 'svelte/elements';
5
4
  import type {
6
5
  CreateAccordionContextProps,
7
6
  CreateAccordionContextReturn,
@@ -9,20 +8,23 @@
9
8
 
10
9
  export interface AccordionProps
11
10
  extends Assign<
12
- WithoutChildren<SvelteHTMLElements['div']>,
13
- OptionalId<CreateAccordionContextProps>
11
+ Omit<SvelteHtmlProps<'div'>, 'children'>,
12
+ Omit<CreateAccordionContextProps, 'id'>
14
13
  > {
15
- children?: Snippet<[CreateAccordionContextReturn]>;
14
+ children?: Snippet<[context: CreateAccordionContextReturn]>;
16
15
  }
17
16
  </script>
18
17
 
19
18
  <script lang="ts">
20
19
  import {uuid} from '../utils.svelte.js';
21
20
  import {mergeProps} from '@zag-js/svelte';
22
- import {createAccordionContext, setAccordionContext} from './context.svelte.js';
21
+ import {
22
+ createAccordionContext,
23
+ setAccordionContext,
24
+ } from './context.svelte.js';
23
25
 
24
26
  let {
25
- id = uuid(),
27
+ id,
26
28
  ids,
27
29
  dir,
28
30
  value,
@@ -38,7 +40,7 @@
38
40
  }: AccordionProps = $props();
39
41
 
40
42
  let context = createAccordionContext({
41
- id,
43
+ id: id ?? uuid(),
42
44
  ids,
43
45
  dir,
44
46
  value: $state.snapshot(value),
@@ -1,9 +1,8 @@
1
- import type { Assign, OptionalId, WithoutChildren } from '../types.js';
1
+ import type { Assign, SvelteHtmlProps } from '../types.js';
2
2
  import type { Snippet } from 'svelte';
3
- import type { SvelteHTMLElements } from 'svelte/elements';
4
3
  import type { CreateAccordionContextProps, CreateAccordionContextReturn } from './context.svelte.js';
5
- export interface AccordionProps extends Assign<WithoutChildren<SvelteHTMLElements['div']>, OptionalId<CreateAccordionContextProps>> {
6
- children?: Snippet<[CreateAccordionContextReturn]>;
4
+ export interface AccordionProps extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, Omit<CreateAccordionContextProps, 'id'>> {
5
+ children?: Snippet<[context: CreateAccordionContextReturn]>;
7
6
  }
8
7
  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> {
9
8
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,8 +1,7 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface AvatarFallbackProps extends Assign<SvelteHTMLElements['div'], {}> {}
4
+ export interface AvatarFallbackProps extends SvelteHtmlProps<'div'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface AvatarFallbackProps extends Assign<SvelteHTMLElements['div'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface AvatarFallbackProps extends SvelteHtmlProps<'div'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,8 +1,7 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface AvatarImageProps extends Assign<SvelteHTMLElements['img'], {}> {}
4
+ export interface AvatarImageProps extends SvelteHtmlProps<'img'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface AvatarImageProps extends Assign<SvelteHTMLElements['img'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface AvatarImageProps extends SvelteHtmlProps<'img'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,15 +1,17 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign, OptionalId, WithoutChildren} from '../types.js';
2
+ import type {Assign, SvelteHtmlProps} from '../types.js';
3
3
  import type {Snippet} from 'svelte';
4
- import type {SvelteHTMLElements} from 'svelte/elements';
5
- import {type CreateAvatarContextProps, type CreateAvatarContextReturn} from './context.svelte.js';
4
+ import {
5
+ type CreateAvatarContextProps,
6
+ type CreateAvatarContextReturn,
7
+ } from './context.svelte.js';
6
8
 
7
9
  export interface AvatarProps
8
10
  extends Assign<
9
- WithoutChildren<SvelteHTMLElements['div']>,
10
- OptionalId<CreateAvatarContextProps>
11
+ Omit<SvelteHtmlProps<'div'>, 'children'>,
12
+ Omit<CreateAvatarContextProps, 'id'>
11
13
  > {
12
- children?: Snippet<[CreateAvatarContextReturn]>;
14
+ children?: Snippet<[context: CreateAvatarContextReturn]>;
13
15
  }
14
16
  </script>
15
17
 
@@ -19,7 +21,7 @@
19
21
  import {createAvatarContext, setAvatarContext} from './context.svelte.js';
20
22
 
21
23
  let {
22
- id = uuid(),
24
+ id,
23
25
  ids,
24
26
  dir,
25
27
  getRootNode,
@@ -29,7 +31,7 @@
29
31
  }: AvatarProps = $props();
30
32
 
31
33
  let context = createAvatarContext({
32
- id,
34
+ id: id ?? uuid(),
33
35
  ids,
34
36
  dir,
35
37
  getRootNode,
@@ -1,9 +1,8 @@
1
- import type { Assign, OptionalId, WithoutChildren } from '../types.js';
1
+ import type { Assign, SvelteHtmlProps } from '../types.js';
2
2
  import type { Snippet } from 'svelte';
3
- import type { SvelteHTMLElements } from 'svelte/elements';
4
3
  import { type CreateAvatarContextProps, type CreateAvatarContextReturn } from './context.svelte.js';
5
- export interface AvatarProps extends Assign<WithoutChildren<SvelteHTMLElements['div']>, OptionalId<CreateAvatarContextProps>> {
6
- children?: Snippet<[CreateAvatarContextReturn]>;
4
+ export interface AvatarProps extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, Omit<CreateAvatarContextProps, 'id'>> {
5
+ children?: Snippet<[context: CreateAvatarContextReturn]>;
7
6
  }
8
7
  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> {
9
8
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,8 +1,8 @@
1
1
  export { default as IndicatorGroup, type CarouselIndicatorGroupProps, } from './indicator-group.svelte';
2
- export { default as Indicator, type CarouselIndicatorProps } from './indicator.svelte';
3
- export { default as ItemGroup, type CarouselItemGroupProps } from './item-group.svelte';
2
+ export { default as Indicator, type CarouselIndicatorProps, } from './indicator.svelte';
3
+ export { default as ItemGroup, type CarouselItemGroupProps, } from './item-group.svelte';
4
4
  export { default as Item, type CarouselItemProps } from './item.svelte';
5
- export { default as NextTrigger, type CarouselNextTriggerProps } from './next-trigger.svelte';
6
- export { default as PrevTrigger, type CarouselPrevTriggerProps } from './prev-trigger.svelte';
5
+ export { default as NextTrigger, type CarouselNextTriggerProps, } from './next-trigger.svelte';
6
+ export { default as PrevTrigger, type CarouselPrevTriggerProps, } from './prev-trigger.svelte';
7
7
  export { default as Root, type CarouselProps } from './root.svelte';
8
- export { default as Viewport, type CarouselViewportProps } from './viewport.svelte';
8
+ export { default as Viewport, type CarouselViewportProps, } from './viewport.svelte';
@@ -1,8 +1,8 @@
1
1
  export { default as IndicatorGroup, } from './indicator-group.svelte';
2
- export { default as Indicator } from './indicator.svelte';
3
- export { default as ItemGroup } from './item-group.svelte';
2
+ export { default as Indicator, } from './indicator.svelte';
3
+ export { default as ItemGroup, } from './item-group.svelte';
4
4
  export { default as Item } from './item.svelte';
5
- export { default as NextTrigger } from './next-trigger.svelte';
6
- export { default as PrevTrigger } from './prev-trigger.svelte';
5
+ export { default as NextTrigger, } from './next-trigger.svelte';
6
+ export { default as PrevTrigger, } from './prev-trigger.svelte';
7
7
  export { default as Root } from './root.svelte';
8
- export { default as Viewport } from './viewport.svelte';
8
+ export { default as Viewport, } from './viewport.svelte';
@@ -1,8 +1,7 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface CarouselIndicatorGroupProps extends Assign<SvelteHTMLElements['div'], {}> {}
4
+ export interface CarouselIndicatorGroupProps extends SvelteHtmlProps<'div'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface CarouselIndicatorGroupProps extends Assign<SvelteHTMLElements['div'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface CarouselIndicatorGroupProps extends SvelteHtmlProps<'div'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,10 +1,9 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
2
+ import type {Assign, SvelteHtmlProps} from '../types.js';
3
3
  import type {IndicatorProps} from '@zag-js/carousel';
4
- import type {SvelteHTMLElements} from 'svelte/elements';
5
4
 
6
5
  export interface CarouselIndicatorProps
7
- extends Assign<SvelteHTMLElements['button'], IndicatorProps> {}
6
+ extends Assign<SvelteHtmlProps<'button'>, IndicatorProps> {}
8
7
  </script>
9
8
 
10
9
  <script lang="ts">
@@ -1,7 +1,6 @@
1
- import type { Assign } from '../types.js';
1
+ import type { Assign, SvelteHtmlProps } from '../types.js';
2
2
  import type { IndicatorProps } from '@zag-js/carousel';
3
- import type { SvelteHTMLElements } from 'svelte/elements';
4
- export interface CarouselIndicatorProps extends Assign<SvelteHTMLElements['button'], IndicatorProps> {
3
+ export interface CarouselIndicatorProps extends Assign<SvelteHtmlProps<'button'>, IndicatorProps> {
5
4
  }
6
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> {
7
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,8 +1,7 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface CarouselItemGroupProps extends Assign<SvelteHTMLElements['div'], {}> {}
4
+ export interface CarouselItemGroupProps extends SvelteHtmlProps<'div'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface CarouselItemGroupProps extends Assign<SvelteHTMLElements['div'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface CarouselItemGroupProps extends SvelteHtmlProps<'div'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,9 +1,12 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {ItemProps} from '@zag-js/carousel';
4
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {Assign, SvelteHtmlProps} from '../types.js';
3
+ import type {ItemProps, ItemState} from '@zag-js/carousel';
4
+ import type {Snippet} from 'svelte';
5
5
 
6
- export interface CarouselItemProps extends Assign<SvelteHTMLElements['button'], ItemProps> {}
6
+ export interface CarouselItemProps
7
+ extends Assign<Omit<SvelteHtmlProps<'button'>, 'children'>, ItemProps> {
8
+ children?: Snippet<[state: ItemState]>;
9
+ }
7
10
  </script>
8
11
 
9
12
  <script lang="ts">
@@ -14,9 +17,11 @@
14
17
 
15
18
  let context = useCarouselContext();
16
19
 
20
+ let state = $derived(context.getItemState({index}));
21
+
17
22
  let attrs = $derived(mergeProps(props, context.getItemProps({index})));
18
23
  </script>
19
24
 
20
25
  <button type="button" {...attrs}>
21
- {@render children?.()}
26
+ {@render children?.(state)}
22
27
  </button>
@@ -1,7 +1,8 @@
1
- import type { Assign } from '../types.js';
2
- import type { ItemProps } from '@zag-js/carousel';
3
- import type { SvelteHTMLElements } from 'svelte/elements';
4
- export interface CarouselItemProps extends Assign<SvelteHTMLElements['button'], ItemProps> {
1
+ import type { Assign, SvelteHtmlProps } from '../types.js';
2
+ import type { ItemProps, ItemState } from '@zag-js/carousel';
3
+ import type { Snippet } from 'svelte';
4
+ export interface CarouselItemProps extends Assign<Omit<SvelteHtmlProps<'button'>, 'children'>, ItemProps> {
5
+ children?: Snippet<[state: ItemState]>;
5
6
  }
6
7
  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> {
7
8
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,8 +1,7 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface CarouselNextTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {}
4
+ export interface CarouselNextTriggerProps extends SvelteHtmlProps<'button'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface CarouselNextTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface CarouselNextTriggerProps extends SvelteHtmlProps<'button'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,8 +1,7 @@
1
1
  <script lang="ts" context="module">
2
- import type {Assign} from '../types.js';
3
- import type {SvelteHTMLElements} from 'svelte/elements';
2
+ import type {SvelteHtmlProps} from '../types.js';
4
3
 
5
- export interface CarouselPrevTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {}
4
+ export interface CarouselPrevTriggerProps extends SvelteHtmlProps<'button'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
@@ -1,6 +1,5 @@
1
- import type { Assign } from '../types.js';
2
- import type { SvelteHTMLElements } from 'svelte/elements';
3
- export interface CarouselPrevTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {
1
+ import type { SvelteHtmlProps } from '../types.js';
2
+ export interface CarouselPrevTriggerProps extends SvelteHtmlProps<'button'> {
4
3
  }
5
4
  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
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {