@accelint/design-toolkit 9.10.0 → 9.11.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 (551) hide show
  1. package/catalog-info.yaml +3 -3
  2. package/dist/components/accordion/context.d.ts +3 -3
  3. package/dist/components/accordion/context.js.map +1 -1
  4. package/dist/components/accordion/group.d.ts +2 -2
  5. package/dist/components/accordion/group.js +2 -1
  6. package/dist/components/accordion/group.js.map +1 -1
  7. package/dist/components/accordion/header.d.ts +2 -2
  8. package/dist/components/accordion/header.js +2 -1
  9. package/dist/components/accordion/header.js.map +1 -1
  10. package/dist/components/accordion/index.d.ts +2 -2
  11. package/dist/components/accordion/index.js +3 -1
  12. package/dist/components/accordion/index.js.map +1 -1
  13. package/dist/components/accordion/panel.d.ts +2 -2
  14. package/dist/components/accordion/panel.js +2 -1
  15. package/dist/components/accordion/panel.js.map +1 -1
  16. package/dist/components/accordion/trigger.d.ts +2 -2
  17. package/dist/components/accordion/trigger.js +4 -3
  18. package/dist/components/accordion/trigger.js.map +1 -1
  19. package/dist/components/accordion/types.d.ts +3 -1
  20. package/dist/components/action-bar/index.d.ts +2 -2
  21. package/dist/components/action-bar/index.js +1 -1
  22. package/dist/components/action-bar/index.js.map +1 -1
  23. package/dist/components/audio/index.d.ts +2 -2
  24. package/dist/components/avatar/context.d.ts +5 -5
  25. package/dist/components/avatar/context.js.map +1 -1
  26. package/dist/components/avatar/index.d.ts +2 -2
  27. package/dist/components/avatar/index.js +1 -1
  28. package/dist/components/avatar/index.js.map +1 -1
  29. package/dist/components/badge/context.d.ts +5 -5
  30. package/dist/components/badge/context.js.map +1 -1
  31. package/dist/components/badge/index.d.ts +2 -2
  32. package/dist/components/badge/index.js +1 -1
  33. package/dist/components/badge/index.js.map +1 -1
  34. package/dist/components/breadcrumbs/index.d.ts +3 -3
  35. package/dist/components/breadcrumbs/index.js +1 -1
  36. package/dist/components/breadcrumbs/index.js.map +1 -1
  37. package/dist/components/breadcrumbs/item.d.ts +2 -2
  38. package/dist/components/breadcrumbs/item.js +3 -1
  39. package/dist/components/breadcrumbs/item.js.map +1 -1
  40. package/dist/components/breadcrumbs/types.d.ts +2 -1
  41. package/dist/components/button/__internal__/clear.js +2 -1
  42. package/dist/components/button/__internal__/clear.js.map +1 -1
  43. package/dist/components/button/context.d.ts +10 -10
  44. package/dist/components/button/context.js.map +1 -1
  45. package/dist/components/button/index.d.ts +2 -2
  46. package/dist/components/button/index.js +3 -1
  47. package/dist/components/button/index.js.map +1 -1
  48. package/dist/components/button/link.d.ts +2 -2
  49. package/dist/components/button/link.js +3 -1
  50. package/dist/components/button/link.js.map +1 -1
  51. package/dist/components/button/toggle.d.ts +2 -2
  52. package/dist/components/button/toggle.js +3 -1
  53. package/dist/components/button/toggle.js.map +1 -1
  54. package/dist/components/button/types.d.ts +3 -1
  55. package/dist/components/carousel/context.d.ts +4 -4
  56. package/dist/components/carousel/gallery.d.ts +2 -2
  57. package/dist/components/carousel/index.d.ts +2 -2
  58. package/dist/components/carousel/navigation.d.ts +3 -3
  59. package/dist/components/carousel/position.d.ts +2 -2
  60. package/dist/components/carousel/select.d.ts +2 -2
  61. package/dist/components/carousel/select.js.map +1 -1
  62. package/dist/components/carousel/viewer.d.ts +2 -2
  63. package/dist/components/checkbox/context.d.ts +5 -5
  64. package/dist/components/checkbox/context.js.map +1 -1
  65. package/dist/components/checkbox/group.d.ts +2 -2
  66. package/dist/components/checkbox/group.js +5 -3
  67. package/dist/components/checkbox/group.js.map +1 -1
  68. package/dist/components/checkbox/index.d.ts +2 -2
  69. package/dist/components/checkbox/index.js +3 -1
  70. package/dist/components/checkbox/index.js.map +1 -1
  71. package/dist/components/checkbox/types.d.ts +4 -3
  72. package/dist/components/chip/context.d.ts +5 -5
  73. package/dist/components/chip/context.js.map +1 -1
  74. package/dist/components/chip/deletable.d.ts +2 -2
  75. package/dist/components/chip/deletable.js +5 -3
  76. package/dist/components/chip/deletable.js.map +1 -1
  77. package/dist/components/chip/index.d.ts +2 -2
  78. package/dist/components/chip/index.js +2 -1
  79. package/dist/components/chip/index.js.map +1 -1
  80. package/dist/components/chip/list.d.ts +4 -4
  81. package/dist/components/chip/list.js +3 -1
  82. package/dist/components/chip/list.js.map +1 -1
  83. package/dist/components/chip/selectable.d.ts +2 -2
  84. package/dist/components/chip/selectable.js +3 -1
  85. package/dist/components/chip/selectable.js.map +1 -1
  86. package/dist/components/chip/types.d.ts +3 -2
  87. package/dist/components/classification-badge/context.d.ts +5 -5
  88. package/dist/components/classification-badge/context.js.map +1 -1
  89. package/dist/components/classification-badge/index.d.ts +2 -2
  90. package/dist/components/classification-badge/index.js +1 -1
  91. package/dist/components/classification-badge/index.js.map +1 -1
  92. package/dist/components/classification-banner/context.d.ts +5 -5
  93. package/dist/components/classification-banner/context.js.map +1 -1
  94. package/dist/components/classification-banner/index.d.ts +2 -2
  95. package/dist/components/classification-banner/index.js +1 -1
  96. package/dist/components/classification-banner/index.js.map +1 -1
  97. package/dist/components/clock/index.d.ts +2 -2
  98. package/dist/components/color-picker/index.js +4 -3
  99. package/dist/components/color-picker/index.js.map +1 -1
  100. package/dist/components/color-picker/types.d.ts +2 -1
  101. package/dist/components/combobox-field/context.d.ts +5 -5
  102. package/dist/components/combobox-field/context.js.map +1 -1
  103. package/dist/components/combobox-field/index.d.ts +2 -2
  104. package/dist/components/combobox-field/index.js +11 -11
  105. package/dist/components/combobox-field/index.js.map +1 -1
  106. package/dist/components/combobox-field/types.d.ts +8 -4
  107. package/dist/components/coordinate-field/context.d.ts +7 -7
  108. package/dist/components/coordinate-field/context.js.map +1 -1
  109. package/dist/components/coordinate-field/index.d.ts +2 -2
  110. package/dist/components/coordinate-field/index.js +28 -23
  111. package/dist/components/coordinate-field/index.js.map +1 -1
  112. package/dist/components/coordinate-field/segment.d.ts +2 -2
  113. package/dist/components/coordinate-field/types.d.ts +3 -1
  114. package/dist/components/coordinate-field/types.js.map +1 -1
  115. package/dist/components/date-field/index.d.ts +2 -2
  116. package/dist/components/date-field/index.js +4 -3
  117. package/dist/components/date-field/index.js.map +1 -1
  118. package/dist/components/date-field/types.d.ts +1 -1
  119. package/dist/components/deferred-collection/index.d.ts +2 -2
  120. package/dist/components/details-list/context.d.ts +5 -5
  121. package/dist/components/details-list/context.js.map +1 -1
  122. package/dist/components/details-list/index.d.ts +2 -2
  123. package/dist/components/details-list/index.js +2 -1
  124. package/dist/components/details-list/index.js.map +1 -1
  125. package/dist/components/details-list/label.d.ts +2 -2
  126. package/dist/components/details-list/label.js +1 -1
  127. package/dist/components/details-list/label.js.map +1 -1
  128. package/dist/components/details-list/types.d.ts +1 -1
  129. package/dist/components/details-list/value.d.ts +2 -2
  130. package/dist/components/details-list/value.js +1 -1
  131. package/dist/components/details-list/value.js.map +1 -1
  132. package/dist/components/dialog/content.d.ts +2 -2
  133. package/dist/components/dialog/context.d.ts +4 -4
  134. package/dist/components/dialog/context.js.map +1 -1
  135. package/dist/components/dialog/footer.d.ts +2 -2
  136. package/dist/components/dialog/footer.js +1 -1
  137. package/dist/components/dialog/footer.js.map +1 -1
  138. package/dist/components/dialog/index.d.ts +2 -2
  139. package/dist/components/dialog/index.js +3 -1
  140. package/dist/components/dialog/index.js.map +1 -1
  141. package/dist/components/dialog/title.d.ts +3 -3
  142. package/dist/components/dialog/title.js +1 -1
  143. package/dist/components/dialog/title.js.map +1 -1
  144. package/dist/components/dialog/trigger.d.ts +1 -1
  145. package/dist/components/dialog/trigger.js +1 -1
  146. package/dist/components/dialog/trigger.js.map +1 -1
  147. package/dist/components/dialog/types.d.ts +1 -1
  148. package/dist/components/divider/context.d.ts +5 -5
  149. package/dist/components/divider/context.js.map +1 -1
  150. package/dist/components/divider/index.d.ts +2 -2
  151. package/dist/components/divider/index.js +1 -1
  152. package/dist/components/divider/index.js.map +1 -1
  153. package/dist/components/drawer/back.d.ts +2 -2
  154. package/dist/components/drawer/close.d.ts +2 -2
  155. package/dist/components/drawer/content.d.ts +2 -2
  156. package/dist/components/drawer/context.d.ts +2 -2
  157. package/dist/components/drawer/footer.d.ts +2 -2
  158. package/dist/components/drawer/header-title.d.ts +2 -2
  159. package/dist/components/drawer/header-title.js +1 -1
  160. package/dist/components/drawer/header-title.js.map +1 -1
  161. package/dist/components/drawer/header.d.ts +2 -2
  162. package/dist/components/drawer/header.js +3 -3
  163. package/dist/components/drawer/header.js.map +1 -1
  164. package/dist/components/drawer/index.d.ts +2 -2
  165. package/dist/components/drawer/layout-main.d.ts +2 -2
  166. package/dist/components/drawer/layout.d.ts +2 -2
  167. package/dist/components/drawer/menu-item.d.ts +2 -2
  168. package/dist/components/drawer/menu-item.js +7 -7
  169. package/dist/components/drawer/menu-item.js.map +1 -1
  170. package/dist/components/drawer/menu.d.ts +2 -2
  171. package/dist/components/drawer/panel.d.ts +2 -2
  172. package/dist/components/drawer/trigger.d.ts +2 -2
  173. package/dist/components/drawer/trigger.js +1 -1
  174. package/dist/components/drawer/trigger.js.map +1 -1
  175. package/dist/components/drawer/types.d.ts +3 -3
  176. package/dist/components/drawer/view.d.ts +2 -2
  177. package/dist/components/flashcard/index.d.ts +9 -9
  178. package/dist/components/flashcard/index.js +2 -1
  179. package/dist/components/flashcard/index.js.map +1 -1
  180. package/dist/components/floating-card/context.d.ts +4 -29
  181. package/dist/components/floating-card/context.js.map +1 -1
  182. package/dist/components/floating-card/index.d.ts +5 -50
  183. package/dist/components/floating-card/index.js.map +1 -1
  184. package/dist/components/floating-card/provider.d.ts +5 -84
  185. package/dist/components/floating-card/provider.js +6 -41
  186. package/dist/components/floating-card/provider.js.map +1 -1
  187. package/dist/components/floating-card/styles.module.css +15 -2
  188. package/dist/components/floating-card/types.d.ts +161 -0
  189. package/dist/components/floating-card/types.js +12 -0
  190. package/dist/components/floating-card/utils.d.ts +104 -0
  191. package/dist/components/floating-card/utils.js +60 -0
  192. package/dist/components/floating-card/utils.js.map +1 -0
  193. package/dist/components/gantt/components/base-elements/point.d.ts +2 -2
  194. package/dist/components/gantt/components/base-elements/range.d.ts +2 -2
  195. package/dist/components/gantt/components/containers/external/gantt-content-container/index.d.ts +2 -2
  196. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +2 -2
  197. package/dist/components/gantt/components/containers/internal/index.d.ts +2 -2
  198. package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +2 -2
  199. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +2 -2
  200. package/dist/components/gantt/components/content-row/block.d.ts +2 -2
  201. package/dist/components/gantt/components/content-row/bracket.d.ts +3 -3
  202. package/dist/components/gantt/components/content-row/icon-marker.d.ts +2 -2
  203. package/dist/components/gantt/components/content-row/index.d.ts +2 -2
  204. package/dist/components/gantt/components/content-row/marker.d.ts +2 -2
  205. package/dist/components/gantt/components/content-row/spacer.d.ts +2 -2
  206. package/dist/components/gantt/components/current-time/index.d.ts +2 -2
  207. package/dist/components/gantt/components/header/index.d.ts +3 -3
  208. package/dist/components/gantt/components/panel-row/index.d.ts +2 -2
  209. package/dist/components/gantt/components/rows-virtualizer/index.d.ts +3 -3
  210. package/dist/components/gantt/components/timeline/index.d.ts +2 -2
  211. package/dist/components/gantt/components/timeline-chunk/index.d.ts +3 -3
  212. package/dist/components/gantt/context/index.d.ts +4 -4
  213. package/dist/components/gantt/context/store/index.d.ts +4 -4
  214. package/dist/components/gantt/context/temporal-data/index.d.ts +4 -4
  215. package/dist/components/hero/context.d.ts +3 -3
  216. package/dist/components/hero/context.js.map +1 -1
  217. package/dist/components/hero/index.d.ts +2 -2
  218. package/dist/components/hero/index.js +4 -1
  219. package/dist/components/hero/index.js.map +1 -1
  220. package/dist/components/hero/subtitle.d.ts +3 -3
  221. package/dist/components/hero/subtitle.js +1 -1
  222. package/dist/components/hero/subtitle.js.map +1 -1
  223. package/dist/components/hero/title.d.ts +3 -3
  224. package/dist/components/hero/title.js +1 -1
  225. package/dist/components/hero/title.js.map +1 -1
  226. package/dist/components/hotkey/context.d.ts +5 -5
  227. package/dist/components/hotkey/context.js.map +1 -1
  228. package/dist/components/hotkey/index.d.ts +2 -2
  229. package/dist/components/hotkey/index.js +2 -1
  230. package/dist/components/hotkey/index.js.map +1 -1
  231. package/dist/components/hotkey/set.d.ts +2 -2
  232. package/dist/components/icon/context.d.ts +5 -5
  233. package/dist/components/icon/context.js.map +1 -1
  234. package/dist/components/icon/index.d.ts +2 -2
  235. package/dist/components/icon/index.js +1 -1
  236. package/dist/components/icon/index.js.map +1 -1
  237. package/dist/components/input/context.d.ts +4 -4
  238. package/dist/components/input/context.js.map +1 -1
  239. package/dist/components/input/index.d.ts +2 -2
  240. package/dist/components/input/index.js +4 -2
  241. package/dist/components/input/index.js.map +1 -1
  242. package/dist/components/input/types.d.ts +3 -3
  243. package/dist/components/kanban/card-body.d.ts +2 -2
  244. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  245. package/dist/components/kanban/card-header-title.d.ts +2 -2
  246. package/dist/components/kanban/card-header.d.ts +2 -2
  247. package/dist/components/kanban/card.d.ts +2 -2
  248. package/dist/components/kanban/column-actions.d.ts +2 -2
  249. package/dist/components/kanban/column-container.d.ts +2 -2
  250. package/dist/components/kanban/column-content.d.ts +2 -2
  251. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  252. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  253. package/dist/components/kanban/column-header-title.d.ts +2 -2
  254. package/dist/components/kanban/column-header.d.ts +2 -2
  255. package/dist/components/kanban/column.d.ts +2 -2
  256. package/dist/components/kanban/context.d.ts +2 -2
  257. package/dist/components/kanban/header-actions.d.ts +2 -2
  258. package/dist/components/kanban/header-search.d.ts +2 -2
  259. package/dist/components/kanban/header-title.d.ts +2 -2
  260. package/dist/components/kanban/header-title.js +1 -1
  261. package/dist/components/kanban/header-title.js.map +1 -1
  262. package/dist/components/kanban/header.d.ts +2 -2
  263. package/dist/components/kanban/kanban.d.ts +4 -4
  264. package/dist/components/label/context.d.ts +6 -6
  265. package/dist/components/label/context.js.map +1 -1
  266. package/dist/components/label/index.d.ts +2 -2
  267. package/dist/components/label/index.js +2 -1
  268. package/dist/components/label/index.js.map +1 -1
  269. package/dist/components/label/types.d.ts +1 -1
  270. package/dist/components/lines/index.d.ts +2 -2
  271. package/dist/components/link/context.d.ts +2 -2
  272. package/dist/components/link/context.js +1 -1
  273. package/dist/components/link/context.js.map +1 -1
  274. package/dist/components/link/index.d.ts +2 -2
  275. package/dist/components/link/index.js +3 -1
  276. package/dist/components/link/index.js.map +1 -1
  277. package/dist/components/link/types.d.ts +1 -1
  278. package/dist/components/list/context.d.ts +3 -3
  279. package/dist/components/list/context.js.map +1 -1
  280. package/dist/components/list/index.d.ts +2 -2
  281. package/dist/components/list/index.js +3 -1
  282. package/dist/components/list/index.js.map +1 -1
  283. package/dist/components/list/item-content.d.ts +2 -2
  284. package/dist/components/list/item-title.d.ts +2 -2
  285. package/dist/components/list/item.d.ts +2 -2
  286. package/dist/components/list/item.js +2 -1
  287. package/dist/components/list/item.js.map +1 -1
  288. package/dist/components/list/types.d.ts +1 -1
  289. package/dist/components/media-controls/context.d.ts +4 -4
  290. package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
  291. package/dist/components/media-controls/index.d.ts +2 -2
  292. package/dist/components/media-controls/play-button.d.ts +2 -2
  293. package/dist/components/media-controls/playback-rate.d.ts +2 -2
  294. package/dist/components/media-controls/seek-button.d.ts +2 -2
  295. package/dist/components/media-controls/time-display.d.ts +2 -2
  296. package/dist/components/media-controls/time-range.d.ts +2 -2
  297. package/dist/components/media-controls/volume-slider.d.ts +2 -2
  298. package/dist/components/menu/context.d.ts +4 -4
  299. package/dist/components/menu/context.js.map +1 -1
  300. package/dist/components/menu/index.d.ts +2 -2
  301. package/dist/components/menu/index.js +4 -1
  302. package/dist/components/menu/index.js.map +1 -1
  303. package/dist/components/menu/item-description.d.ts +3 -3
  304. package/dist/components/menu/item-description.js +1 -1
  305. package/dist/components/menu/item-description.js.map +1 -1
  306. package/dist/components/menu/item-label.d.ts +3 -3
  307. package/dist/components/menu/item-label.js +1 -1
  308. package/dist/components/menu/item-label.js.map +1 -1
  309. package/dist/components/menu/item.d.ts +2 -2
  310. package/dist/components/menu/item.js +5 -1
  311. package/dist/components/menu/item.js.map +1 -1
  312. package/dist/components/menu/section.d.ts +2 -2
  313. package/dist/components/menu/section.js +1 -1
  314. package/dist/components/menu/section.js.map +1 -1
  315. package/dist/components/menu/separator.d.ts +3 -3
  316. package/dist/components/menu/separator.js +1 -1
  317. package/dist/components/menu/separator.js.map +1 -1
  318. package/dist/components/menu/submenu.d.ts +3 -3
  319. package/dist/components/menu/submenu.js +1 -1
  320. package/dist/components/menu/submenu.js.map +1 -1
  321. package/dist/components/menu/trigger.d.ts +1 -1
  322. package/dist/components/menu/trigger.js +1 -1
  323. package/dist/components/menu/trigger.js.map +1 -1
  324. package/dist/components/menu/types.d.ts +1 -1
  325. package/dist/components/notice/index.d.ts +2 -2
  326. package/dist/components/notice/index.js +5 -5
  327. package/dist/components/notice/index.js.map +1 -1
  328. package/dist/components/notice/list.d.ts +2 -2
  329. package/dist/components/notice/list.js +7 -6
  330. package/dist/components/notice/list.js.map +1 -1
  331. package/dist/components/notice/notice-icon.d.ts +2 -2
  332. package/dist/components/notice/types.d.ts +4 -4
  333. package/dist/components/options/context.d.ts +1 -1
  334. package/dist/components/options/context.js.map +1 -1
  335. package/dist/components/options/index.d.ts +2 -2
  336. package/dist/components/options/index.js +3 -1
  337. package/dist/components/options/index.js.map +1 -1
  338. package/dist/components/options/item-content.d.ts +3 -3
  339. package/dist/components/options/item-content.js.map +1 -1
  340. package/dist/components/options/item-description.d.ts +3 -3
  341. package/dist/components/options/item-description.js +1 -1
  342. package/dist/components/options/item-description.js.map +1 -1
  343. package/dist/components/options/item-label.d.ts +3 -3
  344. package/dist/components/options/item-label.js +2 -1
  345. package/dist/components/options/item-label.js.map +1 -1
  346. package/dist/components/options/item.d.ts +2 -2
  347. package/dist/components/options/item.js +2 -1
  348. package/dist/components/options/item.js.map +1 -1
  349. package/dist/components/options/section.d.ts +2 -2
  350. package/dist/components/options/section.js +1 -1
  351. package/dist/components/options/section.js.map +1 -1
  352. package/dist/components/options/types.d.ts +2 -2
  353. package/dist/components/pagination/context.d.ts +2 -2
  354. package/dist/components/pagination/index.d.ts +2 -2
  355. package/dist/components/pagination/index.js +1 -1
  356. package/dist/components/pagination/index.js.map +1 -1
  357. package/dist/components/pagination/next.d.ts +2 -2
  358. package/dist/components/pagination/next.js +3 -3
  359. package/dist/components/pagination/next.js.map +1 -1
  360. package/dist/components/pagination/pages.d.ts +2 -2
  361. package/dist/components/pagination/pages.js +3 -3
  362. package/dist/components/pagination/pages.js.map +1 -1
  363. package/dist/components/pagination/prev.d.ts +2 -2
  364. package/dist/components/pagination/prev.js +3 -3
  365. package/dist/components/pagination/prev.js.map +1 -1
  366. package/dist/components/popover/content.d.ts +2 -2
  367. package/dist/components/popover/footer.d.ts +2 -2
  368. package/dist/components/popover/index.d.ts +2 -2
  369. package/dist/components/popover/index.js +1 -1
  370. package/dist/components/popover/index.js.map +1 -1
  371. package/dist/components/popover/title.d.ts +3 -3
  372. package/dist/components/popover/title.js +1 -1
  373. package/dist/components/popover/title.js.map +1 -1
  374. package/dist/components/popover/trigger.d.ts +2 -2
  375. package/dist/components/popover/trigger.js +3 -3
  376. package/dist/components/popover/trigger.js.map +1 -1
  377. package/dist/components/popover/types.d.ts +1 -1
  378. package/dist/components/query-builder/action-element.d.ts +2 -2
  379. package/dist/components/query-builder/actions.d.ts +4 -4
  380. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  381. package/dist/components/query-builder/index.d.ts +2 -2
  382. package/dist/components/query-builder/rule-group.d.ts +4 -4
  383. package/dist/components/query-builder/rule.d.ts +2 -2
  384. package/dist/components/query-builder/value-editor.d.ts +2 -2
  385. package/dist/components/query-builder/value-selector.d.ts +2 -2
  386. package/dist/components/radio/context.d.ts +5 -5
  387. package/dist/components/radio/context.js.map +1 -1
  388. package/dist/components/radio/group.d.ts +2 -2
  389. package/dist/components/radio/group.js +5 -3
  390. package/dist/components/radio/group.js.map +1 -1
  391. package/dist/components/radio/index.d.ts +2 -2
  392. package/dist/components/radio/index.js +3 -1
  393. package/dist/components/radio/index.js.map +1 -1
  394. package/dist/components/radio/types.d.ts +3 -3
  395. package/dist/components/search-field/context.d.ts +6 -6
  396. package/dist/components/search-field/context.js.map +1 -1
  397. package/dist/components/search-field/index.d.ts +2 -2
  398. package/dist/components/search-field/index.js +3 -1
  399. package/dist/components/search-field/index.js.map +1 -1
  400. package/dist/components/search-field/types.d.ts +3 -3
  401. package/dist/components/select-field/context.d.ts +3 -3
  402. package/dist/components/select-field/context.js.map +1 -1
  403. package/dist/components/select-field/index.js +6 -3
  404. package/dist/components/select-field/index.js.map +1 -1
  405. package/dist/components/select-field/types.d.ts +8 -5
  406. package/dist/components/sidenav/avatar.d.ts +2 -2
  407. package/dist/components/sidenav/avatar.js +3 -1
  408. package/dist/components/sidenav/avatar.js.map +1 -1
  409. package/dist/components/sidenav/content.d.ts +2 -2
  410. package/dist/components/sidenav/content.js +1 -1
  411. package/dist/components/sidenav/content.js.map +1 -1
  412. package/dist/components/sidenav/context.d.ts +2 -2
  413. package/dist/components/sidenav/footer.d.ts +2 -2
  414. package/dist/components/sidenav/header.d.ts +2 -2
  415. package/dist/components/sidenav/header.js +3 -1
  416. package/dist/components/sidenav/header.js.map +1 -1
  417. package/dist/components/sidenav/index.d.ts +2 -2
  418. package/dist/components/sidenav/index.js +2 -1
  419. package/dist/components/sidenav/index.js.map +1 -1
  420. package/dist/components/sidenav/item.d.ts +2 -2
  421. package/dist/components/sidenav/item.js +8 -5
  422. package/dist/components/sidenav/item.js.map +1 -1
  423. package/dist/components/sidenav/link.d.ts +2 -2
  424. package/dist/components/sidenav/link.js +8 -5
  425. package/dist/components/sidenav/link.js.map +1 -1
  426. package/dist/components/sidenav/menu-item.d.ts +2 -2
  427. package/dist/components/sidenav/menu-item.js +2 -1
  428. package/dist/components/sidenav/menu-item.js.map +1 -1
  429. package/dist/components/sidenav/menu.d.ts +2 -2
  430. package/dist/components/sidenav/menu.js +10 -5
  431. package/dist/components/sidenav/menu.js.map +1 -1
  432. package/dist/components/sidenav/trigger.d.ts +2 -2
  433. package/dist/components/sidenav/trigger.js +1 -1
  434. package/dist/components/sidenav/trigger.js.map +1 -1
  435. package/dist/components/sidenav/types.d.ts +6 -1
  436. package/dist/components/skeleton/index.d.ts +2 -2
  437. package/dist/components/slider/index.d.ts +2 -2
  438. package/dist/components/slider/index.js +9 -6
  439. package/dist/components/slider/index.js.map +1 -1
  440. package/dist/components/slider/types.d.ts +1 -1
  441. package/dist/components/status-indicator/index.d.ts +2 -2
  442. package/dist/components/switch/context.d.ts +5 -5
  443. package/dist/components/switch/context.js.map +1 -1
  444. package/dist/components/switch/index.d.ts +2 -2
  445. package/dist/components/switch/index.js +3 -1
  446. package/dist/components/switch/index.js.map +1 -1
  447. package/dist/components/switch/types.d.ts +1 -1
  448. package/dist/components/table/body.d.ts +2 -2
  449. package/dist/components/table/cell.d.ts +2 -2
  450. package/dist/components/table/context.d.ts +2 -2
  451. package/dist/components/table/header-cell.d.ts +2 -2
  452. package/dist/components/table/header.d.ts +2 -2
  453. package/dist/components/table/index.d.ts +2 -2
  454. package/dist/components/table/index.js +2 -2
  455. package/dist/components/table/index.js.map +1 -1
  456. package/dist/components/table/row.d.ts +2 -2
  457. package/dist/components/tabs/context.d.ts +8 -8
  458. package/dist/components/tabs/context.js.map +1 -1
  459. package/dist/components/tabs/index.d.ts +2 -2
  460. package/dist/components/tabs/index.js +3 -1
  461. package/dist/components/tabs/index.js.map +1 -1
  462. package/dist/components/tabs/list.d.ts +3 -3
  463. package/dist/components/tabs/list.js +2 -1
  464. package/dist/components/tabs/list.js.map +1 -1
  465. package/dist/components/tabs/panel.d.ts +3 -3
  466. package/dist/components/tabs/panel.js +2 -1
  467. package/dist/components/tabs/panel.js.map +1 -1
  468. package/dist/components/tabs/tab.d.ts +2 -2
  469. package/dist/components/tabs/tab.js +3 -1
  470. package/dist/components/tabs/tab.js.map +1 -1
  471. package/dist/components/tabs/types.d.ts +1 -1
  472. package/dist/components/text-area-field/context.d.ts +5 -5
  473. package/dist/components/text-area-field/context.js.map +1 -1
  474. package/dist/components/text-area-field/index.d.ts +2 -2
  475. package/dist/components/text-area-field/index.js +8 -3
  476. package/dist/components/text-area-field/index.js.map +1 -1
  477. package/dist/components/text-area-field/types.d.ts +3 -1
  478. package/dist/components/text-field/context.d.ts +6 -6
  479. package/dist/components/text-field/context.js.map +1 -1
  480. package/dist/components/text-field/index.d.ts +2 -2
  481. package/dist/components/text-field/index.js +9 -5
  482. package/dist/components/text-field/index.js.map +1 -1
  483. package/dist/components/text-field/types.d.ts +7 -6
  484. package/dist/components/time-field/index.d.ts +3 -3
  485. package/dist/components/time-field/index.js +4 -3
  486. package/dist/components/time-field/index.js.map +1 -1
  487. package/dist/components/time-field/types.d.ts +1 -1
  488. package/dist/components/tooltip/context.d.ts +3 -3
  489. package/dist/components/tooltip/context.js.map +1 -1
  490. package/dist/components/tooltip/index.d.ts +2 -2
  491. package/dist/components/tooltip/index.js +3 -2
  492. package/dist/components/tooltip/index.js.map +1 -1
  493. package/dist/components/tooltip/trigger.d.ts +2 -2
  494. package/dist/components/tooltip/trigger.js +6 -3
  495. package/dist/components/tooltip/trigger.js.map +1 -1
  496. package/dist/components/tooltip/types.d.ts +8 -3
  497. package/dist/components/tree/context.d.ts +3 -3
  498. package/dist/components/tree/index.d.ts +4 -2
  499. package/dist/components/tree/index.js +11 -6
  500. package/dist/components/tree/index.js.map +1 -1
  501. package/dist/components/tree/item-actions.d.ts +2 -2
  502. package/dist/components/tree/item-content.d.ts +2 -2
  503. package/dist/components/tree/item-content.js +7 -7
  504. package/dist/components/tree/item-content.js.map +1 -1
  505. package/dist/components/tree/item-description.d.ts +3 -3
  506. package/dist/components/tree/item-description.js +1 -1
  507. package/dist/components/tree/item-description.js.map +1 -1
  508. package/dist/components/tree/item-label.d.ts +3 -3
  509. package/dist/components/tree/item-label.js +1 -1
  510. package/dist/components/tree/item-label.js.map +1 -1
  511. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  512. package/dist/components/tree/item.d.ts +2 -2
  513. package/dist/components/tree/item.js +14 -7
  514. package/dist/components/tree/item.js.map +1 -1
  515. package/dist/components/tree/lines.d.ts +2 -2
  516. package/dist/components/tree/types.d.ts +30 -16
  517. package/dist/components/video/index.d.ts +2 -2
  518. package/dist/components/view-stack/context.d.ts +2 -2
  519. package/dist/components/view-stack/index.d.ts +2 -2
  520. package/dist/components/view-stack/trigger.d.ts +2 -2
  521. package/dist/components/view-stack/trigger.js +1 -1
  522. package/dist/components/view-stack/trigger.js.map +1 -1
  523. package/dist/components/view-stack/types.d.ts +1 -1
  524. package/dist/components/view-stack/view.d.ts +2 -2
  525. package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +1 -1
  526. package/dist/hooks/coordinate-field/use-coordinate-field.js +1 -1
  527. package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -1
  528. package/dist/hooks/use-tree/actions/cache.d.ts +390 -18
  529. package/dist/hooks/use-tree/actions/cache.js +382 -18
  530. package/dist/hooks/use-tree/actions/cache.js.map +1 -1
  531. package/dist/hooks/use-tree/actions/index.d.ts +34 -21
  532. package/dist/hooks/use-tree/actions/index.js +34 -26
  533. package/dist/hooks/use-tree/actions/index.js.map +1 -1
  534. package/dist/hooks/use-tree/state/index.d.ts +5 -1
  535. package/dist/hooks/use-tree/state/index.js +5 -1
  536. package/dist/hooks/use-tree/state/index.js.map +1 -1
  537. package/dist/hooks/use-tree/state/utils.d.ts +28 -0
  538. package/dist/hooks/use-tree/state/utils.js +29 -1
  539. package/dist/hooks/use-tree/state/utils.js.map +1 -1
  540. package/dist/hooks/use-tree/types.d.ts +52 -24
  541. package/dist/index.d.ts +5 -4
  542. package/dist/lib/utils.d.ts +1 -1
  543. package/dist/lib/utils.js.map +1 -1
  544. package/dist/providers/portal.js +2 -2
  545. package/dist/providers/portal.js.map +1 -1
  546. package/dist/providers/theme-provider.d.ts +4 -4
  547. package/dist/providers/theme-provider.js +6 -7
  548. package/dist/providers/theme-provider.js.map +1 -1
  549. package/package.json +16 -33
  550. package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js +0 -134
  551. package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaTextField","Label","Input"],"sources":["../../../src/components/text-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n TextField as AriaTextField,\n composeRenderProps,\n FieldError,\n Text,\n useContextProps,\n} from 'react-aria-components';\nimport { Input } from '../input';\nimport { Label } from '../label';\nimport { TextFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { TextFieldProps } from './types';\n\n/**\n * TextField - Single-line text input with label and validation\n *\n * Provides integrated label, description, and error message with automatic accessibility.\n *\n * @param props - {@link TextFieldProps}\n * @param props.ref - Ref to the field container element.\n * @param props.classNames - Custom CSS class names for field elements.\n * @param props.description - Helper text displayed below the input.\n * @param props.errorMessage - Error message displayed when validation fails.\n * @param props.inputProps - Props passed to the underlying Input element.\n * @param props.label - Label text for the field.\n * @param props.size - Size variant of the field.\n * @param props.isInvalid - Whether the field is in an invalid state.\n * @returns The rendered TextField component.\n *\n * @example\n * ```tsx\n * <TextField label=\"Email\" type=\"email\" onChange={setEmail} />\n * ```\n */\nexport function TextField({ ref, ...props }: TextFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, TextFieldContext);\n\n const {\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n inputProps,\n label: labelProp,\n size = 'medium',\n isInvalid: isInvalidProp,\n ...rest\n } = props;\n const errorMessage = errorMessageProp || null; // Protect against empty string\n const isSmall = size === 'small';\n\n return (\n <AriaTextField\n {...rest}\n aria-label={labelProp}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/text-field', styles.field, className),\n )}\n isInvalid={isInvalidProp || (errorMessage ? true : undefined)} // Leave uncontrolled if possible to fallback to validation state\n data-size={size}\n >\n {(\n { isDisabled, isInvalid, isRequired }, // Rely on internal state, not props, since state could differ from props\n ) => (\n <>\n {!!labelProp && !isSmall && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n <Input\n {...inputProps}\n classNames={{\n ...classNames?.input,\n sizer: clsx(styles.input, classNames?.input?.sizer),\n }}\n disabled={isDisabled}\n required={isRequired}\n size={size}\n isInvalid={isInvalid}\n />\n {!!descriptionProp && !(isSmall || isInvalid) && (\n <Text\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </Text>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n </>\n )}\n </AriaTextField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,SAAgB,UAAU,EAAE,KAAK,GAAG,SAAyB;AAC3D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,iBAAiB;CAEpE,MAAM,EACJ,YACA,aAAa,iBACb,cAAc,kBACd,YACA,OAAO,WACP,OAAO,UACP,WAAW,eACX,GAAG,SACD;CACJ,MAAM,eAAe,oBAAoB;CACzC,MAAM,UAAU,SAAS;AAEzB,QACE,oBAACA;EACC,GAAI;EACJ,cAAY;EACP;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,oBAAoB,OAAO,OAAO,UAAU,CAClD;EACD,WAAW,kBAAkB,eAAe,OAAO;EACnD,aAAW;aAGT,EAAE,YAAY,WAAW,iBAEzB;GACG,CAAC,CAAC,aAAa,CAAC,WACf,oBAACC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK;GAEV,oBAACC;IACC,GAAI;IACJ,YAAY;KACV,GAAG,YAAY;KACf,OAAO,KAAK,OAAO,OAAO,YAAY,OAAO,MAAM;KACpD;IACD,UAAU;IACV,UAAU;IACJ;IACK;KACX;GACD,CAAC,CAAC,mBAAmB,EAAE,WAAW,cACjC,oBAAC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACI;GAET,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;MACZ;GAES"}
1
+ {"version":3,"file":"index.js","names":["AriaTextField"],"sources":["../../../src/components/text-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { FieldError } from 'react-aria-components/FieldError';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { Text } from 'react-aria-components/Text';\nimport { TextField as AriaTextField } from 'react-aria-components/TextField';\nimport { Input } from '../input';\nimport { Label } from '../label';\nimport { TextFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { TextFieldProps } from './types';\n\n/**\n * TextField - Single-line text input with label and validation\n *\n * Provides integrated label, description, and error message with automatic accessibility.\n *\n * @param props - {@link TextFieldProps}\n * @param props.ref - Ref to the field container element.\n * @param props.classNames - Custom CSS class names for field elements.\n * @param props.description - Helper text displayed below the input.\n * @param props.errorMessage - Error message displayed when validation fails.\n * @param props.inputProps - Props passed to the underlying Input element.\n * @param props.label - Label text for the field.\n * @param props.size - Size variant of the field.\n * @param props.isInvalid - Whether the field is in an invalid state.\n * @returns The rendered TextField component.\n *\n * @example\n * ```tsx\n * <TextField label=\"Email\" type=\"email\" onChange={setEmail} />\n * ```\n */\nexport function TextField({ ref, ...props }: TextFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, TextFieldContext);\n\n const {\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n inputProps,\n label: labelProp,\n size = 'medium',\n isInvalid: isInvalidProp,\n ...rest\n } = props;\n const errorMessage = errorMessageProp || null; // Protect against empty string\n const isSmall = size === 'small';\n\n return (\n <AriaTextField\n {...rest}\n aria-label={labelProp}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/text-field', styles.field, className),\n )}\n isInvalid={isInvalidProp || (errorMessage ? true : undefined)} // Leave uncontrolled if possible to fallback to validation state\n data-size={size}\n >\n {(\n { isDisabled, isInvalid, isRequired }, // Rely on internal state, not props, since state could differ from props\n ) => (\n <>\n {!!labelProp && !isSmall && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n <Input\n {...inputProps}\n classNames={{\n ...classNames?.input,\n sizer: clsx(styles.input, classNames?.input?.sizer),\n }}\n disabled={isDisabled}\n required={isRequired}\n size={size}\n isInvalid={isInvalid}\n />\n {!!descriptionProp && !(isSmall || isInvalid) && (\n <Text\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </Text>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n </>\n )}\n </AriaTextField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,SAAgB,UAAU,EAAE,KAAK,GAAG,SAAyB;AAC3D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,iBAAiB;CAEpE,MAAM,EACJ,YACA,aAAa,iBACb,cAAc,kBACd,YACA,OAAO,WACP,OAAO,UACP,WAAW,eACX,GAAG,SACD;CACJ,MAAM,eAAe,oBAAoB;CACzC,MAAM,UAAU,SAAS;AAEzB,QACE,oBAACA;EACC,GAAI;EACJ,cAAY;EACP;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,oBAAoB,OAAO,OAAO,UAAU,CAClD;EACD,WAAW,kBAAkB,eAAe,OAAO;EACnD,aAAW;aAGT,EAAE,YAAY,WAAW,iBAEzB;GACG,CAAC,CAAC,aAAa,CAAC,WACf,oBAAC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK;GAEV,oBAAC;IACC,GAAI;IACJ,YAAY;KACV,GAAG,YAAY;KACf,OAAO,KAAK,OAAO,OAAO,YAAY,OAAO,MAAM;KACpD;IACD,UAAU;IACV,UAAU;IACJ;IACK;KACX;GACD,CAAC,CAAC,mBAAmB,EAAE,WAAW,cACjC,oBAAC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACI;GAET,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;MACZ;GAES"}
@@ -10,10 +10,11 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { LabelProps as LabelProps$1 } from "../label/types.js";
14
- import { InputProps as InputProps$1 } from "../input/types.js";
13
+ import { LabelProps } from "../label/types.js";
14
+ import { InputProps } from "../input/types.js";
15
15
  import { RefAttributes } from "react";
16
- import { FieldErrorProps, TextFieldProps as TextFieldProps$1 } from "react-aria-components";
16
+ import { FieldErrorProps } from "react-aria-components/FieldError";
17
+ import { TextFieldProps as TextFieldProps$1 } from "react-aria-components/TextField";
17
18
 
18
19
  //#region src/components/text-field/types.d.ts
19
20
  /**
@@ -23,15 +24,15 @@ type TextFieldProps = Omit<TextFieldProps$1, 'children' | 'className' | 'type' |
23
24
  /** Custom CSS class names for field elements. */
24
25
  classNames?: {
25
26
  field?: TextFieldProps$1['className'];
26
- label?: LabelProps$1['className'];
27
- input?: InputProps$1['classNames'];
27
+ label?: LabelProps['className'];
28
+ input?: InputProps['classNames'];
28
29
  description?: string;
29
30
  error?: FieldErrorProps['className'];
30
31
  };
31
32
  /** Label text for the field. */
32
33
  label?: string;
33
34
  /** Props passed to the underlying Input element. */
34
- inputProps?: InputProps$1;
35
+ inputProps?: InputProps;
35
36
  /** Helper text displayed below the input. */
36
37
  description?: string;
37
38
  /** Error message displayed when validation fails. */
@@ -12,8 +12,8 @@
12
12
 
13
13
  import { TimeFieldProps as TimeFieldProps$1 } from "./types.js";
14
14
  import "client-only";
15
- import { TimeValue } from "react-aria-components";
16
- import * as react_jsx_runtime236 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime201 from "react/jsx-runtime";
16
+ import { TimeValue } from "react-aria-components/TimeField";
17
17
 
18
18
  //#region src/components/time-field/index.d.ts
19
19
 
@@ -58,7 +58,7 @@ declare function TimeField<T extends TimeValue>({
58
58
  isRequired,
59
59
  isReadOnly,
60
60
  ...rest
61
- }: TimeFieldProps$1<T>): react_jsx_runtime236.JSX.Element;
61
+ }: TimeFieldProps$1<T>): react_jsx_runtime201.JSX.Element;
62
62
  //#endregion
63
63
  export { TimeField };
64
64
  //# sourceMappingURL=index.d.ts.map
@@ -14,12 +14,13 @@
14
14
  'use client';
15
15
 
16
16
  import { Icon } from "../icon/index.js";
17
- import { Label as Label$1 } from "../label/index.js";
17
+ import { Label } from "../label/index.js";
18
18
  import "client-only";
19
19
  import { clsx } from "@accelint/design-foundation/lib/utils";
20
- import { DateInput, DateSegment, FieldError, Text, TimeField as TimeField$1, composeRenderProps } from "react-aria-components";
20
+ import { composeRenderProps } from "react-aria-components/composeRenderProps";
21
21
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
22
22
  import Time from "@accelint/icons/time";
23
+ import { DateInput, DateSegment, FieldError, Text, TimeField as TimeField$1 } from "react-aria-components/TimeField";
23
24
  import styles from "./styles.module.css";
24
25
 
25
26
  //#region src/components/time-field/index.tsx
@@ -65,7 +66,7 @@ function TimeField({ classNames, description: descriptionProp, errorMessage: err
65
66
  "aria-label": labelProp,
66
67
  "data-size": size,
67
68
  children: ({ isDisabled: isDisabled$1 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
68
- !isSmall && labelProp && /* @__PURE__ */ jsx(Label$1, {
69
+ !isSmall && labelProp && /* @__PURE__ */ jsx(Label, {
69
70
  className: clsx(styles.label, classNames?.label),
70
71
  isDisabled: isDisabled$1,
71
72
  isRequired,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaTimeField","Label","isDisabled","AriaDateInput","AriaText"],"sources":["../../../src/components/time-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Time from '@accelint/icons/time';\nimport {\n DateInput as AriaDateInput,\n Text as AriaText,\n TimeField as AriaTimeField,\n composeRenderProps,\n DateSegment,\n FieldError,\n type TimeValue,\n} from 'react-aria-components';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport styles from './styles.module.css';\nimport type { TimeFieldProps } from './types';\n\n/**\n * TimeField - Form input for time values\n *\n * Provides configurable granularity, 12/24-hour format, and automatic accessibility.\n *\n * @param props - {@link TimeFieldProps}\n * @param props.classNames - Custom CSS class names for field elements.\n * @param props.description - Helper text displayed below the input.\n * @param props.errorMessage - Error message displayed when validation fails.\n * @param props.granularity - The granularity of the time value (hour, minute, second).\n * @param props.hourCycle - Whether to use 12 or 24 hour time format.\n * @param props.inputProps - Props passed to the underlying DateInput element.\n * @param props.label - Label text for the field.\n * @param props.shouldForceLeadingZeros - Whether to force leading zeros in time segments.\n * @param props.size - Size variant of the field.\n * @param props.isDisabled - Whether the field is disabled.\n * @param props.isInvalid - Whether the field is in an invalid state.\n * @param props.isRequired - Whether the field is required.\n * @param props.isReadOnly - Whether the field is read-only.\n * @returns The rendered TimeField component.\n *\n * @example\n * ```tsx\n * <TimeField label=\"Start time\" granularity=\"minute\" onChange={setTime} />\n * ```\n */\nexport function TimeField<T extends TimeValue>({\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n granularity = 'second',\n hourCycle = 24,\n inputProps,\n label: labelProp,\n shouldForceLeadingZeros = true,\n size = 'medium',\n isDisabled,\n isInvalid: isInvalidProp,\n isRequired,\n isReadOnly = false,\n ...rest\n}: TimeFieldProps<T>) {\n const errorMessage = errorMessageProp || null; // Protect against empty string\n const isSmall = size === 'small';\n\n return (\n <AriaTimeField<T>\n {...rest}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/time-field', styles.field, className),\n )}\n granularity={granularity}\n hourCycle={hourCycle}\n shouldForceLeadingZeros={shouldForceLeadingZeros}\n isDisabled={isDisabled}\n isInvalid={isInvalidProp || (errorMessage ? true : undefined)} // Leave uncontrolled if possible to fallback to validation state\n isRequired={isRequired}\n isReadOnly={isReadOnly}\n aria-label={labelProp}\n data-size={size}\n >\n {(\n { isDisabled }, // Rely on internal state, not props, since state could differ from props\n ) => (\n <>\n {!isSmall && labelProp && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n <div\n className={clsx(styles.control, classNames?.control)}\n data-readonly={isReadOnly || null}\n >\n {!isReadOnly && size === 'medium' && (\n <Icon>\n <Time />\n </Icon>\n )}\n <AriaDateInput\n {...inputProps}\n className={composeRenderProps(classNames?.input, (className) =>\n clsx(styles.input, className),\n )}\n >\n {(segmentProp) => (\n <DateSegment\n segment={segmentProp}\n className={composeRenderProps(\n classNames?.segment,\n (className) => clsx(styles.segment, className),\n )}\n />\n )}\n </AriaDateInput>\n <span>Z</span>\n </div>\n {descriptionProp && !(isSmall || isInvalidProp) && !errorMessage && (\n <AriaText\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </AriaText>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n </>\n )}\n </AriaTimeField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,UAA+B,EAC7C,YACA,aAAa,iBACb,cAAc,kBACd,cAAc,UACd,YAAY,IACZ,YACA,OAAO,WACP,0BAA0B,MAC1B,OAAO,UACP,YACA,WAAW,eACX,YACA,aAAa,OACb,GAAG,QACiB;CACpB,MAAM,eAAe,oBAAoB;CACzC,MAAM,UAAU,SAAS;AAEzB,QACE,oBAACA;EACC,GAAI;EACJ,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,oBAAoB,OAAO,OAAO,UAAU,CAClD;EACY;EACF;EACc;EACb;EACZ,WAAW,kBAAkB,eAAe,OAAO;EACvC;EACA;EACZ,cAAY;EACZ,aAAW;aAGT,EAAE,+BAEF;GACG,CAAC,WAAW,aACX,oBAACC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IAChD,YAAYC;IACA;cAEX;KACK;GAEV,qBAAC;IACC,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;IACpD,iBAAe,cAAc;;KAE5B,CAAC,cAAc,SAAS,YACvB,oBAAC,kBACC,oBAAC,SAAO,GACH;KAET,oBAACC;MACC,GAAI;MACJ,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;iBAEC,gBACA,oBAAC;OACC,SAAS;OACT,WAAW,mBACT,YAAY,UACX,cAAc,KAAK,OAAO,SAAS,UAAU,CAC/C;QACD;OAEU;KAChB,oBAAC,oBAAK,MAAQ;;KACV;GACL,mBAAmB,EAAE,WAAW,kBAAkB,CAAC,gBAClD,oBAACC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACQ;GAEb,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;MACZ;GAES"}
1
+ {"version":3,"file":"index.js","names":["AriaTimeField","isDisabled","AriaDateInput","AriaText"],"sources":["../../../src/components/time-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Time from '@accelint/icons/time';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport {\n DateInput as AriaDateInput,\n DateSegment,\n FieldError,\n Text as AriaText,\n TimeField as AriaTimeField,\n type TimeValue,\n} from 'react-aria-components/TimeField';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport styles from './styles.module.css';\nimport type { TimeFieldProps } from './types';\n\n/**\n * TimeField - Form input for time values\n *\n * Provides configurable granularity, 12/24-hour format, and automatic accessibility.\n *\n * @param props - {@link TimeFieldProps}\n * @param props.classNames - Custom CSS class names for field elements.\n * @param props.description - Helper text displayed below the input.\n * @param props.errorMessage - Error message displayed when validation fails.\n * @param props.granularity - The granularity of the time value (hour, minute, second).\n * @param props.hourCycle - Whether to use 12 or 24 hour time format.\n * @param props.inputProps - Props passed to the underlying DateInput element.\n * @param props.label - Label text for the field.\n * @param props.shouldForceLeadingZeros - Whether to force leading zeros in time segments.\n * @param props.size - Size variant of the field.\n * @param props.isDisabled - Whether the field is disabled.\n * @param props.isInvalid - Whether the field is in an invalid state.\n * @param props.isRequired - Whether the field is required.\n * @param props.isReadOnly - Whether the field is read-only.\n * @returns The rendered TimeField component.\n *\n * @example\n * ```tsx\n * <TimeField label=\"Start time\" granularity=\"minute\" onChange={setTime} />\n * ```\n */\nexport function TimeField<T extends TimeValue>({\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n granularity = 'second',\n hourCycle = 24,\n inputProps,\n label: labelProp,\n shouldForceLeadingZeros = true,\n size = 'medium',\n isDisabled,\n isInvalid: isInvalidProp,\n isRequired,\n isReadOnly = false,\n ...rest\n}: TimeFieldProps<T>) {\n const errorMessage = errorMessageProp || null; // Protect against empty string\n const isSmall = size === 'small';\n\n return (\n <AriaTimeField<T>\n {...rest}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/time-field', styles.field, className),\n )}\n granularity={granularity}\n hourCycle={hourCycle}\n shouldForceLeadingZeros={shouldForceLeadingZeros}\n isDisabled={isDisabled}\n isInvalid={isInvalidProp || (errorMessage ? true : undefined)} // Leave uncontrolled if possible to fallback to validation state\n isRequired={isRequired}\n isReadOnly={isReadOnly}\n aria-label={labelProp}\n data-size={size}\n >\n {(\n { isDisabled }, // Rely on internal state, not props, since state could differ from props\n ) => (\n <>\n {!isSmall && labelProp && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n <div\n className={clsx(styles.control, classNames?.control)}\n data-readonly={isReadOnly || null}\n >\n {!isReadOnly && size === 'medium' && (\n <Icon>\n <Time />\n </Icon>\n )}\n <AriaDateInput\n {...inputProps}\n className={composeRenderProps(classNames?.input, (className) =>\n clsx(styles.input, className),\n )}\n >\n {(segmentProp) => (\n <DateSegment\n segment={segmentProp}\n className={composeRenderProps(\n classNames?.segment,\n (className) => clsx(styles.segment, className),\n )}\n />\n )}\n </AriaDateInput>\n <span>Z</span>\n </div>\n {descriptionProp && !(isSmall || isInvalidProp) && !errorMessage && (\n <AriaText\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </AriaText>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n </>\n )}\n </AriaTimeField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,UAA+B,EAC7C,YACA,aAAa,iBACb,cAAc,kBACd,cAAc,UACd,YAAY,IACZ,YACA,OAAO,WACP,0BAA0B,MAC1B,OAAO,UACP,YACA,WAAW,eACX,YACA,aAAa,OACb,GAAG,QACiB;CACpB,MAAM,eAAe,oBAAoB;CACzC,MAAM,UAAU,SAAS;AAEzB,QACE,oBAACA;EACC,GAAI;EACJ,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,oBAAoB,OAAO,OAAO,UAAU,CAClD;EACY;EACF;EACc;EACb;EACZ,WAAW,kBAAkB,eAAe,OAAO;EACvC;EACA;EACZ,cAAY;EACZ,aAAW;aAGT,EAAE,+BAEF;GACG,CAAC,WAAW,aACX,oBAAC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IAChD,YAAYC;IACA;cAEX;KACK;GAEV,qBAAC;IACC,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;IACpD,iBAAe,cAAc;;KAE5B,CAAC,cAAc,SAAS,YACvB,oBAAC,kBACC,oBAAC,SAAO,GACH;KAET,oBAACC;MACC,GAAI;MACJ,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;iBAEC,gBACA,oBAAC;OACC,SAAS;OACT,WAAW,mBACT,YAAY,UACX,cAAc,KAAK,OAAO,SAAS,UAAU,CAC/C;QACD;OAEU;KAChB,oBAAC,oBAAK,MAAQ;;KACV;GACL,mBAAmB,EAAE,WAAW,kBAAkB,CAAC,gBAClD,oBAACC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACQ;GAEb,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;MACZ;GAES"}
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { DateInputProps, DateSegmentProps, FieldErrorProps, LabelProps, TimeFieldProps as TimeFieldProps$1, TimeValue } from "react-aria-components";
13
+ import { DateInputProps, DateSegmentProps, FieldErrorProps, LabelProps, TimeFieldProps as TimeFieldProps$1, TimeValue } from "react-aria-components/TimeField";
14
14
 
15
15
  //#region src/components/time-field/types.d.ts
16
16
  /**
@@ -12,12 +12,12 @@
12
12
 
13
13
  import { TooltipTriggerProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react55 from "react";
16
- import { ContextValue } from "react-aria-components";
15
+ import * as react50 from "react";
16
+ import { ContextValue } from "react-aria-components/slots";
17
17
 
18
18
  //#region src/components/tooltip/context.d.ts
19
19
  /** Context for sharing props across TooltipTrigger components */
20
- declare const TooltipContext: react55.Context<ContextValue<TooltipTriggerProps, HTMLDivElement>>;
20
+ declare const TooltipContext: react50.Context<ContextValue<TooltipTriggerProps, HTMLDivElement>>;
21
21
  //#endregion
22
22
  export { TooltipContext };
23
23
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","names":[],"sources":["../../../src/components/tooltip/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { TooltipTriggerProps } from './types';\n\n/** Context for sharing props across TooltipTrigger components */\nexport const TooltipContext =\n createContext<ContextValue<TooltipTriggerProps, HTMLDivElement>>(null);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAa,iBACX,cAAiE,KAAK"}
1
+ {"version":3,"file":"context.js","names":[],"sources":["../../../src/components/tooltip/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components/slots';\nimport type { TooltipTriggerProps } from './types';\n\n/** Context for sharing props across TooltipTrigger components */\nexport const TooltipContext =\n createContext<ContextValue<TooltipTriggerProps, HTMLDivElement>>(null);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAa,iBACX,cAAiE,KAAK"}
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { TooltipProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime238 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime71 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/tooltip/index.d.ts
18
18
 
@@ -44,7 +44,7 @@ declare function Tooltip({
44
44
  offset,
45
45
  placement,
46
46
  ...props
47
- }: TooltipProps): react_jsx_runtime238.JSX.Element;
47
+ }: TooltipProps): react_jsx_runtime71.JSX.Element;
48
48
  //#endregion
49
49
  export { Tooltip };
50
50
  //# sourceMappingURL=index.d.ts.map
@@ -17,9 +17,10 @@ import { PortalProvider } from "../../providers/portal.js";
17
17
  import "client-only";
18
18
  import { useMemo } from "react";
19
19
  import { clsx } from "@accelint/design-foundation/lib/utils";
20
- import { Tooltip as Tooltip$1, composeRenderProps } from "react-aria-components";
20
+ import { composeRenderProps } from "react-aria-components/composeRenderProps";
21
21
  import { jsx } from "react/jsx-runtime";
22
- import { useIsSSR } from "@react-aria/ssr";
22
+ import { useIsSSR } from "react-aria/SSRProvider";
23
+ import { Tooltip as Tooltip$1 } from "react-aria-components/Tooltip";
23
24
  import styles from "./styles.module.css";
24
25
 
25
26
  //#region src/components/tooltip/index.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaTooltip","className"],"sources":["../../../src/components/tooltip/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useIsSSR } from '@react-aria/ssr';\nimport { useMemo } from 'react';\nimport {\n Tooltip as AriaTooltip,\n composeRenderProps,\n} from 'react-aria-components';\nimport { PortalProvider } from '@/providers/portal';\nimport styles from './styles.module.css';\nimport type { TooltipProps } from './types';\n\n/**\n * Tooltip - Contextual popup for additional information\n *\n * Displays on hover or focus with automatic positioning and accessibility support.\n *\n * @param props - {@link TooltipProps}\n * @param props.children - Tooltip content.\n * @param props.parentRef - Ref to the parent element for portal positioning.\n * @param props.className - CSS class for the tooltip.\n * @param props.offset - Distance from the trigger element.\n * @param props.placement - Position relative to the trigger.\n * @returns The rendered Tooltip component.\n *\n * @example\n * ```tsx\n * <TooltipTrigger>\n * <Button>Hover me</Button>\n * <Tooltip>Additional information</Tooltip>\n * </TooltipTrigger>\n * ```\n */\nexport function Tooltip({\n children,\n parentRef,\n className,\n offset = 5,\n placement = 'bottom',\n ...props\n}: TooltipProps) {\n const isSSR = useIsSSR();\n const overlayContainer = useMemo(() => {\n if (isSSR) {\n return null;\n }\n\n const div = document.createElement('div');\n\n div.setAttribute('class', 'absolute');\n\n return div;\n }, [isSSR]);\n\n return (\n <PortalProvider parentRef={parentRef} inject={overlayContainer}>\n <AriaTooltip\n {...props}\n className={composeRenderProps(className, (className) =>\n clsx(styles.tooltip, className),\n )}\n offset={offset}\n placement={placement}\n >\n {children}\n </AriaTooltip>\n </PortalProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,QAAQ,EACtB,UACA,WACA,WACA,SAAS,GACT,YAAY,UACZ,GAAG,SACY;CACf,MAAM,QAAQ,UAAU;AAaxB,QACE,oBAAC;EAA0B;EAAW,QAbf,cAAc;AACrC,OAAI,MACF,QAAO;GAGT,MAAM,MAAM,SAAS,cAAc,MAAM;AAEzC,OAAI,aAAa,SAAS,WAAW;AAErC,UAAO;KACN,CAAC,MAAM,CAAC;YAIP,oBAACA;GACC,GAAI;GACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,SAASC,YAAU,CAChC;GACO;GACG;GAEV;IACW;GACC"}
1
+ {"version":3,"file":"index.js","names":["AriaTooltip","className"],"sources":["../../../src/components/tooltip/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useIsSSR } from 'react-aria/SSRProvider';\nimport { useMemo } from 'react';\nimport { Tooltip as AriaTooltip } from 'react-aria-components/Tooltip';\nimport { PortalProvider } from '@/providers/portal';\nimport styles from './styles.module.css';\nimport type { TooltipProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * Tooltip - Contextual popup for additional information\n *\n * Displays on hover or focus with automatic positioning and accessibility support.\n *\n * @param props - {@link TooltipProps}\n * @param props.children - Tooltip content.\n * @param props.parentRef - Ref to the parent element for portal positioning.\n * @param props.className - CSS class for the tooltip.\n * @param props.offset - Distance from the trigger element.\n * @param props.placement - Position relative to the trigger.\n * @returns The rendered Tooltip component.\n *\n * @example\n * ```tsx\n * <TooltipTrigger>\n * <Button>Hover me</Button>\n * <Tooltip>Additional information</Tooltip>\n * </TooltipTrigger>\n * ```\n */\nexport function Tooltip({\n children,\n parentRef,\n className,\n offset = 5,\n placement = 'bottom',\n ...props\n}: TooltipProps) {\n const isSSR = useIsSSR();\n const overlayContainer = useMemo(() => {\n if (isSSR) {\n return null;\n }\n\n const div = document.createElement('div');\n\n div.setAttribute('class', 'absolute');\n\n return div;\n }, [isSSR]);\n\n return (\n <PortalProvider parentRef={parentRef} inject={overlayContainer}>\n <AriaTooltip\n {...props}\n className={composeRenderProps(className, (className) =>\n clsx(styles.tooltip, className),\n )}\n offset={offset}\n placement={placement}\n >\n {children}\n </AriaTooltip>\n </PortalProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAgB,QAAQ,EACtB,UACA,WACA,WACA,SAAS,GACT,YAAY,UACZ,GAAG,SACY;CACf,MAAM,QAAQ,UAAU;AAaxB,QACE,oBAAC;EAA0B;EAAW,QAbf,cAAc;AACrC,OAAI,MACF,QAAO;GAGT,MAAM,MAAM,SAAS,cAAc,MAAM;AAEzC,OAAI,aAAa,SAAS,WAAW;AAErC,UAAO;KACN,CAAC,MAAM,CAAC;YAIP,oBAACA;GACC,GAAI;GACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,SAASC,YAAU,CAChC;GACO;GACG;GAEV;IACW;GACC"}
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { TooltipTriggerProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime235 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime205 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/tooltip/trigger.d.ts
18
18
 
@@ -38,7 +38,7 @@ import * as react_jsx_runtime235 from "react/jsx-runtime";
38
38
  declare function TooltipTrigger({
39
39
  ref,
40
40
  ...props
41
- }: TooltipTriggerProps): react_jsx_runtime235.JSX.Element;
41
+ }: TooltipTriggerProps): react_jsx_runtime205.JSX.Element;
42
42
  //#endregion
43
43
  export { TooltipTrigger };
44
44
  //# sourceMappingURL=trigger.d.ts.map
@@ -16,10 +16,13 @@
16
16
  import { TooltipContext } from "./context.js";
17
17
  import "client-only";
18
18
  import { Children, cloneElement, version } from "react";
19
- import { TooltipTrigger as TooltipTrigger$1, useContextProps } from "react-aria-components";
20
19
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
21
- import { useFocusable } from "@react-aria/interactions";
22
- import { mergeProps, mergeRefs, useObjectRef } from "@react-aria/utils";
20
+ import { useContextProps } from "react-aria-components/slots";
21
+ import { TooltipTrigger as TooltipTrigger$1 } from "react-aria-components/Tooltip";
22
+ import { useFocusable } from "react-aria/useFocusable";
23
+ import { mergeProps } from "react-aria/mergeProps";
24
+ import { useObjectRef } from "react-aria/useObjectRef";
25
+ import { mergeRefs } from "react-aria/mergeRefs";
23
26
 
24
27
  //#region src/components/tooltip/trigger.tsx
25
28
  function TooltipFocusable({ children, ref, ...props }) {
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.js","names":["AriaTooltipTrigger"],"sources":["../../../src/components/tooltip/trigger.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport {\n type FocusableProviderProps,\n useFocusable,\n} from '@react-aria/interactions';\nimport { mergeProps, mergeRefs, useObjectRef } from '@react-aria/utils';\nimport {\n Children,\n cloneElement,\n type DOMAttributes,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n version,\n} from 'react';\nimport {\n TooltipTrigger as AriaTooltipTrigger,\n useContextProps,\n} from 'react-aria-components';\nimport { TooltipContext } from './context';\nimport type { FocusableElement } from '@react-types/shared';\nimport type { TooltipTriggerProps } from './types';\n\nfunction TooltipFocusable({\n children,\n ref,\n ...props\n}: FocusableProviderProps & RefAttributes<FocusableElement>) {\n ref = useObjectRef(ref);\n\n const { focusableProps } = useFocusable(props, ref);\n const [trigger, tooltip] = Children.toArray(children) as [\n ReactElement<DOMAttributes<FocusableElement>, string>,\n ReactNode,\n ];\n\n const childRef =\n //@ts-expect-error\n Number.parseInt(version, 10) < 19 ? trigger.ref : trigger.props.ref;\n\n return (\n <>\n {cloneElement(trigger, {\n ...mergeProps(focusableProps, trigger.props),\n //@ts-expect-error\n ref: mergeRefs(childRef, ref),\n })}\n {tooltip}\n </>\n );\n}\n\n/**\n * TooltipTrigger - Wrapper that manages tooltip display on hover or focus\n *\n * @example\n * ```tsx\n * <TooltipTrigger delay={500}>\n * <Button>\n * <Icon><Info /></Icon>\n * </Button>\n * <Tooltip>Additional information about this action</Tooltip>\n * </TooltipTrigger>\n * ```\n *\n * @param props - {@link TooltipTriggerProps}\n * @param props.ref - Ref to the focusable trigger element.\n * @param props.children - Trigger element and Tooltip content.\n * @param props.delay - Delay in milliseconds before showing the tooltip.\n * @returns The rendered TooltipTrigger component.\n */\nexport function TooltipTrigger({ ref, ...props }: TooltipTriggerProps) {\n [props, ref] = useContextProps(props, ref ?? null, TooltipContext);\n\n const { children, delay = 250, ...rest } = props;\n\n return (\n <AriaTooltipTrigger {...rest} delay={delay}>\n <TooltipFocusable ref={ref}>{children}</TooltipFocusable>\n </AriaTooltipTrigger>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,iBAAiB,EACxB,UACA,KACA,GAAG,SACwD;AAC3D,OAAM,aAAa,IAAI;CAEvB,MAAM,EAAE,mBAAmB,aAAa,OAAO,IAAI;CACnD,MAAM,CAAC,SAAS,WAAW,SAAS,QAAQ,SAAS;CAKrD,MAAM,WAEJ,OAAO,SAAS,SAAS,GAAG,GAAG,KAAK,QAAQ,MAAM,QAAQ,MAAM;AAElE,QACE,8CACG,aAAa,SAAS;EACrB,GAAG,WAAW,gBAAgB,QAAQ,MAAM;EAE5C,KAAK,UAAU,UAAU,IAAI;EAC9B,CAAC,EACD,WACA;;;;;;;;;;;;;;;;;;;;;AAuBP,SAAgB,eAAe,EAAE,KAAK,GAAG,SAA8B;AACrE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,eAAe;CAElE,MAAM,EAAE,UAAU,QAAQ,KAAK,GAAG,SAAS;AAE3C,QACE,oBAACA;EAAmB,GAAI;EAAa;YACnC,oBAAC;GAAsB;GAAM;IAA4B;GACtC"}
1
+ {"version":3,"file":"trigger.js","names":["AriaTooltipTrigger"],"sources":["../../../src/components/tooltip/trigger.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { useFocusable } from 'react-aria/useFocusable';\nimport { mergeProps } from 'react-aria/mergeProps';\nimport { useObjectRef } from 'react-aria/useObjectRef';\nimport { mergeRefs } from 'react-aria/mergeRefs';\nimport {\n Children,\n cloneElement,\n type DOMAttributes,\n type ReactElement,\n type ReactNode,\n version,\n} from 'react';\nimport { TooltipTrigger as AriaTooltipTrigger } from 'react-aria-components/Tooltip';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { TooltipContext } from './context';\nimport type { FocusableElement } from '@react-types/shared';\nimport type { TooltipFocusableProps, TooltipTriggerProps } from './types';\n\nfunction TooltipFocusable({ children, ref, ...props }: TooltipFocusableProps) {\n ref = useObjectRef(ref);\n\n const { focusableProps } = useFocusable(props, ref);\n const [trigger, tooltip] = Children.toArray(children) as [\n ReactElement<DOMAttributes<FocusableElement>, string>,\n ReactNode,\n ];\n\n const childRef =\n //@ts-expect-error\n Number.parseInt(version, 10) < 19 ? trigger.ref : trigger.props.ref;\n\n return (\n <>\n {cloneElement(trigger, {\n ...mergeProps(focusableProps, trigger.props),\n //@ts-expect-error\n ref: mergeRefs(childRef, ref),\n })}\n {tooltip}\n </>\n );\n}\n\n/**\n * TooltipTrigger - Wrapper that manages tooltip display on hover or focus\n *\n * @example\n * ```tsx\n * <TooltipTrigger delay={500}>\n * <Button>\n * <Icon><Info /></Icon>\n * </Button>\n * <Tooltip>Additional information about this action</Tooltip>\n * </TooltipTrigger>\n * ```\n *\n * @param props - {@link TooltipTriggerProps}\n * @param props.ref - Ref to the focusable trigger element.\n * @param props.children - Trigger element and Tooltip content.\n * @param props.delay - Delay in milliseconds before showing the tooltip.\n * @returns The rendered TooltipTrigger component.\n */\nexport function TooltipTrigger({ ref, ...props }: TooltipTriggerProps) {\n [props, ref] = useContextProps(props, ref ?? null, TooltipContext);\n\n const { children, delay = 250, ...rest } = props;\n\n return (\n <AriaTooltipTrigger {...rest} delay={delay}>\n <TooltipFocusable ref={ref}>{children}</TooltipFocusable>\n </AriaTooltipTrigger>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAS,iBAAiB,EAAE,UAAU,KAAK,GAAG,SAAgC;AAC5E,OAAM,aAAa,IAAI;CAEvB,MAAM,EAAE,mBAAmB,aAAa,OAAO,IAAI;CACnD,MAAM,CAAC,SAAS,WAAW,SAAS,QAAQ,SAAS;CAKrD,MAAM,WAEJ,OAAO,SAAS,SAAS,GAAG,GAAG,KAAK,QAAQ,MAAM,QAAQ,MAAM;AAElE,QACE,8CACG,aAAa,SAAS;EACrB,GAAG,WAAW,gBAAgB,QAAQ,MAAM;EAE5C,KAAK,UAAU,UAAU,IAAI;EAC9B,CAAC,EACD,WACA;;;;;;;;;;;;;;;;;;;;;AAuBP,SAAgB,eAAe,EAAE,KAAK,GAAG,SAA8B;AACrE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,eAAe;CAElE,MAAM,EAAE,UAAU,QAAQ,KAAK,GAAG,SAAS;AAE3C,QACE,oBAACA;EAAmB,GAAI;EAAa;YACnC,oBAAC;GAAsB;GAAM;IAA4B;GACtC"}
@@ -10,8 +10,10 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { ComponentPropsWithRef } from "react";
14
- import { TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from "react-aria-components";
13
+ import { ComponentPropsWithRef, ReactNode, RefAttributes } from "react";
14
+ import { TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from "react-aria-components/Tooltip";
15
+ import { FocusableElement } from "@react-types/shared";
16
+ import { FocusableProps } from "react-aria/Focusable";
15
17
 
16
18
  //#region src/components/tooltip/types.d.ts
17
19
  /**
@@ -25,6 +27,9 @@ type TooltipProps = TooltipProps$1 & {
25
27
  /** Ref to the parent element for portal positioning. */
26
28
  parentRef?: React.RefObject<HTMLElement | null>;
27
29
  };
30
+ type TooltipFocusableProps = Omit<FocusableProps, 'children'> & RefAttributes<FocusableElement> & {
31
+ children?: ReactNode;
32
+ };
28
33
  //#endregion
29
- export { TooltipProps, TooltipTriggerProps };
34
+ export { TooltipFocusableProps, TooltipProps, TooltipTriggerProps };
30
35
  //# sourceMappingURL=types.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { TreeContextValue, TreeItemContextValue } from "./types.js";
14
14
  import "client-only";
15
- import * as react45 from "react";
15
+ import * as react53 from "react";
16
16
 
17
17
  //#region src/components/tree/context.d.ts
18
18
  /** Context for sharing state across Tree components */
19
- declare const TreeContext: react45.Context<TreeContextValue>;
19
+ declare const TreeContext: react53.Context<TreeContextValue>;
20
20
  /** Context for sharing state within a TreeItem */
21
- declare const TreeItemContext: react45.Context<TreeItemContextValue>;
21
+ declare const TreeItemContext: react53.Context<TreeItemContextValue>;
22
22
  //#endregion
23
23
  export { TreeContext, TreeItemContext };
24
24
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { TreeProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime192 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime211 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/tree/index.d.ts
18
18
 
@@ -21,6 +21,8 @@ import * as react_jsx_runtime192 from "react/jsx-runtime";
21
21
  *
22
22
  * Supports static or dynamic collections with keyboard navigation and accessibility.
23
23
  *
24
+ * @template T - The type of custom values stored in tree nodes (accessed via `node.values`).
25
+ *
24
26
  * @param props - {@link TreeProps}
25
27
  * @param props.children - Tree items or render function for dynamic collections.
26
28
  * @param props.className - CSS class for the tree container.
@@ -75,7 +77,7 @@ declare function Tree<T>({
75
77
  onVisibilityChange,
76
78
  onSelectionChange,
77
79
  ...rest
78
- }: TreeProps<T>): react_jsx_runtime192.JSX.Element;
80
+ }: TreeProps<T>): react_jsx_runtime211.JSX.Element;
79
81
  //#endregion
80
82
  export { Tree };
81
83
  //# sourceMappingURL=index.d.ts.map
@@ -16,10 +16,13 @@
16
16
  import { TreeContext } from "./context.js";
17
17
  import { Cache } from "../../hooks/use-tree/actions/cache.js";
18
18
  import "client-only";
19
- import { useMemo } from "react";
19
+ import { useCallback, useMemo } from "react";
20
20
  import { clsx } from "@accelint/design-foundation/lib/utils";
21
- import { DropIndicator, Tree as Tree$1, composeRenderProps, useDragAndDrop } from "react-aria-components";
21
+ import { composeRenderProps } from "react-aria-components/composeRenderProps";
22
22
  import { jsx } from "react/jsx-runtime";
23
+ import { noop } from "@accelint/core";
24
+ import { Tree as Tree$1 } from "react-aria-components/Tree";
25
+ import { DropIndicator, useDragAndDrop } from "react-aria-components/useDragAndDrop";
23
26
  import styles from "./styles.module.css";
24
27
 
25
28
  //#region src/components/tree/index.tsx
@@ -49,6 +52,8 @@ function collectNodeKeys(nodes, acc) {
49
52
  *
50
53
  * Supports static or dynamic collections with keyboard navigation and accessibility.
51
54
  *
55
+ * @template T - The type of custom values stored in tree nodes (accessed via `node.values`).
56
+ *
52
57
  * @param props - {@link TreeProps}
53
58
  * @param props.children - Tree items or render function for dynamic collections.
54
59
  * @param props.className - CSS class for the tree container.
@@ -125,9 +130,9 @@ function Tree({ children, className, disabledKeys: disabledKeysProp, dragAndDrop
125
130
  selectedKeysProp,
126
131
  visibleKeysProp
127
132
  ]);
128
- const handleSelectionChange = selectedKeys ? (selection) => {
133
+ const handleSelectionChange = useCallback((selection) => {
129
134
  if (selection !== "all") onSelectionChange?.(selection);
130
- } : void 0;
135
+ }, [onSelectionChange]);
131
136
  return /* @__PURE__ */ jsx(TreeContext.Provider, {
132
137
  value: {
133
138
  disabledKeys,
@@ -140,7 +145,7 @@ function Tree({ children, className, disabledKeys: disabledKeysProp, dragAndDrop
140
145
  visibilityComputedKeys,
141
146
  indeterminateKeys,
142
147
  isStatic: typeof children !== "function",
143
- onVisibilityChange: onVisibilityChange ?? (() => void 0)
148
+ onVisibilityChange: onVisibilityChange ?? noop
144
149
  },
145
150
  children: /* @__PURE__ */ jsx(Tree$1, {
146
151
  ...rest,
@@ -150,7 +155,7 @@ function Tree({ children, className, disabledKeys: disabledKeysProp, dragAndDrop
150
155
  expandedKeys,
151
156
  items,
152
157
  selectedKeys,
153
- onSelectionChange: handleSelectionChange,
158
+ onSelectionChange: selectedKeys ? handleSelectionChange : void 0,
154
159
  selectionMode,
155
160
  children
156
161
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaTree","className"],"sources":["../../../src/components/tree/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport { Cache, type CacheTreeNode } from '@/hooks/use-tree/actions/cache';\nimport type { Key, Selection } from '@react-types/shared';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useMemo } from 'react';\nimport {\n Tree as AriaTree,\n composeRenderProps,\n DropIndicator,\n type DropTarget,\n useDragAndDrop,\n} from 'react-aria-components';\nimport { TreeContext } from './context';\nimport styles from './styles.module.css';\nimport type { TreeProps } from './types';\n\nconst defaultRenderDropIndicator = (target: DropTarget) => {\n const isBetweenItems =\n target.type === 'item' &&\n (target.dropPosition === 'before' || target.dropPosition === 'after');\n return (\n <DropIndicator\n target={target}\n className={\n isBetweenItems ? styles.dropIndicatorBetween : styles.dropIndicator\n }\n />\n );\n};\n\n/**\n * Helper to collect node state keys from cache tree nodes.\n * Reduces cognitive complexity by extracting the iteration logic.\n */\nfunction collectNodeKeys<T>(\n nodes: MapIterator<CacheTreeNode<T>>,\n acc: {\n disabledKeys?: Set<Key>;\n expandedKeys?: Set<Key>;\n selectedKeys?: Set<Key>;\n visibleKeys?: Set<Key>;\n visibilityComputedKeys: Set<Key>;\n indeterminateKeys: Set<Key>;\n },\n) {\n for (const node of nodes) {\n if (node.isDisabled) {\n acc.disabledKeys?.add(node.key);\n }\n if (node.isExpanded) {\n acc.expandedKeys?.add(node.key);\n }\n if (node.isSelected) {\n acc.selectedKeys?.add(node.key);\n }\n if (node.isVisible) {\n acc.visibleKeys?.add(node.key);\n }\n if (node.isVisibleComputed) {\n acc.visibilityComputedKeys.add(node.key);\n }\n if (node.isIndeterminate) {\n acc.indeterminateKeys.add(node.key);\n }\n }\n return acc;\n}\n\n/**\n * Tree - Hierarchical tree view with selection, visibility, and drag-and-drop\n *\n * Supports static or dynamic collections with keyboard navigation and accessibility.\n *\n * @param props - {@link TreeProps}\n * @param props.children - Tree items or render function for dynamic collections.\n * @param props.className - CSS class for the tree container.\n * @param props.disabledKeys - Set of disabled item keys.\n * @param props.dragAndDropConfig - Configuration for drag and drop behavior.\n * @param props.expandedKeys - Set of expanded item keys.\n * @param props.items - Data source for dynamic collections.\n * @param props.selectedKeys - Set of selected item keys.\n * @param props.showRuleLines - Whether to show connecting lines between items.\n * @param props.showVisibility - Whether to show visibility toggle buttons.\n * @param props.selectionMode - Selection mode for the tree.\n * @param props.variant - Visual density variant.\n * @param props.visibleKeys - Set of visible item keys.\n * @param props.onVisibilityChange - Callback when item visibility changes.\n * @param props.onSelectionChange - Callback when selection changes.\n * @returns The rendered Tree component.\n *\n * @example\n * // Dynamic collection\n * ```tsx\n * <Tree items={items} expandedKeys={expandedKeys}>\n * {(node) => <TreeItem key={node.key}>{node.label}</TreeItem>}\n * </Tree>\n * ```\n *\n * @example\n * ```tsx\n * // Static collection\n * <Tree>\n * <TreeItem id=\"one\" textValue=\"one\">\n * <TreeItemContent>One</TreeItemContent>\n * <TreeItem id=\"two\" textValue=\"two\">\n * <TreeItemContent>Two</TreeItemContent>\n * </TreeItem>\n * </TreeItem>\n * </Tree>\n * ```\n */\nexport function Tree<T>({\n children,\n className,\n disabledKeys: disabledKeysProp,\n dragAndDropConfig,\n expandedKeys: expandedKeysProp,\n items,\n selectedKeys: selectedKeysProp,\n showRuleLines = true,\n showVisibility = true,\n selectionMode = 'multiple',\n variant = 'cozy',\n visibleKeys: visibleKeysProp,\n onVisibilityChange,\n onSelectionChange,\n ...rest\n}: TreeProps<T>) {\n /**\n * A static collection is hard-coded. Dynamic is data-driven from an external source.\n * https://react-spectrum.adobe.com/react-aria/Tree.html#content\n *\n * Controlled state should only be used on a static tree.\n */\n if (\n items &&\n (disabledKeysProp ||\n expandedKeysProp ||\n selectedKeysProp ||\n visibleKeysProp)\n ) {\n throw new Error(\n 'Tree should only be controlled with state from either `items` or keys props, not both',\n );\n }\n\n /**\n * A static tree won't support the node iterator pattern.\n */\n if (!!items !== (typeof children === 'function')) {\n throw new Error(\n 'Tree `items` and node iterator `children` must be used together',\n );\n }\n\n const { dragAndDropHooks } = useDragAndDrop({\n renderDropIndicator: defaultRenderDropIndicator,\n getAllowedDropOperations: () => ['move'],\n getDropOperation: () => 'move',\n ...dragAndDropConfig,\n });\n const cache = useMemo(() => (items ? new Cache([...items]) : null), [items]);\n const nodes = useMemo(() => cache?.getAllNodes(), [cache]);\n const {\n disabledKeys,\n expandedKeys,\n selectedKeys,\n visibleKeys,\n visibilityComputedKeys,\n indeterminateKeys,\n } = useMemo(() => {\n const acc = {\n disabledKeys: nodes ? new Set<Key>() : disabledKeysProp,\n expandedKeys: nodes ? new Set<Key>() : expandedKeysProp,\n selectedKeys: nodes ? new Set<Key>() : selectedKeysProp,\n visibleKeys: nodes ? new Set<Key>() : visibleKeysProp,\n visibilityComputedKeys: new Set<Key>(),\n indeterminateKeys: new Set<Key>(),\n };\n\n if (!nodes) {\n return acc;\n }\n\n return collectNodeKeys<T>(nodes, acc);\n }, [\n nodes,\n disabledKeysProp,\n expandedKeysProp,\n selectedKeysProp,\n visibleKeysProp,\n ]);\n\n const handleSelectionChange = selectedKeys\n ? (selection: Selection) => {\n if (selection !== 'all') {\n onSelectionChange?.(selection);\n }\n }\n : undefined;\n\n return (\n <TreeContext.Provider\n value={{\n disabledKeys,\n expandedKeys,\n selectedKeys,\n showRuleLines,\n showVisibility,\n variant,\n visibleKeys,\n visibilityComputedKeys,\n indeterminateKeys,\n isStatic: typeof children !== 'function',\n onVisibilityChange: onVisibilityChange ?? (() => undefined), // TODO: improve\n }}\n >\n <AriaTree\n {...rest}\n className={composeRenderProps(className, (className) =>\n clsx(styles.tree, className),\n )}\n disabledKeys={disabledKeys}\n dragAndDropHooks={dragAndDropHooks}\n expandedKeys={expandedKeys}\n items={items}\n selectedKeys={selectedKeys}\n onSelectionChange={handleSelectionChange}\n selectionMode={selectionMode}\n >\n {children}\n </AriaTree>\n </TreeContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAM,8BAA8B,WAAuB;AAIzD,QACE,oBAAC;EACS;EACR,WALF,OAAO,SAAS,WACf,OAAO,iBAAiB,YAAY,OAAO,iBAAiB,WAKxC,OAAO,uBAAuB,OAAO;GAExD;;;;;;AAQN,SAAS,gBACP,OACA,KAQA;AACA,MAAK,MAAM,QAAQ,OAAO;AACxB,MAAI,KAAK,WACP,KAAI,cAAc,IAAI,KAAK,IAAI;AAEjC,MAAI,KAAK,WACP,KAAI,cAAc,IAAI,KAAK,IAAI;AAEjC,MAAI,KAAK,WACP,KAAI,cAAc,IAAI,KAAK,IAAI;AAEjC,MAAI,KAAK,UACP,KAAI,aAAa,IAAI,KAAK,IAAI;AAEhC,MAAI,KAAK,kBACP,KAAI,uBAAuB,IAAI,KAAK,IAAI;AAE1C,MAAI,KAAK,gBACP,KAAI,kBAAkB,IAAI,KAAK,IAAI;;AAGvC,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CT,SAAgB,KAAQ,EACtB,UACA,WACA,cAAc,kBACd,mBACA,cAAc,kBACd,OACA,cAAc,kBACd,gBAAgB,MAChB,iBAAiB,MACjB,gBAAgB,YAChB,UAAU,QACV,aAAa,iBACb,oBACA,mBACA,GAAG,QACY;;;;;;;AAOf,KACE,UACC,oBACC,oBACA,oBACA,iBAEF,OAAM,IAAI,MACR,wFACD;;;;AAMH,KAAI,CAAC,CAAC,WAAW,OAAO,aAAa,YACnC,OAAM,IAAI,MACR,kEACD;CAGH,MAAM,EAAE,qBAAqB,eAAe;EAC1C,qBAAqB;EACrB,gCAAgC,CAAC,OAAO;EACxC,wBAAwB;EACxB,GAAG;EACJ,CAAC;CACF,MAAM,QAAQ,cAAe,QAAQ,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,MAAO,CAAC,MAAM,CAAC;CAC5E,MAAM,QAAQ,cAAc,OAAO,aAAa,EAAE,CAAC,MAAM,CAAC;CAC1D,MAAM,EACJ,cACA,cACA,cACA,aACA,wBACA,sBACE,cAAc;EAChB,MAAM,MAAM;GACV,cAAc,wBAAQ,IAAI,KAAU,GAAG;GACvC,cAAc,wBAAQ,IAAI,KAAU,GAAG;GACvC,cAAc,wBAAQ,IAAI,KAAU,GAAG;GACvC,aAAa,wBAAQ,IAAI,KAAU,GAAG;GACtC,wCAAwB,IAAI,KAAU;GACtC,mCAAmB,IAAI,KAAU;GAClC;AAED,MAAI,CAAC,MACH,QAAO;AAGT,SAAO,gBAAmB,OAAO,IAAI;IACpC;EACD;EACA;EACA;EACA;EACA;EACD,CAAC;CAEF,MAAM,wBAAwB,gBACzB,cAAyB;AACxB,MAAI,cAAc,MAChB,qBAAoB,UAAU;KAGlC;AAEJ,QACE,oBAAC,YAAY;EACX,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,UAAU,OAAO,aAAa;GAC9B,oBAAoB,6BAA6B;GAClD;YAED,oBAACA;GACC,GAAI;GACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,MAAMC,YAAU,CAC7B;GACa;GACI;GACJ;GACP;GACO;GACd,mBAAmB;GACJ;GAEd;IACQ;GACU"}
1
+ {"version":3,"file":"index.js","names":["AriaTree","className"],"sources":["../../../src/components/tree/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport { Cache, type CacheTreeNode } from '@/hooks/use-tree/actions/cache';\nimport type { Key, Selection } from '@react-types/shared';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useCallback, useMemo } from 'react';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { Tree as AriaTree, type DropTarget } from 'react-aria-components/Tree';\nimport {\n DropIndicator,\n useDragAndDrop,\n} from 'react-aria-components/useDragAndDrop';\nimport { TreeContext } from './context';\nimport styles from './styles.module.css';\nimport type { TreeProps } from './types';\nimport { noop } from '@accelint/core';\n\nconst defaultRenderDropIndicator = (target: DropTarget) => {\n const isBetweenItems =\n target.type === 'item' &&\n (target.dropPosition === 'before' || target.dropPosition === 'after');\n return (\n <DropIndicator\n target={target}\n className={\n isBetweenItems ? styles.dropIndicatorBetween : styles.dropIndicator\n }\n />\n );\n};\n\n/**\n * Helper to collect node state keys from cache tree nodes.\n * Reduces cognitive complexity by extracting the iteration logic.\n */\nfunction collectNodeKeys<T>(\n nodes: MapIterator<CacheTreeNode<T>>,\n acc: {\n disabledKeys?: Set<Key>;\n expandedKeys?: Set<Key>;\n selectedKeys?: Set<Key>;\n visibleKeys?: Set<Key>;\n visibilityComputedKeys: Set<Key>;\n indeterminateKeys: Set<Key>;\n },\n) {\n for (const node of nodes) {\n if (node.isDisabled) {\n acc.disabledKeys?.add(node.key);\n }\n if (node.isExpanded) {\n acc.expandedKeys?.add(node.key);\n }\n if (node.isSelected) {\n acc.selectedKeys?.add(node.key);\n }\n if (node.isVisible) {\n acc.visibleKeys?.add(node.key);\n }\n if (node.isVisibleComputed) {\n acc.visibilityComputedKeys.add(node.key);\n }\n if (node.isIndeterminate) {\n acc.indeterminateKeys.add(node.key);\n }\n }\n return acc;\n}\n\n/**\n * Tree - Hierarchical tree view with selection, visibility, and drag-and-drop\n *\n * Supports static or dynamic collections with keyboard navigation and accessibility.\n *\n * @template T - The type of custom values stored in tree nodes (accessed via `node.values`).\n *\n * @param props - {@link TreeProps}\n * @param props.children - Tree items or render function for dynamic collections.\n * @param props.className - CSS class for the tree container.\n * @param props.disabledKeys - Set of disabled item keys.\n * @param props.dragAndDropConfig - Configuration for drag and drop behavior.\n * @param props.expandedKeys - Set of expanded item keys.\n * @param props.items - Data source for dynamic collections.\n * @param props.selectedKeys - Set of selected item keys.\n * @param props.showRuleLines - Whether to show connecting lines between items.\n * @param props.showVisibility - Whether to show visibility toggle buttons.\n * @param props.selectionMode - Selection mode for the tree.\n * @param props.variant - Visual density variant.\n * @param props.visibleKeys - Set of visible item keys.\n * @param props.onVisibilityChange - Callback when item visibility changes.\n * @param props.onSelectionChange - Callback when selection changes.\n * @returns The rendered Tree component.\n *\n * @example\n * // Dynamic collection\n * ```tsx\n * <Tree items={items} expandedKeys={expandedKeys}>\n * {(node) => <TreeItem key={node.key}>{node.label}</TreeItem>}\n * </Tree>\n * ```\n *\n * @example\n * ```tsx\n * // Static collection\n * <Tree>\n * <TreeItem id=\"one\" textValue=\"one\">\n * <TreeItemContent>One</TreeItemContent>\n * <TreeItem id=\"two\" textValue=\"two\">\n * <TreeItemContent>Two</TreeItemContent>\n * </TreeItem>\n * </TreeItem>\n * </Tree>\n * ```\n */\nexport function Tree<T>({\n children,\n className,\n disabledKeys: disabledKeysProp,\n dragAndDropConfig,\n expandedKeys: expandedKeysProp,\n items,\n selectedKeys: selectedKeysProp,\n showRuleLines = true,\n showVisibility = true,\n selectionMode = 'multiple',\n variant = 'cozy',\n visibleKeys: visibleKeysProp,\n onVisibilityChange,\n onSelectionChange,\n ...rest\n}: TreeProps<T>) {\n /**\n * A static collection is hard-coded. Dynamic is data-driven from an external source.\n * https://react-spectrum.adobe.com/react-aria/Tree.html#content\n *\n * Controlled state should only be used on a static tree.\n */\n if (\n items &&\n (disabledKeysProp ||\n expandedKeysProp ||\n selectedKeysProp ||\n visibleKeysProp)\n ) {\n throw new Error(\n 'Tree should only be controlled with state from either `items` or keys props, not both',\n );\n }\n\n /**\n * A static tree won't support the node iterator pattern.\n */\n if (!!items !== (typeof children === 'function')) {\n throw new Error(\n 'Tree `items` and node iterator `children` must be used together',\n );\n }\n\n const { dragAndDropHooks } = useDragAndDrop({\n renderDropIndicator: defaultRenderDropIndicator,\n getAllowedDropOperations: () => ['move'],\n getDropOperation: () => 'move',\n ...dragAndDropConfig,\n });\n const cache = useMemo(() => (items ? new Cache([...items]) : null), [items]);\n const nodes = useMemo(() => cache?.getAllNodes(), [cache]);\n const {\n disabledKeys,\n expandedKeys,\n selectedKeys,\n visibleKeys,\n visibilityComputedKeys,\n indeterminateKeys,\n } = useMemo(() => {\n const acc = {\n disabledKeys: nodes ? new Set<Key>() : disabledKeysProp,\n expandedKeys: nodes ? new Set<Key>() : expandedKeysProp,\n selectedKeys: nodes ? new Set<Key>() : selectedKeysProp,\n visibleKeys: nodes ? new Set<Key>() : visibleKeysProp,\n visibilityComputedKeys: new Set<Key>(),\n indeterminateKeys: new Set<Key>(),\n };\n\n if (!nodes) {\n return acc;\n }\n\n return collectNodeKeys<T>(nodes, acc);\n }, [\n nodes,\n disabledKeysProp,\n expandedKeysProp,\n selectedKeysProp,\n visibleKeysProp,\n ]);\n\n const handleSelectionChange = useCallback(\n (selection: Selection) => {\n if (selection !== 'all') {\n onSelectionChange?.(selection);\n }\n },\n [onSelectionChange],\n );\n\n return (\n <TreeContext.Provider\n value={{\n disabledKeys,\n expandedKeys,\n selectedKeys,\n showRuleLines,\n showVisibility,\n variant,\n visibleKeys,\n visibilityComputedKeys,\n indeterminateKeys,\n isStatic: typeof children !== 'function',\n onVisibilityChange: onVisibilityChange ?? noop,\n }}\n >\n <AriaTree\n {...rest}\n className={composeRenderProps(className, (className) =>\n clsx(styles.tree, className),\n )}\n disabledKeys={disabledKeys}\n dragAndDropHooks={dragAndDropHooks}\n expandedKeys={expandedKeys}\n items={items}\n selectedKeys={selectedKeys}\n onSelectionChange={selectedKeys ? handleSelectionChange : undefined}\n selectionMode={selectionMode}\n >\n {children}\n </AriaTree>\n </TreeContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAM,8BAA8B,WAAuB;AAIzD,QACE,oBAAC;EACS;EACR,WALF,OAAO,SAAS,WACf,OAAO,iBAAiB,YAAY,OAAO,iBAAiB,WAKxC,OAAO,uBAAuB,OAAO;GAExD;;;;;;AAQN,SAAS,gBACP,OACA,KAQA;AACA,MAAK,MAAM,QAAQ,OAAO;AACxB,MAAI,KAAK,WACP,KAAI,cAAc,IAAI,KAAK,IAAI;AAEjC,MAAI,KAAK,WACP,KAAI,cAAc,IAAI,KAAK,IAAI;AAEjC,MAAI,KAAK,WACP,KAAI,cAAc,IAAI,KAAK,IAAI;AAEjC,MAAI,KAAK,UACP,KAAI,aAAa,IAAI,KAAK,IAAI;AAEhC,MAAI,KAAK,kBACP,KAAI,uBAAuB,IAAI,KAAK,IAAI;AAE1C,MAAI,KAAK,gBACP,KAAI,kBAAkB,IAAI,KAAK,IAAI;;AAGvC,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDT,SAAgB,KAAQ,EACtB,UACA,WACA,cAAc,kBACd,mBACA,cAAc,kBACd,OACA,cAAc,kBACd,gBAAgB,MAChB,iBAAiB,MACjB,gBAAgB,YAChB,UAAU,QACV,aAAa,iBACb,oBACA,mBACA,GAAG,QACY;;;;;;;AAOf,KACE,UACC,oBACC,oBACA,oBACA,iBAEF,OAAM,IAAI,MACR,wFACD;;;;AAMH,KAAI,CAAC,CAAC,WAAW,OAAO,aAAa,YACnC,OAAM,IAAI,MACR,kEACD;CAGH,MAAM,EAAE,qBAAqB,eAAe;EAC1C,qBAAqB;EACrB,gCAAgC,CAAC,OAAO;EACxC,wBAAwB;EACxB,GAAG;EACJ,CAAC;CACF,MAAM,QAAQ,cAAe,QAAQ,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,MAAO,CAAC,MAAM,CAAC;CAC5E,MAAM,QAAQ,cAAc,OAAO,aAAa,EAAE,CAAC,MAAM,CAAC;CAC1D,MAAM,EACJ,cACA,cACA,cACA,aACA,wBACA,sBACE,cAAc;EAChB,MAAM,MAAM;GACV,cAAc,wBAAQ,IAAI,KAAU,GAAG;GACvC,cAAc,wBAAQ,IAAI,KAAU,GAAG;GACvC,cAAc,wBAAQ,IAAI,KAAU,GAAG;GACvC,aAAa,wBAAQ,IAAI,KAAU,GAAG;GACtC,wCAAwB,IAAI,KAAU;GACtC,mCAAmB,IAAI,KAAU;GAClC;AAED,MAAI,CAAC,MACH,QAAO;AAGT,SAAO,gBAAmB,OAAO,IAAI;IACpC;EACD;EACA;EACA;EACA;EACA;EACD,CAAC;CAEF,MAAM,wBAAwB,aAC3B,cAAyB;AACxB,MAAI,cAAc,MAChB,qBAAoB,UAAU;IAGlC,CAAC,kBAAkB,CACpB;AAED,QACE,oBAAC,YAAY;EACX,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,UAAU,OAAO,aAAa;GAC9B,oBAAoB,sBAAsB;GAC3C;YAED,oBAACA;GACC,GAAI;GACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,MAAMC,YAAU,CAC7B;GACa;GACI;GACJ;GACP;GACO;GACd,mBAAmB,eAAe,wBAAwB;GAC3C;GAEd;IACQ;GACU"}
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime185 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime213 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/tree/item-actions.d.ts
17
17
 
@@ -39,7 +39,7 @@ declare function TreeItemActions({
39
39
  className
40
40
  }: PropsWithChildren & {
41
41
  className?: string;
42
- }): react_jsx_runtime185.JSX.Element;
42
+ }): react_jsx_runtime213.JSX.Element;
43
43
  //#endregion
44
44
  export { TreeItemActions };
45
45
  //# sourceMappingURL=item-actions.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { TreeItemContentProps } from "./types.js";
14
- import * as react_jsx_runtime186 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime200 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/tree/item-content.d.ts
17
17
 
@@ -35,7 +35,7 @@ import * as react_jsx_runtime186 from "react/jsx-runtime";
35
35
  */
36
36
  declare function TreeItemContent({
37
37
  children
38
- }: TreeItemContentProps): react_jsx_runtime186.JSX.Element;
38
+ }: TreeItemContentProps): react_jsx_runtime200.JSX.Element;
39
39
  //#endregion
40
40
  export { TreeItemContent };
41
41
  //# sourceMappingURL=item-content.d.ts.map
@@ -13,16 +13,16 @@
13
13
 
14
14
  import { IconProvider } from "../icon/context.js";
15
15
  import { Icon } from "../icon/index.js";
16
- import { Button as Button$1 } from "../button/index.js";
17
- import { Checkbox as Checkbox$1 } from "../checkbox/index.js";
16
+ import { Button } from "../button/index.js";
17
+ import { Checkbox } from "../checkbox/index.js";
18
18
  import { TreeContext, TreeItemContext } from "./context.js";
19
19
  import { TreeLines } from "./lines.js";
20
20
  import { useContext } from "react";
21
21
  import { clsx } from "@accelint/design-foundation/lib/utils";
22
- import { TreeItemContent as TreeItemContent$1 } from "react-aria-components";
23
22
  import { jsx, jsxs } from "react/jsx-runtime";
24
23
  import ChevronDown from "@accelint/icons/chevron-down";
25
24
  import DragVert from "@accelint/icons/drag-vert";
25
+ import { TreeItemContent as TreeItemContent$1 } from "react-aria-components/Tree";
26
26
  import styles from "./styles.module.css";
27
27
  import ChevronUp from "@accelint/icons/chevron-up";
28
28
  import Hide from "@accelint/icons/hide";
@@ -69,7 +69,7 @@ function TreeItemContent({ children }) {
69
69
  className: clsx("group", styles.content, styles[variant]),
70
70
  "data-last-of-set": isLastOfSet,
71
71
  children: [
72
- showVisibility && /* @__PURE__ */ jsx(Button$1, {
72
+ showVisibility && /* @__PURE__ */ jsx(Button, {
73
73
  variant: "icon",
74
74
  color: "mono-bold",
75
75
  size,
@@ -83,7 +83,7 @@ function TreeItemContent({ children }) {
83
83
  isLastOfSet,
84
84
  ancestorLastOfSet
85
85
  }),
86
- hasChildItems && /* @__PURE__ */ jsx(Button$1, {
86
+ hasChildItems && /* @__PURE__ */ jsx(Button, {
87
87
  slot: "chevron",
88
88
  variant: "icon",
89
89
  size,
@@ -100,13 +100,13 @@ function TreeItemContent({ children }) {
100
100
  defaultChildren: null
101
101
  }) : children
102
102
  }),
103
- shouldShowSelection && /* @__PURE__ */ jsx(Checkbox$1, {
103
+ shouldShowSelection && /* @__PURE__ */ jsx(Checkbox, {
104
104
  slot: "selection",
105
105
  isSelected,
106
106
  isDisabled,
107
107
  isIndeterminate: indeterminateKeys?.has(id)
108
108
  }),
109
- allowsDragging && /* @__PURE__ */ jsx(Button$1, {
109
+ allowsDragging && /* @__PURE__ */ jsx(Button, {
110
110
  slot: "drag",
111
111
  variant: "icon",
112
112
  size,
@@ -1 +1 @@
1
- {"version":3,"file":"item-content.js","names":["AriaTreeItemContent","Button","Checkbox"],"sources":["../../../src/components/tree/item-content.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport ChevronUp from '@accelint/icons/chevron-up';\nimport DragVert from '@accelint/icons/drag-vert';\nimport Hide from '@accelint/icons/hide';\nimport Show from '@accelint/icons/show';\nimport { useContext } from 'react';\nimport { TreeItemContent as AriaTreeItemContent } from 'react-aria-components';\nimport { Button } from '../button';\nimport { Checkbox } from '../checkbox';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { TreeContext, TreeItemContext } from './context';\nimport { TreeLines } from './lines';\nimport styles from './styles.module.css';\nimport type { Key } from '@react-types/shared';\nimport type { TreeItemContentProps } from './types';\n\n/**\n * TreeItemContent - Renders the display content of a tree node\n *\n * @example\n * ```tsx\n * <TreeItem id=\"node\" textValue=\"Node\">\n * <TreeItemContent>\n * <TreeItemPrefixIcon><Folder /></TreeItemPrefixIcon>\n * <TreeItemLabel>Folder Name</TreeItemLabel>\n * <TreeItemDescription>Contains 5 items</TreeItemDescription>\n * </TreeItemContent>\n * </TreeItem>\n * ```\n *\n * @param props - {@link TreeItemContentProps}\n * @param props.children - Content to render, or a render function receiving TreeItemContentRenderProps.\n * @returns The rendered TreeItemContent component.\n */\nexport function TreeItemContent({ children }: TreeItemContentProps) {\n const {\n showVisibility,\n variant,\n visibleKeys,\n indeterminateKeys,\n onVisibilityChange,\n } = useContext(TreeContext);\n const { isVisible, isViewable, ancestors } = useContext(TreeItemContext);\n const size = variant === 'cozy' ? 'medium' : 'small';\n\n return (\n <AriaTreeItemContent>\n {(renderProps) => {\n const {\n id,\n allowsDragging,\n hasChildItems,\n level,\n selectionBehavior,\n selectionMode,\n state,\n isDisabled,\n isExpanded,\n isSelected,\n } = renderProps;\n\n const item = state.collection.getItem(id);\n const isLastOfSet = !item?.nextKey;\n\n // Determine if ancestors are last of set (excludes current item)\n const ancestorLastOfSet = ancestors.slice(0, -1).map((ancestorKey) => {\n const ancestorItem = state.collection.getItem(ancestorKey);\n return !ancestorItem?.nextKey;\n });\n\n const shouldShowSelection =\n selectionBehavior === 'toggle' && selectionMode !== 'none';\n\n const handlePress = () => {\n const keys = new Set<Key>(visibleKeys);\n visibleKeys?.has(id) ? keys.delete(id) : keys.add(id);\n onVisibilityChange?.(keys);\n };\n\n return (\n <IconProvider size={size}>\n <div\n className={clsx('group', styles.content, styles[variant])}\n data-last-of-set={isLastOfSet}\n >\n {showVisibility && (\n <Button\n variant='icon'\n color='mono-bold'\n size={size}\n onPress={handlePress}\n isDisabled={isDisabled}\n className={styles.visibility}\n >\n <Icon>{isVisible ? <Show /> : <Hide />}</Icon>\n </Button>\n )}\n {level > 1 && (\n <TreeLines\n level={level}\n isLastOfSet={isLastOfSet}\n ancestorLastOfSet={ancestorLastOfSet}\n />\n )}\n {hasChildItems && (\n <Button\n slot='chevron'\n variant='icon'\n size={size}\n className={styles.expansion}\n >\n <Icon>{isExpanded ? <ChevronDown /> : <ChevronUp />}</Icon>\n </Button>\n )}\n <div className={clsx(styles.display, styles[variant])}>\n {typeof children === 'function'\n ? children({\n ...renderProps,\n variant,\n isVisible,\n isViewable: isViewable,\n defaultChildren: null,\n })\n : children}\n </div>\n {shouldShowSelection && (\n <Checkbox\n slot='selection'\n isSelected={isSelected}\n isDisabled={isDisabled}\n isIndeterminate={indeterminateKeys?.has(id)}\n />\n )}\n {allowsDragging && (\n <Button\n slot='drag'\n variant='icon'\n size={size}\n isDisabled={isDisabled}\n className={styles.drag}\n >\n <Icon>\n <DragVert />\n </Icon>\n </Button>\n )}\n </div>\n </IconProvider>\n );\n }}\n </AriaTreeItemContent>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,SAAgB,gBAAgB,EAAE,YAAkC;CAClE,MAAM,EACJ,gBACA,SACA,aACA,mBACA,uBACE,WAAW,YAAY;CAC3B,MAAM,EAAE,WAAW,YAAY,cAAc,WAAW,gBAAgB;CACxE,MAAM,OAAO,YAAY,SAAS,WAAW;AAE7C,QACE,oBAACA,gCACG,gBAAgB;EAChB,MAAM,EACJ,IACA,gBACA,eACA,OACA,mBACA,eACA,OACA,YACA,YACA,eACE;EAGJ,MAAM,cAAc,CADP,MAAM,WAAW,QAAQ,GAAG,EACd;EAG3B,MAAM,oBAAoB,UAAU,MAAM,GAAG,GAAG,CAAC,KAAK,gBAAgB;AAEpE,UAAO,CADc,MAAM,WAAW,QAAQ,YAAY,EACpC;IACtB;EAEF,MAAM,sBACJ,sBAAsB,YAAY,kBAAkB;EAEtD,MAAM,oBAAoB;GACxB,MAAM,OAAO,IAAI,IAAS,YAAY;AACtC,gBAAa,IAAI,GAAG,GAAG,KAAK,OAAO,GAAG,GAAG,KAAK,IAAI,GAAG;AACrD,wBAAqB,KAAK;;AAG5B,SACE,oBAAC;GAAmB;aAClB,qBAAC;IACC,WAAW,KAAK,SAAS,OAAO,SAAS,OAAO,SAAS;IACzD,oBAAkB;;KAEjB,kBACC,oBAACC;MACC,SAAQ;MACR,OAAM;MACA;MACN,SAAS;MACG;MACZ,WAAW,OAAO;gBAElB,oBAAC,kBAAM,YAAY,oBAAC,SAAO,GAAG,oBAAC,SAAO,GAAQ;OACvC;KAEV,QAAQ,KACP,oBAAC;MACQ;MACM;MACM;OACnB;KAEH,iBACC,oBAACA;MACC,MAAK;MACL,SAAQ;MACF;MACN,WAAW,OAAO;gBAElB,oBAAC,kBAAM,aAAa,oBAAC,gBAAc,GAAG,oBAAC,cAAY,GAAQ;OACpD;KAEX,oBAAC;MAAI,WAAW,KAAK,OAAO,SAAS,OAAO,SAAS;gBAClD,OAAO,aAAa,aACjB,SAAS;OACP,GAAG;OACH;OACA;OACY;OACZ,iBAAiB;OAClB,CAAC,GACF;OACA;KACL,uBACC,oBAACC;MACC,MAAK;MACO;MACA;MACZ,iBAAiB,mBAAmB,IAAI,GAAG;OAC3C;KAEH,kBACC,oBAACD;MACC,MAAK;MACL,SAAQ;MACF;MACM;MACZ,WAAW,OAAO;gBAElB,oBAAC,kBACC,oBAAC,aAAW,GACP;OACA;;KAEP;IACO;KAGC"}
1
+ {"version":3,"file":"item-content.js","names":["AriaTreeItemContent"],"sources":["../../../src/components/tree/item-content.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport ChevronUp from '@accelint/icons/chevron-up';\nimport DragVert from '@accelint/icons/drag-vert';\nimport Hide from '@accelint/icons/hide';\nimport Show from '@accelint/icons/show';\nimport { useContext } from 'react';\nimport { TreeItemContent as AriaTreeItemContent } from 'react-aria-components/Tree';\nimport { Button } from '../button';\nimport { Checkbox } from '../checkbox';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { TreeContext, TreeItemContext } from './context';\nimport { TreeLines } from './lines';\nimport styles from './styles.module.css';\nimport type { Key } from '@react-types/shared';\nimport type { TreeItemContentProps } from './types';\n\n/**\n * TreeItemContent - Renders the display content of a tree node\n *\n * @example\n * ```tsx\n * <TreeItem id=\"node\" textValue=\"Node\">\n * <TreeItemContent>\n * <TreeItemPrefixIcon><Folder /></TreeItemPrefixIcon>\n * <TreeItemLabel>Folder Name</TreeItemLabel>\n * <TreeItemDescription>Contains 5 items</TreeItemDescription>\n * </TreeItemContent>\n * </TreeItem>\n * ```\n *\n * @param props - {@link TreeItemContentProps}\n * @param props.children - Content to render, or a render function receiving TreeItemContentRenderProps.\n * @returns The rendered TreeItemContent component.\n */\nexport function TreeItemContent({ children }: TreeItemContentProps) {\n const {\n showVisibility,\n variant,\n visibleKeys,\n indeterminateKeys,\n onVisibilityChange,\n } = useContext(TreeContext);\n const { isVisible, isViewable, ancestors } = useContext(TreeItemContext);\n const size = variant === 'cozy' ? 'medium' : 'small';\n\n return (\n <AriaTreeItemContent>\n {(renderProps) => {\n const {\n id,\n allowsDragging,\n hasChildItems,\n level,\n selectionBehavior,\n selectionMode,\n state,\n isDisabled,\n isExpanded,\n isSelected,\n } = renderProps;\n\n const item = state.collection.getItem(id);\n const isLastOfSet = !item?.nextKey;\n\n // Determine if ancestors are last of set (excludes current item)\n const ancestorLastOfSet = ancestors.slice(0, -1).map((ancestorKey) => {\n const ancestorItem = state.collection.getItem(ancestorKey);\n return !ancestorItem?.nextKey;\n });\n\n const shouldShowSelection =\n selectionBehavior === 'toggle' && selectionMode !== 'none';\n\n const handlePress = () => {\n const keys = new Set<Key>(visibleKeys);\n visibleKeys?.has(id) ? keys.delete(id) : keys.add(id);\n onVisibilityChange?.(keys);\n };\n\n return (\n <IconProvider size={size}>\n <div\n className={clsx('group', styles.content, styles[variant])}\n data-last-of-set={isLastOfSet}\n >\n {showVisibility && (\n <Button\n variant='icon'\n color='mono-bold'\n size={size}\n onPress={handlePress}\n isDisabled={isDisabled}\n className={styles.visibility}\n >\n <Icon>{isVisible ? <Show /> : <Hide />}</Icon>\n </Button>\n )}\n {level > 1 && (\n <TreeLines\n level={level}\n isLastOfSet={isLastOfSet}\n ancestorLastOfSet={ancestorLastOfSet}\n />\n )}\n {hasChildItems && (\n <Button\n slot='chevron'\n variant='icon'\n size={size}\n className={styles.expansion}\n >\n <Icon>{isExpanded ? <ChevronDown /> : <ChevronUp />}</Icon>\n </Button>\n )}\n <div className={clsx(styles.display, styles[variant])}>\n {typeof children === 'function'\n ? children({\n ...renderProps,\n variant,\n isVisible,\n isViewable: isViewable,\n defaultChildren: null,\n })\n : children}\n </div>\n {shouldShowSelection && (\n <Checkbox\n slot='selection'\n isSelected={isSelected}\n isDisabled={isDisabled}\n isIndeterminate={indeterminateKeys?.has(id)}\n />\n )}\n {allowsDragging && (\n <Button\n slot='drag'\n variant='icon'\n size={size}\n isDisabled={isDisabled}\n className={styles.drag}\n >\n <Icon>\n <DragVert />\n </Icon>\n </Button>\n )}\n </div>\n </IconProvider>\n );\n }}\n </AriaTreeItemContent>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,SAAgB,gBAAgB,EAAE,YAAkC;CAClE,MAAM,EACJ,gBACA,SACA,aACA,mBACA,uBACE,WAAW,YAAY;CAC3B,MAAM,EAAE,WAAW,YAAY,cAAc,WAAW,gBAAgB;CACxE,MAAM,OAAO,YAAY,SAAS,WAAW;AAE7C,QACE,oBAACA,gCACG,gBAAgB;EAChB,MAAM,EACJ,IACA,gBACA,eACA,OACA,mBACA,eACA,OACA,YACA,YACA,eACE;EAGJ,MAAM,cAAc,CADP,MAAM,WAAW,QAAQ,GAAG,EACd;EAG3B,MAAM,oBAAoB,UAAU,MAAM,GAAG,GAAG,CAAC,KAAK,gBAAgB;AAEpE,UAAO,CADc,MAAM,WAAW,QAAQ,YAAY,EACpC;IACtB;EAEF,MAAM,sBACJ,sBAAsB,YAAY,kBAAkB;EAEtD,MAAM,oBAAoB;GACxB,MAAM,OAAO,IAAI,IAAS,YAAY;AACtC,gBAAa,IAAI,GAAG,GAAG,KAAK,OAAO,GAAG,GAAG,KAAK,IAAI,GAAG;AACrD,wBAAqB,KAAK;;AAG5B,SACE,oBAAC;GAAmB;aAClB,qBAAC;IACC,WAAW,KAAK,SAAS,OAAO,SAAS,OAAO,SAAS;IACzD,oBAAkB;;KAEjB,kBACC,oBAAC;MACC,SAAQ;MACR,OAAM;MACA;MACN,SAAS;MACG;MACZ,WAAW,OAAO;gBAElB,oBAAC,kBAAM,YAAY,oBAAC,SAAO,GAAG,oBAAC,SAAO,GAAQ;OACvC;KAEV,QAAQ,KACP,oBAAC;MACQ;MACM;MACM;OACnB;KAEH,iBACC,oBAAC;MACC,MAAK;MACL,SAAQ;MACF;MACN,WAAW,OAAO;gBAElB,oBAAC,kBAAM,aAAa,oBAAC,gBAAc,GAAG,oBAAC,cAAY,GAAQ;OACpD;KAEX,oBAAC;MAAI,WAAW,KAAK,OAAO,SAAS,OAAO,SAAS;gBAClD,OAAO,aAAa,aACjB,SAAS;OACP,GAAG;OACH;OACA;OACY;OACZ,iBAAiB;OAClB,CAAC,GACF;OACA;KACL,uBACC,oBAAC;MACC,MAAK;MACO;MACA;MACZ,iBAAiB,mBAAmB,IAAI,GAAG;OAC3C;KAEH,kBACC,oBAAC;MACC,MAAK;MACL,SAAQ;MACF;MACM;MACZ,WAAW,OAAO;gBAElB,oBAAC,kBACC,oBAAC,aAAW,GACP;OACA;;KAEP;IACO;KAGC"}