ui-ingredients 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. package/README.md +73 -0
  2. package/dist/accordion/context.svelte.d.ts +10 -0
  3. package/dist/accordion/context.svelte.js +20 -0
  4. package/dist/accordion/index.d.ts +5 -0
  5. package/dist/accordion/index.js +5 -0
  6. package/dist/accordion/item-content.svelte +13 -0
  7. package/dist/accordion/item-content.svelte.d.ts +22 -0
  8. package/dist/accordion/item-indicator.svelte +13 -0
  9. package/dist/accordion/item-indicator.svelte.d.ts +22 -0
  10. package/dist/accordion/item-trigger.svelte +13 -0
  11. package/dist/accordion/item-trigger.svelte.d.ts +22 -0
  12. package/dist/accordion/item.svelte +24 -0
  13. package/dist/accordion/item.svelte.d.ts +23 -0
  14. package/dist/accordion/root.svelte +40 -0
  15. package/dist/accordion/root.svelte.d.ts +25 -0
  16. package/dist/avatar/context.svelte.d.ts +8 -0
  17. package/dist/avatar/context.svelte.js +14 -0
  18. package/dist/avatar/fallback.svelte +12 -0
  19. package/dist/avatar/fallback.svelte.d.ts +22 -0
  20. package/dist/avatar/image.svelte +10 -0
  21. package/dist/avatar/image.svelte.d.ts +22 -0
  22. package/dist/avatar/index.d.ts +3 -0
  23. package/dist/avatar/index.js +3 -0
  24. package/dist/avatar/root.svelte +29 -0
  25. package/dist/avatar/root.svelte.d.ts +25 -0
  26. package/dist/carousel/context.svelte.d.ts +8 -0
  27. package/dist/carousel/context.svelte.js +14 -0
  28. package/dist/carousel/index.d.ts +8 -0
  29. package/dist/carousel/index.js +8 -0
  30. package/dist/carousel/indicator-group.svelte +12 -0
  31. package/dist/carousel/indicator-group.svelte.d.ts +22 -0
  32. package/dist/carousel/indicator.svelte +20 -0
  33. package/dist/carousel/indicator.svelte.d.ts +23 -0
  34. package/dist/carousel/item-group.svelte +12 -0
  35. package/dist/carousel/item-group.svelte.d.ts +22 -0
  36. package/dist/carousel/item.svelte +12 -0
  37. package/dist/carousel/item.svelte.d.ts +23 -0
  38. package/dist/carousel/next-trigger.svelte +12 -0
  39. package/dist/carousel/next-trigger.svelte.d.ts +22 -0
  40. package/dist/carousel/prev-trigger.svelte +12 -0
  41. package/dist/carousel/prev-trigger.svelte.d.ts +22 -0
  42. package/dist/carousel/root.svelte +40 -0
  43. package/dist/carousel/root.svelte.d.ts +25 -0
  44. package/dist/carousel/viewport.svelte +12 -0
  45. package/dist/carousel/viewport.svelte.d.ts +22 -0
  46. package/dist/checkbox/context.svelte.d.ts +8 -0
  47. package/dist/checkbox/context.svelte.js +14 -0
  48. package/dist/checkbox/control.svelte +12 -0
  49. package/dist/checkbox/control.svelte.d.ts +22 -0
  50. package/dist/checkbox/hidden-input.svelte +10 -0
  51. package/dist/checkbox/hidden-input.svelte.d.ts +22 -0
  52. package/dist/checkbox/index.d.ts +5 -0
  53. package/dist/checkbox/index.js +5 -0
  54. package/dist/checkbox/indicator.svelte +12 -0
  55. package/dist/checkbox/indicator.svelte.d.ts +22 -0
  56. package/dist/checkbox/label.svelte +12 -0
  57. package/dist/checkbox/label.svelte.d.ts +22 -0
  58. package/dist/checkbox/root.svelte +44 -0
  59. package/dist/checkbox/root.svelte.d.ts +25 -0
  60. package/dist/clipboard/context.svelte.d.ts +8 -0
  61. package/dist/clipboard/context.svelte.js +14 -0
  62. package/dist/clipboard/control.svelte +12 -0
  63. package/dist/clipboard/control.svelte.d.ts +22 -0
  64. package/dist/clipboard/index.d.ts +6 -0
  65. package/dist/clipboard/index.js +6 -0
  66. package/dist/clipboard/indicator.svelte +12 -0
  67. package/dist/clipboard/indicator.svelte.d.ts +23 -0
  68. package/dist/clipboard/input.svelte +10 -0
  69. package/dist/clipboard/input.svelte.d.ts +22 -0
  70. package/dist/clipboard/label.svelte +12 -0
  71. package/dist/clipboard/label.svelte.d.ts +22 -0
  72. package/dist/clipboard/root.svelte +30 -0
  73. package/dist/clipboard/root.svelte.d.ts +25 -0
  74. package/dist/clipboard/trigger.svelte +12 -0
  75. package/dist/clipboard/trigger.svelte.d.ts +22 -0
  76. package/dist/collapsible/content.svelte +12 -0
  77. package/dist/collapsible/content.svelte.d.ts +22 -0
  78. package/dist/collapsible/context.svelte.d.ts +8 -0
  79. package/dist/collapsible/context.svelte.js +14 -0
  80. package/dist/collapsible/index.d.ts +3 -0
  81. package/dist/collapsible/index.js +3 -0
  82. package/dist/collapsible/root.svelte +36 -0
  83. package/dist/collapsible/root.svelte.d.ts +25 -0
  84. package/dist/collapsible/trigger.svelte +12 -0
  85. package/dist/collapsible/trigger.svelte.d.ts +22 -0
  86. package/dist/color-picker/.gitkeep +0 -0
  87. package/dist/combobox/clear-trigger.svelte +12 -0
  88. package/dist/combobox/clear-trigger.svelte.d.ts +22 -0
  89. package/dist/combobox/content.svelte +12 -0
  90. package/dist/combobox/content.svelte.d.ts +22 -0
  91. package/dist/combobox/context.svelte.d.ts +16 -0
  92. package/dist/combobox/context.svelte.js +38 -0
  93. package/dist/combobox/control.svelte +12 -0
  94. package/dist/combobox/control.svelte.d.ts +22 -0
  95. package/dist/combobox/index.d.ts +14 -0
  96. package/dist/combobox/index.js +14 -0
  97. package/dist/combobox/input.svelte +10 -0
  98. package/dist/combobox/input.svelte.d.ts +22 -0
  99. package/dist/combobox/item-group-label.svelte +20 -0
  100. package/dist/combobox/item-group-label.svelte.d.ts +22 -0
  101. package/dist/combobox/item-group.svelte +14 -0
  102. package/dist/combobox/item-group.svelte.d.ts +23 -0
  103. package/dist/combobox/item-indicator.svelte +13 -0
  104. package/dist/combobox/item-indicator.svelte.d.ts +22 -0
  105. package/dist/combobox/item-text.svelte +17 -0
  106. package/dist/combobox/item-text.svelte.d.ts +22 -0
  107. package/dist/combobox/item.svelte +24 -0
  108. package/dist/combobox/item.svelte.d.ts +23 -0
  109. package/dist/combobox/label.svelte +12 -0
  110. package/dist/combobox/label.svelte.d.ts +22 -0
  111. package/dist/combobox/list.svelte +12 -0
  112. package/dist/combobox/list.svelte.d.ts +22 -0
  113. package/dist/combobox/positioner.svelte +12 -0
  114. package/dist/combobox/positioner.svelte.d.ts +22 -0
  115. package/dist/combobox/root.svelte +104 -0
  116. package/dist/combobox/root.svelte.d.ts +28 -0
  117. package/dist/combobox/trigger.svelte +12 -0
  118. package/dist/combobox/trigger.svelte.d.ts +22 -0
  119. package/dist/date-picker/.gitkeep +0 -0
  120. package/dist/dialog/backdrop.svelte +12 -0
  121. package/dist/dialog/backdrop.svelte.d.ts +22 -0
  122. package/dist/dialog/close-trigger.svelte +12 -0
  123. package/dist/dialog/close-trigger.svelte.d.ts +22 -0
  124. package/dist/dialog/content.svelte +12 -0
  125. package/dist/dialog/content.svelte.d.ts +22 -0
  126. package/dist/dialog/context.svelte.d.ts +8 -0
  127. package/dist/dialog/context.svelte.js +14 -0
  128. package/dist/dialog/description.svelte +12 -0
  129. package/dist/dialog/description.svelte.d.ts +22 -0
  130. package/dist/dialog/index.d.ts +8 -0
  131. package/dist/dialog/index.js +8 -0
  132. package/dist/dialog/positioner.svelte +12 -0
  133. package/dist/dialog/positioner.svelte.d.ts +22 -0
  134. package/dist/dialog/root.svelte +10 -0
  135. package/dist/dialog/root.svelte.d.ts +24 -0
  136. package/dist/dialog/title.svelte +12 -0
  137. package/dist/dialog/title.svelte.d.ts +22 -0
  138. package/dist/dialog/trigger.svelte +12 -0
  139. package/dist/dialog/trigger.svelte.d.ts +22 -0
  140. package/dist/editable/.gitkeep +0 -0
  141. package/dist/file-upload/.gitkeep +0 -0
  142. package/dist/hover-card/arrow-tip.svelte +12 -0
  143. package/dist/hover-card/arrow-tip.svelte.d.ts +22 -0
  144. package/dist/hover-card/arrow.svelte +12 -0
  145. package/dist/hover-card/arrow.svelte.d.ts +22 -0
  146. package/dist/hover-card/content.svelte +12 -0
  147. package/dist/hover-card/content.svelte.d.ts +22 -0
  148. package/dist/hover-card/context.svelte.d.ts +8 -0
  149. package/dist/hover-card/context.svelte.js +14 -0
  150. package/dist/hover-card/index.d.ts +6 -0
  151. package/dist/hover-card/index.js +6 -0
  152. package/dist/hover-card/positioner.svelte +12 -0
  153. package/dist/hover-card/positioner.svelte.d.ts +22 -0
  154. package/dist/hover-card/root.svelte +10 -0
  155. package/dist/hover-card/root.svelte.d.ts +24 -0
  156. package/dist/hover-card/trigger.svelte +12 -0
  157. package/dist/hover-card/trigger.svelte.d.ts +22 -0
  158. package/dist/index.d.ts +73 -0
  159. package/dist/index.js +52 -0
  160. package/dist/menu/.gitkeep +0 -0
  161. package/dist/number-input/context.svelte.d.ts +8 -0
  162. package/dist/number-input/context.svelte.js +14 -0
  163. package/dist/number-input/control.svelte +12 -0
  164. package/dist/number-input/control.svelte.d.ts +22 -0
  165. package/dist/number-input/decrement-trigger.svelte +12 -0
  166. package/dist/number-input/decrement-trigger.svelte.d.ts +22 -0
  167. package/dist/number-input/increment-trigger.svelte +12 -0
  168. package/dist/number-input/increment-trigger.svelte.d.ts +22 -0
  169. package/dist/number-input/index.d.ts +7 -0
  170. package/dist/number-input/index.js +7 -0
  171. package/dist/number-input/input.svelte +10 -0
  172. package/dist/number-input/input.svelte.d.ts +22 -0
  173. package/dist/number-input/label.svelte +12 -0
  174. package/dist/number-input/label.svelte.d.ts +22 -0
  175. package/dist/number-input/root.svelte +72 -0
  176. package/dist/number-input/root.svelte.d.ts +25 -0
  177. package/dist/number-input/scrubber.svelte +12 -0
  178. package/dist/number-input/scrubber.svelte.d.ts +22 -0
  179. package/dist/pagination/context.svelte.d.ts +8 -0
  180. package/dist/pagination/context.svelte.js +14 -0
  181. package/dist/pagination/ellipsis.svelte +12 -0
  182. package/dist/pagination/ellipsis.svelte.d.ts +23 -0
  183. package/dist/pagination/index.d.ts +5 -0
  184. package/dist/pagination/index.js +5 -0
  185. package/dist/pagination/item.svelte +20 -0
  186. package/dist/pagination/item.svelte.d.ts +23 -0
  187. package/dist/pagination/next-trigger.svelte +12 -0
  188. package/dist/pagination/next-trigger.svelte.d.ts +22 -0
  189. package/dist/pagination/prev-trigger.svelte +12 -0
  190. package/dist/pagination/prev-trigger.svelte.d.ts +22 -0
  191. package/dist/pagination/root.svelte +42 -0
  192. package/dist/pagination/root.svelte.d.ts +25 -0
  193. package/dist/pin-input/clear-trigger.svelte +17 -0
  194. package/dist/pin-input/clear-trigger.svelte.d.ts +22 -0
  195. package/dist/pin-input/context.svelte.d.ts +8 -0
  196. package/dist/pin-input/context.svelte.js +14 -0
  197. package/dist/pin-input/hidden-input.svelte +10 -0
  198. package/dist/pin-input/hidden-input.svelte.d.ts +22 -0
  199. package/dist/pin-input/index.d.ts +5 -0
  200. package/dist/pin-input/index.js +5 -0
  201. package/dist/pin-input/input.svelte +10 -0
  202. package/dist/pin-input/input.svelte.d.ts +23 -0
  203. package/dist/pin-input/label.svelte +12 -0
  204. package/dist/pin-input/label.svelte.d.ts +22 -0
  205. package/dist/pin-input/root.svelte +64 -0
  206. package/dist/pin-input/root.svelte.d.ts +25 -0
  207. package/dist/popover/arrow-tip.svelte +12 -0
  208. package/dist/popover/arrow-tip.svelte.d.ts +22 -0
  209. package/dist/popover/arrow.svelte +12 -0
  210. package/dist/popover/arrow.svelte.d.ts +22 -0
  211. package/dist/popover/close-trigger.svelte +12 -0
  212. package/dist/popover/close-trigger.svelte.d.ts +22 -0
  213. package/dist/popover/content.svelte +12 -0
  214. package/dist/popover/content.svelte.d.ts +22 -0
  215. package/dist/popover/context.svelte.d.ts +8 -0
  216. package/dist/popover/context.svelte.js +14 -0
  217. package/dist/popover/description.svelte +12 -0
  218. package/dist/popover/description.svelte.d.ts +22 -0
  219. package/dist/popover/index.d.ts +9 -0
  220. package/dist/popover/index.js +9 -0
  221. package/dist/popover/positioner.svelte +12 -0
  222. package/dist/popover/positioner.svelte.d.ts +22 -0
  223. package/dist/popover/root.svelte +10 -0
  224. package/dist/popover/root.svelte.d.ts +24 -0
  225. package/dist/popover/title.svelte +12 -0
  226. package/dist/popover/title.svelte.d.ts +22 -0
  227. package/dist/popover/trigger.svelte +12 -0
  228. package/dist/popover/trigger.svelte.d.ts +22 -0
  229. package/dist/portal/index.d.ts +1 -0
  230. package/dist/portal/index.js +1 -0
  231. package/dist/portal/root.svelte +10 -0
  232. package/dist/portal/root.svelte.d.ts +25 -0
  233. package/dist/presence/index.d.ts +1 -0
  234. package/dist/presence/index.js +1 -0
  235. package/dist/presence/root.svelte +27 -0
  236. package/dist/presence/root.svelte.d.ts +23 -0
  237. package/dist/progress/circle-range.svelte +12 -0
  238. package/dist/progress/circle-range.svelte.d.ts +22 -0
  239. package/dist/progress/circle-track.svelte +12 -0
  240. package/dist/progress/circle-track.svelte.d.ts +22 -0
  241. package/dist/progress/circle.svelte +12 -0
  242. package/dist/progress/circle.svelte.d.ts +22 -0
  243. package/dist/progress/context.svelte.d.ts +8 -0
  244. package/dist/progress/context.svelte.js +14 -0
  245. package/dist/progress/index.d.ts +8 -0
  246. package/dist/progress/index.js +8 -0
  247. package/dist/progress/label.svelte +12 -0
  248. package/dist/progress/label.svelte.d.ts +22 -0
  249. package/dist/progress/range.svelte +12 -0
  250. package/dist/progress/range.svelte.d.ts +22 -0
  251. package/dist/progress/root.svelte +36 -0
  252. package/dist/progress/root.svelte.d.ts +25 -0
  253. package/dist/progress/track.svelte +12 -0
  254. package/dist/progress/track.svelte.d.ts +22 -0
  255. package/dist/progress/value-text.svelte +16 -0
  256. package/dist/progress/value-text.svelte.d.ts +22 -0
  257. package/dist/qr-code/.gitkeep +0 -0
  258. package/dist/radio-group/context.svelte.d.ts +10 -0
  259. package/dist/radio-group/context.svelte.js +20 -0
  260. package/dist/radio-group/index.d.ts +7 -0
  261. package/dist/radio-group/index.js +7 -0
  262. package/dist/radio-group/indicator.svelte +12 -0
  263. package/dist/radio-group/indicator.svelte.d.ts +22 -0
  264. package/dist/radio-group/item-control.svelte +13 -0
  265. package/dist/radio-group/item-control.svelte.d.ts +22 -0
  266. package/dist/radio-group/item-hidden-input.svelte +11 -0
  267. package/dist/radio-group/item-hidden-input.svelte.d.ts +22 -0
  268. package/dist/radio-group/item-text.svelte +13 -0
  269. package/dist/radio-group/item-text.svelte.d.ts +22 -0
  270. package/dist/radio-group/item.svelte +26 -0
  271. package/dist/radio-group/item.svelte.d.ts +23 -0
  272. package/dist/radio-group/label.svelte +12 -0
  273. package/dist/radio-group/label.svelte.d.ts +22 -0
  274. package/dist/radio-group/root.svelte +40 -0
  275. package/dist/radio-group/root.svelte.d.ts +25 -0
  276. package/dist/rating-group/.gitkeep +0 -0
  277. package/dist/select/clear-trigger.svelte +12 -0
  278. package/dist/select/clear-trigger.svelte.d.ts +22 -0
  279. package/dist/select/content.svelte +12 -0
  280. package/dist/select/content.svelte.d.ts +22 -0
  281. package/dist/select/context.svelte.d.ts +19 -0
  282. package/dist/select/context.svelte.js +38 -0
  283. package/dist/select/control.svelte +12 -0
  284. package/dist/select/control.svelte.d.ts +22 -0
  285. package/dist/select/hidden-select.svelte +12 -0
  286. package/dist/select/hidden-select.svelte.d.ts +22 -0
  287. package/dist/select/index.d.ts +16 -0
  288. package/dist/select/index.js +16 -0
  289. package/dist/select/indicator.svelte +12 -0
  290. package/dist/select/indicator.svelte.d.ts +22 -0
  291. package/dist/select/item-group-label.svelte +15 -0
  292. package/dist/select/item-group-label.svelte.d.ts +22 -0
  293. package/dist/select/item-group.svelte +14 -0
  294. package/dist/select/item-group.svelte.d.ts +23 -0
  295. package/dist/select/item-indicator.svelte +13 -0
  296. package/dist/select/item-indicator.svelte.d.ts +22 -0
  297. package/dist/select/item-text.svelte +17 -0
  298. package/dist/select/item-text.svelte.d.ts +22 -0
  299. package/dist/select/item.svelte +24 -0
  300. package/dist/select/item.svelte.d.ts +23 -0
  301. package/dist/select/label.svelte +12 -0
  302. package/dist/select/label.svelte.d.ts +22 -0
  303. package/dist/select/list.svelte +12 -0
  304. package/dist/select/list.svelte.d.ts +22 -0
  305. package/dist/select/positioner.svelte +12 -0
  306. package/dist/select/positioner.svelte.d.ts +22 -0
  307. package/dist/select/root.svelte +78 -0
  308. package/dist/select/root.svelte.d.ts +28 -0
  309. package/dist/select/trigger.svelte +12 -0
  310. package/dist/select/trigger.svelte.d.ts +22 -0
  311. package/dist/select/value-text.svelte +18 -0
  312. package/dist/select/value-text.svelte.d.ts +22 -0
  313. package/dist/signature-pad/.gitkeep +0 -0
  314. package/dist/slider/context.svelte.d.ts +10 -0
  315. package/dist/slider/context.svelte.js +20 -0
  316. package/dist/slider/control.svelte +12 -0
  317. package/dist/slider/control.svelte.d.ts +22 -0
  318. package/dist/slider/hidden-input.svelte +11 -0
  319. package/dist/slider/hidden-input.svelte.d.ts +22 -0
  320. package/dist/slider/index.d.ts +10 -0
  321. package/dist/slider/index.js +10 -0
  322. package/dist/slider/label.svelte +12 -0
  323. package/dist/slider/label.svelte.d.ts +22 -0
  324. package/dist/slider/marker-group.svelte +12 -0
  325. package/dist/slider/marker-group.svelte.d.ts +22 -0
  326. package/dist/slider/marker.svelte +19 -0
  327. package/dist/slider/marker.svelte.d.ts +23 -0
  328. package/dist/slider/range.svelte +12 -0
  329. package/dist/slider/range.svelte.d.ts +22 -0
  330. package/dist/slider/root.svelte +66 -0
  331. package/dist/slider/root.svelte.d.ts +25 -0
  332. package/dist/slider/thumb.svelte +24 -0
  333. package/dist/slider/thumb.svelte.d.ts +23 -0
  334. package/dist/slider/track.svelte +12 -0
  335. package/dist/slider/track.svelte.d.ts +22 -0
  336. package/dist/slider/value-text.svelte +16 -0
  337. package/dist/slider/value-text.svelte.d.ts +22 -0
  338. package/dist/steps/.gitkeep +0 -0
  339. package/dist/switch/context.svelte.d.ts +8 -0
  340. package/dist/switch/context.svelte.js +14 -0
  341. package/dist/switch/control.svelte +12 -0
  342. package/dist/switch/control.svelte.d.ts +22 -0
  343. package/dist/switch/hidden-input.svelte +10 -0
  344. package/dist/switch/hidden-input.svelte.d.ts +22 -0
  345. package/dist/switch/index.d.ts +5 -0
  346. package/dist/switch/index.js +5 -0
  347. package/dist/switch/label.svelte +12 -0
  348. package/dist/switch/label.svelte.d.ts +22 -0
  349. package/dist/switch/root.svelte +46 -0
  350. package/dist/switch/root.svelte.d.ts +25 -0
  351. package/dist/switch/thumb.svelte +12 -0
  352. package/dist/switch/thumb.svelte.d.ts +22 -0
  353. package/dist/tabs/content.svelte +12 -0
  354. package/dist/tabs/content.svelte.d.ts +23 -0
  355. package/dist/tabs/context.svelte.d.ts +8 -0
  356. package/dist/tabs/context.svelte.js +14 -0
  357. package/dist/tabs/index.d.ts +4 -0
  358. package/dist/tabs/index.js +4 -0
  359. package/dist/tabs/list.svelte +12 -0
  360. package/dist/tabs/list.svelte.d.ts +22 -0
  361. package/dist/tabs/root.svelte +42 -0
  362. package/dist/tabs/root.svelte.d.ts +25 -0
  363. package/dist/tabs/trigger.svelte +12 -0
  364. package/dist/tabs/trigger.svelte.d.ts +23 -0
  365. package/dist/tags-input/.gitkeep +0 -0
  366. package/dist/timer/.gitkeep +0 -0
  367. package/dist/toast/action-trigger.svelte +12 -0
  368. package/dist/toast/action-trigger.svelte.d.ts +22 -0
  369. package/dist/toast/actor.svelte +11 -0
  370. package/dist/toast/actor.svelte.d.ts +24 -0
  371. package/dist/toast/close-trigger.svelte +12 -0
  372. package/dist/toast/close-trigger.svelte.d.ts +22 -0
  373. package/dist/toast/context.svelte.d.ts +8 -0
  374. package/dist/toast/context.svelte.js +14 -0
  375. package/dist/toast/create-toaster.svelte.d.ts +18 -0
  376. package/dist/toast/create-toaster.svelte.js +12 -0
  377. package/dist/toast/description.svelte +16 -0
  378. package/dist/toast/description.svelte.d.ts +22 -0
  379. package/dist/toast/index.d.ts +4 -0
  380. package/dist/toast/index.js +3 -0
  381. package/dist/toast/root.svelte +16 -0
  382. package/dist/toast/root.svelte.d.ts +22 -0
  383. package/dist/toast/title.svelte +16 -0
  384. package/dist/toast/title.svelte.d.ts +22 -0
  385. package/dist/toast/toast.d.ts +5 -0
  386. package/dist/toast/toast.js +5 -0
  387. package/dist/toast/toaster.svelte +25 -0
  388. package/dist/toast/toaster.svelte.d.ts +27 -0
  389. package/dist/toggle-group/context.svelte.d.ts +8 -0
  390. package/dist/toggle-group/context.svelte.js +14 -0
  391. package/dist/toggle-group/index.d.ts +2 -0
  392. package/dist/toggle-group/index.js +2 -0
  393. package/dist/toggle-group/item.svelte +12 -0
  394. package/dist/toggle-group/item.svelte.d.ts +23 -0
  395. package/dist/toggle-group/root.svelte +40 -0
  396. package/dist/toggle-group/root.svelte.d.ts +25 -0
  397. package/dist/tooltip/arrow-tip.svelte +12 -0
  398. package/dist/tooltip/arrow-tip.svelte.d.ts +22 -0
  399. package/dist/tooltip/arrow.svelte +12 -0
  400. package/dist/tooltip/arrow.svelte.d.ts +22 -0
  401. package/dist/tooltip/content.svelte +12 -0
  402. package/dist/tooltip/content.svelte.d.ts +22 -0
  403. package/dist/tooltip/context.svelte.d.ts +8 -0
  404. package/dist/tooltip/context.svelte.js +14 -0
  405. package/dist/tooltip/index.d.ts +6 -0
  406. package/dist/tooltip/index.js +6 -0
  407. package/dist/tooltip/positioner.svelte +12 -0
  408. package/dist/tooltip/positioner.svelte.d.ts +22 -0
  409. package/dist/tooltip/root.svelte +10 -0
  410. package/dist/tooltip/root.svelte.d.ts +24 -0
  411. package/dist/tooltip/trigger.svelte +12 -0
  412. package/dist/tooltip/trigger.svelte.d.ts +22 -0
  413. package/dist/types.d.ts +6 -0
  414. package/dist/types.js +1 -0
  415. package/dist/utils.svelte.d.ts +2 -0
  416. package/dist/utils.svelte.js +24 -0
  417. package/package.json +167 -0
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface RadioGroupLabelProps extends Assign<SvelteHTMLElements['span'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const Label: $$__sveltets_2_IsomorphicComponent<RadioGroupLabelProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type Label = InstanceType<typeof Label>;
22
+ export default Label;
@@ -0,0 +1,40 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { nanoid } from "nanoid/non-secure";
5
+ import { createRadioGroupContext, setRadioGroupContext } from "./context.svelte.js";
6
+ let {
7
+ id = nanoid(),
8
+ ids,
9
+ dir,
10
+ form,
11
+ name,
12
+ value,
13
+ disabled,
14
+ readOnly,
15
+ orientation,
16
+ onValueChange,
17
+ getRootNode,
18
+ children,
19
+ ...props
20
+ } = $props();
21
+ let context = createRadioGroupContext({
22
+ id,
23
+ ids,
24
+ dir,
25
+ form,
26
+ name,
27
+ value: $state.snapshot(value),
28
+ disabled,
29
+ readOnly,
30
+ orientation,
31
+ onValueChange,
32
+ getRootNode
33
+ });
34
+ let attrs = $derived(mergeProps(props, context.getRootProps()));
35
+ setRadioGroupContext(context);
36
+ </script>
37
+
38
+ <div {...attrs}>
39
+ {@render children?.(context)}
40
+ </div>
@@ -0,0 +1,25 @@
1
+ import type { Assign, OptionalId, WithoutChildren } from '../types.js';
2
+ import type { Snippet } from 'svelte';
3
+ import type { SvelteHTMLElements } from 'svelte/elements';
4
+ import type { CreateRadioGroupContextProps, CreateRadioGroupContextReturn } from './context.svelte.js';
5
+ export interface RadioGroupProps extends Assign<WithoutChildren<SvelteHTMLElements['div']>, OptionalId<CreateRadioGroupContextProps>> {
6
+ children?: Snippet<[CreateRadioGroupContextReturn]>;
7
+ }
8
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
9
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
10
+ $$bindings?: Bindings;
11
+ } & Exports;
12
+ (internal: unknown, props: Props & {
13
+ $$events?: Events;
14
+ $$slots?: Slots;
15
+ }): Exports & {
16
+ $set?: any;
17
+ $on?: any;
18
+ };
19
+ z_$$bindings?: Bindings;
20
+ }
21
+ declare const Root: $$__sveltets_2_IsomorphicComponent<RadioGroupProps, {
22
+ [evt: string]: CustomEvent<any>;
23
+ }, {}, {}, "">;
24
+ type Root = InstanceType<typeof Root>;
25
+ export default Root;
File without changes
@@ -0,0 +1,12 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(mergeProps(props, context.getClearTriggerProps()));
8
+ </script>
9
+
10
+ <button type="button" {...attrs}>
11
+ {@render children?.()}
12
+ </button>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectClearTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const ClearTrigger: $$__sveltets_2_IsomorphicComponent<SelectClearTriggerProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type ClearTrigger = InstanceType<typeof ClearTrigger>;
22
+ export default ClearTrigger;
@@ -0,0 +1,12 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(mergeProps(props, context.getContentProps()));
8
+ </script>
9
+
10
+ <div {...attrs}>
11
+ {@render children?.()}
12
+ </div>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectContentProps extends Assign<SvelteHTMLElements['div'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const Content: $$__sveltets_2_IsomorphicComponent<SelectContentProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type Content = InstanceType<typeof Content>;
22
+ export default Content;
@@ -0,0 +1,19 @@
1
+ import * as select from '@zag-js/select';
2
+ export interface CreateSelectContextProps<T> extends Omit<select.Context, 'collection'> {
3
+ items: T[];
4
+ itemToString?: (item: T) => string;
5
+ itemToValue?: (item: T) => string;
6
+ isItemDisabled?: (item: T) => boolean;
7
+ }
8
+ export interface CreateSelectContextReturn extends ReturnType<typeof createSelectContext> {
9
+ }
10
+ export declare function createSelectContext<T>(props: CreateSelectContextProps<T>): any;
11
+ export declare function setSelectContext(value: CreateSelectContextReturn): void;
12
+ export declare function useSelectContext(): CreateSelectContextReturn;
13
+ export declare function setSelectItemGroupContext(value: select.ItemGroupProps): void;
14
+ export declare function useSelectItemGroupContext(): select.ItemGroupProps;
15
+ export interface CreateItemContextReturn<T> extends select.ItemProps<T> {
16
+ label: string;
17
+ }
18
+ export declare function setSelectItemContext(value: select.ItemProps): void;
19
+ export declare function useSelectItemContext(): select.ItemProps<any>;
@@ -0,0 +1,38 @@
1
+ import * as select from '@zag-js/select';
2
+ import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
3
+ import { getContext, setContext } from 'svelte';
4
+ export function createSelectContext(props) {
5
+ const collection = $derived(select.collection({
6
+ items: props.items,
7
+ itemToValue: (item) => (props.itemToValue ? props.itemToValue(item) : String(item)),
8
+ itemToString: (item) => (props.itemToString ? props.itemToString(item) : String(item)),
9
+ isItemDisabled: (item) => (props.isItemDisabled ? props.isItemDisabled(item) : false),
10
+ }));
11
+ const [state, send] = useMachine(select.machine({
12
+ ...props,
13
+ collection,
14
+ }));
15
+ const api = $derived(reflect(() => ({
16
+ ...select.connect(state, send, normalizeProps),
17
+ collection,
18
+ })));
19
+ return api;
20
+ }
21
+ export function setSelectContext(value) {
22
+ setContext('Select', reflect(() => value));
23
+ }
24
+ export function useSelectContext() {
25
+ return getContext('Select');
26
+ }
27
+ export function setSelectItemGroupContext(value) {
28
+ setContext('SelectItemGroup', reflect(() => value));
29
+ }
30
+ export function useSelectItemGroupContext() {
31
+ return getContext('SelectItemGroup');
32
+ }
33
+ export function setSelectItemContext(value) {
34
+ setContext('SelectItem', reflect(() => value));
35
+ }
36
+ export function useSelectItemContext() {
37
+ return getContext('SelectItem');
38
+ }
@@ -0,0 +1,12 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(mergeProps(props, context.getControlProps()));
8
+ </script>
9
+
10
+ <div {...attrs}>
11
+ {@render children?.()}
12
+ </div>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectControlProps extends Assign<SvelteHTMLElements['div'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const Control: $$__sveltets_2_IsomorphicComponent<SelectControlProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type Control = InstanceType<typeof Control>;
22
+ export default Control;
@@ -0,0 +1,12 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(mergeProps(props, context.getHiddenSelectProps()));
8
+ </script>
9
+
10
+ <select {...attrs}>
11
+ {@render children?.()}
12
+ </select>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectHiddenSelectProps extends Assign<SvelteHTMLElements['select'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const HiddenSelect: $$__sveltets_2_IsomorphicComponent<SelectHiddenSelectProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type HiddenSelect = InstanceType<typeof HiddenSelect>;
22
+ export default HiddenSelect;
@@ -0,0 +1,16 @@
1
+ export { default as ClearTrigger, type SelectClearTriggerProps } from './clear-trigger.svelte';
2
+ export { default as Content, type SelectContentProps } from './content.svelte';
3
+ export { default as Control, type SelectControlProps } from './control.svelte';
4
+ export { default as HiddenSelect, type SelectHiddenSelectProps } from './hidden-select.svelte';
5
+ export { default as Indicator, type SelectIndicatorProps } from './indicator.svelte';
6
+ export { default as ItemGroupLabel, type SelectItemGroupLabelProps } from './item-group-label.svelte';
7
+ export { default as ItemGroup, type SelectItemGroupProps } from './item-group.svelte';
8
+ export { default as ItemIndicator, type SelectItemIndicatorProps } from './item-indicator.svelte';
9
+ export { default as ItemText, type SelectItemTextProps } from './item-text.svelte';
10
+ export { default as Item, type SelectItemProps } from './item.svelte';
11
+ export { default as Label, type SelectLabelProps } from './label.svelte';
12
+ export { default as List, type SelectListProps } from './list.svelte';
13
+ export { default as Positioner, type SelectPositionerProps } from './positioner.svelte';
14
+ export { default as Root, type SelectProps } from './root.svelte';
15
+ export { default as Trigger, type SelectTriggerProps } from './trigger.svelte';
16
+ export { default as ValueText, type SelectValueTextProps } from './value-text.svelte';
@@ -0,0 +1,16 @@
1
+ export { default as ClearTrigger } from './clear-trigger.svelte';
2
+ export { default as Content } from './content.svelte';
3
+ export { default as Control } from './control.svelte';
4
+ export { default as HiddenSelect } from './hidden-select.svelte';
5
+ export { default as Indicator } from './indicator.svelte';
6
+ export { default as ItemGroupLabel } from './item-group-label.svelte';
7
+ export { default as ItemGroup } from './item-group.svelte';
8
+ export { default as ItemIndicator } from './item-indicator.svelte';
9
+ export { default as ItemText } from './item-text.svelte';
10
+ export { default as Item } from './item.svelte';
11
+ export { default as Label } from './label.svelte';
12
+ export { default as List } from './list.svelte';
13
+ export { default as Positioner } from './positioner.svelte';
14
+ export { default as Root } from './root.svelte';
15
+ export { default as Trigger } from './trigger.svelte';
16
+ export { default as ValueText } from './value-text.svelte';
@@ -0,0 +1,12 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(mergeProps(props, context.getIndicatorProps()));
8
+ </script>
9
+
10
+ <span {...attrs}>
11
+ {@render children?.()}
12
+ </span>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectIndicatorProps extends Assign<SvelteHTMLElements['span'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const Indicator: $$__sveltets_2_IsomorphicComponent<SelectIndicatorProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type Indicator = InstanceType<typeof Indicator>;
22
+ export default Indicator;
@@ -0,0 +1,15 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext, useSelectItemGroupContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let itemGroupContext = useSelectItemGroupContext();
8
+ let attrs = $derived(
9
+ mergeProps(props, context.getItemGroupLabelProps({ htmlFor: itemGroupContext.id }))
10
+ );
11
+ </script>
12
+
13
+ <span {...attrs}>
14
+ {@render children?.()}
15
+ </span>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectItemGroupLabelProps extends Assign<SvelteHTMLElements['span'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const ItemGroupLabel: $$__sveltets_2_IsomorphicComponent<SelectItemGroupLabelProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type ItemGroupLabel = InstanceType<typeof ItemGroupLabel>;
22
+ export default ItemGroupLabel;
@@ -0,0 +1,14 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { nanoid } from "nanoid/non-secure";
5
+ import { setSelectItemGroupContext, useSelectContext } from "./context.svelte.js";
6
+ let { id = nanoid(), children, ...props } = $props();
7
+ let context = useSelectContext();
8
+ let attrs = $derived(mergeProps(props, context.getItemGroupProps({ id })));
9
+ setSelectItemGroupContext({ id });
10
+ </script>
11
+
12
+ <div {...attrs}>
13
+ {@render children?.()}
14
+ </div>
@@ -0,0 +1,23 @@
1
+ import type { Assign, OptionalId } from '../types.js';
2
+ import type { ItemGroupProps } from '@zag-js/select';
3
+ import type { SvelteHTMLElements } from 'svelte/elements';
4
+ export interface SelectItemGroupProps extends Assign<SvelteHTMLElements['div'], OptionalId<ItemGroupProps>> {
5
+ }
6
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
7
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
8
+ $$bindings?: Bindings;
9
+ } & Exports;
10
+ (internal: unknown, props: Props & {
11
+ $$events?: Events;
12
+ $$slots?: Slots;
13
+ }): Exports & {
14
+ $set?: any;
15
+ $on?: any;
16
+ };
17
+ z_$$bindings?: Bindings;
18
+ }
19
+ declare const ItemGroup: $$__sveltets_2_IsomorphicComponent<SelectItemGroupProps, {
20
+ [evt: string]: CustomEvent<any>;
21
+ }, {}, {}, "">;
22
+ type ItemGroup = InstanceType<typeof ItemGroup>;
23
+ export default ItemGroup;
@@ -0,0 +1,13 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext, useSelectItemContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let itemContext = useSelectItemContext();
8
+ let attrs = $derived(mergeProps(props, context.getItemIndicatorProps(itemContext)));
9
+ </script>
10
+
11
+ <span {...attrs}>
12
+ {@render children?.()}
13
+ </span>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectItemIndicatorProps extends Assign<SvelteHTMLElements['span'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const ItemIndicator: $$__sveltets_2_IsomorphicComponent<SelectItemIndicatorProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type ItemIndicator = InstanceType<typeof ItemIndicator>;
22
+ export default ItemIndicator;
@@ -0,0 +1,17 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext, useSelectItemContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let itemContext = useSelectItemContext();
8
+ let attrs = $derived(mergeProps(props, context.getItemTextProps(itemContext)));
9
+ </script>
10
+
11
+ <span {...attrs}>
12
+ {#if children}
13
+ {@render children?.()}
14
+ {:else}
15
+ {context.collection.stringifyItem(itemContext.item)}
16
+ {/if}
17
+ </span>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectItemTextProps extends Assign<SvelteHTMLElements['span'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const ItemText: $$__sveltets_2_IsomorphicComponent<SelectItemTextProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type ItemText = InstanceType<typeof ItemText>;
22
+ export default ItemText;
@@ -0,0 +1,24 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { setSelectItemContext, useSelectContext } from "./context.svelte.js";
5
+ let { item, persistFocus, children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(
8
+ mergeProps(
9
+ props,
10
+ context.getItemProps({
11
+ item,
12
+ persistFocus
13
+ })
14
+ )
15
+ );
16
+ setSelectItemContext({
17
+ item,
18
+ persistFocus
19
+ });
20
+ </script>
21
+
22
+ <div {...attrs}>
23
+ {@render children?.()}
24
+ </div>
@@ -0,0 +1,23 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { ItemProps } from '@zag-js/select';
3
+ import type { SvelteHTMLElements } from 'svelte/elements';
4
+ export interface SelectItemProps extends Assign<SvelteHTMLElements['div'], ItemProps> {
5
+ }
6
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
7
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
8
+ $$bindings?: Bindings;
9
+ } & Exports;
10
+ (internal: unknown, props: Props & {
11
+ $$events?: Events;
12
+ $$slots?: Slots;
13
+ }): Exports & {
14
+ $set?: any;
15
+ $on?: any;
16
+ };
17
+ z_$$bindings?: Bindings;
18
+ }
19
+ declare const Item: $$__sveltets_2_IsomorphicComponent<SelectItemProps, {
20
+ [evt: string]: CustomEvent<any>;
21
+ }, {}, {}, "">;
22
+ type Item = InstanceType<typeof Item>;
23
+ export default Item;
@@ -0,0 +1,12 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(mergeProps(props, context.getLabelProps()));
8
+ </script>
9
+
10
+ <label {...attrs}>
11
+ {@render children?.()}
12
+ </label>
@@ -0,0 +1,22 @@
1
+ import type { Assign } from '../types.js';
2
+ import type { SvelteHTMLElements } from 'svelte/elements';
3
+ export interface SelectLabelProps extends Assign<SvelteHTMLElements['label'], {}> {
4
+ }
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
15
+ };
16
+ z_$$bindings?: Bindings;
17
+ }
18
+ declare const Label: $$__sveltets_2_IsomorphicComponent<SelectLabelProps, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, "">;
21
+ type Label = InstanceType<typeof Label>;
22
+ export default Label;
@@ -0,0 +1,12 @@
1
+ <script lang="ts" context="module"></script>
2
+
3
+ <script lang="ts">import { mergeProps } from "@zag-js/svelte";
4
+ import { useSelectContext } from "./context.svelte.js";
5
+ let { children, ...props } = $props();
6
+ let context = useSelectContext();
7
+ let attrs = $derived(mergeProps(props, context.getListProps()));
8
+ </script>
9
+
10
+ <div {...attrs}>
11
+ {@render children?.()}
12
+ </div>