bits-ui 1.0.0-next.11 → 1.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/dist/bits/accordion/accordion.svelte.d.ts +2 -2
  2. package/dist/bits/accordion/accordion.svelte.js +2 -3
  3. package/dist/bits/accordion/components/accordion-content.svelte +2 -3
  4. package/dist/bits/accordion/components/accordion-header.svelte +1 -2
  5. package/dist/bits/accordion/components/accordion-item.svelte +1 -2
  6. package/dist/bits/accordion/components/accordion-trigger.svelte +1 -2
  7. package/dist/bits/accordion/components/accordion.svelte +2 -3
  8. package/dist/bits/accordion/types.d.ts +8 -8
  9. package/dist/bits/alert-dialog/components/alert-dialog-action.svelte +1 -2
  10. package/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte +1 -2
  11. package/dist/bits/alert-dialog/components/alert-dialog-content.svelte +3 -4
  12. package/dist/bits/alert-dialog/components/alert-dialog.svelte +1 -1
  13. package/dist/bits/alert-dialog/types.d.ts +1 -1
  14. package/dist/bits/aspect-ratio/aspect-ratio.svelte.js +1 -1
  15. package/dist/bits/aspect-ratio/components/aspect-ratio.svelte +1 -2
  16. package/dist/bits/aspect-ratio/types.d.ts +2 -2
  17. package/dist/bits/avatar/avatar.svelte.d.ts +1 -1
  18. package/dist/bits/avatar/avatar.svelte.js +1 -1
  19. package/dist/bits/avatar/components/avatar-fallback.svelte +1 -2
  20. package/dist/bits/avatar/components/avatar-image.svelte +1 -2
  21. package/dist/bits/avatar/components/avatar.svelte +1 -2
  22. package/dist/bits/avatar/types.d.ts +4 -4
  23. package/dist/bits/calendar/calendar.svelte.d.ts +7 -7
  24. package/dist/bits/calendar/calendar.svelte.js +1 -1
  25. package/dist/bits/calendar/components/calendar-cell.svelte +1 -2
  26. package/dist/bits/calendar/components/calendar-day.svelte +1 -2
  27. package/dist/bits/calendar/components/calendar-grid-body.svelte +1 -2
  28. package/dist/bits/calendar/components/calendar-grid-head.svelte +1 -2
  29. package/dist/bits/calendar/components/calendar-grid-row.svelte +1 -2
  30. package/dist/bits/calendar/components/calendar-grid.svelte +1 -2
  31. package/dist/bits/calendar/components/calendar-head-cell.svelte +1 -2
  32. package/dist/bits/calendar/components/calendar-header.svelte +1 -2
  33. package/dist/bits/calendar/components/calendar-heading.svelte +1 -2
  34. package/dist/bits/calendar/components/calendar-next-button.svelte +1 -2
  35. package/dist/bits/calendar/components/calendar-prev-button.svelte +1 -2
  36. package/dist/bits/calendar/components/calendar.svelte +2 -3
  37. package/dist/bits/calendar/types.d.ts +15 -15
  38. package/dist/bits/checkbox/checkbox.svelte.d.ts +2 -2
  39. package/dist/bits/checkbox/checkbox.svelte.js +1 -2
  40. package/dist/bits/checkbox/components/checkbox.svelte +1 -2
  41. package/dist/bits/checkbox/types.d.ts +2 -2
  42. package/dist/bits/collapsible/collapsible.svelte.d.ts +1 -1
  43. package/dist/bits/collapsible/collapsible.svelte.js +2 -3
  44. package/dist/bits/collapsible/components/collapsible-content.svelte +2 -3
  45. package/dist/bits/collapsible/components/collapsible-content.svelte.d.ts +3 -3
  46. package/dist/bits/collapsible/components/collapsible-trigger.svelte +1 -2
  47. package/dist/bits/collapsible/components/collapsible.svelte +2 -3
  48. package/dist/bits/collapsible/types.d.ts +6 -6
  49. package/dist/bits/combobox/components/combobox-input.svelte +1 -2
  50. package/dist/bits/combobox/components/combobox-trigger.svelte +1 -2
  51. package/dist/bits/combobox/components/combobox.svelte +1 -1
  52. package/dist/bits/combobox/components/combobox.svelte.d.ts +1 -1
  53. package/dist/bits/combobox/types.d.ts +2 -2
  54. package/dist/bits/command/command.svelte.d.ts +4 -4
  55. package/dist/bits/command/command.svelte.js +5 -8
  56. package/dist/bits/command/components/_command-label.svelte +2 -2
  57. package/dist/bits/command/components/_command-label.svelte.d.ts +2 -2
  58. package/dist/bits/command/components/command-empty.svelte +1 -2
  59. package/dist/bits/command/components/command-group-heading.svelte +1 -2
  60. package/dist/bits/command/components/command-group-items.svelte +1 -2
  61. package/dist/bits/command/components/command-group.svelte +1 -2
  62. package/dist/bits/command/components/command-input.svelte +1 -2
  63. package/dist/bits/command/components/command-item.svelte +2 -3
  64. package/dist/bits/command/components/command-link-item.svelte +2 -3
  65. package/dist/bits/command/components/command-list.svelte +1 -2
  66. package/dist/bits/command/components/command-loading.svelte +1 -2
  67. package/dist/bits/command/components/command-separator.svelte +1 -2
  68. package/dist/bits/command/components/command.svelte +2 -3
  69. package/dist/bits/command/types.d.ts +13 -13
  70. package/dist/bits/context-menu/components/context-menu-content-static.svelte +3 -4
  71. package/dist/bits/context-menu/components/context-menu-content.svelte +3 -4
  72. package/dist/bits/context-menu/components/context-menu-trigger.svelte +1 -2
  73. package/dist/bits/context-menu/components/context-menu.svelte +1 -1
  74. package/dist/bits/context-menu/types.d.ts +2 -2
  75. package/dist/bits/date-field/components/date-field-input.svelte +1 -2
  76. package/dist/bits/date-field/components/date-field-label.svelte +1 -2
  77. package/dist/bits/date-field/components/date-field-segment.svelte +1 -2
  78. package/dist/bits/date-field/components/date-field.svelte +1 -1
  79. package/dist/bits/date-field/date-field.svelte.d.ts +29 -29
  80. package/dist/bits/date-field/date-field.svelte.js +1 -3
  81. package/dist/bits/date-field/types.d.ts +4 -4
  82. package/dist/bits/date-picker/components/date-picker-calendar.svelte +1 -2
  83. package/dist/bits/date-picker/components/date-picker-content-static.svelte +1 -1
  84. package/dist/bits/date-picker/components/date-picker-content.svelte +1 -1
  85. package/dist/bits/date-picker/components/date-picker-trigger.svelte +1 -1
  86. package/dist/bits/date-picker/components/date-picker.svelte +1 -1
  87. package/dist/bits/date-picker/types.d.ts +2 -2
  88. package/dist/bits/date-range-field/components/date-range-field-input.svelte +1 -2
  89. package/dist/bits/date-range-field/components/date-range-field-label.svelte +1 -2
  90. package/dist/bits/date-range-field/components/date-range-field.svelte +2 -3
  91. package/dist/bits/date-range-field/date-range-field.svelte.js +1 -3
  92. package/dist/bits/date-range-field/types.d.ts +4 -4
  93. package/dist/bits/date-range-picker/components/date-range-picker-calendar.svelte +1 -2
  94. package/dist/bits/date-range-picker/components/date-range-picker-trigger.svelte +1 -1
  95. package/dist/bits/date-range-picker/components/date-range-picker.svelte +2 -3
  96. package/dist/bits/date-range-picker/types.d.ts +3 -3
  97. package/dist/bits/dialog/components/dialog-close.svelte +1 -2
  98. package/dist/bits/dialog/components/dialog-content.svelte +3 -4
  99. package/dist/bits/dialog/components/dialog-description.svelte +1 -2
  100. package/dist/bits/dialog/components/dialog-overlay.svelte +1 -2
  101. package/dist/bits/dialog/components/dialog-title.svelte +1 -2
  102. package/dist/bits/dialog/components/dialog-trigger.svelte +1 -2
  103. package/dist/bits/dialog/components/dialog.svelte +1 -1
  104. package/dist/bits/dialog/dialog.svelte.d.ts +1 -1
  105. package/dist/bits/dialog/dialog.svelte.js +7 -7
  106. package/dist/bits/dialog/types.d.ts +8 -8
  107. package/dist/bits/dropdown-menu/components/dropdown-menu-content-static.svelte +3 -4
  108. package/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte +3 -4
  109. package/dist/bits/label/components/label.svelte +1 -2
  110. package/dist/bits/label/label.svelte.js +1 -1
  111. package/dist/bits/label/types.d.ts +2 -2
  112. package/dist/bits/link-preview/components/link-preview-content-static.svelte +1 -2
  113. package/dist/bits/link-preview/components/link-preview-content.svelte +2 -3
  114. package/dist/bits/link-preview/components/link-preview-trigger.svelte +1 -2
  115. package/dist/bits/link-preview/components/link-preview.svelte +1 -1
  116. package/dist/bits/link-preview/link-preview.svelte.d.ts +1 -1
  117. package/dist/bits/link-preview/link-preview.svelte.js +1 -5
  118. package/dist/bits/link-preview/types.d.ts +6 -6
  119. package/dist/bits/listbox/components/listbox-content-static.svelte +3 -4
  120. package/dist/bits/listbox/components/listbox-content.svelte +3 -4
  121. package/dist/bits/listbox/components/listbox-group-heading.svelte +1 -2
  122. package/dist/bits/listbox/components/listbox-group.svelte +1 -2
  123. package/dist/bits/listbox/components/listbox-item.svelte +2 -3
  124. package/dist/bits/listbox/components/listbox-scroll-down-button.svelte +1 -2
  125. package/dist/bits/listbox/components/listbox-scroll-up-button.svelte +1 -2
  126. package/dist/bits/listbox/components/listbox-trigger.svelte +1 -2
  127. package/dist/bits/listbox/components/listbox-viewport.svelte +1 -2
  128. package/dist/bits/listbox/components/listbox.svelte +1 -1
  129. package/dist/bits/listbox/components/listbox.svelte.d.ts +1 -1
  130. package/dist/bits/listbox/listbox.svelte.d.ts +1 -1
  131. package/dist/bits/listbox/listbox.svelte.js +5 -8
  132. package/dist/bits/listbox/types.d.ts +16 -16
  133. package/dist/bits/menu/components/menu-arrow.svelte +1 -1
  134. package/dist/bits/menu/components/menu-checkbox-item.svelte +2 -3
  135. package/dist/bits/menu/components/menu-content-static.svelte +3 -4
  136. package/dist/bits/menu/components/menu-content.svelte +3 -4
  137. package/dist/bits/menu/components/menu-group-heading.svelte +1 -2
  138. package/dist/bits/menu/components/menu-group.svelte +1 -2
  139. package/dist/bits/menu/components/menu-item.svelte +2 -3
  140. package/dist/bits/menu/components/menu-radio-group.svelte +2 -3
  141. package/dist/bits/menu/components/menu-radio-item.svelte +2 -3
  142. package/dist/bits/menu/components/menu-separator.svelte +1 -2
  143. package/dist/bits/menu/components/menu-sub-content-static.svelte +3 -5
  144. package/dist/bits/menu/components/menu-sub-content.svelte +3 -5
  145. package/dist/bits/menu/components/menu-sub-trigger.svelte +1 -2
  146. package/dist/bits/menu/components/menu-sub.svelte +1 -1
  147. package/dist/bits/menu/components/menu-trigger.svelte +1 -2
  148. package/dist/bits/menu/components/menu.svelte +1 -1
  149. package/dist/bits/menu/menu.svelte.d.ts +9 -9
  150. package/dist/bits/menu/menu.svelte.js +4 -9
  151. package/dist/bits/menu/types.d.ts +18 -18
  152. package/dist/bits/menubar/components/menubar-content-static.svelte +1 -2
  153. package/dist/bits/menubar/components/menubar-content.svelte +1 -2
  154. package/dist/bits/menubar/components/menubar-trigger.svelte +1 -2
  155. package/dist/bits/menubar/components/menubar.svelte +2 -3
  156. package/dist/bits/menubar/menubar.svelte.d.ts +1 -1
  157. package/dist/bits/menubar/menubar.svelte.js +2 -4
  158. package/dist/bits/menubar/types.d.ts +3 -3
  159. package/dist/bits/navigation-menu/components/navigation-menu-content.svelte +1 -2
  160. package/dist/bits/navigation-menu/components/navigation-menu-indicator.svelte +1 -2
  161. package/dist/bits/navigation-menu/components/navigation-menu-item.svelte +1 -2
  162. package/dist/bits/navigation-menu/components/navigation-menu-link.svelte +2 -3
  163. package/dist/bits/navigation-menu/components/navigation-menu-list.svelte +1 -2
  164. package/dist/bits/navigation-menu/components/navigation-menu-trigger.svelte +1 -2
  165. package/dist/bits/navigation-menu/components/navigation-menu-viewport.svelte +1 -2
  166. package/dist/bits/navigation-menu/components/navigation-menu.svelte +2 -3
  167. package/dist/bits/navigation-menu/navigation-menu.svelte.d.ts +2 -2
  168. package/dist/bits/navigation-menu/navigation-menu.svelte.js +6 -8
  169. package/dist/bits/navigation-menu/types.d.ts +10 -10
  170. package/dist/bits/pagination/components/pagination-next-button.svelte +1 -2
  171. package/dist/bits/pagination/components/pagination-page.svelte +1 -2
  172. package/dist/bits/pagination/components/pagination-prev-button.svelte +1 -2
  173. package/dist/bits/pagination/components/pagination.svelte +2 -3
  174. package/dist/bits/pagination/components/pagination.svelte.d.ts +1 -1
  175. package/dist/bits/pagination/pagination.svelte.js +1 -1
  176. package/dist/bits/pagination/types.d.ts +5 -5
  177. package/dist/bits/pin-input/components/pin-input-cell.svelte +1 -2
  178. package/dist/bits/pin-input/components/pin-input.svelte +2 -3
  179. package/dist/bits/pin-input/pin-input.svelte.d.ts +3 -3
  180. package/dist/bits/pin-input/pin-input.svelte.js +2 -3
  181. package/dist/bits/pin-input/types.d.ts +3 -3
  182. package/dist/bits/popover/components/popover-close.svelte +1 -2
  183. package/dist/bits/popover/components/popover-content-static.svelte +2 -3
  184. package/dist/bits/popover/components/popover-content.svelte +2 -3
  185. package/dist/bits/popover/components/popover-trigger.svelte +1 -2
  186. package/dist/bits/popover/components/popover.svelte +1 -1
  187. package/dist/bits/popover/popover.svelte.d.ts +1 -1
  188. package/dist/bits/popover/popover.svelte.js +3 -3
  189. package/dist/bits/popover/types.d.ts +8 -8
  190. package/dist/bits/progress/components/progress.svelte +1 -2
  191. package/dist/bits/progress/progress.svelte.js +1 -1
  192. package/dist/bits/progress/types.d.ts +2 -2
  193. package/dist/bits/radio-group/components/radio-group-item.svelte +1 -2
  194. package/dist/bits/radio-group/components/radio-group.svelte +2 -3
  195. package/dist/bits/radio-group/radio-group.svelte.d.ts +2 -2
  196. package/dist/bits/radio-group/radio-group.svelte.js +2 -3
  197. package/dist/bits/radio-group/types.d.ts +3 -3
  198. package/dist/bits/range-calendar/components/range-calendar-cell.svelte +1 -2
  199. package/dist/bits/range-calendar/components/range-calendar-day.svelte +1 -2
  200. package/dist/bits/range-calendar/components/range-calendar.svelte +2 -3
  201. package/dist/bits/range-calendar/range-calendar.svelte.d.ts +3 -3
  202. package/dist/bits/range-calendar/range-calendar.svelte.js +1 -1
  203. package/dist/bits/range-calendar/types.d.ts +2 -2
  204. package/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte +1 -2
  205. package/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte +1 -1
  206. package/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte +1 -1
  207. package/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte +1 -1
  208. package/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte +1 -1
  209. package/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte +1 -2
  210. package/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte +1 -2
  211. package/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte +1 -2
  212. package/dist/bits/scroll-area/components/scroll-area-viewport.svelte +1 -2
  213. package/dist/bits/scroll-area/components/scroll-area.svelte +1 -2
  214. package/dist/bits/scroll-area/scroll-area.svelte.d.ts +2 -2
  215. package/dist/bits/scroll-area/scroll-area.svelte.js +4 -7
  216. package/dist/bits/scroll-area/types.d.ts +6 -6
  217. package/dist/bits/select/components/select-arrow.svelte +1 -2
  218. package/dist/bits/select/components/select-content-floating.svelte +1 -1
  219. package/dist/bits/select/components/select-content-floating.svelte.d.ts +1 -1
  220. package/dist/bits/select/components/select-content-impl.svelte +2 -2
  221. package/dist/bits/select/components/select-content-impl.svelte.d.ts +5 -5
  222. package/dist/bits/select/components/select-content-item-aligned.svelte +3 -4
  223. package/dist/bits/select/components/select-content-item-aligned.svelte.d.ts +2 -2
  224. package/dist/bits/select/components/select-group-heading.svelte +1 -2
  225. package/dist/bits/select/components/select-group.svelte +1 -2
  226. package/dist/bits/select/components/select-icon.svelte +1 -2
  227. package/dist/bits/select/components/select-item-text.svelte +1 -2
  228. package/dist/bits/select/components/select-item.svelte +1 -2
  229. package/dist/bits/select/components/select-native.svelte +1 -1
  230. package/dist/bits/select/components/select-scroll-down-button-mounted.svelte.d.ts +2 -2
  231. package/dist/bits/select/components/select-scroll-down-button.svelte +1 -2
  232. package/dist/bits/select/components/select-scroll-up-button-mounted.svelte.d.ts +2 -2
  233. package/dist/bits/select/components/select-scroll-up-button.svelte +1 -2
  234. package/dist/bits/select/components/select-separator.svelte +1 -2
  235. package/dist/bits/select/components/select-trigger.svelte +1 -2
  236. package/dist/bits/select/components/select-value.svelte +1 -1
  237. package/dist/bits/select/components/select-viewport.svelte +1 -2
  238. package/dist/bits/select/components/select.svelte +1 -1
  239. package/dist/bits/select/components/select.svelte.d.ts +1 -1
  240. package/dist/bits/select/select.svelte.d.ts +4 -4
  241. package/dist/bits/select/select.svelte.js +5 -8
  242. package/dist/bits/select/types.d.ts +14 -14
  243. package/dist/bits/separator/components/separator.svelte +1 -2
  244. package/dist/bits/separator/separator.svelte.js +1 -1
  245. package/dist/bits/separator/types.d.ts +2 -2
  246. package/dist/bits/slider/components/slider-range.svelte +1 -2
  247. package/dist/bits/slider/components/slider-thumb.svelte +1 -2
  248. package/dist/bits/slider/components/slider-tick.svelte +1 -2
  249. package/dist/bits/slider/components/slider.svelte +2 -3
  250. package/dist/bits/slider/slider.svelte.d.ts +2 -2
  251. package/dist/bits/slider/slider.svelte.js +1 -2
  252. package/dist/bits/slider/types.d.ts +5 -5
  253. package/dist/bits/switch/components/switch-thumb.svelte +1 -2
  254. package/dist/bits/switch/components/switch.svelte +2 -3
  255. package/dist/bits/switch/switch.svelte.d.ts +2 -2
  256. package/dist/bits/switch/switch.svelte.js +1 -2
  257. package/dist/bits/switch/types.d.ts +3 -3
  258. package/dist/bits/tabs/components/tabs-content.svelte +1 -2
  259. package/dist/bits/tabs/components/tabs-list.svelte +1 -2
  260. package/dist/bits/tabs/components/tabs-trigger.svelte +1 -2
  261. package/dist/bits/tabs/components/tabs.svelte +2 -3
  262. package/dist/bits/tabs/tabs.svelte.d.ts +1 -1
  263. package/dist/bits/tabs/tabs.svelte.js +1 -1
  264. package/dist/bits/tabs/types.d.ts +5 -5
  265. package/dist/bits/toggle/components/toggle.svelte +2 -3
  266. package/dist/bits/toggle/toggle.svelte.d.ts +1 -1
  267. package/dist/bits/toggle/toggle.svelte.js +1 -1
  268. package/dist/bits/toggle/types.d.ts +2 -2
  269. package/dist/bits/toggle-group/components/toggle-group-item.svelte +1 -2
  270. package/dist/bits/toggle-group/components/toggle-group.svelte +2 -2
  271. package/dist/bits/toggle-group/toggle-group.svelte.d.ts +3 -3
  272. package/dist/bits/toggle-group/toggle-group.svelte.js +1 -1
  273. package/dist/bits/toggle-group/types.d.ts +5 -5
  274. package/dist/bits/toolbar/components/toolbar-button.svelte +1 -2
  275. package/dist/bits/toolbar/components/toolbar-group-item.svelte +1 -2
  276. package/dist/bits/toolbar/components/toolbar-group.svelte +2 -2
  277. package/dist/bits/toolbar/components/toolbar-link.svelte +1 -2
  278. package/dist/bits/toolbar/components/toolbar.svelte +1 -2
  279. package/dist/bits/toolbar/toolbar.svelte.d.ts +2 -2
  280. package/dist/bits/toolbar/toolbar.svelte.js +1 -2
  281. package/dist/bits/toolbar/types.d.ts +5 -5
  282. package/dist/bits/tooltip/components/tooltip-content-static.svelte +2 -3
  283. package/dist/bits/tooltip/components/tooltip-content.svelte +2 -3
  284. package/dist/bits/tooltip/components/tooltip-trigger.svelte +1 -2
  285. package/dist/bits/tooltip/components/tooltip.svelte +1 -1
  286. package/dist/bits/tooltip/tooltip.svelte.js +2 -3
  287. package/dist/bits/tooltip/types.d.ts +7 -7
  288. package/dist/bits/utilities/arrow/arrow.svelte +1 -1
  289. package/dist/bits/utilities/arrow/types.d.ts +2 -2
  290. package/dist/bits/utilities/dismissible-layer/useDismissibleLayer.svelte.js +2 -7
  291. package/dist/bits/utilities/escape-layer/useEscapeLayer.svelte.js +1 -1
  292. package/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte +1 -2
  293. package/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte +1 -2
  294. package/dist/bits/utilities/floating-layer/useFloatingLayer.svelte.d.ts +10 -10
  295. package/dist/bits/utilities/floating-layer/useFloatingLayer.svelte.js +4 -7
  296. package/dist/bits/utilities/focus-scope/focus-scope.svelte +1 -1
  297. package/dist/bits/utilities/focus-scope/useFocusScope.svelte.js +2 -5
  298. package/dist/bits/utilities/mounted.svelte +1 -1
  299. package/dist/bits/utilities/popper-layer/popper-layer.svelte +1 -1
  300. package/dist/bits/utilities/presence-layer/usePresence.svelte.d.ts +1 -1
  301. package/dist/bits/utilities/presence-layer/usePresence.svelte.js +1 -1
  302. package/dist/bits/utilities/text-selection-layer/useTextSelectionLayer.svelte.js +2 -5
  303. package/dist/bits/utilities/visually-hidden/types.d.ts +2 -2
  304. package/dist/bits/utilities/visually-hidden/visually-hidden.svelte +1 -1
  305. package/dist/internal/create-event-hook.svelte.js +1 -1
  306. package/dist/internal/date-time/announcer.js +2 -2
  307. package/dist/internal/date-time/calendar-helpers.svelte.d.ts +1 -1
  308. package/dist/internal/date-time/calendar-helpers.svelte.js +1 -2
  309. package/dist/internal/date-time/field/helpers.js +1 -1
  310. package/dist/internal/types.d.ts +28 -0
  311. package/dist/internal/use-body-scroll-lock.svelte.js +1 -2
  312. package/dist/internal/use-grace-area.svelte.d.ts +1 -1
  313. package/dist/internal/use-grace-area.svelte.js +1 -1
  314. package/dist/internal/use-roving-focus.svelte.d.ts +1 -1
  315. package/dist/internal/use-roving-focus.svelte.js +7 -1
  316. package/dist/internal/use-size.svelte.d.ts +1 -1
  317. package/dist/internal/use-size.svelte.js +1 -1
  318. package/dist/internal/use-timeout-fn.svelte.js +1 -2
  319. package/dist/shared/attributes.d.ts +28 -28
  320. package/dist/shared/index.d.ts +1 -1
  321. package/dist/shared/index.js +1 -1
  322. package/package.json +2 -4
  323. package/dist/bits/listbox/components/listbox-label.svelte +0 -33
  324. package/dist/bits/listbox/components/listbox-label.svelte.d.ts +0 -18
  325. package/dist/internal/after-sleep.d.ts +0 -4
  326. package/dist/internal/after-sleep.js +0 -6
  327. package/dist/internal/after-tick.d.ts +0 -5
  328. package/dist/internal/after-tick.js +0 -7
  329. package/dist/internal/callbacks.d.ts +0 -11
  330. package/dist/internal/callbacks.js +0 -21
  331. package/dist/internal/compose-handlers.d.ts +0 -8
  332. package/dist/internal/compose-handlers.js +0 -21
  333. package/dist/internal/css-to-style-obj.d.ts +0 -2
  334. package/dist/internal/css-to-style-obj.js +0 -23
  335. package/dist/internal/execute-callbacks.d.ts +0 -7
  336. package/dist/internal/execute-callbacks.js +0 -15
  337. package/dist/internal/merge-props.d.ts +0 -22
  338. package/dist/internal/merge-props.js +0 -98
  339. package/dist/internal/on-destroy-effect.svelte.d.ts +0 -1
  340. package/dist/internal/on-destroy-effect.svelte.js +0 -7
  341. package/dist/internal/strings.d.ts +0 -3
  342. package/dist/internal/strings.js +0 -70
  343. package/dist/internal/style-to-css.d.ts +0 -1
  344. package/dist/internal/style-to-css.js +0 -23
  345. package/dist/internal/style.d.ts +0 -4
  346. package/dist/internal/style.js +0 -17
  347. package/dist/internal/use-ref-by-id.svelte.d.ts +0 -28
  348. package/dist/internal/use-ref-by-id.svelte.js +0 -27
@@ -1,8 +1,7 @@
1
- import { useRefById } from "../../internal/use-ref-by-id.svelte.js";
1
+ import { srOnlyStyles, styleToString, useRefById } from "svelte-toolbelt";
2
2
  import { getAriaChecked, getAriaRequired, getDataDisabled } from "../../internal/attrs.js";
3
3
  import { kbd } from "../../internal/kbd.js";
4
4
  import { createContext } from "../../internal/create-context.js";
5
- import { srOnlyStyles, styleToString } from "../../internal/style.js";
6
5
  const CHECKBOX_ROOT_ATTR = "data-checkbox-root";
7
6
  class CheckboxRootState {
8
7
  #id;
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CheckboxRootProps } from "../types.js";
4
4
  import { useCheckboxRoot } from "../checkbox.svelte.js";
5
5
  import CheckboxInput from "./checkbox-input.svelte";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
  import { useId } from "../../../internal/use-id.js";
8
7
 
9
8
  let {
@@ -1,5 +1,5 @@
1
1
  import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
2
- import type { PrimitiveButtonAttributes } from "../../shared/attributes.js";
2
+ import type { BitsPrimitiveButtonAttributes } from "../../shared/attributes.js";
3
3
  export type CheckboxRootSnippetProps = {
4
4
  checked: boolean | "indeterminate";
5
5
  };
@@ -52,4 +52,4 @@ export type CheckboxRootPropsWithoutHTML = WithChild<{
52
52
  */
53
53
  controlledChecked?: boolean;
54
54
  }, CheckboxRootSnippetProps>;
55
- export type CheckboxRootProps = CheckboxRootPropsWithoutHTML & Without<PrimitiveButtonAttributes, CheckboxRootPropsWithoutHTML>;
55
+ export type CheckboxRootProps = CheckboxRootPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, CheckboxRootPropsWithoutHTML>;
@@ -60,7 +60,7 @@ declare class CollapsibleTriggerState {
60
60
  readonly type: "button";
61
61
  readonly disabled: boolean;
62
62
  readonly "aria-controls": string | undefined;
63
- readonly "aria-expanded": "false" | "true";
63
+ readonly "aria-expanded": "true" | "false";
64
64
  readonly "data-state": "open" | "closed";
65
65
  readonly "data-disabled": "" | undefined;
66
66
  readonly "data-collapsible-trigger": "";
@@ -1,5 +1,4 @@
1
- import { useRefById } from "../../internal/use-ref-by-id.svelte.js";
2
- import { afterTick } from "../../internal/after-tick.js";
1
+ import { afterTick, useRefById } from "svelte-toolbelt";
3
2
  import { getAriaExpanded, getDataDisabled, getDataOpenClosed } from "../../internal/attrs.js";
4
3
  import { createContext } from "../../internal/create-context.js";
5
4
  const COLLAPSIBLE_ROOT_ATTR = "data-collapsible-root";
@@ -51,7 +50,7 @@ class CollapsibleContentState {
51
50
  useRefById({
52
51
  id: this.#id,
53
52
  ref: this.#ref,
54
- condition: () => this.present,
53
+ deps: () => this.present,
55
54
  onRefChange: (node) => {
56
55
  this.root.contentNode = node;
57
56
  this.root.contentId = node?.id;
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import { useCollapsibleContent } from "../collapsible.svelte.js";
4
4
  import type { CollapsibleContentProps } from "../types.js";
5
5
  import { PresenceLayer } from "../../utilities/presence-layer/index.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
  import { useId } from "../../../internal/use-id.js";
8
7
 
9
8
  let {
@@ -37,7 +36,7 @@
37
36
  })}
38
37
  {:else}
39
38
  <div {...mergedProps}>
40
- {@render children?.(contentState.snippetProps)}
39
+ {@render children?.()}
41
40
  </div>
42
41
  {/if}
43
42
  {/snippet}
@@ -13,14 +13,14 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
13
13
  }
14
14
  declare const CollapsibleContent: $$__sveltets_2_IsomorphicComponent<Omit<{
15
15
  forceMount?: boolean;
16
- }, "child" | "children"> & {
16
+ }, "children" | "child"> & {
17
17
  child?: import("svelte").Snippet<[import("../types.js").CollapsibleContentSnippetProps & {
18
18
  props: Record<string, unknown>;
19
19
  }]> | undefined;
20
- children?: import("svelte").Snippet<[import("../types.js").CollapsibleContentSnippetProps]> | undefined;
20
+ children?: import("svelte").Snippet;
21
21
  style?: import("../../../index.js").StyleProperties | string | null | undefined;
22
22
  ref?: HTMLElement | null | undefined;
23
- } & import("../../../index.js").Without<import("../../../index.js").PrimitiveDivAttributes, import("../types.js").CollapsibleContentPropsWithoutHTML> & {
23
+ } & import("../../../index.js").Without<import("../../../index.js").BitsPrimitiveDivAttributes, import("../types.js").CollapsibleContentPropsWithoutHTML> & {
24
24
  forceMount?: boolean;
25
25
  }, {
26
26
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,7 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CollapsibleTriggerProps } from "../types.js";
4
4
  import { useCollapsibleTrigger } from "../collapsible.svelte.js";
5
- import { mergeProps } from "../../../internal/merge-props.js";
6
5
  import { useId } from "../../../internal/use-id.js";
7
6
 
8
7
  let {
@@ -1,10 +1,9 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CollapsibleRootProps } from "../types.js";
4
4
  import { useCollapsibleRoot } from "../collapsible.svelte.js";
5
- import { mergeProps } from "../../../internal/merge-props.js";
6
5
  import { useId } from "../../../internal/use-id.js";
7
- import { noop } from "../../../internal/callbacks.js";
6
+ import { noop } from "../../../internal/noop.js";
8
7
 
9
8
  let {
10
9
  children,
@@ -1,5 +1,5 @@
1
- import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
2
- import type { PrimitiveButtonAttributes, PrimitiveDivAttributes } from "../../shared/attributes.js";
1
+ import type { OnChangeFn, WithChild, WithChildNoChildrenSnippetProps, Without } from "../../internal/types.js";
2
+ import type { BitsPrimitiveButtonAttributes, BitsPrimitiveDivAttributes } from "../../shared/attributes.js";
3
3
  export type CollapsibleRootPropsWithoutHTML = WithChild<{
4
4
  /**
5
5
  * Whether the collapsible is disabled.
@@ -26,11 +26,11 @@ export type CollapsibleRootPropsWithoutHTML = WithChild<{
26
26
  */
27
27
  controlledOpen?: boolean;
28
28
  }>;
29
- export type CollapsibleRootProps = CollapsibleRootPropsWithoutHTML & Without<PrimitiveDivAttributes, CollapsibleRootPropsWithoutHTML>;
29
+ export type CollapsibleRootProps = CollapsibleRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CollapsibleRootPropsWithoutHTML>;
30
30
  export type CollapsibleContentSnippetProps = {
31
31
  open: boolean;
32
32
  };
33
- export type CollapsibleContentPropsWithoutHTML = WithChild<{
33
+ export type CollapsibleContentPropsWithoutHTML = WithChildNoChildrenSnippetProps<{
34
34
  /**
35
35
  * Whether to force mount the content to the DOM.
36
36
  *
@@ -38,6 +38,6 @@ export type CollapsibleContentPropsWithoutHTML = WithChild<{
38
38
  */
39
39
  forceMount?: boolean;
40
40
  }, CollapsibleContentSnippetProps>;
41
- export type CollapsibleContentProps = CollapsibleContentPropsWithoutHTML & Without<PrimitiveDivAttributes, CollapsibleContentPropsWithoutHTML>;
41
+ export type CollapsibleContentProps = CollapsibleContentPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CollapsibleContentPropsWithoutHTML>;
42
42
  export type CollapsibleTriggerPropsWithoutHTML = WithChild;
43
- export type CollapsibleTriggerProps = CollapsibleTriggerPropsWithoutHTML & Without<PrimitiveButtonAttributes, CollapsibleTriggerPropsWithoutHTML>;
43
+ export type CollapsibleTriggerProps = CollapsibleTriggerPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, CollapsibleTriggerPropsWithoutHTML>;
@@ -1,8 +1,7 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { ComboboxInputProps } from "../types.js";
4
4
  import { useId } from "../../../internal/use-id.js";
5
- import { mergeProps } from "../../../internal/merge-props.js";
6
5
  import { FloatingLayer } from "../../utilities/floating-layer/index.js";
7
6
  import { useListboxInput } from "../../listbox/listbox.svelte.js";
8
7
 
@@ -1,8 +1,7 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { ComboboxTriggerProps } from "../types.js";
4
4
  import { useId } from "../../../internal/use-id.js";
5
- import { mergeProps } from "../../../internal/merge-props.js";
6
5
  import { useListboxComboTrigger } from "../../listbox/listbox.svelte.js";
7
6
 
8
7
  let {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { type WritableBox, box } from "svelte-toolbelt";
3
3
  import type { ComboboxRootProps } from "../types.js";
4
- import { noop } from "../../../internal/callbacks.js";
4
+ import { noop } from "../../../internal/noop.js";
5
5
  import FloatingLayer from "../../utilities/floating-layer/components/floating-layer.svelte";
6
6
  import { useListboxRoot } from "../../listbox/listbox.svelte.js";
7
7
  import ListboxHiddenInput from "../../listbox/components/listbox-hidden-input.svelte";
@@ -13,6 +13,6 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
13
13
  }
14
14
  declare const Combobox: $$__sveltets_2_IsomorphicComponent<import("../types.js").ComboboxRootPropsWithoutHTML, {
15
15
  [evt: string]: CustomEvent<any>;
16
- }, {}, {}, "open" | "value">;
16
+ }, {}, {}, "value" | "open">;
17
17
  type Combobox = InstanceType<typeof Combobox>;
18
18
  export default Combobox;
@@ -1,4 +1,4 @@
1
- import type { PrimitiveInputAttributes } from "../../shared/attributes.js";
1
+ import type { BitsPrimitiveInputAttributes } from "../../shared/attributes.js";
2
2
  import type { WithChild, Without } from "../../internal/types.js";
3
3
  export type { ListboxBaseRootPropsWithoutHTML as ComboboxBaseRootPropsWithoutHTML, ListboxContentProps as ComboboxContentProps, ListboxContentPropsWithoutHTML as ComboboxContentPropsWithoutHTML, ListboxContentStaticProps as ComboboxContentStaticProps, ListboxContentStaticPropsWithoutHTML as ComboboxContentStaticPropsWithoutHTML, ListboxItemProps as ComboboxItemProps, ListboxItemPropsWithoutHTML as ComboboxItemPropsWithoutHTML, ListboxItemSnippetProps as ComboboxItemSnippetProps, ListboxMultipleRootProps as ComboboxMultipleRootProps, ListboxMultipleRootPropsWithoutHTML as ComboboxMultipleRootPropsWithoutHTML, ListboxRootProps as ComboboxRootProps, ListboxRootPropsWithoutHTML as ComboboxRootPropsWithoutHTML, ListboxSingleRootProps as ComboboxSingleRootProps, ListboxSingleRootPropsWithoutHTML as ComboboxSingleRootPropsWithoutHTML, ListboxTriggerProps as ComboboxTriggerProps, ListboxTriggerPropsWithoutHTML as ComboboxTriggerPropsWithoutHTML, ListboxGroupPropsWithoutHTML as ComboboxGroupPropsWithoutHTML, ListboxGroupProps as ComboboxGroupProps, ListboxGroupHeadingPropsWithoutHTML as ComboboxGroupHeadingPropsWithoutHTML, ListboxGroupHeadingProps as ComboboxGroupHeadingProps, ListboxViewportPropsWithoutHTML as ComboboxViewportPropsWithoutHTML, ListboxViewportProps as ComboboxViewportProps, ListboxScrollDownButtonProps as ComboboxScrollDownButtonProps, ListboxScrollDownButtonPropsWithoutHTML as ComboboxScrollDownButtonPropsWithoutHTML, ListboxScrollUpButtonProps as ComboboxScrollUpButtonProps, ListboxScrollUpButtonPropsWithoutHTML as ComboboxScrollUpButtonPropsWithoutHTML, ListboxArrowProps as ComboboxArrowProps, ListboxArrowPropsWithoutHTML as ComboboxArrowPropsWithoutHTML, ListboxPortalProps as ComboboxPortalProps, ListboxPortalPropsWithoutHTML as ComboboxPortalPropsWithoutHTML, } from "../listbox/types.js";
4
4
  export type ComboboxInputPropsWithoutHTML = WithChild<{
@@ -8,4 +8,4 @@ export type ComboboxInputPropsWithoutHTML = WithChild<{
8
8
  */
9
9
  defaultValue?: string;
10
10
  }>;
11
- export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & Without<Omit<PrimitiveInputAttributes, "value">, ComboboxInputPropsWithoutHTML>;
11
+ export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & Without<Omit<BitsPrimitiveInputAttributes, "value">, ComboboxInputPropsWithoutHTML>;
@@ -122,7 +122,7 @@ declare class CommandInputState {
122
122
  readonly spellcheck: false;
123
123
  readonly "aria-autocomplete": "list";
124
124
  readonly role: "combobox";
125
- readonly "aria-expanded": "false" | "true";
125
+ readonly "aria-expanded": "true" | "false";
126
126
  readonly "aria-controls": string | undefined;
127
127
  readonly "aria-labelledby": string | undefined;
128
128
  readonly "aria-activedescendant": string | undefined;
@@ -147,8 +147,8 @@ declare class CommandItemState {
147
147
  constructor(props: CommandItemStateProps, root: CommandRootState);
148
148
  props: {
149
149
  readonly id: string;
150
- readonly "aria-disabled": "false" | "true";
151
- readonly "aria-selected": "false" | "true";
150
+ readonly "aria-disabled": "true" | "false";
151
+ readonly "aria-selected": "true" | "false";
152
152
  readonly "data-disabled": "" | undefined;
153
153
  readonly "data-selected": "" | undefined;
154
154
  readonly "data-command-item": "";
@@ -211,7 +211,7 @@ declare class CommandLabelState {
211
211
  readonly id: string;
212
212
  readonly "data-command-input-label": "";
213
213
  readonly for: string | undefined;
214
- readonly style: import("../../index.js").StyleProperties;
214
+ readonly style: import("svelte-toolbelt").StyleProperties;
215
215
  };
216
216
  }
217
217
  type CommandViewportStateProps = WithRefProps;
@@ -1,14 +1,11 @@
1
1
  import { untrack } from "svelte";
2
+ import { afterSleep, afterTick, srOnlyStyles, useRefById } from "svelte-toolbelt";
2
3
  import { findNextSibling, findPreviousSibling } from "./utils.js";
3
4
  import { commandScore } from "./command-score.js";
4
- import { useRefById } from "../../internal/use-ref-by-id.svelte.js";
5
5
  import { createContext } from "../../internal/create-context.js";
6
- import { afterSleep } from "../../internal/after-sleep.js";
7
6
  import { kbd } from "../../internal/kbd.js";
8
7
  import { getAriaDisabled, getAriaExpanded, getAriaSelected, getDataDisabled, getDataSelected, } from "../../internal/attrs.js";
9
8
  import { getFirstNonCommentChild } from "../../internal/dom.js";
10
- import { srOnlyStyles } from "../../internal/style.js";
11
- import { afterTick } from "../../internal/after-tick.js";
12
9
  const ROOT_ATTR = "data-command-root";
13
10
  const LIST_ATTR = "data-command-list";
14
11
  const INPUT_ATTR = "data-command-input";
@@ -452,7 +449,7 @@ class CommandEmptyState {
452
449
  useRefById({
453
450
  id: this.#id,
454
451
  ref: this.#ref,
455
- condition: () => this.shouldRender,
452
+ deps: () => this.shouldRender,
456
453
  });
457
454
  }
458
455
  props = $derived.by(() => ({
@@ -488,7 +485,7 @@ class CommandGroupContainerState {
488
485
  useRefById({
489
486
  id: this.id,
490
487
  ref: this.#ref,
491
- condition: () => this.shouldRender,
488
+ deps: () => this.shouldRender,
492
489
  });
493
490
  $effect(() => {
494
491
  return this.#root.registerGroup(this.id.current);
@@ -658,7 +655,7 @@ class CommandItemState {
658
655
  useRefById({
659
656
  id: this.id,
660
657
  ref: this.#ref,
661
- condition: () => Boolean(this.root.commandState.search),
658
+ deps: () => Boolean(this.root.commandState.search),
662
659
  });
663
660
  $effect(() => {
664
661
  this.id.current;
@@ -753,7 +750,7 @@ class CommandSeparatorState {
753
750
  useRefById({
754
751
  id: this.#id,
755
752
  ref: this.#ref,
756
- condition: () => this.shouldRender,
753
+ deps: () => this.shouldRender,
757
754
  });
758
755
  }
759
756
  props = $derived.by(() => ({
@@ -2,7 +2,7 @@
2
2
  import { box } from "svelte-toolbelt";
3
3
  import { useCommandLabel } from "../command.svelte.js";
4
4
  import {
5
- type PrimitiveLabelAttributes,
5
+ type BitsPrimitiveLabelAttributes,
6
6
  type WithElementRef,
7
7
  mergeProps,
8
8
  useId,
@@ -14,7 +14,7 @@
14
14
  ref = $bindable(null),
15
15
  children,
16
16
  ...restProps
17
- }: WithChildren<WithElementRef<PrimitiveLabelAttributes>> = $props();
17
+ }: WithChildren<WithElementRef<BitsPrimitiveLabelAttributes>> = $props();
18
18
 
19
19
  const labelState = useCommandLabel({
20
20
  id: box.with(() => id),
@@ -1,4 +1,4 @@
1
- import { type PrimitiveLabelAttributes, type WithElementRef } from "../../../shared/index.js";
1
+ import { type BitsPrimitiveLabelAttributes, type WithElementRef } from "../../../shared/index.js";
2
2
  import type { WithChildren } from "../../../internal/types.js";
3
3
  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> {
4
4
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -13,7 +13,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
13
13
  };
14
14
  z_$$bindings?: Bindings;
15
15
  }
16
- declare const CommandLabel: $$__sveltets_2_IsomorphicComponent<WithChildren<WithElementRef<PrimitiveLabelAttributes>>, {
16
+ declare const CommandLabel: $$__sveltets_2_IsomorphicComponent<WithChildren<WithElementRef<BitsPrimitiveLabelAttributes>>, {
17
17
  [evt: string]: CustomEvent<any>;
18
18
  }, {}, {}, "ref">;
19
19
  type CommandLabel = InstanceType<typeof CommandLabel>;
@@ -1,8 +1,7 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandEmptyProps } from "../types.js";
4
4
  import { useCommandEmpty } from "../command.svelte.js";
5
- import { mergeProps } from "../../../internal/merge-props.js";
6
5
  import { useId } from "../../../internal/use-id.js";
7
6
 
8
7
  let {
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import { useCommandGroupHeading } from "../command.svelte.js";
4
4
  import type { CommandGroupHeadingProps } from "../types.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
 
8
7
  let {
9
8
  id = useId(),
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandGroupItemsProps } from "../types.js";
4
4
  import { useCommandGroupItems } from "../command.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
 
8
7
  let {
9
8
  id = useId(),
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandGroupProps } from "../types.js";
4
4
  import { useCommandGroupContainer } from "../command.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
 
8
7
  let {
9
8
  id = useId(),
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandInputProps } from "../types.js";
4
4
  import { useCommandInput } from "../command.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
 
8
7
  let {
9
8
  value = $bindable(""),
@@ -1,10 +1,9 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandItemProps } from "../types.js";
4
4
  import { getCommandGroupContainerContext, useCommandItem } from "../command.svelte.js";
5
- import { noop } from "../../../internal/callbacks.js";
5
+ import { noop } from "../../../internal/noop.js";
6
6
  import { useId } from "../../../internal/use-id.js";
7
- import { mergeProps } from "../../../internal/merge-props.js";
8
7
 
9
8
  let {
10
9
  id = useId(),
@@ -1,10 +1,9 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandLinkItemProps } from "../types.js";
4
4
  import { getCommandGroupContainerContext, useCommandItem } from "../command.svelte.js";
5
- import { noop } from "../../../internal/callbacks.js";
5
+ import { noop } from "../../../internal/noop.js";
6
6
  import { useId } from "../../../internal/use-id.js";
7
- import { mergeProps } from "../../../internal/merge-props.js";
8
7
 
9
8
  let {
10
9
  id = useId(),
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandListProps } from "../types.js";
4
4
  import { useCommandList } from "../command.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
 
8
7
  let {
9
8
  id = useId(),
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandLoadingProps } from "../types.js";
4
4
  import { useCommandLoading } from "../command.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
 
8
7
  let {
9
8
  progress = 0,
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { CommandSeparatorProps } from "../types.js";
4
4
  import { useCommandSeparator } from "../command.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
 
8
7
  let {
9
8
  id = useId(),
@@ -1,11 +1,10 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import { defaultFilter, useCommandRoot } from "../command.svelte.js";
4
4
  import type { CommandRootProps } from "../types.js";
5
5
  import CommandLabel from "./_command-label.svelte";
6
- import { noop } from "../../../internal/callbacks.js";
6
+ import { noop } from "../../../internal/noop.js";
7
7
  import { useId } from "../../../internal/use-id.js";
8
- import { mergeProps } from "../../../internal/merge-props.js";
9
8
 
10
9
  let {
11
10
  id = useId(),
@@ -1,4 +1,4 @@
1
- import type { PrimitiveAnchorAttributes, PrimitiveDivAttributes, PrimitiveInputAttributes, WithChild, Without } from "../../shared/index.js";
1
+ import type { BitsPrimitiveAnchorAttributes, BitsPrimitiveDivAttributes, BitsPrimitiveInputAttributes, WithChild, Without } from "../../shared/index.js";
2
2
  export type CommandState = {
3
3
  /** The value of the search query */
4
4
  search: string;
@@ -68,7 +68,7 @@ export type CommandRootPropsWithoutHTML = WithChild<{
68
68
  */
69
69
  controlledValue?: boolean;
70
70
  }>;
71
- export type CommandRootProps = CommandRootPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandRootPropsWithoutHTML>;
71
+ export type CommandRootProps = CommandRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandRootPropsWithoutHTML>;
72
72
  export type CommandEmptyPropsWithoutHTML = WithChild<{
73
73
  /**
74
74
  * Whether to force mount the group container regardless of
@@ -76,7 +76,7 @@ export type CommandEmptyPropsWithoutHTML = WithChild<{
76
76
  */
77
77
  forceMount?: boolean;
78
78
  }>;
79
- export type CommandEmptyProps = CommandEmptyPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandEmptyPropsWithoutHTML>;
79
+ export type CommandEmptyProps = CommandEmptyPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandEmptyPropsWithoutHTML>;
80
80
  export type CommandGroupPropsWithoutHTML = WithChild<{
81
81
  /**
82
82
  * A unique value for the group.
@@ -88,11 +88,11 @@ export type CommandGroupPropsWithoutHTML = WithChild<{
88
88
  */
89
89
  forceMount?: boolean;
90
90
  }>;
91
- export type CommandGroupProps = CommandGroupPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandGroupPropsWithoutHTML>;
91
+ export type CommandGroupProps = CommandGroupPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandGroupPropsWithoutHTML>;
92
92
  export type CommandGroupHeadingPropsWithoutHTML = WithChild;
93
- export type CommandGroupHeadingProps = CommandGroupHeadingPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandGroupHeadingPropsWithoutHTML>;
93
+ export type CommandGroupHeadingProps = CommandGroupHeadingPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandGroupHeadingPropsWithoutHTML>;
94
94
  export type CommandGroupItemsPropsWithoutHTML = WithChild;
95
- export type CommandGroupItemsProps = CommandGroupItemsPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandGroupItemsPropsWithoutHTML>;
95
+ export type CommandGroupItemsProps = CommandGroupItemsPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandGroupItemsPropsWithoutHTML>;
96
96
  export type CommandItemPropsWithoutHTML = WithChild<{
97
97
  /**
98
98
  * Whether the item is disabled.
@@ -121,18 +121,18 @@ export type CommandItemPropsWithoutHTML = WithChild<{
121
121
  */
122
122
  forceMount?: boolean;
123
123
  }>;
124
- export type CommandItemProps = CommandItemPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandItemPropsWithoutHTML>;
124
+ export type CommandItemProps = CommandItemPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandItemPropsWithoutHTML>;
125
125
  export type CommandLinkItemPropsWithoutHTML = CommandItemPropsWithoutHTML;
126
- export type CommandLinkItemProps = CommandLinkItemPropsWithoutHTML & Without<PrimitiveAnchorAttributes, CommandLinkItemPropsWithoutHTML>;
126
+ export type CommandLinkItemProps = CommandLinkItemPropsWithoutHTML & Without<BitsPrimitiveAnchorAttributes, CommandLinkItemPropsWithoutHTML>;
127
127
  export type CommandInputPropsWithoutHTML = WithChild<{
128
128
  /**
129
129
  * The value of the input element, used to search/filter items.
130
130
  */
131
131
  value?: string;
132
132
  }>;
133
- export type CommandInputProps = CommandInputPropsWithoutHTML & Without<PrimitiveInputAttributes, CommandInputPropsWithoutHTML>;
133
+ export type CommandInputProps = CommandInputPropsWithoutHTML & Without<BitsPrimitiveInputAttributes, CommandInputPropsWithoutHTML>;
134
134
  export type CommandListPropsWithoutHTML = WithChild;
135
- export type CommandListProps = CommandListPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandListPropsWithoutHTML>;
135
+ export type CommandListProps = CommandListPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandListPropsWithoutHTML>;
136
136
  export type CommandSeparatorPropsWithoutHTML = WithChild<{
137
137
  /**
138
138
  * Whether to force mount the separator container regardless of
@@ -140,7 +140,7 @@ export type CommandSeparatorPropsWithoutHTML = WithChild<{
140
140
  */
141
141
  forceMount?: boolean;
142
142
  }>;
143
- export type CommandSeparatorProps = CommandSeparatorPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandSeparatorPropsWithoutHTML>;
143
+ export type CommandSeparatorProps = CommandSeparatorPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandSeparatorPropsWithoutHTML>;
144
144
  export type CommandLoadingPropsWithoutHTML = WithChild<{
145
145
  /**
146
146
  * The current progress of the loading state.
@@ -148,6 +148,6 @@ export type CommandLoadingPropsWithoutHTML = WithChild<{
148
148
  */
149
149
  progress?: number;
150
150
  }>;
151
- export type CommandLoadingProps = CommandLoadingPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandLoadingPropsWithoutHTML>;
151
+ export type CommandLoadingProps = CommandLoadingPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandLoadingPropsWithoutHTML>;
152
152
  export type CommandViewportPropsWithoutHTML = WithChild;
153
- export type CommandViewportProps = CommandViewportPropsWithoutHTML & Without<PrimitiveDivAttributes, CommandViewportPropsWithoutHTML>;
153
+ export type CommandViewportProps = CommandViewportPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandViewportPropsWithoutHTML>;
@@ -1,10 +1,9 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { ContextMenuContentStaticProps } from "../types.js";
4
4
  import { CONTEXT_MENU_TRIGGER_ATTR, useMenuContent } from "../../menu/menu.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
- import { noop } from "../../../internal/callbacks.js";
6
+ import { noop } from "../../../internal/noop.js";
8
7
  import PopperLayer from "../../utilities/popper-layer/popper-layer.svelte";
9
8
  import { isElement } from "../../../internal/is.js";
10
9
  import type { InteractOutsideEvent } from "../../utilities/dismissible-layer/types.js";
@@ -85,7 +84,7 @@
85
84
  {@render child({ props, ...contentState.snippetProps })}
86
85
  {:else}
87
86
  <div {...props}>
88
- {@render children?.(contentState.snippetProps)}
87
+ {@render children?.()}
89
88
  </div>
90
89
  {/if}
91
90
  <Mounted bind:isMounted />
@@ -1,10 +1,9 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { ContextMenuContentProps } from "../types.js";
4
4
  import { CONTEXT_MENU_TRIGGER_ATTR, useMenuContent } from "../../menu/menu.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
- import { noop } from "../../../internal/callbacks.js";
6
+ import { noop } from "../../../internal/noop.js";
8
7
  import PopperLayer from "../../utilities/popper-layer/popper-layer.svelte";
9
8
  import { isElement } from "../../../internal/is.js";
10
9
  import type { InteractOutsideEvent } from "../../utilities/dismissible-layer/types.js";
@@ -92,7 +91,7 @@
92
91
  {@render child({ props: finalProps, ...contentState.snippetProps })}
93
92
  {:else}
94
93
  <div {...finalProps}>
95
- {@render children?.(contentState.snippetProps)}
94
+ {@render children?.()}
96
95
  </div>
97
96
  {/if}
98
97
  <Mounted bind:isMounted />
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
3
  import type { ContextMenuTriggerProps } from "../types.js";
4
4
  import { useMenuContextTrigger } from "../../menu/menu.svelte.js";
5
5
  import { useId } from "../../../internal/use-id.js";
6
- import { mergeProps } from "../../../internal/merge-props.js";
7
6
  import { FloatingLayer } from "../../utilities/floating-layer/index.js";
8
7
 
9
8
  let {
@@ -2,7 +2,7 @@
2
2
  import { box } from "svelte-toolbelt";
3
3
  import type { ContextMenuRootProps } from "../types.js";
4
4
  import FloatingLayer from "../../utilities/floating-layer/components/floating-layer.svelte";
5
- import { noop } from "../../../internal/callbacks.js";
5
+ import { noop } from "../../../internal/noop.js";
6
6
  import { useMenuMenu, useMenuRoot } from "../../menu/menu.svelte.js";
7
7
 
8
8
  let {