ui-ingredients 0.0.15 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (678) hide show
  1. package/README.md +1 -1
  2. package/dist/accordion/context.svelte.d.ts +5 -10
  3. package/dist/accordion/context.svelte.js +3 -20
  4. package/dist/accordion/create-accordion.svelte.d.ts +6 -0
  5. package/dist/accordion/create-accordion.svelte.js +7 -0
  6. package/dist/accordion/item-content.svelte +6 -13
  7. package/dist/accordion/item-content.svelte.d.ts +0 -3
  8. package/dist/accordion/item-indicator.svelte +6 -13
  9. package/dist/accordion/item-indicator.svelte.d.ts +0 -3
  10. package/dist/accordion/item-trigger.svelte +6 -13
  11. package/dist/accordion/item-trigger.svelte.d.ts +0 -3
  12. package/dist/accordion/item.svelte +10 -25
  13. package/dist/accordion/item.svelte.d.ts +0 -6
  14. package/dist/accordion/root.svelte +15 -21
  15. package/dist/accordion/root.svelte.d.ts +0 -6
  16. package/dist/avatar/context.svelte.d.ts +3 -8
  17. package/dist/avatar/context.svelte.js +2 -14
  18. package/dist/avatar/create-avatar.svelte.d.ts +6 -0
  19. package/dist/avatar/create-avatar.svelte.js +7 -0
  20. package/dist/avatar/fallback.svelte +3 -3
  21. package/dist/avatar/fallback.svelte.d.ts +0 -3
  22. package/dist/avatar/image.svelte +3 -3
  23. package/dist/avatar/image.svelte.d.ts +0 -3
  24. package/dist/avatar/root.svelte +16 -27
  25. package/dist/avatar/root.svelte.d.ts +0 -6
  26. package/dist/carousel/context.svelte.d.ts +3 -8
  27. package/dist/carousel/context.svelte.js +2 -14
  28. package/dist/carousel/create-carousel.svelte.d.ts +6 -0
  29. package/dist/carousel/create-carousel.svelte.js +7 -0
  30. package/dist/carousel/indicator-group.svelte +4 -5
  31. package/dist/carousel/indicator-group.svelte.d.ts +0 -3
  32. package/dist/carousel/indicator.svelte +3 -3
  33. package/dist/carousel/indicator.svelte.d.ts +0 -4
  34. package/dist/carousel/item-group.svelte +3 -3
  35. package/dist/carousel/item-group.svelte.d.ts +0 -3
  36. package/dist/carousel/item.svelte +3 -4
  37. package/dist/carousel/item.svelte.d.ts +0 -6
  38. package/dist/carousel/next-trigger.svelte +4 -5
  39. package/dist/carousel/next-trigger.svelte.d.ts +0 -3
  40. package/dist/carousel/prev-trigger.svelte +4 -5
  41. package/dist/carousel/prev-trigger.svelte.d.ts +0 -3
  42. package/dist/carousel/root.svelte +15 -18
  43. package/dist/carousel/root.svelte.d.ts +0 -6
  44. package/dist/carousel/viewport.svelte +3 -3
  45. package/dist/carousel/viewport.svelte.d.ts +0 -3
  46. package/dist/checkbox/context.svelte.d.ts +3 -8
  47. package/dist/checkbox/context.svelte.js +2 -14
  48. package/dist/checkbox/control.svelte +3 -3
  49. package/dist/checkbox/control.svelte.d.ts +0 -3
  50. package/dist/checkbox/create-checkbox.svelte.d.ts +6 -0
  51. package/dist/checkbox/create-checkbox.svelte.js +7 -0
  52. package/dist/checkbox/hidden-input.svelte +4 -5
  53. package/dist/checkbox/hidden-input.svelte.d.ts +0 -3
  54. package/dist/checkbox/indicator.svelte +3 -3
  55. package/dist/checkbox/indicator.svelte.d.ts +0 -3
  56. package/dist/checkbox/label.svelte +3 -3
  57. package/dist/checkbox/label.svelte.d.ts +0 -3
  58. package/dist/checkbox/root.svelte +15 -15
  59. package/dist/checkbox/root.svelte.d.ts +0 -6
  60. package/dist/clipboard/context.svelte.d.ts +3 -8
  61. package/dist/clipboard/context.svelte.js +2 -14
  62. package/dist/clipboard/control.svelte +3 -3
  63. package/dist/clipboard/control.svelte.d.ts +0 -3
  64. package/dist/clipboard/create-clipboard.svelte.d.ts +6 -0
  65. package/dist/clipboard/create-clipboard.svelte.js +7 -0
  66. package/dist/clipboard/indicator.svelte +3 -3
  67. package/dist/clipboard/indicator.svelte.d.ts +0 -4
  68. package/dist/clipboard/input.svelte +3 -3
  69. package/dist/clipboard/input.svelte.d.ts +0 -3
  70. package/dist/clipboard/label.svelte +3 -3
  71. package/dist/clipboard/label.svelte.d.ts +0 -3
  72. package/dist/clipboard/root.svelte +14 -19
  73. package/dist/clipboard/root.svelte.d.ts +0 -6
  74. package/dist/clipboard/trigger.svelte +4 -5
  75. package/dist/clipboard/trigger.svelte.d.ts +0 -3
  76. package/dist/collapsible/content.svelte +3 -3
  77. package/dist/collapsible/content.svelte.d.ts +0 -3
  78. package/dist/collapsible/context.svelte.d.ts +3 -8
  79. package/dist/collapsible/context.svelte.js +2 -14
  80. package/dist/collapsible/create-collapsible.svelte.d.ts +6 -0
  81. package/dist/collapsible/create-collapsible.svelte.js +7 -0
  82. package/dist/collapsible/root.svelte +17 -17
  83. package/dist/collapsible/root.svelte.d.ts +0 -6
  84. package/dist/collapsible/trigger.svelte +6 -5
  85. package/dist/collapsible/trigger.svelte.d.ts +0 -3
  86. package/dist/combobox/clear-trigger.svelte +4 -5
  87. package/dist/combobox/clear-trigger.svelte.d.ts +0 -3
  88. package/dist/combobox/content.svelte +3 -3
  89. package/dist/combobox/content.svelte.d.ts +0 -3
  90. package/dist/combobox/context.svelte.d.ts +6 -16
  91. package/dist/combobox/context.svelte.js +4 -38
  92. package/dist/combobox/control.svelte +3 -3
  93. package/dist/combobox/control.svelte.d.ts +0 -3
  94. package/dist/combobox/create-combobox.svelte.d.ts +10 -0
  95. package/dist/combobox/create-combobox.svelte.js +19 -0
  96. package/dist/combobox/input.svelte +3 -3
  97. package/dist/combobox/input.svelte.d.ts +0 -3
  98. package/dist/combobox/item-group-label.svelte +5 -9
  99. package/dist/combobox/item-group-label.svelte.d.ts +0 -3
  100. package/dist/combobox/item-group.svelte +9 -10
  101. package/dist/combobox/item-group.svelte.d.ts +0 -4
  102. package/dist/combobox/item-indicator.svelte +6 -12
  103. package/dist/combobox/item-indicator.svelte.d.ts +0 -3
  104. package/dist/combobox/item-text.svelte +4 -7
  105. package/dist/combobox/item-text.svelte.d.ts +0 -3
  106. package/dist/combobox/item.svelte +10 -25
  107. package/dist/combobox/item.svelte.d.ts +0 -6
  108. package/dist/combobox/label.svelte +3 -3
  109. package/dist/combobox/label.svelte.d.ts +0 -3
  110. package/dist/combobox/list.svelte +3 -3
  111. package/dist/combobox/list.svelte.d.ts +0 -3
  112. package/dist/combobox/positioner.svelte +3 -3
  113. package/dist/combobox/positioner.svelte.d.ts +0 -3
  114. package/dist/combobox/root.svelte +15 -15
  115. package/dist/combobox/root.svelte.d.ts +1 -7
  116. package/dist/combobox/trigger.svelte +3 -3
  117. package/dist/combobox/trigger.svelte.d.ts +0 -3
  118. package/dist/date-picker/clear-trigger.svelte +3 -0
  119. package/dist/{menu/item-text.svelte.d.ts → date-picker/clear-trigger.svelte.d.ts} +6 -14
  120. package/dist/date-picker/content.svelte +3 -0
  121. package/dist/{menu/item-indicator.svelte.d.ts → date-picker/content.svelte.d.ts} +6 -14
  122. package/dist/date-picker/context.svelte.d.ts +8 -0
  123. package/dist/date-picker/context.svelte.js +14 -0
  124. package/dist/date-picker/control.svelte +3 -0
  125. package/dist/date-picker/control.svelte.d.ts +18 -0
  126. package/dist/date-picker/date-picker.d.ts +27 -0
  127. package/dist/date-picker/date-picker.js +27 -0
  128. package/dist/date-picker/day-table-cell-trigger.svelte +3 -0
  129. package/dist/date-picker/day-table-cell-trigger.svelte.d.ts +18 -0
  130. package/dist/date-picker/day-table-cell.svelte +3 -0
  131. package/dist/date-picker/day-table-cell.svelte.d.ts +18 -0
  132. package/dist/date-picker/index.d.ts +1 -0
  133. package/dist/date-picker/index.js +1 -0
  134. package/dist/date-picker/input.svelte +3 -0
  135. package/dist/date-picker/input.svelte.d.ts +18 -0
  136. package/dist/date-picker/label.svelte +3 -0
  137. package/dist/date-picker/label.svelte.d.ts +18 -0
  138. package/dist/date-picker/month-select.svelte +3 -0
  139. package/dist/date-picker/month-select.svelte.d.ts +18 -0
  140. package/dist/date-picker/month-table-cell-trigger.svelte +3 -0
  141. package/dist/date-picker/month-table-cell-trigger.svelte.d.ts +18 -0
  142. package/dist/date-picker/month-table-cell.svelte +3 -0
  143. package/dist/date-picker/month-table-cell.svelte.d.ts +18 -0
  144. package/dist/date-picker/next-trigger.svelte +3 -0
  145. package/dist/date-picker/next-trigger.svelte.d.ts +18 -0
  146. package/dist/date-picker/positioner.svelte +3 -0
  147. package/dist/date-picker/positioner.svelte.d.ts +18 -0
  148. package/dist/date-picker/preset-trigger.svelte +3 -0
  149. package/dist/date-picker/preset-trigger.svelte.d.ts +18 -0
  150. package/dist/date-picker/prev-trigger.svelte +3 -0
  151. package/dist/date-picker/prev-trigger.svelte.d.ts +18 -0
  152. package/dist/date-picker/range-text.svelte +3 -0
  153. package/dist/date-picker/range-text.svelte.d.ts +18 -0
  154. package/dist/date-picker/root.svelte +3 -0
  155. package/dist/date-picker/root.svelte.d.ts +18 -0
  156. package/dist/date-picker/table-body.svelte +3 -0
  157. package/dist/date-picker/table-body.svelte.d.ts +18 -0
  158. package/dist/date-picker/table-head.svelte +3 -0
  159. package/dist/date-picker/table-head.svelte.d.ts +18 -0
  160. package/dist/date-picker/table-header.svelte +3 -0
  161. package/dist/date-picker/table-header.svelte.d.ts +18 -0
  162. package/dist/date-picker/table-row.svelte +3 -0
  163. package/dist/date-picker/table-row.svelte.d.ts +18 -0
  164. package/dist/date-picker/table.svelte +3 -0
  165. package/dist/date-picker/table.svelte.d.ts +18 -0
  166. package/dist/date-picker/trigger.svelte +3 -0
  167. package/dist/date-picker/trigger.svelte.d.ts +18 -0
  168. package/dist/date-picker/view-control.svelte +3 -0
  169. package/dist/date-picker/view-control.svelte.d.ts +18 -0
  170. package/dist/date-picker/view-trigger.svelte +3 -0
  171. package/dist/date-picker/view-trigger.svelte.d.ts +18 -0
  172. package/dist/date-picker/year-select.svelte +3 -0
  173. package/dist/date-picker/year-select.svelte.d.ts +18 -0
  174. package/dist/date-picker/year-table-cell-trigger.svelte +3 -0
  175. package/dist/date-picker/year-table-cell-trigger.svelte.d.ts +18 -0
  176. package/dist/date-picker/year-table-cell.svelte +3 -0
  177. package/dist/date-picker/year-table-cell.svelte.d.ts +18 -0
  178. package/dist/dialog/backdrop.svelte +3 -3
  179. package/dist/dialog/backdrop.svelte.d.ts +0 -3
  180. package/dist/dialog/close-trigger.svelte +4 -5
  181. package/dist/dialog/close-trigger.svelte.d.ts +0 -3
  182. package/dist/dialog/content.svelte +3 -3
  183. package/dist/dialog/content.svelte.d.ts +0 -3
  184. package/dist/dialog/context.svelte.d.ts +3 -8
  185. package/dist/dialog/context.svelte.js +2 -14
  186. package/dist/dialog/create-dialog.svelte.d.ts +6 -0
  187. package/dist/dialog/create-dialog.svelte.js +7 -0
  188. package/dist/dialog/description.svelte +3 -3
  189. package/dist/dialog/description.svelte.d.ts +0 -3
  190. package/dist/dialog/positioner.svelte +3 -3
  191. package/dist/dialog/positioner.svelte.d.ts +0 -3
  192. package/dist/dialog/root.svelte +15 -15
  193. package/dist/dialog/root.svelte.d.ts +0 -6
  194. package/dist/dialog/title.svelte +3 -3
  195. package/dist/dialog/title.svelte.d.ts +0 -3
  196. package/dist/dialog/trigger.svelte +3 -3
  197. package/dist/dialog/trigger.svelte.d.ts +0 -3
  198. package/dist/editable/area.svelte +3 -3
  199. package/dist/editable/area.svelte.d.ts +0 -3
  200. package/dist/editable/cancel-trigger.svelte +4 -5
  201. package/dist/editable/cancel-trigger.svelte.d.ts +0 -3
  202. package/dist/editable/context.svelte.d.ts +3 -8
  203. package/dist/editable/context.svelte.js +2 -14
  204. package/dist/editable/control.svelte +3 -3
  205. package/dist/editable/control.svelte.d.ts +0 -3
  206. package/dist/editable/create-editable.svelte.d.ts +6 -0
  207. package/dist/editable/create-editable.svelte.js +7 -0
  208. package/dist/editable/edit-trigger.svelte +4 -5
  209. package/dist/editable/edit-trigger.svelte.d.ts +0 -3
  210. package/dist/editable/input.svelte +3 -3
  211. package/dist/editable/input.svelte.d.ts +0 -3
  212. package/dist/editable/label.svelte +3 -3
  213. package/dist/editable/label.svelte.d.ts +0 -3
  214. package/dist/editable/preview.svelte +3 -3
  215. package/dist/editable/preview.svelte.d.ts +0 -3
  216. package/dist/editable/root.svelte +15 -16
  217. package/dist/editable/root.svelte.d.ts +0 -6
  218. package/dist/editable/submit-trigger.svelte +4 -5
  219. package/dist/editable/submit-trigger.svelte.d.ts +0 -3
  220. package/dist/environment-provider/context.svelte.d.ts +7 -13
  221. package/dist/environment-provider/context.svelte.js +3 -25
  222. package/dist/environment-provider/index.d.ts +2 -2
  223. package/dist/environment-provider/index.js +2 -2
  224. package/dist/environment-provider/root.svelte +13 -10
  225. package/dist/environment-provider/root.svelte.d.ts +0 -5
  226. package/dist/file-upload/context.svelte.d.ts +8 -0
  227. package/dist/file-upload/context.svelte.js +14 -0
  228. package/dist/file-upload/dropzone.svelte +3 -0
  229. package/dist/file-upload/dropzone.svelte.d.ts +18 -0
  230. package/dist/file-upload/file-upload.d.ts +12 -0
  231. package/dist/file-upload/file-upload.js +12 -0
  232. package/dist/file-upload/hidden-input.svelte +3 -0
  233. package/dist/file-upload/hidden-input.svelte.d.ts +18 -0
  234. package/dist/file-upload/index.d.ts +1 -0
  235. package/dist/file-upload/index.js +1 -0
  236. package/dist/file-upload/item-delete-trigger.svelte +3 -0
  237. package/dist/file-upload/item-delete-trigger.svelte.d.ts +18 -0
  238. package/dist/file-upload/item-group.svelte +3 -0
  239. package/dist/file-upload/item-group.svelte.d.ts +18 -0
  240. package/dist/file-upload/item-name.svelte +3 -0
  241. package/dist/file-upload/item-name.svelte.d.ts +18 -0
  242. package/dist/file-upload/item-preview-image.svelte +3 -0
  243. package/dist/file-upload/item-preview-image.svelte.d.ts +18 -0
  244. package/dist/file-upload/item-preview.svelte +3 -0
  245. package/dist/file-upload/item-preview.svelte.d.ts +18 -0
  246. package/dist/file-upload/item-size-text.svelte +3 -0
  247. package/dist/file-upload/item-size-text.svelte.d.ts +18 -0
  248. package/dist/file-upload/item.svelte +3 -0
  249. package/dist/file-upload/item.svelte.d.ts +18 -0
  250. package/dist/file-upload/label.svelte +3 -0
  251. package/dist/file-upload/label.svelte.d.ts +18 -0
  252. package/dist/file-upload/root.svelte +3 -0
  253. package/dist/file-upload/root.svelte.d.ts +18 -0
  254. package/dist/file-upload/trigger.svelte +3 -0
  255. package/dist/file-upload/trigger.svelte.d.ts +18 -0
  256. package/dist/hover-card/arrow-tip.svelte +3 -3
  257. package/dist/hover-card/arrow-tip.svelte.d.ts +0 -3
  258. package/dist/hover-card/arrow.svelte +3 -3
  259. package/dist/hover-card/arrow.svelte.d.ts +0 -3
  260. package/dist/hover-card/content.svelte +3 -3
  261. package/dist/hover-card/content.svelte.d.ts +0 -3
  262. package/dist/hover-card/context.svelte.d.ts +3 -8
  263. package/dist/hover-card/context.svelte.js +2 -14
  264. package/dist/hover-card/create-hover-card.svelte.d.ts +6 -0
  265. package/dist/hover-card/create-hover-card.svelte.js +7 -0
  266. package/dist/hover-card/positioner.svelte +4 -5
  267. package/dist/hover-card/positioner.svelte.d.ts +0 -3
  268. package/dist/hover-card/root.svelte +15 -19
  269. package/dist/hover-card/root.svelte.d.ts +0 -6
  270. package/dist/hover-card/trigger.svelte +3 -3
  271. package/dist/hover-card/trigger.svelte.d.ts +0 -3
  272. package/dist/index.d.ts +3 -1
  273. package/dist/index.js +3 -0
  274. package/dist/locale-provider/context.svelte.d.ts +4 -11
  275. package/dist/locale-provider/context.svelte.js +3 -23
  276. package/dist/locale-provider/index.d.ts +3 -2
  277. package/dist/locale-provider/index.js +2 -2
  278. package/dist/locale-provider/root.svelte +10 -6
  279. package/dist/locale-provider/root.svelte.d.ts +0 -5
  280. package/dist/menu/arrow-tip.svelte +20 -0
  281. package/dist/menu/arrow-tip.svelte.d.ts +7 -15
  282. package/dist/menu/arrow.svelte +20 -0
  283. package/dist/menu/arrow.svelte.d.ts +7 -15
  284. package/dist/menu/content.svelte +20 -0
  285. package/dist/menu/content.svelte.d.ts +7 -15
  286. package/dist/menu/context-trigger.svelte +20 -0
  287. package/dist/menu/context-trigger.svelte.d.ts +7 -15
  288. package/dist/menu/context.svelte.d.ts +6 -10
  289. package/dist/menu/context.svelte.js +4 -20
  290. package/dist/menu/create-menu.svelte.d.ts +6 -0
  291. package/dist/menu/create-menu.svelte.js +7 -0
  292. package/dist/menu/index.d.ts +18 -1
  293. package/dist/menu/index.js +18 -1
  294. package/dist/menu/indicator.svelte +20 -0
  295. package/dist/menu/indicator.svelte.d.ts +7 -15
  296. package/dist/menu/item-group-label.svelte +29 -0
  297. package/dist/menu/item-group-label.svelte.d.ts +7 -15
  298. package/dist/menu/item-group.svelte +31 -0
  299. package/dist/menu/item-group.svelte.d.ts +7 -15
  300. package/dist/menu/item.svelte +33 -0
  301. package/dist/menu/item.svelte.d.ts +7 -15
  302. package/dist/menu/menu.d.ts +16 -1
  303. package/dist/menu/menu.js +16 -1
  304. package/dist/menu/option-item-indicator.svelte +22 -0
  305. package/dist/menu/option-item-indicator.svelte.d.ts +18 -0
  306. package/dist/menu/option-item-text.svelte +26 -0
  307. package/dist/menu/option-item-text.svelte.d.ts +18 -0
  308. package/dist/menu/option-item.svelte +51 -0
  309. package/dist/menu/option-item.svelte.d.ts +7 -15
  310. package/dist/menu/positioner.svelte +20 -0
  311. package/dist/menu/positioner.svelte.d.ts +7 -15
  312. package/dist/menu/root.svelte +75 -0
  313. package/dist/menu/root.svelte.d.ts +7 -15
  314. package/dist/menu/separator.svelte +20 -0
  315. package/dist/menu/separator.svelte.d.ts +7 -15
  316. package/dist/menu/trigger-item.svelte +20 -0
  317. package/dist/menu/trigger-item.svelte.d.ts +7 -15
  318. package/dist/menu/trigger.svelte +20 -0
  319. package/dist/menu/trigger.svelte.d.ts +7 -15
  320. package/dist/number-input/context.svelte.d.ts +3 -8
  321. package/dist/number-input/context.svelte.js +2 -14
  322. package/dist/number-input/control.svelte +4 -5
  323. package/dist/number-input/control.svelte.d.ts +0 -3
  324. package/dist/number-input/create-number-input.svelte.d.ts +6 -0
  325. package/dist/number-input/create-number-input.svelte.js +7 -0
  326. package/dist/number-input/decrement-trigger.svelte +4 -5
  327. package/dist/number-input/decrement-trigger.svelte.d.ts +0 -3
  328. package/dist/number-input/increment-trigger.svelte +4 -5
  329. package/dist/number-input/increment-trigger.svelte.d.ts +0 -3
  330. package/dist/number-input/input.svelte +3 -3
  331. package/dist/number-input/input.svelte.d.ts +0 -3
  332. package/dist/number-input/label.svelte +3 -3
  333. package/dist/number-input/label.svelte.d.ts +0 -3
  334. package/dist/number-input/root.svelte +17 -17
  335. package/dist/number-input/root.svelte.d.ts +0 -6
  336. package/dist/number-input/scrubber.svelte +4 -5
  337. package/dist/number-input/scrubber.svelte.d.ts +0 -3
  338. package/dist/pagination/context.svelte.d.ts +3 -8
  339. package/dist/pagination/context.svelte.js +2 -14
  340. package/dist/pagination/create-pagination.svelte.d.ts +6 -0
  341. package/dist/pagination/create-pagination.svelte.js +7 -0
  342. package/dist/pagination/ellipsis.svelte +3 -3
  343. package/dist/pagination/ellipsis.svelte.d.ts +0 -4
  344. package/dist/pagination/item.svelte +10 -11
  345. package/dist/pagination/item.svelte.d.ts +0 -4
  346. package/dist/pagination/next-trigger.svelte +4 -5
  347. package/dist/pagination/next-trigger.svelte.d.ts +0 -3
  348. package/dist/pagination/prev-trigger.svelte +4 -5
  349. package/dist/pagination/prev-trigger.svelte.d.ts +0 -3
  350. package/dist/pagination/root.svelte +15 -18
  351. package/dist/pagination/root.svelte.d.ts +0 -6
  352. package/dist/pin-input/clear-trigger.svelte +4 -5
  353. package/dist/pin-input/clear-trigger.svelte.d.ts +0 -3
  354. package/dist/pin-input/context.svelte.d.ts +3 -8
  355. package/dist/pin-input/context.svelte.js +2 -14
  356. package/dist/pin-input/create-pin-input.svelte.d.ts +6 -0
  357. package/dist/pin-input/create-pin-input.svelte.js +7 -0
  358. package/dist/pin-input/hidden-input.svelte +4 -5
  359. package/dist/pin-input/hidden-input.svelte.d.ts +0 -3
  360. package/dist/pin-input/input.svelte +4 -5
  361. package/dist/pin-input/input.svelte.d.ts +0 -4
  362. package/dist/pin-input/label.svelte +3 -3
  363. package/dist/pin-input/label.svelte.d.ts +0 -3
  364. package/dist/pin-input/root.svelte +14 -17
  365. package/dist/pin-input/root.svelte.d.ts +0 -6
  366. package/dist/popover/arrow-tip.svelte +3 -3
  367. package/dist/popover/arrow-tip.svelte.d.ts +0 -3
  368. package/dist/popover/arrow.svelte +3 -3
  369. package/dist/popover/arrow.svelte.d.ts +0 -3
  370. package/dist/popover/close-trigger.svelte +4 -5
  371. package/dist/popover/close-trigger.svelte.d.ts +0 -3
  372. package/dist/popover/content.svelte +3 -3
  373. package/dist/popover/content.svelte.d.ts +0 -3
  374. package/dist/popover/context.svelte.d.ts +3 -8
  375. package/dist/popover/context.svelte.js +2 -14
  376. package/dist/popover/create-popover.svelte.d.ts +6 -0
  377. package/dist/popover/create-popover.svelte.js +7 -0
  378. package/dist/popover/description.svelte +3 -3
  379. package/dist/popover/description.svelte.d.ts +0 -3
  380. package/dist/popover/positioner.svelte +3 -3
  381. package/dist/popover/positioner.svelte.d.ts +0 -3
  382. package/dist/popover/root.svelte +15 -15
  383. package/dist/popover/root.svelte.d.ts +0 -6
  384. package/dist/popover/title.svelte +3 -3
  385. package/dist/popover/title.svelte.d.ts +0 -3
  386. package/dist/popover/trigger.svelte +3 -3
  387. package/dist/popover/trigger.svelte.d.ts +0 -3
  388. package/dist/portal/root.svelte +5 -3
  389. package/dist/portal/root.svelte.d.ts +0 -7
  390. package/dist/presence/root.svelte +3 -1
  391. package/dist/presence/root.svelte.d.ts +0 -4
  392. package/dist/progress/circle-range.svelte +4 -5
  393. package/dist/progress/circle-range.svelte.d.ts +0 -3
  394. package/dist/progress/circle-track.svelte +4 -5
  395. package/dist/progress/circle-track.svelte.d.ts +0 -3
  396. package/dist/progress/circle.svelte +3 -3
  397. package/dist/progress/circle.svelte.d.ts +0 -3
  398. package/dist/progress/context.svelte.d.ts +3 -8
  399. package/dist/progress/context.svelte.js +2 -14
  400. package/dist/progress/create-progress.svelte.d.ts +6 -0
  401. package/dist/progress/create-progress.svelte.js +7 -0
  402. package/dist/progress/label.svelte +3 -3
  403. package/dist/progress/label.svelte.d.ts +0 -3
  404. package/dist/progress/range.svelte +3 -3
  405. package/dist/progress/range.svelte.d.ts +0 -3
  406. package/dist/progress/root.svelte +15 -18
  407. package/dist/progress/root.svelte.d.ts +0 -6
  408. package/dist/progress/track.svelte +3 -3
  409. package/dist/progress/track.svelte.d.ts +0 -3
  410. package/dist/progress/value-text.svelte +3 -3
  411. package/dist/progress/value-text.svelte.d.ts +0 -3
  412. package/dist/qr-code/context.svelte.d.ts +3 -8
  413. package/dist/qr-code/context.svelte.js +2 -14
  414. package/dist/qr-code/create-qr-code.svelte.d.ts +6 -0
  415. package/dist/qr-code/create-qr-code.svelte.js +7 -0
  416. package/dist/qr-code/frame.svelte +3 -3
  417. package/dist/qr-code/frame.svelte.d.ts +0 -3
  418. package/dist/qr-code/overlay.svelte +3 -3
  419. package/dist/qr-code/overlay.svelte.d.ts +0 -3
  420. package/dist/qr-code/pattern.svelte +3 -3
  421. package/dist/qr-code/pattern.svelte.d.ts +0 -3
  422. package/dist/qr-code/root.svelte +16 -18
  423. package/dist/qr-code/root.svelte.d.ts +0 -6
  424. package/dist/radio-group/context.svelte.d.ts +5 -10
  425. package/dist/radio-group/context.svelte.js +3 -20
  426. package/dist/radio-group/create-radio-group.svelte.d.ts +6 -0
  427. package/dist/radio-group/create-radio-group.svelte.js +7 -0
  428. package/dist/radio-group/indicator.svelte +4 -5
  429. package/dist/radio-group/indicator.svelte.d.ts +0 -3
  430. package/dist/radio-group/item-control.svelte +6 -12
  431. package/dist/radio-group/item-control.svelte.d.ts +0 -3
  432. package/dist/radio-group/item-hidden-input.svelte +6 -12
  433. package/dist/radio-group/item-hidden-input.svelte.d.ts +0 -3
  434. package/dist/radio-group/item-text.svelte +5 -9
  435. package/dist/radio-group/item-text.svelte.d.ts +0 -3
  436. package/dist/radio-group/item.svelte +10 -27
  437. package/dist/radio-group/item.svelte.d.ts +0 -6
  438. package/dist/radio-group/label.svelte +3 -3
  439. package/dist/radio-group/label.svelte.d.ts +0 -3
  440. package/dist/radio-group/root.svelte +15 -18
  441. package/dist/radio-group/root.svelte.d.ts +0 -6
  442. package/dist/rating-group/context.svelte.d.ts +3 -8
  443. package/dist/rating-group/context.svelte.js +2 -14
  444. package/dist/rating-group/control.svelte +3 -3
  445. package/dist/rating-group/control.svelte.d.ts +0 -3
  446. package/dist/rating-group/create-rating-group.svelte.d.ts +6 -0
  447. package/dist/rating-group/create-rating-group.svelte.js +7 -0
  448. package/dist/rating-group/hidden-input.svelte +4 -5
  449. package/dist/rating-group/hidden-input.svelte.d.ts +0 -3
  450. package/dist/rating-group/item.svelte +3 -3
  451. package/dist/rating-group/item.svelte.d.ts +0 -6
  452. package/dist/rating-group/label.svelte +3 -3
  453. package/dist/rating-group/label.svelte.d.ts +0 -3
  454. package/dist/rating-group/root.svelte +17 -17
  455. package/dist/rating-group/root.svelte.d.ts +0 -6
  456. package/dist/segment-group/context.svelte.d.ts +5 -0
  457. package/dist/segment-group/context.svelte.js +3 -20
  458. package/dist/segment-group/create-segment-group.svelte.d.ts +6 -0
  459. package/dist/segment-group/create-segment-group.svelte.js +7 -0
  460. package/dist/segment-group/indicator.svelte +7 -7
  461. package/dist/segment-group/indicator.svelte.d.ts +0 -3
  462. package/dist/segment-group/item-control.svelte +8 -11
  463. package/dist/segment-group/item-control.svelte.d.ts +0 -3
  464. package/dist/segment-group/item-hidden-input.svelte +6 -12
  465. package/dist/segment-group/item-hidden-input.svelte.d.ts +0 -3
  466. package/dist/segment-group/item-text.svelte +10 -11
  467. package/dist/segment-group/item-text.svelte.d.ts +0 -3
  468. package/dist/segment-group/item.svelte +12 -28
  469. package/dist/segment-group/item.svelte.d.ts +0 -6
  470. package/dist/segment-group/label.svelte +6 -5
  471. package/dist/segment-group/label.svelte.d.ts +0 -3
  472. package/dist/segment-group/root.svelte +20 -20
  473. package/dist/segment-group/root.svelte.d.ts +0 -6
  474. package/dist/select/clear-trigger.svelte +4 -5
  475. package/dist/select/clear-trigger.svelte.d.ts +0 -3
  476. package/dist/select/content.svelte +3 -3
  477. package/dist/select/content.svelte.d.ts +0 -3
  478. package/dist/select/context.svelte.d.ts +6 -16
  479. package/dist/select/context.svelte.js +4 -38
  480. package/dist/select/control.svelte +3 -3
  481. package/dist/select/control.svelte.d.ts +0 -3
  482. package/dist/select/create-select.svelte.d.ts +10 -0
  483. package/dist/select/create-select.svelte.js +19 -0
  484. package/dist/select/hidden-select.svelte +4 -5
  485. package/dist/select/hidden-select.svelte.d.ts +0 -3
  486. package/dist/select/indicator.svelte +3 -3
  487. package/dist/select/indicator.svelte.d.ts +0 -3
  488. package/dist/select/item-group-label.svelte +6 -13
  489. package/dist/select/item-group-label.svelte.d.ts +0 -3
  490. package/dist/select/item-group.svelte +9 -10
  491. package/dist/select/item-group.svelte.d.ts +0 -4
  492. package/dist/select/item-indicator.svelte +6 -12
  493. package/dist/select/item-indicator.svelte.d.ts +0 -3
  494. package/dist/select/item-text.svelte +4 -7
  495. package/dist/select/item-text.svelte.d.ts +0 -3
  496. package/dist/select/item.svelte +10 -25
  497. package/dist/select/item.svelte.d.ts +0 -6
  498. package/dist/select/label.svelte +3 -3
  499. package/dist/select/label.svelte.d.ts +0 -3
  500. package/dist/select/list.svelte +3 -3
  501. package/dist/select/list.svelte.d.ts +0 -3
  502. package/dist/select/positioner.svelte +3 -3
  503. package/dist/select/positioner.svelte.d.ts +0 -3
  504. package/dist/select/root.svelte +15 -18
  505. package/dist/select/root.svelte.d.ts +1 -7
  506. package/dist/select/trigger.svelte +3 -3
  507. package/dist/select/trigger.svelte.d.ts +0 -3
  508. package/dist/select/value-text.svelte +3 -3
  509. package/dist/select/value-text.svelte.d.ts +0 -3
  510. package/dist/slider/context.svelte.d.ts +5 -10
  511. package/dist/slider/context.svelte.js +3 -20
  512. package/dist/slider/control.svelte +3 -3
  513. package/dist/slider/control.svelte.d.ts +0 -3
  514. package/dist/slider/create-slider.svelte.d.ts +6 -0
  515. package/dist/slider/create-slider.svelte.js +7 -0
  516. package/dist/slider/hidden-input.svelte +6 -12
  517. package/dist/slider/hidden-input.svelte.d.ts +0 -3
  518. package/dist/slider/label.svelte +3 -3
  519. package/dist/slider/label.svelte.d.ts +0 -3
  520. package/dist/slider/marker-group.svelte +3 -3
  521. package/dist/slider/marker-group.svelte.d.ts +0 -3
  522. package/dist/slider/marker.svelte +4 -5
  523. package/dist/slider/marker.svelte.d.ts +0 -4
  524. package/dist/slider/range.svelte +3 -3
  525. package/dist/slider/range.svelte.d.ts +0 -3
  526. package/dist/slider/root.svelte +15 -18
  527. package/dist/slider/root.svelte.d.ts +0 -6
  528. package/dist/slider/thumb.svelte +9 -19
  529. package/dist/slider/thumb.svelte.d.ts +0 -4
  530. package/dist/slider/track.svelte +3 -3
  531. package/dist/slider/track.svelte.d.ts +0 -3
  532. package/dist/slider/value-text.svelte +3 -3
  533. package/dist/slider/value-text.svelte.d.ts +0 -3
  534. package/dist/steps/content.svelte +4 -5
  535. package/dist/steps/content.svelte.d.ts +0 -4
  536. package/dist/steps/context.svelte.d.ts +5 -10
  537. package/dist/steps/context.svelte.js +3 -20
  538. package/dist/steps/create-steps.svelte.d.ts +6 -0
  539. package/dist/steps/create-steps.svelte.js +7 -0
  540. package/dist/steps/indicator.svelte +4 -4
  541. package/dist/steps/indicator.svelte.d.ts +0 -3
  542. package/dist/steps/item.svelte +9 -6
  543. package/dist/steps/item.svelte.d.ts +0 -6
  544. package/dist/steps/list.svelte +3 -3
  545. package/dist/steps/list.svelte.d.ts +0 -3
  546. package/dist/steps/next-trigger.svelte +4 -5
  547. package/dist/steps/next-trigger.svelte.d.ts +0 -3
  548. package/dist/steps/prev-trigger.svelte +4 -5
  549. package/dist/steps/prev-trigger.svelte.d.ts +0 -3
  550. package/dist/steps/progress.svelte +3 -3
  551. package/dist/steps/progress.svelte.d.ts +0 -3
  552. package/dist/steps/root.svelte +15 -18
  553. package/dist/steps/root.svelte.d.ts +0 -6
  554. package/dist/steps/separator.svelte +4 -4
  555. package/dist/steps/separator.svelte.d.ts +0 -3
  556. package/dist/steps/trigger.svelte +4 -4
  557. package/dist/steps/trigger.svelte.d.ts +0 -3
  558. package/dist/switch/context.svelte.d.ts +3 -8
  559. package/dist/switch/context.svelte.js +2 -14
  560. package/dist/switch/control.svelte +3 -3
  561. package/dist/switch/control.svelte.d.ts +0 -3
  562. package/dist/switch/create-switch.svelte.d.ts +6 -0
  563. package/dist/switch/create-switch.svelte.js +7 -0
  564. package/dist/switch/hidden-input.svelte +4 -5
  565. package/dist/switch/hidden-input.svelte.d.ts +0 -3
  566. package/dist/switch/label.svelte +3 -3
  567. package/dist/switch/label.svelte.d.ts +0 -3
  568. package/dist/switch/root.svelte +15 -18
  569. package/dist/switch/root.svelte.d.ts +0 -6
  570. package/dist/switch/thumb.svelte +3 -3
  571. package/dist/switch/thumb.svelte.d.ts +0 -3
  572. package/dist/tabs/content.svelte +4 -5
  573. package/dist/tabs/content.svelte.d.ts +0 -4
  574. package/dist/tabs/context.svelte.d.ts +3 -8
  575. package/dist/tabs/context.svelte.js +2 -14
  576. package/dist/tabs/create-tabs.svelte.d.ts +6 -0
  577. package/dist/tabs/create-tabs.svelte.js +7 -0
  578. package/dist/tabs/list.svelte +3 -3
  579. package/dist/tabs/list.svelte.d.ts +0 -3
  580. package/dist/tabs/root.svelte +15 -18
  581. package/dist/tabs/root.svelte.d.ts +0 -6
  582. package/dist/tabs/trigger.svelte +11 -6
  583. package/dist/tabs/trigger.svelte.d.ts +0 -4
  584. package/dist/tags-input/clear-trigger.svelte +4 -5
  585. package/dist/tags-input/clear-trigger.svelte.d.ts +0 -3
  586. package/dist/tags-input/context.svelte.d.ts +5 -10
  587. package/dist/tags-input/context.svelte.js +3 -20
  588. package/dist/tags-input/control.svelte +3 -3
  589. package/dist/tags-input/control.svelte.d.ts +0 -3
  590. package/dist/tags-input/create-tags-input.svelte.d.ts +6 -0
  591. package/dist/tags-input/create-tags-input.svelte.js +7 -0
  592. package/dist/tags-input/hidden-input.svelte +4 -5
  593. package/dist/tags-input/hidden-input.svelte.d.ts +0 -3
  594. package/dist/tags-input/input.svelte +3 -3
  595. package/dist/tags-input/input.svelte.d.ts +0 -3
  596. package/dist/tags-input/item-delete-trigger.svelte +6 -12
  597. package/dist/tags-input/item-delete-trigger.svelte.d.ts +0 -3
  598. package/dist/tags-input/item-input.svelte +5 -9
  599. package/dist/tags-input/item-input.svelte.d.ts +0 -3
  600. package/dist/tags-input/item-preview.svelte +6 -12
  601. package/dist/tags-input/item-preview.svelte.d.ts +0 -3
  602. package/dist/tags-input/item-text.svelte +4 -7
  603. package/dist/tags-input/item-text.svelte.d.ts +0 -3
  604. package/dist/tags-input/item.svelte +10 -27
  605. package/dist/tags-input/item.svelte.d.ts +0 -6
  606. package/dist/tags-input/label.svelte +3 -3
  607. package/dist/tags-input/label.svelte.d.ts +0 -3
  608. package/dist/tags-input/root.svelte +15 -21
  609. package/dist/tags-input/root.svelte.d.ts +0 -6
  610. package/dist/timer/action-trigger.svelte +4 -6
  611. package/dist/timer/action-trigger.svelte.d.ts +0 -4
  612. package/dist/timer/context.svelte.d.ts +5 -10
  613. package/dist/timer/context.svelte.js +3 -20
  614. package/dist/timer/create-timer.svelte.d.ts +6 -0
  615. package/dist/timer/create-timer.svelte.js +7 -0
  616. package/dist/timer/item-label.svelte +4 -4
  617. package/dist/timer/item-label.svelte.d.ts +0 -3
  618. package/dist/timer/item-value.svelte +4 -4
  619. package/dist/timer/item-value.svelte.d.ts +0 -3
  620. package/dist/timer/item.svelte +10 -7
  621. package/dist/timer/item.svelte.d.ts +0 -4
  622. package/dist/timer/root.svelte +13 -16
  623. package/dist/timer/root.svelte.d.ts +0 -6
  624. package/dist/timer/separator.svelte +3 -3
  625. package/dist/timer/separator.svelte.d.ts +0 -3
  626. package/dist/toast/action-trigger.svelte +4 -5
  627. package/dist/toast/action-trigger.svelte.d.ts +0 -3
  628. package/dist/toast/actor.svelte +5 -8
  629. package/dist/toast/actor.svelte.d.ts +2 -2
  630. package/dist/toast/close-trigger.svelte +4 -5
  631. package/dist/toast/close-trigger.svelte.d.ts +0 -3
  632. package/dist/toast/context.svelte.d.ts +3 -8
  633. package/dist/toast/context.svelte.js +2 -14
  634. package/dist/toast/create-toast.svelte.d.ts +6 -0
  635. package/dist/toast/create-toast.svelte.js +7 -0
  636. package/dist/toast/create-toaster.svelte.js +4 -4
  637. package/dist/toast/description.svelte +3 -3
  638. package/dist/toast/description.svelte.d.ts +0 -3
  639. package/dist/toast/root.svelte +6 -7
  640. package/dist/toast/root.svelte.d.ts +0 -6
  641. package/dist/toast/title.svelte +3 -3
  642. package/dist/toast/title.svelte.d.ts +0 -3
  643. package/dist/toast/toast.d.ts +3 -3
  644. package/dist/toast/toast.js +3 -3
  645. package/dist/toast/toaster.svelte +4 -5
  646. package/dist/toast/toaster.svelte.d.ts +0 -8
  647. package/dist/toggle-group/context.svelte.d.ts +3 -8
  648. package/dist/toggle-group/context.svelte.js +2 -14
  649. package/dist/toggle-group/create-toggle-group.svelte.d.ts +6 -0
  650. package/dist/toggle-group/create-toggle-group.svelte.js +7 -0
  651. package/dist/toggle-group/item.svelte +9 -7
  652. package/dist/toggle-group/item.svelte.d.ts +0 -6
  653. package/dist/toggle-group/root.svelte +17 -17
  654. package/dist/toggle-group/root.svelte.d.ts +0 -6
  655. package/dist/tooltip/arrow-tip.svelte +3 -3
  656. package/dist/tooltip/arrow-tip.svelte.d.ts +0 -3
  657. package/dist/tooltip/arrow.svelte +3 -3
  658. package/dist/tooltip/arrow.svelte.d.ts +0 -3
  659. package/dist/tooltip/content.svelte +3 -3
  660. package/dist/tooltip/content.svelte.d.ts +0 -3
  661. package/dist/tooltip/context.svelte.d.ts +3 -8
  662. package/dist/tooltip/context.svelte.js +2 -14
  663. package/dist/tooltip/create-tooltip.svelte.d.ts +6 -0
  664. package/dist/tooltip/create-tooltip.svelte.js +7 -0
  665. package/dist/tooltip/positioner.svelte +3 -3
  666. package/dist/tooltip/positioner.svelte.d.ts +0 -3
  667. package/dist/tooltip/root.svelte +15 -15
  668. package/dist/tooltip/root.svelte.d.ts +0 -6
  669. package/dist/tooltip/trigger.svelte +3 -3
  670. package/dist/tooltip/trigger.svelte.d.ts +0 -3
  671. package/dist/types.d.ts +1 -0
  672. package/dist/utils.svelte.d.ts +12 -0
  673. package/dist/utils.svelte.js +44 -0
  674. package/package.json +5 -4
  675. package/dist/date-picker/.gitkeep +0 -0
  676. package/dist/file-upload/.gitkeep +0 -0
  677. package/dist/menu/item-indicator.svelte +0 -0
  678. package/dist/menu/item-text.svelte +0 -0
@@ -1,17 +1,16 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
- export interface NumberInputIncrementTriggerProps
5
- extends HtmlIngredientProps<'button'> {}
4
+ export interface NumberInputIncrementTriggerProps extends HtmlIngredientProps<'button'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
8
  import {mergeProps} from '@zag-js/svelte';
10
- import {useNumberInputContext} from './context.svelte.js';
9
+ import {numberInputContext} from './context.svelte.js';
11
10
 
12
11
  let {children, ...props}: NumberInputIncrementTriggerProps = $props();
13
12
 
14
- let context = useNumberInputContext();
13
+ let context = numberInputContext.get();
15
14
 
16
15
  let attrs = $derived(mergeProps(props, context.getIncrementTriggerProps()));
17
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface NumberInputIncrementTriggerProps extends HtmlIngredientProps<'button'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface NumberInputInputProps extends HtmlIngredientProps<'input'> {}
@@ -6,11 +6,11 @@
6
6
 
7
7
  <script lang="ts">
8
8
  import {mergeProps} from '@zag-js/svelte';
9
- import {useNumberInputContext} from './context.svelte.js';
9
+ import {numberInputContext} from './context.svelte.js';
10
10
 
11
11
  let {...props}: NumberInputInputProps = $props();
12
12
 
13
- let context = useNumberInputContext();
13
+ let context = numberInputContext.get();
14
14
 
15
15
  let attrs = $derived(mergeProps(props, context.getInputProps()));
16
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface NumberInputInputProps extends HtmlIngredientProps<'input'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface NumberInputLabelProps extends HtmlIngredientProps<'label'> {}
@@ -6,11 +6,11 @@
6
6
 
7
7
  <script lang="ts">
8
8
  import {mergeProps} from '@zag-js/svelte';
9
- import {useNumberInputContext} from './context.svelte.js';
9
+ import {numberInputContext} from './context.svelte.js';
10
10
 
11
11
  let {children, ...props}: NumberInputLabelProps = $props();
12
12
 
13
- let context = useNumberInputContext();
13
+ let context = numberInputContext.get();
14
14
 
15
15
  let attrs = $derived(mergeProps(props, context.getLabelProps()));
16
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface NumberInputLabelProps extends HtmlIngredientProps<'label'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,29 +1,27 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {Assign, HtmlIngredientProps} from '../types.js';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {
5
- CreateNumberInputContextProps,
6
- CreateNumberInputContextReturn,
7
- } from './context.svelte.js';
5
+ CreateNumberInputProps,
6
+ CreateNumberInputReturn,
7
+ } from './create-number-input.svelte.js';
8
8
 
9
9
  export interface NumberInputProps
10
10
  extends Assign<
11
11
  Omit<HtmlIngredientProps<'div'>, 'children'>,
12
- Omit<CreateNumberInputContextProps, 'id'>
12
+ Omit<CreateNumberInputProps, 'id'>
13
13
  > {
14
- children?: Snippet<[context: CreateNumberInputContextReturn]>;
14
+ children?: Snippet<[api: CreateNumberInputReturn]>;
15
15
  }
16
16
  </script>
17
17
 
18
18
  <script lang="ts">
19
- import {useEnvironmentContext} from '../environment-provider/index.js';
20
- import {useLocaleContext} from '../locale-provider/index.js';
19
+ import {getEnvironmentContext} from '../environment-provider/index.js';
20
+ import {getLocaleContext} from '../locale-provider/index.js';
21
21
  import {createUniqueId} from '../utils.svelte.js';
22
22
  import {mergeProps} from '@zag-js/svelte';
23
- import {
24
- createNumberInputContext,
25
- setNumberInputContext,
26
- } from './context.svelte.js';
23
+ import {numberInputContext} from './context.svelte.js';
24
+ import {createNumberInput} from './create-number-input.svelte.js';
27
25
 
28
26
  let {
29
27
  id,
@@ -57,11 +55,13 @@
57
55
  ...props
58
56
  }: NumberInputProps = $props();
59
57
 
60
- let localeContext = useLocaleContext();
61
- let environmentContext = useEnvironmentContext();
58
+ let localeContext = getLocaleContext();
59
+ let environmentContext = getEnvironmentContext();
62
60
 
63
- let context = createNumberInputContext({
64
- id: id ?? createUniqueId(),
61
+ let uid = createUniqueId();
62
+
63
+ let context = createNumberInput({
64
+ id: id ?? uid,
65
65
  ids,
66
66
  dir: dir ?? localeContext?.dir,
67
67
  max,
@@ -92,7 +92,7 @@
92
92
 
93
93
  let attrs = $derived(mergeProps(props, context.getRootProps()));
94
94
 
95
- setNumberInputContext(context);
95
+ numberInputContext.set(context);
96
96
  </script>
97
97
 
98
98
  <div {...attrs}>
@@ -1,9 +1,3 @@
1
- import type { Assign, HtmlIngredientProps } from '../types.js';
2
- import type { Snippet } from 'svelte';
3
- import type { CreateNumberInputContextProps, CreateNumberInputContextReturn } from './context.svelte.js';
4
- export interface NumberInputProps extends Assign<Omit<HtmlIngredientProps<'div'>, 'children'>, Omit<CreateNumberInputContextProps, 'id'>> {
5
- children?: Snippet<[context: CreateNumberInputContextReturn]>;
6
- }
7
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
9
3
  $$bindings?: Bindings;
@@ -1,17 +1,16 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
- export interface NumberInputScrubberProps
5
- extends HtmlIngredientProps<'div'> {}
4
+ export interface NumberInputScrubberProps extends HtmlIngredientProps<'div'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
8
  import {mergeProps} from '@zag-js/svelte';
10
- import {useNumberInputContext} from './context.svelte.js';
9
+ import {numberInputContext} from './context.svelte.js';
11
10
 
12
11
  let {children, ...props}: NumberInputScrubberProps = $props();
13
12
 
14
- let context = useNumberInputContext();
13
+ let context = numberInputContext.get();
15
14
 
16
15
  let attrs = $derived(mergeProps(props, context.getScrubberProps()));
17
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface NumberInputScrubberProps extends HtmlIngredientProps<'div'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,8 +1,3 @@
1
- import * as pagination from '@zag-js/pagination';
2
- export interface CreatePaginationContextProps extends pagination.Context {
3
- }
4
- export interface CreatePaginationContextReturn extends ReturnType<typeof createPaginationContext> {
5
- }
6
- export declare function createPaginationContext(props: CreatePaginationContextProps): any;
7
- export declare function setPaginationContext(value: CreatePaginationContextReturn): void;
8
- export declare function usePaginationContext(): CreatePaginationContextReturn;
1
+ import { Context } from '../utils.svelte.js';
2
+ import type { CreatePaginationReturn } from './create-pagination.svelte.js';
3
+ export declare const paginationContext: Context<CreatePaginationReturn>;
@@ -1,14 +1,2 @@
1
- import * as pagination from '@zag-js/pagination';
2
- import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
3
- import { getContext, setContext } from 'svelte';
4
- export function createPaginationContext(props) {
5
- const [state, send] = useMachine(pagination.machine(props));
6
- const api = $derived(reflect(() => pagination.connect(state, send, normalizeProps)));
7
- return api;
8
- }
9
- export function setPaginationContext(value) {
10
- setContext('Pagination', value);
11
- }
12
- export function usePaginationContext() {
13
- return getContext('Pagination');
14
- }
1
+ import { Context } from '../utils.svelte.js';
2
+ export const paginationContext = new Context('Pagination');
@@ -0,0 +1,6 @@
1
+ import * as pagination from '@zag-js/pagination';
2
+ export interface CreatePaginationProps extends pagination.Context {
3
+ }
4
+ export interface CreatePaginationReturn extends pagination.Api {
5
+ }
6
+ export declare function createPagination(props: CreatePaginationProps): CreatePaginationReturn;
@@ -0,0 +1,7 @@
1
+ import * as pagination from '@zag-js/pagination';
2
+ import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
3
+ export function createPagination(props) {
4
+ const [state, send] = useMachine(pagination.machine(props));
5
+ const api = $derived(reflect(() => pagination.connect(state, send, normalizeProps)));
6
+ return api;
7
+ }
@@ -1,4 +1,4 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {Assign, HtmlIngredientProps} from '../types.js';
3
3
  import type {EllipsisProps} from '@zag-js/pagination';
4
4
 
@@ -8,11 +8,11 @@
8
8
 
9
9
  <script lang="ts">
10
10
  import {mergeProps} from '@zag-js/svelte';
11
- import {usePaginationContext} from './context.svelte.js';
11
+ import {paginationContext} from './context.svelte.js';
12
12
 
13
13
  let {index, children, ...props}: PaginationEllipsisProps = $props();
14
14
 
15
- let context = usePaginationContext();
15
+ let context = paginationContext.get();
16
16
 
17
17
  let attrs = $derived(mergeProps(props, context.getEllipsisProps({index})));
18
18
  </script>
@@ -1,7 +1,3 @@
1
- import type { Assign, HtmlIngredientProps } from '../types.js';
2
- import type { EllipsisProps } from '@zag-js/pagination';
3
- export interface PaginationEllipsisProps extends Assign<HtmlIngredientProps<'span'>, EllipsisProps> {
4
- }
5
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
3
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {Assign, HtmlIngredientProps} from '../types.js';
3
3
  import type {ItemProps} from '@zag-js/pagination';
4
4
 
@@ -8,21 +8,20 @@
8
8
 
9
9
  <script lang="ts">
10
10
  import {mergeProps} from '@zag-js/svelte';
11
- import {usePaginationContext} from './context.svelte.js';
11
+ import {paginationContext} from './context.svelte.js';
12
12
 
13
13
  let {value, children, ...props}: PaginationItemProps = $props();
14
14
 
15
- let context = usePaginationContext();
15
+ let context = paginationContext.get();
16
16
 
17
- let attrs = $derived(
18
- mergeProps(
19
- props,
20
- context.getItemProps({
21
- type: 'page',
22
- value,
23
- }),
24
- ),
17
+ let itemProps = $derived(
18
+ context.getItemProps({
19
+ type: 'page',
20
+ value,
21
+ }),
25
22
  );
23
+
24
+ let attrs = $derived(mergeProps(props, itemProps));
26
25
  </script>
27
26
 
28
27
  <button type="button" {...attrs}>
@@ -1,7 +1,3 @@
1
- import type { Assign, HtmlIngredientProps } from '../types.js';
2
- import type { ItemProps } from '@zag-js/pagination';
3
- export interface PaginationItemProps extends Assign<HtmlIngredientProps<'button'>, Omit<ItemProps, 'type'>> {
4
- }
5
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
3
  $$bindings?: Bindings;
@@ -1,17 +1,16 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
- export interface PaginationNextTriggerProps
5
- extends HtmlIngredientProps<'button'> {}
4
+ export interface PaginationNextTriggerProps extends HtmlIngredientProps<'button'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
8
  import {mergeProps} from '@zag-js/svelte';
10
- import {usePaginationContext} from './context.svelte.js';
9
+ import {paginationContext} from './context.svelte.js';
11
10
 
12
11
  let {children, ...props}: PaginationNextTriggerProps = $props();
13
12
 
14
- let context = usePaginationContext();
13
+ let context = paginationContext.get();
15
14
 
16
15
  let attrs = $derived(mergeProps(props, context.getNextTriggerProps()));
17
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface PaginationNextTriggerProps extends HtmlIngredientProps<'button'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,17 +1,16 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
- export interface PaginationPrevTriggerProps
5
- extends HtmlIngredientProps<'button'> {}
4
+ export interface PaginationPrevTriggerProps extends HtmlIngredientProps<'button'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
8
  import {mergeProps} from '@zag-js/svelte';
10
- import {usePaginationContext} from './context.svelte.js';
9
+ import {paginationContext} from './context.svelte.js';
11
10
 
12
11
  let {children, ...props}: PaginationPrevTriggerProps = $props();
13
12
 
14
- let context = usePaginationContext();
13
+ let context = paginationContext.get();
15
14
 
16
15
  let attrs = $derived(mergeProps(props, context.getPrevTriggerProps()));
17
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface PaginationPrevTriggerProps extends HtmlIngredientProps<'button'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,29 +1,24 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {Assign, HtmlIngredientProps} from '../types.js';
3
3
  import type {Snippet} from 'svelte';
4
- import type {
5
- CreatePaginationContextProps,
6
- CreatePaginationContextReturn,
7
- } from './context.svelte.js';
4
+ import type {CreatePaginationProps, CreatePaginationReturn} from './create-pagination.svelte.js';
8
5
 
9
6
  export interface PaginationProps
10
7
  extends Assign<
11
8
  Omit<HtmlIngredientProps<'div'>, 'children'>,
12
- Omit<CreatePaginationContextProps, 'id'>
9
+ Omit<CreatePaginationProps, 'id'>
13
10
  > {
14
- children?: Snippet<[context: CreatePaginationContextReturn]>;
11
+ children?: Snippet<[api: CreatePaginationReturn]>;
15
12
  }
16
13
  </script>
17
14
 
18
15
  <script lang="ts">
19
- import {useEnvironmentContext} from '../environment-provider/index.js';
20
- import {useLocaleContext} from '../locale-provider/index.js';
16
+ import {getEnvironmentContext} from '../environment-provider/index.js';
17
+ import {getLocaleContext} from '../locale-provider/index.js';
21
18
  import {createUniqueId} from '../utils.svelte.js';
22
19
  import {mergeProps} from '@zag-js/svelte';
23
- import {
24
- createPaginationContext,
25
- setPaginationContext,
26
- } from './context.svelte.js';
20
+ import {paginationContext} from './context.svelte.js';
21
+ import {createPagination} from './create-pagination.svelte.js';
27
22
 
28
23
  let {
29
24
  id,
@@ -42,11 +37,13 @@
42
37
  ...props
43
38
  }: PaginationProps = $props();
44
39
 
45
- let localeContext = useLocaleContext();
46
- let environmentContext = useEnvironmentContext();
40
+ let localeContext = getLocaleContext();
41
+ let environmentContext = getEnvironmentContext();
47
42
 
48
- let context = createPaginationContext({
49
- id: id ?? createUniqueId(),
43
+ let uid = createUniqueId();
44
+
45
+ let context = createPagination({
46
+ id: id ?? uid,
50
47
  ids,
51
48
  dir: dir ?? localeContext?.dir,
52
49
  type,
@@ -62,7 +59,7 @@
62
59
 
63
60
  let attrs = $derived(mergeProps(props, context.getRootProps()));
64
61
 
65
- setPaginationContext(context);
62
+ paginationContext.set(context);
66
63
  </script>
67
64
 
68
65
  <div {...attrs}>
@@ -1,9 +1,3 @@
1
- import type { Assign, HtmlIngredientProps } from '../types.js';
2
- import type { Snippet } from 'svelte';
3
- import type { CreatePaginationContextProps, CreatePaginationContextReturn } from './context.svelte.js';
4
- export interface PaginationProps extends Assign<Omit<HtmlIngredientProps<'div'>, 'children'>, Omit<CreatePaginationContextProps, 'id'>> {
5
- children?: Snippet<[context: CreatePaginationContextReturn]>;
6
- }
7
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
9
3
  $$bindings?: Bindings;
@@ -1,16 +1,15 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
- export interface PinInputClearTriggerProps
5
- extends HtmlIngredientProps<'button'> {}
4
+ export interface PinInputClearTriggerProps extends HtmlIngredientProps<'button'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
- import {usePinInputContext} from './context.svelte.js';
8
+ import {pinInputContext} from './context.svelte.js';
10
9
 
11
10
  let {children, onclick, ...props}: PinInputClearTriggerProps = $props();
12
11
 
13
- let context = usePinInputContext();
12
+ let context = pinInputContext.get();
14
13
  </script>
15
14
 
16
15
  <button
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface PinInputClearTriggerProps extends HtmlIngredientProps<'button'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,8 +1,3 @@
1
- import * as pinInput from '@zag-js/pin-input';
2
- export interface CreatePinInputContextProps extends pinInput.Context {
3
- }
4
- export interface CreatePinInputContextReturn extends ReturnType<typeof createPinInputContext> {
5
- }
6
- export declare function createPinInputContext(props: CreatePinInputContextProps): any;
7
- export declare function setPinInputContext(value: CreatePinInputContextReturn): void;
8
- export declare function usePinInputContext(): CreatePinInputContextReturn;
1
+ import { Context } from '../utils.svelte.js';
2
+ import type { CreatePinInputReturn } from './create-pin-input.svelte.js';
3
+ export declare const pinInputContext: Context<CreatePinInputReturn>;
@@ -1,14 +1,2 @@
1
- import * as pinInput from '@zag-js/pin-input';
2
- import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
3
- import { getContext, setContext } from 'svelte';
4
- export function createPinInputContext(props) {
5
- const [state, send] = useMachine(pinInput.machine(props));
6
- const api = $derived(reflect(() => pinInput.connect(state, send, normalizeProps)));
7
- return api;
8
- }
9
- export function setPinInputContext(value) {
10
- setContext('PinInput', value);
11
- }
12
- export function usePinInputContext() {
13
- return getContext('PinInput');
14
- }
1
+ import { Context } from '../utils.svelte.js';
2
+ export const pinInputContext = new Context('PinInput');
@@ -0,0 +1,6 @@
1
+ import * as pinInput from '@zag-js/pin-input';
2
+ export interface CreatePinInputProps extends pinInput.Context {
3
+ }
4
+ export interface CreatePinInputReturn extends pinInput.Api {
5
+ }
6
+ export declare function createPinInputContext(props: CreatePinInputProps): CreatePinInputReturn;
@@ -0,0 +1,7 @@
1
+ import * as pinInput from '@zag-js/pin-input';
2
+ import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
3
+ export function createPinInputContext(props) {
4
+ const [state, send] = useMachine(pinInput.machine(props));
5
+ const api = $derived(reflect(() => pinInput.connect(state, send, normalizeProps)));
6
+ return api;
7
+ }
@@ -1,17 +1,16 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
- export interface PinInputHiddenInputProps
5
- extends HtmlIngredientProps<'input'> {}
4
+ export interface PinInputHiddenInputProps extends HtmlIngredientProps<'input'> {}
6
5
  </script>
7
6
 
8
7
  <script lang="ts">
9
8
  import {mergeProps} from '@zag-js/svelte';
10
- import {usePinInputContext} from './context.svelte.js';
9
+ import {pinInputContext} from './context.svelte.js';
11
10
 
12
11
  let {...props}: PinInputHiddenInputProps = $props();
13
12
 
14
- let context = usePinInputContext();
13
+ let context = pinInputContext.get();
15
14
 
16
15
  let attrs = $derived(mergeProps(props, context.getHiddenInputProps()));
17
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface PinInputHiddenInputProps extends HtmlIngredientProps<'input'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;
@@ -1,18 +1,17 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {Assign, HtmlIngredientProps} from '../types.js';
3
3
  import type {InputProps} from '@zag-js/pin-input';
4
4
 
5
- export interface PinInputInputProps
6
- extends Assign<HtmlIngredientProps<'input'>, InputProps> {}
5
+ export interface PinInputInputProps extends Assign<HtmlIngredientProps<'input'>, InputProps> {}
7
6
  </script>
8
7
 
9
8
  <script lang="ts">
10
9
  import {mergeProps} from '@zag-js/svelte';
11
- import {usePinInputContext} from './context.svelte.js';
10
+ import {pinInputContext} from './context.svelte.js';
12
11
 
13
12
  let {index, ...props}: PinInputInputProps = $props();
14
13
 
15
- let context = usePinInputContext();
14
+ let context = pinInputContext.get();
16
15
 
17
16
  let attrs = $derived(mergeProps(props, context.getInputProps({index})));
18
17
  </script>
@@ -1,7 +1,3 @@
1
- import type { Assign, HtmlIngredientProps } from '../types.js';
2
- import type { InputProps } from '@zag-js/pin-input';
3
- export interface PinInputInputProps extends Assign<HtmlIngredientProps<'input'>, InputProps> {
4
- }
5
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
3
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- <script lang="ts" context="module">
1
+ <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface PinInputLabelProps extends HtmlIngredientProps<'label'> {}
@@ -6,11 +6,11 @@
6
6
 
7
7
  <script lang="ts">
8
8
  import {mergeProps} from '@zag-js/svelte';
9
- import {usePinInputContext} from './context.svelte.js';
9
+ import {pinInputContext} from './context.svelte.js';
10
10
 
11
11
  let {children, ...props}: PinInputLabelProps = $props();
12
12
 
13
- let context = usePinInputContext();
13
+ let context = pinInputContext.get();
14
14
 
15
15
  let attrs = $derived(mergeProps(props, context.getLabelProps()));
16
16
  </script>
@@ -1,6 +1,3 @@
1
- import type { HtmlIngredientProps } from '../types.js';
2
- export interface PinInputLabelProps extends HtmlIngredientProps<'label'> {
3
- }
4
1
  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
2
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
6
3
  $$bindings?: Bindings;