@human-kit/ui 1.0.0-beta.1 → 1.0.0-beta.11

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 (495) hide show
  1. package/README.md +27 -16
  2. package/dist/FOCUS_STATE_CONTRACT.md +17 -4
  3. package/dist/FOCUS_STATE_REVIEW_TEMPLATE.md +8 -8
  4. package/dist/accordion/README.md +3 -3
  5. package/dist/accordion/types.d.ts +37 -23
  6. package/dist/autocomplete/README.md +6 -7
  7. package/dist/autocomplete/empty/autocomplete-empty.svelte +1 -1
  8. package/dist/autocomplete/empty/autocomplete-empty.svelte.d.ts +1 -1
  9. package/dist/autocomplete/input/autocomplete-input.svelte +3 -3
  10. package/dist/autocomplete/input/autocomplete-input.svelte.d.ts +3 -3
  11. package/dist/autocomplete/item/autocomplete-item.svelte +10 -0
  12. package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte +2 -2
  13. package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte.d.ts +2 -2
  14. package/dist/autocomplete/list/autocomplete-list.svelte +2 -2
  15. package/dist/autocomplete/list/autocomplete-list.svelte.d.ts +5 -3
  16. package/dist/autocomplete/root/autocomplete.svelte +7 -7
  17. package/dist/autocomplete/root/autocomplete.svelte.d.ts +7 -7
  18. package/dist/autocomplete/status/autocomplete-status.svelte +1 -1
  19. package/dist/autocomplete/status/autocomplete-status.svelte.d.ts +1 -1
  20. package/dist/avatar/README.md +52 -0
  21. package/dist/avatar/count/avatar-count.svelte +56 -0
  22. package/dist/avatar/count/avatar-count.svelte.d.ts +4 -0
  23. package/dist/avatar/fallback/avatar-fallback.svelte +67 -0
  24. package/dist/avatar/fallback/avatar-fallback.svelte.d.ts +4 -0
  25. package/dist/avatar/group/avatar-group.svelte +65 -0
  26. package/dist/avatar/group/avatar-group.svelte.d.ts +4 -0
  27. package/dist/avatar/group/context.d.ts +15 -0
  28. package/dist/avatar/group/context.js +15 -0
  29. package/dist/avatar/image/avatar-image.svelte +104 -0
  30. package/dist/avatar/image/avatar-image.svelte.d.ts +4 -0
  31. package/dist/avatar/index.d.ts +22 -0
  32. package/dist/avatar/index.js +10 -0
  33. package/dist/avatar/index.parts.d.ts +5 -0
  34. package/dist/avatar/index.parts.js +5 -0
  35. package/dist/avatar/root/avatar-root.svelte +79 -0
  36. package/dist/avatar/root/avatar-root.svelte.d.ts +4 -0
  37. package/dist/avatar/root/context.d.ts +14 -0
  38. package/dist/avatar/root/context.js +15 -0
  39. package/dist/avatar/types.d.ts +84 -0
  40. package/dist/avatar/types.js +1 -0
  41. package/dist/breadcrumbs/README.md +65 -0
  42. package/dist/breadcrumbs/ellipsis/breadcrumbs-ellipsis.svelte +62 -0
  43. package/dist/breadcrumbs/ellipsis/breadcrumbs-ellipsis.svelte.d.ts +4 -0
  44. package/dist/breadcrumbs/index.d.ts +23 -0
  45. package/dist/breadcrumbs/index.js +10 -0
  46. package/dist/breadcrumbs/index.parts.d.ts +6 -0
  47. package/dist/breadcrumbs/index.parts.js +6 -0
  48. package/dist/breadcrumbs/item/breadcrumbs-item.svelte +42 -0
  49. package/dist/breadcrumbs/item/breadcrumbs-item.svelte.d.ts +4 -0
  50. package/dist/breadcrumbs/link/breadcrumbs-link.svelte +47 -0
  51. package/dist/breadcrumbs/link/breadcrumbs-link.svelte.d.ts +4 -0
  52. package/dist/breadcrumbs/list/breadcrumbs-list.svelte +31 -0
  53. package/dist/breadcrumbs/list/breadcrumbs-list.svelte.d.ts +4 -0
  54. package/dist/breadcrumbs/root/breadcrumbs-root.svelte +112 -0
  55. package/dist/breadcrumbs/root/breadcrumbs-root.svelte.d.ts +4 -0
  56. package/dist/breadcrumbs/root/context.d.ts +19 -0
  57. package/dist/breadcrumbs/root/context.js +15 -0
  58. package/dist/breadcrumbs/separator/breadcrumbs-separator.svelte +35 -0
  59. package/dist/breadcrumbs/separator/breadcrumbs-separator.svelte.d.ts +4 -0
  60. package/dist/breadcrumbs/types.d.ts +80 -0
  61. package/dist/breadcrumbs/types.js +1 -0
  62. package/dist/button/README.md +1 -1
  63. package/dist/button/root/button-root.svelte +37 -7
  64. package/dist/button/root/button-root.svelte.d.ts +19 -4
  65. package/dist/calendar/README.md +3 -3
  66. package/dist/calendar/body-cell/calendar-body-cell.svelte +7 -0
  67. package/dist/calendar/grid-header/calendar-grid-header.svelte +3 -4
  68. package/dist/calendar/grid-header/calendar-grid-header.svelte.d.ts +3 -4
  69. package/dist/calendar/root/calendar-root.svelte +8 -2
  70. package/dist/calendar/root/calendar-root.svelte.d.ts +8 -2
  71. package/dist/calendar/trigger-next/README.md +1 -1
  72. package/dist/calendar/trigger-previous/README.md +1 -1
  73. package/dist/checkbox/README.md +1 -1
  74. package/dist/checkbox/indicator/README.md +1 -1
  75. package/dist/checkbox/indicator/checkbox-indicator.svelte +1 -0
  76. package/dist/checkbox/indicator/checkbox-indicator.svelte.d.ts +1 -0
  77. package/dist/checkbox/root/README.md +2 -2
  78. package/dist/checkbox/root/checkbox-root.svelte +118 -40
  79. package/dist/checkbox/root/checkbox-root.svelte.d.ts +17 -10
  80. package/dist/checkbox-group/README.md +95 -0
  81. package/dist/checkbox-group/index.d.ts +15 -0
  82. package/dist/checkbox-group/index.js +6 -0
  83. package/dist/checkbox-group/index.parts.d.ts +4 -0
  84. package/dist/checkbox-group/index.parts.js +7 -0
  85. package/dist/checkbox-group/label/checkbox-group-label.svelte +36 -0
  86. package/dist/checkbox-group/label/checkbox-group-label.svelte.d.ts +4 -0
  87. package/dist/checkbox-group/root/checkbox-group-root.svelte +118 -0
  88. package/dist/checkbox-group/root/checkbox-group-root.svelte.d.ts +4 -0
  89. package/dist/checkbox-group/root/context.svelte.d.ts +52 -0
  90. package/dist/checkbox-group/root/context.svelte.js +251 -0
  91. package/dist/checkbox-group/types.d.ts +57 -0
  92. package/dist/checkbox-group/types.js +1 -0
  93. package/dist/clock/README.md +3 -3
  94. package/dist/clock/axis/README.md +1 -1
  95. package/dist/clock/root/README.md +1 -1
  96. package/dist/clock/wheel-column/clock-wheel-column.svelte +1 -1
  97. package/dist/clock/wheel-column/clock-wheel-column.svelte.d.ts +1 -1
  98. package/dist/collapsible/README.md +3 -3
  99. package/dist/collapsible/types.d.ts +10 -7
  100. package/dist/combobox/README.md +2 -2
  101. package/dist/combobox/button/README.md +6 -6
  102. package/dist/combobox/input/README.md +1 -1
  103. package/dist/combobox/input/combobox-input.svelte +3 -3
  104. package/dist/combobox/input/combobox-input.svelte.d.ts +3 -3
  105. package/dist/combobox/item/combobox-listboxitem.svelte +4 -2
  106. package/dist/combobox/item/combobox-listboxitem.svelte.d.ts +4 -2
  107. package/dist/combobox/item-indicator/README.md +1 -1
  108. package/dist/combobox/item-indicator/combobox-item-indicator.svelte +2 -2
  109. package/dist/combobox/item-indicator/combobox-item-indicator.svelte.d.ts +2 -2
  110. package/dist/combobox/list/combobox-listbox.svelte +11 -8
  111. package/dist/combobox/list/combobox-listbox.svelte.d.ts +14 -9
  112. package/dist/combobox/popover/README.md +1 -1
  113. package/dist/combobox/popover/combobox-popover.svelte +4 -56
  114. package/dist/combobox/root/README.md +24 -24
  115. package/dist/combobox/root/combobox.svelte +26 -17
  116. package/dist/combobox/root/combobox.svelte.d.ts +26 -17
  117. package/dist/combobox/status/README.md +1 -1
  118. package/dist/combobox/status/combobox-status.svelte +1 -1
  119. package/dist/combobox/status/combobox-status.svelte.d.ts +1 -1
  120. package/dist/combobox/tag/README.md +1 -1
  121. package/dist/combobox/tag/combobox-tag.svelte +1 -1
  122. package/dist/combobox/tag/combobox-tag.svelte.d.ts +1 -1
  123. package/dist/combobox/tag-remove/README.md +1 -1
  124. package/dist/combobox/tag-remove/combobox-tag-remove.svelte +4 -5
  125. package/dist/combobox/tag-remove/combobox-tag-remove.svelte.d.ts +4 -5
  126. package/dist/combobox/tags/README.md +1 -1
  127. package/dist/combobox/tags/combobox-tags.svelte +11 -11
  128. package/dist/combobox/tags/combobox-tags.svelte.d.ts +11 -11
  129. package/dist/combobox/trigger/README.md +7 -7
  130. package/dist/datepicker/README.md +4 -4
  131. package/dist/datepicker/input/date-picker-input.svelte +3 -4
  132. package/dist/datepicker/input/date-picker-input.svelte.d.ts +3 -4
  133. package/dist/datepicker/root/date-picker-root.svelte +1 -1
  134. package/dist/datepicker/trigger/README.md +1 -1
  135. package/dist/daterangepicker/README.md +3 -3
  136. package/dist/daterangepicker/input/date-range-picker-input.svelte +3 -4
  137. package/dist/daterangepicker/input/date-range-picker-input.svelte.d.ts +3 -4
  138. package/dist/dialog/README.md +1 -1
  139. package/dist/dialog/close/dialog-close.svelte +3 -3
  140. package/dist/dialog/close/dialog-close.svelte.d.ts +3 -3
  141. package/dist/dialog/content/dialog-content.svelte +4 -4
  142. package/dist/dialog/content/dialog-content.svelte.d.ts +4 -4
  143. package/dist/dialog/description/dialog-description.svelte +3 -3
  144. package/dist/dialog/description/dialog-description.svelte.d.ts +3 -3
  145. package/dist/dialog/overlay/dialog-overlay.svelte +1 -1
  146. package/dist/dialog/overlay/dialog-overlay.svelte.d.ts +1 -1
  147. package/dist/dialog/portal/dialog-portal.svelte +1 -1
  148. package/dist/dialog/portal/dialog-portal.svelte.d.ts +1 -1
  149. package/dist/dialog/root/README.md +1 -1
  150. package/dist/dialog/root/dialog-root.svelte +49 -11
  151. package/dist/dialog/root/dialog-root.svelte.d.ts +11 -9
  152. package/dist/dialog/title/dialog-title.svelte +3 -3
  153. package/dist/dialog/title/dialog-title.svelte.d.ts +3 -3
  154. package/dist/dialog/trigger/README.md +1 -1
  155. package/dist/drawer/README.md +3 -3
  156. package/dist/drawer/body/drawer-body.svelte +2 -2
  157. package/dist/drawer/body/drawer-body.svelte.d.ts +2 -2
  158. package/dist/drawer/close/drawer-close.svelte +3 -3
  159. package/dist/drawer/close/drawer-close.svelte.d.ts +3 -3
  160. package/dist/drawer/content/drawer-content.svelte +12 -9
  161. package/dist/drawer/content/drawer-content.svelte.d.ts +12 -9
  162. package/dist/drawer/description/drawer-description.svelte +3 -3
  163. package/dist/drawer/description/drawer-description.svelte.d.ts +3 -3
  164. package/dist/drawer/indent/drawer-indent-background.svelte +1 -1
  165. package/dist/drawer/indent/drawer-indent-background.svelte.d.ts +1 -1
  166. package/dist/drawer/indent/drawer-indent.svelte +2 -2
  167. package/dist/drawer/indent/drawer-indent.svelte.d.ts +2 -2
  168. package/dist/drawer/overlay/drawer-overlay.svelte +1 -1
  169. package/dist/drawer/overlay/drawer-overlay.svelte.d.ts +1 -1
  170. package/dist/drawer/portal/drawer-portal.svelte +1 -1
  171. package/dist/drawer/portal/drawer-portal.svelte.d.ts +1 -1
  172. package/dist/drawer/root/context.d.ts +1 -1
  173. package/dist/drawer/root/drawer-root.svelte +40 -25
  174. package/dist/drawer/root/drawer-root.svelte.d.ts +25 -23
  175. package/dist/drawer/swipe-area/drawer-swipe-area.svelte +3 -3
  176. package/dist/drawer/swipe-area/drawer-swipe-area.svelte.d.ts +3 -3
  177. package/dist/drawer/title/drawer-title.svelte +3 -3
  178. package/dist/drawer/title/drawer-title.svelte.d.ts +3 -3
  179. package/dist/drawer/trigger/drawer-trigger.svelte +6 -6
  180. package/dist/drawer/trigger/drawer-trigger.svelte.d.ts +6 -6
  181. package/dist/drawer/viewport/drawer-viewport.svelte +2 -2
  182. package/dist/drawer/viewport/drawer-viewport.svelte.d.ts +2 -2
  183. package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte +1 -1
  184. package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte.d.ts +1 -1
  185. package/dist/dropzone/README.md +4 -6
  186. package/dist/index.d.ts +22 -0
  187. package/dist/index.js +21 -0
  188. package/dist/input/input.svelte +6 -6
  189. package/dist/input/input.svelte.d.ts +6 -6
  190. package/dist/internal/environment.d.ts +11 -0
  191. package/dist/internal/environment.js +14 -0
  192. package/dist/internal/localized-strings.d.ts +152 -0
  193. package/dist/internal/localized-strings.js +152 -0
  194. package/dist/internal/number-precision.d.ts +9 -0
  195. package/dist/internal/number-precision.js +27 -0
  196. package/dist/listbox/README.md +20 -1
  197. package/dist/listbox/item/listbox-item.svelte +35 -17
  198. package/dist/listbox/item/listbox-item.svelte.d.ts +24 -15
  199. package/dist/listbox/root/README.md +1 -1
  200. package/dist/listbox/root/context.d.ts +26 -1
  201. package/dist/listbox/root/context.js +108 -1
  202. package/dist/listbox/root/listbox.svelte +129 -39
  203. package/dist/listbox/root/listbox.svelte.d.ts +57 -33
  204. package/dist/locale-provider/README.md +1 -6
  205. package/dist/menu/README.md +41 -4
  206. package/dist/menu/content/menu-content.svelte +28 -13
  207. package/dist/menu/content/menu-content.svelte.d.ts +14 -9
  208. package/dist/menu/context-trigger/menu-context-trigger.svelte +194 -0
  209. package/dist/menu/context-trigger/menu-context-trigger.svelte.d.ts +35 -0
  210. package/dist/menu/group/menu-group-label.svelte +1 -1
  211. package/dist/menu/group/menu-group-label.svelte.d.ts +1 -1
  212. package/dist/menu/index.d.ts +4 -1
  213. package/dist/menu/index.js +1 -0
  214. package/dist/menu/index.parts.d.ts +1 -0
  215. package/dist/menu/index.parts.js +1 -0
  216. package/dist/menu/item/menu-item.svelte +11 -8
  217. package/dist/menu/item/menu-item.svelte.d.ts +11 -8
  218. package/dist/menu/overlay/menu-overlay.svelte +1 -1
  219. package/dist/menu/overlay/menu-overlay.svelte.d.ts +1 -1
  220. package/dist/menu/root/context.d.ts +24 -3
  221. package/dist/menu/root/focus-state.d.ts +2 -2
  222. package/dist/menu/root/focus-state.js +8 -32
  223. package/dist/menu/root/menu-root.svelte +14 -8
  224. package/dist/menu/root/menu-root.svelte.d.ts +14 -8
  225. package/dist/menu/root/menu-state.svelte.d.ts +1 -1
  226. package/dist/menu/root/menu-state.svelte.js +24 -1
  227. package/dist/menu/separator/menu-separator.svelte +1 -1
  228. package/dist/menu/separator/menu-separator.svelte.d.ts +1 -1
  229. package/dist/menu/submenu/menu-submenu-root.svelte +10 -7
  230. package/dist/menu/submenu/menu-submenu-root.svelte.d.ts +10 -7
  231. package/dist/numberfield/root/README.md +1 -1
  232. package/dist/numberfield/root/number-utils.js +1 -20
  233. package/dist/numberfield/scrub-area-cursor/README.md +1 -1
  234. package/dist/popover/README.md +1 -1
  235. package/dist/popover/content/popover-content.svelte +21 -15
  236. package/dist/popover/content/popover-content.svelte.d.ts +19 -14
  237. package/dist/popover/overlay/popover-overlay.svelte +1 -1
  238. package/dist/popover/overlay/popover-overlay.svelte.d.ts +1 -1
  239. package/dist/popover/root/README.md +1 -1
  240. package/dist/popover/root/focus-state.d.ts +2 -2
  241. package/dist/popover/root/focus-state.js +7 -34
  242. package/dist/popover/root/popover-root.svelte +13 -10
  243. package/dist/popover/root/popover-root.svelte.d.ts +13 -10
  244. package/dist/popover/trigger/README.md +1 -1
  245. package/dist/primitives/aria-hide-outside.d.ts +13 -0
  246. package/dist/primitives/aria-hide-outside.js +7 -1
  247. package/dist/primitives/contain-wheel.d.ts +9 -0
  248. package/dist/primitives/contain-wheel.js +41 -0
  249. package/dist/primitives/floating.d.ts +42 -8
  250. package/dist/primitives/floating.js +70 -6
  251. package/dist/primitives/focus-trap.d.ts +2 -0
  252. package/dist/primitives/focus-trap.js +7 -1
  253. package/dist/primitives/focus-visible.svelte.d.ts +14 -0
  254. package/dist/primitives/focus-visible.svelte.js +19 -0
  255. package/dist/primitives/index.d.ts +2 -0
  256. package/dist/primitives/index.js +2 -0
  257. package/dist/primitives/input-modality.d.ts +7 -0
  258. package/dist/primitives/input-modality.js +32 -5
  259. package/dist/primitives/keyboard-navigation.d.ts +29 -5
  260. package/dist/primitives/keyboard-navigation.js +24 -16
  261. package/dist/primitives/long-press.d.ts +59 -0
  262. package/dist/primitives/long-press.js +142 -0
  263. package/dist/primitives/presence.svelte.js +6 -1
  264. package/dist/primitives/scroll-lock.d.ts +24 -0
  265. package/dist/primitives/scroll-lock.js +75 -6
  266. package/dist/primitives/trigger-focus-state.d.ts +29 -0
  267. package/dist/primitives/trigger-focus-state.js +57 -0
  268. package/dist/progress/README.md +54 -0
  269. package/dist/progress/index.d.ts +21 -0
  270. package/dist/progress/index.js +9 -0
  271. package/dist/progress/index.parts.d.ts +5 -0
  272. package/dist/progress/index.parts.js +5 -0
  273. package/dist/progress/indicator/progress-indicator.svelte +37 -0
  274. package/dist/progress/indicator/progress-indicator.svelte.d.ts +4 -0
  275. package/dist/progress/label/progress-label.svelte +34 -0
  276. package/dist/progress/label/progress-label.svelte.d.ts +4 -0
  277. package/dist/progress/root/context.d.ts +26 -0
  278. package/dist/progress/root/context.js +15 -0
  279. package/dist/progress/root/progress-root.svelte +136 -0
  280. package/dist/progress/root/progress-root.svelte.d.ts +4 -0
  281. package/dist/progress/root/progress-utils.d.ts +12 -0
  282. package/dist/progress/root/progress-utils.js +41 -0
  283. package/dist/progress/track/progress-track.svelte +27 -0
  284. package/dist/progress/track/progress-track.svelte.d.ts +4 -0
  285. package/dist/progress/types.d.ts +81 -0
  286. package/dist/progress/types.js +1 -0
  287. package/dist/progress/value/progress-value.svelte +36 -0
  288. package/dist/progress/value/progress-value.svelte.d.ts +4 -0
  289. package/dist/radio-group/README.md +103 -0
  290. package/dist/radio-group/index.d.ts +18 -0
  291. package/dist/radio-group/index.js +9 -0
  292. package/dist/radio-group/index.parts.d.ts +4 -0
  293. package/dist/radio-group/index.parts.js +4 -0
  294. package/dist/radio-group/indicator/radio-group-indicator.svelte +43 -0
  295. package/dist/radio-group/indicator/radio-group-indicator.svelte.d.ts +12 -0
  296. package/dist/radio-group/item/context.d.ts +18 -0
  297. package/dist/radio-group/item/context.js +15 -0
  298. package/dist/radio-group/item/radio-group-item.svelte +377 -0
  299. package/dist/radio-group/item/radio-group-item.svelte.d.ts +35 -0
  300. package/dist/radio-group/label/radio-group-label.svelte +37 -0
  301. package/dist/radio-group/label/radio-group-label.svelte.d.ts +4 -0
  302. package/dist/radio-group/root/context.svelte.d.ts +57 -0
  303. package/dist/radio-group/root/context.svelte.js +284 -0
  304. package/dist/radio-group/root/radio-group-root.svelte +193 -0
  305. package/dist/radio-group/root/radio-group-root.svelte.d.ts +4 -0
  306. package/dist/radio-group/types.d.ts +50 -0
  307. package/dist/radio-group/types.js +1 -0
  308. package/dist/select/README.md +129 -0
  309. package/dist/select/index.d.ts +30 -0
  310. package/dist/select/index.js +16 -0
  311. package/dist/select/index.parts.d.ts +8 -0
  312. package/dist/select/index.parts.js +9 -0
  313. package/dist/select/item/select-item.svelte +68 -0
  314. package/dist/select/item/select-item.svelte.d.ts +10 -0
  315. package/dist/select/item-indicator/select-item-indicator.svelte +55 -0
  316. package/dist/select/item-indicator/select-item-indicator.svelte.d.ts +4 -0
  317. package/dist/select/label/select-label.svelte +46 -0
  318. package/dist/select/label/select-label.svelte.d.ts +4 -0
  319. package/dist/select/list/select-list.svelte +241 -0
  320. package/dist/select/list/select-list.svelte.d.ts +62 -0
  321. package/dist/select/popover/select-popover.svelte +80 -0
  322. package/dist/select/popover/select-popover.svelte.d.ts +9 -0
  323. package/dist/select/root/context.d.ts +106 -0
  324. package/dist/select/root/context.js +22 -0
  325. package/dist/select/root/select-root.svelte +544 -0
  326. package/dist/select/root/select-root.svelte.d.ts +25 -0
  327. package/dist/select/trigger/select-trigger.svelte +192 -0
  328. package/dist/select/trigger/select-trigger.svelte.d.ts +4 -0
  329. package/dist/select/types.d.ts +133 -0
  330. package/dist/select/types.js +1 -0
  331. package/dist/select/value/select-value.svelte +61 -0
  332. package/dist/select/value/select-value.svelte.d.ts +4 -0
  333. package/dist/separator/README.md +35 -0
  334. package/dist/separator/index.d.ts +7 -0
  335. package/dist/separator/index.js +3 -0
  336. package/dist/separator/separator.svelte +254 -0
  337. package/dist/separator/separator.svelte.d.ts +45 -0
  338. package/dist/separator/types.d.ts +1 -0
  339. package/dist/separator/types.js +1 -0
  340. package/dist/slider/README.md +61 -0
  341. package/dist/slider/fill/slider-fill.svelte +40 -0
  342. package/dist/slider/fill/slider-fill.svelte.d.ts +4 -0
  343. package/dist/slider/index.d.ts +9 -0
  344. package/dist/slider/index.js +8 -0
  345. package/dist/slider/index.parts.d.ts +6 -0
  346. package/dist/slider/index.parts.js +6 -0
  347. package/dist/slider/label/slider-label.svelte +44 -0
  348. package/dist/slider/label/slider-label.svelte.d.ts +4 -0
  349. package/dist/slider/output/slider-output.svelte +46 -0
  350. package/dist/slider/output/slider-output.svelte.d.ts +4 -0
  351. package/dist/slider/root/context.d.ts +106 -0
  352. package/dist/slider/root/context.js +15 -0
  353. package/dist/slider/root/slider-root.svelte +545 -0
  354. package/dist/slider/root/slider-root.svelte.d.ts +4 -0
  355. package/dist/slider/root/slider-utils.d.ts +57 -0
  356. package/dist/slider/root/slider-utils.js +88 -0
  357. package/dist/slider/thumb/slider-thumb.svelte +276 -0
  358. package/dist/slider/thumb/slider-thumb.svelte.d.ts +4 -0
  359. package/dist/slider/track/slider-track.svelte +60 -0
  360. package/dist/slider/track/slider-track.svelte.d.ts +4 -0
  361. package/dist/slider/types.d.ts +144 -0
  362. package/dist/slider/types.js +1 -0
  363. package/dist/switch/root/README.md +2 -2
  364. package/dist/switch/root/switch-root.svelte +32 -18
  365. package/dist/switch/root/switch-root.svelte.d.ts +23 -18
  366. package/dist/switch/thumb/switch-thumb.svelte +1 -1
  367. package/dist/switch/thumb/switch-thumb.svelte.d.ts +1 -1
  368. package/dist/table/README.md +16 -9
  369. package/dist/table/cell/table-cell.svelte +27 -8
  370. package/dist/table/checkbox/table-checkbox.svelte +3 -0
  371. package/dist/table/checkbox-indicator/README.md +1 -1
  372. package/dist/table/column-header-cell/table-column-header-cell.svelte +24 -0
  373. package/dist/table/column-resizer/README.md +2 -2
  374. package/dist/table/index.d.ts +1 -1
  375. package/dist/table/index.js +1 -1
  376. package/dist/table/interactive-cell/table-interactive-cell.svelte +26 -8
  377. package/dist/table/root/README.md +1 -1
  378. package/dist/table/root/context.svelte.d.ts +17 -0
  379. package/dist/table/root/context.svelte.js +113 -17
  380. package/dist/table/root/table-root.svelte +36 -6
  381. package/dist/table/row/table-row.svelte +7 -7
  382. package/dist/table/sort-trigger/README.md +1 -1
  383. package/dist/table/types.d.ts +26 -14
  384. package/dist/tabs/types.d.ts +6 -6
  385. package/dist/timepicker/README.md +3 -2
  386. package/dist/timepicker/input/README.md +1 -1
  387. package/dist/timepicker/input/time-picker-input.svelte +66 -5
  388. package/dist/timepicker/input/time-picker-input.svelte.d.ts +18 -1
  389. package/dist/timepicker/root/README.md +1 -1
  390. package/dist/timepicker/trigger/README.md +1 -1
  391. package/dist/toast/README.md +75 -0
  392. package/dist/toast/action/toast-action.svelte +42 -0
  393. package/dist/toast/action/toast-action.svelte.d.ts +4 -0
  394. package/dist/toast/close/toast-close.svelte +41 -0
  395. package/dist/toast/close/toast-close.svelte.d.ts +4 -0
  396. package/dist/toast/content/toast-content.svelte +24 -0
  397. package/dist/toast/content/toast-content.svelte.d.ts +4 -0
  398. package/dist/toast/description/toast-description.svelte +41 -0
  399. package/dist/toast/description/toast-description.svelte.d.ts +4 -0
  400. package/dist/toast/index.d.ts +34 -0
  401. package/dist/toast/index.js +15 -0
  402. package/dist/toast/index.parts.d.ts +9 -0
  403. package/dist/toast/index.parts.js +9 -0
  404. package/dist/toast/positioner/toast-positioner.svelte +75 -0
  405. package/dist/toast/positioner/toast-positioner.svelte.d.ts +4 -0
  406. package/dist/toast/provider/context.d.ts +36 -0
  407. package/dist/toast/provider/context.js +22 -0
  408. package/dist/toast/provider/toast-manager.svelte.d.ts +113 -0
  409. package/dist/toast/provider/toast-manager.svelte.js +210 -0
  410. package/dist/toast/provider/toast-provider.svelte +98 -0
  411. package/dist/toast/provider/toast-provider.svelte.d.ts +4 -0
  412. package/dist/toast/root/context.d.ts +18 -0
  413. package/dist/toast/root/context.js +15 -0
  414. package/dist/toast/root/toast-root.svelte +296 -0
  415. package/dist/toast/root/toast-root.svelte.d.ts +4 -0
  416. package/dist/toast/title/toast-title.svelte +38 -0
  417. package/dist/toast/title/toast-title.svelte.d.ts +4 -0
  418. package/dist/toast/types.d.ts +100 -0
  419. package/dist/toast/types.js +1 -0
  420. package/dist/toast/viewport/toast-viewport.svelte +389 -0
  421. package/dist/toast/viewport/toast-viewport.svelte.d.ts +4 -0
  422. package/dist/toggle/README.md +1 -1
  423. package/dist/toggle/root/toggle-root.svelte +28 -0
  424. package/dist/toggle/root/toggle-root.svelte.d.ts +19 -0
  425. package/dist/toggle-group/README.md +12 -4
  426. package/dist/toggle-group/index.d.ts +2 -0
  427. package/dist/toggle-group/index.parts.d.ts +1 -0
  428. package/dist/toggle-group/index.parts.js +4 -0
  429. package/dist/toggle-group/root/context.svelte.d.ts +1 -1
  430. package/dist/toggle-group/root/context.svelte.js +20 -11
  431. package/dist/toggle-group/root/toggle-group-root.svelte +20 -15
  432. package/dist/toggle-group/root/toggle-group-teardown-order-child.svelte +13 -0
  433. package/dist/toggle-group/root/toggle-group-teardown-order-child.svelte.d.ts +7 -0
  434. package/dist/toggle-group/types.d.ts +9 -9
  435. package/dist/tooltip/README.md +53 -0
  436. package/dist/tooltip/arrow/tooltip-arrow.svelte +36 -0
  437. package/dist/tooltip/arrow/tooltip-arrow.svelte.d.ts +4 -0
  438. package/dist/tooltip/content/tooltip-content.svelte +148 -0
  439. package/dist/tooltip/content/tooltip-content.svelte.d.ts +4 -0
  440. package/dist/tooltip/index.d.ts +8 -0
  441. package/dist/tooltip/index.js +7 -0
  442. package/dist/tooltip/index.parts.d.ts +5 -0
  443. package/dist/tooltip/index.parts.js +5 -0
  444. package/dist/tooltip/provider/tooltip-provider.svelte +36 -0
  445. package/dist/tooltip/provider/tooltip-provider.svelte.d.ts +4 -0
  446. package/dist/tooltip/root/context.d.ts +46 -0
  447. package/dist/tooltip/root/context.js +22 -0
  448. package/dist/tooltip/root/safe-polygon.d.ts +26 -0
  449. package/dist/tooltip/root/safe-polygon.js +66 -0
  450. package/dist/tooltip/root/tooltip-group.d.ts +26 -0
  451. package/dist/tooltip/root/tooltip-group.js +41 -0
  452. package/dist/tooltip/root/tooltip-root.svelte +459 -0
  453. package/dist/tooltip/root/tooltip-root.svelte.d.ts +4 -0
  454. package/dist/tooltip/trigger/tooltip-trigger.svelte +52 -0
  455. package/dist/tooltip/trigger/tooltip-trigger.svelte.d.ts +4 -0
  456. package/dist/tooltip/types.d.ts +105 -0
  457. package/dist/tooltip/types.js +1 -0
  458. package/dist/transfer-list/README.md +110 -0
  459. package/dist/transfer-list/index.d.ts +33 -0
  460. package/dist/transfer-list/index.js +18 -0
  461. package/dist/transfer-list/index.parts.d.ts +9 -0
  462. package/dist/transfer-list/index.parts.js +10 -0
  463. package/dist/transfer-list/item/transfer-list-item.svelte +74 -0
  464. package/dist/transfer-list/item/transfer-list-item.svelte.d.ts +35 -0
  465. package/dist/transfer-list/list/transfer-list-list.svelte +162 -0
  466. package/dist/transfer-list/list/transfer-list-list.svelte.d.ts +56 -0
  467. package/dist/transfer-list/list/transfer-list-source.svelte +13 -0
  468. package/dist/transfer-list/list/transfer-list-source.svelte.d.ts +36 -0
  469. package/dist/transfer-list/list/transfer-list-target.svelte +14 -0
  470. package/dist/transfer-list/list/transfer-list-target.svelte.d.ts +36 -0
  471. package/dist/transfer-list/move/transfer-list-move-all.svelte +14 -0
  472. package/dist/transfer-list/move/transfer-list-move-all.svelte.d.ts +10 -0
  473. package/dist/transfer-list/move/transfer-list-move-button.svelte +103 -0
  474. package/dist/transfer-list/move/transfer-list-move-button.svelte.d.ts +25 -0
  475. package/dist/transfer-list/move/transfer-list-move-down.svelte +14 -0
  476. package/dist/transfer-list/move/transfer-list-move-down.svelte.d.ts +10 -0
  477. package/dist/transfer-list/move/transfer-list-move-selected.svelte +14 -0
  478. package/dist/transfer-list/move/transfer-list-move-selected.svelte.d.ts +10 -0
  479. package/dist/transfer-list/move/transfer-list-move-up.svelte +14 -0
  480. package/dist/transfer-list/move/transfer-list-move-up.svelte.d.ts +10 -0
  481. package/dist/transfer-list/move/transfer-list-reorder-button.svelte +83 -0
  482. package/dist/transfer-list/move/transfer-list-reorder-button.svelte.d.ts +21 -0
  483. package/dist/transfer-list/root/context.d.ts +70 -0
  484. package/dist/transfer-list/root/context.js +24 -0
  485. package/dist/transfer-list/root/transfer-list-root.svelte +345 -0
  486. package/dist/transfer-list/root/transfer-list-root.svelte.d.ts +68 -0
  487. package/dist/transfer-list/root/types.d.ts +22 -0
  488. package/dist/transfer-list/root/types.js +4 -0
  489. package/dist/transfer-list/status/transfer-list-status.svelte +70 -0
  490. package/dist/transfer-list/status/transfer-list-status.svelte.d.ts +15 -0
  491. package/dist/tree/README.md +3 -3
  492. package/dist/tree/checkbox-indicator/README.md +1 -1
  493. package/dist/tree/root/README.md +1 -1
  494. package/dist/tree/types.d.ts +19 -10
  495. package/package.json +56 -1
@@ -4,7 +4,7 @@
4
4
  import { useSwitchContext } from '../root/context';
5
5
 
6
6
  type SwitchThumbProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children' | 'class'> & {
7
- /** Optional content rendered inside the thumb. */
7
+ /** The content of the thumb. */
8
8
  children?: Snippet;
9
9
  class?: string;
10
10
  };
@@ -1,7 +1,7 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
3
  type SwitchThumbProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children' | 'class'> & {
4
- /** Optional content rendered inside the thumb. */
4
+ /** The content of the thumb. */
5
5
  children?: Snippet;
6
6
  class?: string;
7
7
  };
@@ -6,7 +6,12 @@
6
6
 
7
7
  `Table` is a headless interactive table primitive with grid-style keyboard navigation, row selection, explicit sortable header triggers, and a composable part-based API.
8
8
 
9
- All public Table part prop types are exported from the table barrel, including `TableRootProps`, `TableColumnProps`, `TableHeaderProps`, `TableBodyProps`, `TableFooterProps`, `TableRowProps`, `TableColumnHeaderCellProps`, `TableSortTriggerProps`, `TableColumnResizerProps`, `TableCellProps`, `TableEmptyStateProps`, `TableCheckboxProps`, and `TableCheckboxIndicatorProps`.
9
+ The table barrel exports the prop types of each public Table part.
10
+
11
+ These are `TableRootProps`, `TableColumnProps`, `TableHeaderProps`, `TableBodyProps`,
12
+ `TableFooterProps`, `TableRowProps`, `TableColumnHeaderCellProps`, `TableSortTriggerProps`,
13
+ `TableColumnResizerProps`, `TableCellProps`, `TableEmptyStateProps`, `TableCheckboxProps`,
14
+ and `TableCheckboxIndicatorProps`.
10
15
 
11
16
  ## Anatomy
12
17
 
@@ -88,7 +93,8 @@ All public Table part prop types are exported from the table barrel, including `
88
93
  ## Usage guidelines
89
94
 
90
95
  - Use `Table.Root` as the stateful container for focus, selection, and sorting state.
91
- - Use `selectionBehavior="toggle"` to allow deselecting an already selected row, or `selectionBehavior="replace"` to keep selected rows selected when pressed again.
96
+ - Use `keyboardNavigation` to choose how far the roving tab stop reaches into the body: `'grid'` (default) makes every body cell a focus target, `'row'` makes the row the only one, and `'none'` leaves the body inert. The cell navigation has a cost: one focus registration and one focus state for each cell. A virtualized table does this again for each row that it makes. Use `'row'` when the body is a list, and not a surface where the user works. Use `'none'` only when nothing in the body does an action. The header keeps its own navigation in every mode.
97
+ - Use `selectionBehavior="toggle"` to let the user remove the selection of a selected row. Use `selectionBehavior="replace"` to keep a selected row selected when the user presses it again.
92
98
  - `Table.Column` is a logical-only wrapper for column metadata; it does not render DOM by itself and should wrap a single `Table.ColumnHeaderCell`.
93
99
  - Wrap each header cell in `Table.Column` so the table can register stable column metadata.
94
100
  - Add `Table.ColumnResizer` inside `Table.ColumnHeaderCell` to make the owning `Table.Column` resizable.
@@ -101,16 +107,16 @@ All public Table part prop types are exported from the table barrel, including `
101
107
  - Use `defaultHiddenColumns` for uncontrolled initial column visibility.
102
108
  - Use `columnWidths` / `onColumnWidthsChange` for controlled column width state. Width specs can be px, `%`, or `fr`.
103
109
  - Use `defaultColumnWidths` and `Table.Column.defaultWidth` to seed uncontrolled initial widths that can still be resized by the user.
104
- - Use `Table.Column.width` when a column should stay fixed at an explicit width. Fixed-width columns ignore resize attempts even if a `Table.ColumnResizer` is composed.
105
- - In resizable tables, unspecified columns behave like an implicit `1fr` width before interaction. On the first real resize, visible columns are materialized to px; the trailing column absorbs the delta until its minimum width, and further growth overflows the table horizontally.
110
+ - Use `Table.Column.width` when a column must keep an exact width. A column with a fixed width does not change its width, also with a `Table.ColumnResizer` in it.
111
+ - In resizable tables, unspecified columns behave like an implicit `1fr` width before interaction. At the first width change, the component sets each visible column in px. The last column takes the difference, down to its minimum width. After that, the table becomes wider than its container.
106
112
  - Setting `sortDescriptor` back to `undefined` clears the controlled sort state, matching React Aria Table semantics.
107
113
  - Set `Table.Column.textValue` when the spoken column label should differ from the column id; `Table.Root` uses it for polite sort announcements.
108
114
  - Use `Table.EmptyState` inside `Table.Body` instead of conditionally rendering freeform body content.
109
115
  - Use `Table.Checkbox` when you need explicit selection UI inside cells instead of relying only on row or cell presses.
110
- - Use `Table.CheckboxIndicator` to compose your own visual affordance for checked and indeterminate states.
111
- - Use `Table.InteractiveCell` for body cells that contain their own focusable controls. When focus is on the cell itself it keeps the same grid keyboard navigation as `Table.Cell`; when focus is inside a descendant control, the descendant owns its keyboard and pointer interactions.
116
+ - Use `Table.CheckboxIndicator` to make your own marks for the checked state and the indeterminate state.
117
+ - Use `Table.InteractiveCell` for a body cell that has its own controls. While the focus is on the cell, the grid keyboard operation is the same as in `Table.Cell`. While the focus is on a control in the cell, that control gets the keys and the pointer.
112
118
  - `Table.Checkbox` auto-hides in header cells unless `selectionMode="multiple"`, and auto-hides everywhere when `selectionMode="none"`.
113
- - Hidden columns are excluded from grid navigation, visible column counts, and active resize behavior, but their registered widths are preserved so they can be restored when shown again.
119
+ - A hidden column is not in the grid navigation, not in the column count, and not in the width changes. It keeps its width, thus you can show it again with that width.
114
120
  - Dedicated utility columns like selection checkboxes should usually set an explicit `width`, `minWidth`, and `maxWidth` on `Table.Column` so sibling resizes do not redistribute their space.
115
121
  - When `selectionMode` changes to `none`, the component clears any existing row selection internally.
116
122
  - v1 leaves text selection and `Ctrl+C` behavior browser-native; the table does not implement custom copy handling or force a text-selection policy.
@@ -132,10 +138,11 @@ All public Table part prop types are exported from the table barrel, including `
132
138
 
133
139
  - `Table.Root` renders an interactive `grid` over native table markup.
134
140
  - Keyboard navigation uses roving `tabindex` across header and body cells.
135
- - Body rows can also become the active focus target when horizontal navigation moves past the start or end of a row, and repeated left/right navigation loops back into the opposite edge cell.
141
+ - Under `keyboardNavigation="row"` the body's roving tab stop sits on the rows: arrows walk rows, `Enter` presses one and `Space` toggles its selection. Focusable content inside body cells becomes a regular tab stop instead, since no roving focus reaches it there.
142
+ - A body row can also take the focus when the horizontal navigation goes past the start or the end of the row. If the user continues to push the left key or the right key, the focus goes to the cell at the opposite edge.
136
143
  - `Table.Checkbox` can receive DOM focus directly while still participating in the table's roving-focus grid.
137
144
  - First-column body cells become `rowheader` when their associated column has `rowHeader`.
138
145
  - Disabled rows remain rendered and non-selectable, but are skipped by focus navigation.
139
146
  - `Table.SortTrigger` renders the trigger button, while the header cell remains the roving-focus target for arrow-key grid navigation.
140
147
  - Sort changes are mirrored into a polite live region so screen readers announce direction changes more reliably than `aria-sort` alone.
141
- - Column resize handles are keyboard accessible separators. Press `Enter` to enter resize mode, use the horizontal arrow keys to resize, `Home` to jump to the minimum width, `End` to auto-fit to content width, and press `Enter` again to exit resize mode while keeping focus on the handle.
148
+ - Column resize handles are keyboard accessible separators. Push `Enter` to start the resize mode. Use the horizontal arrow keys to change the width. Push `Home` for the minimum width, and `End` for the width of the content. Push `Enter` again to leave the resize mode. The focus stays on the handle.
@@ -26,6 +26,10 @@
26
26
  void row.cellOrderEpoch;
27
27
  return row.getCellIndex(key);
28
28
  });
29
+ // Only `'grid'` navigation makes a body cell a focus target. In the other
30
+ // modes it skips the focus registry and the focus-derived state below, which
31
+ // a virtualizer would otherwise pay per cell on every scroll block.
32
+ const isFocusTarget = $derived(row.section === 'body' && table.keyboardNavigation === 'grid');
29
33
 
30
34
  function syncCellRegistration() {
31
35
  if (row.section !== 'body') return;
@@ -54,12 +58,15 @@
54
58
  });
55
59
 
56
60
  $effect(() => {
61
+ if (!isFocusTarget) return;
57
62
  syncCellRegistration();
58
63
  });
59
64
 
60
65
  onDestroy(() => {
61
66
  row.unregisterCellToken(key);
62
- if (row.section === 'body') {
67
+ // Mirrors `isFocusTarget` without reading it: a derived is not safe to
68
+ // read while the component tears down.
69
+ if (row.section === 'body' && table.keyboardNavigation === 'grid') {
63
70
  table.unregisterCell(key);
64
71
  }
65
72
  });
@@ -88,8 +95,8 @@
88
95
  });
89
96
  // Focus/selection/disabled state is fine-grained `$state` in the context —
90
97
  // the reads below track it directly, no version counters needed.
91
- const isFocused = $derived(row.section === 'body' ? table.isCellFocused(key) : false);
92
- const isFocusVisible = $derived(row.section === 'body' ? isFocused && table.focusVisible : false);
98
+ const isFocused = $derived(isFocusTarget ? table.isCellFocused(key) : false);
99
+ const isFocusVisible = $derived(isFocusTarget ? isFocused && table.focusVisible : false);
93
100
  const isRowSelected = $derived(row.section === 'body' ? row.rowState.isSelected : false);
94
101
  const isRowDisabled = $derived(
95
102
  row.section === 'body'
@@ -110,7 +117,7 @@
110
117
  );
111
118
  const isCellFocusable = $derived(row.section !== 'body' || !isRowDisabled);
112
119
  const cellTabIndex = $derived.by(() => {
113
- if (row.section !== 'body') return undefined;
120
+ if (!isFocusTarget) return undefined;
114
121
  if (isColumnHidden) return undefined;
115
122
  if (!isCellFocusable) return undefined;
116
123
  if (focusDelegate) return undefined;
@@ -124,10 +131,22 @@
124
131
  table.setFocusVisible(shouldShowFocusVisible(element ?? null));
125
132
  }
126
133
 
134
+ // A pointer press moves focus to whatever the current mode can focus, so the
135
+ // keyboard carries on from where the pointer left off.
136
+ function focusPressTarget() {
137
+ if (isFocusTarget) {
138
+ table.focusCellByKey(key);
139
+ return;
140
+ }
141
+ if (table.keyboardNavigation === 'row') {
142
+ table.focusRowByToken(row.rowToken, 'start');
143
+ }
144
+ }
145
+
127
146
  function handleClick(event: MouseEvent) {
128
147
  if (row.section !== 'body') return;
129
148
  if (isRowDisabled) return;
130
- table.focusCellByKey(key);
149
+ focusPressTarget();
131
150
  table.pressRow(
132
151
  row.rowId as TableSelectionKey | undefined,
133
152
  'pointer',
@@ -144,7 +163,7 @@
144
163
  function handleDoubleClick() {
145
164
  if (row.section !== 'body') return;
146
165
  if (isRowDisabled) return;
147
- table.focusCellByKey(key);
166
+ focusPressTarget();
148
167
  table.pressRow(
149
168
  row.rowId as TableSelectionKey | undefined,
150
169
  'pointer-double',
@@ -226,11 +245,11 @@
226
245
  style:inset-inline-end={pinState?.side === 'right' ? `${pinState.offset}px` : undefined}
227
246
  style:z-index={pinState ? 1 : undefined}
228
247
  style:display={isColumnHidden ? 'none' : 'table-cell'}
229
- onfocus={row.section === 'body' ? handleFocus : undefined}
248
+ onfocus={isFocusTarget ? handleFocus : undefined}
230
249
  onclick={row.section === 'body' ? handleClick : undefined}
231
250
  ondblclick={row.section === 'body' ? handleDoubleClick : undefined}
232
251
  onmousedown={row.section === 'body' ? handleMouseDown : undefined}
233
- onkeydown={row.section === 'body' ? handleKeyDown : undefined}
252
+ onkeydown={isFocusTarget ? handleKeyDown : undefined}
234
253
  {...restProps}
235
254
  >
236
255
  {#if children}
@@ -75,6 +75,9 @@
75
75
 
76
76
  const tabIndex = $derived.by(() => {
77
77
  if (!isVisible || isDisabled) return undefined;
78
+ // Without cell navigation no roving tab stop ever reaches a body cell, so
79
+ // the checkbox has to be a tab stop of its own to stay operable.
80
+ if (section.section === 'body' && table.keyboardNavigation !== 'grid') return 0;
78
81
  return table.isCellTabStop(cell.cellKey) ? 0 : -1;
79
82
  });
80
83
 
@@ -13,7 +13,7 @@ Public prop type: `TableCheckboxIndicatorProps`
13
13
  | -------------- | --------------------------------- | ----------- | ------------------------------------------------------------------------------- |
14
14
  | `forceMount` | `boolean` | `false` | Keeps the indicator mounted while hidden when the checkbox is unchecked. |
15
15
  | `children` | `Snippet` | `undefined` | Rendered indicator content, such as a check icon or dash icon. |
16
- | `class` | `string` | `''` | CSS class names for the indicator wrapper. |
16
+ | `class` | `string` | `''` | The CSS class names of the indicator container. |
17
17
  | `...restProps` | `HTMLAttributes<HTMLSpanElement>` | `-` | Additional native attributes forwarded to the composed checkbox indicator span. |
18
18
 
19
19
  ## Usage notes
@@ -11,6 +11,8 @@
11
11
  shouldShowFocusVisible,
12
12
  trackInteractionModality
13
13
  } from '../../primitives/input-modality';
14
+
15
+ import { watchFocusVisible } from '../../primitives/focus-visible.svelte';
14
16
  import { isRtl } from '../../internal/rtl';
15
17
 
16
18
  let { children, class: className = '', ...restProps }: TableColumnHeaderCellProps = $props();
@@ -174,6 +176,28 @@
174
176
  isFocusVisibleWithin = false;
175
177
  }
176
178
 
179
+ function getFocusedDescendant() {
180
+ if (!element) return null;
181
+ const active = element.ownerDocument.activeElement;
182
+ if (!(active instanceof HTMLElement) || active === element) return null;
183
+ return element.contains(active) ? active : null;
184
+ }
185
+
186
+ watchFocusVisible({
187
+ isFocused: () => isElementFocused,
188
+ element: () => element ?? null,
189
+ set: (visible) => {
190
+ isElementFocusVisible = visible;
191
+ table.setFocusVisible(visible);
192
+ }
193
+ });
194
+
195
+ watchFocusVisible({
196
+ isFocused: () => isFocusWithin,
197
+ element: getFocusedDescendant,
198
+ set: (visible) => (isFocusVisibleWithin = visible)
199
+ });
200
+
177
201
  function handleClick() {
178
202
  // A drag-resize that just ended emits a residual click on the header;
179
203
  // consume the one-shot suppression flag BEFORE focusing the cell.
@@ -7,7 +7,7 @@
7
7
  ### Table.ColumnResizer
8
8
 
9
9
  Name: `Table.ColumnResizer`
10
- Description: Interactive resize handle for the current `Table.Column`. It must be composed inside `Table.ColumnHeaderCell`, and it resizes the column that owns the surrounding `Table.Column` context.
10
+ Description: The handle that changes the width of the current `Table.Column`. Put it in a `Table.ColumnHeaderCell`. It changes the width of the column of the `Table.Column` context around it.
11
11
 
12
12
  Public prop type: `TableColumnResizerProps`
13
13
 
@@ -25,7 +25,7 @@ Public prop type: `TableColumnResizerProps`
25
25
  - The handle resolves the active column from `Table.Column` context. It does not accept a separate `columnId` prop.
26
26
  - Width state lives in `Table.Root` through `columnWidths` / `defaultColumnWidths`.
27
27
  - Pointer resizing uses Pointer Events, so mouse, touch, and pen interactions share the same behavior.
28
- - Keyboard resizing uses an explicit resize mode: focus the handle, press `Enter` to capture resize, use `ArrowLeft` / `ArrowRight` (plus `Shift`) to adjust the width, `Home` to jump to the minimum width, and `End` to auto-fit the column to its content width, then press `Enter` again to commit the width and keep focus on the handle.
28
+ - The keyboard changes the width in a resize mode. Move the focus to the handle and push `Enter` to start that mode. Use the `ArrowLeft` key and the `ArrowRight` key, with `Shift` for a larger step, to change the width. Push `Home` for the minimum width, and `End` for the width of the content. Push `Enter` again to keep the width. The focus stays on the handle.
29
29
  - While keyboard resize mode is active, pressing `Escape` restores the starting width, exits resize mode, and returns focus to the owning header cell.
30
30
  - Keyboard resizing uses the same resize lifecycle callbacks as pointer resizing and announces committed widths through a polite live region.
31
31
  - During pointer drag, pressing `Escape` restores the starting width and cancels the resize interaction.
@@ -14,7 +14,7 @@ export { default as TableCheckbox } from './checkbox/table-checkbox.svelte';
14
14
  export { default as TableCheckboxIndicator } from './checkbox-indicator/table-checkbox-indicator.svelte';
15
15
  export { default as TableCell } from './cell/table-cell.svelte';
16
16
  export { default as TableInteractiveCell } from './interactive-cell/table-interactive-cell.svelte';
17
- export { createTableContext, getTableContext, setTableContext, useTableContext, getTableSectionContext, setTableSectionContext, useTableSectionContext, getTableRowContext, setTableRowContext, useTableRowContext, getTableColumnContext, setTableColumnContext, useTableColumnContext, type TableContext, type TableDisabledBehavior, type TableSelectionBehavior, type TableSelectionCheckboxState, type TableSelectionKey, type TableSelectionMode, type TableRowActionHandler, type TableSortDirection, type TableSortDescriptor, type TableColumnWidth, type TableColumnPin, type TableColumnPinState, type TableGridCoord, type TableSectionKind, type TableSectionContext, type TableRowContext, type TableColumnContext, type CreateTableContextOptions, DEFAULT_TABLE_COLUMN_MIN_WIDTH } from './root/context.svelte';
17
+ export { createTableContext, getTableContext, setTableContext, useTableContext, getTableSectionContext, setTableSectionContext, useTableSectionContext, getTableRowContext, setTableRowContext, useTableRowContext, getTableColumnContext, setTableColumnContext, useTableColumnContext, getTableCellContext, setTableCellContext, useTableCellContext, type TableContext, type TableRowItem, type TableRowFocusEdge, type TableDisabledBehavior, type TableKeyboardNavigation, type TableSelectionBehavior, type TableSelectionCheckboxState, type TableSelectionKey, type TableSelectionMode, type TableRowActionHandler, type TableSortDirection, type TableSortDescriptor, type TableColumnWidth, type TableColumnPin, type TableColumnPinState, type TableGridCoord, type TableSectionKind, type TableSectionContext, type TableRowContext, type TableColumnContext, type TableCellContext, type CreateTableContextOptions, DEFAULT_TABLE_COLUMN_MIN_WIDTH } from './root/context.svelte';
18
18
  export { getTableSsrMinWidth, type TableColumnWidthSpec, type GetTableSsrMinWidthOptions } from './utils/ssr-min-width.js';
19
19
  import * as TableParts from './index.parts.js';
20
20
  export default TableParts;
@@ -13,7 +13,7 @@ export { default as TableCheckbox } from './checkbox/table-checkbox.svelte';
13
13
  export { default as TableCheckboxIndicator } from './checkbox-indicator/table-checkbox-indicator.svelte';
14
14
  export { default as TableCell } from './cell/table-cell.svelte';
15
15
  export { default as TableInteractiveCell } from './interactive-cell/table-interactive-cell.svelte';
16
- export { createTableContext, getTableContext, setTableContext, useTableContext, getTableSectionContext, setTableSectionContext, useTableSectionContext, getTableRowContext, setTableRowContext, useTableRowContext, getTableColumnContext, setTableColumnContext, useTableColumnContext, DEFAULT_TABLE_COLUMN_MIN_WIDTH } from './root/context.svelte';
16
+ export { createTableContext, getTableContext, setTableContext, useTableContext, getTableSectionContext, setTableSectionContext, useTableSectionContext, getTableRowContext, setTableRowContext, useTableRowContext, getTableColumnContext, setTableColumnContext, useTableColumnContext, getTableCellContext, setTableCellContext, useTableCellContext, DEFAULT_TABLE_COLUMN_MIN_WIDTH } from './root/context.svelte';
17
17
  export { getTableSsrMinWidth } from './utils/ssr-min-width.js';
18
18
  import * as TableParts from './index.parts.js';
19
19
  export default TableParts;
@@ -26,6 +26,9 @@
26
26
  void row.cellOrderEpoch;
27
27
  return row.getCellIndex(key);
28
28
  });
29
+ // See `Table.Cell`: outside `'grid'` navigation a body cell is not a focus
30
+ // target, so it skips the focus registry and the focus-derived state below.
31
+ const isFocusTarget = $derived(row.section === 'body' && table.keyboardNavigation === 'grid');
29
32
 
30
33
  function syncCellRegistration() {
31
34
  if (row.section !== 'body') return;
@@ -54,12 +57,15 @@
54
57
  });
55
58
 
56
59
  $effect(() => {
60
+ if (!isFocusTarget) return;
57
61
  syncCellRegistration();
58
62
  });
59
63
 
60
64
  onDestroy(() => {
61
65
  row.unregisterCellToken(key);
62
- if (row.section === 'body') {
66
+ // Mirrors `isFocusTarget` without reading it: a derived is not safe to
67
+ // read while the component tears down.
68
+ if (row.section === 'body' && table.keyboardNavigation === 'grid') {
63
69
  table.unregisterCell(key);
64
70
  }
65
71
  });
@@ -88,8 +94,8 @@
88
94
  });
89
95
  // Focus/selection/disabled state is fine-grained `$state` in the context —
90
96
  // the reads below track it directly, no version counters needed.
91
- const isFocused = $derived(row.section === 'body' ? table.isCellFocused(key) : false);
92
- const isFocusVisible = $derived(row.section === 'body' ? isFocused && table.focusVisible : false);
97
+ const isFocused = $derived(isFocusTarget ? table.isCellFocused(key) : false);
98
+ const isFocusVisible = $derived(isFocusTarget ? isFocused && table.focusVisible : false);
93
99
  const isRowSelected = $derived(row.section === 'body' ? row.rowState.isSelected : false);
94
100
  const isRowDisabled = $derived(
95
101
  row.section === 'body'
@@ -110,7 +116,7 @@
110
116
  );
111
117
  const isCellFocusable = $derived(row.section !== 'body' || !isRowDisabled);
112
118
  const cellTabIndex = $derived.by(() => {
113
- if (row.section !== 'body') return undefined;
119
+ if (!isFocusTarget) return undefined;
114
120
  if (isColumnHidden) return undefined;
115
121
  if (!isCellFocusable) return undefined;
116
122
  if (focusDelegate) return undefined;
@@ -128,11 +134,23 @@
128
134
  table.setFocusVisible(shouldShowFocusVisible(element ?? null));
129
135
  }
130
136
 
137
+ // A pointer press moves focus to whatever the current mode can focus, so the
138
+ // keyboard carries on from where the pointer left off.
139
+ function focusPressTarget() {
140
+ if (isFocusTarget) {
141
+ table.focusCellByKey(key);
142
+ return;
143
+ }
144
+ if (table.keyboardNavigation === 'row') {
145
+ table.focusRowByToken(row.rowToken, 'start');
146
+ }
147
+ }
148
+
131
149
  function handleClick(event: MouseEvent) {
132
150
  if (!isCellTarget(event)) return;
133
151
  if (row.section !== 'body') return;
134
152
  if (isRowDisabled) return;
135
- table.focusCellByKey(key);
153
+ focusPressTarget();
136
154
  table.pressRow(
137
155
  row.rowId as TableSelectionKey | undefined,
138
156
  'pointer',
@@ -150,7 +168,7 @@
150
168
  if (!isCellTarget(event)) return;
151
169
  if (row.section !== 'body') return;
152
170
  if (isRowDisabled) return;
153
- table.focusCellByKey(key);
171
+ focusPressTarget();
154
172
  table.pressRow(
155
173
  row.rowId as TableSelectionKey | undefined,
156
174
  'pointer-double',
@@ -235,11 +253,11 @@
235
253
  style:inset-inline-end={pinState?.side === 'right' ? `${pinState.offset}px` : undefined}
236
254
  style:z-index={pinState ? 1 : undefined}
237
255
  style:display={isColumnHidden ? 'none' : 'table-cell'}
238
- onfocus={row.section === 'body' ? handleFocus : undefined}
256
+ onfocus={isFocusTarget ? handleFocus : undefined}
239
257
  onclick={row.section === 'body' ? handleClick : undefined}
240
258
  ondblclick={row.section === 'body' ? handleDoubleClick : undefined}
241
259
  onmousedown={row.section === 'body' ? handleMouseDown : undefined}
242
- onkeydown={row.section === 'body' ? handleKeyDown : undefined}
260
+ onkeydown={isFocusTarget ? handleKeyDown : undefined}
243
261
  {...restProps}
244
262
  >
245
263
  {#if children}
@@ -37,7 +37,7 @@ Public prop type: `TableRootProps`
37
37
  | `aria-labelledby` | `string` | `undefined` | Id reference for an external label. |
38
38
  | `class` | `string` | `''` | Class names for the root table element. |
39
39
  | `context` | `TableContext` | `undefined` | Bindable reference to the active internal table context instance. |
40
- | `element` | `HTMLTableElement` | `undefined` | Bindable reference to the rendered table element. |
40
+ | `element` | `HTMLTableElement` | `undefined` | A bindable reference to the table element. |
41
41
  | `children` | `Snippet` | `undefined` | Composed table parts. |
42
42
 
43
43
  ### Behavior notes
@@ -3,6 +3,20 @@ export type TableRowItem = Record<string, unknown> & {
3
3
  id: TableSelectionKey;
4
4
  };
5
5
  export type TableSelectionMode = 'none' | 'single' | 'multiple';
6
+ /**
7
+ * How far the roving tab stop reaches into the body.
8
+ *
9
+ * `'grid'` is the full ARIA grid pattern: every body cell is a focus target,
10
+ * which costs a registration plus focus-derived state per cell — with a
11
+ * virtualizer that is paid again on every scroll block. `'row'` keeps the body
12
+ * reachable (arrows walk rows, Enter/Space press one) at one focus target per
13
+ * row instead of one per cell. `'none'` drops body focus entirely; use it only
14
+ * when nothing in the body is actionable.
15
+ *
16
+ * The header keeps its own cell navigation in every mode — it is a single row,
17
+ * so it costs nothing, and it is where sorting and resizing live.
18
+ */
19
+ export type TableKeyboardNavigation = 'grid' | 'row' | 'none';
6
20
  export type TableSelectionBehavior = 'toggle' | 'replace';
7
21
  export type TableDisabledBehavior = 'selection' | 'all';
8
22
  export type TableSortDirection = 'ascending' | 'descending';
@@ -84,6 +98,7 @@ type TableCellRegistration = {
84
98
  };
85
99
  export type CreateTableContextOptions = {
86
100
  selectionMode?: TableSelectionMode;
101
+ keyboardNavigation?: TableKeyboardNavigation;
87
102
  selectionBehavior?: TableSelectionBehavior;
88
103
  disabledBehavior?: TableDisabledBehavior;
89
104
  disallowEmptySelection?: boolean;
@@ -126,6 +141,7 @@ export type TableContext = {
126
141
  widthEpoch: number;
127
142
  createInstanceToken: (prefix: string) => string;
128
143
  selectionMode: TableSelectionMode;
144
+ keyboardNavigation: TableKeyboardNavigation;
129
145
  selectionBehavior: TableSelectionBehavior;
130
146
  disabledBehavior: TableDisabledBehavior;
131
147
  disallowEmptySelection: boolean;
@@ -213,6 +229,7 @@ export type TableContext = {
213
229
  deselectAllRows: () => void;
214
230
  setSelection: (keys: Iterable<TableSelectionKey>) => void;
215
231
  setSelectionMode: (mode: TableSelectionMode) => void;
232
+ setKeyboardNavigation: (navigation: TableKeyboardNavigation) => void;
216
233
  setSelectionBehavior: (behavior: TableSelectionBehavior) => void;
217
234
  setDisabledBehavior: (behavior: TableDisabledBehavior) => void;
218
235
  setDisallowEmptySelection: (disallow: boolean) => void;
@@ -53,6 +53,7 @@ export function createTableContext(options = {}) {
53
53
  // mutated in place), so a plain `Set` inside `$state` is enough; the
54
54
  // in-place-mutated collections use SvelteSet/SvelteMap instead.
55
55
  let selectionMode = $state(options.selectionMode ?? 'none');
56
+ let keyboardNavigation = $state(options.keyboardNavigation ?? 'grid');
56
57
  let selectionBehavior = $state(options.selectionBehavior ?? 'toggle');
57
58
  let disabledBehavior = $state(options.disabledBehavior ?? 'all');
58
59
  let disallowEmptySelection = $state(options.disallowEmptySelection ?? false);
@@ -1579,7 +1580,16 @@ export function createTableContext(options = {}) {
1579
1580
  return getDefaultFocusKey() === key;
1580
1581
  }
1581
1582
  function isRowTabStop(token) {
1582
- return focusedRowTarget?.rowToken === token;
1583
+ if (focusedRowTarget)
1584
+ return focusedRowTarget.rowToken === token;
1585
+ if (keyboardNavigation !== 'row')
1586
+ return false;
1587
+ // Row navigation with nothing focused yet: the body needs its own entry
1588
+ // point, but only when the header does not already provide the grid's
1589
+ // single tab stop.
1590
+ if (focusedCellKey || getDefaultFocusKey())
1591
+ return false;
1592
+ return getFocusableBodyRowToken('start') === token;
1583
1593
  }
1584
1594
  function getGlobalRowIndex(rowToken) {
1585
1595
  const orderedHeaderRows = getOrderedRowTokens('header');
@@ -1917,12 +1927,81 @@ export function createTableContext(options = {}) {
1917
1927
  const target = cellElement?.closest('table') ?? cellElement;
1918
1928
  return isRtl(target);
1919
1929
  }
1930
+ function syncSelectionAfterFocusMove(direction, interaction, previousFocusedRowId) {
1931
+ if (direction !== 'up' && direction !== 'down')
1932
+ return;
1933
+ if (selectionMode === 'none')
1934
+ return;
1935
+ if (interaction.ctrlKey || interaction.metaKey || interaction.altKey)
1936
+ return;
1937
+ const targetRowId = getFocusedRowId();
1938
+ if (targetRowId === null)
1939
+ return;
1940
+ if (interaction.shiftKey) {
1941
+ extendSelectionToRow(targetRowId, selectionAnchorKey ?? previousFocusedRowId);
1942
+ return;
1943
+ }
1944
+ if (selectionBehavior !== 'replace')
1945
+ return;
1946
+ replaceSelectionWithRow(targetRowId);
1947
+ }
1948
+ function getOrderedFocusableBodyRowTokens() {
1949
+ return getOrderedRowTokens('body').filter((token) => {
1950
+ const row = rows.get(token);
1951
+ return Boolean(row) && !isRowDisabled(row?.id, row?.disabled);
1952
+ });
1953
+ }
1954
+ /**
1955
+ * Focus movement for `keyboardNavigation: 'row'`, where body cells never
1956
+ * register and the row itself is the only focus target in the body. Returns
1957
+ * `false` when the move belongs to the header, which keeps cell navigation.
1958
+ */
1959
+ function moveRowFocus(direction, interaction) {
1960
+ const tokens = getOrderedFocusableBodyRowTokens();
1961
+ if (tokens.length === 0)
1962
+ return false;
1963
+ if (!focusedRowTarget) {
1964
+ // Coming from the header (or from nothing at all): only downwards
1965
+ // enters the body, so anything else stays with the cell path.
1966
+ if (direction !== 'down')
1967
+ return false;
1968
+ const previousFocusedRowId = getFocusedRowId();
1969
+ focusRowByToken(tokens[0], 'start');
1970
+ syncSelectionAfterFocusMove(direction, interaction, previousFocusedRowId);
1971
+ return true;
1972
+ }
1973
+ // A row spans every column, so there is nothing to move to sideways.
1974
+ if (direction === 'left' || direction === 'right')
1975
+ return true;
1976
+ const previousFocusedRowId = getFocusedRowId();
1977
+ const currentIndex = tokens.indexOf(focusedRowTarget.rowToken);
1978
+ const targetToken = tokens[direction === 'up' ? currentIndex - 1 : currentIndex + 1];
1979
+ if (targetToken) {
1980
+ focusRowByToken(targetToken, focusedRowTarget.edge);
1981
+ syncSelectionAfterFocusMove(direction, interaction, previousFocusedRowId);
1982
+ return true;
1983
+ }
1984
+ // Past the first row, focus leaves the body upwards into the header.
1985
+ if (direction === 'up' && currentIndex === 0) {
1986
+ const headerRowIndexes = getOrderedRowTokens('header')
1987
+ .map((token) => getGlobalRowIndex(token))
1988
+ .filter((index) => index >= 0)
1989
+ .sort((left, right) => left - right);
1990
+ const lastHeaderRowIndex = headerRowIndexes.at(-1);
1991
+ if (lastHeaderRowIndex !== undefined) {
1992
+ focusCellByKey(getClosestCellKey(lastHeaderRowIndex, 0));
1993
+ }
1994
+ }
1995
+ return true;
1996
+ }
1920
1997
  function moveFocus(direction, interaction = {}) {
1921
1998
  // ArrowLeft/ArrowRight are physical: in RTL layouts the visually next
1922
1999
  // cell is the previous one in DOM order, so invert before navigating.
1923
2000
  if ((direction === 'left' || direction === 'right') && isRtlLayout()) {
1924
2001
  direction = direction === 'left' ? 'right' : 'left';
1925
2002
  }
2003
+ if (keyboardNavigation === 'row' && moveRowFocus(direction, interaction))
2004
+ return;
1926
2005
  const rowMap = getRowsWithCells();
1927
2006
  const currentCoord = getFocusedCoord();
1928
2007
  const rowIndexes = Array.from(rowMap.keys()).sort((a, b) => a - b);
@@ -1930,22 +2009,7 @@ export function createTableContext(options = {}) {
1930
2009
  return;
1931
2010
  const previousFocusedRowId = getFocusedRowId();
1932
2011
  function maybeSyncSelectionAfterFocus() {
1933
- if (direction !== 'up' && direction !== 'down')
1934
- return;
1935
- if (selectionMode === 'none')
1936
- return;
1937
- if (interaction.ctrlKey || interaction.metaKey || interaction.altKey)
1938
- return;
1939
- const targetRowId = getFocusedRowId();
1940
- if (targetRowId === null)
1941
- return;
1942
- if (interaction.shiftKey) {
1943
- extendSelectionToRow(targetRowId, selectionAnchorKey ?? previousFocusedRowId);
1944
- return;
1945
- }
1946
- if (selectionBehavior !== 'replace')
1947
- return;
1948
- replaceSelectionWithRow(targetRowId);
2012
+ syncSelectionAfterFocusMove(direction, interaction, previousFocusedRowId);
1949
2013
  }
1950
2014
  if (!currentCoord) {
1951
2015
  if (focusedRowTarget) {
@@ -2052,6 +2116,12 @@ export function createTableContext(options = {}) {
2052
2116
  focusCellByKey(rowCells[rowCells.length - 1]?.key ?? null);
2053
2117
  }
2054
2118
  function moveToGridStart() {
2119
+ // With row navigation the grid's edges are its first and last body rows;
2120
+ // body cells are not focus targets.
2121
+ if (keyboardNavigation === 'row' && focusedRowTarget) {
2122
+ moveToBodyRowStart();
2123
+ return;
2124
+ }
2055
2125
  const rowIndexes = Array.from(getRowsWithCells().keys()).sort((a, b) => a - b);
2056
2126
  if (rowIndexes.length === 0)
2057
2127
  return;
@@ -2070,6 +2140,10 @@ export function createTableContext(options = {}) {
2070
2140
  focusRowByToken(targetToken, focusedRowTarget?.edge ?? 'end');
2071
2141
  }
2072
2142
  function moveToGridEnd() {
2143
+ if (keyboardNavigation === 'row' && focusedRowTarget) {
2144
+ moveToBodyRowEnd();
2145
+ return;
2146
+ }
2073
2147
  const rowMap = getRowsWithCells();
2074
2148
  const bodyGlobalRows = getOrderedRowTokens('body')
2075
2149
  .map((token) => getGlobalRowIndex(token))
@@ -2142,6 +2216,24 @@ export function createTableContext(options = {}) {
2142
2216
  }
2143
2217
  notifySelection();
2144
2218
  }
2219
+ function setKeyboardNavigation(navigation) {
2220
+ if (keyboardNavigation === navigation)
2221
+ return;
2222
+ keyboardNavigation = navigation;
2223
+ if (navigation === 'grid') {
2224
+ // Body cells re-register on their own: their registration effect
2225
+ // reads this state, so it re-runs for every mounted cell.
2226
+ return;
2227
+ }
2228
+ for (const cell of Array.from(cells.values())) {
2229
+ if (cell.section === 'body') {
2230
+ unregisterCell(cell.key);
2231
+ }
2232
+ }
2233
+ if (navigation === 'none') {
2234
+ focusedRowTarget = null;
2235
+ }
2236
+ }
2145
2237
  function setSelectionBehavior(behavior) {
2146
2238
  selectionBehavior = behavior;
2147
2239
  notifySelection();
@@ -2238,6 +2330,9 @@ export function createTableContext(options = {}) {
2238
2330
  get selectionMode() {
2239
2331
  return selectionMode;
2240
2332
  },
2333
+ get keyboardNavigation() {
2334
+ return keyboardNavigation;
2335
+ },
2241
2336
  get selectionBehavior() {
2242
2337
  return selectionBehavior;
2243
2338
  },
@@ -2341,6 +2436,7 @@ export function createTableContext(options = {}) {
2341
2436
  deselectAllRows: asCommand(deselectAllRows),
2342
2437
  setSelection: asCommand(setSelection),
2343
2438
  setSelectionMode: asCommand(setSelectionMode),
2439
+ setKeyboardNavigation: asCommand(setKeyboardNavigation),
2344
2440
  setSelectionBehavior: asCommand(setSelectionBehavior),
2345
2441
  setDisabledBehavior: asCommand(setDisabledBehavior),
2346
2442
  setDisallowEmptySelection: asCommand(setDisallowEmptySelection),