@proyecto-viviana/solidaria 0.3.0 → 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 (566) hide show
  1. package/dist/_chunk/actiongroup.js +207 -0
  2. package/dist/_chunk/actiongroup.js.map +1 -0
  3. package/dist/_chunk/actiongroup.jsx +207 -0
  4. package/dist/_chunk/actiongroup.jsx.map +1 -0
  5. package/dist/_chunk/ariaHideOutside.js +122 -0
  6. package/dist/_chunk/ariaHideOutside.js.map +1 -0
  7. package/dist/_chunk/ariaHideOutside.jsx +122 -0
  8. package/dist/_chunk/ariaHideOutside.jsx.map +1 -0
  9. package/dist/_chunk/autocomplete.js +196 -0
  10. package/dist/_chunk/autocomplete.js.map +1 -0
  11. package/dist/_chunk/autocomplete.jsx +196 -0
  12. package/dist/_chunk/autocomplete.jsx.map +1 -0
  13. package/dist/_chunk/breadcrumbs.js +119 -0
  14. package/dist/_chunk/breadcrumbs.js.map +1 -0
  15. package/dist/_chunk/breadcrumbs.jsx +119 -0
  16. package/dist/_chunk/breadcrumbs.jsx.map +1 -0
  17. package/dist/_chunk/button.js +276 -0
  18. package/dist/_chunk/button.js.map +1 -0
  19. package/dist/_chunk/button.jsx +276 -0
  20. package/dist/_chunk/button.jsx.map +1 -0
  21. package/dist/_chunk/calendar.js +1036 -0
  22. package/dist/_chunk/calendar.js.map +1 -0
  23. package/dist/_chunk/calendar.jsx +1036 -0
  24. package/dist/_chunk/calendar.jsx.map +1 -0
  25. package/dist/_chunk/checkbox.js +234 -0
  26. package/dist/_chunk/checkbox.js.map +1 -0
  27. package/dist/_chunk/checkbox.jsx +234 -0
  28. package/dist/_chunk/checkbox.jsx.map +1 -0
  29. package/dist/_chunk/color.js +1174 -0
  30. package/dist/_chunk/color.js.map +1 -0
  31. package/dist/_chunk/color.jsx +1174 -0
  32. package/dist/_chunk/color.jsx.map +1 -0
  33. package/dist/_chunk/combobox.js +436 -0
  34. package/dist/_chunk/combobox.js.map +1 -0
  35. package/dist/_chunk/combobox.jsx +436 -0
  36. package/dist/_chunk/combobox.jsx.map +1 -0
  37. package/dist/_chunk/createCollator.js +229 -0
  38. package/dist/_chunk/createCollator.js.map +1 -0
  39. package/dist/_chunk/createCollator.jsx +223 -0
  40. package/dist/_chunk/createCollator.jsx.map +1 -0
  41. package/dist/_chunk/createCollectionRowInteraction.js +133 -0
  42. package/dist/_chunk/createCollectionRowInteraction.js.map +1 -0
  43. package/dist/_chunk/createCollectionRowInteraction.jsx +133 -0
  44. package/dist/_chunk/createCollectionRowInteraction.jsx.map +1 -0
  45. package/dist/_chunk/createField.js +54 -0
  46. package/dist/_chunk/createField.js.map +1 -0
  47. package/dist/_chunk/createField.jsx +54 -0
  48. package/dist/_chunk/createField.jsx.map +1 -0
  49. package/dist/_chunk/createFocus.js +101 -0
  50. package/dist/_chunk/createFocus.js.map +1 -0
  51. package/dist/_chunk/createFocus.jsx +101 -0
  52. package/dist/_chunk/createFocus.jsx.map +1 -0
  53. package/dist/_chunk/createFocusRing.js +54 -0
  54. package/dist/_chunk/createFocusRing.js.map +1 -0
  55. package/dist/_chunk/createFocusRing.jsx +54 -0
  56. package/dist/_chunk/createFocusRing.jsx.map +1 -0
  57. package/dist/_chunk/createFocusWithin.js +121 -0
  58. package/dist/_chunk/createFocusWithin.js.map +1 -0
  59. package/dist/_chunk/createFocusWithin.jsx +121 -0
  60. package/dist/_chunk/createFocusWithin.jsx.map +1 -0
  61. package/dist/_chunk/createFocusable.js +131 -0
  62. package/dist/_chunk/createFocusable.js.map +1 -0
  63. package/dist/_chunk/createFocusable.jsx +131 -0
  64. package/dist/_chunk/createFocusable.jsx.map +1 -0
  65. package/dist/_chunk/createFormValidation.js +135 -0
  66. package/dist/_chunk/createFormValidation.js.map +1 -0
  67. package/dist/_chunk/createFormValidation.jsx +135 -0
  68. package/dist/_chunk/createFormValidation.jsx.map +1 -0
  69. package/dist/_chunk/createHover.js +130 -0
  70. package/dist/_chunk/createHover.js.map +1 -0
  71. package/dist/_chunk/createHover.jsx +130 -0
  72. package/dist/_chunk/createHover.jsx.map +1 -0
  73. package/dist/_chunk/createInteractionModality.js +269 -0
  74. package/dist/_chunk/createInteractionModality.js.map +1 -0
  75. package/dist/_chunk/createInteractionModality.jsx +269 -0
  76. package/dist/_chunk/createInteractionModality.jsx.map +1 -0
  77. package/dist/_chunk/createLabel.js +46 -0
  78. package/dist/_chunk/createLabel.js.map +1 -0
  79. package/dist/_chunk/createLabel.jsx +46 -0
  80. package/dist/_chunk/createLabel.jsx.map +1 -0
  81. package/dist/_chunk/createLabels.js +31 -0
  82. package/dist/_chunk/createLabels.js.map +1 -0
  83. package/dist/_chunk/createLabels.jsx +31 -0
  84. package/dist/_chunk/createLabels.jsx.map +1 -0
  85. package/dist/_chunk/createLandmark.js +198 -0
  86. package/dist/_chunk/createLandmark.js.map +1 -0
  87. package/dist/_chunk/createLandmark.jsx +198 -0
  88. package/dist/_chunk/createLandmark.jsx.map +1 -0
  89. package/dist/_chunk/createLongPress.js +91 -0
  90. package/dist/_chunk/createLongPress.js.map +1 -0
  91. package/dist/_chunk/createLongPress.jsx +91 -0
  92. package/dist/_chunk/createLongPress.jsx.map +1 -0
  93. package/dist/_chunk/createOverlay.js +327 -0
  94. package/dist/_chunk/createOverlay.js.map +1 -0
  95. package/dist/_chunk/createOverlay.jsx +327 -0
  96. package/dist/_chunk/createOverlay.jsx.map +1 -0
  97. package/dist/_chunk/createPress.js +526 -0
  98. package/dist/_chunk/createPress.js.map +1 -0
  99. package/dist/_chunk/createPress.jsx +526 -0
  100. package/dist/_chunk/createPress.jsx.map +1 -0
  101. package/dist/_chunk/createProgressBar.js +81 -0
  102. package/dist/_chunk/createProgressBar.js.map +1 -0
  103. package/dist/_chunk/createProgressBar.jsx +81 -0
  104. package/dist/_chunk/createProgressBar.jsx.map +1 -0
  105. package/dist/_chunk/createSelectableItem.js +298 -0
  106. package/dist/_chunk/createSelectableItem.js.map +1 -0
  107. package/dist/_chunk/createSelectableItem.jsx +298 -0
  108. package/dist/_chunk/createSelectableItem.jsx.map +1 -0
  109. package/dist/_chunk/createToggle.js +158 -0
  110. package/dist/_chunk/createToggle.js.map +1 -0
  111. package/dist/_chunk/createToggle.jsx +158 -0
  112. package/dist/_chunk/createToggle.jsx.map +1 -0
  113. package/dist/_chunk/createTypeSelect.js +125 -0
  114. package/dist/_chunk/createTypeSelect.js.map +1 -0
  115. package/dist/_chunk/createTypeSelect.jsx +125 -0
  116. package/dist/_chunk/createTypeSelect.jsx.map +1 -0
  117. package/dist/_chunk/datepicker.js +1393 -0
  118. package/dist/_chunk/datepicker.js.map +1 -0
  119. package/dist/_chunk/datepicker.jsx +1393 -0
  120. package/dist/_chunk/datepicker.jsx.map +1 -0
  121. package/dist/_chunk/dialog.js +62 -0
  122. package/dist/_chunk/dialog.js.map +1 -0
  123. package/dist/_chunk/dialog.jsx +62 -0
  124. package/dist/_chunk/dialog.jsx.map +1 -0
  125. package/dist/_chunk/disclosure.js +185 -0
  126. package/dist/_chunk/disclosure.js.map +1 -0
  127. package/dist/_chunk/disclosure.jsx +185 -0
  128. package/dist/_chunk/disclosure.jsx.map +1 -0
  129. package/dist/_chunk/dnd.js +1304 -0
  130. package/dist/_chunk/dnd.js.map +1 -0
  131. package/dist/_chunk/dnd.jsx +1304 -0
  132. package/dist/_chunk/dnd.jsx.map +1 -0
  133. package/dist/_chunk/env.js +105 -0
  134. package/dist/_chunk/env.js.map +1 -0
  135. package/dist/_chunk/env.jsx +105 -0
  136. package/dist/_chunk/env.jsx.map +1 -0
  137. package/dist/_chunk/filterDOMProps.js +82 -0
  138. package/dist/_chunk/filterDOMProps.js.map +1 -0
  139. package/dist/_chunk/filterDOMProps.jsx +82 -0
  140. package/dist/_chunk/filterDOMProps.jsx.map +1 -0
  141. package/dist/_chunk/focus.js +399 -0
  142. package/dist/_chunk/focus.js.map +1 -0
  143. package/dist/_chunk/focus.jsx +399 -0
  144. package/dist/_chunk/focus.jsx.map +1 -0
  145. package/dist/_chunk/focus2.js +895 -0
  146. package/dist/_chunk/focus2.js.map +1 -0
  147. package/dist/_chunk/focus2.jsx +870 -0
  148. package/dist/_chunk/focus2.jsx.map +1 -0
  149. package/dist/_chunk/form.js +39 -0
  150. package/dist/_chunk/form.js.map +1 -0
  151. package/dist/_chunk/form.jsx +39 -0
  152. package/dist/_chunk/form.jsx.map +1 -0
  153. package/dist/_chunk/grid.js +623 -0
  154. package/dist/_chunk/grid.js.map +1 -0
  155. package/dist/_chunk/grid.jsx +623 -0
  156. package/dist/_chunk/grid.jsx.map +1 -0
  157. package/dist/_chunk/gridlist.js +364 -0
  158. package/dist/_chunk/gridlist.js.map +1 -0
  159. package/dist/_chunk/gridlist.jsx +364 -0
  160. package/dist/_chunk/gridlist.jsx.map +1 -0
  161. package/dist/_chunk/i18n.js +254 -0
  162. package/dist/_chunk/i18n.js.map +1 -0
  163. package/dist/_chunk/i18n.jsx +254 -0
  164. package/dist/_chunk/i18n.jsx.map +1 -0
  165. package/dist/_chunk/interactions.js +241 -0
  166. package/dist/_chunk/interactions.js.map +1 -0
  167. package/dist/_chunk/interactions.jsx +237 -0
  168. package/dist/_chunk/interactions.jsx.map +1 -0
  169. package/dist/_chunk/link.js +96 -0
  170. package/dist/_chunk/link.js.map +1 -0
  171. package/dist/_chunk/link.jsx +96 -0
  172. package/dist/_chunk/link.jsx.map +1 -0
  173. package/dist/_chunk/listbox.js +324 -0
  174. package/dist/_chunk/listbox.js.map +1 -0
  175. package/dist/_chunk/listbox.jsx +324 -0
  176. package/dist/_chunk/listbox.jsx.map +1 -0
  177. package/dist/_chunk/live-announcer.js +207 -0
  178. package/dist/_chunk/live-announcer.js.map +1 -0
  179. package/dist/_chunk/live-announcer.jsx +207 -0
  180. package/dist/_chunk/live-announcer.jsx.map +1 -0
  181. package/dist/_chunk/menu.js +518 -0
  182. package/dist/_chunk/menu.js.map +1 -0
  183. package/dist/_chunk/menu.jsx +518 -0
  184. package/dist/_chunk/menu.jsx.map +1 -0
  185. package/dist/_chunk/meter.js +33 -0
  186. package/dist/_chunk/meter.js.map +1 -0
  187. package/dist/_chunk/meter.jsx +33 -0
  188. package/dist/_chunk/meter.jsx.map +1 -0
  189. package/dist/_chunk/numberfield.js +258 -0
  190. package/dist/_chunk/numberfield.js.map +1 -0
  191. package/dist/_chunk/numberfield.jsx +258 -0
  192. package/dist/_chunk/numberfield.jsx.map +1 -0
  193. package/dist/_chunk/overlays.js +186 -0
  194. package/dist/_chunk/overlays.js.map +1 -0
  195. package/dist/_chunk/overlays.jsx +162 -0
  196. package/dist/_chunk/overlays.jsx.map +1 -0
  197. package/dist/_chunk/popover.js +574 -0
  198. package/dist/_chunk/popover.js.map +1 -0
  199. package/dist/_chunk/popover.jsx +574 -0
  200. package/dist/_chunk/popover.jsx.map +1 -0
  201. package/dist/_chunk/radio.js +319 -0
  202. package/dist/_chunk/radio.js.map +1 -0
  203. package/dist/_chunk/radio.jsx +319 -0
  204. package/dist/_chunk/radio.jsx.map +1 -0
  205. package/dist/_chunk/searchfield.js +209 -0
  206. package/dist/_chunk/searchfield.js.map +1 -0
  207. package/dist/_chunk/searchfield.jsx +209 -0
  208. package/dist/_chunk/searchfield.jsx.map +1 -0
  209. package/dist/_chunk/select.js +403 -0
  210. package/dist/_chunk/select.js.map +1 -0
  211. package/dist/_chunk/select.jsx +394 -0
  212. package/dist/_chunk/select.jsx.map +1 -0
  213. package/dist/_chunk/selection.js +679 -0
  214. package/dist/_chunk/selection.js.map +1 -0
  215. package/dist/_chunk/selection.jsx +679 -0
  216. package/dist/_chunk/selection.jsx.map +1 -0
  217. package/dist/_chunk/separator.js +29 -0
  218. package/dist/_chunk/separator.js.map +1 -0
  219. package/dist/_chunk/separator.jsx +29 -0
  220. package/dist/_chunk/separator.jsx.map +1 -0
  221. package/dist/_chunk/slider.js +255 -0
  222. package/dist/_chunk/slider.js.map +1 -0
  223. package/dist/_chunk/slider.jsx +255 -0
  224. package/dist/_chunk/slider.jsx.map +1 -0
  225. package/dist/_chunk/steplist.js +66 -0
  226. package/dist/_chunk/steplist.js.map +1 -0
  227. package/dist/_chunk/steplist.jsx +66 -0
  228. package/dist/_chunk/steplist.jsx.map +1 -0
  229. package/dist/_chunk/switch.js +34 -0
  230. package/dist/_chunk/switch.js.map +1 -0
  231. package/dist/_chunk/switch.jsx +34 -0
  232. package/dist/_chunk/switch.jsx.map +1 -0
  233. package/dist/_chunk/table.js +1051 -0
  234. package/dist/_chunk/table.js.map +1 -0
  235. package/dist/_chunk/table.jsx +1051 -0
  236. package/dist/_chunk/table.jsx.map +1 -0
  237. package/dist/_chunk/tabs.js +260 -0
  238. package/dist/_chunk/tabs.js.map +1 -0
  239. package/dist/_chunk/tabs.jsx +260 -0
  240. package/dist/_chunk/tabs.jsx.map +1 -0
  241. package/dist/_chunk/tag.js +286 -0
  242. package/dist/_chunk/tag.js.map +1 -0
  243. package/dist/_chunk/tag.jsx +286 -0
  244. package/dist/_chunk/tag.jsx.map +1 -0
  245. package/dist/_chunk/textfield.js +109 -0
  246. package/dist/_chunk/textfield.js.map +1 -0
  247. package/dist/_chunk/textfield.jsx +109 -0
  248. package/dist/_chunk/textfield.jsx.map +1 -0
  249. package/dist/_chunk/toast.js +250 -0
  250. package/dist/_chunk/toast.js.map +1 -0
  251. package/dist/_chunk/toast.jsx +250 -0
  252. package/dist/_chunk/toast.jsx.map +1 -0
  253. package/dist/_chunk/toolbar.js +258 -0
  254. package/dist/_chunk/toolbar.js.map +1 -0
  255. package/dist/_chunk/toolbar.jsx +258 -0
  256. package/dist/_chunk/toolbar.jsx.map +1 -0
  257. package/dist/_chunk/tooltip.js +185 -0
  258. package/dist/_chunk/tooltip.js.map +1 -0
  259. package/dist/_chunk/tooltip.jsx +185 -0
  260. package/dist/_chunk/tooltip.jsx.map +1 -0
  261. package/dist/_chunk/tree.js +424 -0
  262. package/dist/_chunk/tree.js.map +1 -0
  263. package/dist/_chunk/tree.jsx +424 -0
  264. package/dist/_chunk/tree.jsx.map +1 -0
  265. package/dist/_chunk/utils.js +665 -0
  266. package/dist/_chunk/utils.js.map +1 -0
  267. package/dist/_chunk/utils.jsx +665 -0
  268. package/dist/_chunk/utils.jsx.map +1 -0
  269. package/dist/_chunk/visually-hidden.js +92 -0
  270. package/dist/_chunk/visually-hidden.js.map +1 -0
  271. package/dist/_chunk/visually-hidden.jsx +92 -0
  272. package/dist/_chunk/visually-hidden.jsx.map +1 -0
  273. package/dist/actiongroup/index.js +2 -0
  274. package/dist/actiongroup/index.jsx +2 -0
  275. package/dist/autocomplete/createAutocomplete.d.ts +2 -0
  276. package/dist/autocomplete/createAutocomplete.d.ts.map +1 -1
  277. package/dist/autocomplete/index.js +2 -0
  278. package/dist/autocomplete/index.jsx +2 -0
  279. package/dist/breadcrumbs/index.js +2 -0
  280. package/dist/breadcrumbs/index.jsx +2 -0
  281. package/dist/button/index.js +2 -0
  282. package/dist/button/index.jsx +2 -0
  283. package/dist/calendar/createCalendar.d.ts.map +1 -1
  284. package/dist/calendar/createCalendarCell.d.ts.map +1 -1
  285. package/dist/calendar/createCalendarGrid.d.ts.map +1 -1
  286. package/dist/calendar/createCalendarMonthPicker.d.ts +41 -0
  287. package/dist/calendar/createCalendarMonthPicker.d.ts.map +1 -0
  288. package/dist/calendar/createCalendarYearPicker.d.ts +49 -0
  289. package/dist/calendar/createCalendarYearPicker.d.ts.map +1 -0
  290. package/dist/calendar/createRangeCalendar.d.ts.map +1 -1
  291. package/dist/calendar/index.d.ts +2 -0
  292. package/dist/calendar/index.d.ts.map +1 -1
  293. package/dist/calendar/index.js +2 -0
  294. package/dist/calendar/index.jsx +2 -0
  295. package/dist/calendar/utils.d.ts +4 -0
  296. package/dist/calendar/utils.d.ts.map +1 -1
  297. package/dist/checkbox/createCheckbox.d.ts +4 -0
  298. package/dist/checkbox/createCheckbox.d.ts.map +1 -1
  299. package/dist/checkbox/createCheckboxGroupItem.d.ts.map +1 -1
  300. package/dist/checkbox/index.js +2 -0
  301. package/dist/checkbox/index.jsx +2 -0
  302. package/dist/collections/index.js +160 -0
  303. package/dist/collections/index.js.map +1 -0
  304. package/dist/collections/index.jsx +160 -0
  305. package/dist/collections/index.jsx.map +1 -0
  306. package/dist/color/index.js +2 -0
  307. package/dist/color/index.jsx +2 -0
  308. package/dist/combobox/index.js +2 -0
  309. package/dist/combobox/index.jsx +2 -0
  310. package/dist/datepicker/createDateSegment.d.ts.map +1 -1
  311. package/dist/datepicker/index.js +2 -0
  312. package/dist/datepicker/index.jsx +2 -0
  313. package/dist/dialog/index.js +2 -0
  314. package/dist/dialog/index.jsx +2 -0
  315. package/dist/disclosure/index.js +2 -0
  316. package/dist/disclosure/index.jsx +2 -0
  317. package/dist/dnd/createDroppableCollection.d.ts.map +1 -1
  318. package/dist/dnd/index.js +2 -0
  319. package/dist/dnd/index.jsx +2 -0
  320. package/dist/dnd/utils.d.ts +2 -2
  321. package/dist/dnd/utils.d.ts.map +1 -1
  322. package/dist/focus/FocusScope.d.ts.map +1 -1
  323. package/dist/focus/index.js +2 -0
  324. package/dist/focus/index.jsx +2 -0
  325. package/dist/form/createFormValidation.d.ts.map +1 -1
  326. package/dist/form/index.js +3 -0
  327. package/dist/form/index.jsx +3 -0
  328. package/dist/grid/index.js +2 -0
  329. package/dist/grid/index.jsx +2 -0
  330. package/dist/gridlist/createGridList.d.ts +7 -1
  331. package/dist/gridlist/createGridList.d.ts.map +1 -1
  332. package/dist/gridlist/createGridListItem.d.ts +1 -1
  333. package/dist/gridlist/createGridListItem.d.ts.map +1 -1
  334. package/dist/gridlist/createGridListSection.d.ts +15 -0
  335. package/dist/gridlist/createGridListSection.d.ts.map +1 -0
  336. package/dist/gridlist/index.d.ts +2 -1
  337. package/dist/gridlist/index.d.ts.map +1 -1
  338. package/dist/gridlist/index.js +2 -0
  339. package/dist/gridlist/index.jsx +2 -0
  340. package/dist/gridlist/types.d.ts +50 -0
  341. package/dist/gridlist/types.d.ts.map +1 -1
  342. package/dist/i18n/index.js +3 -0
  343. package/dist/i18n/index.jsx +3 -0
  344. package/dist/index.d.ts +7 -3
  345. package/dist/index.d.ts.map +1 -1
  346. package/dist/index.js +71 -18311
  347. package/dist/index.jsx +71 -18242
  348. package/dist/interactions/PressEvent.d.ts +11 -0
  349. package/dist/interactions/PressEvent.d.ts.map +1 -1
  350. package/dist/interactions/createInteractionModality.d.ts +0 -1
  351. package/dist/interactions/createInteractionModality.d.ts.map +1 -1
  352. package/dist/interactions/createKeyboard.d.ts.map +1 -1
  353. package/dist/interactions/createPress.d.ts.map +1 -1
  354. package/dist/interactions/index.js +10 -0
  355. package/dist/interactions/index.jsx +10 -0
  356. package/dist/label/index.js +4 -0
  357. package/dist/label/index.jsx +4 -0
  358. package/dist/landmark/index.js +2 -0
  359. package/dist/landmark/index.jsx +2 -0
  360. package/dist/link/index.js +2 -0
  361. package/dist/link/index.jsx +2 -0
  362. package/dist/listbox/createListBox.d.ts +37 -0
  363. package/dist/listbox/createListBox.d.ts.map +1 -1
  364. package/dist/listbox/createOption.d.ts +6 -0
  365. package/dist/listbox/createOption.d.ts.map +1 -1
  366. package/dist/listbox/index.js +2 -0
  367. package/dist/listbox/index.jsx +2 -0
  368. package/dist/live-announcer/index.js +2 -0
  369. package/dist/live-announcer/index.jsx +2 -0
  370. package/dist/menu/createMenu.d.ts +7 -4
  371. package/dist/menu/createMenu.d.ts.map +1 -1
  372. package/dist/menu/createMenuItem.d.ts +9 -1
  373. package/dist/menu/createMenuItem.d.ts.map +1 -1
  374. package/dist/menu/index.js +2 -0
  375. package/dist/menu/index.jsx +2 -0
  376. package/dist/meter/index.js +2 -0
  377. package/dist/meter/index.jsx +2 -0
  378. package/dist/numberfield/createNumberField.d.ts.map +1 -1
  379. package/dist/numberfield/index.js +2 -0
  380. package/dist/numberfield/index.jsx +2 -0
  381. package/dist/overlays/index.js +4 -0
  382. package/dist/overlays/index.jsx +4 -0
  383. package/dist/popover/calculatePosition.d.ts +2 -0
  384. package/dist/popover/calculatePosition.d.ts.map +1 -1
  385. package/dist/popover/createOverlayPosition.d.ts +8 -0
  386. package/dist/popover/createOverlayPosition.d.ts.map +1 -1
  387. package/dist/popover/index.js +2 -0
  388. package/dist/popover/index.jsx +2 -0
  389. package/dist/progress/index.js +2 -0
  390. package/dist/progress/index.jsx +2 -0
  391. package/dist/radio/createRadio.d.ts +2 -0
  392. package/dist/radio/createRadio.d.ts.map +1 -1
  393. package/dist/radio/index.js +2 -0
  394. package/dist/radio/index.jsx +2 -0
  395. package/dist/searchfield/index.js +2 -0
  396. package/dist/searchfield/index.jsx +2 -0
  397. package/dist/select/createSelect.d.ts.map +1 -1
  398. package/dist/select/index.js +2 -0
  399. package/dist/select/index.jsx +2 -0
  400. package/dist/selection/DOMLayoutDelegate.d.ts +58 -0
  401. package/dist/selection/DOMLayoutDelegate.d.ts.map +1 -0
  402. package/dist/selection/ListKeyboardDelegate.d.ts +95 -0
  403. package/dist/selection/ListKeyboardDelegate.d.ts.map +1 -0
  404. package/dist/selection/constants.d.ts +15 -0
  405. package/dist/selection/constants.d.ts.map +1 -0
  406. package/dist/selection/createCollectionRowInteraction.d.ts +13 -0
  407. package/dist/selection/createCollectionRowInteraction.d.ts.map +1 -0
  408. package/dist/selection/createScrollIntoViewOnFocus.d.ts +31 -0
  409. package/dist/selection/createScrollIntoViewOnFocus.d.ts.map +1 -0
  410. package/dist/selection/createSelectableCollection.d.ts +69 -0
  411. package/dist/selection/createSelectableCollection.d.ts.map +1 -0
  412. package/dist/selection/createSelectableItem.d.ts +154 -0
  413. package/dist/selection/createSelectableItem.d.ts.map +1 -0
  414. package/dist/selection/createSelectableList.d.ts +43 -0
  415. package/dist/selection/createSelectableList.d.ts.map +1 -0
  416. package/dist/selection/createTypeSelect.d.ts.map +1 -1
  417. package/dist/selection/index.d.ts +9 -0
  418. package/dist/selection/index.d.ts.map +1 -1
  419. package/dist/selection/index.js +4 -0
  420. package/dist/selection/index.jsx +4 -0
  421. package/dist/selection/selectItem.d.ts +29 -0
  422. package/dist/selection/selectItem.d.ts.map +1 -0
  423. package/dist/selection/utils.d.ts +40 -0
  424. package/dist/selection/utils.d.ts.map +1 -0
  425. package/dist/separator/index.js +2 -0
  426. package/dist/separator/index.jsx +2 -0
  427. package/dist/slider/createSlider.d.ts.map +1 -1
  428. package/dist/slider/index.js +2 -0
  429. package/dist/slider/index.jsx +2 -0
  430. package/dist/ssr/index.d.ts +17 -0
  431. package/dist/ssr/index.d.ts.map +1 -1
  432. package/dist/ssr/index.js +299 -0
  433. package/dist/ssr/index.js.map +1 -0
  434. package/dist/ssr/index.jsx +292 -0
  435. package/dist/ssr/index.jsx.map +1 -0
  436. package/dist/steplist/index.js +2 -0
  437. package/dist/steplist/index.jsx +2 -0
  438. package/dist/switch/createSwitch.d.ts +4 -0
  439. package/dist/switch/createSwitch.d.ts.map +1 -1
  440. package/dist/switch/index.js +2 -0
  441. package/dist/switch/index.jsx +2 -0
  442. package/dist/table/createTable.d.ts.map +1 -1
  443. package/dist/table/createTableRow.d.ts +1 -1
  444. package/dist/table/createTableRow.d.ts.map +1 -1
  445. package/dist/table/createTableSelectAllCheckbox.d.ts.map +1 -1
  446. package/dist/table/index.js +2 -0
  447. package/dist/table/index.jsx +2 -0
  448. package/dist/table/types.d.ts +27 -1
  449. package/dist/table/types.d.ts.map +1 -1
  450. package/dist/tabs/createTabs.d.ts +4 -3
  451. package/dist/tabs/createTabs.d.ts.map +1 -1
  452. package/dist/tabs/index.js +2 -0
  453. package/dist/tabs/index.jsx +2 -0
  454. package/dist/tag/createTag.d.ts +2 -0
  455. package/dist/tag/createTag.d.ts.map +1 -1
  456. package/dist/tag/index.js +2 -0
  457. package/dist/tag/index.jsx +2 -0
  458. package/dist/textfield/index.js +2 -0
  459. package/dist/textfield/index.jsx +2 -0
  460. package/dist/toast/createToast.d.ts.map +1 -1
  461. package/dist/toast/index.js +2 -0
  462. package/dist/toast/index.jsx +2 -0
  463. package/dist/toggle/createToggle.d.ts +4 -0
  464. package/dist/toggle/createToggle.d.ts.map +1 -1
  465. package/dist/toggle/index.js +3 -0
  466. package/dist/toggle/index.jsx +3 -0
  467. package/dist/toolbar/createToolbar.d.ts +1 -1
  468. package/dist/toolbar/createToolbar.d.ts.map +1 -1
  469. package/dist/toolbar/index.js +2 -0
  470. package/dist/toolbar/index.jsx +2 -0
  471. package/dist/tooltip/index.js +2 -0
  472. package/dist/tooltip/index.jsx +2 -0
  473. package/dist/tree/createTree.d.ts +5 -1
  474. package/dist/tree/createTree.d.ts.map +1 -1
  475. package/dist/tree/createTreeItem.d.ts +1 -1
  476. package/dist/tree/createTreeItem.d.ts.map +1 -1
  477. package/dist/tree/index.js +2 -0
  478. package/dist/tree/index.jsx +2 -0
  479. package/dist/tree/types.d.ts +10 -0
  480. package/dist/tree/types.d.ts.map +1 -1
  481. package/dist/utils/animation.d.ts +60 -0
  482. package/dist/utils/animation.d.ts.map +1 -0
  483. package/dist/utils/dom.d.ts +48 -2
  484. package/dist/utils/dom.d.ts.map +1 -1
  485. package/dist/utils/index.d.ts +4 -1
  486. package/dist/utils/index.d.ts.map +1 -1
  487. package/dist/utils/index.js +5 -0
  488. package/dist/utils/index.jsx +5 -0
  489. package/dist/utils/keyboard.d.ts +17 -0
  490. package/dist/utils/keyboard.d.ts.map +1 -0
  491. package/dist/utils/mergeProps.d.ts.map +1 -1
  492. package/dist/utils/scrollIntoView.d.ts +30 -0
  493. package/dist/utils/scrollIntoView.d.ts.map +1 -0
  494. package/dist/visually-hidden/index.js +2 -0
  495. package/dist/visually-hidden/index.jsx +2 -0
  496. package/package.json +304 -3
  497. package/src/autocomplete/createAutocomplete.ts +67 -21
  498. package/src/calendar/createCalendar.ts +2 -0
  499. package/src/calendar/createCalendarCell.ts +19 -2
  500. package/src/calendar/createCalendarGrid.ts +43 -9
  501. package/src/calendar/createCalendarMonthPicker.ts +105 -0
  502. package/src/calendar/createCalendarYearPicker.ts +144 -0
  503. package/src/calendar/createRangeCalendar.ts +2 -0
  504. package/src/calendar/index.ts +17 -0
  505. package/src/calendar/utils.ts +4 -0
  506. package/src/checkbox/createCheckbox.ts +10 -0
  507. package/src/checkbox/createCheckboxGroupItem.ts +12 -16
  508. package/src/datepicker/createDateSegment.ts +6 -1
  509. package/src/dnd/createDroppableCollection.ts +4 -1
  510. package/src/dnd/utils.ts +27 -3
  511. package/src/focus/FocusScope.tsx +152 -18
  512. package/src/form/createFormValidation.ts +8 -1
  513. package/src/gridlist/createGridList.ts +145 -42
  514. package/src/gridlist/createGridListItem.ts +87 -155
  515. package/src/gridlist/createGridListSection.ts +54 -0
  516. package/src/gridlist/index.ts +3 -0
  517. package/src/gridlist/types.ts +47 -0
  518. package/src/index.ts +40 -0
  519. package/src/interactions/PressEvent.ts +14 -0
  520. package/src/interactions/createInteractionModality.ts +21 -12
  521. package/src/interactions/createKeyboard.ts +10 -0
  522. package/src/interactions/createPress.ts +29 -6
  523. package/src/listbox/createListBox.ts +129 -8
  524. package/src/listbox/createOption.ts +68 -73
  525. package/src/menu/createMenu.ts +93 -16
  526. package/src/menu/createMenuItem.ts +253 -41
  527. package/src/numberfield/createNumberField.ts +82 -14
  528. package/src/popover/calculatePosition.ts +19 -7
  529. package/src/popover/createOverlayPosition.ts +9 -0
  530. package/src/radio/createRadio.ts +19 -2
  531. package/src/select/createSelect.ts +18 -2
  532. package/src/selection/DOMLayoutDelegate.ts +102 -0
  533. package/src/selection/ListKeyboardDelegate.ts +398 -0
  534. package/src/selection/constants.ts +16 -0
  535. package/src/selection/createCollectionRowInteraction.ts +209 -0
  536. package/src/selection/createScrollIntoViewOnFocus.ts +65 -0
  537. package/src/selection/createSelectableCollection.ts +645 -0
  538. package/src/selection/createSelectableItem.ts +498 -0
  539. package/src/selection/createSelectableList.ts +93 -0
  540. package/src/selection/createTypeSelect.ts +112 -51
  541. package/src/selection/index.ts +31 -0
  542. package/src/selection/selectItem.ts +80 -0
  543. package/src/selection/utils.ts +82 -0
  544. package/src/slider/createSlider.ts +48 -1
  545. package/src/ssr/index.tsx +31 -0
  546. package/src/switch/createSwitch.ts +10 -0
  547. package/src/table/createTable.ts +56 -26
  548. package/src/table/createTableRow.ts +198 -203
  549. package/src/table/createTableSelectAllCheckbox.ts +3 -4
  550. package/src/table/types.ts +29 -1
  551. package/src/tabs/createTabs.ts +50 -20
  552. package/src/tag/createTag.ts +9 -4
  553. package/src/toast/createToast.ts +1 -0
  554. package/src/toggle/createToggle.ts +20 -0
  555. package/src/toolbar/createToolbar.ts +43 -42
  556. package/src/tree/createTree.ts +100 -42
  557. package/src/tree/createTreeItem.ts +105 -120
  558. package/src/tree/types.ts +10 -0
  559. package/src/utils/animation.ts +151 -0
  560. package/src/utils/dom.ts +215 -25
  561. package/src/utils/index.ts +8 -0
  562. package/src/utils/keyboard.ts +25 -0
  563. package/src/utils/mergeProps.ts +8 -1
  564. package/src/utils/scrollIntoView.ts +181 -0
  565. package/dist/index.js.map +0 -1
  566. package/dist/index.jsx.map +0 -1
@@ -0,0 +1,160 @@
1
+ import { i as access } from "../_chunk/env.js";
2
+ import { createContext, createMemo, useContext } from "solid-js";
3
+ import { ListCollection } from "@proyecto-viviana/solid-stately";
4
+ //#region src/collections/index.ts
5
+ const COLLECTION_NODE_PROP = "__collectionNode";
6
+ function applyCollectionMetadata(rendered, item, key, addIdAndValue) {
7
+ if (typeof rendered !== "object" || rendered === null) return rendered;
8
+ const next = {
9
+ ...rendered,
10
+ key,
11
+ [COLLECTION_NODE_PROP]: {
12
+ key,
13
+ value: item,
14
+ props: rendered
15
+ }
16
+ };
17
+ if (addIdAndValue) {
18
+ next.id = key;
19
+ next.value = item;
20
+ }
21
+ return next;
22
+ }
23
+ /**
24
+ * Compatibility helper mirroring React Aria collections API shape.
25
+ * For Solid, this is a lightweight mapper over item arrays.
26
+ */
27
+ function CollectionBuilder(props) {
28
+ if (typeof props.children === "function" && props.items) {
29
+ const children = props.children;
30
+ const mapped = [];
31
+ let index = 0;
32
+ for (const item of props.items) {
33
+ const baseKey = getResolvedItemKey(item, index, props.getKey);
34
+ if (baseKey == null) throw new Error("Could not determine key for item");
35
+ const key = props.idScope != null ? `${String(props.idScope)}:${String(baseKey)}` : baseKey;
36
+ const withMeta = applyCollectionMetadata(children(item), item, key, props.addIdAndValue ?? false);
37
+ mapped.push(withMeta);
38
+ index += 1;
39
+ }
40
+ return mapped;
41
+ }
42
+ return props.children ?? null;
43
+ }
44
+ function Collection(props) {
45
+ return CollectionBuilder({
46
+ ...props,
47
+ addIdAndValue: props.addIdAndValue ?? true
48
+ });
49
+ }
50
+ /**
51
+ * Identity helper retained for API compatibility.
52
+ */
53
+ function createLeafComponent(component) {
54
+ return (props) => {
55
+ const node = props[COLLECTION_NODE_PROP];
56
+ if (component.length >= 2 && !node) throw new Error(`${component.name || "Component"} cannot be rendered outside a collection.`);
57
+ return component(props, node);
58
+ };
59
+ }
60
+ /**
61
+ * Identity helper retained for API compatibility.
62
+ */
63
+ function createBranchComponent(component) {
64
+ return (props) => {
65
+ const node = props[COLLECTION_NODE_PROP];
66
+ if (component.length >= 2 && !node) throw new Error(`${component.name || "Component"} cannot be rendered outside a collection.`);
67
+ return component(props, node);
68
+ };
69
+ }
70
+ const HiddenContext = createContext(() => false);
71
+ /**
72
+ * Wraps a component and suppresses rendering when the hidden context is true.
73
+ */
74
+ function createHideableComponent(component) {
75
+ return (props) => {
76
+ if (useIsHidden()()) return null;
77
+ return component(props);
78
+ };
79
+ }
80
+ function useIsHidden() {
81
+ return useContext(HiddenContext) ?? (() => false);
82
+ }
83
+ /**
84
+ * Memoized item renderer for dynamic child mapping.
85
+ */
86
+ function useCachedChildren(options) {
87
+ let objectCache = /* @__PURE__ */ new WeakMap();
88
+ const primitiveCache = /* @__PURE__ */ new Map();
89
+ let lastDependencies;
90
+ let lastIdScope;
91
+ let lastAddIdAndValue;
92
+ let lastGetKey;
93
+ const clearCaches = () => {
94
+ objectCache = /* @__PURE__ */ new WeakMap();
95
+ primitiveCache.clear();
96
+ };
97
+ const getItemKey = (item, index, getKey) => {
98
+ return getResolvedItemKey(item, index, getKey);
99
+ };
100
+ return createMemo(() => {
101
+ const resolved = access(options);
102
+ const resolvedAddIdAndValue = resolved.addIdAndValue ?? false;
103
+ const resolvedGetKey = resolved.getKey;
104
+ const resolvedIdScope = resolved.idScope;
105
+ if (resolved.dependencies && resolved.dependencies !== lastDependencies) {
106
+ clearCaches();
107
+ lastDependencies = resolved.dependencies;
108
+ }
109
+ if (resolvedIdScope !== lastIdScope || resolvedAddIdAndValue !== lastAddIdAndValue || resolvedGetKey !== lastGetKey) {
110
+ clearCaches();
111
+ lastIdScope = resolvedIdScope;
112
+ lastAddIdAndValue = resolvedAddIdAndValue;
113
+ lastGetKey = resolvedGetKey;
114
+ }
115
+ if (typeof resolved.children === "function" && resolved.items) {
116
+ const children = resolved.children;
117
+ const rendered = [];
118
+ let index = 0;
119
+ for (const item of resolved.items) {
120
+ const baseKey = getItemKey(item, index, resolvedGetKey);
121
+ if (baseKey == null) throw new Error("Could not determine key for item");
122
+ const key = resolvedIdScope != null ? `${String(resolvedIdScope)}:${String(baseKey)}` : baseKey;
123
+ let child;
124
+ if (typeof item === "object" && item !== null) {
125
+ child = objectCache.get(item);
126
+ if (child === void 0) {
127
+ child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);
128
+ objectCache.set(item, child);
129
+ }
130
+ } else if (primitiveCache.has(key)) child = primitiveCache.get(key);
131
+ else {
132
+ child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);
133
+ primitiveCache.set(key, child);
134
+ }
135
+ rendered.push(child);
136
+ index += 1;
137
+ }
138
+ return rendered;
139
+ }
140
+ const child = resolved.children;
141
+ return child == null ? [] : [child];
142
+ });
143
+ }
144
+ /**
145
+ * Minimal BaseCollection compatibility class.
146
+ */
147
+ var BaseCollection = class extends ListCollection {};
148
+ function getResolvedItemKey(item, index, getKey) {
149
+ if (getKey) return getKey(item);
150
+ if (typeof item === "object" && item !== null) {
151
+ const keyed = item;
152
+ const keyValue = keyed.key ?? keyed.id;
153
+ if (typeof keyValue === "string" || typeof keyValue === "number") return keyValue;
154
+ }
155
+ if (typeof item === "string" || typeof item === "number") return index;
156
+ }
157
+ //#endregion
158
+ export { BaseCollection, Collection, CollectionBuilder, createBranchComponent, createHideableComponent, createLeafComponent, useCachedChildren, useIsHidden };
159
+
160
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/collections/index.ts"],"sourcesContent":["import { createContext, createMemo, useContext, type Accessor } from \"solid-js\";\nimport { access, type MaybeAccessor } from \"../utils\";\nimport {\n ListCollection,\n type Collection as StatelyCollection,\n type CollectionNode as StatelyCollectionNode,\n type Key,\n} from \"@proyecto-viviana/solid-stately\";\n\nexport interface CachedChildrenOptions<T> {\n items?: Iterable<T>;\n children?: ((item: T) => unknown) | unknown;\n dependencies?: ReadonlyArray<unknown>;\n getKey?: (item: T) => Key;\n idScope?: Key;\n addIdAndValue?: boolean;\n}\n\nexport interface CollectionBuilderProps<T> extends CachedChildrenOptions<T> {}\n\nexport interface CollectionProps<T> extends CollectionBuilderProps<T> {}\n\nexport interface CollectionCompatNode<TProps = unknown, TValue = unknown> {\n key: Key;\n value: TValue;\n props: TProps;\n}\n\nconst COLLECTION_NODE_PROP = \"__collectionNode\";\n\nfunction applyCollectionMetadata<T>(\n rendered: unknown,\n item: T,\n key: Key,\n addIdAndValue: boolean,\n): unknown {\n if (typeof rendered !== \"object\" || rendered === null) return rendered;\n const next = {\n ...(rendered as Record<string, unknown>),\n key,\n [COLLECTION_NODE_PROP]: {\n key,\n value: item,\n props: rendered as Record<string, unknown>,\n } satisfies CollectionCompatNode<Record<string, unknown>, T>,\n } as Record<string, unknown>;\n if (addIdAndValue) {\n next.id = key;\n next.value = item;\n }\n return next;\n}\n\n/**\n * Compatibility helper mirroring React Aria collections API shape.\n * For Solid, this is a lightweight mapper over item arrays.\n */\nexport function CollectionBuilder<T>(props: CollectionBuilderProps<T>): unknown {\n if (typeof props.children === \"function\" && props.items) {\n const children = props.children as (item: T) => unknown;\n const mapped: unknown[] = [];\n let index = 0;\n\n for (const item of props.items) {\n const baseKey = getResolvedItemKey(item, index, props.getKey);\n if (baseKey == null) {\n throw new Error(\"Could not determine key for item\");\n }\n const key = props.idScope != null ? `${String(props.idScope)}:${String(baseKey)}` : baseKey;\n const rendered = children(item);\n const withMeta = applyCollectionMetadata(rendered, item, key, props.addIdAndValue ?? false);\n mapped.push(withMeta);\n index += 1;\n }\n\n return mapped;\n }\n return props.children ?? null;\n}\n\nexport function Collection<T>(props: CollectionProps<T>): unknown {\n return CollectionBuilder({\n ...props,\n addIdAndValue: props.addIdAndValue ?? true,\n });\n}\n\n/**\n * Identity helper retained for API compatibility.\n */\nexport function createLeafComponent<TProps>(\n component: (props: TProps, node?: CollectionCompatNode<TProps, unknown>) => unknown,\n): (props: TProps) => unknown {\n return (props: TProps) => {\n const node = (props as Record<string, unknown>)[COLLECTION_NODE_PROP] as\n | CollectionCompatNode<TProps, unknown>\n | undefined;\n if (component.length >= 2 && !node) {\n throw new Error(`${component.name || \"Component\"} cannot be rendered outside a collection.`);\n }\n return component(props, node);\n };\n}\n\n/**\n * Identity helper retained for API compatibility.\n */\nexport function createBranchComponent<TProps>(\n component: (props: TProps, node?: CollectionCompatNode<TProps, unknown>) => unknown,\n): (props: TProps) => unknown {\n return (props: TProps) => {\n const node = (props as Record<string, unknown>)[COLLECTION_NODE_PROP] as\n | CollectionCompatNode<TProps, unknown>\n | undefined;\n if (component.length >= 2 && !node) {\n throw new Error(`${component.name || \"Component\"} cannot be rendered outside a collection.`);\n }\n return component(props, node);\n };\n}\n\nconst HiddenContext = createContext<Accessor<boolean>>(() => false);\n\n/**\n * Wraps a component and suppresses rendering when the hidden context is true.\n */\nexport function createHideableComponent<TProps>(\n component: (props: TProps) => unknown,\n): (props: TProps) => unknown {\n return (props: TProps) => {\n const isHidden = useIsHidden();\n if (isHidden()) return null;\n return component(props);\n };\n}\n\nexport function useIsHidden(): Accessor<boolean> {\n return useContext(HiddenContext) ?? (() => false);\n}\n\n/**\n * Memoized item renderer for dynamic child mapping.\n */\nexport function useCachedChildren<T>(\n options: MaybeAccessor<CachedChildrenOptions<T>>,\n): Accessor<unknown[]> {\n let objectCache = new WeakMap<object, unknown>();\n const primitiveCache = new Map<Key, unknown>();\n let lastDependencies: ReadonlyArray<unknown> | undefined;\n let lastIdScope: Key | undefined;\n let lastAddIdAndValue: boolean | undefined;\n let lastGetKey: ((item: T) => Key) | undefined;\n\n const clearCaches = (): void => {\n objectCache = new WeakMap<object, unknown>();\n primitiveCache.clear();\n };\n\n const getItemKey = (item: T, index: number, getKey?: (item: T) => Key): Key | undefined => {\n return getResolvedItemKey(item, index, getKey);\n };\n\n return createMemo(() => {\n const resolved = access(options);\n const resolvedAddIdAndValue = resolved.addIdAndValue ?? false;\n const resolvedGetKey = resolved.getKey;\n const resolvedIdScope = resolved.idScope;\n\n if (resolved.dependencies && resolved.dependencies !== lastDependencies) {\n clearCaches();\n lastDependencies = resolved.dependencies;\n }\n if (\n resolvedIdScope !== lastIdScope ||\n resolvedAddIdAndValue !== lastAddIdAndValue ||\n resolvedGetKey !== lastGetKey\n ) {\n clearCaches();\n lastIdScope = resolvedIdScope;\n lastAddIdAndValue = resolvedAddIdAndValue;\n lastGetKey = resolvedGetKey;\n }\n\n if (typeof resolved.children === \"function\" && resolved.items) {\n const children = resolved.children as (item: T) => unknown;\n const rendered: unknown[] = [];\n let index = 0;\n\n for (const item of resolved.items) {\n const baseKey = getItemKey(item, index, resolvedGetKey);\n if (baseKey == null) {\n throw new Error(\"Could not determine key for item\");\n }\n const key =\n resolvedIdScope != null ? `${String(resolvedIdScope)}:${String(baseKey)}` : baseKey;\n let child: unknown;\n\n if (typeof item === \"object\" && item !== null) {\n child = objectCache.get(item as object);\n if (child === undefined) {\n child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);\n objectCache.set(item as object, child);\n }\n } else {\n if (primitiveCache.has(key)) {\n child = primitiveCache.get(key);\n } else {\n child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);\n primitiveCache.set(key, child);\n }\n }\n\n rendered.push(child);\n index += 1;\n }\n\n return rendered;\n }\n const child = resolved.children;\n return child == null ? [] : [child];\n });\n}\n\n/**\n * Minimal BaseCollection compatibility class.\n */\nexport class BaseCollection<T = unknown> extends ListCollection<T> {}\n\nexport type CollectionNode<T = unknown> = StatelyCollectionNode<T>;\nexport type ItemNode<T = unknown> = StatelyCollectionNode<T>;\nexport type SectionNode<T = unknown> = StatelyCollectionNode<T>;\nexport type FilterableNode<T = unknown> = StatelyCollectionNode<T>;\nexport type LoaderNode<T = unknown> = StatelyCollectionNode<T>;\nexport type HeaderNode<T = unknown> = StatelyCollectionNode<T>;\nexport type CollectionType<T = unknown> = StatelyCollection<T>;\n\nfunction getResolvedItemKey<T>(item: T, index: number, getKey?: (item: T) => Key): Key | undefined {\n if (getKey) return getKey(item);\n if (typeof item === \"object\" && item !== null) {\n const keyed = item as Record<string, unknown>;\n const keyValue = keyed.key ?? keyed.id;\n if (typeof keyValue === \"string\" || typeof keyValue === \"number\") return keyValue;\n }\n if (typeof item === \"string\" || typeof item === \"number\") return index;\n return undefined;\n}\n"],"mappings":";;;;AA4BA,MAAM,uBAAuB;AAE7B,SAAS,wBACP,UACA,MACA,KACA,eACS;CACT,IAAI,OAAO,aAAa,YAAY,aAAa,MAAM,OAAO;CAC9D,MAAM,OAAO;EACX,GAAI;EACJ;GACC,uBAAuB;GACtB;GACA,OAAO;GACP,OAAO;EACT;CACF;CACA,IAAI,eAAe;EACjB,KAAK,KAAK;EACV,KAAK,QAAQ;CACf;CACA,OAAO;AACT;;;;;AAMA,SAAgB,kBAAqB,OAA2C;CAC9E,IAAI,OAAO,MAAM,aAAa,cAAc,MAAM,OAAO;EACvD,MAAM,WAAW,MAAM;EACvB,MAAM,SAAoB,CAAC;EAC3B,IAAI,QAAQ;EAEZ,KAAK,MAAM,QAAQ,MAAM,OAAO;GAC9B,MAAM,UAAU,mBAAmB,MAAM,OAAO,MAAM,MAAM;GAC5D,IAAI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;EACT;EACA,MAAM,QAAQ,SAAS;EACvB,OAAO,SAAS,OAAO,CAAC,IAAI,CAAC,KAAK;CACpC,CAAC;AACH;;;;AAKA,IAAa,iBAAb,cAAiD,eAAkB,CAAC;AAUpE,SAAS,mBAAsB,MAAS,OAAe,QAA4C;CACjG,IAAI,QAAQ,OAAO,OAAO,IAAI;CAC9B,IAAI,OAAO,SAAS,YAAY,SAAS,MAAM;EAC7C,MAAM,QAAQ;EACd,MAAM,WAAW,MAAM,OAAO,MAAM;EACpC,IAAI,OAAO,aAAa,YAAY,OAAO,aAAa,UAAU,OAAO;CAC3E;CACA,IAAI,OAAO,SAAS,YAAY,OAAO,SAAS,UAAU,OAAO;AAEnE"}
@@ -0,0 +1,160 @@
1
+ import { i as access } from "../_chunk/env.jsx";
2
+ import { createContext, createMemo, useContext } from "solid-js";
3
+ import { ListCollection } from "@proyecto-viviana/solid-stately";
4
+ //#region src/collections/index.ts
5
+ const COLLECTION_NODE_PROP = "__collectionNode";
6
+ function applyCollectionMetadata(rendered, item, key, addIdAndValue) {
7
+ if (typeof rendered !== "object" || rendered === null) return rendered;
8
+ const next = {
9
+ ...rendered,
10
+ key,
11
+ [COLLECTION_NODE_PROP]: {
12
+ key,
13
+ value: item,
14
+ props: rendered
15
+ }
16
+ };
17
+ if (addIdAndValue) {
18
+ next.id = key;
19
+ next.value = item;
20
+ }
21
+ return next;
22
+ }
23
+ /**
24
+ * Compatibility helper mirroring React Aria collections API shape.
25
+ * For Solid, this is a lightweight mapper over item arrays.
26
+ */
27
+ function CollectionBuilder(props) {
28
+ if (typeof props.children === "function" && props.items) {
29
+ const children = props.children;
30
+ const mapped = [];
31
+ let index = 0;
32
+ for (const item of props.items) {
33
+ const baseKey = getResolvedItemKey(item, index, props.getKey);
34
+ if (baseKey == null) throw new Error("Could not determine key for item");
35
+ const key = props.idScope != null ? `${String(props.idScope)}:${String(baseKey)}` : baseKey;
36
+ const withMeta = applyCollectionMetadata(children(item), item, key, props.addIdAndValue ?? false);
37
+ mapped.push(withMeta);
38
+ index += 1;
39
+ }
40
+ return mapped;
41
+ }
42
+ return props.children ?? null;
43
+ }
44
+ function Collection(props) {
45
+ return CollectionBuilder({
46
+ ...props,
47
+ addIdAndValue: props.addIdAndValue ?? true
48
+ });
49
+ }
50
+ /**
51
+ * Identity helper retained for API compatibility.
52
+ */
53
+ function createLeafComponent(component) {
54
+ return (props) => {
55
+ const node = props[COLLECTION_NODE_PROP];
56
+ if (component.length >= 2 && !node) throw new Error(`${component.name || "Component"} cannot be rendered outside a collection.`);
57
+ return component(props, node);
58
+ };
59
+ }
60
+ /**
61
+ * Identity helper retained for API compatibility.
62
+ */
63
+ function createBranchComponent(component) {
64
+ return (props) => {
65
+ const node = props[COLLECTION_NODE_PROP];
66
+ if (component.length >= 2 && !node) throw new Error(`${component.name || "Component"} cannot be rendered outside a collection.`);
67
+ return component(props, node);
68
+ };
69
+ }
70
+ const HiddenContext = createContext(() => false);
71
+ /**
72
+ * Wraps a component and suppresses rendering when the hidden context is true.
73
+ */
74
+ function createHideableComponent(component) {
75
+ return (props) => {
76
+ if (useIsHidden()()) return null;
77
+ return component(props);
78
+ };
79
+ }
80
+ function useIsHidden() {
81
+ return useContext(HiddenContext) ?? (() => false);
82
+ }
83
+ /**
84
+ * Memoized item renderer for dynamic child mapping.
85
+ */
86
+ function useCachedChildren(options) {
87
+ let objectCache = /* @__PURE__ */ new WeakMap();
88
+ const primitiveCache = /* @__PURE__ */ new Map();
89
+ let lastDependencies;
90
+ let lastIdScope;
91
+ let lastAddIdAndValue;
92
+ let lastGetKey;
93
+ const clearCaches = () => {
94
+ objectCache = /* @__PURE__ */ new WeakMap();
95
+ primitiveCache.clear();
96
+ };
97
+ const getItemKey = (item, index, getKey) => {
98
+ return getResolvedItemKey(item, index, getKey);
99
+ };
100
+ return createMemo(() => {
101
+ const resolved = access(options);
102
+ const resolvedAddIdAndValue = resolved.addIdAndValue ?? false;
103
+ const resolvedGetKey = resolved.getKey;
104
+ const resolvedIdScope = resolved.idScope;
105
+ if (resolved.dependencies && resolved.dependencies !== lastDependencies) {
106
+ clearCaches();
107
+ lastDependencies = resolved.dependencies;
108
+ }
109
+ if (resolvedIdScope !== lastIdScope || resolvedAddIdAndValue !== lastAddIdAndValue || resolvedGetKey !== lastGetKey) {
110
+ clearCaches();
111
+ lastIdScope = resolvedIdScope;
112
+ lastAddIdAndValue = resolvedAddIdAndValue;
113
+ lastGetKey = resolvedGetKey;
114
+ }
115
+ if (typeof resolved.children === "function" && resolved.items) {
116
+ const children = resolved.children;
117
+ const rendered = [];
118
+ let index = 0;
119
+ for (const item of resolved.items) {
120
+ const baseKey = getItemKey(item, index, resolvedGetKey);
121
+ if (baseKey == null) throw new Error("Could not determine key for item");
122
+ const key = resolvedIdScope != null ? `${String(resolvedIdScope)}:${String(baseKey)}` : baseKey;
123
+ let child;
124
+ if (typeof item === "object" && item !== null) {
125
+ child = objectCache.get(item);
126
+ if (child === void 0) {
127
+ child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);
128
+ objectCache.set(item, child);
129
+ }
130
+ } else if (primitiveCache.has(key)) child = primitiveCache.get(key);
131
+ else {
132
+ child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);
133
+ primitiveCache.set(key, child);
134
+ }
135
+ rendered.push(child);
136
+ index += 1;
137
+ }
138
+ return rendered;
139
+ }
140
+ const child = resolved.children;
141
+ return child == null ? [] : [child];
142
+ });
143
+ }
144
+ /**
145
+ * Minimal BaseCollection compatibility class.
146
+ */
147
+ var BaseCollection = class extends ListCollection {};
148
+ function getResolvedItemKey(item, index, getKey) {
149
+ if (getKey) return getKey(item);
150
+ if (typeof item === "object" && item !== null) {
151
+ const keyed = item;
152
+ const keyValue = keyed.key ?? keyed.id;
153
+ if (typeof keyValue === "string" || typeof keyValue === "number") return keyValue;
154
+ }
155
+ if (typeof item === "string" || typeof item === "number") return index;
156
+ }
157
+ //#endregion
158
+ export { BaseCollection, Collection, CollectionBuilder, createBranchComponent, createHideableComponent, createLeafComponent, useCachedChildren, useIsHidden };
159
+
160
+ //# sourceMappingURL=index.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.jsx","names":[],"sources":["../../src/collections/index.ts"],"sourcesContent":["import { createContext, createMemo, useContext, type Accessor } from \"solid-js\";\nimport { access, type MaybeAccessor } from \"../utils\";\nimport {\n ListCollection,\n type Collection as StatelyCollection,\n type CollectionNode as StatelyCollectionNode,\n type Key,\n} from \"@proyecto-viviana/solid-stately\";\n\nexport interface CachedChildrenOptions<T> {\n items?: Iterable<T>;\n children?: ((item: T) => unknown) | unknown;\n dependencies?: ReadonlyArray<unknown>;\n getKey?: (item: T) => Key;\n idScope?: Key;\n addIdAndValue?: boolean;\n}\n\nexport interface CollectionBuilderProps<T> extends CachedChildrenOptions<T> {}\n\nexport interface CollectionProps<T> extends CollectionBuilderProps<T> {}\n\nexport interface CollectionCompatNode<TProps = unknown, TValue = unknown> {\n key: Key;\n value: TValue;\n props: TProps;\n}\n\nconst COLLECTION_NODE_PROP = \"__collectionNode\";\n\nfunction applyCollectionMetadata<T>(\n rendered: unknown,\n item: T,\n key: Key,\n addIdAndValue: boolean,\n): unknown {\n if (typeof rendered !== \"object\" || rendered === null) return rendered;\n const next = {\n ...(rendered as Record<string, unknown>),\n key,\n [COLLECTION_NODE_PROP]: {\n key,\n value: item,\n props: rendered as Record<string, unknown>,\n } satisfies CollectionCompatNode<Record<string, unknown>, T>,\n } as Record<string, unknown>;\n if (addIdAndValue) {\n next.id = key;\n next.value = item;\n }\n return next;\n}\n\n/**\n * Compatibility helper mirroring React Aria collections API shape.\n * For Solid, this is a lightweight mapper over item arrays.\n */\nexport function CollectionBuilder<T>(props: CollectionBuilderProps<T>): unknown {\n if (typeof props.children === \"function\" && props.items) {\n const children = props.children as (item: T) => unknown;\n const mapped: unknown[] = [];\n let index = 0;\n\n for (const item of props.items) {\n const baseKey = getResolvedItemKey(item, index, props.getKey);\n if (baseKey == null) {\n throw new Error(\"Could not determine key for item\");\n }\n const key = props.idScope != null ? `${String(props.idScope)}:${String(baseKey)}` : baseKey;\n const rendered = children(item);\n const withMeta = applyCollectionMetadata(rendered, item, key, props.addIdAndValue ?? false);\n mapped.push(withMeta);\n index += 1;\n }\n\n return mapped;\n }\n return props.children ?? null;\n}\n\nexport function Collection<T>(props: CollectionProps<T>): unknown {\n return CollectionBuilder({\n ...props,\n addIdAndValue: props.addIdAndValue ?? true,\n });\n}\n\n/**\n * Identity helper retained for API compatibility.\n */\nexport function createLeafComponent<TProps>(\n component: (props: TProps, node?: CollectionCompatNode<TProps, unknown>) => unknown,\n): (props: TProps) => unknown {\n return (props: TProps) => {\n const node = (props as Record<string, unknown>)[COLLECTION_NODE_PROP] as\n | CollectionCompatNode<TProps, unknown>\n | undefined;\n if (component.length >= 2 && !node) {\n throw new Error(`${component.name || \"Component\"} cannot be rendered outside a collection.`);\n }\n return component(props, node);\n };\n}\n\n/**\n * Identity helper retained for API compatibility.\n */\nexport function createBranchComponent<TProps>(\n component: (props: TProps, node?: CollectionCompatNode<TProps, unknown>) => unknown,\n): (props: TProps) => unknown {\n return (props: TProps) => {\n const node = (props as Record<string, unknown>)[COLLECTION_NODE_PROP] as\n | CollectionCompatNode<TProps, unknown>\n | undefined;\n if (component.length >= 2 && !node) {\n throw new Error(`${component.name || \"Component\"} cannot be rendered outside a collection.`);\n }\n return component(props, node);\n };\n}\n\nconst HiddenContext = createContext<Accessor<boolean>>(() => false);\n\n/**\n * Wraps a component and suppresses rendering when the hidden context is true.\n */\nexport function createHideableComponent<TProps>(\n component: (props: TProps) => unknown,\n): (props: TProps) => unknown {\n return (props: TProps) => {\n const isHidden = useIsHidden();\n if (isHidden()) return null;\n return component(props);\n };\n}\n\nexport function useIsHidden(): Accessor<boolean> {\n return useContext(HiddenContext) ?? (() => false);\n}\n\n/**\n * Memoized item renderer for dynamic child mapping.\n */\nexport function useCachedChildren<T>(\n options: MaybeAccessor<CachedChildrenOptions<T>>,\n): Accessor<unknown[]> {\n let objectCache = new WeakMap<object, unknown>();\n const primitiveCache = new Map<Key, unknown>();\n let lastDependencies: ReadonlyArray<unknown> | undefined;\n let lastIdScope: Key | undefined;\n let lastAddIdAndValue: boolean | undefined;\n let lastGetKey: ((item: T) => Key) | undefined;\n\n const clearCaches = (): void => {\n objectCache = new WeakMap<object, unknown>();\n primitiveCache.clear();\n };\n\n const getItemKey = (item: T, index: number, getKey?: (item: T) => Key): Key | undefined => {\n return getResolvedItemKey(item, index, getKey);\n };\n\n return createMemo(() => {\n const resolved = access(options);\n const resolvedAddIdAndValue = resolved.addIdAndValue ?? false;\n const resolvedGetKey = resolved.getKey;\n const resolvedIdScope = resolved.idScope;\n\n if (resolved.dependencies && resolved.dependencies !== lastDependencies) {\n clearCaches();\n lastDependencies = resolved.dependencies;\n }\n if (\n resolvedIdScope !== lastIdScope ||\n resolvedAddIdAndValue !== lastAddIdAndValue ||\n resolvedGetKey !== lastGetKey\n ) {\n clearCaches();\n lastIdScope = resolvedIdScope;\n lastAddIdAndValue = resolvedAddIdAndValue;\n lastGetKey = resolvedGetKey;\n }\n\n if (typeof resolved.children === \"function\" && resolved.items) {\n const children = resolved.children as (item: T) => unknown;\n const rendered: unknown[] = [];\n let index = 0;\n\n for (const item of resolved.items) {\n const baseKey = getItemKey(item, index, resolvedGetKey);\n if (baseKey == null) {\n throw new Error(\"Could not determine key for item\");\n }\n const key =\n resolvedIdScope != null ? `${String(resolvedIdScope)}:${String(baseKey)}` : baseKey;\n let child: unknown;\n\n if (typeof item === \"object\" && item !== null) {\n child = objectCache.get(item as object);\n if (child === undefined) {\n child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);\n objectCache.set(item as object, child);\n }\n } else {\n if (primitiveCache.has(key)) {\n child = primitiveCache.get(key);\n } else {\n child = applyCollectionMetadata(children(item), item, key, resolvedAddIdAndValue);\n primitiveCache.set(key, child);\n }\n }\n\n rendered.push(child);\n index += 1;\n }\n\n return rendered;\n }\n const child = resolved.children;\n return child == null ? [] : [child];\n });\n}\n\n/**\n * Minimal BaseCollection compatibility class.\n */\nexport class BaseCollection<T = unknown> extends ListCollection<T> {}\n\nexport type CollectionNode<T = unknown> = StatelyCollectionNode<T>;\nexport type ItemNode<T = unknown> = StatelyCollectionNode<T>;\nexport type SectionNode<T = unknown> = StatelyCollectionNode<T>;\nexport type FilterableNode<T = unknown> = StatelyCollectionNode<T>;\nexport type LoaderNode<T = unknown> = StatelyCollectionNode<T>;\nexport type HeaderNode<T = unknown> = StatelyCollectionNode<T>;\nexport type CollectionType<T = unknown> = StatelyCollection<T>;\n\nfunction getResolvedItemKey<T>(item: T, index: number, getKey?: (item: T) => Key): Key | undefined {\n if (getKey) return getKey(item);\n if (typeof item === \"object\" && item !== null) {\n const keyed = item as Record<string, unknown>;\n const keyValue = keyed.key ?? keyed.id;\n if (typeof keyValue === \"string\" || typeof keyValue === \"number\") return keyValue;\n }\n if (typeof item === \"string\" || typeof item === \"number\") return index;\n return undefined;\n}\n"],"mappings":";;;;AA4BA,MAAM,uBAAuB;AAE7B,SAAS,wBACP,UACA,MACA,KACA,eACS;CACT,IAAI,OAAO,aAAa,YAAY,aAAa,MAAM,OAAO;CAC9D,MAAM,OAAO;EACX,GAAI;EACJ;GACC,uBAAuB;GACtB;GACA,OAAO;GACP,OAAO;EACT;CACF;CACA,IAAI,eAAe;EACjB,KAAK,KAAK;EACV,KAAK,QAAQ;CACf;CACA,OAAO;AACT;;;;;AAMA,SAAgB,kBAAqB,OAA2C;CAC9E,IAAI,OAAO,MAAM,aAAa,cAAc,MAAM,OAAO;EACvD,MAAM,WAAW,MAAM;EACvB,MAAM,SAAoB,CAAC;EAC3B,IAAI,QAAQ;EAEZ,KAAK,MAAM,QAAQ,MAAM,OAAO;GAC9B,MAAM,UAAU,mBAAmB,MAAM,OAAO,MAAM,MAAM;GAC5D,IAAI,WAAW,MACb,MAAM,IAAI,MAAM,kCAAkC;GAEpD,MAAM,MAAM,MAAM,WAAW,OAAO,GAAG,OAAO,MAA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ACH;;;;AAKA,IAAa,iBAAb,cAAiD,eAAkB,CAAC;AAUpE,SAAS,mBAAsB,MAAS,OAAe,QAA4C;CACjG,IAAI,QAAQ,OAAO,OAAO,IAAI;CAC9B,IAAI,OAAO,SAAS,YAAY,SAAS,MAAM;EAC7C,MAAM,QAAQ;EACd,MAAM,WAAW,MAAM,OAAO,MAAM;EACpC,IAAI,OAAO,aAAa,YAAY,OAAO,aAAa,UAAU,OAAO;CAC3E;CACA,IAAI,OAAO,SAAS,YAAY,OAAO,SAAS,UAAU,OAAO;AAEnE"}
@@ -0,0 +1,2 @@
1
+ import { a as createColorSlider, i as createColorArea, n as createColorField, r as createColorWheel, t as createColorSwatch } from "../_chunk/color.js";
2
+ export { createColorArea, createColorField, createColorSlider, createColorSwatch, createColorWheel };
@@ -0,0 +1,2 @@
1
+ import { a as createColorSlider, i as createColorArea, n as createColorField, r as createColorWheel, t as createColorSwatch } from "../_chunk/color.jsx";
2
+ export { createColorArea, createColorField, createColorSlider, createColorSwatch, createColorWheel };
@@ -0,0 +1,2 @@
1
+ import { n as getComboBoxData, t as createComboBox } from "../_chunk/combobox.js";
2
+ export { createComboBox, getComboBoxData };
@@ -0,0 +1,2 @@
1
+ import { n as getComboBoxData, t as createComboBox } from "../_chunk/combobox.jsx";
2
+ export { createComboBox, getComboBoxData };
@@ -1 +1 @@
1
- {"version":3,"file":"createDateSegment.d.ts","sourceRoot":"","sources":["../../src/datepicker/createDateSegment.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAmB,MAAM,iCAAiC,CAAC;AAGpG,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,OAAO,EAAE,WAAW,CAAC;IACrB,2FAA2F;IAC3F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,aAAa,EAAE,OAAO,CAAC;IACvB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,cAAc,EACxD,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAC1C,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,GAC7B,eAAe,CA4WjB"}
1
+ {"version":3,"file":"createDateSegment.d.ts","sourceRoot":"","sources":["../../src/datepicker/createDateSegment.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAmB,MAAM,iCAAiC,CAAC;AAGpG,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,OAAO,EAAE,WAAW,CAAC;IACrB,2FAA2F;IAC3F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,aAAa,EAAE,OAAO,CAAC;IACvB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,cAAc,EACxD,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAC1C,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,GAC7B,eAAe,CAgXjB"}
@@ -0,0 +1,2 @@
1
+ import { a as createTimeField, i as createTimeSegment, n as createDatePickerGroup, o as createDateSegment, r as createDatePicker, s as createDateField, t as createDateRangePicker } from "../_chunk/datepicker.js";
2
+ export { createDateField, createDatePicker, createDatePickerGroup, createDateRangePicker, createDateSegment, createTimeField, createTimeSegment };
@@ -0,0 +1,2 @@
1
+ import { a as createTimeField, i as createTimeSegment, n as createDatePickerGroup, o as createDateSegment, r as createDatePicker, s as createDateField, t as createDateRangePicker } from "../_chunk/datepicker.jsx";
2
+ export { createDateField, createDatePicker, createDatePickerGroup, createDateRangePicker, createDateSegment, createTimeField, createTimeSegment };
@@ -0,0 +1,2 @@
1
+ import { t as createDialog } from "../_chunk/dialog.js";
2
+ export { createDialog };
@@ -0,0 +1,2 @@
1
+ import { t as createDialog } from "../_chunk/dialog.jsx";
2
+ export { createDialog };
@@ -0,0 +1,2 @@
1
+ import { n as createDisclosure, t as createDisclosureGroup } from "../_chunk/disclosure.js";
2
+ export { createDisclosure, createDisclosureGroup };
@@ -0,0 +1,2 @@
1
+ import { n as createDisclosure, t as createDisclosureGroup } from "../_chunk/disclosure.jsx";
2
+ export { createDisclosure, createDisclosureGroup };
@@ -1 +1 @@
1
- {"version":3,"file":"createDroppableCollection.d.ts","sourceRoot":"","sources":["../../src/dnd/createDroppableCollection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyB,KAAK,QAAQ,EAAE,MAAM,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GAAG,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACpD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAQrE;AAED,MAAM,WAAW,uBAAuB;IACtC,iDAAiD;IACjD,eAAe,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;CAClD;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,QAAQ,CAAC,0BAA0B,CAAC,EAC7C,KAAK,EAAE,wBAAwB,GAC9B,uBAAuB,CAyiBzB"}
@@ -0,0 +1,2 @@
1
+ import { A as readFromDataTransfer, C as NATIVE_DRAG_TYPES, D as isDirectoryDropItem, E as getTypes, M as setGlobalDropEffect, N as writeToDataTransfer, O as isFileDropItem, S as GENERIC_TYPE, T as getGlobalDropEffect, _ as DROP_OPERATION, a as setGlobalDropCollectionRef, b as DragTypesImpl, c as createDraggableCollection, d as getGlobalDraggingTypes, f as setGlobalDraggingCollectionRef, g as DROP_EFFECT_TO_DROP_OPERATION, h as CUSTOM_DRAG_TYPE, i as getGlobalDropCollectionRef, j as setGlobalAllowedDropOperations, k as isTextDropItem, l as getGlobalDraggingCollectionRef, m as setGlobalDraggingTypes, n as createDraggableItem, o as createDrop, p as setGlobalDraggingKeys, r as createDroppableCollection, s as createDrag, t as createDroppableItem, u as getGlobalDraggingKeys, v as DROP_OPERATION_ALLOWED, w as getGlobalAllowedDropOperations, x as EFFECT_ALLOWED, y as DROP_OPERATION_TO_DROP_EFFECT } from "../_chunk/dnd.js";
2
+ export { CUSTOM_DRAG_TYPE, DROP_EFFECT_TO_DROP_OPERATION, DROP_OPERATION, DROP_OPERATION_ALLOWED, DROP_OPERATION_TO_DROP_EFFECT, DragTypesImpl, EFFECT_ALLOWED, GENERIC_TYPE, NATIVE_DRAG_TYPES, createDrag, createDraggableCollection, createDraggableItem, createDrop, createDroppableCollection, createDroppableItem, getGlobalAllowedDropOperations, getGlobalDraggingCollectionRef, getGlobalDraggingKeys, getGlobalDraggingTypes, getGlobalDropCollectionRef, getGlobalDropEffect, getTypes, isDirectoryDropItem, isFileDropItem, isTextDropItem, readFromDataTransfer, setGlobalAllowedDropOperations, setGlobalDraggingCollectionRef, setGlobalDraggingKeys, setGlobalDraggingTypes, setGlobalDropCollectionRef, setGlobalDropEffect, writeToDataTransfer };
@@ -0,0 +1,2 @@
1
+ import { A as readFromDataTransfer, C as NATIVE_DRAG_TYPES, D as isDirectoryDropItem, E as getTypes, M as setGlobalDropEffect, N as writeToDataTransfer, O as isFileDropItem, S as GENERIC_TYPE, T as getGlobalDropEffect, _ as DROP_OPERATION, a as setGlobalDropCollectionRef, b as DragTypesImpl, c as createDraggableCollection, d as getGlobalDraggingTypes, f as setGlobalDraggingCollectionRef, g as DROP_EFFECT_TO_DROP_OPERATION, h as CUSTOM_DRAG_TYPE, i as getGlobalDropCollectionRef, j as setGlobalAllowedDropOperations, k as isTextDropItem, l as getGlobalDraggingCollectionRef, m as setGlobalDraggingTypes, n as createDraggableItem, o as createDrop, p as setGlobalDraggingKeys, r as createDroppableCollection, s as createDrag, t as createDroppableItem, u as getGlobalDraggingKeys, v as DROP_OPERATION_ALLOWED, w as getGlobalAllowedDropOperations, x as EFFECT_ALLOWED, y as DROP_OPERATION_TO_DROP_EFFECT } from "../_chunk/dnd.jsx";
2
+ export { CUSTOM_DRAG_TYPE, DROP_EFFECT_TO_DROP_OPERATION, DROP_OPERATION, DROP_OPERATION_ALLOWED, DROP_OPERATION_TO_DROP_EFFECT, DragTypesImpl, EFFECT_ALLOWED, GENERIC_TYPE, NATIVE_DRAG_TYPES, createDrag, createDraggableCollection, createDraggableItem, createDrop, createDroppableCollection, createDroppableItem, getGlobalAllowedDropOperations, getGlobalDraggingCollectionRef, getGlobalDraggingKeys, getGlobalDraggingTypes, getGlobalDropCollectionRef, getGlobalDropEffect, getTypes, isDirectoryDropItem, isFileDropItem, isTextDropItem, readFromDataTransfer, setGlobalAllowedDropOperations, setGlobalDraggingCollectionRef, setGlobalDraggingKeys, setGlobalDraggingTypes, setGlobalDropCollectionRef, setGlobalDropEffect, writeToDataTransfer };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Drag and Drop utilities for solidaria.
3
3
  */
4
- import type { DragItem, DropItem, TextDropItem, FileDropItem, DirectoryDropItem, DropOperation } from "@proyecto-viviana/solid-stately";
4
+ import type { DragItem, DragType, DropItem, TextDropItem, FileDropItem, DirectoryDropItem, DropOperation } from "@proyecto-viviana/solid-stately";
5
5
  export declare const NATIVE_DRAG_TYPES: Set<string>;
6
6
  export declare const CUSTOM_DRAG_TYPE = "application/vnd.solidaria.items+json";
7
7
  export declare const GENERIC_TYPE = "application/octet-stream";
@@ -36,7 +36,7 @@ export declare class DragTypesImpl {
36
36
  private types;
37
37
  private includesUnknownTypes;
38
38
  constructor(dataTransfer: DataTransfer);
39
- has(type: string | symbol): boolean;
39
+ has(type: DragType | DragType[]): boolean;
40
40
  }
41
41
  /**
42
42
  * Check if a drop item is a text item.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/dnd/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACd,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAyD,CAAC;AAGpG,eAAO,MAAM,gBAAgB,yCAAyC,CAAC;AAGvE,eAAO,MAAM,YAAY,6BAA6B,CAAC;AAGvD,oBAAY,cAAc;IACxB,IAAI,IAAI;IACR,MAAM,IAAI;IACV,IAAI,IAAS;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,OAAO,CAAC;IACnB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uEAAuE;IACvE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,gFAAgF;IAChF,SAAS,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;IAC1D,oFAAoF;IACpF,aAAa,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;IAC9D,iFAAiF;IACjF,UAAU,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;IAC3D,gFAAgF;IAChF,SAAS,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;CAC3D;AASD;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,YAAY,GAAG,SAAS,CAE1D;AA4ID;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,eAAe,CAsTvD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { a as clearFocusStack, c as popFocusStack, d as useFocusManager, i as createVirtualFocus, l as pushFocusStack, n as createAutoFocus, o as createFocusRestore, r as getAutoFocusQueueLength, s as getFocusStackLength, t as clearAutoFocusQueue, u as FocusScope } from "../_chunk/focus2.js";
2
+ export { FocusScope, clearAutoFocusQueue, clearFocusStack, createAutoFocus, createFocusRestore, createVirtualFocus, getAutoFocusQueueLength, getFocusStackLength, popFocusStack, pushFocusStack, useFocusManager };
@@ -0,0 +1,2 @@
1
+ import { a as clearFocusStack, c as popFocusStack, d as useFocusManager, i as createVirtualFocus, l as pushFocusStack, n as createAutoFocus, o as createFocusRestore, r as getAutoFocusQueueLength, s as getFocusStackLength, t as clearAutoFocusQueue, u as FocusScope } from "../_chunk/focus2.jsx";
2
+ export { FocusScope, clearAutoFocusQueue, clearFocusStack, createAutoFocus, createFocusRestore, createVirtualFocus, getAutoFocusQueueLength, getFocusStackLength, popFocusStack, pushFocusStack, useFocusManager };
@@ -1 +1 @@
1
- {"version":3,"file":"createFormValidation.d.ts","sourceRoot":"","sources":["../../src/form/createFormValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAA2B,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,KAAK,mBAAmB,EAAyB,MAAM,iCAAiC,CAAC;AAGlG,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAE5F,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB;AAsCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,mBAAmB,EAC1B,GAAG,EAAE,QAAQ,CAAC,kBAAkB,GAAG,SAAS,CAAC,GAC5C,IAAI,CAoGN"}
1
+ {"version":3,"file":"createFormValidation.d.ts","sourceRoot":"","sources":["../../src/form/createFormValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAA2B,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,KAAK,mBAAmB,EAAyB,MAAM,iCAAiC,CAAC;AAGlG,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAE5F,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB;AAsCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,mBAAmB,EAC1B,GAAG,EAAE,QAAQ,CAAC,kBAAkB,GAAG,SAAS,CAAC,GAC5C,IAAI,CA2GN"}
@@ -0,0 +1,3 @@
1
+ import { t as createFormValidation } from "../_chunk/createFormValidation.js";
2
+ import { t as createFormReset } from "../_chunk/form.js";
3
+ export { createFormReset, createFormValidation };
@@ -0,0 +1,3 @@
1
+ import { t as createFormValidation } from "../_chunk/createFormValidation.jsx";
2
+ import { t as createFormReset } from "../_chunk/form.jsx";
3
+ export { createFormReset, createFormValidation };
@@ -0,0 +1,2 @@
1
+ import { a as GridKeyboardDelegate, i as getGridData, n as createGridRow, r as createGrid, t as createGridCell } from "../_chunk/grid.js";
2
+ export { GridKeyboardDelegate, createGrid, createGridCell, createGridRow, getGridData };
@@ -0,0 +1,2 @@
1
+ import { a as GridKeyboardDelegate, i as getGridData, n as createGridRow, r as createGrid, t as createGridCell } from "../_chunk/grid.jsx";
2
+ export { GridKeyboardDelegate, createGrid, createGridCell, createGridRow, getGridData };
@@ -13,6 +13,12 @@ interface GridListData {
13
13
  gridListId: string;
14
14
  /** How selection should behave when pressing an item. */
15
15
  selectionBehavior: "replace" | "toggle";
16
+ /** Whether row selection should occur on press up. */
17
+ shouldSelectOnPressUp: boolean;
18
+ /** How keyboard navigation behaves within row children. */
19
+ keyboardNavigationBehavior: "arrow" | "tab";
20
+ /** Text direction for row-child arrow navigation. */
21
+ direction: "ltr" | "rtl";
16
22
  /** Actions registered for the grid list. */
17
23
  actions: {
18
24
  onAction?: (key: Key) => void;
@@ -25,6 +31,6 @@ export declare function getGridListData<T extends object, C extends GridCollecti
25
31
  /**
26
32
  * Creates accessibility props for a grid list.
27
33
  */
28
- export declare function createGridList<T extends object, C extends GridCollection<T> = GridCollection<T>>(props: Accessor<AriaGridListProps>, state: Accessor<GridState<T, C>>, _ref: Accessor<HTMLElement | null>): GridListAria;
34
+ export declare function createGridList<T extends object, C extends GridCollection<T> = GridCollection<T>>(props: Accessor<AriaGridListProps>, state: Accessor<GridState<T, C>>, ref: Accessor<HTMLElement | null>): GridListAria;
29
35
  export {};
30
36
  //# sourceMappingURL=createGridList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createGridList.d.ts","sourceRoot":"","sources":["../../src/gridlist/createGridList.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGrD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/D;;GAEG;AACH,UAAU,YAAY;IACpB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,iBAAiB,EAAE,SAAS,GAAG,QAAQ,CAAC;IACxC,4CAA4C;IAC5C,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;KAC/B,CAAC;CACH;AAOD;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,EAC3E,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GACrB,YAAY,GAAG,SAAS,CAE1B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAC9F,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,EAClC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AClC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAChC,GAAG,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,GAChC,YAAY,CA8Nd"}
@@ -8,5 +8,5 @@ import type { AriaGridListItemProps, GridListItemAria } from "./types";
8
8
  /**
9
9
  * Creates accessibility props for a grid list item.
10
10
  */
11
- export declare function createGridListItem<T extends object, C extends GridCollection<T> = GridCollection<T>>(props: Accessor<AriaGridListItemProps>, state: Accessor<GridState<T, C>>, _ref: Accessor<HTMLElement | null>): GridListItemAria;
11
+ export declare function createGridListItem<T extends object, C extends GridCollection<T> = GridCollection<T>>(props: Accessor<AriaGridListItemProps>, state: Accessor<GridState<T, C>>, ref: Accessor<HTMLElement | null>): GridListItemAria;
12
12
  //# sourceMappingURL=createGridListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createGridListItem.d.ts","sourceRoot":"","sources":["../../src/gridlist/createGridListItem.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGvE;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAE/C,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,GACjC,gBAAgB,CA2MlB"}
1
+ {"version":3,"file":"createGridListItem.d.ts","sourceRoot":"","sources":["../../src/gridlist/createGridListItem.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAEV,SAAS,EACT,cAAc,EAGf,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMvE;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAE/C,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAChC,GAAG,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,GAChC,gBAAgB,CA8HlB"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * createGridListSection - Provides accessibility for a grid list section.
3
+ * Based on @react-aria/gridlist/useGridListSection.
4
+ */
5
+ import type { AriaGridListSectionProps, GridListSectionAria } from "./types";
6
+ /**
7
+ * Creates accessibility props for a grid list section.
8
+ *
9
+ * Mirrors upstream `useGridListSection`: a section is a `role="rowgroup"`
10
+ * wrapper whose optional header renders as `role="row"` › `role="rowheader"`.
11
+ * The `aria-labelledby` of the wrapper points at the header's id via a slot id
12
+ * that resolves to `undefined` when no header is rendered.
13
+ */
14
+ export declare function createGridListSection(props: AriaGridListSectionProps): GridListSectionAria;
15
+ //# sourceMappingURL=createGridListSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createGridListSection.d.ts","sourceRoot":"","sources":["../../src/gridlist/createGridListSection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE7E;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,wBAAwB,GAAG,mBAAmB,CAmC1F"}
@@ -4,5 +4,6 @@
4
4
  export { createGridList, getGridListData } from "./createGridList";
5
5
  export { createGridListItem } from "./createGridListItem";
6
6
  export { createGridListSelectionCheckbox } from "./createGridListSelectionCheckbox";
7
- export type { AriaGridListProps, GridListAria, AriaGridListItemProps, GridListItemAria, AriaGridListSelectionCheckboxProps, GridListSelectionCheckboxAria, } from "./types";
7
+ export { createGridListSection } from "./createGridListSection";
8
+ export type { AriaGridListProps, GridListAria, AriaGridListItemProps, GridListItemAria, AriaGridListSelectionCheckboxProps, GridListSelectionCheckboxAria, AriaGridListSectionProps, GridListSectionAria, } from "./types";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gridlist/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,kCAAkC,EAClC,6BAA6B,GAC9B,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gridlist/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,kCAAkC,EAClC,6BAA6B,EAC7B,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { a as getGridListData, i as createGridList, n as createGridListSelectionCheckbox, r as createGridListItem, t as createGridListSection } from "../_chunk/gridlist.js";
2
+ export { createGridList, createGridListItem, createGridListSection, createGridListSelectionCheckbox, getGridListData };