@proyecto-viviana/solidaria 0.2.8 → 0.4.0

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 (976) hide show
  1. package/README.md +31 -236
  2. package/dist/_chunk/actiongroup.js +207 -0
  3. package/dist/_chunk/actiongroup.js.map +1 -0
  4. package/dist/_chunk/actiongroup.jsx +207 -0
  5. package/dist/_chunk/actiongroup.jsx.map +1 -0
  6. package/dist/_chunk/ariaHideOutside.js +122 -0
  7. package/dist/_chunk/ariaHideOutside.js.map +1 -0
  8. package/dist/_chunk/ariaHideOutside.jsx +122 -0
  9. package/dist/_chunk/ariaHideOutside.jsx.map +1 -0
  10. package/dist/_chunk/autocomplete.js +196 -0
  11. package/dist/_chunk/autocomplete.js.map +1 -0
  12. package/dist/_chunk/autocomplete.jsx +196 -0
  13. package/dist/_chunk/autocomplete.jsx.map +1 -0
  14. package/dist/_chunk/breadcrumbs.js +119 -0
  15. package/dist/_chunk/breadcrumbs.js.map +1 -0
  16. package/dist/_chunk/breadcrumbs.jsx +119 -0
  17. package/dist/_chunk/breadcrumbs.jsx.map +1 -0
  18. package/dist/_chunk/button.js +276 -0
  19. package/dist/_chunk/button.js.map +1 -0
  20. package/dist/_chunk/button.jsx +276 -0
  21. package/dist/_chunk/button.jsx.map +1 -0
  22. package/dist/_chunk/calendar.js +1036 -0
  23. package/dist/_chunk/calendar.js.map +1 -0
  24. package/dist/_chunk/calendar.jsx +1036 -0
  25. package/dist/_chunk/calendar.jsx.map +1 -0
  26. package/dist/_chunk/checkbox.js +234 -0
  27. package/dist/_chunk/checkbox.js.map +1 -0
  28. package/dist/_chunk/checkbox.jsx +234 -0
  29. package/dist/_chunk/checkbox.jsx.map +1 -0
  30. package/dist/_chunk/color.js +1174 -0
  31. package/dist/_chunk/color.js.map +1 -0
  32. package/dist/_chunk/color.jsx +1174 -0
  33. package/dist/_chunk/color.jsx.map +1 -0
  34. package/dist/_chunk/combobox.js +436 -0
  35. package/dist/_chunk/combobox.js.map +1 -0
  36. package/dist/_chunk/combobox.jsx +436 -0
  37. package/dist/_chunk/combobox.jsx.map +1 -0
  38. package/dist/_chunk/createCollator.js +229 -0
  39. package/dist/_chunk/createCollator.js.map +1 -0
  40. package/dist/_chunk/createCollator.jsx +223 -0
  41. package/dist/_chunk/createCollator.jsx.map +1 -0
  42. package/dist/_chunk/createCollectionRowInteraction.js +133 -0
  43. package/dist/_chunk/createCollectionRowInteraction.js.map +1 -0
  44. package/dist/_chunk/createCollectionRowInteraction.jsx +133 -0
  45. package/dist/_chunk/createCollectionRowInteraction.jsx.map +1 -0
  46. package/dist/_chunk/createField.js +54 -0
  47. package/dist/_chunk/createField.js.map +1 -0
  48. package/dist/_chunk/createField.jsx +54 -0
  49. package/dist/_chunk/createField.jsx.map +1 -0
  50. package/dist/_chunk/createFocus.js +101 -0
  51. package/dist/_chunk/createFocus.js.map +1 -0
  52. package/dist/_chunk/createFocus.jsx +101 -0
  53. package/dist/_chunk/createFocus.jsx.map +1 -0
  54. package/dist/_chunk/createFocusRing.js +54 -0
  55. package/dist/_chunk/createFocusRing.js.map +1 -0
  56. package/dist/_chunk/createFocusRing.jsx +54 -0
  57. package/dist/_chunk/createFocusRing.jsx.map +1 -0
  58. package/dist/_chunk/createFocusWithin.js +121 -0
  59. package/dist/_chunk/createFocusWithin.js.map +1 -0
  60. package/dist/_chunk/createFocusWithin.jsx +121 -0
  61. package/dist/_chunk/createFocusWithin.jsx.map +1 -0
  62. package/dist/_chunk/createFocusable.js +131 -0
  63. package/dist/_chunk/createFocusable.js.map +1 -0
  64. package/dist/_chunk/createFocusable.jsx +131 -0
  65. package/dist/_chunk/createFocusable.jsx.map +1 -0
  66. package/dist/_chunk/createFormValidation.js +135 -0
  67. package/dist/_chunk/createFormValidation.js.map +1 -0
  68. package/dist/_chunk/createFormValidation.jsx +135 -0
  69. package/dist/_chunk/createFormValidation.jsx.map +1 -0
  70. package/dist/_chunk/createHover.js +130 -0
  71. package/dist/_chunk/createHover.js.map +1 -0
  72. package/dist/_chunk/createHover.jsx +130 -0
  73. package/dist/_chunk/createHover.jsx.map +1 -0
  74. package/dist/_chunk/createInteractionModality.js +269 -0
  75. package/dist/_chunk/createInteractionModality.js.map +1 -0
  76. package/dist/_chunk/createInteractionModality.jsx +269 -0
  77. package/dist/_chunk/createInteractionModality.jsx.map +1 -0
  78. package/dist/_chunk/createLabel.js +46 -0
  79. package/dist/_chunk/createLabel.js.map +1 -0
  80. package/dist/_chunk/createLabel.jsx +46 -0
  81. package/dist/_chunk/createLabel.jsx.map +1 -0
  82. package/dist/_chunk/createLabels.js +31 -0
  83. package/dist/_chunk/createLabels.js.map +1 -0
  84. package/dist/_chunk/createLabels.jsx +31 -0
  85. package/dist/_chunk/createLabels.jsx.map +1 -0
  86. package/dist/_chunk/createLandmark.js +198 -0
  87. package/dist/_chunk/createLandmark.js.map +1 -0
  88. package/dist/_chunk/createLandmark.jsx +198 -0
  89. package/dist/_chunk/createLandmark.jsx.map +1 -0
  90. package/dist/_chunk/createLongPress.js +91 -0
  91. package/dist/_chunk/createLongPress.js.map +1 -0
  92. package/dist/_chunk/createLongPress.jsx +91 -0
  93. package/dist/_chunk/createLongPress.jsx.map +1 -0
  94. package/dist/_chunk/createOverlay.js +327 -0
  95. package/dist/_chunk/createOverlay.js.map +1 -0
  96. package/dist/_chunk/createOverlay.jsx +327 -0
  97. package/dist/_chunk/createOverlay.jsx.map +1 -0
  98. package/dist/_chunk/createPress.js +526 -0
  99. package/dist/_chunk/createPress.js.map +1 -0
  100. package/dist/_chunk/createPress.jsx +526 -0
  101. package/dist/_chunk/createPress.jsx.map +1 -0
  102. package/dist/_chunk/createProgressBar.js +81 -0
  103. package/dist/_chunk/createProgressBar.js.map +1 -0
  104. package/dist/_chunk/createProgressBar.jsx +81 -0
  105. package/dist/_chunk/createProgressBar.jsx.map +1 -0
  106. package/dist/_chunk/createSelectableItem.js +298 -0
  107. package/dist/_chunk/createSelectableItem.js.map +1 -0
  108. package/dist/_chunk/createSelectableItem.jsx +298 -0
  109. package/dist/_chunk/createSelectableItem.jsx.map +1 -0
  110. package/dist/_chunk/createToggle.js +158 -0
  111. package/dist/_chunk/createToggle.js.map +1 -0
  112. package/dist/_chunk/createToggle.jsx +158 -0
  113. package/dist/_chunk/createToggle.jsx.map +1 -0
  114. package/dist/_chunk/createTypeSelect.js +125 -0
  115. package/dist/_chunk/createTypeSelect.js.map +1 -0
  116. package/dist/_chunk/createTypeSelect.jsx +125 -0
  117. package/dist/_chunk/createTypeSelect.jsx.map +1 -0
  118. package/dist/_chunk/datepicker.js +1393 -0
  119. package/dist/_chunk/datepicker.js.map +1 -0
  120. package/dist/_chunk/datepicker.jsx +1393 -0
  121. package/dist/_chunk/datepicker.jsx.map +1 -0
  122. package/dist/_chunk/dialog.js +62 -0
  123. package/dist/_chunk/dialog.js.map +1 -0
  124. package/dist/_chunk/dialog.jsx +62 -0
  125. package/dist/_chunk/dialog.jsx.map +1 -0
  126. package/dist/_chunk/disclosure.js +185 -0
  127. package/dist/_chunk/disclosure.js.map +1 -0
  128. package/dist/_chunk/disclosure.jsx +185 -0
  129. package/dist/_chunk/disclosure.jsx.map +1 -0
  130. package/dist/_chunk/dnd.js +1304 -0
  131. package/dist/_chunk/dnd.js.map +1 -0
  132. package/dist/_chunk/dnd.jsx +1304 -0
  133. package/dist/_chunk/dnd.jsx.map +1 -0
  134. package/dist/_chunk/env.js +105 -0
  135. package/dist/_chunk/env.js.map +1 -0
  136. package/dist/_chunk/env.jsx +105 -0
  137. package/dist/_chunk/env.jsx.map +1 -0
  138. package/dist/_chunk/filterDOMProps.js +82 -0
  139. package/dist/_chunk/filterDOMProps.js.map +1 -0
  140. package/dist/_chunk/filterDOMProps.jsx +82 -0
  141. package/dist/_chunk/filterDOMProps.jsx.map +1 -0
  142. package/dist/_chunk/focus.js +399 -0
  143. package/dist/_chunk/focus.js.map +1 -0
  144. package/dist/_chunk/focus.jsx +399 -0
  145. package/dist/_chunk/focus.jsx.map +1 -0
  146. package/dist/_chunk/focus2.js +895 -0
  147. package/dist/_chunk/focus2.js.map +1 -0
  148. package/dist/_chunk/focus2.jsx +870 -0
  149. package/dist/_chunk/focus2.jsx.map +1 -0
  150. package/dist/_chunk/form.js +39 -0
  151. package/dist/_chunk/form.js.map +1 -0
  152. package/dist/_chunk/form.jsx +39 -0
  153. package/dist/_chunk/form.jsx.map +1 -0
  154. package/dist/_chunk/grid.js +623 -0
  155. package/dist/_chunk/grid.js.map +1 -0
  156. package/dist/_chunk/grid.jsx +623 -0
  157. package/dist/_chunk/grid.jsx.map +1 -0
  158. package/dist/_chunk/gridlist.js +364 -0
  159. package/dist/_chunk/gridlist.js.map +1 -0
  160. package/dist/_chunk/gridlist.jsx +364 -0
  161. package/dist/_chunk/gridlist.jsx.map +1 -0
  162. package/dist/_chunk/i18n.js +254 -0
  163. package/dist/_chunk/i18n.js.map +1 -0
  164. package/dist/_chunk/i18n.jsx +254 -0
  165. package/dist/_chunk/i18n.jsx.map +1 -0
  166. package/dist/_chunk/interactions.js +241 -0
  167. package/dist/_chunk/interactions.js.map +1 -0
  168. package/dist/_chunk/interactions.jsx +237 -0
  169. package/dist/_chunk/interactions.jsx.map +1 -0
  170. package/dist/_chunk/link.js +96 -0
  171. package/dist/_chunk/link.js.map +1 -0
  172. package/dist/_chunk/link.jsx +96 -0
  173. package/dist/_chunk/link.jsx.map +1 -0
  174. package/dist/_chunk/listbox.js +324 -0
  175. package/dist/_chunk/listbox.js.map +1 -0
  176. package/dist/_chunk/listbox.jsx +324 -0
  177. package/dist/_chunk/listbox.jsx.map +1 -0
  178. package/dist/_chunk/live-announcer.js +207 -0
  179. package/dist/_chunk/live-announcer.js.map +1 -0
  180. package/dist/_chunk/live-announcer.jsx +207 -0
  181. package/dist/_chunk/live-announcer.jsx.map +1 -0
  182. package/dist/_chunk/menu.js +518 -0
  183. package/dist/_chunk/menu.js.map +1 -0
  184. package/dist/_chunk/menu.jsx +518 -0
  185. package/dist/_chunk/menu.jsx.map +1 -0
  186. package/dist/_chunk/meter.js +33 -0
  187. package/dist/_chunk/meter.js.map +1 -0
  188. package/dist/_chunk/meter.jsx +33 -0
  189. package/dist/_chunk/meter.jsx.map +1 -0
  190. package/dist/_chunk/numberfield.js +258 -0
  191. package/dist/_chunk/numberfield.js.map +1 -0
  192. package/dist/_chunk/numberfield.jsx +258 -0
  193. package/dist/_chunk/numberfield.jsx.map +1 -0
  194. package/dist/_chunk/overlays.js +186 -0
  195. package/dist/_chunk/overlays.js.map +1 -0
  196. package/dist/_chunk/overlays.jsx +162 -0
  197. package/dist/_chunk/overlays.jsx.map +1 -0
  198. package/dist/_chunk/popover.js +574 -0
  199. package/dist/_chunk/popover.js.map +1 -0
  200. package/dist/_chunk/popover.jsx +574 -0
  201. package/dist/_chunk/popover.jsx.map +1 -0
  202. package/dist/_chunk/radio.js +319 -0
  203. package/dist/_chunk/radio.js.map +1 -0
  204. package/dist/_chunk/radio.jsx +319 -0
  205. package/dist/_chunk/radio.jsx.map +1 -0
  206. package/dist/_chunk/searchfield.js +209 -0
  207. package/dist/_chunk/searchfield.js.map +1 -0
  208. package/dist/_chunk/searchfield.jsx +209 -0
  209. package/dist/_chunk/searchfield.jsx.map +1 -0
  210. package/dist/_chunk/select.js +403 -0
  211. package/dist/_chunk/select.js.map +1 -0
  212. package/dist/_chunk/select.jsx +394 -0
  213. package/dist/_chunk/select.jsx.map +1 -0
  214. package/dist/_chunk/selection.js +679 -0
  215. package/dist/_chunk/selection.js.map +1 -0
  216. package/dist/_chunk/selection.jsx +679 -0
  217. package/dist/_chunk/selection.jsx.map +1 -0
  218. package/dist/_chunk/separator.js +29 -0
  219. package/dist/_chunk/separator.js.map +1 -0
  220. package/dist/_chunk/separator.jsx +29 -0
  221. package/dist/_chunk/separator.jsx.map +1 -0
  222. package/dist/_chunk/slider.js +255 -0
  223. package/dist/_chunk/slider.js.map +1 -0
  224. package/dist/_chunk/slider.jsx +255 -0
  225. package/dist/_chunk/slider.jsx.map +1 -0
  226. package/dist/_chunk/steplist.js +66 -0
  227. package/dist/_chunk/steplist.js.map +1 -0
  228. package/dist/_chunk/steplist.jsx +66 -0
  229. package/dist/_chunk/steplist.jsx.map +1 -0
  230. package/dist/_chunk/switch.js +34 -0
  231. package/dist/_chunk/switch.js.map +1 -0
  232. package/dist/_chunk/switch.jsx +34 -0
  233. package/dist/_chunk/switch.jsx.map +1 -0
  234. package/dist/_chunk/table.js +1051 -0
  235. package/dist/_chunk/table.js.map +1 -0
  236. package/dist/_chunk/table.jsx +1051 -0
  237. package/dist/_chunk/table.jsx.map +1 -0
  238. package/dist/_chunk/tabs.js +260 -0
  239. package/dist/_chunk/tabs.js.map +1 -0
  240. package/dist/_chunk/tabs.jsx +260 -0
  241. package/dist/_chunk/tabs.jsx.map +1 -0
  242. package/dist/_chunk/tag.js +286 -0
  243. package/dist/_chunk/tag.js.map +1 -0
  244. package/dist/_chunk/tag.jsx +286 -0
  245. package/dist/_chunk/tag.jsx.map +1 -0
  246. package/dist/_chunk/textfield.js +109 -0
  247. package/dist/_chunk/textfield.js.map +1 -0
  248. package/dist/_chunk/textfield.jsx +109 -0
  249. package/dist/_chunk/textfield.jsx.map +1 -0
  250. package/dist/_chunk/toast.js +250 -0
  251. package/dist/_chunk/toast.js.map +1 -0
  252. package/dist/_chunk/toast.jsx +250 -0
  253. package/dist/_chunk/toast.jsx.map +1 -0
  254. package/dist/_chunk/toolbar.js +258 -0
  255. package/dist/_chunk/toolbar.js.map +1 -0
  256. package/dist/_chunk/toolbar.jsx +258 -0
  257. package/dist/_chunk/toolbar.jsx.map +1 -0
  258. package/dist/_chunk/tooltip.js +185 -0
  259. package/dist/_chunk/tooltip.js.map +1 -0
  260. package/dist/_chunk/tooltip.jsx +185 -0
  261. package/dist/_chunk/tooltip.jsx.map +1 -0
  262. package/dist/_chunk/tree.js +424 -0
  263. package/dist/_chunk/tree.js.map +1 -0
  264. package/dist/_chunk/tree.jsx +424 -0
  265. package/dist/_chunk/tree.jsx.map +1 -0
  266. package/dist/_chunk/utils.js +665 -0
  267. package/dist/_chunk/utils.js.map +1 -0
  268. package/dist/_chunk/utils.jsx +665 -0
  269. package/dist/_chunk/utils.jsx.map +1 -0
  270. package/dist/_chunk/visually-hidden.js +92 -0
  271. package/dist/_chunk/visually-hidden.js.map +1 -0
  272. package/dist/_chunk/visually-hidden.jsx +92 -0
  273. package/dist/_chunk/visually-hidden.jsx.map +1 -0
  274. package/dist/actiongroup/createActionGroup.d.ts +5 -5
  275. package/dist/actiongroup/createActionGroup.d.ts.map +1 -1
  276. package/dist/actiongroup/index.d.ts +1 -1
  277. package/dist/actiongroup/index.js +2 -0
  278. package/dist/actiongroup/index.jsx +2 -0
  279. package/dist/autocomplete/createAutocomplete.d.ts +12 -10
  280. package/dist/autocomplete/createAutocomplete.d.ts.map +1 -1
  281. package/dist/autocomplete/index.d.ts +1 -1
  282. package/dist/autocomplete/index.d.ts.map +1 -1
  283. package/dist/autocomplete/index.js +2 -0
  284. package/dist/autocomplete/index.jsx +2 -0
  285. package/dist/breadcrumbs/createBreadcrumbs.d.ts +9 -7
  286. package/dist/breadcrumbs/createBreadcrumbs.d.ts.map +1 -1
  287. package/dist/breadcrumbs/index.d.ts +1 -1
  288. package/dist/breadcrumbs/index.js +2 -0
  289. package/dist/breadcrumbs/index.jsx +2 -0
  290. package/dist/button/createButton.d.ts +1 -1
  291. package/dist/button/createButton.d.ts.map +1 -1
  292. package/dist/button/createToggleButton.d.ts +3 -3
  293. package/dist/button/createToggleButtonGroup.d.ts +7 -7
  294. package/dist/button/createToggleButtonGroup.d.ts.map +1 -1
  295. package/dist/button/index.d.ts +6 -6
  296. package/dist/button/index.d.ts.map +1 -1
  297. package/dist/button/index.js +2 -0
  298. package/dist/button/index.jsx +2 -0
  299. package/dist/button/types.d.ts +18 -12
  300. package/dist/button/types.d.ts.map +1 -1
  301. package/dist/calendar/createCalendar.d.ts +15 -5
  302. package/dist/calendar/createCalendar.d.ts.map +1 -1
  303. package/dist/calendar/createCalendarCell.d.ts +6 -2
  304. package/dist/calendar/createCalendarCell.d.ts.map +1 -1
  305. package/dist/calendar/createCalendarGrid.d.ts +4 -4
  306. package/dist/calendar/createCalendarGrid.d.ts.map +1 -1
  307. package/dist/calendar/createCalendarMonthPicker.d.ts +41 -0
  308. package/dist/calendar/createCalendarMonthPicker.d.ts.map +1 -0
  309. package/dist/calendar/createCalendarYearPicker.d.ts +49 -0
  310. package/dist/calendar/createCalendarYearPicker.d.ts.map +1 -0
  311. package/dist/calendar/createRangeCalendar.d.ts +15 -5
  312. package/dist/calendar/createRangeCalendar.d.ts.map +1 -1
  313. package/dist/calendar/createRangeCalendarCell.d.ts +4 -2
  314. package/dist/calendar/createRangeCalendarCell.d.ts.map +1 -1
  315. package/dist/calendar/index.d.ts +7 -5
  316. package/dist/calendar/index.d.ts.map +1 -1
  317. package/dist/calendar/index.js +2 -0
  318. package/dist/calendar/index.jsx +2 -0
  319. package/dist/calendar/intl/index.d.ts +12 -0
  320. package/dist/calendar/intl/index.d.ts.map +1 -0
  321. package/dist/calendar/utils.d.ts +16 -0
  322. package/dist/calendar/utils.d.ts.map +1 -0
  323. package/dist/checkbox/createCheckbox.d.ts +10 -6
  324. package/dist/checkbox/createCheckbox.d.ts.map +1 -1
  325. package/dist/checkbox/createCheckboxGroup.d.ts +7 -7
  326. package/dist/checkbox/createCheckboxGroup.d.ts.map +1 -1
  327. package/dist/checkbox/createCheckboxGroupItem.d.ts +4 -4
  328. package/dist/checkbox/createCheckboxGroupItem.d.ts.map +1 -1
  329. package/dist/checkbox/createCheckboxGroupState.d.ts +2 -2
  330. package/dist/checkbox/createCheckboxGroupState.d.ts.map +1 -1
  331. package/dist/checkbox/index.d.ts +8 -8
  332. package/dist/checkbox/index.d.ts.map +1 -1
  333. package/dist/checkbox/index.js +2 -0
  334. package/dist/checkbox/index.jsx +2 -0
  335. package/dist/collections/index.d.ts +3 -3
  336. package/dist/collections/index.d.ts.map +1 -1
  337. package/dist/collections/index.js +160 -0
  338. package/dist/collections/index.js.map +1 -0
  339. package/dist/collections/index.jsx +160 -0
  340. package/dist/collections/index.jsx.map +1 -0
  341. package/dist/color/createColorArea.d.ts +3 -3
  342. package/dist/color/createColorArea.d.ts.map +1 -1
  343. package/dist/color/createColorField.d.ts +4 -4
  344. package/dist/color/createColorField.d.ts.map +1 -1
  345. package/dist/color/createColorSlider.d.ts +4 -4
  346. package/dist/color/createColorSlider.d.ts.map +1 -1
  347. package/dist/color/createColorSwatch.d.ts +2 -2
  348. package/dist/color/createColorSwatch.d.ts.map +1 -1
  349. package/dist/color/createColorWheel.d.ts +3 -3
  350. package/dist/color/createColorWheel.d.ts.map +1 -1
  351. package/dist/color/index.d.ts +6 -6
  352. package/dist/color/index.js +2 -0
  353. package/dist/color/index.jsx +2 -0
  354. package/dist/color/types.d.ts +98 -16
  355. package/dist/color/types.d.ts.map +1 -1
  356. package/dist/combobox/createComboBox.d.ts +10 -7
  357. package/dist/combobox/createComboBox.d.ts.map +1 -1
  358. package/dist/combobox/index.d.ts +1 -1
  359. package/dist/combobox/index.js +2 -0
  360. package/dist/combobox/index.jsx +2 -0
  361. package/dist/combobox/intl/index.d.ts +1 -1
  362. package/dist/datepicker/createDateField.d.ts +18 -6
  363. package/dist/datepicker/createDateField.d.ts.map +1 -1
  364. package/dist/datepicker/createDatePicker.d.ts +51 -5
  365. package/dist/datepicker/createDatePicker.d.ts.map +1 -1
  366. package/dist/datepicker/createDatePickerGroup.d.ts +19 -0
  367. package/dist/datepicker/createDatePickerGroup.d.ts.map +1 -0
  368. package/dist/datepicker/createDateRangePicker.d.ts +8 -6
  369. package/dist/datepicker/createDateRangePicker.d.ts.map +1 -1
  370. package/dist/datepicker/createDateSegment.d.ts +10 -2
  371. package/dist/datepicker/createDateSegment.d.ts.map +1 -1
  372. package/dist/datepicker/createTimeField.d.ts +11 -5
  373. package/dist/datepicker/createTimeField.d.ts.map +1 -1
  374. package/dist/datepicker/createTimeSegment.d.ts +2 -2
  375. package/dist/datepicker/createTimeSegment.d.ts.map +1 -1
  376. package/dist/datepicker/index.d.ts +7 -6
  377. package/dist/datepicker/index.d.ts.map +1 -1
  378. package/dist/datepicker/index.js +2 -0
  379. package/dist/datepicker/index.jsx +2 -0
  380. package/dist/dialog/createDialog.d.ts +5 -5
  381. package/dist/dialog/createDialog.d.ts.map +1 -1
  382. package/dist/dialog/index.d.ts +2 -2
  383. package/dist/dialog/index.d.ts.map +1 -1
  384. package/dist/dialog/index.js +2 -0
  385. package/dist/dialog/index.jsx +2 -0
  386. package/dist/dialog/types.d.ts +4 -4
  387. package/dist/disclosure/createDisclosure.d.ts +5 -2
  388. package/dist/disclosure/createDisclosure.d.ts.map +1 -1
  389. package/dist/disclosure/createDisclosureGroup.d.ts +4 -4
  390. package/dist/disclosure/createDisclosureGroup.d.ts.map +1 -1
  391. package/dist/disclosure/index.d.ts +2 -2
  392. package/dist/disclosure/index.js +2 -0
  393. package/dist/disclosure/index.jsx +2 -0
  394. package/dist/dnd/createDrag.d.ts +2 -2
  395. package/dist/dnd/createDrag.d.ts.map +1 -1
  396. package/dist/dnd/createDraggableCollection.d.ts +2 -2
  397. package/dist/dnd/createDraggableItem.d.ts +3 -3
  398. package/dist/dnd/createDraggableItem.d.ts.map +1 -1
  399. package/dist/dnd/createDrop.d.ts +2 -2
  400. package/dist/dnd/createDrop.d.ts.map +1 -1
  401. package/dist/dnd/createDroppableCollection.d.ts +26 -6
  402. package/dist/dnd/createDroppableCollection.d.ts.map +1 -1
  403. package/dist/dnd/createDroppableItem.d.ts +3 -3
  404. package/dist/dnd/index.d.ts +12 -12
  405. package/dist/dnd/index.d.ts.map +1 -1
  406. package/dist/dnd/index.js +2 -0
  407. package/dist/dnd/index.jsx +2 -0
  408. package/dist/dnd/types.d.ts +2 -2
  409. package/dist/dnd/types.d.ts.map +1 -1
  410. package/dist/dnd/utils.d.ts +2 -2
  411. package/dist/dnd/utils.d.ts.map +1 -1
  412. package/dist/focus/FocusScope.d.ts +1 -1
  413. package/dist/focus/FocusScope.d.ts.map +1 -1
  414. package/dist/focus/createAutoFocus.d.ts.map +1 -1
  415. package/dist/focus/createFocusRestore.d.ts.map +1 -1
  416. package/dist/focus/createVirtualFocus.d.ts +4 -4
  417. package/dist/focus/createVirtualFocus.d.ts.map +1 -1
  418. package/dist/focus/index.d.ts +4 -4
  419. package/dist/focus/index.d.ts.map +1 -1
  420. package/dist/focus/index.js +2 -0
  421. package/dist/focus/index.jsx +2 -0
  422. package/dist/form/createFormReset.d.ts +1 -1
  423. package/dist/form/createFormValidation.d.ts +3 -3
  424. package/dist/form/createFormValidation.d.ts.map +1 -1
  425. package/dist/form/index.d.ts +2 -2
  426. package/dist/form/index.d.ts.map +1 -1
  427. package/dist/form/index.js +3 -0
  428. package/dist/form/index.jsx +3 -0
  429. package/dist/grid/GridKeyboardDelegate.d.ts +5 -5
  430. package/dist/grid/createGrid.d.ts +3 -3
  431. package/dist/grid/createGridCell.d.ts +3 -3
  432. package/dist/grid/createGridRow.d.ts +3 -3
  433. package/dist/grid/index.d.ts +5 -5
  434. package/dist/grid/index.js +2 -0
  435. package/dist/grid/index.jsx +2 -0
  436. package/dist/grid/types.d.ts +8 -8
  437. package/dist/gridlist/createGridList.d.ts +12 -4
  438. package/dist/gridlist/createGridList.d.ts.map +1 -1
  439. package/dist/gridlist/createGridListItem.d.ts +4 -4
  440. package/dist/gridlist/createGridListItem.d.ts.map +1 -1
  441. package/dist/gridlist/createGridListSection.d.ts +15 -0
  442. package/dist/gridlist/createGridListSection.d.ts.map +1 -0
  443. package/dist/gridlist/createGridListSelectionCheckbox.d.ts +3 -3
  444. package/dist/gridlist/createGridListSelectionCheckbox.d.ts.map +1 -1
  445. package/dist/gridlist/index.d.ts +5 -4
  446. package/dist/gridlist/index.d.ts.map +1 -1
  447. package/dist/gridlist/index.js +2 -0
  448. package/dist/gridlist/index.jsx +2 -0
  449. package/dist/gridlist/types.d.ts +61 -7
  450. package/dist/gridlist/types.d.ts.map +1 -1
  451. package/dist/i18n/createCollator.d.ts.map +1 -1
  452. package/dist/i18n/createDateFormatter.d.ts.map +1 -1
  453. package/dist/i18n/createFilter.d.ts.map +1 -1
  454. package/dist/i18n/createNumberFormatter.d.ts +1 -1
  455. package/dist/i18n/createNumberFormatter.d.ts.map +1 -1
  456. package/dist/i18n/createStringFormatter.d.ts +2 -2
  457. package/dist/i18n/createStringFormatter.d.ts.map +1 -1
  458. package/dist/i18n/index.d.ts +8 -8
  459. package/dist/i18n/index.d.ts.map +1 -1
  460. package/dist/i18n/index.js +3 -0
  461. package/dist/i18n/index.jsx +3 -0
  462. package/dist/i18n/locale.d.ts +2 -2
  463. package/dist/i18n/locale.d.ts.map +1 -1
  464. package/dist/i18n/utils.d.ts.map +1 -1
  465. package/dist/index.d.ts +56 -51
  466. package/dist/index.d.ts.map +1 -1
  467. package/dist/index.js +71 -17119
  468. package/dist/index.jsx +71 -0
  469. package/dist/interactions/FocusableProvider.d.ts +2 -2
  470. package/dist/interactions/FocusableProvider.d.ts.map +1 -1
  471. package/dist/interactions/PressEvent.d.ts +13 -2
  472. package/dist/interactions/PressEvent.d.ts.map +1 -1
  473. package/dist/interactions/createFocus.d.ts +1 -1
  474. package/dist/interactions/createFocus.d.ts.map +1 -1
  475. package/dist/interactions/createFocusRing.d.ts +1 -1
  476. package/dist/interactions/createFocusRing.d.ts.map +1 -1
  477. package/dist/interactions/createFocusWithin.d.ts +1 -1
  478. package/dist/interactions/createFocusWithin.d.ts.map +1 -1
  479. package/dist/interactions/createFocusable.d.ts +3 -3
  480. package/dist/interactions/createFocusable.d.ts.map +1 -1
  481. package/dist/interactions/createHover.d.ts +5 -5
  482. package/dist/interactions/createHover.d.ts.map +1 -1
  483. package/dist/interactions/createInteractionModality.d.ts +3 -4
  484. package/dist/interactions/createInteractionModality.d.ts.map +1 -1
  485. package/dist/interactions/createKeyboard.d.ts +1 -1
  486. package/dist/interactions/createKeyboard.d.ts.map +1 -1
  487. package/dist/interactions/createLongPress.d.ts +5 -5
  488. package/dist/interactions/createMove.d.ts +5 -5
  489. package/dist/interactions/createMove.d.ts.map +1 -1
  490. package/dist/interactions/createPress.d.ts +4 -4
  491. package/dist/interactions/createPress.d.ts.map +1 -1
  492. package/dist/interactions/index.d.ts +12 -12
  493. package/dist/interactions/index.d.ts.map +1 -1
  494. package/dist/interactions/index.js +10 -0
  495. package/dist/interactions/index.jsx +10 -0
  496. package/dist/label/createField.d.ts +4 -4
  497. package/dist/label/createField.d.ts.map +1 -1
  498. package/dist/label/createLabel.d.ts +7 -7
  499. package/dist/label/createLabel.d.ts.map +1 -1
  500. package/dist/label/createLabels.d.ts +1 -1
  501. package/dist/label/createLabels.d.ts.map +1 -1
  502. package/dist/label/index.d.ts +5 -5
  503. package/dist/label/index.js +4 -0
  504. package/dist/label/index.jsx +4 -0
  505. package/dist/landmark/createLandmark.d.ts +5 -5
  506. package/dist/landmark/createLandmark.d.ts.map +1 -1
  507. package/dist/landmark/index.d.ts +1 -1
  508. package/dist/landmark/index.js +2 -0
  509. package/dist/landmark/index.jsx +2 -0
  510. package/dist/link/createLink.d.ts +14 -8
  511. package/dist/link/createLink.d.ts.map +1 -1
  512. package/dist/link/index.d.ts +1 -1
  513. package/dist/link/index.js +2 -0
  514. package/dist/link/index.jsx +2 -0
  515. package/dist/listbox/createListBox.d.ts +48 -6
  516. package/dist/listbox/createListBox.d.ts.map +1 -1
  517. package/dist/listbox/createOption.d.ts +27 -4
  518. package/dist/listbox/createOption.d.ts.map +1 -1
  519. package/dist/listbox/index.d.ts +2 -2
  520. package/dist/listbox/index.d.ts.map +1 -1
  521. package/dist/listbox/index.js +2 -0
  522. package/dist/listbox/index.jsx +2 -0
  523. package/dist/live-announcer/announce.d.ts +2 -2
  524. package/dist/live-announcer/announce.d.ts.map +1 -1
  525. package/dist/live-announcer/index.d.ts +1 -1
  526. package/dist/live-announcer/index.js +2 -0
  527. package/dist/live-announcer/index.jsx +2 -0
  528. package/dist/menu/createMenu.d.ts +14 -11
  529. package/dist/menu/createMenu.d.ts.map +1 -1
  530. package/dist/menu/createMenuItem.d.ts +25 -5
  531. package/dist/menu/createMenuItem.d.ts.map +1 -1
  532. package/dist/menu/createMenuTrigger.d.ts +4 -4
  533. package/dist/menu/index.d.ts +3 -3
  534. package/dist/menu/index.d.ts.map +1 -1
  535. package/dist/menu/index.js +2 -0
  536. package/dist/menu/index.jsx +2 -0
  537. package/dist/meter/createMeter.d.ts +6 -6
  538. package/dist/meter/createMeter.d.ts.map +1 -1
  539. package/dist/meter/index.d.ts +1 -1
  540. package/dist/meter/index.js +2 -0
  541. package/dist/meter/index.jsx +2 -0
  542. package/dist/numberfield/createNumberField.d.ts +9 -8
  543. package/dist/numberfield/createNumberField.d.ts.map +1 -1
  544. package/dist/numberfield/index.d.ts +1 -1
  545. package/dist/numberfield/index.js +2 -0
  546. package/dist/numberfield/index.jsx +2 -0
  547. package/dist/overlays/ariaHideOutside.d.ts.map +1 -1
  548. package/dist/overlays/createModal.d.ts +3 -3
  549. package/dist/overlays/createModal.d.ts.map +1 -1
  550. package/dist/overlays/createOverlay.d.ts +1 -1
  551. package/dist/overlays/createOverlay.d.ts.map +1 -1
  552. package/dist/overlays/createOverlayTrigger.d.ts +6 -6
  553. package/dist/overlays/index.d.ts +6 -6
  554. package/dist/overlays/index.d.ts.map +1 -1
  555. package/dist/overlays/index.js +4 -0
  556. package/dist/overlays/index.jsx +4 -0
  557. package/dist/popover/calculatePosition.d.ts +6 -4
  558. package/dist/popover/calculatePosition.d.ts.map +1 -1
  559. package/dist/popover/createOverlayPosition.d.ts +11 -3
  560. package/dist/popover/createOverlayPosition.d.ts.map +1 -1
  561. package/dist/popover/createPopover.d.ts +4 -4
  562. package/dist/popover/createPopover.d.ts.map +1 -1
  563. package/dist/popover/index.d.ts +3 -3
  564. package/dist/popover/index.js +2 -0
  565. package/dist/popover/index.jsx +2 -0
  566. package/dist/progress/createProgressBar.d.ts +7 -5
  567. package/dist/progress/createProgressBar.d.ts.map +1 -1
  568. package/dist/progress/index.d.ts +1 -1
  569. package/dist/progress/index.js +2 -0
  570. package/dist/progress/index.jsx +2 -0
  571. package/dist/radio/createRadio.d.ts +9 -7
  572. package/dist/radio/createRadio.d.ts.map +1 -1
  573. package/dist/radio/createRadioGroup.d.ts +10 -10
  574. package/dist/radio/createRadioGroup.d.ts.map +1 -1
  575. package/dist/radio/createRadioGroupState.d.ts +3 -3
  576. package/dist/radio/createRadioGroupState.d.ts.map +1 -1
  577. package/dist/radio/index.d.ts +3 -3
  578. package/dist/radio/index.d.ts.map +1 -1
  579. package/dist/radio/index.js +2 -0
  580. package/dist/radio/index.jsx +2 -0
  581. package/dist/searchfield/createSearchField.d.ts +7 -7
  582. package/dist/searchfield/createSearchField.d.ts.map +1 -1
  583. package/dist/searchfield/index.d.ts +2 -2
  584. package/dist/searchfield/index.js +2 -0
  585. package/dist/searchfield/index.jsx +2 -0
  586. package/dist/select/createHiddenSelect.d.ts +4 -4
  587. package/dist/select/createHiddenSelect.d.ts.map +1 -1
  588. package/dist/select/createSelect.d.ts +14 -6
  589. package/dist/select/createSelect.d.ts.map +1 -1
  590. package/dist/select/index.d.ts +2 -2
  591. package/dist/select/index.d.ts.map +1 -1
  592. package/dist/select/index.js +2 -0
  593. package/dist/select/index.jsx +2 -0
  594. package/dist/selection/DOMLayoutDelegate.d.ts +58 -0
  595. package/dist/selection/DOMLayoutDelegate.d.ts.map +1 -0
  596. package/dist/selection/ListKeyboardDelegate.d.ts +95 -0
  597. package/dist/selection/ListKeyboardDelegate.d.ts.map +1 -0
  598. package/dist/selection/constants.d.ts +15 -0
  599. package/dist/selection/constants.d.ts.map +1 -0
  600. package/dist/selection/createCollectionRowInteraction.d.ts +13 -0
  601. package/dist/selection/createCollectionRowInteraction.d.ts.map +1 -0
  602. package/dist/selection/createScrollIntoViewOnFocus.d.ts +31 -0
  603. package/dist/selection/createScrollIntoViewOnFocus.d.ts.map +1 -0
  604. package/dist/selection/createSelectableCollection.d.ts +69 -0
  605. package/dist/selection/createSelectableCollection.d.ts.map +1 -0
  606. package/dist/selection/createSelectableItem.d.ts +154 -0
  607. package/dist/selection/createSelectableItem.d.ts.map +1 -0
  608. package/dist/selection/createSelectableList.d.ts +43 -0
  609. package/dist/selection/createSelectableList.d.ts.map +1 -0
  610. package/dist/selection/createTypeSelect.d.ts +2 -2
  611. package/dist/selection/createTypeSelect.d.ts.map +1 -1
  612. package/dist/selection/index.d.ts +10 -1
  613. package/dist/selection/index.d.ts.map +1 -1
  614. package/dist/selection/index.js +4 -0
  615. package/dist/selection/index.jsx +4 -0
  616. package/dist/selection/selectItem.d.ts +29 -0
  617. package/dist/selection/selectItem.d.ts.map +1 -0
  618. package/dist/selection/utils.d.ts +40 -0
  619. package/dist/selection/utils.d.ts.map +1 -0
  620. package/dist/separator/createSeparator.d.ts +9 -5
  621. package/dist/separator/createSeparator.d.ts.map +1 -1
  622. package/dist/separator/index.d.ts +1 -1
  623. package/dist/separator/index.js +2 -0
  624. package/dist/separator/index.jsx +2 -0
  625. package/dist/slider/createSlider.d.ts +11 -7
  626. package/dist/slider/createSlider.d.ts.map +1 -1
  627. package/dist/slider/index.d.ts +2 -2
  628. package/dist/slider/index.js +2 -0
  629. package/dist/slider/index.jsx +2 -0
  630. package/dist/ssr/index.d.ts +18 -1
  631. package/dist/ssr/index.d.ts.map +1 -1
  632. package/dist/ssr/index.js +299 -0
  633. package/dist/ssr/index.js.map +1 -0
  634. package/dist/ssr/index.jsx +292 -0
  635. package/dist/ssr/index.jsx.map +1 -0
  636. package/dist/steplist/createStepList.d.ts +36 -0
  637. package/dist/steplist/createStepList.d.ts.map +1 -0
  638. package/dist/steplist/index.d.ts +2 -0
  639. package/dist/steplist/index.d.ts.map +1 -0
  640. package/dist/steplist/index.js +2 -0
  641. package/dist/steplist/index.jsx +2 -0
  642. package/dist/switch/createSwitch.d.ts +10 -4
  643. package/dist/switch/createSwitch.d.ts.map +1 -1
  644. package/dist/switch/index.d.ts +1 -1
  645. package/dist/switch/index.js +2 -0
  646. package/dist/switch/index.jsx +2 -0
  647. package/dist/table/createTable.d.ts +3 -3
  648. package/dist/table/createTable.d.ts.map +1 -1
  649. package/dist/table/createTableCell.d.ts +3 -3
  650. package/dist/table/createTableCell.d.ts.map +1 -1
  651. package/dist/table/createTableColumnHeader.d.ts +3 -3
  652. package/dist/table/createTableColumnHeader.d.ts.map +1 -1
  653. package/dist/table/createTableColumnResize.d.ts +41 -0
  654. package/dist/table/createTableColumnResize.d.ts.map +1 -0
  655. package/dist/table/createTableHeaderRow.d.ts +3 -3
  656. package/dist/table/createTableRow.d.ts +4 -4
  657. package/dist/table/createTableRow.d.ts.map +1 -1
  658. package/dist/table/createTableRowGroup.d.ts +2 -2
  659. package/dist/table/createTableRowGroup.d.ts.map +1 -1
  660. package/dist/table/createTableSelectAllCheckbox.d.ts +3 -3
  661. package/dist/table/createTableSelectionCheckbox.d.ts +3 -3
  662. package/dist/table/index.d.ts +11 -9
  663. package/dist/table/index.d.ts.map +1 -1
  664. package/dist/table/index.js +2 -0
  665. package/dist/table/index.jsx +2 -0
  666. package/dist/table/types.d.ts +41 -7
  667. package/dist/table/types.d.ts.map +1 -1
  668. package/dist/tabs/createTabs.d.ts +32 -28
  669. package/dist/tabs/createTabs.d.ts.map +1 -1
  670. package/dist/tabs/index.d.ts +1 -1
  671. package/dist/tabs/index.js +2 -0
  672. package/dist/tabs/index.jsx +2 -0
  673. package/dist/tag/createTag.d.ts +4 -2
  674. package/dist/tag/createTag.d.ts.map +1 -1
  675. package/dist/tag/createTagGroup.d.ts +5 -5
  676. package/dist/tag/createTagGroup.d.ts.map +1 -1
  677. package/dist/tag/index.d.ts +2 -2
  678. package/dist/tag/index.d.ts.map +1 -1
  679. package/dist/tag/index.js +2 -0
  680. package/dist/tag/index.jsx +2 -0
  681. package/dist/textfield/createTextField.d.ts +17 -11
  682. package/dist/textfield/createTextField.d.ts.map +1 -1
  683. package/dist/textfield/index.d.ts +1 -1
  684. package/dist/textfield/index.d.ts.map +1 -1
  685. package/dist/textfield/index.js +2 -0
  686. package/dist/textfield/index.jsx +2 -0
  687. package/dist/toast/createToast.d.ts +2 -2
  688. package/dist/toast/createToast.d.ts.map +1 -1
  689. package/dist/toast/createToastRegion.d.ts +5 -3
  690. package/dist/toast/createToastRegion.d.ts.map +1 -1
  691. package/dist/toast/index.d.ts +2 -2
  692. package/dist/toast/index.d.ts.map +1 -1
  693. package/dist/toast/index.js +2 -0
  694. package/dist/toast/index.jsx +2 -0
  695. package/dist/toggle/createToggle.d.ts +13 -9
  696. package/dist/toggle/createToggle.d.ts.map +1 -1
  697. package/dist/toggle/createToggleState.d.ts +2 -2
  698. package/dist/toggle/createToggleState.d.ts.map +1 -1
  699. package/dist/toggle/index.d.ts +4 -4
  700. package/dist/toggle/index.d.ts.map +1 -1
  701. package/dist/toggle/index.js +3 -0
  702. package/dist/toggle/index.jsx +3 -0
  703. package/dist/toolbar/createToolbar.d.ts +9 -9
  704. package/dist/toolbar/createToolbar.d.ts.map +1 -1
  705. package/dist/toolbar/index.d.ts +1 -1
  706. package/dist/toolbar/index.d.ts.map +1 -1
  707. package/dist/toolbar/index.js +2 -0
  708. package/dist/toolbar/index.jsx +2 -0
  709. package/dist/tooltip/createTooltip.d.ts +5 -5
  710. package/dist/tooltip/createTooltip.d.ts.map +1 -1
  711. package/dist/tooltip/createTooltipTrigger.d.ts +10 -5
  712. package/dist/tooltip/createTooltipTrigger.d.ts.map +1 -1
  713. package/dist/tooltip/index.d.ts +2 -2
  714. package/dist/tooltip/index.js +2 -0
  715. package/dist/tooltip/index.jsx +2 -0
  716. package/dist/tree/createTree.d.ts +8 -4
  717. package/dist/tree/createTree.d.ts.map +1 -1
  718. package/dist/tree/createTreeItem.d.ts +4 -4
  719. package/dist/tree/createTreeItem.d.ts.map +1 -1
  720. package/dist/tree/createTreeSelectionCheckbox.d.ts +3 -3
  721. package/dist/tree/createTreeSelectionCheckbox.d.ts.map +1 -1
  722. package/dist/tree/index.d.ts +4 -4
  723. package/dist/tree/index.js +2 -0
  724. package/dist/tree/index.jsx +2 -0
  725. package/dist/tree/types.d.ts +20 -6
  726. package/dist/tree/types.d.ts.map +1 -1
  727. package/dist/utils/animation.d.ts +60 -0
  728. package/dist/utils/animation.d.ts.map +1 -0
  729. package/dist/utils/createDescription.d.ts +2 -2
  730. package/dist/utils/createDescription.d.ts.map +1 -1
  731. package/dist/utils/dom.d.ts +48 -2
  732. package/dist/utils/dom.d.ts.map +1 -1
  733. package/dist/utils/env.d.ts.map +1 -1
  734. package/dist/utils/focus.d.ts +1 -1
  735. package/dist/utils/focus.d.ts.map +1 -1
  736. package/dist/utils/geometry.d.ts.map +1 -1
  737. package/dist/utils/index.d.ts +15 -12
  738. package/dist/utils/index.d.ts.map +1 -1
  739. package/dist/utils/index.js +5 -0
  740. package/dist/utils/index.jsx +5 -0
  741. package/dist/utils/keyboard.d.ts +17 -0
  742. package/dist/utils/keyboard.d.ts.map +1 -0
  743. package/dist/utils/mergeProps.d.ts.map +1 -1
  744. package/dist/utils/reactivity.d.ts +1 -1
  745. package/dist/utils/scrollIntoView.d.ts +30 -0
  746. package/dist/utils/scrollIntoView.d.ts.map +1 -0
  747. package/dist/visually-hidden/createVisuallyHidden.d.ts +2 -2
  748. package/dist/visually-hidden/createVisuallyHidden.d.ts.map +1 -1
  749. package/dist/visually-hidden/index.d.ts +1 -1
  750. package/dist/visually-hidden/index.js +2 -0
  751. package/dist/visually-hidden/index.jsx +2 -0
  752. package/package.json +334 -33
  753. package/src/actiongroup/createActionGroup.ts +101 -91
  754. package/src/actiongroup/index.ts +1 -1
  755. package/src/autocomplete/createAutocomplete.ts +177 -148
  756. package/src/autocomplete/index.ts +1 -1
  757. package/src/breadcrumbs/createBreadcrumbs.ts +33 -42
  758. package/src/breadcrumbs/index.ts +1 -1
  759. package/src/button/createButton.ts +102 -73
  760. package/src/button/createToggleButton.ts +10 -10
  761. package/src/button/createToggleButtonGroup.ts +25 -32
  762. package/src/button/index.ts +6 -9
  763. package/src/button/types.ts +18 -12
  764. package/src/calendar/createCalendar.ts +64 -29
  765. package/src/calendar/createCalendarCell.ts +115 -46
  766. package/src/calendar/createCalendarGrid.ts +97 -41
  767. package/src/calendar/createCalendarMonthPicker.ts +105 -0
  768. package/src/calendar/createCalendarYearPicker.ts +144 -0
  769. package/src/calendar/createRangeCalendar.ts +68 -31
  770. package/src/calendar/createRangeCalendarCell.ts +92 -31
  771. package/src/calendar/index.ts +21 -8
  772. package/src/calendar/intl/index.ts +210 -0
  773. package/src/calendar/utils.ts +231 -0
  774. package/src/checkbox/createCheckbox.ts +23 -21
  775. package/src/checkbox/createCheckboxGroup.ts +68 -44
  776. package/src/checkbox/createCheckboxGroupItem.ts +26 -41
  777. package/src/checkbox/createCheckboxGroupState.ts +3 -22
  778. package/src/checkbox/index.ts +8 -10
  779. package/src/collections/index.ts +33 -29
  780. package/src/color/createColorArea.ts +232 -154
  781. package/src/color/createColorField.ts +107 -58
  782. package/src/color/createColorSlider.ts +231 -73
  783. package/src/color/createColorSwatch.ts +38 -13
  784. package/src/color/createColorWheel.ts +208 -83
  785. package/src/color/index.ts +6 -6
  786. package/src/color/types.ts +98 -16
  787. package/src/combobox/createComboBox.ts +157 -100
  788. package/src/combobox/index.ts +1 -1
  789. package/src/combobox/intl/index.ts +5 -5
  790. package/src/datepicker/createDateField.ts +192 -39
  791. package/src/datepicker/createDatePicker.ts +260 -67
  792. package/src/datepicker/createDatePickerGroup.ts +149 -0
  793. package/src/datepicker/createDateRangePicker.ts +105 -57
  794. package/src/datepicker/createDateSegment.ts +188 -96
  795. package/src/datepicker/createTimeField.ts +38 -34
  796. package/src/datepicker/createTimeSegment.ts +67 -85
  797. package/src/datepicker/index.ts +13 -14
  798. package/src/dialog/createDialog.ts +45 -38
  799. package/src/dialog/index.ts +2 -2
  800. package/src/dialog/types.ts +4 -4
  801. package/src/disclosure/createDisclosure.ts +138 -33
  802. package/src/disclosure/createDisclosureGroup.ts +8 -21
  803. package/src/disclosure/index.ts +2 -2
  804. package/src/dnd/createDrag.ts +19 -25
  805. package/src/dnd/createDraggableCollection.ts +4 -4
  806. package/src/dnd/createDraggableItem.ts +20 -19
  807. package/src/dnd/createDrop.ts +42 -51
  808. package/src/dnd/createDroppableCollection.ts +293 -173
  809. package/src/dnd/createDroppableItem.ts +34 -34
  810. package/src/dnd/index.ts +23 -12
  811. package/src/dnd/types.ts +4 -7
  812. package/src/dnd/utils.ts +58 -47
  813. package/src/focus/FocusScope.tsx +301 -176
  814. package/src/focus/createAutoFocus.ts +4 -20
  815. package/src/focus/createFocusRestore.ts +15 -28
  816. package/src/focus/createVirtualFocus.ts +20 -36
  817. package/src/focus/index.ts +4 -8
  818. package/src/form/createFormReset.ts +4 -4
  819. package/src/form/createFormValidation.ts +23 -39
  820. package/src/form/index.ts +2 -5
  821. package/src/grid/GridKeyboardDelegate.ts +30 -30
  822. package/src/grid/createGrid.ts +36 -36
  823. package/src/grid/createGridCell.ts +18 -18
  824. package/src/grid/createGridRow.ts +14 -14
  825. package/src/grid/index.ts +5 -5
  826. package/src/grid/types.ts +8 -8
  827. package/src/gridlist/createGridList.ts +172 -64
  828. package/src/gridlist/createGridListItem.ts +98 -121
  829. package/src/gridlist/createGridListSection.ts +54 -0
  830. package/src/gridlist/createGridListSelectionCheckbox.ts +12 -9
  831. package/src/gridlist/index.ts +7 -4
  832. package/src/gridlist/types.ts +58 -7
  833. package/src/i18n/createCollator.ts +5 -18
  834. package/src/i18n/createDateFormatter.ts +5 -13
  835. package/src/i18n/createFilter.ts +11 -24
  836. package/src/i18n/createNumberFormatter.ts +4 -6
  837. package/src/i18n/createStringFormatter.ts +19 -15
  838. package/src/i18n/index.ts +8 -11
  839. package/src/i18n/locale.tsx +15 -40
  840. package/src/i18n/utils.ts +35 -39
  841. package/src/index.ts +111 -172
  842. package/src/interactions/FocusableProvider.tsx +3 -7
  843. package/src/interactions/PressEvent.ts +18 -4
  844. package/src/interactions/createFocus.ts +12 -8
  845. package/src/interactions/createFocusRing.ts +21 -19
  846. package/src/interactions/createFocusWithin.ts +20 -13
  847. package/src/interactions/createFocusable.ts +15 -16
  848. package/src/interactions/createHover.ts +70 -55
  849. package/src/interactions/createInteractionModality.ts +96 -94
  850. package/src/interactions/createKeyboard.ts +12 -2
  851. package/src/interactions/createLongPress.ts +23 -23
  852. package/src/interactions/createMove.ts +72 -62
  853. package/src/interactions/createPress.ts +192 -92
  854. package/src/interactions/index.ts +24 -16
  855. package/src/label/createField.ts +18 -19
  856. package/src/label/createLabel.ts +18 -30
  857. package/src/label/createLabels.ts +8 -12
  858. package/src/label/index.ts +5 -5
  859. package/src/landmark/createLandmark.ts +30 -51
  860. package/src/landmark/index.ts +1 -1
  861. package/src/link/createLink.ts +83 -56
  862. package/src/link/index.ts +1 -1
  863. package/src/listbox/createListBox.ts +198 -66
  864. package/src/listbox/createOption.ts +112 -71
  865. package/src/listbox/index.ts +2 -6
  866. package/src/live-announcer/announce.ts +44 -71
  867. package/src/live-announcer/index.ts +1 -1
  868. package/src/menu/createMenu.ts +171 -65
  869. package/src/menu/createMenuItem.ts +315 -51
  870. package/src/menu/createMenuTrigger.ts +15 -15
  871. package/src/menu/index.ts +3 -12
  872. package/src/meter/createMeter.ts +7 -15
  873. package/src/meter/index.ts +1 -1
  874. package/src/numberfield/createNumberField.ts +205 -80
  875. package/src/numberfield/index.ts +1 -1
  876. package/src/overlays/ariaHideOutside.ts +14 -10
  877. package/src/overlays/createInteractOutside.ts +21 -18
  878. package/src/overlays/createModal.tsx +17 -17
  879. package/src/overlays/createOverlay.ts +38 -8
  880. package/src/overlays/createOverlayTrigger.ts +16 -16
  881. package/src/overlays/createPreventScroll.ts +46 -24
  882. package/src/overlays/index.ts +6 -17
  883. package/src/popover/calculatePosition.ts +134 -124
  884. package/src/popover/createOverlayPosition.ts +55 -40
  885. package/src/popover/createPopover.ts +42 -17
  886. package/src/popover/index.ts +3 -3
  887. package/src/progress/createProgressBar.ts +31 -32
  888. package/src/progress/index.ts +1 -1
  889. package/src/radio/createRadio.ts +114 -75
  890. package/src/radio/createRadioGroup.ts +83 -77
  891. package/src/radio/createRadioGroupState.ts +7 -31
  892. package/src/radio/index.ts +3 -8
  893. package/src/searchfield/createSearchField.ts +57 -29
  894. package/src/searchfield/index.ts +2 -2
  895. package/src/select/createHiddenSelect.tsx +57 -44
  896. package/src/select/createSelect.ts +146 -73
  897. package/src/select/index.ts +2 -7
  898. package/src/selection/DOMLayoutDelegate.ts +102 -0
  899. package/src/selection/ListKeyboardDelegate.ts +398 -0
  900. package/src/selection/constants.ts +16 -0
  901. package/src/selection/createCollectionRowInteraction.ts +209 -0
  902. package/src/selection/createScrollIntoViewOnFocus.ts +65 -0
  903. package/src/selection/createSelectableCollection.ts +645 -0
  904. package/src/selection/createSelectableItem.ts +498 -0
  905. package/src/selection/createSelectableList.ts +93 -0
  906. package/src/selection/createTypeSelect.ts +120 -59
  907. package/src/selection/index.ts +32 -1
  908. package/src/selection/selectItem.ts +80 -0
  909. package/src/selection/utils.ts +82 -0
  910. package/src/separator/createSeparator.ts +20 -25
  911. package/src/separator/index.ts +1 -1
  912. package/src/slider/createSlider.ts +128 -112
  913. package/src/slider/index.ts +2 -2
  914. package/src/ssr/index.tsx +38 -46
  915. package/src/steplist/createStepList.ts +106 -0
  916. package/src/steplist/index.ts +8 -0
  917. package/src/switch/createSwitch.ts +19 -14
  918. package/src/switch/index.ts +1 -1
  919. package/src/table/createTable.ts +192 -95
  920. package/src/table/createTableCell.ts +17 -16
  921. package/src/table/createTableColumnHeader.ts +67 -20
  922. package/src/table/createTableColumnResize.ts +256 -0
  923. package/src/table/createTableHeaderRow.ts +7 -7
  924. package/src/table/createTableRow.ts +206 -91
  925. package/src/table/createTableRowGroup.ts +5 -7
  926. package/src/table/createTableSelectAllCheckbox.ts +14 -14
  927. package/src/table/createTableSelectionCheckbox.ts +8 -8
  928. package/src/table/index.ts +14 -9
  929. package/src/table/types.ts +43 -7
  930. package/src/tabs/createTabs.ts +123 -111
  931. package/src/tabs/index.ts +1 -1
  932. package/src/tag/createTag.ts +57 -50
  933. package/src/tag/createTagGroup.ts +47 -41
  934. package/src/tag/index.ts +2 -6
  935. package/src/textfield/createTextField.ts +67 -35
  936. package/src/textfield/index.ts +1 -5
  937. package/src/toast/createToast.ts +29 -26
  938. package/src/toast/createToastRegion.ts +169 -26
  939. package/src/toast/index.ts +2 -6
  940. package/src/toggle/createToggle.ts +115 -53
  941. package/src/toggle/createToggleState.ts +2 -10
  942. package/src/toggle/index.ts +4 -5
  943. package/src/toolbar/createToolbar.ts +214 -230
  944. package/src/toolbar/index.ts +1 -1
  945. package/src/tooltip/createTooltip.ts +11 -24
  946. package/src/tooltip/createTooltipTrigger.ts +61 -49
  947. package/src/tooltip/index.ts +2 -2
  948. package/src/tree/createTree.ts +128 -72
  949. package/src/tree/createTreeItem.ts +120 -135
  950. package/src/tree/createTreeSelectionCheckbox.ts +11 -8
  951. package/src/tree/index.ts +4 -4
  952. package/src/tree/types.ts +20 -6
  953. package/src/utils/animation.ts +151 -0
  954. package/src/utils/createDescription.ts +6 -23
  955. package/src/utils/dom.ts +265 -68
  956. package/src/utils/env.ts +9 -11
  957. package/src/utils/events.ts +7 -7
  958. package/src/utils/filterDOMProps.ts +49 -49
  959. package/src/utils/focus.ts +60 -68
  960. package/src/utils/geometry.ts +1 -4
  961. package/src/utils/globalListeners.ts +9 -9
  962. package/src/utils/index.ts +20 -22
  963. package/src/utils/keyboard.ts +25 -0
  964. package/src/utils/mergeProps.ts +49 -15
  965. package/src/utils/platform.ts +2 -2
  966. package/src/utils/reactivity.ts +3 -3
  967. package/src/utils/scrollIntoView.ts +181 -0
  968. package/src/utils/textSelection.ts +16 -16
  969. package/src/visually-hidden/createVisuallyHidden.ts +16 -28
  970. package/src/visually-hidden/index.ts +1 -1
  971. package/dist/i18n/NumberFormatter.d.ts +0 -43
  972. package/dist/i18n/NumberFormatter.d.ts.map +0 -1
  973. package/dist/index.js.map +0 -1
  974. package/dist/index.ssr.js +0 -17082
  975. package/dist/index.ssr.js.map +0 -1
  976. package/src/i18n/NumberFormatter.ts +0 -266
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.jsx","names":[],"sources":["../../src/table/createTable.ts","../../src/table/createTableHeaderRow.ts","../../src/table/createTableColumnHeader.ts","../../src/table/createTableRow.ts","../../src/table/createTableCell.ts","../../src/table/createTableRowGroup.ts","../../src/table/createTableSelectionCheckbox.ts","../../src/table/createTableSelectAllCheckbox.ts","../../src/table/createTableColumnResize.ts"],"sourcesContent":["/**\n * createTable - Provides accessibility for a table component.\n * Based on @react-aria/table/useTable.\n */\n\nimport { createMemo, createEffect, on, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport { createId } from \"@proyecto-viviana/solid-stately\";\nimport type { TableState, TableCollection, Key, GridNode } from \"@proyecto-viviana/solid-stately\";\nimport type { AriaTableProps, TableAria } from \"./types\";\nimport { useLocale } from \"../i18n\";\nimport { announce } from \"../live-announcer\";\nimport { scrollIntoViewport } from \"../utils\";\nimport { getInteractionModality } from \"../interactions/createInteractionModality\";\n\n// Global map to store table metadata for child components\nconst tableMap = new WeakMap<\n object,\n {\n tableId: string;\n actions: { onRowAction?: (key: Key) => void; onCellAction?: (key: Key) => void };\n shouldSelectOnPressUp?: boolean;\n focusMode?: \"row\" | \"cell\";\n }\n>();\n\n/**\n * Get the table metadata for child components.\n */\nexport function getTableData<T>(state: TableState<T, TableCollection<T>>) {\n return tableMap.get(state);\n}\n\n/**\n * Helper to get cells from a row by iterating children\n */\nfunction getChildCells<T>(collection: TableCollection<T>, rowKey: Key): GridNode<T>[] {\n const children = collection.getChildren(rowKey);\n return [...children].filter((node) => node.type === \"cell\" || node.type === \"rowheader\");\n}\n\n/**\n * Helper to get cell at specific index in a row\n */\nfunction getCellAtIndex<T>(\n collection: TableCollection<T>,\n rowKey: Key,\n index: number,\n): GridNode<T> | null {\n const cells = getChildCells(collection, rowKey);\n return cells[index] ?? null;\n}\n\n/**\n * Helper to check if a node is a cell\n */\nfunction isCell<T>(node: GridNode<T> | null): boolean {\n return node?.type === \"cell\" || node?.type === \"rowheader\";\n}\n\n/**\n * Helper to check if a node is a row\n */\nfunction isRow<T>(node: GridNode<T> | null): boolean {\n return node?.type === \"item\";\n}\n\n/**\n * Creates accessibility props for a table component.\n */\nexport function createTable<T extends object>(\n props: Accessor<AriaTableProps>,\n state: Accessor<TableState<T, TableCollection<T>>>,\n ref: Accessor<HTMLTableElement | null>,\n): TableAria {\n const id = createId(props().id);\n const locale = useLocale();\n\n // Track previous sort descriptor for announcements\n let prevSortDescriptor: { column: Key; direction: \"ascending\" | \"descending\" } | null = null;\n let isFirstRender = true;\n let typeaheadBuffer = \"\";\n let typeaheadTimeout: ReturnType<typeof setTimeout> | undefined;\n\n // Store metadata for child components\n const storeTableData = () => {\n const s = state();\n const p = props();\n tableMap.set(s, {\n tableId: id,\n actions: {\n onRowAction: p.onRowAction,\n onCellAction: p.onCellAction,\n },\n shouldSelectOnPressUp: p.shouldSelectOnPressUp,\n focusMode: p.focusMode,\n });\n };\n\n // Update table data whenever props/state changes\n createMemo(() => {\n storeTableData();\n });\n\n // Announce sort changes (only after initial render)\n createEffect(\n on(\n () => state().sortDescriptor,\n (sortDescriptor) => {\n if (isFirstRender) {\n isFirstRender = false;\n prevSortDescriptor = sortDescriptor;\n return;\n }\n\n if (\n sortDescriptor &&\n (sortDescriptor.column !== prevSortDescriptor?.column ||\n sortDescriptor.direction !== prevSortDescriptor?.direction)\n ) {\n const collection = state().collection;\n const column = collection.columns.find((c) => c.key === sortDescriptor.column);\n const columnName = column?.textValue ?? String(sortDescriptor.column);\n const directionText =\n sortDescriptor.direction === \"ascending\" ? \"ascending\" : \"descending\";\n\n announce(`Sorted by ${columnName}, ${directionText}`, \"assertive\", 500);\n }\n\n prevSortDescriptor = sortDescriptor;\n },\n ),\n );\n\n // Keyboard navigation handler with full 2D navigation\n const onKeyDown = (e: KeyboardEvent) => {\n const s = state();\n const collection = s.collection;\n const p = props();\n const focusMode = p.focusMode ?? \"row\";\n const isRTL = locale().direction === \"rtl\";\n const setFocusedKey = (key: Key) => {\n s.setFocusedKey(key);\n };\n const runTypeahead = (focusedKey: Key, focusedItem: GridNode<T>) => {\n if (e.key.length !== 1 || e.ctrlKey || e.metaKey || e.altKey) {\n return false;\n }\n\n // A leading Spacebar is a selection/action key, not the start of a type-ahead\n // search. Mirror upstream useTypeSelect (`search.length === 0 && character === ' '`)\n // and let it fall through so the focused row's own Space handler toggles selection.\n // Once a search is active, Space continues the query as normal.\n if (e.key === \" \" && typeaheadBuffer.length === 0) {\n return false;\n }\n\n typeaheadBuffer += e.key.toLocaleLowerCase();\n if (typeaheadTimeout) {\n clearTimeout(typeaheadTimeout);\n }\n typeaheadTimeout = setTimeout(() => {\n typeaheadBuffer = \"\";\n typeaheadTimeout = undefined;\n }, 500);\n\n const rows = Array.from(collection).filter((node) => !s.isDisabled(node.key));\n if (rows.length === 0) {\n return true;\n }\n\n const currentRowKey =\n isCell(focusedItem) && focusedItem.parentKey != null ? focusedItem.parentKey : focusedKey;\n const currentIndex = rows.findIndex((node) => node.key === currentRowKey);\n const orderedRows =\n currentIndex >= 0\n ? [...rows.slice(currentIndex + 1), ...rows.slice(0, currentIndex + 1)]\n : rows;\n const match = orderedRows.find((node) =>\n collection.getTextValue(node.key).toLocaleLowerCase().startsWith(typeaheadBuffer),\n );\n\n if (match) {\n e.preventDefault();\n setFocusedKey(match.key);\n }\n\n return true;\n };\n\n if (s.isKeyboardNavigationDisabled) {\n return;\n }\n\n const focusedKey = s.focusedKey;\n if (focusedKey == null) {\n // If nothing is focused, focus the first item\n if (e.key === \"ArrowDown\" || e.key === \"ArrowUp\" || e.key === \"Home\" || e.key === \"End\") {\n const firstKey = collection.getFirstKey();\n if (firstKey != null) {\n e.preventDefault();\n setFocusedKey(firstKey);\n }\n }\n return;\n }\n\n const focusedItem = collection.getItem(focusedKey);\n if (!focusedItem) return;\n\n let nextKey: Key | null = null;\n\n switch (e.key) {\n case \"ArrowDown\": {\n e.preventDefault();\n // If focused on a cell, move to the same column in the next row\n if (isCell(focusedItem) && focusedItem.parentKey != null) {\n const nextRowKey = collection.getKeyAfter(focusedItem.parentKey);\n if (nextRowKey != null) {\n const cellIndex = focusedItem.index;\n const nextCell = getCellAtIndex(collection, nextRowKey, cellIndex);\n nextKey = nextCell?.key ?? nextRowKey;\n }\n } else {\n // Move to next row\n nextKey = collection.getKeyAfter(focusedKey);\n }\n break;\n }\n\n case \"ArrowUp\": {\n e.preventDefault();\n // If focused on a cell, move to the same column in the previous row\n if (isCell(focusedItem) && focusedItem.parentKey != null) {\n const prevRowKey = collection.getKeyBefore(focusedItem.parentKey);\n if (prevRowKey != null) {\n const cellIndex = focusedItem.index;\n const prevCell = getCellAtIndex(collection, prevRowKey, cellIndex);\n nextKey = prevCell?.key ?? prevRowKey;\n }\n } else {\n // Move to previous row\n nextKey = collection.getKeyBefore(focusedKey);\n }\n break;\n }\n\n case \"ArrowRight\": {\n e.preventDefault();\n const goNext = !isRTL;\n\n if (isRow(focusedItem)) {\n // If on a row, go to the first/last cell\n const cells = getChildCells(collection, focusedKey);\n if (cells.length > 0) {\n nextKey = goNext ? cells[0].key : cells[cells.length - 1].key;\n }\n } else if (isCell(focusedItem) && focusedItem.parentKey != null) {\n // If on a cell, go to the next/prev cell\n const cells = getChildCells(collection, focusedItem.parentKey);\n const currentIndex = focusedItem.index;\n const targetIndex = goNext ? currentIndex + 1 : currentIndex - 1;\n\n if (targetIndex >= 0 && targetIndex < cells.length) {\n nextKey = cells[targetIndex].key;\n } else if (focusMode === \"row\") {\n // Wrap to row\n nextKey = focusedItem.parentKey;\n } else {\n // Wrap to first/last cell\n nextKey = goNext ? cells[0].key : cells[cells.length - 1].key;\n }\n }\n break;\n }\n\n case \"ArrowLeft\": {\n e.preventDefault();\n const goNext = isRTL;\n\n if (isRow(focusedItem)) {\n // If on a row, go to the last/first cell\n const cells = getChildCells(collection, focusedKey);\n if (cells.length > 0) {\n nextKey = goNext ? cells[0].key : cells[cells.length - 1].key;\n }\n } else if (isCell(focusedItem) && focusedItem.parentKey != null) {\n // If on a cell, go to the prev/next cell\n const cells = getChildCells(collection, focusedItem.parentKey);\n const currentIndex = focusedItem.index;\n const targetIndex = goNext ? currentIndex + 1 : currentIndex - 1;\n\n if (targetIndex >= 0 && targetIndex < cells.length) {\n nextKey = cells[targetIndex].key;\n } else if (focusMode === \"row\") {\n // Wrap to row\n nextKey = focusedItem.parentKey;\n } else {\n // Wrap to first/last cell\n nextKey = goNext ? cells[0].key : cells[cells.length - 1].key;\n }\n }\n break;\n }\n\n case \"Home\": {\n e.preventDefault();\n if (e.ctrlKey) {\n // Ctrl+Home: Go to first row/cell\n const firstRowKey = collection.getFirstKey();\n if (firstRowKey != null) {\n if (isCell(focusedItem) || focusMode === \"cell\") {\n const cells = getChildCells(collection, firstRowKey);\n nextKey = cells[0]?.key ?? firstRowKey;\n } else {\n nextKey = firstRowKey;\n }\n }\n } else if (isCell(focusedItem) && focusedItem.parentKey != null) {\n // Home: Go to first cell in current row\n const cells = getChildCells(collection, focusedItem.parentKey);\n nextKey = cells[0]?.key ?? null;\n } else {\n // On row: go to first row\n nextKey = collection.getFirstKey();\n }\n break;\n }\n\n case \"End\": {\n e.preventDefault();\n if (e.ctrlKey) {\n // Ctrl+End: Go to last row/cell\n const lastRowKey = collection.getLastKey();\n if (lastRowKey != null) {\n if (isCell(focusedItem) || focusMode === \"cell\") {\n const cells = getChildCells(collection, lastRowKey);\n nextKey = cells[cells.length - 1]?.key ?? lastRowKey;\n } else {\n nextKey = lastRowKey;\n }\n }\n } else if (isCell(focusedItem) && focusedItem.parentKey != null) {\n // End: Go to last cell in current row\n const cells = getChildCells(collection, focusedItem.parentKey);\n nextKey = cells[cells.length - 1]?.key ?? null;\n } else {\n // On row: go to last row\n nextKey = collection.getLastKey();\n }\n break;\n }\n\n case \"PageDown\": {\n e.preventDefault();\n // Move down by roughly a page (using DOM measurements if available)\n const el = ref();\n if (el && el.clientHeight > 0) {\n const visibleHeight = el.clientHeight;\n let currentKey: Key | null = focusedKey;\n let traveled = 0;\n\n // If on a cell, start from the parent row\n if (isCell(focusedItem) && focusedItem.parentKey != null) {\n currentKey = focusedItem.parentKey;\n }\n\n // Move down until we've traveled approximately one page\n while (currentKey != null && traveled < visibleHeight) {\n const next = collection.getKeyAfter(currentKey);\n if (next == null) break;\n\n // Estimate row height (default to 40px if we can't measure)\n const rowElement = el.querySelector(`[data-key=\"${currentKey}\"]`);\n traveled += rowElement?.clientHeight ?? 40;\n currentKey = next;\n }\n\n if (currentKey != null) {\n // If we started on a cell, focus the same column in the new row\n if (isCell(focusedItem)) {\n const cellIndex = focusedItem.index;\n const targetCell = getCellAtIndex(collection, currentKey, cellIndex);\n nextKey = targetCell?.key ?? currentKey;\n } else {\n nextKey = currentKey;\n }\n }\n } else {\n // Fallback: move 10 rows\n let count = 10;\n let current: Key | null =\n isCell(focusedItem) && focusedItem.parentKey != null\n ? focusedItem.parentKey\n : focusedKey;\n while (count > 0 && current != null) {\n const next = collection.getKeyAfter(current);\n if (next == null) break;\n current = next;\n count--;\n }\n if (current != null && isCell(focusedItem)) {\n const targetCell = getCellAtIndex(collection, current, focusedItem.index);\n nextKey = targetCell?.key ?? current;\n } else {\n nextKey = current;\n }\n }\n break;\n }\n\n case \"PageUp\": {\n e.preventDefault();\n // Move up by roughly a page\n const el = ref();\n if (el && el.clientHeight > 0) {\n const visibleHeight = el.clientHeight;\n let currentKey: Key | null = focusedKey;\n let traveled = 0;\n\n // If on a cell, start from the parent row\n if (isCell(focusedItem) && focusedItem.parentKey != null) {\n currentKey = focusedItem.parentKey;\n }\n\n // Move up until we've traveled approximately one page\n while (currentKey != null && traveled < visibleHeight) {\n const prev = collection.getKeyBefore(currentKey);\n if (prev == null) break;\n\n const rowElement = el.querySelector(`[data-key=\"${currentKey}\"]`);\n traveled += rowElement?.clientHeight ?? 40;\n currentKey = prev;\n }\n\n if (currentKey != null) {\n if (isCell(focusedItem)) {\n const cellIndex = focusedItem.index;\n const targetCell = getCellAtIndex(collection, currentKey, cellIndex);\n nextKey = targetCell?.key ?? currentKey;\n } else {\n nextKey = currentKey;\n }\n }\n } else {\n // Fallback: move 10 rows\n let count = 10;\n let current: Key | null =\n isCell(focusedItem) && focusedItem.parentKey != null\n ? focusedItem.parentKey\n : focusedKey;\n while (count > 0 && current != null) {\n const prev = collection.getKeyBefore(current);\n if (prev == null) break;\n current = prev;\n count--;\n }\n if (current != null && isCell(focusedItem)) {\n const targetCell = getCellAtIndex(collection, current, focusedItem.index);\n nextKey = targetCell?.key ?? current;\n } else {\n nextKey = current;\n }\n }\n break;\n }\n\n case \"Escape\":\n if (p.escapeKeyBehavior !== \"none\") {\n s.clearSelection();\n }\n return;\n\n case \"a\":\n if (e.ctrlKey || e.metaKey) {\n e.preventDefault();\n if (s.selectionMode === \"multiple\") {\n s.selectAll();\n }\n }\n return;\n\n // NOTE: Space/Enter selection is intentionally NOT handled here. Upstream\n // useSelectableCollection has no ' '/Enter case — keyboard selection is owned\n // by the row (useSelectableItem, ported in createTableRow). Handling it here too\n // double-toggled the selection (row toggles on, grid toggles back off → no-op),\n // since the row handler does not stop propagation. Space/Enter fall through to\n // the type-ahead path below, which ignores a leading Space and bails on Enter.\n\n default:\n if (runTypeahead(focusedKey, focusedItem)) {\n return;\n }\n return;\n }\n\n if (nextKey != null) {\n setFocusedKey(nextKey);\n\n // Handle shift+arrow for range selection\n if (e.shiftKey && s.selectionMode === \"multiple\") {\n // For cells, select the parent row\n const focusedNode = collection.getItem(nextKey);\n const keyToSelect =\n focusedNode && isCell(focusedNode) && focusedNode.parentKey != null\n ? focusedNode.parentKey\n : nextKey;\n s.extendSelection(keyToSelect);\n }\n }\n };\n\n // Focus handling\n const onFocus = (e: FocusEvent) => {\n const s = state();\n const el = ref();\n\n if (!el?.contains(e.target as Element)) {\n return;\n }\n\n if (!s.isFocused) {\n s.setFocused(true);\n\n // If no key is focused, focus the first one\n if (s.focusedKey == null) {\n const firstKey = s.collection.getFirstKey();\n if (firstKey != null) {\n s.setFocusedKey(firstKey);\n }\n }\n }\n };\n\n const onBlur = (e: FocusEvent) => {\n const s = state();\n const el = ref();\n\n // Only blur if focus is leaving the table entirely\n if (el && !el.contains(e.relatedTarget as Element)) {\n s.setFocused(false);\n }\n };\n\n // Mirror React Aria's useSelectableCollection: once the roving tabindex for\n // the focused key has been committed to the DOM, move browser focus onto that\n // element from a post-commit effect — looking it up by its stable data-key\n // rather than by transient tabindex. Doing this imperatively during the key\n // handler (in a microtask) raced Solid's reconciliation and dropped focus to\n // <body>, so Space/Enter never reached the grid's selection handler.\n createEffect(() => {\n const s = state();\n const key = s.focusedKey;\n const el = ref();\n if (!el || key == null) {\n return;\n }\n\n // Only manage focus while it already lives inside the table — i.e. the user\n // is navigating with the keyboard. We gate on the *physical* position of\n // browser focus rather than the grid's logical `isFocused` signal: focus can\n // land directly on a row (a pointer click, or programmatic row focus) without\n // ever firing the grid's own non-bubbling focus handler, so `isFocused` stays\n // false even though the table genuinely holds focus. The contains() check is\n // also what keeps us from pulling focus back from elsewhere on the page when\n // the focused key changes from a background interaction.\n const active = document.activeElement;\n if (!active || (active !== el && !el.contains(active))) {\n return;\n }\n\n const target = el.querySelector<HTMLElement>(`[data-key=\"${key}\"]`);\n if (target && target !== active) {\n target.focus();\n\n // Reveal the newly focused row/cell when navigating with the keyboard,\n // mirroring useSelectableCollection. Pointer-driven focus changes should\n // not shift the scroll position under the user's finger.\n if (getInteractionModality() !== \"pointer\") {\n scrollIntoViewport(target, { containingElement: el });\n }\n }\n });\n\n // Warn if no label is provided\n createMemo(() => {\n const p = props();\n if (!p[\"aria-label\"] && !p[\"aria-labelledby\"]) {\n console.warn(\"Table: An aria-label or aria-labelledby prop is required for accessibility.\");\n }\n });\n\n const gridProps = createMemo(() => {\n const p = props();\n const s = state();\n\n const baseProps: Record<string, unknown> = {\n role: \"grid\",\n id,\n \"aria-label\": p[\"aria-label\"],\n \"aria-labelledby\": p[\"aria-labelledby\"],\n \"aria-describedby\": p[\"aria-describedby\"],\n \"aria-multiselectable\": s.selectionMode === \"multiple\" ? \"true\" : undefined,\n // Keep the grid itself tabbable so keyboard users can enter\n // row/cell navigation without requiring a prior pointer interaction.\n tabIndex: 0,\n onKeyDown,\n onFocus,\n onBlur,\n };\n\n if (p.isVirtualized) {\n baseProps[\"aria-rowcount\"] = s.collection.rowCount;\n baseProps[\"aria-colcount\"] = s.collection.columnCount;\n }\n\n return baseProps as JSX.HTMLAttributes<HTMLTableElement>;\n });\n\n return {\n get gridProps() {\n return gridProps();\n },\n };\n}\n","/**\n * createTableHeaderRow - Provides accessibility for a table header row.\n * Based on @react-aria/table/useTableHeaderRow.\n */\n\nimport { createMemo, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport type { TableState, TableCollection } from \"@proyecto-viviana/solid-stately\";\nimport type { AriaTableHeaderRowProps, TableHeaderRowAria } from \"./types\";\n\n/**\n * Creates accessibility props for a table header row.\n */\nexport function createTableHeaderRow<T extends object>(\n props: Accessor<AriaTableHeaderRowProps>,\n _state: Accessor<TableState<T, TableCollection<T>>>,\n _ref: Accessor<HTMLTableRowElement | null>,\n): TableHeaderRowAria {\n const rowProps = createMemo(() => {\n const p = props();\n const node = p.node;\n\n const baseProps: Record<string, unknown> = {\n role: \"row\",\n };\n\n // Add aria-rowindex for virtualized tables\n if (p.isVirtualized && node.rowIndex != null) {\n baseProps[\"aria-rowindex\"] = node.rowIndex + 1; // 1-based\n }\n\n return baseProps as JSX.HTMLAttributes<HTMLTableRowElement>;\n });\n\n return {\n get rowProps() {\n return rowProps();\n },\n };\n}\n","/**\n * createTableColumnHeader - Provides accessibility for a table column header.\n * Based on @react-aria/table/useTableColumnHeader.\n */\n\nimport { createMemo, createSignal, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport type { TableState, TableCollection } from \"@proyecto-viviana/solid-stately\";\nimport type { AriaTableColumnHeaderProps, TableColumnHeaderAria } from \"./types\";\nimport { getTableData } from \"./createTable\";\n\n/**\n * Creates accessibility props for a table column header.\n */\nexport function createTableColumnHeader<T extends object>(\n props: Accessor<AriaTableColumnHeaderProps>,\n state: Accessor<TableState<T, TableCollection<T>>>,\n _ref: Accessor<HTMLTableCellElement | null>,\n): TableColumnHeaderAria {\n const [isPressed, setIsPressed] = createSignal(false);\n let ignoreNextClick = false;\n let ignoreNextClickTimeout: ReturnType<typeof setTimeout> | undefined;\n\n const isFocused = createMemo(() => {\n const s = state();\n const p = props();\n return s.focusedKey === p.node.key;\n });\n\n const sortColumn = () => {\n const s = state();\n const p = props();\n\n if (p.allowsSorting) {\n s.sort(p.node.key);\n }\n };\n\n const clearPendingClickIgnore = () => {\n if (ignoreNextClickTimeout != null) {\n clearTimeout(ignoreNextClickTimeout);\n ignoreNextClickTimeout = undefined;\n }\n };\n\n const ignorePointerGeneratedClick = () => {\n clearPendingClickIgnore();\n ignoreNextClick = true;\n ignoreNextClickTimeout = setTimeout(() => {\n ignoreNextClick = false;\n ignoreNextClickTimeout = undefined;\n }, 0);\n };\n\n // Handle click for sorting. Pointer activation is handled on pointerup because\n // focusing the table header can re-render its child content before a native\n // click is dispatched.\n const onClick = () => {\n if (ignoreNextClick) {\n ignoreNextClick = false;\n clearPendingClickIgnore();\n return;\n }\n\n sortColumn();\n };\n\n const onKeyDown = (e: KeyboardEvent) => {\n const p = props();\n\n if (\n p.allowsSorting &&\n (e.key === \"Enter\" || e.key === \" \" || e.key === \"Space\" || e.key === \"Spacebar\")\n ) {\n e.preventDefault();\n sortColumn();\n }\n };\n\n const onFocus = () => {\n const s = state();\n const p = props();\n s.setFocusedKey(p.node.key);\n };\n\n const onPointerDown = (e: PointerEvent) => {\n if (e.button !== 0) {\n return;\n }\n\n setIsPressed(true);\n };\n\n const onPointerUp = () => {\n if (isPressed()) {\n ignorePointerGeneratedClick();\n sortColumn();\n }\n\n setIsPressed(false);\n };\n\n const onPointerCancel = () => {\n setIsPressed(false);\n };\n\n const columnHeaderProps = createMemo(() => {\n const s = state();\n const p = props();\n const node = p.node;\n const tableData = getTableData(s);\n\n // Determine sort state\n let ariaSort: \"none\" | \"ascending\" | \"descending\" | undefined = undefined;\n if (p.allowsSorting) {\n const sortDescriptor = s.sortDescriptor;\n if (sortDescriptor?.column === node.key) {\n ariaSort = sortDescriptor.direction;\n } else {\n ariaSort = \"none\";\n }\n }\n\n const baseProps: Record<string, unknown> = {\n role: \"columnheader\",\n id: tableData ? `${tableData.tableId}-${node.key}` : undefined,\n \"aria-sort\": ariaSort,\n tabIndex: isFocused() ? 0 : -1,\n onFocus,\n };\n\n // Add click handler if sortable\n if (p.allowsSorting) {\n baseProps.onClick = onClick;\n baseProps.onKeyDown = onKeyDown;\n baseProps.onPointerDown = onPointerDown;\n baseProps.onPointerUp = onPointerUp;\n baseProps.onPointerCancel = onPointerCancel;\n baseProps.onPointerLeave = onPointerCancel;\n baseProps.style = { cursor: \"pointer\" };\n }\n\n // Add aria-colindex for virtualized tables\n if (p.isVirtualized && node.column != null) {\n baseProps[\"aria-colindex\"] = node.column + 1; // 1-based\n }\n\n // Add colspan if present\n if (node.colspan != null && node.colspan > 1) {\n baseProps[\"aria-colspan\"] = node.colspan;\n baseProps.colSpan = node.colspan;\n }\n\n return baseProps as JSX.HTMLAttributes<HTMLTableCellElement>;\n });\n\n return {\n get columnHeaderProps() {\n return columnHeaderProps();\n },\n };\n}\n","/**\n * createTableRow - Provides accessibility for a table row.\n * Based on @react-aria/table/useTableRow.\n */\n\nimport { createMemo, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport type {\n Collection,\n Key,\n Selection,\n TableState,\n TableCollection,\n} from \"@proyecto-viviana/solid-stately\";\nimport type { AriaTableRowProps, TableRowAria, ExpandButtonProps } from \"./types\";\nimport { getTableData } from \"./createTable\";\nimport { useLocale } from \"../i18n\";\nimport { createSelectableItem, type SelectableItemState } from \"../selection/createSelectableItem\";\nimport { mergeProps } from \"../utils/mergeProps\";\n\n/**\n * Arrow keys that expand/collapse a tree-grid row, mirroring `@react-aria/table`.\n * Direction is flipped under RTL.\n */\nconst EXPANSION_KEYS = {\n expand: { ltr: \"ArrowRight\", rtl: \"ArrowLeft\" },\n collapse: { ltr: \"ArrowLeft\", rtl: \"ArrowRight\" },\n} as const;\n\n/**\n * Creates accessibility props for a table row.\n */\nexport function createTableRow<T extends object>(\n props: Accessor<AriaTableRowProps>,\n state: Accessor<TableState<T, TableCollection<T>>>,\n ref: Accessor<HTMLTableRowElement | null>,\n): TableRowAria {\n const locale = useLocale();\n\n // Tree-grid (expandable rows): only active when the collection has a tree column.\n const isTreeRow = createMemo(() => state().treeColumn != null);\n\n const hasChildRows = createMemo(() => props().node.isExpandable ?? false);\n\n const isExpanded = createMemo(() => {\n const s = state();\n if (s.treeColumn == null) return false;\n return s.expandedKeys === \"all\" || s.expandedKeys.has(props().node.key);\n });\n\n // aria-posinset / aria-setsize among same-level sibling rows.\n const siblingInfo = createMemo(() => {\n const s = state();\n const node = props().node;\n if (node.parentKey != null) {\n const parent = s.collection.getItem(node.parentKey);\n if (parent) {\n const siblings = parent.childNodes.filter((n) => n.type === \"item\");\n return { posinset: node.index + 1, setsize: siblings.length };\n }\n }\n const rootRows = s.collection.body.childNodes.filter((n) => n.type === \"item\");\n const rootIndex = rootRows.findIndex((n) => n.key === node.key);\n return {\n posinset: rootIndex >= 0 ? rootIndex + 1 : node.index + 1,\n setsize: rootRows.length,\n };\n });\n\n const isSelected = createMemo(() => {\n const s = state();\n const p = props();\n return s.isSelected(p.node.key);\n });\n\n const selectableState: SelectableItemState<T> = {\n collection: () => state().collection as unknown as Collection<T>,\n isFocused: () => state().isFocused,\n setFocused: (focused: boolean) => state().setFocused(focused),\n focusedKey: () => state().focusedKey,\n childFocusStrategy: () => state().childFocusStrategy,\n setFocusedKey: (key: Key | null, strategy) => state().setFocusedKey(key, strategy),\n selectionMode: () => state().selectionMode,\n selectionBehavior: () => state().selectionBehavior,\n disallowEmptySelection: () => state().disallowEmptySelection,\n selectedKeys: () => state().selectedKeys as Selection,\n disabledKeys: () => state().disabledKeys,\n disabledBehavior: () => state().disabledBehavior,\n isEmpty: () => {\n const keys = state().selectedKeys;\n return keys !== \"all\" && keys.size === 0;\n },\n isSelectAll: () => state().selectedKeys === \"all\",\n isSelected: (key: Key) => state().isSelected(key),\n isDisabled: (key: Key) => {\n const s = state();\n const item = s.collection.getItem(key);\n return (\n s.disabledBehavior === \"all\" &&\n s.isDisabled(key) &&\n item?.props?.disabledBehavior !== \"selection\"\n );\n },\n canSelectItem: (key: Key) => {\n const s = state();\n return s.selectionMode !== \"none\" && !s.isDisabled(key);\n },\n setSelectionBehavior: (behavior) => state().setSelectionBehavior(behavior),\n toggleSelection: (key: Key) => state().toggleSelection(key),\n replaceSelection: (key: Key) => state().replaceSelection(key),\n setSelectedKeys: (keys: Iterable<Key>) => state().setSelectedKeys(keys),\n selectAll: () => state().selectAll(),\n clearSelection: () => state().clearSelection(),\n toggleSelectAll: () => state().toggleSelectAll(),\n extendSelection: (toKey: Key, _collection: Collection<T>) => state().extendSelection(toKey),\n };\n\n const selectableItem = createSelectableItem<T>(\n () => {\n const s = state();\n const p = props();\n const tableData = getTableData(s);\n const onRowAction = tableData?.actions.onRowAction;\n const hasAction = !!p.onAction || !!onRowAction || !!p.href;\n\n return {\n key: p.node.key,\n id: `${tableData?.tableId ?? \"table\"}-row-${String(p.node.key)}`,\n isVirtualized: p.isVirtualized,\n shouldSelectOnPressUp: tableData?.shouldSelectOnPressUp ?? false,\n isDisabled: !!p.isDisabled || s.collection.size === 0,\n onAction: hasAction\n ? (event) => {\n p.onAction?.();\n onRowAction?.(p.node.key);\n if (p.href) {\n p.onLinkAction?.(event);\n }\n }\n : undefined,\n };\n },\n selectableState,\n ref,\n );\n\n const isDisabled = () => selectableItem.isDisabled();\n\n const onTreeGridKeyDown = (e: KeyboardEvent) => {\n const s = state();\n const p = props();\n\n if (isDisabled()) return;\n\n // Tree-grid expand/collapse with Left/Right arrows (flipped under RTL). Handled before\n // selection/navigation; stopping propagation prevents the grid's arrow navigation when\n // expansion consumes the key.\n if (s.treeColumn != null) {\n const direction = locale().direction === \"rtl\" ? \"rtl\" : \"ltr\";\n const key = p.node.key;\n const expanded = s.expandedKeys;\n if (\n e.key === EXPANSION_KEYS.expand[direction] &&\n s.focusedKey === key &&\n hasChildRows() &&\n expanded !== \"all\" &&\n !expanded.has(key)\n ) {\n s.toggleKey(key);\n e.stopPropagation();\n return;\n } else if (e.key === EXPANSION_KEYS.collapse[direction] && s.focusedKey === key) {\n if (expanded !== \"all\") {\n if (hasChildRows() && expanded.has(key)) {\n s.toggleKey(key);\n e.stopPropagation();\n return;\n } else if (!expanded.has(key) && p.node.parentKey != null && p.node.level > 0) {\n // Leaf or already-collapsed row: move focus to the parent row.\n s.setFocusedKey(p.node.parentKey);\n e.stopPropagation();\n return;\n }\n } else {\n s.toggleKey(key);\n e.stopPropagation();\n return;\n }\n }\n }\n };\n\n const rowProps = createMemo(() => {\n const s = state();\n const p = props();\n const node = p.node;\n\n const baseProps: Record<string, unknown> = {\n role: \"row\",\n \"aria-selected\": s.selectionMode !== \"none\" ? isSelected() : undefined,\n \"aria-disabled\": isDisabled() || undefined,\n };\n\n // Tree-grid rows expose their nesting depth, position and expansion state.\n if (s.treeColumn != null) {\n const { posinset, setsize } = siblingInfo();\n baseProps[\"aria-expanded\"] = hasChildRows() ? isExpanded() : undefined;\n baseProps[\"aria-level\"] = node.level + 1; // 1-based\n baseProps[\"aria-posinset\"] = posinset;\n baseProps[\"aria-setsize\"] = setsize;\n baseProps.onKeyDown = onTreeGridKeyDown;\n }\n\n // Add aria-rowindex for virtualized tables. Tree grids omit it (matches upstream).\n if (p.isVirtualized && s.treeColumn == null && node.rowIndex != null) {\n baseProps[\"aria-rowindex\"] = node.rowIndex + 1; // 1-based\n }\n\n return mergeProps<JSX.HTMLAttributes<HTMLTableRowElement>>(\n selectableItem.itemProps as unknown as JSX.HTMLAttributes<HTMLTableRowElement>,\n baseProps,\n );\n });\n\n // Chevron button for expanding/collapsing a tree-grid row. Press-based so it flows through\n // our Button's `createPress`, and excluded from the tab order — reached via the row's\n // Left/Right arrow keys instead. Mirrors `@react-aria/table`'s `expandButtonProps`; whether a\n // chevron renders for a leaf row is the consumer's call (gate on `hasChildItems`), matching S2.\n const onExpandPress = () => {\n const s = state();\n const p = props();\n if (isDisabled()) return;\n s.toggleKey(p.node.key);\n s.setFocused(true);\n s.setFocusedKey(p.node.key);\n };\n\n const expandButtonProps = createMemo<ExpandButtonProps>(() => ({\n isDisabled: isDisabled(),\n onPress: onExpandPress,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n \"data-react-aria-prevent-focus\": true,\n \"aria-label\": isExpanded() ? \"Collapse\" : \"Expand\",\n }));\n\n return {\n get rowProps() {\n return rowProps();\n },\n get expandButtonProps() {\n return expandButtonProps();\n },\n get isSelected() {\n return isSelected();\n },\n get isDisabled() {\n return isDisabled();\n },\n get isPressed() {\n return selectableItem.isPressed();\n },\n get isExpanded() {\n return isExpanded();\n },\n get hasChildRows() {\n return hasChildRows();\n },\n };\n}\n","/**\n * createTableCell - Provides accessibility for a table cell.\n * Based on @react-aria/table/useTableCell.\n */\n\nimport { createMemo, createSignal, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport type { TableState, TableCollection } from \"@proyecto-viviana/solid-stately\";\nimport type { AriaTableCellProps, TableCellAria } from \"./types\";\nimport { getTableData } from \"./createTable\";\n\n/**\n * Creates accessibility props for a table cell.\n */\nexport function createTableCell<T extends object>(\n props: Accessor<AriaTableCellProps>,\n state: Accessor<TableState<T, TableCollection<T>>>,\n _ref: Accessor<HTMLTableCellElement | null>,\n): TableCellAria {\n const [isPressed, setIsPressed] = createSignal(false);\n\n const isDisabled = createMemo(() => {\n const s = state();\n const p = props();\n // Check if parent row is disabled\n const node = p.node;\n if (node.parentKey != null) {\n return s.isDisabled(node.parentKey);\n }\n return false;\n });\n\n const isFocused = createMemo(() => {\n const s = state();\n const p = props();\n return s.focusedKey === p.node.key;\n });\n\n // Handle click for cell actions\n const onClick = () => {\n const s = state();\n const p = props();\n\n if (isDisabled()) return;\n\n // Get table metadata for actions\n const tableData = getTableData(s);\n const onCellAction = tableData?.actions.onCellAction;\n\n // Call cell action handler\n if (onCellAction) {\n onCellAction(p.node.key);\n }\n\n if (p.onAction) {\n p.onAction();\n }\n };\n\n const onKeyDown = (e: KeyboardEvent) => {\n const s = state();\n const p = props();\n\n if (isDisabled()) return;\n\n // Enter triggers cell action\n if (e.key === \"Enter\") {\n const tableData = getTableData(s);\n const onCellAction = tableData?.actions.onCellAction;\n\n if (onCellAction || p.onAction) {\n e.preventDefault();\n\n if (onCellAction) {\n onCellAction(p.node.key);\n }\n\n if (p.onAction) {\n p.onAction();\n }\n }\n }\n };\n\n const onFocus = () => {\n const s = state();\n const p = props();\n s.setFocusedKey(p.node.key);\n };\n\n const onPointerDown = () => {\n setIsPressed(true);\n };\n\n const onPointerUp = () => {\n setIsPressed(false);\n };\n\n const gridCellProps = createMemo(() => {\n const s = state();\n const p = props();\n const node = p.node;\n const tableData = getTableData(s);\n\n // Determine the role based on node type\n let role: string = \"gridcell\";\n if (node.type === \"rowheader\") {\n role = \"rowheader\";\n }\n\n const baseProps: Record<string, unknown> = {\n role,\n id:\n tableData && node.parentKey != null\n ? `${tableData.tableId}-${node.parentKey}-${node.key}`\n : undefined,\n \"aria-disabled\": isDisabled() || undefined,\n tabIndex: isFocused() ? 0 : -1,\n onClick,\n onKeyDown,\n onFocus,\n onPointerDown,\n onPointerUp,\n };\n\n // Add aria-colindex for virtualized tables\n if (p.isVirtualized && node.column != null) {\n baseProps[\"aria-colindex\"] = node.column + 1; // 1-based\n }\n\n // Add colspan if present\n if (node.colspan != null && node.colspan > 1) {\n baseProps[\"aria-colspan\"] = node.colspan;\n baseProps.colSpan = node.colspan;\n }\n\n return baseProps as JSX.HTMLAttributes<HTMLTableCellElement>;\n });\n\n return {\n get gridCellProps() {\n return gridCellProps();\n },\n get isPressed() {\n return isPressed();\n },\n };\n}\n","/**\n * createTableRowGroup - Provides accessibility for a table row group.\n * Based on @react-aria/grid/useTableRowGroup.\n */\n\nimport { createMemo, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport type { AriaTableRowGroupProps, TableRowGroupAria } from \"./types\";\n\n/**\n * Creates accessibility props for a table row group (thead, tbody, tfoot).\n */\nexport function createTableRowGroup(props: Accessor<AriaTableRowGroupProps>): TableRowGroupAria {\n const rowGroupProps = createMemo(() => {\n // Access props for reactivity tracking, even though not currently used\n void props();\n\n const baseProps: Record<string, unknown> = {\n role: \"rowgroup\",\n };\n\n return baseProps as JSX.HTMLAttributes<HTMLTableSectionElement>;\n });\n\n return {\n get rowGroupProps() {\n return rowGroupProps();\n },\n };\n}\n","/**\n * createTableSelectionCheckbox - Provides accessibility for a table row selection checkbox.\n * Based on @react-aria/table/useTableSelectionCheckbox.\n */\n\nimport { createMemo, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport { createId } from \"@proyecto-viviana/solid-stately\";\nimport type { TableState, TableCollection } from \"@proyecto-viviana/solid-stately\";\nimport type { AriaTableSelectionCheckboxProps, TableSelectionCheckboxAria } from \"./types\";\n\n/**\n * Creates accessibility props for a table row selection checkbox.\n */\nexport function createTableSelectionCheckbox<T extends object>(\n props: Accessor<AriaTableSelectionCheckboxProps>,\n state: Accessor<TableState<T, TableCollection<T>>>,\n): TableSelectionCheckboxAria {\n const checkboxId = createId();\n\n const isSelected = createMemo(() => {\n const s = state();\n const p = props();\n return s.isSelected(p.key);\n });\n\n const isDisabled = createMemo(() => {\n const s = state();\n const p = props();\n return s.isDisabled(p.key);\n });\n\n const onChange = () => {\n const s = state();\n const p = props();\n if (!isDisabled()) {\n s.toggleSelection(p.key);\n }\n };\n\n const checkboxProps = createMemo(() => {\n const baseProps: Record<string, unknown> = {\n id: checkboxId,\n type: \"checkbox\",\n checked: isSelected(),\n disabled: isDisabled(),\n onChange,\n \"aria-label\": \"Select\",\n };\n\n return baseProps as JSX.InputHTMLAttributes<HTMLInputElement>;\n });\n\n return {\n get checkboxProps() {\n return checkboxProps();\n },\n };\n}\n","/**\n * createTableSelectAllCheckbox - Provides accessibility for a table select-all checkbox.\n * Based on @react-aria/table/useTableSelectAllCheckbox.\n */\n\nimport { createMemo, type Accessor } from \"solid-js\";\nimport type { JSX } from \"solid-js\";\nimport type { TableState, TableCollection } from \"@proyecto-viviana/solid-stately\";\nimport type { TableSelectAllCheckboxAria } from \"./types\";\n\n/**\n * Creates accessibility props for a table select-all checkbox.\n */\nexport function createTableSelectAllCheckbox<T extends object>(\n state: Accessor<TableState<T, TableCollection<T>>>,\n): TableSelectAllCheckboxAria {\n const isSelectAll = createMemo(() => {\n const s = state();\n return s.selectedKeys === \"all\";\n });\n\n const isEmpty = createMemo(() => {\n const s = state();\n return s.collection.size === 0;\n });\n\n const isIndeterminate = createMemo(() => {\n const s = state();\n const selectedKeys = s.selectedKeys;\n if (selectedKeys === \"all\") return false;\n if (selectedKeys.size === 0) return false;\n return selectedKeys.size < s.collection.size;\n });\n\n const isDisabled = createMemo(() => {\n const s = state();\n return s.selectionMode !== \"multiple\" || isEmpty();\n });\n\n const onChange = () => {\n const s = state();\n if (!isDisabled()) {\n s.toggleSelectAll();\n }\n };\n\n const checkboxProps = createMemo(() => {\n const s = state();\n\n const baseProps: Record<string, unknown> = {\n type: \"checkbox\",\n checked: isSelectAll(),\n disabled: isDisabled(),\n onChange,\n \"aria-label\": s.selectionMode === \"single\" ? \"Select\" : \"Select All\",\n };\n\n if (isIndeterminate()) {\n baseProps[\"data-indeterminate\"] = \"true\";\n }\n\n return baseProps as JSX.InputHTMLAttributes<HTMLInputElement>;\n });\n\n return {\n get checkboxProps() {\n return checkboxProps();\n },\n get isIndeterminate() {\n return isIndeterminate();\n },\n };\n}\n","/**\n * ARIA hook for table column resize interactions.\n * Based on @react-aria/table/useTableColumnResize.\n *\n * Provides pointer-drag and keyboard-based column resizing with\n * correct ARIA attributes for screen readers.\n */\n\nimport { createSignal, createMemo, type Accessor, type JSX } from \"solid-js\";\nimport type { Key, TableColumnResizeState } from \"@proyecto-viviana/solid-stately\";\nimport { useLocale } from \"../i18n\";\n\nexport interface CreateTableColumnResizeProps {\n /** The column being resized. */\n column: { key: Key };\n /** Accessible label for the resizer. */\n \"aria-label\": string;\n /** Whether resizing is disabled. */\n isDisabled?: boolean;\n /** Called when a resize operation starts. */\n onResizeStart?: (widths: Map<Key, number>) => void;\n /** Called during resize with updated widths. */\n onResize?: (widths: Map<Key, number>) => void;\n /** Called when resize operation ends. */\n onResizeEnd?: (widths: Map<Key, number>) => void;\n}\n\nexport interface TableColumnResizeResult {\n /** Props for the visible resizer handle element (div). */\n resizerProps: JSX.HTMLAttributes<HTMLDivElement>;\n /** Props for the hidden range input (screen reader accessible). */\n inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;\n /** Whether this column is currently being resized. */\n isResizing: Accessor<boolean>;\n}\n\nconst KEYBOARD_STEP = 10; // px per arrow key press\n\n/**\n * Creates ARIA-compliant column resize behavior.\n *\n * Returns props for a visible drag handle (div) and a visually-hidden\n * range input that allows keyboard and screen-reader users to resize columns.\n */\nexport function createTableColumnResize(\n props: Accessor<CreateTableColumnResizeProps>,\n state: Accessor<TableColumnResizeState>,\n): TableColumnResizeResult {\n const getProps = () => props();\n const getState = () => state();\n const locale = useLocale();\n\n const [isPointerDragging, setIsPointerDragging] = createSignal(false);\n const [isKeyboardResizing, setIsKeyboardResizing] = createSignal(false);\n\n const isResizing = createMemo(() => getState().resizingColumn() === getProps().column.key);\n\n const isRtl = createMemo(() => {\n const l = locale();\n return l?.direction === \"rtl\";\n });\n\n // ---- Pointer (mouse/touch) drag ----\n\n let startX = 0;\n let startWidth = 0;\n\n const onPointerDown = (e: PointerEvent) => {\n if (getProps().isDisabled) return;\n e.preventDefault();\n e.stopPropagation();\n\n const key = getProps().column.key;\n startX = e.clientX;\n startWidth = getState().getColumnWidth(key);\n\n getState().startResize(key);\n getProps().onResizeStart?.(getState().columnWidths());\n setIsPointerDragging(true);\n\n const target = e.currentTarget as HTMLElement;\n target.setPointerCapture(e.pointerId);\n };\n\n const onPointerMove = (e: PointerEvent) => {\n if (!isPointerDragging()) return;\n e.preventDefault();\n\n const deltaX = e.clientX - startX;\n const direction = isRtl() ? -1 : 1;\n const newWidth = startWidth + deltaX * direction;\n\n const key = getProps().column.key;\n const widths = getState().updateResizedColumns(key, newWidth);\n getProps().onResize?.(widths);\n };\n\n const onPointerUp = (e: PointerEvent) => {\n if (!isPointerDragging()) return;\n e.preventDefault();\n setIsPointerDragging(false);\n getState().endResize();\n getProps().onResizeEnd?.(getState().columnWidths());\n };\n\n // ---- Keyboard resize (on the hidden input) ----\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (getProps().isDisabled) return;\n\n const key = getProps().column.key;\n const rtlMul = isRtl() ? -1 : 1;\n\n switch (e.key) {\n case \"Enter\": {\n if (isKeyboardResizing()) {\n // End resize\n setIsKeyboardResizing(false);\n getState().endResize();\n getProps().onResizeEnd?.(getState().columnWidths());\n } else {\n // Start resize\n setIsKeyboardResizing(true);\n getState().startResize(key);\n getProps().onResizeStart?.(getState().columnWidths());\n }\n e.preventDefault();\n break;\n }\n case \"Escape\": {\n if (isKeyboardResizing()) {\n setIsKeyboardResizing(false);\n getState().endResize();\n getProps().onResizeEnd?.(getState().columnWidths());\n e.preventDefault();\n }\n break;\n }\n case \"Tab\": {\n if (isKeyboardResizing()) {\n setIsKeyboardResizing(false);\n getState().endResize();\n getProps().onResizeEnd?.(getState().columnWidths());\n }\n // Let Tab propagate for focus management\n break;\n }\n case \"ArrowRight\": {\n if (isKeyboardResizing()) {\n const currentWidth = getState().getColumnWidth(key);\n const widths = getState().updateResizedColumns(\n key,\n currentWidth + KEYBOARD_STEP * rtlMul,\n );\n getProps().onResize?.(widths);\n e.preventDefault();\n }\n break;\n }\n case \"ArrowLeft\": {\n if (isKeyboardResizing()) {\n const currentWidth = getState().getColumnWidth(key);\n const widths = getState().updateResizedColumns(\n key,\n currentWidth - KEYBOARD_STEP * rtlMul,\n );\n getProps().onResize?.(widths);\n e.preventDefault();\n }\n break;\n }\n }\n };\n\n // Handle input change (from screen reader range slider)\n const onInputChange = (e: Event) => {\n const input = e.target as HTMLInputElement;\n const newWidth = parseFloat(input.value);\n if (isNaN(newWidth)) return;\n\n const key = getProps().column.key;\n if (!isResizing()) {\n getState().startResize(key);\n getProps().onResizeStart?.(getState().columnWidths());\n }\n\n const widths = getState().updateResizedColumns(key, newWidth);\n getProps().onResize?.(widths);\n\n // End immediately for discrete input changes\n getState().endResize();\n getProps().onResizeEnd?.(getState().columnWidths());\n };\n\n // Visible resize handle props. The accessible resize control is the hidden\n // range input below, matching React Aria's ColumnResizer structure.\n const resizerProps: JSX.HTMLAttributes<HTMLDivElement> = {\n role: \"presentation\",\n tabIndex: -1,\n style: {\n \"touch-action\": \"none\",\n cursor: \"col-resize\",\n },\n onPointerDown,\n onPointerMove,\n onPointerUp,\n };\n\n // Visually hidden range input props\n const inputProps: JSX.InputHTMLAttributes<HTMLInputElement> = {\n get type() {\n return \"range\";\n },\n get tabIndex() {\n return getProps().isDisabled ? -1 : 0;\n },\n get disabled() {\n return getProps().isDisabled;\n },\n get \"aria-label\"() {\n return getProps()[\"aria-label\"];\n },\n get \"aria-orientation\"() {\n return \"horizontal\" as const;\n },\n get min() {\n return getState().getColumnMinWidth(getProps().column.key);\n },\n get max() {\n const maxW = getState().getColumnMaxWidth(getProps().column.key);\n return maxW === Infinity ? 9999 : maxW;\n },\n get value() {\n return getState().getColumnWidth(getProps().column.key);\n },\n style: {\n position: \"absolute\",\n width: \"1px\",\n height: \"1px\",\n padding: \"0\",\n margin: \"-1px\",\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n \"white-space\": \"nowrap\",\n \"border-width\": \"0\",\n },\n onKeyDown,\n onChange: onInputChange,\n };\n\n return {\n resizerProps,\n inputProps,\n isResizing,\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAM,2BAAW,IAAI,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WAAW;IACb,OAAO,SAAS,CAAC,CAAC;GACpB;GACA,IAAI,eAAe;IACjB,OAAO,SAAS,CAAC,CAAC;GACpB;GACA,IAAI,qBAAqB;IACvB,OAAO;GACT;GACA,IAAI,MAAM;IACR,OAAO,SAAS,CAAC,CAAC,kBAAkB,SAAS,CAAC,CAAC,OAAO,GAAG;GAC3D;GACA,IAAI,MAAM;IACR,MAAM,OAAO,SAAS,CAAC,CAAC,kBAAkB,SAAS,CAAC,CAAC,OAAO,GAAG;IAC/D,OAAO,SAAS,WAAW,OAAO;GACpC;GACA,IAAI,QAAQ;IACV,OAAO,SAAS,CAAC,CAAC,eAAe,SAAS,CAAC,CAAC,OAAO,GAAG;GACxD;GACA,OAAO;IACL,UAAU;IACV,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,UAAU;IACV,MAAM;IACN,eAAe;IACf,gBAAgB;GAClB;GACA;GACA,UAAU;EAKD;EACT;CACF;AACF"}
@@ -0,0 +1,260 @@
1
+ import { t as createPress } from "./createPress.js";
2
+ import { t as createFocusRing } from "./createFocusRing.js";
3
+ import { t as createHover } from "./createHover.js";
4
+ import { a as useLocale } from "./createCollator.js";
5
+ import { createId } from "../ssr/index.js";
6
+ import { createEffect, createMemo } from "solid-js";
7
+ //#region src/tabs/createTabs.ts
8
+ /**
9
+ * ARIA hooks for tab components.
10
+ * Based on @react-aria/tabs.
11
+ */
12
+ const tabListIds = /* @__PURE__ */ new WeakMap();
13
+ function getTabListId(state) {
14
+ let id = tabListIds.get(state);
15
+ if (!id) {
16
+ id = createId();
17
+ tabListIds.set(state, id);
18
+ }
19
+ return id;
20
+ }
21
+ function generateTabId(state, key) {
22
+ return `${getTabListId(state)}-tab-${String(key).replace(/\s+/g, "-")}`;
23
+ }
24
+ function generateTabPanelId(state, key) {
25
+ return `${getTabListId(state)}-tabpanel-${String(key).replace(/\s+/g, "-")}`;
26
+ }
27
+ function getNextKey(state, currentKey) {
28
+ const keys = [...state.collection()].map((node) => node.key);
29
+ const currentIndex = keys.indexOf(currentKey);
30
+ if (currentIndex === -1) return keys[0] ?? null;
31
+ for (let i = 1; i <= keys.length; i++) {
32
+ const nextKey = keys[(currentIndex + i) % keys.length];
33
+ if (!state.isKeyDisabled(nextKey)) return nextKey;
34
+ }
35
+ return null;
36
+ }
37
+ function getPreviousKey(state, currentKey) {
38
+ const keys = [...state.collection()].map((node) => node.key);
39
+ const currentIndex = keys.indexOf(currentKey);
40
+ if (currentIndex === -1) return keys[keys.length - 1] ?? null;
41
+ for (let i = 1; i <= keys.length; i++) {
42
+ const prevKey = keys[(currentIndex - i + keys.length) % keys.length];
43
+ if (!state.isKeyDisabled(prevKey)) return prevKey;
44
+ }
45
+ return null;
46
+ }
47
+ function getFirstKey(state) {
48
+ const coll = state.collection();
49
+ for (const node of coll) if (!state.isKeyDisabled(node.key)) return node.key;
50
+ return null;
51
+ }
52
+ function getLastKey(state) {
53
+ const keys = [...state.collection()].map((node) => node.key).reverse();
54
+ for (const key of keys) if (!state.isKeyDisabled(key)) return key;
55
+ return null;
56
+ }
57
+ /**
58
+ * Creates ARIA props for a tab list container.
59
+ */
60
+ function createTabList(props, state) {
61
+ const locale = useLocale();
62
+ const orientation = () => props.orientation ?? state.orientation() ?? "horizontal";
63
+ const keyboardActivation = () => props.keyboardActivation ?? state.keyboardActivation() ?? "automatic";
64
+ const handleKeyDown = (e) => {
65
+ if (state.isDisabled()) return;
66
+ const currentKey = state.focusedKey() ?? state.selectedKey();
67
+ if (currentKey === null) return;
68
+ let nextKey = null;
69
+ const isHorizontal = orientation() === "horizontal";
70
+ const isRTL = locale().direction === "rtl";
71
+ switch (e.key) {
72
+ case "ArrowLeft":
73
+ if (isHorizontal) nextKey = isRTL ? getNextKey(state, currentKey) : getPreviousKey(state, currentKey);
74
+ break;
75
+ case "ArrowRight":
76
+ if (isHorizontal) nextKey = isRTL ? getPreviousKey(state, currentKey) : getNextKey(state, currentKey);
77
+ break;
78
+ case "ArrowUp":
79
+ if (!isHorizontal) nextKey = getPreviousKey(state, currentKey);
80
+ break;
81
+ case "ArrowDown":
82
+ if (!isHorizontal) nextKey = getNextKey(state, currentKey);
83
+ break;
84
+ case "Home":
85
+ nextKey = getFirstKey(state);
86
+ break;
87
+ case "End":
88
+ nextKey = getLastKey(state);
89
+ break;
90
+ case "Enter":
91
+ case " ":
92
+ if (keyboardActivation() === "manual" && state.focusedKey()) {
93
+ state.setSelectedKey(state.focusedKey());
94
+ e.preventDefault();
95
+ }
96
+ return;
97
+ default: return;
98
+ }
99
+ if (nextKey !== null) {
100
+ e.preventDefault();
101
+ state.setFocusedKey(nextKey);
102
+ if (keyboardActivation() === "automatic") state.setSelectedKey(nextKey);
103
+ }
104
+ };
105
+ const handleFocus = () => {
106
+ state.setFocused(true);
107
+ if (state.focusedKey() === null && state.selectedKey() !== null) state.setFocusedKey(state.selectedKey());
108
+ };
109
+ const handleBlur = (e) => {
110
+ const relatedTarget = e.relatedTarget;
111
+ if (relatedTarget && e.currentTarget.contains(relatedTarget)) return;
112
+ state.setFocused(false);
113
+ };
114
+ return { tabListProps: {
115
+ role: "tablist",
116
+ "aria-orientation": orientation(),
117
+ "aria-label": props["aria-label"],
118
+ "aria-labelledby": props["aria-labelledby"],
119
+ "aria-describedby": props["aria-describedby"],
120
+ onKeyDown: handleKeyDown,
121
+ onFocusIn: handleFocus,
122
+ onFocusOut: handleBlur
123
+ } };
124
+ }
125
+ /**
126
+ * Creates ARIA props for an individual tab.
127
+ */
128
+ function createTab(props, state, ref) {
129
+ const key = () => props.key;
130
+ const isSelected = createMemo(() => state.selectedKey() === key());
131
+ const isDisabled = createMemo(() => {
132
+ if (props.isDisabled) return true;
133
+ return state.isKeyDisabled(key());
134
+ });
135
+ const isKeyFocused = createMemo(() => state.focusedKey() === key());
136
+ const { isFocused, isFocusVisible, focusProps } = createFocusRing();
137
+ const selectTab = () => {
138
+ const tabKey = key();
139
+ state.setFocusedKey(tabKey);
140
+ state.setSelectedKey(tabKey);
141
+ };
142
+ const { isPressed, pressProps } = createPress({
143
+ get isDisabled() {
144
+ return isDisabled();
145
+ },
146
+ onPressStart: (e) => {
147
+ if (e.pointerType === "mouse" || e.pointerType === "keyboard") selectTab();
148
+ },
149
+ onPress: (e) => {
150
+ if (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual") selectTab();
151
+ }
152
+ });
153
+ const { isHovered } = createHover({ get isDisabled() {
154
+ return isDisabled();
155
+ } });
156
+ const tabId = generateTabId(state, key());
157
+ const tabPanelId = generateTabPanelId(state, key());
158
+ const callHandler = (handler, event) => {
159
+ if (typeof handler === "function") {
160
+ handler(event);
161
+ return;
162
+ }
163
+ if (Array.isArray(handler) && handler.length >= 2 && typeof handler[1] === "function") handler[1].call(handler[0], event);
164
+ };
165
+ const handleFocus = (e) => {
166
+ state.setFocusedKey(key());
167
+ callHandler(focusProps.onFocus, e);
168
+ };
169
+ const handleBlur = (e) => {
170
+ callHandler(focusProps.onBlur, e);
171
+ };
172
+ const handleKeyDown = (e) => {
173
+ callHandler(pressProps.onKeyDown, e);
174
+ };
175
+ const handleMouseDown = (e) => {
176
+ callHandler(pressProps.onMouseDown, e);
177
+ };
178
+ const handlePointerDown = (e) => {
179
+ callHandler(pressProps.onPointerDown, e);
180
+ };
181
+ const handleClick = (e) => {
182
+ callHandler(pressProps.onClick, e);
183
+ };
184
+ createEffect(() => {
185
+ const element = ref?.();
186
+ if (!state.isFocused() || !isKeyFocused() || !element) return;
187
+ if (element.ownerDocument?.activeElement !== element) element.focus();
188
+ });
189
+ return {
190
+ tabProps: {
191
+ id: tabId,
192
+ role: "tab",
193
+ get "aria-selected"() {
194
+ return isSelected();
195
+ },
196
+ get "aria-disabled"() {
197
+ return isDisabled() || void 0;
198
+ },
199
+ get "aria-controls"() {
200
+ return isSelected() ? tabPanelId : void 0;
201
+ },
202
+ "aria-label": props["aria-label"],
203
+ "aria-labelledby": props["aria-labelledby"],
204
+ get tabIndex() {
205
+ if (isDisabled()) return void 0;
206
+ return isKeyFocused() ? 0 : -1;
207
+ },
208
+ onKeyDown: handleKeyDown,
209
+ onMouseDown: handleMouseDown,
210
+ onPointerDown: handlePointerDown,
211
+ onClick: handleClick,
212
+ onFocus: handleFocus,
213
+ onBlur: handleBlur
214
+ },
215
+ isSelected,
216
+ isDisabled,
217
+ isPressed,
218
+ isFocused,
219
+ isFocusVisible,
220
+ isHovered
221
+ };
222
+ }
223
+ /**
224
+ * Creates ARIA props for a tab panel.
225
+ */
226
+ function createTabPanel(props, state) {
227
+ const fallbackId = createId();
228
+ const associatedKey = createMemo(() => {
229
+ if (state === null) return null;
230
+ return props.id ?? state.selectedKey();
231
+ });
232
+ const isSelected = createMemo(() => {
233
+ if (state === null) return true;
234
+ if (props.id === void 0) return state.selectedKey() !== null;
235
+ return state.selectedKey() === props.id;
236
+ });
237
+ return {
238
+ tabPanelProps: {
239
+ get id() {
240
+ const key = associatedKey();
241
+ if (state && key !== null) return generateTabPanelId(state, key);
242
+ return fallbackId;
243
+ },
244
+ role: "tabpanel",
245
+ get "aria-labelledby"() {
246
+ if (props["aria-labelledby"]) return props["aria-labelledby"];
247
+ const key = associatedKey();
248
+ if (state && key !== null) return generateTabId(state, key);
249
+ },
250
+ "aria-label": props["aria-label"],
251
+ "aria-describedby": props["aria-describedby"],
252
+ tabIndex: 0
253
+ },
254
+ isSelected
255
+ };
256
+ }
257
+ //#endregion
258
+ export { createTabList as n, createTabPanel as r, createTab as t };
259
+
260
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.js","names":[],"sources":["../../src/tabs/createTabs.ts"],"sourcesContent":["/**\n * ARIA hooks for tab components.\n * Based on @react-aria/tabs.\n */\n\nimport { type Accessor, createEffect, createMemo } from \"solid-js\";\nimport { createFocusRing } from \"../interactions\";\nimport { createPress } from \"../interactions\";\nimport { createHover } from \"../interactions\";\nimport { createId } from \"../ssr\";\nimport { useLocale } from \"../i18n\";\nimport type { Key, Collection, CollectionNode } from \"@proyecto-viviana/solid-stately\";\n\nexport type TabOrientation = \"horizontal\" | \"vertical\";\nexport type KeyboardActivation = \"automatic\" | \"manual\";\n\nexport interface TabListState<T = unknown> {\n collection: Accessor<Collection<T>>;\n selectedKey: Accessor<Key | null>;\n setSelectedKey(key: Key): void;\n selectedItem: Accessor<CollectionNode<T> | null>;\n isDisabled: Accessor<boolean>;\n keyboardActivation: Accessor<KeyboardActivation>;\n orientation: Accessor<TabOrientation>;\n isKeyDisabled(key: Key): boolean;\n disabledKeys: Accessor<Set<Key>>;\n isFocused: Accessor<boolean>;\n setFocused(isFocused: boolean): void;\n focusedKey: Accessor<Key | null>;\n setFocusedKey(key: Key | null): void;\n}\n\nexport interface AriaTabListProps {\n /** The orientation of the tab list. */\n orientation?: TabOrientation;\n /** How tabs are activated (on focus or on click). */\n keyboardActivation?: KeyboardActivation;\n /** Whether the tab list is disabled. */\n isDisabled?: boolean;\n /** Label for the tab list. */\n \"aria-label\"?: string;\n /** ID of element that labels the tab list. */\n \"aria-labelledby\"?: string;\n /** ID of element that describes the tab list. */\n \"aria-describedby\"?: string;\n}\n\nexport interface TabListAria {\n /** Props for the tab list container element. */\n tabListProps: {\n role: \"tablist\";\n \"aria-orientation\": TabOrientation;\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n \"aria-describedby\"?: string;\n onKeyDown: (e: KeyboardEvent) => void;\n // React's bubbling onFocus/onBlur map to focusin/focusout in Solid; the\n // tab list must observe focus entering/leaving its child tabs.\n onFocusIn: (e: FocusEvent) => void;\n onFocusOut: (e: FocusEvent) => void;\n };\n}\n\nexport interface AriaTabProps {\n /** The key of the tab. */\n key: Key;\n /** Whether the tab is disabled. */\n isDisabled?: boolean;\n /** Label for the tab. */\n \"aria-label\"?: string;\n /** ID reference for the tab label. */\n \"aria-labelledby\"?: string;\n}\n\nexport interface TabAria {\n /** Props for the tab element. */\n tabProps: {\n id: string;\n role: \"tab\";\n \"aria-selected\": boolean;\n \"aria-disabled\": boolean | undefined;\n \"aria-controls\": string | undefined;\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n tabIndex: number | undefined;\n onKeyDown: (e: KeyboardEvent) => void;\n onMouseDown: (e: MouseEvent) => void;\n onPointerDown: (e: PointerEvent) => void;\n onClick: (e: MouseEvent) => void;\n onFocus: (e: FocusEvent) => void;\n onBlur: (e: FocusEvent) => void;\n };\n /** Whether the tab is selected. */\n isSelected: Accessor<boolean>;\n /** Whether the tab is disabled. */\n isDisabled: Accessor<boolean>;\n /** Whether the tab is pressed. */\n isPressed: Accessor<boolean>;\n /** Whether the tab has focus. */\n isFocused: Accessor<boolean>;\n /** Whether the tab has visible focus ring. */\n isFocusVisible: Accessor<boolean>;\n /** Whether the tab is hovered. */\n isHovered: Accessor<boolean>;\n}\n\nexport interface AriaTabPanelProps {\n /** The key of the associated tab. */\n id?: Key;\n /** Label for the tab panel. */\n \"aria-label\"?: string;\n /** ID of element that labels the tab panel. */\n \"aria-labelledby\"?: string;\n /** ID of element that describes the tab panel. */\n \"aria-describedby\"?: string;\n}\n\nexport interface TabPanelAria {\n /** Props for the tab panel element. */\n tabPanelProps: {\n id: string;\n role: \"tabpanel\";\n \"aria-labelledby\"?: string;\n \"aria-label\"?: string;\n \"aria-describedby\"?: string;\n tabIndex: number;\n };\n /** Whether this panel is the selected one. */\n isSelected: Accessor<boolean>;\n}\n\nconst tabListIds = new WeakMap<TabListState<unknown>, string>();\n\nfunction getTabListId<T>(state: TabListState<T>): string {\n let id = tabListIds.get(state as TabListState<unknown>);\n if (!id) {\n id = createId();\n tabListIds.set(state as TabListState<unknown>, id);\n }\n return id;\n}\n\nfunction generateTabId<T>(state: TabListState<T>, key: Key): string {\n const baseId = getTabListId(state);\n const keyStr = String(key).replace(/\\s+/g, \"-\");\n return `${baseId}-tab-${keyStr}`;\n}\n\nfunction generateTabPanelId<T>(state: TabListState<T>, key: Key): string {\n const baseId = getTabListId(state);\n const keyStr = String(key).replace(/\\s+/g, \"-\");\n return `${baseId}-tabpanel-${keyStr}`;\n}\n\nfunction getNextKey<T>(state: TabListState<T>, currentKey: Key): Key | null {\n const coll = state.collection();\n const keys = [...coll].map((node) => node.key);\n const currentIndex = keys.indexOf(currentKey);\n\n if (currentIndex === -1) return keys[0] ?? null;\n\n // Find next non-disabled key, wrapping around\n for (let i = 1; i <= keys.length; i++) {\n const nextIndex = (currentIndex + i) % keys.length;\n const nextKey = keys[nextIndex];\n if (!state.isKeyDisabled(nextKey)) {\n return nextKey;\n }\n }\n\n return null;\n}\n\nfunction getPreviousKey<T>(state: TabListState<T>, currentKey: Key): Key | null {\n const coll = state.collection();\n const keys = [...coll].map((node) => node.key);\n const currentIndex = keys.indexOf(currentKey);\n\n if (currentIndex === -1) return keys[keys.length - 1] ?? null;\n\n // Find previous non-disabled key, wrapping around\n for (let i = 1; i <= keys.length; i++) {\n const prevIndex = (currentIndex - i + keys.length) % keys.length;\n const prevKey = keys[prevIndex];\n if (!state.isKeyDisabled(prevKey)) {\n return prevKey;\n }\n }\n\n return null;\n}\n\nfunction getFirstKey<T>(state: TabListState<T>): Key | null {\n const coll = state.collection();\n for (const node of coll) {\n if (!state.isKeyDisabled(node.key)) {\n return node.key;\n }\n }\n return null;\n}\n\nfunction getLastKey<T>(state: TabListState<T>): Key | null {\n const coll = state.collection();\n const keys = [...coll].map((node) => node.key).reverse();\n for (const key of keys) {\n if (!state.isKeyDisabled(key)) {\n return key;\n }\n }\n return null;\n}\n\n/**\n * Creates ARIA props for a tab list container.\n */\nexport function createTabList<T>(props: AriaTabListProps, state: TabListState<T>): TabListAria {\n const locale = useLocale();\n const orientation = () => props.orientation ?? state.orientation() ?? \"horizontal\";\n const keyboardActivation = () =>\n props.keyboardActivation ?? state.keyboardActivation() ?? \"automatic\";\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (state.isDisabled()) return;\n\n const currentKey = state.focusedKey() ?? state.selectedKey();\n if (currentKey === null) return;\n\n let nextKey: Key | null = null;\n const isHorizontal = orientation() === \"horizontal\";\n const isRTL = locale().direction === \"rtl\";\n\n switch (e.key) {\n case \"ArrowLeft\":\n if (isHorizontal) {\n nextKey = isRTL ? getNextKey(state, currentKey) : getPreviousKey(state, currentKey);\n }\n break;\n case \"ArrowRight\":\n if (isHorizontal) {\n nextKey = isRTL ? getPreviousKey(state, currentKey) : getNextKey(state, currentKey);\n }\n break;\n case \"ArrowUp\":\n if (!isHorizontal) {\n nextKey = getPreviousKey(state, currentKey);\n }\n break;\n case \"ArrowDown\":\n if (!isHorizontal) {\n nextKey = getNextKey(state, currentKey);\n }\n break;\n case \"Home\":\n nextKey = getFirstKey(state);\n break;\n case \"End\":\n nextKey = getLastKey(state);\n break;\n case \"Enter\":\n case \" \":\n // In manual mode, Enter/Space activates the focused tab\n if (keyboardActivation() === \"manual\" && state.focusedKey()) {\n state.setSelectedKey(state.focusedKey()!);\n e.preventDefault();\n }\n return;\n default:\n return;\n }\n\n if (nextKey !== null) {\n e.preventDefault();\n state.setFocusedKey(nextKey);\n // Selection follows focus only for keyboard navigation in automatic mode\n // (mirrors useSelectableCollection's selectOnFocus in navigateToKey).\n if (keyboardActivation() === \"automatic\") {\n state.setSelectedKey(nextKey);\n }\n }\n };\n\n const handleFocus = () => {\n state.setFocused(true);\n // If no focused key, focus the selected key\n if (state.focusedKey() === null && state.selectedKey() !== null) {\n state.setFocusedKey(state.selectedKey());\n }\n };\n\n const handleBlur = (e: FocusEvent) => {\n // Only blur if focus is leaving the tab list entirely\n const relatedTarget = e.relatedTarget as Element | null;\n if (relatedTarget && (e.currentTarget as Element).contains(relatedTarget)) {\n return;\n }\n state.setFocused(false);\n };\n\n return {\n tabListProps: {\n role: \"tablist\",\n \"aria-orientation\": orientation(),\n \"aria-label\": props[\"aria-label\"],\n \"aria-labelledby\": props[\"aria-labelledby\"],\n \"aria-describedby\": props[\"aria-describedby\"],\n onKeyDown: handleKeyDown,\n onFocusIn: handleFocus,\n onFocusOut: handleBlur,\n },\n };\n}\n\n/**\n * Creates ARIA props for an individual tab.\n */\nexport function createTab<T>(\n props: AriaTabProps,\n state: TabListState<T>,\n ref?: Accessor<HTMLElement | null>,\n): TabAria {\n const key = () => props.key;\n\n const isSelected = createMemo(() => state.selectedKey() === key());\n const isDisabled = createMemo(() => {\n if (props.isDisabled) return true;\n return state.isKeyDisabled(key());\n });\n\n // Whether this tab is the roving-focus target (state layer), used for the\n // roving tabIndex and DOM focus alignment. The returned isFocused is the\n // DOM-focus-based ring state, matching upstream's useFocusRing semantics.\n const isKeyFocused = createMemo(() => state.focusedKey() === key());\n\n // Focus ring\n const { isFocused, isFocusVisible, focusProps } = createFocusRing();\n\n // Press handling. Selection timing mirrors useSelectableItem's default\n // (non-shouldSelectOnPressUp) path: mouse selects on press start and\n // keyboard on key down, while touch, pen, and virtual pointers select on\n // press up.\n const selectTab = () => {\n const tabKey = key();\n state.setFocusedKey(tabKey);\n state.setSelectedKey(tabKey);\n };\n const { isPressed, pressProps } = createPress({\n get isDisabled() {\n return isDisabled();\n },\n onPressStart: (e) => {\n if (e.pointerType === \"mouse\" || e.pointerType === \"keyboard\") {\n selectTab();\n }\n },\n onPress: (e) => {\n if (e.pointerType === \"touch\" || e.pointerType === \"pen\" || e.pointerType === \"virtual\") {\n selectTab();\n }\n },\n });\n\n // Hover handling\n const { isHovered } = createHover({\n get isDisabled() {\n return isDisabled();\n },\n });\n\n // Generate IDs\n const tabId = generateTabId(state, key());\n const tabPanelId = generateTabPanelId(state, key());\n\n // Helper to safely call event handlers that may be bound tuples\n const callHandler = <E extends Event>(handler: unknown, event: E) => {\n if (typeof handler === \"function\") {\n (handler as (e: E) => void)(event);\n return;\n }\n if (Array.isArray(handler) && handler.length >= 2 && typeof handler[1] === \"function\") {\n (handler[1] as (this: unknown, e: E) => void).call(handler[0], event);\n }\n };\n\n // Focus management\n const handleFocus = (e: FocusEvent) => {\n state.setFocusedKey(key());\n callHandler(focusProps.onFocus, e);\n };\n\n const handleBlur = (e: FocusEvent) => {\n callHandler(focusProps.onBlur, e);\n };\n\n // Combine all handlers\n const handleKeyDown = (e: KeyboardEvent) => {\n callHandler(pressProps.onKeyDown, e);\n };\n\n const handleMouseDown = (e: MouseEvent) => {\n callHandler(pressProps.onMouseDown, e);\n };\n\n const handlePointerDown = (e: PointerEvent) => {\n callHandler(pressProps.onPointerDown, e);\n };\n\n const handleClick = (e: MouseEvent) => {\n callHandler(pressProps.onClick, e);\n };\n\n // Keep DOM focus aligned with focusedKey updates from keyboard navigation.\n // Only while the tab list itself is focused (mirrors useSelectableItem's\n // manager.isFocused guard), so programmatic selection changes don't steal\n // focus from elsewhere in the document.\n createEffect(() => {\n const element = ref?.();\n if (!state.isFocused() || !isKeyFocused() || !element) return;\n\n const activeElement = element.ownerDocument?.activeElement;\n if (activeElement !== element) {\n element.focus();\n }\n });\n\n return {\n tabProps: {\n id: tabId,\n role: \"tab\",\n get \"aria-selected\"() {\n return isSelected();\n },\n get \"aria-disabled\"() {\n return isDisabled() || undefined;\n },\n get \"aria-controls\"() {\n return isSelected() ? tabPanelId : undefined;\n },\n \"aria-label\": props[\"aria-label\"],\n \"aria-labelledby\": props[\"aria-labelledby\"],\n get tabIndex() {\n // Roving tabIndex follows the focused key (mirrors useSelectableItem);\n // disabled tabs get no tabIndex at all (mirrors useTab).\n if (isDisabled()) return undefined;\n return isKeyFocused() ? 0 : -1;\n },\n onKeyDown: handleKeyDown,\n onMouseDown: handleMouseDown,\n onPointerDown: handlePointerDown,\n onClick: handleClick,\n onFocus: handleFocus,\n onBlur: handleBlur,\n },\n isSelected,\n isDisabled,\n isPressed,\n isFocused,\n isFocusVisible,\n isHovered,\n };\n}\n\n/**\n * Creates ARIA props for a tab panel.\n */\nexport function createTabPanel<T>(\n props: AriaTabPanelProps,\n state: TabListState<T> | null,\n): TabPanelAria {\n const fallbackId = createId();\n\n // Shared panel pattern: if no explicit id is provided, associate the panel\n // with the currently selected tab.\n const associatedKey = createMemo<Key | null>(() => {\n if (state === null) return null;\n return props.id ?? state.selectedKey();\n });\n\n // If state is null, the panel is always visible (SSR fallback).\n const isSelected = createMemo(() => {\n if (state === null) return true;\n if (props.id === undefined) {\n return state.selectedKey() !== null;\n }\n return state.selectedKey() === props.id;\n });\n\n return {\n tabPanelProps: {\n get id() {\n const key = associatedKey();\n if (state && key !== null) {\n return generateTabPanelId(state, key);\n }\n return fallbackId;\n },\n role: \"tabpanel\",\n get \"aria-labelledby\"() {\n if (props[\"aria-labelledby\"]) return props[\"aria-labelledby\"];\n const key = associatedKey();\n if (state && key !== null) {\n return generateTabId(state, key);\n }\n return undefined;\n },\n \"aria-label\": props[\"aria-label\"],\n \"aria-describedby\": props[\"aria-describedby\"],\n // Make panel focusable if no tabbable children\n tabIndex: 0,\n },\n isSelected,\n };\n}\n"],"mappings":";;;;;;;;;;;AAmIA,MAAM,6BAAa,IAAI,QAAuC;AAE9D,SAAS,aAAgB,OAAgC;CACvD,IAAI,KAAK,WAAW,IAAI,KAA8B;CACtD,IAAI,CAAC,IAAI;EACP,KAAK,SAAS;EACd,WAAW,IAAI,OAAgC,EAAE;CACnD;CACA,OAAO;AACT;AAEA,SAAS,cAAiB,OAAwB,KAAkB;CAGlE,OAAO,GAFQ,aAAa,KAEb,EAAE,OADF,OAAO,GAAG,CAAC,CAAC,QAAQ,QAAQ,GACd;AAC/B;AAEA,SAAS,mBAAsB,OAAwB,KAAkB;CAGvE,OAAO,GAFQ,aAAa,KAEb,EAAE,YADF,OAAO,GAAG,CAAC,CAAC,QAAQ,QAAQ,GACT;AACpC;AAEA,SAAS,WAAc,OAAwB,YAA6B;CAE1E,MAAM,OAAO,CAAC,GADD,MAAM,WACC,CAAC,CAAC,CAAC,KAAK,SAAS,KAAK,GAAG;CAC7C,MAAM,eAAe,KAAK,QAAQ,UAAU;CAE5C,IAAI,iBAAiB,IAAI,OAAO,KAAK,MAAM;CAG3C,KAAK,IAAI,IAAI,GAAG,KAAK,KAAK,QAAQ,KAAK;EAErC,MAAM,UAAU,MADG,eAAe,KAAK,KAAK;EAE5C,IAAI,CAAC,MAAM,cAAc,O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