ui-ingredients 0.14.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (560) hide show
  1. package/README.md +5 -60
  2. package/dist/accordion/accordion-anatomy.d.ts +1 -0
  3. package/dist/accordion/accordion-anatomy.js +1 -0
  4. package/dist/accordion/accordion-item-content.svelte +55 -55
  5. package/dist/accordion/accordion-item-indicator.svelte +36 -36
  6. package/dist/accordion/accordion-item-trigger.svelte +36 -36
  7. package/dist/accordion/accordion-item.svelte +47 -47
  8. package/dist/accordion/accordion-root.svelte +66 -66
  9. package/dist/accordion/index.d.ts +1 -1
  10. package/dist/accordion/index.js +1 -1
  11. package/dist/alert/alert-description.svelte +25 -25
  12. package/dist/alert/alert-indicator.svelte +25 -25
  13. package/dist/alert/alert-root.svelte +29 -29
  14. package/dist/alert/alert-title.svelte +25 -25
  15. package/dist/alert-dialog/alert-dialog-backdrop.svelte +49 -49
  16. package/dist/alert-dialog/alert-dialog-close-trigger.svelte +32 -32
  17. package/dist/alert-dialog/alert-dialog-content.svelte +41 -41
  18. package/dist/alert-dialog/alert-dialog-description.svelte +32 -32
  19. package/dist/alert-dialog/alert-dialog-positioner.svelte +40 -40
  20. package/dist/alert-dialog/alert-dialog-root.svelte +48 -48
  21. package/dist/alert-dialog/alert-dialog-title.svelte +30 -30
  22. package/dist/alert-dialog/alert-dialog-trigger.svelte +30 -30
  23. package/dist/anatomy.d.ts +46 -0
  24. package/dist/anatomy.js +46 -0
  25. package/dist/avatar/avatar-anatomy.d.ts +1 -0
  26. package/dist/avatar/avatar-anatomy.js +1 -0
  27. package/dist/avatar/avatar-fallback.svelte +30 -30
  28. package/dist/avatar/avatar-image.svelte +23 -23
  29. package/dist/avatar/avatar-root.svelte +46 -46
  30. package/dist/avatar/index.d.ts +2 -1
  31. package/dist/avatar/index.js +2 -1
  32. package/dist/breadcrumbs/breadcrumbs-anatomy.d.ts +2 -2
  33. package/dist/breadcrumbs/breadcrumbs-item.svelte +25 -25
  34. package/dist/breadcrumbs/breadcrumbs-link.svelte +33 -33
  35. package/dist/breadcrumbs/breadcrumbs-list.svelte +25 -25
  36. package/dist/breadcrumbs/breadcrumbs-root.svelte +29 -29
  37. package/dist/breadcrumbs/breadcrumbs-separator.svelte +25 -25
  38. package/dist/carousel/carousel-anatomy.d.ts +1 -0
  39. package/dist/carousel/carousel-anatomy.js +1 -0
  40. package/dist/carousel/carousel-indicator-group.svelte +32 -32
  41. package/dist/carousel/carousel-indicator.svelte +41 -41
  42. package/dist/carousel/carousel-item-group.svelte +30 -30
  43. package/dist/carousel/carousel-item.svelte +42 -42
  44. package/dist/carousel/carousel-next-trigger.svelte +30 -30
  45. package/dist/carousel/carousel-prev-trigger.svelte +30 -30
  46. package/dist/carousel/carousel-root.svelte +56 -56
  47. package/dist/carousel/carousel-viewport.svelte +30 -30
  48. package/dist/carousel/index.d.ts +1 -1
  49. package/dist/carousel/index.js +1 -1
  50. package/dist/checkbox/checkbox-anatomy.d.ts +1 -0
  51. package/dist/checkbox/checkbox-anatomy.js +1 -0
  52. package/dist/checkbox/checkbox-control.svelte +30 -30
  53. package/dist/checkbox/checkbox-hidden-input.svelte +27 -27
  54. package/dist/checkbox/checkbox-indicator.svelte +30 -30
  55. package/dist/checkbox/checkbox-label.svelte +30 -30
  56. package/dist/checkbox/checkbox-root.svelte +59 -59
  57. package/dist/checkbox/index.d.ts +1 -1
  58. package/dist/checkbox/index.js +1 -1
  59. package/dist/clipboard/clipboard-anatomy.d.ts +1 -0
  60. package/dist/clipboard/clipboard-anatomy.js +1 -0
  61. package/dist/clipboard/clipboard-control.svelte +30 -30
  62. package/dist/clipboard/clipboard-indicator.svelte +37 -37
  63. package/dist/clipboard/clipboard-input.svelte +27 -27
  64. package/dist/clipboard/clipboard-label.svelte +30 -30
  65. package/dist/clipboard/clipboard-root.svelte +52 -52
  66. package/dist/clipboard/clipboard-trigger.svelte +30 -30
  67. package/dist/clipboard/index.d.ts +1 -1
  68. package/dist/clipboard/index.js +1 -1
  69. package/dist/collapsible/collapsible-anatomy.d.ts +1 -0
  70. package/dist/collapsible/collapsible-anatomy.js +1 -0
  71. package/dist/collapsible/collapsible-content.svelte +41 -41
  72. package/dist/collapsible/collapsible-root.svelte +75 -75
  73. package/dist/collapsible/collapsible-trigger.svelte +29 -29
  74. package/dist/collapsible/index.d.ts +1 -1
  75. package/dist/collapsible/index.js +1 -1
  76. package/dist/color-picker/color-picker-anatomy.d.ts +2 -2
  77. package/dist/color-picker/color-picker-area-background.svelte +36 -36
  78. package/dist/color-picker/color-picker-area-thumb.svelte +36 -36
  79. package/dist/color-picker/color-picker-area.svelte +44 -44
  80. package/dist/color-picker/color-picker-channel-input.svelte +41 -41
  81. package/dist/color-picker/color-picker-channel-slider-label.svelte +36 -36
  82. package/dist/color-picker/color-picker-channel-slider-thumb.svelte +45 -45
  83. package/dist/color-picker/color-picker-channel-slider-track.svelte +45 -45
  84. package/dist/color-picker/color-picker-channel-slider-value-text.svelte +45 -45
  85. package/dist/color-picker/color-picker-channel-slider.svelte +51 -51
  86. package/dist/color-picker/color-picker-content.svelte +41 -41
  87. package/dist/color-picker/color-picker-control.svelte +30 -30
  88. package/dist/color-picker/color-picker-eye-dropper-trigger.svelte +32 -32
  89. package/dist/color-picker/color-picker-format-select.svelte +40 -40
  90. package/dist/color-picker/color-picker-format-trigger.svelte +32 -32
  91. package/dist/color-picker/color-picker-hidden-input.svelte +29 -29
  92. package/dist/color-picker/color-picker-label.svelte +30 -30
  93. package/dist/color-picker/color-picker-positioner.svelte +38 -38
  94. package/dist/color-picker/color-picker-root.svelte +87 -87
  95. package/dist/color-picker/color-picker-swatch-group.svelte +32 -32
  96. package/dist/color-picker/color-picker-swatch-indicator.svelte +36 -36
  97. package/dist/color-picker/color-picker-swatch-trigger.svelte +44 -44
  98. package/dist/color-picker/color-picker-swatch.svelte +44 -44
  99. package/dist/color-picker/color-picker-transparency-grid.svelte +37 -37
  100. package/dist/color-picker/color-picker-trigger.svelte +30 -30
  101. package/dist/color-picker/color-picker-value-swatch.svelte +41 -41
  102. package/dist/color-picker/color-picker-value-text.svelte +36 -36
  103. package/dist/color-picker/color-picker-view.svelte +41 -41
  104. package/dist/combobox/combobox-anatomy.d.ts +1 -0
  105. package/dist/combobox/combobox-anatomy.js +1 -0
  106. package/dist/combobox/combobox-clear-trigger.svelte +32 -32
  107. package/dist/combobox/combobox-content.svelte +37 -37
  108. package/dist/combobox/combobox-control.svelte +30 -30
  109. package/dist/combobox/combobox-input.svelte +25 -25
  110. package/dist/combobox/combobox-item-group-label.svelte +41 -41
  111. package/dist/combobox/combobox-item-group.svelte +45 -45
  112. package/dist/combobox/combobox-item-indicator.svelte +36 -36
  113. package/dist/combobox/combobox-item-text.svelte +40 -40
  114. package/dist/combobox/combobox-item.svelte +47 -47
  115. package/dist/combobox/combobox-label.svelte +30 -30
  116. package/dist/combobox/combobox-list.svelte +30 -30
  117. package/dist/combobox/combobox-positioner.svelte +40 -40
  118. package/dist/combobox/combobox-root.svelte +101 -101
  119. package/dist/combobox/combobox-trigger.svelte +30 -30
  120. package/dist/combobox/index.d.ts +1 -1
  121. package/dist/combobox/index.js +1 -1
  122. package/dist/date-picker/date-picker-anatomy.d.ts +2 -2
  123. package/dist/date-picker/date-picker-clear-trigger.svelte +32 -32
  124. package/dist/date-picker/date-picker-content.svelte +41 -41
  125. package/dist/date-picker/date-picker-control.svelte +30 -30
  126. package/dist/date-picker/date-picker-day-table-cell-trigger.svelte +36 -36
  127. package/dist/date-picker/date-picker-day-table-cell.svelte +52 -52
  128. package/dist/date-picker/date-picker-input.svelte +34 -34
  129. package/dist/date-picker/date-picker-label.svelte +37 -37
  130. package/dist/date-picker/date-picker-month-select.svelte +41 -41
  131. package/dist/date-picker/date-picker-month-table-cell-trigger.svelte +36 -36
  132. package/dist/date-picker/date-picker-month-table-cell.svelte +50 -50
  133. package/dist/date-picker/date-picker-next-trigger.svelte +36 -36
  134. package/dist/date-picker/date-picker-positioner.svelte +40 -40
  135. package/dist/date-picker/date-picker-preset-trigger.svelte +37 -37
  136. package/dist/date-picker/date-picker-prev-trigger.svelte +36 -36
  137. package/dist/date-picker/date-picker-range-text.svelte +34 -34
  138. package/dist/date-picker/date-picker-root.svelte +90 -90
  139. package/dist/date-picker/date-picker-table-body.svelte +36 -36
  140. package/dist/date-picker/date-picker-table-head.svelte +36 -36
  141. package/dist/date-picker/date-picker-table-header.svelte +36 -36
  142. package/dist/date-picker/date-picker-table-row.svelte +36 -36
  143. package/dist/date-picker/date-picker-table.svelte +46 -46
  144. package/dist/date-picker/date-picker-trigger.svelte +30 -30
  145. package/dist/date-picker/date-picker-view-control.svelte +36 -36
  146. package/dist/date-picker/date-picker-view-trigger.svelte +36 -36
  147. package/dist/date-picker/date-picker-view.svelte +41 -41
  148. package/dist/date-picker/date-picker-year-select.svelte +38 -38
  149. package/dist/date-picker/date-picker-year-table-cell-trigger.svelte +36 -36
  150. package/dist/date-picker/date-picker-year-table-cell.svelte +50 -50
  151. package/dist/dialog/dialog-anatomy.d.ts +1 -0
  152. package/dist/dialog/dialog-anatomy.js +1 -0
  153. package/dist/dialog/dialog-backdrop.svelte +45 -45
  154. package/dist/dialog/dialog-close-trigger.svelte +30 -30
  155. package/dist/dialog/dialog-content.svelte +37 -37
  156. package/dist/dialog/dialog-description.svelte +30 -30
  157. package/dist/dialog/dialog-positioner.svelte +36 -36
  158. package/dist/dialog/dialog-root.svelte +48 -48
  159. package/dist/dialog/dialog-title.svelte +30 -30
  160. package/dist/dialog/dialog-trigger.svelte +30 -30
  161. package/dist/dialog/index.d.ts +1 -1
  162. package/dist/dialog/index.js +1 -1
  163. package/dist/drawer/drawer-anatomy.d.ts +2 -2
  164. package/dist/drawer/drawer-backdrop.svelte +45 -45
  165. package/dist/drawer/drawer-body.svelte +30 -30
  166. package/dist/drawer/drawer-close-trigger.svelte +30 -30
  167. package/dist/drawer/drawer-content.svelte +37 -37
  168. package/dist/drawer/drawer-description.svelte +30 -30
  169. package/dist/drawer/drawer-footer.svelte +30 -30
  170. package/dist/drawer/drawer-header.svelte +30 -30
  171. package/dist/drawer/drawer-positioner.svelte +36 -36
  172. package/dist/drawer/drawer-root.svelte +48 -48
  173. package/dist/drawer/drawer-title.svelte +30 -30
  174. package/dist/drawer/drawer-trigger.svelte +30 -30
  175. package/dist/editable/editable-anatomy.d.ts +1 -0
  176. package/dist/editable/editable-anatomy.js +1 -0
  177. package/dist/editable/editable-area.svelte +30 -30
  178. package/dist/editable/editable-cancel-trigger.svelte +32 -32
  179. package/dist/editable/editable-control.svelte +30 -30
  180. package/dist/editable/editable-edit-trigger.svelte +30 -30
  181. package/dist/editable/editable-input.svelte +23 -23
  182. package/dist/editable/editable-label.svelte +30 -30
  183. package/dist/editable/editable-preview.svelte +37 -37
  184. package/dist/editable/editable-root.svelte +74 -74
  185. package/dist/editable/editable-submit-trigger.svelte +32 -32
  186. package/dist/editable/index.d.ts +1 -1
  187. package/dist/editable/index.js +1 -1
  188. package/dist/environment-provider/environment-provider.svelte +41 -41
  189. package/dist/field/field-anatomy.d.ts +2 -2
  190. package/dist/field/field-error-text.svelte +50 -50
  191. package/dist/field/field-helper-text.svelte +32 -32
  192. package/dist/field/field-input.svelte +23 -23
  193. package/dist/field/field-label.svelte +30 -30
  194. package/dist/field/field-required-indicator.svelte +36 -36
  195. package/dist/field/field-root.svelte +63 -63
  196. package/dist/field/field-select.svelte +28 -28
  197. package/dist/field/field-textarea.svelte +51 -51
  198. package/dist/file-upload/file-upload-anatomy.d.ts +1 -0
  199. package/dist/file-upload/file-upload-anatomy.js +1 -0
  200. package/dist/file-upload/file-upload-clear-trigger.svelte +32 -32
  201. package/dist/file-upload/file-upload-dropzone.svelte +30 -30
  202. package/dist/file-upload/file-upload-hidden-input.svelte +29 -29
  203. package/dist/file-upload/file-upload-item-delete-trigger.svelte +36 -36
  204. package/dist/file-upload/file-upload-item-group.svelte +30 -30
  205. package/dist/file-upload/file-upload-item-name.svelte +40 -40
  206. package/dist/file-upload/file-upload-item-preview-image.svelte +41 -41
  207. package/dist/file-upload/file-upload-item-preview.svelte +36 -36
  208. package/dist/file-upload/file-upload-item-size-text.svelte +40 -40
  209. package/dist/file-upload/file-upload-item.svelte +43 -43
  210. package/dist/file-upload/file-upload-label.svelte +30 -30
  211. package/dist/file-upload/file-upload-root.svelte +66 -66
  212. package/dist/file-upload/file-upload-trigger.svelte +30 -30
  213. package/dist/file-upload/index.d.ts +1 -1
  214. package/dist/file-upload/index.js +1 -1
  215. package/dist/floating-panel/floating-panel-anatomy.d.ts +1 -0
  216. package/dist/floating-panel/floating-panel-anatomy.js +1 -0
  217. package/dist/floating-panel/floating-panel-body.svelte +30 -30
  218. package/dist/floating-panel/floating-panel-close-trigger.svelte +32 -32
  219. package/dist/floating-panel/floating-panel-content.svelte +41 -41
  220. package/dist/floating-panel/floating-panel-drag-trigger.svelte +32 -32
  221. package/dist/floating-panel/floating-panel-header.svelte +30 -30
  222. package/dist/floating-panel/floating-panel-maximize-trigger.svelte +32 -32
  223. package/dist/floating-panel/floating-panel-minimize-trigger.svelte +32 -32
  224. package/dist/floating-panel/floating-panel-positioner.svelte +40 -40
  225. package/dist/floating-panel/floating-panel-resize-trigger.svelte +44 -44
  226. package/dist/floating-panel/floating-panel-restore-trigger.svelte +32 -32
  227. package/dist/floating-panel/floating-panel-root.svelte +47 -47
  228. package/dist/floating-panel/floating-panel-title.svelte +30 -30
  229. package/dist/floating-panel/floating-panel-trigger.svelte +32 -32
  230. package/dist/floating-panel/index.d.ts +1 -1
  231. package/dist/floating-panel/index.js +1 -1
  232. package/dist/highlight/highlight.svelte +42 -42
  233. package/dist/hover-card/hover-card-anatomy.d.ts +1 -0
  234. package/dist/hover-card/hover-card-anatomy.js +1 -0
  235. package/dist/hover-card/hover-card-arrow-tip.svelte +30 -30
  236. package/dist/hover-card/hover-card-arrow.svelte +30 -30
  237. package/dist/hover-card/hover-card-content.svelte +37 -37
  238. package/dist/hover-card/hover-card-positioner.svelte +40 -40
  239. package/dist/hover-card/hover-card-root.svelte +52 -52
  240. package/dist/hover-card/hover-card-trigger.svelte +30 -30
  241. package/dist/hover-card/index.d.ts +1 -1
  242. package/dist/hover-card/index.js +1 -1
  243. package/dist/index.d.ts +1 -0
  244. package/dist/index.js +1 -0
  245. package/dist/locale-provider/local-provider.svelte +26 -26
  246. package/dist/menu/index.d.ts +1 -1
  247. package/dist/menu/index.js +1 -1
  248. package/dist/menu/menu-anatomy.d.ts +1 -0
  249. package/dist/menu/menu-anatomy.js +1 -0
  250. package/dist/menu/menu-arrow-tip.svelte +30 -30
  251. package/dist/menu/menu-arrow.svelte +30 -30
  252. package/dist/menu/menu-content.svelte +37 -37
  253. package/dist/menu/menu-context-trigger.svelte +30 -30
  254. package/dist/menu/menu-indicator.svelte +30 -30
  255. package/dist/menu/menu-item-group-label.svelte +42 -42
  256. package/dist/menu/menu-item-group.svelte +45 -45
  257. package/dist/menu/menu-item.svelte +47 -47
  258. package/dist/menu/menu-option-item-indicator.svelte +37 -37
  259. package/dist/menu/menu-option-item-text.svelte +41 -41
  260. package/dist/menu/menu-option-item.svelte +56 -56
  261. package/dist/menu/menu-positioner.svelte +36 -36
  262. package/dist/menu/menu-root.svelte +74 -74
  263. package/dist/menu/menu-separator.svelte +30 -30
  264. package/dist/menu/menu-trigger-item.svelte +30 -30
  265. package/dist/menu/menu-trigger.svelte +30 -30
  266. package/dist/number-input/index.d.ts +1 -1
  267. package/dist/number-input/index.js +1 -1
  268. package/dist/number-input/number-input-anatomy.d.ts +1 -0
  269. package/dist/number-input/number-input-anatomy.js +1 -0
  270. package/dist/number-input/number-input-control.svelte +30 -30
  271. package/dist/number-input/number-input-decrement-trigger.svelte +32 -32
  272. package/dist/number-input/number-input-increment-trigger.svelte +32 -32
  273. package/dist/number-input/number-input-input.svelte +27 -27
  274. package/dist/number-input/number-input-label.svelte +30 -30
  275. package/dist/number-input/number-input-root.svelte +74 -74
  276. package/dist/number-input/number-input-scrubber.svelte +30 -30
  277. package/dist/number-input/number-input-value-text.svelte +36 -36
  278. package/dist/pagination/index.d.ts +1 -1
  279. package/dist/pagination/index.js +1 -1
  280. package/dist/pagination/pagination-anatomy.d.ts +1 -0
  281. package/dist/pagination/pagination-anatomy.js +1 -0
  282. package/dist/pagination/pagination-ellipsis.svelte +41 -41
  283. package/dist/pagination/pagination-item.svelte +47 -47
  284. package/dist/pagination/pagination-next-trigger.svelte +32 -32
  285. package/dist/pagination/pagination-prev-trigger.svelte +32 -32
  286. package/dist/pagination/pagination-root.svelte +57 -57
  287. package/dist/pin-input/pin-input-anatomy.d.ts +2 -2
  288. package/dist/pin-input/pin-input-clear-trigger.svelte +32 -32
  289. package/dist/pin-input/pin-input-control.svelte +30 -30
  290. package/dist/pin-input/pin-input-hidden-input.svelte +27 -27
  291. package/dist/pin-input/pin-input-input.svelte +34 -34
  292. package/dist/pin-input/pin-input-label.svelte +30 -30
  293. package/dist/pin-input/pin-input-root.svelte +68 -68
  294. package/dist/popover/index.d.ts +1 -1
  295. package/dist/popover/index.js +1 -1
  296. package/dist/popover/popover-anatomy.d.ts +1 -0
  297. package/dist/popover/popover-anatomy.js +1 -0
  298. package/dist/popover/popover-anchor.svelte +30 -30
  299. package/dist/popover/popover-arrow-tip.svelte +30 -30
  300. package/dist/popover/popover-arrow.svelte +30 -30
  301. package/dist/popover/popover-close-trigger.svelte +30 -30
  302. package/dist/popover/popover-content.svelte +37 -37
  303. package/dist/popover/popover-description.svelte +30 -30
  304. package/dist/popover/popover-indicator.svelte +30 -30
  305. package/dist/popover/popover-positioner.svelte +40 -40
  306. package/dist/popover/popover-root.svelte +60 -60
  307. package/dist/popover/popover-title.svelte +30 -30
  308. package/dist/popover/popover-trigger.svelte +30 -30
  309. package/dist/portal/portal.svelte +32 -32
  310. package/dist/presence/presence.svelte +48 -48
  311. package/dist/progress/index.d.ts +1 -1
  312. package/dist/progress/index.js +1 -1
  313. package/dist/progress/progress-anatomy.d.ts +1 -0
  314. package/dist/progress/progress-anatomy.js +1 -0
  315. package/dist/progress/progress-circle-range.svelte +30 -30
  316. package/dist/progress/progress-circle-track.svelte +30 -30
  317. package/dist/progress/progress-circle.svelte +30 -30
  318. package/dist/progress/progress-label.svelte +30 -30
  319. package/dist/progress/progress-range.svelte +30 -30
  320. package/dist/progress/progress-root.svelte +54 -54
  321. package/dist/progress/progress-track.svelte +30 -30
  322. package/dist/progress/progress-value-text.svelte +34 -34
  323. package/dist/progress/progress-view.svelte +32 -32
  324. package/dist/qr-code/index.d.ts +1 -1
  325. package/dist/qr-code/index.js +1 -1
  326. package/dist/qr-code/qr-code-anatomy.d.ts +1 -0
  327. package/dist/qr-code/qr-code-anatomy.js +1 -0
  328. package/dist/qr-code/qr-code-frame.svelte +30 -30
  329. package/dist/qr-code/qr-code-overlay.svelte +30 -30
  330. package/dist/qr-code/qr-code-pattern.svelte +30 -30
  331. package/dist/qr-code/qr-code-root.svelte +48 -48
  332. package/dist/radio-group/index.d.ts +1 -1
  333. package/dist/radio-group/index.js +1 -1
  334. package/dist/radio-group/radio-group-anatomy.d.ts +1 -0
  335. package/dist/radio-group/radio-group-anatomy.js +1 -0
  336. package/dist/radio-group/radio-group-indicator.svelte +30 -30
  337. package/dist/radio-group/radio-group-item-control.svelte +36 -36
  338. package/dist/radio-group/radio-group-item-hidden-input.svelte +33 -33
  339. package/dist/radio-group/radio-group-item-text.svelte +36 -36
  340. package/dist/radio-group/radio-group-item.svelte +48 -48
  341. package/dist/radio-group/radio-group-label.svelte +30 -30
  342. package/dist/radio-group/radio-group-root.svelte +56 -56
  343. package/dist/rating-group/index.d.ts +1 -1
  344. package/dist/rating-group/index.js +1 -1
  345. package/dist/rating-group/rating-group-anatomy.d.ts +1 -0
  346. package/dist/rating-group/rating-group-anatomy.js +1 -0
  347. package/dist/rating-group/rating-group-control.svelte +30 -30
  348. package/dist/rating-group/rating-group-hidden-input.svelte +29 -29
  349. package/dist/rating-group/rating-group-item.svelte +42 -42
  350. package/dist/rating-group/rating-group-label.svelte +30 -30
  351. package/dist/rating-group/rating-group-root.svelte +63 -63
  352. package/dist/segment-group/create-segment-group.svelte.js +1 -1
  353. package/dist/segment-group/segment-group-anatomy.d.ts +2 -2
  354. package/dist/segment-group/segment-group-indicator.svelte +32 -32
  355. package/dist/segment-group/segment-group-item-control.svelte +36 -36
  356. package/dist/segment-group/segment-group-item-hidden-input.svelte +33 -33
  357. package/dist/segment-group/segment-group-item-text.svelte +36 -36
  358. package/dist/segment-group/segment-group-item.svelte +47 -47
  359. package/dist/segment-group/segment-group-label.svelte +30 -30
  360. package/dist/segment-group/segment-group-root.svelte +58 -58
  361. package/dist/select/index.d.ts +1 -1
  362. package/dist/select/index.js +1 -1
  363. package/dist/select/select-anatomy.d.ts +1 -0
  364. package/dist/select/select-anatomy.js +1 -0
  365. package/dist/select/select-clear-trigger.svelte +30 -30
  366. package/dist/select/select-content.svelte +37 -37
  367. package/dist/select/select-control.svelte +30 -30
  368. package/dist/select/select-hidden-select.svelte +30 -30
  369. package/dist/select/select-indicator.svelte +30 -30
  370. package/dist/select/select-item-group-label.svelte +40 -40
  371. package/dist/select/select-item-group.svelte +45 -45
  372. package/dist/select/select-item-indicator.svelte +36 -36
  373. package/dist/select/select-item-text.svelte +40 -40
  374. package/dist/select/select-item.svelte +47 -47
  375. package/dist/select/select-label.svelte +30 -30
  376. package/dist/select/select-list.svelte +30 -30
  377. package/dist/select/select-positioner.svelte +36 -36
  378. package/dist/select/select-root.svelte +88 -88
  379. package/dist/select/select-trigger.svelte +32 -32
  380. package/dist/select/select-value-text.svelte +37 -37
  381. package/dist/signature-pad/index.d.ts +1 -1
  382. package/dist/signature-pad/index.js +1 -1
  383. package/dist/signature-pad/signature-pad-anatomy.d.ts +1 -0
  384. package/dist/signature-pad/signature-pad-anatomy.js +1 -0
  385. package/dist/signature-pad/signature-pad-clear-trigger.svelte +32 -32
  386. package/dist/signature-pad/signature-pad-control.svelte +30 -30
  387. package/dist/signature-pad/signature-pad-current-segment-path.svelte +39 -39
  388. package/dist/signature-pad/signature-pad-guide.svelte +30 -30
  389. package/dist/signature-pad/signature-pad-hidden-input.svelte +34 -34
  390. package/dist/signature-pad/signature-pad-label.svelte +30 -30
  391. package/dist/signature-pad/signature-pad-root.svelte +59 -59
  392. package/dist/signature-pad/signature-pad-segment-path.svelte +37 -37
  393. package/dist/signature-pad/signature-pad-segment.svelte +30 -30
  394. package/dist/slider/index.d.ts +1 -1
  395. package/dist/slider/index.js +1 -1
  396. package/dist/slider/slider-anatomy.d.ts +1 -0
  397. package/dist/slider/slider-anatomy.js +1 -0
  398. package/dist/slider/slider-control.svelte +30 -30
  399. package/dist/slider/slider-dragging-indicator.svelte +36 -36
  400. package/dist/slider/slider-hidden-input.svelte +33 -33
  401. package/dist/slider/slider-label.svelte +30 -30
  402. package/dist/slider/slider-marker-group.svelte +30 -30
  403. package/dist/slider/slider-marker.svelte +39 -39
  404. package/dist/slider/slider-range.svelte +30 -30
  405. package/dist/slider/slider-root.svelte +69 -69
  406. package/dist/slider/slider-thumb.svelte +43 -43
  407. package/dist/slider/slider-track.svelte +30 -30
  408. package/dist/slider/slider-value-text.svelte +34 -34
  409. package/dist/splitter/index.d.ts +1 -1
  410. package/dist/splitter/index.js +1 -1
  411. package/dist/splitter/splitter-anatomy.d.ts +1 -0
  412. package/dist/splitter/splitter-anatomy.js +1 -0
  413. package/dist/splitter/splitter-panel.svelte +38 -38
  414. package/dist/splitter/splitter-resize-trigger.svelte +52 -52
  415. package/dist/splitter/splitter-root.svelte +53 -53
  416. package/dist/steps/index.d.ts +1 -1
  417. package/dist/steps/index.js +1 -1
  418. package/dist/steps/steps-anatomy.d.ts +1 -0
  419. package/dist/steps/steps-anatomy.js +1 -0
  420. package/dist/steps/steps-completed-content.svelte +37 -37
  421. package/dist/steps/steps-content.svelte +32 -32
  422. package/dist/steps/steps-indicator.svelte +37 -37
  423. package/dist/steps/steps-item.svelte +48 -48
  424. package/dist/steps/steps-list.svelte +30 -30
  425. package/dist/steps/steps-next-trigger.svelte +30 -30
  426. package/dist/steps/steps-prev-trigger.svelte +30 -30
  427. package/dist/steps/steps-progress.svelte +30 -30
  428. package/dist/steps/steps-root.svelte +55 -55
  429. package/dist/steps/steps-separator.svelte +36 -36
  430. package/dist/steps/steps-trigger.svelte +36 -36
  431. package/dist/switch/index.d.ts +1 -1
  432. package/dist/switch/index.js +1 -1
  433. package/dist/switch/switch-anatomy.d.ts +1 -0
  434. package/dist/switch/switch-anatomy.js +1 -0
  435. package/dist/switch/switch-control.svelte +30 -30
  436. package/dist/switch/switch-hidden-input.svelte +27 -27
  437. package/dist/switch/switch-label.svelte +30 -30
  438. package/dist/switch/switch-root.svelte +59 -59
  439. package/dist/switch/switch-thumb.svelte +30 -30
  440. package/dist/tabs/index.d.ts +1 -1
  441. package/dist/tabs/index.js +1 -1
  442. package/dist/tabs/tabs-anatomy.d.ts +1 -0
  443. package/dist/tabs/tabs-anatomy.js +1 -0
  444. package/dist/tabs/tabs-content.svelte +38 -38
  445. package/dist/tabs/tabs-indicator.svelte +30 -30
  446. package/dist/tabs/tabs-list.svelte +30 -30
  447. package/dist/tabs/tabs-root.svelte +57 -57
  448. package/dist/tabs/tabs-trigger.svelte +41 -41
  449. package/dist/tags-input/index.d.ts +1 -1
  450. package/dist/tags-input/index.js +1 -1
  451. package/dist/tags-input/tags-input-anatomy.d.ts +1 -0
  452. package/dist/tags-input/tags-input-anatomy.js +1 -0
  453. package/dist/tags-input/tags-input-clear-trigger.svelte +32 -32
  454. package/dist/tags-input/tags-input-control.svelte +30 -30
  455. package/dist/tags-input/tags-input-hidden-input.svelte +29 -29
  456. package/dist/tags-input/tags-input-input.svelte +27 -27
  457. package/dist/tags-input/tags-input-item-delete-trigger.svelte +36 -36
  458. package/dist/tags-input/tags-input-item-input.svelte +33 -33
  459. package/dist/tags-input/tags-input-item-preview.svelte +36 -36
  460. package/dist/tags-input/tags-input-item-text.svelte +36 -36
  461. package/dist/tags-input/tags-input-item.svelte +48 -48
  462. package/dist/tags-input/tags-input-label.svelte +30 -30
  463. package/dist/tags-input/tags-input-root.svelte +74 -74
  464. package/dist/time-picker/index.d.ts +2 -1
  465. package/dist/time-picker/index.js +1 -1
  466. package/dist/time-picker/time-picker-anatomy.d.ts +1 -0
  467. package/dist/time-picker/time-picker-anatomy.js +1 -0
  468. package/dist/time-picker/time-picker-clear-trigger.svelte +32 -32
  469. package/dist/time-picker/time-picker-column.svelte +34 -34
  470. package/dist/time-picker/time-picker-content.svelte +39 -39
  471. package/dist/time-picker/time-picker-control.svelte +30 -30
  472. package/dist/time-picker/time-picker-hour-cell.svelte +34 -34
  473. package/dist/time-picker/time-picker-input.svelte +27 -27
  474. package/dist/time-picker/time-picker-label.svelte +30 -30
  475. package/dist/time-picker/time-picker-minute-cell.svelte +34 -34
  476. package/dist/time-picker/time-picker-period-cell.svelte +42 -42
  477. package/dist/time-picker/time-picker-positioner.svelte +38 -38
  478. package/dist/time-picker/time-picker-root.svelte +81 -81
  479. package/dist/time-picker/time-picker-second-cell.svelte +34 -34
  480. package/dist/time-picker/time-picker-spacer.svelte +30 -30
  481. package/dist/time-picker/time-picker-trigger.svelte +30 -30
  482. package/dist/timer/index.d.ts +1 -1
  483. package/dist/timer/index.js +1 -1
  484. package/dist/timer/timer-action-trigger.svelte +37 -37
  485. package/dist/timer/timer-anatomy.d.ts +1 -0
  486. package/dist/timer/timer-anatomy.js +1 -0
  487. package/dist/timer/timer-area.svelte +30 -30
  488. package/dist/timer/timer-control.svelte +30 -30
  489. package/dist/timer/timer-item-label.svelte +36 -36
  490. package/dist/timer/timer-item-value.svelte +40 -40
  491. package/dist/timer/timer-item.svelte +43 -43
  492. package/dist/timer/timer-root.svelte +55 -55
  493. package/dist/timer/timer-separator.svelte +30 -30
  494. package/dist/toast/index.d.ts +1 -1
  495. package/dist/toast/index.js +1 -1
  496. package/dist/toast/toast-action-trigger.svelte +32 -32
  497. package/dist/toast/toast-actor.svelte +19 -19
  498. package/dist/toast/toast-anatomy.d.ts +1 -0
  499. package/dist/toast/toast-anatomy.js +1 -0
  500. package/dist/toast/toast-close-trigger.svelte +30 -30
  501. package/dist/toast/toast-description.svelte +34 -34
  502. package/dist/toast/toast-ghost-after.svelte +30 -30
  503. package/dist/toast/toast-ghost-before.svelte +30 -30
  504. package/dist/toast/toast-root.svelte +33 -33
  505. package/dist/toast/toast-title.svelte +34 -34
  506. package/dist/toast/toaster.svelte +60 -60
  507. package/dist/toggle/create-toggle.svelte.js +1 -1
  508. package/dist/toggle/index.d.ts +1 -1
  509. package/dist/toggle/index.js +1 -1
  510. package/dist/toggle/toggle-root.svelte +50 -50
  511. package/dist/toggle-group/index.d.ts +1 -1
  512. package/dist/toggle-group/index.js +1 -1
  513. package/dist/toggle-group/toggle-group-anatomy.d.ts +1 -0
  514. package/dist/toggle-group/toggle-group-anatomy.js +1 -0
  515. package/dist/toggle-group/toggle-group-item.svelte +43 -43
  516. package/dist/toggle-group/toggle-group-root.svelte +58 -58
  517. package/dist/tooltip/index.d.ts +1 -1
  518. package/dist/tooltip/index.js +1 -1
  519. package/dist/tooltip/tooltip-anatomy.d.ts +1 -0
  520. package/dist/tooltip/tooltip-anatomy.js +1 -0
  521. package/dist/tooltip/tooltip-arrow-tip.svelte +30 -30
  522. package/dist/tooltip/tooltip-arrow.svelte +30 -30
  523. package/dist/tooltip/tooltip-content.svelte +37 -37
  524. package/dist/tooltip/tooltip-positioner.svelte +40 -40
  525. package/dist/tooltip/tooltip-root.svelte +44 -44
  526. package/dist/tooltip/tooltip-trigger.svelte +30 -30
  527. package/dist/tour/index.d.ts +1 -1
  528. package/dist/tour/tour-action-trigger.svelte +39 -39
  529. package/dist/tour/tour-arrow-tip.svelte +32 -32
  530. package/dist/tour/tour-arrow.svelte +32 -32
  531. package/dist/tour/tour-backdrop.svelte +44 -44
  532. package/dist/tour/tour-close-trigger.svelte +30 -30
  533. package/dist/tour/tour-content.svelte +37 -37
  534. package/dist/tour/tour-description.svelte +34 -34
  535. package/dist/tour/tour-positioner.svelte +36 -36
  536. package/dist/tour/tour-progress-text.svelte +34 -34
  537. package/dist/tour/tour-root.svelte +47 -47
  538. package/dist/tour/tour-spotlight.svelte +30 -30
  539. package/dist/tour/tour-title.svelte +34 -34
  540. package/dist/tour/tour-trigger.svelte +30 -30
  541. package/dist/tree-view/index.d.ts +1 -1
  542. package/dist/tree-view/index.js +1 -1
  543. package/dist/tree-view/tree-view-anatomy.d.ts +1 -0
  544. package/dist/tree-view/tree-view-anatomy.js +1 -0
  545. package/dist/tree-view/tree-view-branch-content.svelte +55 -55
  546. package/dist/tree-view/tree-view-branch-control.svelte +35 -35
  547. package/dist/tree-view/tree-view-branch-indent-guide.svelte +35 -35
  548. package/dist/tree-view/tree-view-branch-indicator.svelte +35 -35
  549. package/dist/tree-view/tree-view-branch-text.svelte +35 -35
  550. package/dist/tree-view/tree-view-branch-trigger.svelte +35 -35
  551. package/dist/tree-view/tree-view-branch.svelte +47 -47
  552. package/dist/tree-view/tree-view-item-indicator.svelte +35 -35
  553. package/dist/tree-view/tree-view-item-text.svelte +35 -35
  554. package/dist/tree-view/tree-view-item.svelte +43 -43
  555. package/dist/tree-view/tree-view-label.svelte +29 -29
  556. package/dist/tree-view/tree-view-root.svelte +68 -68
  557. package/dist/tree-view/tree-view-tree.svelte +29 -29
  558. package/package.json +5 -1
  559. /package/dist/toggle/{anatomy.d.ts → toggle-anatomy.d.ts} +0 -0
  560. /package/dist/toggle/{anatomy.js → toggle-anatomy.js} +0 -0
@@ -1,36 +1,36 @@
1
- <script lang="ts" module>
2
- import type {HtmlIngredientProps} from '../types.js';
3
-
4
- export interface ComboboxItemIndicatorProps
5
- extends HtmlIngredientProps<'span', HTMLSpanElement> {}
6
- </script>
7
-
8
- <script lang="ts">
9
- import {mergeProps} from '../merge-props.js';
10
- import {
11
- getComboboxContext,
12
- getComboboxItemPropsContext,
13
- } from './combobox-context.svelte.js';
14
-
15
- let {
16
- ref = $bindable(null),
17
- asChild,
18
- children,
19
- ...props
20
- }: ComboboxItemIndicatorProps = $props();
21
-
22
- let combobox = getComboboxContext();
23
- let itemProps = getComboboxItemPropsContext();
24
-
25
- let mergedProps = $derived(
26
- mergeProps(combobox.getItemIndicatorProps(itemProps), props),
27
- );
28
- </script>
29
-
30
- {#if asChild}
31
- {@render asChild(mergedProps)}
32
- {:else}
33
- <span bind:this={ref} {...mergedProps}>
34
- {@render children?.()}
35
- </span>
36
- {/if}
1
+ <script lang="ts" module>
2
+ import type {HtmlIngredientProps} from '../types.js';
3
+
4
+ export interface ComboboxItemIndicatorProps
5
+ extends HtmlIngredientProps<'span', HTMLSpanElement> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '../merge-props.js';
10
+ import {
11
+ getComboboxContext,
12
+ getComboboxItemPropsContext,
13
+ } from './combobox-context.svelte.js';
14
+
15
+ let {
16
+ ref = $bindable(null),
17
+ asChild,
18
+ children,
19
+ ...props
20
+ }: ComboboxItemIndicatorProps = $props();
21
+
22
+ let combobox = getComboboxContext();
23
+ let itemProps = getComboboxItemPropsContext();
24
+
25
+ let mergedProps = $derived(
26
+ mergeProps(combobox.getItemIndicatorProps(itemProps), props),
27
+ );
28
+ </script>
29
+
30
+ {#if asChild}
31
+ {@render asChild(mergedProps)}
32
+ {:else}
33
+ <span bind:this={ref} {...mergedProps}>
34
+ {@render children?.()}
35
+ </span>
36
+ {/if}
@@ -1,40 +1,40 @@
1
- <script lang="ts" module>
2
- import type {HtmlIngredientProps} from '../types.js';
3
-
4
- export interface ComboboxItemTextProps
5
- extends HtmlIngredientProps<'span', HTMLSpanElement> {}
6
- </script>
7
-
8
- <script lang="ts">
9
- import {mergeProps} from '../merge-props.js';
10
- import {
11
- getComboboxContext,
12
- getComboboxItemPropsContext,
13
- } from './combobox-context.svelte.js';
14
-
15
- let {
16
- ref = $bindable(null),
17
- asChild,
18
- children,
19
- ...props
20
- }: ComboboxItemTextProps = $props();
21
-
22
- let combobox = getComboboxContext();
23
- let itemProps = getComboboxItemPropsContext();
24
-
25
- let mergedProps = $derived(
26
- mergeProps(combobox.getItemTextProps(itemProps), props),
27
- );
28
- </script>
29
-
30
- {#if asChild}
31
- {@render asChild(mergedProps)}
32
- {:else}
33
- <span bind:this={ref} {...mergedProps}>
34
- {#if children}
35
- {@render children?.()}
36
- {:else}
37
- {combobox.collection.stringifyItem(itemProps.item)}
38
- {/if}
39
- </span>
40
- {/if}
1
+ <script lang="ts" module>
2
+ import type {HtmlIngredientProps} from '../types.js';
3
+
4
+ export interface ComboboxItemTextProps
5
+ extends HtmlIngredientProps<'span', HTMLSpanElement> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '../merge-props.js';
10
+ import {
11
+ getComboboxContext,
12
+ getComboboxItemPropsContext,
13
+ } from './combobox-context.svelte.js';
14
+
15
+ let {
16
+ ref = $bindable(null),
17
+ asChild,
18
+ children,
19
+ ...props
20
+ }: ComboboxItemTextProps = $props();
21
+
22
+ let combobox = getComboboxContext();
23
+ let itemProps = getComboboxItemPropsContext();
24
+
25
+ let mergedProps = $derived(
26
+ mergeProps(combobox.getItemTextProps(itemProps), props),
27
+ );
28
+ </script>
29
+
30
+ {#if asChild}
31
+ {@render asChild(mergedProps)}
32
+ {:else}
33
+ <span bind:this={ref} {...mergedProps}>
34
+ {#if children}
35
+ {@render children?.()}
36
+ {:else}
37
+ {combobox.collection.stringifyItem(itemProps.item)}
38
+ {/if}
39
+ </span>
40
+ {/if}
@@ -1,47 +1,47 @@
1
- <script lang="ts" module>
2
- import type {Assign, HtmlIngredientProps} from '../types.js';
3
- import type {ItemProps, ItemState} from '@zag-js/combobox';
4
-
5
- export interface ComboboxItemProps
6
- extends Assign<
7
- HtmlIngredientProps<'div', HTMLDivElement, ItemState>,
8
- ItemProps
9
- > {}
10
- </script>
11
-
12
- <script lang="ts">
13
- import {mergeProps} from '../merge-props.js';
14
- import {createSplitProps} from '@zag-js/utils';
15
- import {
16
- getComboboxContext,
17
- setComboboxItemPropsContext,
18
- } from './combobox-context.svelte.js';
19
-
20
- let {
21
- ref = $bindable(null),
22
- asChild,
23
- children,
24
- ...props
25
- }: ComboboxItemProps = $props();
26
-
27
- let combobox = getComboboxContext();
28
-
29
- let [itemProps, localProps] = $derived(
30
- createSplitProps<ItemProps>(['item', 'persistFocus'])(props),
31
- );
32
-
33
- let itemState = $derived(combobox.getItemState(itemProps));
34
- let mergedProps = $derived(
35
- mergeProps(combobox.getItemProps(itemProps), localProps),
36
- );
37
-
38
- setComboboxItemPropsContext(() => itemProps);
39
- </script>
40
-
41
- {#if asChild}
42
- {@render asChild(mergedProps, itemState)}
43
- {:else}
44
- <div bind:this={ref} {...mergedProps}>
45
- {@render children?.(itemState)}
46
- </div>
47
- {/if}
1
+ <script lang="ts" module>
2
+ import type {Assign, HtmlIngredientProps} from '../types.js';
3
+ import type {ItemProps, ItemState} from '@zag-js/combobox';
4
+
5
+ export interface ComboboxItemProps
6
+ extends Assign<
7
+ HtmlIngredientProps<'div', HTMLDivElement, ItemState>,
8
+ ItemProps
9
+ > {}
10
+ </script>
11
+
12
+ <script lang="ts">
13
+ import {mergeProps} from '../merge-props.js';
14
+ import {createSplitProps} from '@zag-js/utils';
15
+ import {
16
+ getComboboxContext,
17
+ setComboboxItemPropsContext,
18
+ } from './combobox-context.svelte.js';
19
+
20
+ let {
21
+ ref = $bindable(null),
22
+ asChild,
23
+ children,
24
+ ...props
25
+ }: ComboboxItemProps = $props();
26
+
27
+ let combobox = getComboboxContext();
28
+
29
+ let [itemProps, localProps] = $derived(
30
+ createSplitProps<ItemProps>(['item', 'persistFocus'])(props),
31
+ );
32
+
33
+ let itemState = $derived(combobox.getItemState(itemProps));
34
+ let mergedProps = $derived(
35
+ mergeProps(combobox.getItemProps(itemProps), localProps),
36
+ );
37
+
38
+ setComboboxItemPropsContext(() => itemProps);
39
+ </script>
40
+
41
+ {#if asChild}
42
+ {@render asChild(mergedProps, itemState)}
43
+ {:else}
44
+ <div bind:this={ref} {...mergedProps}>
45
+ {@render children?.(itemState)}
46
+ </div>
47
+ {/if}
@@ -1,30 +1,30 @@
1
- <script lang="ts" module>
2
- import type {HtmlIngredientProps} from '../types.js';
3
-
4
- export interface ComboboxLabelProps
5
- extends HtmlIngredientProps<'label', HTMLLabelElement> {}
6
- </script>
7
-
8
- <script lang="ts">
9
- import {mergeProps} from '../merge-props.js';
10
- import {getComboboxContext} from './combobox-context.svelte.js';
11
-
12
- let {
13
- ref = $bindable(null),
14
- asChild,
15
- children,
16
- ...props
17
- }: ComboboxLabelProps = $props();
18
-
19
- let combobox = getComboboxContext();
20
-
21
- let mergedProps = $derived(mergeProps(combobox.getLabelProps(), props));
22
- </script>
23
-
24
- {#if asChild}
25
- {@render asChild(mergedProps)}
26
- {:else}
27
- <label bind:this={ref} {...mergedProps}>
28
- {@render children?.()}
29
- </label>
30
- {/if}
1
+ <script lang="ts" module>
2
+ import type {HtmlIngredientProps} from '../types.js';
3
+
4
+ export interface ComboboxLabelProps
5
+ extends HtmlIngredientProps<'label', HTMLLabelElement> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '../merge-props.js';
10
+ import {getComboboxContext} from './combobox-context.svelte.js';
11
+
12
+ let {
13
+ ref = $bindable(null),
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ComboboxLabelProps = $props();
18
+
19
+ let combobox = getComboboxContext();
20
+
21
+ let mergedProps = $derived(mergeProps(combobox.getLabelProps(), props));
22
+ </script>
23
+
24
+ {#if asChild}
25
+ {@render asChild(mergedProps)}
26
+ {:else}
27
+ <label bind:this={ref} {...mergedProps}>
28
+ {@render children?.()}
29
+ </label>
30
+ {/if}
@@ -1,30 +1,30 @@
1
- <script lang="ts" module>
2
- import type {HtmlIngredientProps} from '../types.js';
3
-
4
- export interface ComboboxListProps
5
- extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
- </script>
7
-
8
- <script lang="ts">
9
- import {mergeProps} from '../merge-props.js';
10
- import {getComboboxContext} from './combobox-context.svelte.js';
11
-
12
- let {
13
- ref = $bindable(null),
14
- asChild,
15
- children,
16
- ...props
17
- }: ComboboxListProps = $props();
18
-
19
- let combobox = getComboboxContext();
20
-
21
- let mergedProps = $derived(mergeProps(combobox.getListProps(), props));
22
- </script>
23
-
24
- {#if asChild}
25
- {@render asChild(mergedProps)}
26
- {:else}
27
- <div bind:this={ref} {...mergedProps}>
28
- {@render children?.()}
29
- </div>
30
- {/if}
1
+ <script lang="ts" module>
2
+ import type {HtmlIngredientProps} from '../types.js';
3
+
4
+ export interface ComboboxListProps
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '../merge-props.js';
10
+ import {getComboboxContext} from './combobox-context.svelte.js';
11
+
12
+ let {
13
+ ref = $bindable(null),
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ComboboxListProps = $props();
18
+
19
+ let combobox = getComboboxContext();
20
+
21
+ let mergedProps = $derived(mergeProps(combobox.getListProps(), props));
22
+ </script>
23
+
24
+ {#if asChild}
25
+ {@render asChild(mergedProps)}
26
+ {:else}
27
+ <div bind:this={ref} {...mergedProps}>
28
+ {@render children?.()}
29
+ </div>
30
+ {/if}
@@ -1,40 +1,40 @@
1
- <script lang="ts" module>
2
- import type {HtmlIngredientProps} from '../types.js';
3
-
4
- export interface ComboboxPositionerProps
5
- extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
- </script>
7
-
8
- <script lang="ts">
9
- import {mergeProps} from '../merge-props.js';
10
- import {getPresenceContext} from '../presence/presence-context.svelte.js';
11
- import {getComboboxContext} from './combobox-context.svelte.js';
12
-
13
- let {
14
- ref = $bindable(null),
15
- asChild,
16
- children,
17
- ...props
18
- }: ComboboxPositionerProps = $props();
19
-
20
- let combobox = getComboboxContext();
21
- let presence = getPresenceContext();
22
-
23
- let mergedProps = $derived(
24
- mergeProps(
25
- combobox.getPositionerProps(),
26
- presence.getPresenceProps(),
27
- props,
28
- ),
29
- );
30
- </script>
31
-
32
- {#if presence.mounted}
33
- {#if asChild}
34
- {@render asChild(mergedProps)}
35
- {:else}
36
- <div bind:this={ref} {...mergedProps}>
37
- {@render children?.()}
38
- </div>
39
- {/if}
40
- {/if}
1
+ <script lang="ts" module>
2
+ import type {HtmlIngredientProps} from '../types.js';
3
+
4
+ export interface ComboboxPositionerProps
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '../merge-props.js';
10
+ import {getPresenceContext} from '../presence/presence-context.svelte.js';
11
+ import {getComboboxContext} from './combobox-context.svelte.js';
12
+
13
+ let {
14
+ ref = $bindable(null),
15
+ asChild,
16
+ children,
17
+ ...props
18
+ }: ComboboxPositionerProps = $props();
19
+
20
+ let combobox = getComboboxContext();
21
+ let presence = getPresenceContext();
22
+
23
+ let mergedProps = $derived(
24
+ mergeProps(
25
+ combobox.getPositionerProps(),
26
+ presence.getPresenceProps(),
27
+ props,
28
+ ),
29
+ );
30
+ </script>
31
+
32
+ {#if presence.mounted}
33
+ {#if asChild}
34
+ {@render asChild(mergedProps)}
35
+ {:else}
36
+ <div bind:this={ref} {...mergedProps}>
37
+ {@render children?.()}
38
+ </div>
39
+ {/if}
40
+ {/if}
@@ -1,101 +1,101 @@
1
- <script lang="ts" module>
2
- import type {PresenceStrategyProps} from '../presence/create-presence.svelte.js';
3
- import type {Assign, HtmlIngredientProps} from '../types.js';
4
- import type {
5
- CreateComboboxProps,
6
- CreateComboboxReturn,
7
- } from './create-combobox.svelte.js';
8
-
9
- export interface ComboboxProps
10
- extends Assign<
11
- HtmlIngredientProps<'div', HTMLDivElement, CreateComboboxReturn>,
12
- CreateComboboxProps
13
- >,
14
- PresenceStrategyProps {}
15
- </script>
16
-
17
- <script lang="ts">
18
- import {mergeProps} from '../merge-props.js';
19
- import {createPresence} from '../presence/create-presence.svelte.js';
20
- import {setPresenceContext} from '../presence/presence-context.svelte.js';
21
- import {reflect} from '@zag-js/svelte';
22
- import {createSplitProps} from '@zag-js/utils';
23
- import {setComboboxContext} from './combobox-context.svelte.js';
24
- import {createCombobox} from './create-combobox.svelte.js';
25
-
26
- let {
27
- ref = $bindable(null),
28
- asChild,
29
- children,
30
- ...props
31
- }: ComboboxProps = $props();
32
-
33
- let [presenceStrategyProps, rest] = $derived(
34
- createSplitProps<PresenceStrategyProps>(['lazyMount', 'keepMounted'])(
35
- props,
36
- ),
37
- );
38
-
39
- let [createComboboxProps, localProps] = $derived(
40
- createSplitProps<CreateComboboxProps>([
41
- 'id',
42
- 'ids',
43
- 'name',
44
- 'form',
45
- 'open',
46
- 'openControlled',
47
- 'collection',
48
- 'value',
49
- 'invalid',
50
- 'disabled',
51
- 'multiple',
52
- 'readOnly',
53
- 'required',
54
- 'autoFocus',
55
- 'composite',
56
- 'loopFocus',
57
- 'inputValue',
58
- 'placeholder',
59
- 'positioning',
60
- 'translations',
61
- 'disableLayer',
62
- 'closeOnSelect',
63
- 'inputBehavior',
64
- 'openOnChange',
65
- 'openOnClick',
66
- 'openOnKeyPress',
67
- 'allowCustomValue',
68
- 'highlightedValue',
69
- 'selectionBehavior',
70
- 'onOpenChange',
71
- 'onValueChange',
72
- 'onFocusOutside',
73
- 'onHighlightChange',
74
- 'onInteractOutside',
75
- 'onInputValueChange',
76
- 'onPointerDownOutside',
77
- 'scrollToIndexFn',
78
- ])(rest),
79
- );
80
-
81
- let combobox = createCombobox(reflect(() => createComboboxProps));
82
- let presence = createPresence(
83
- reflect(() => ({
84
- ...presenceStrategyProps,
85
- present: combobox.open,
86
- })),
87
- );
88
-
89
- let mergedProps = $derived(mergeProps(combobox.getRootProps(), localProps));
90
-
91
- setComboboxContext(combobox);
92
- setPresenceContext(presence);
93
- </script>
94
-
95
- {#if asChild}
96
- {@render asChild(mergedProps, combobox)}
97
- {:else}
98
- <div bind:this={ref} {...mergedProps}>
99
- {@render children?.(combobox)}
100
- </div>
101
- {/if}
1
+ <script lang="ts" module>
2
+ import type {PresenceStrategyProps} from '../presence/create-presence.svelte.js';
3
+ import type {Assign, HtmlIngredientProps} from '../types.js';
4
+ import type {
5
+ CreateComboboxProps,
6
+ CreateComboboxReturn,
7
+ } from './create-combobox.svelte.js';
8
+
9
+ export interface ComboboxProps
10
+ extends Assign<
11
+ HtmlIngredientProps<'div', HTMLDivElement, CreateComboboxReturn>,
12
+ CreateComboboxProps
13
+ >,
14
+ PresenceStrategyProps {}
15
+ </script>
16
+
17
+ <script lang="ts">
18
+ import {mergeProps} from '../merge-props.js';
19
+ import {createPresence} from '../presence/create-presence.svelte.js';
20
+ import {setPresenceContext} from '../presence/presence-context.svelte.js';
21
+ import {reflect} from '@zag-js/svelte';
22
+ import {createSplitProps} from '@zag-js/utils';
23
+ import {setComboboxContext} from './combobox-context.svelte.js';
24
+ import {createCombobox} from './create-combobox.svelte.js';
25
+
26
+ let {
27
+ ref = $bindable(null),
28
+ asChild,
29
+ children,
30
+ ...props
31
+ }: ComboboxProps = $props();
32
+
33
+ let [presenceStrategyProps, rest] = $derived(
34
+ createSplitProps<PresenceStrategyProps>(['lazyMount', 'keepMounted'])(
35
+ props,
36
+ ),
37
+ );
38
+
39
+ let [createComboboxProps, localProps] = $derived(
40
+ createSplitProps<CreateComboboxProps>([
41
+ 'id',
42
+ 'ids',
43
+ 'name',
44
+ 'form',
45
+ 'open',
46
+ 'openControlled',
47
+ 'collection',
48
+ 'value',
49
+ 'invalid',
50
+ 'disabled',
51
+ 'multiple',
52
+ 'readOnly',
53
+ 'required',
54
+ 'autoFocus',
55
+ 'composite',
56
+ 'loopFocus',
57
+ 'inputValue',
58
+ 'placeholder',
59
+ 'positioning',
60
+ 'translations',
61
+ 'disableLayer',
62
+ 'closeOnSelect',
63
+ 'inputBehavior',
64
+ 'openOnChange',
65
+ 'openOnClick',
66
+ 'openOnKeyPress',
67
+ 'allowCustomValue',
68
+ 'highlightedValue',
69
+ 'selectionBehavior',
70
+ 'onOpenChange',
71
+ 'onValueChange',
72
+ 'onFocusOutside',
73
+ 'onHighlightChange',
74
+ 'onInteractOutside',
75
+ 'onInputValueChange',
76
+ 'onPointerDownOutside',
77
+ 'scrollToIndexFn',
78
+ ])(rest),
79
+ );
80
+
81
+ let combobox = createCombobox(reflect(() => createComboboxProps));
82
+ let presence = createPresence(
83
+ reflect(() => ({
84
+ ...presenceStrategyProps,
85
+ present: combobox.open,
86
+ })),
87
+ );
88
+
89
+ let mergedProps = $derived(mergeProps(combobox.getRootProps(), localProps));
90
+
91
+ setComboboxContext(combobox);
92
+ setPresenceContext(presence);
93
+ </script>
94
+
95
+ {#if asChild}
96
+ {@render asChild(mergedProps, combobox)}
97
+ {:else}
98
+ <div bind:this={ref} {...mergedProps}>
99
+ {@render children?.(combobox)}
100
+ </div>
101
+ {/if}