ui-ingredients 0.0.8 → 0.0.9

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