@accelint/design-toolkit 9.9.2 → 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 (719) 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/styles.module.css +19 -3
  17. package/dist/components/accordion/trigger.d.ts +2 -2
  18. package/dist/components/accordion/trigger.js +4 -3
  19. package/dist/components/accordion/trigger.js.map +1 -1
  20. package/dist/components/accordion/types.d.ts +3 -1
  21. package/dist/components/action-bar/index.d.ts +2 -2
  22. package/dist/components/action-bar/index.js +1 -1
  23. package/dist/components/action-bar/index.js.map +1 -1
  24. package/dist/components/audio/index.d.ts +2 -2
  25. package/dist/components/avatar/context.d.ts +5 -5
  26. package/dist/components/avatar/context.js.map +1 -1
  27. package/dist/components/avatar/index.d.ts +2 -2
  28. package/dist/components/avatar/index.js +1 -1
  29. package/dist/components/avatar/index.js.map +1 -1
  30. package/dist/components/badge/context.d.ts +5 -5
  31. package/dist/components/badge/context.js.map +1 -1
  32. package/dist/components/badge/index.d.ts +2 -2
  33. package/dist/components/badge/index.js +1 -1
  34. package/dist/components/badge/index.js.map +1 -1
  35. package/dist/components/breadcrumbs/index.d.ts +3 -3
  36. package/dist/components/breadcrumbs/index.js +1 -1
  37. package/dist/components/breadcrumbs/index.js.map +1 -1
  38. package/dist/components/breadcrumbs/item.d.ts +2 -2
  39. package/dist/components/breadcrumbs/item.js +3 -1
  40. package/dist/components/breadcrumbs/item.js.map +1 -1
  41. package/dist/components/breadcrumbs/types.d.ts +2 -1
  42. package/dist/components/button/__internal__/clear.js +2 -1
  43. package/dist/components/button/__internal__/clear.js.map +1 -1
  44. package/dist/components/button/context.d.ts +10 -10
  45. package/dist/components/button/context.js.map +1 -1
  46. package/dist/components/button/index.d.ts +2 -2
  47. package/dist/components/button/index.js +3 -1
  48. package/dist/components/button/index.js.map +1 -1
  49. package/dist/components/button/link.d.ts +2 -2
  50. package/dist/components/button/link.js +3 -1
  51. package/dist/components/button/link.js.map +1 -1
  52. package/dist/components/button/styles.module.css +16 -0
  53. package/dist/components/button/toggle.d.ts +2 -2
  54. package/dist/components/button/toggle.js +3 -1
  55. package/dist/components/button/toggle.js.map +1 -1
  56. package/dist/components/button/types.d.ts +3 -1
  57. package/dist/components/carousel/context.d.ts +40 -0
  58. package/dist/components/carousel/context.js +55 -0
  59. package/dist/components/carousel/context.js.map +1 -0
  60. package/dist/components/carousel/gallery.d.ts +38 -0
  61. package/dist/components/carousel/gallery.js +84 -0
  62. package/dist/components/carousel/gallery.js.map +1 -0
  63. package/dist/components/carousel/index.d.ts +56 -0
  64. package/dist/components/carousel/index.js +66 -0
  65. package/dist/components/carousel/index.js.map +1 -0
  66. package/dist/components/carousel/navigation.d.ts +51 -0
  67. package/dist/components/carousel/navigation.js +82 -0
  68. package/dist/components/carousel/navigation.js.map +1 -0
  69. package/dist/components/carousel/position.d.ts +33 -0
  70. package/dist/components/carousel/position.js +48 -0
  71. package/dist/components/carousel/position.js.map +1 -0
  72. package/dist/components/carousel/select.d.ts +38 -0
  73. package/dist/components/carousel/select.js +69 -0
  74. package/dist/components/carousel/select.js.map +1 -0
  75. package/dist/components/carousel/style.module.css +62 -0
  76. package/dist/components/carousel/types.d.ts +87 -0
  77. package/dist/components/carousel/types.js +12 -0
  78. package/dist/components/carousel/viewer.d.ts +40 -0
  79. package/dist/components/carousel/viewer.js +75 -0
  80. package/dist/components/carousel/viewer.js.map +1 -0
  81. package/dist/components/checkbox/context.d.ts +5 -5
  82. package/dist/components/checkbox/context.js.map +1 -1
  83. package/dist/components/checkbox/group.d.ts +2 -2
  84. package/dist/components/checkbox/group.js +5 -3
  85. package/dist/components/checkbox/group.js.map +1 -1
  86. package/dist/components/checkbox/index.d.ts +2 -2
  87. package/dist/components/checkbox/index.js +3 -1
  88. package/dist/components/checkbox/index.js.map +1 -1
  89. package/dist/components/checkbox/types.d.ts +4 -3
  90. package/dist/components/chip/context.d.ts +3 -3
  91. package/dist/components/chip/context.js.map +1 -1
  92. package/dist/components/chip/deletable.d.ts +2 -2
  93. package/dist/components/chip/deletable.js +5 -3
  94. package/dist/components/chip/deletable.js.map +1 -1
  95. package/dist/components/chip/index.d.ts +2 -2
  96. package/dist/components/chip/index.js +2 -1
  97. package/dist/components/chip/index.js.map +1 -1
  98. package/dist/components/chip/list.d.ts +4 -4
  99. package/dist/components/chip/list.js +3 -1
  100. package/dist/components/chip/list.js.map +1 -1
  101. package/dist/components/chip/selectable.d.ts +2 -2
  102. package/dist/components/chip/selectable.js +3 -1
  103. package/dist/components/chip/selectable.js.map +1 -1
  104. package/dist/components/chip/types.d.ts +3 -2
  105. package/dist/components/classification-badge/context.d.ts +5 -5
  106. package/dist/components/classification-badge/context.js.map +1 -1
  107. package/dist/components/classification-badge/index.d.ts +2 -2
  108. package/dist/components/classification-badge/index.js +1 -1
  109. package/dist/components/classification-badge/index.js.map +1 -1
  110. package/dist/components/classification-banner/context.d.ts +5 -5
  111. package/dist/components/classification-banner/context.js.map +1 -1
  112. package/dist/components/classification-banner/index.d.ts +2 -2
  113. package/dist/components/classification-banner/index.js +1 -1
  114. package/dist/components/classification-banner/index.js.map +1 -1
  115. package/dist/components/clock/index.d.ts +2 -2
  116. package/dist/components/color-picker/index.d.ts +2 -2
  117. package/dist/components/color-picker/index.js +4 -3
  118. package/dist/components/color-picker/index.js.map +1 -1
  119. package/dist/components/color-picker/types.d.ts +2 -1
  120. package/dist/components/combobox-field/context.d.ts +5 -5
  121. package/dist/components/combobox-field/context.js.map +1 -1
  122. package/dist/components/combobox-field/index.d.ts +2 -2
  123. package/dist/components/combobox-field/index.js +12 -12
  124. package/dist/components/combobox-field/index.js.map +1 -1
  125. package/dist/components/combobox-field/styles.module.css +12 -0
  126. package/dist/components/combobox-field/types.d.ts +8 -4
  127. package/dist/components/coordinate-field/context.d.ts +7 -7
  128. package/dist/components/coordinate-field/context.js.map +1 -1
  129. package/dist/components/coordinate-field/index.d.ts +2 -2
  130. package/dist/components/coordinate-field/index.js +28 -23
  131. package/dist/components/coordinate-field/index.js.map +1 -1
  132. package/dist/components/coordinate-field/segment.d.ts +2 -2
  133. package/dist/components/coordinate-field/types.d.ts +3 -1
  134. package/dist/components/coordinate-field/types.js.map +1 -1
  135. package/dist/components/date-field/index.d.ts +2 -2
  136. package/dist/components/date-field/index.js +4 -3
  137. package/dist/components/date-field/index.js.map +1 -1
  138. package/dist/components/date-field/types.d.ts +1 -1
  139. package/dist/components/deferred-collection/index.d.ts +2 -2
  140. package/dist/components/details-list/context.d.ts +5 -5
  141. package/dist/components/details-list/context.js.map +1 -1
  142. package/dist/components/details-list/index.d.ts +2 -2
  143. package/dist/components/details-list/index.js +2 -1
  144. package/dist/components/details-list/index.js.map +1 -1
  145. package/dist/components/details-list/label.d.ts +2 -2
  146. package/dist/components/details-list/label.js +1 -1
  147. package/dist/components/details-list/label.js.map +1 -1
  148. package/dist/components/details-list/types.d.ts +1 -1
  149. package/dist/components/details-list/value.d.ts +2 -2
  150. package/dist/components/details-list/value.js +1 -1
  151. package/dist/components/details-list/value.js.map +1 -1
  152. package/dist/components/dialog/content.d.ts +2 -2
  153. package/dist/components/dialog/context.d.ts +4 -4
  154. package/dist/components/dialog/context.js.map +1 -1
  155. package/dist/components/dialog/footer.d.ts +2 -2
  156. package/dist/components/dialog/footer.js +1 -1
  157. package/dist/components/dialog/footer.js.map +1 -1
  158. package/dist/components/dialog/index.d.ts +2 -2
  159. package/dist/components/dialog/index.js +3 -1
  160. package/dist/components/dialog/index.js.map +1 -1
  161. package/dist/components/dialog/styles.module.css +23 -0
  162. package/dist/components/dialog/title.d.ts +3 -3
  163. package/dist/components/dialog/title.js +1 -1
  164. package/dist/components/dialog/title.js.map +1 -1
  165. package/dist/components/dialog/trigger.d.ts +1 -1
  166. package/dist/components/dialog/trigger.js +1 -1
  167. package/dist/components/dialog/trigger.js.map +1 -1
  168. package/dist/components/dialog/types.d.ts +1 -1
  169. package/dist/components/divider/context.d.ts +5 -5
  170. package/dist/components/divider/context.js.map +1 -1
  171. package/dist/components/divider/index.d.ts +2 -2
  172. package/dist/components/divider/index.js +1 -1
  173. package/dist/components/divider/index.js.map +1 -1
  174. package/dist/components/drawer/back.d.ts +2 -2
  175. package/dist/components/drawer/close.d.ts +2 -2
  176. package/dist/components/drawer/content.d.ts +2 -2
  177. package/dist/components/drawer/context.d.ts +2 -2
  178. package/dist/components/drawer/footer.d.ts +2 -2
  179. package/dist/components/drawer/header-title.d.ts +2 -2
  180. package/dist/components/drawer/header-title.js +1 -1
  181. package/dist/components/drawer/header-title.js.map +1 -1
  182. package/dist/components/drawer/header.d.ts +2 -2
  183. package/dist/components/drawer/header.js +3 -3
  184. package/dist/components/drawer/header.js.map +1 -1
  185. package/dist/components/drawer/index.d.ts +2 -2
  186. package/dist/components/drawer/layout-main.d.ts +2 -2
  187. package/dist/components/drawer/layout.d.ts +2 -2
  188. package/dist/components/drawer/menu-item.d.ts +2 -2
  189. package/dist/components/drawer/menu-item.js +7 -7
  190. package/dist/components/drawer/menu-item.js.map +1 -1
  191. package/dist/components/drawer/menu.d.ts +2 -2
  192. package/dist/components/drawer/panel.d.ts +2 -2
  193. package/dist/components/drawer/styles.module.css +54 -2
  194. package/dist/components/drawer/trigger.d.ts +2 -2
  195. package/dist/components/drawer/trigger.js +1 -1
  196. package/dist/components/drawer/trigger.js.map +1 -1
  197. package/dist/components/drawer/types.d.ts +3 -3
  198. package/dist/components/drawer/view.d.ts +2 -2
  199. package/dist/components/flashcard/index.d.ts +9 -9
  200. package/dist/components/flashcard/index.js +2 -1
  201. package/dist/components/flashcard/index.js.map +1 -1
  202. package/dist/components/floating-card/context.d.ts +22 -15
  203. package/dist/components/floating-card/context.js +18 -3
  204. package/dist/components/floating-card/context.js.map +1 -1
  205. package/dist/components/floating-card/index.d.ts +32 -27
  206. package/dist/components/floating-card/index.js +41 -11
  207. package/dist/components/floating-card/index.js.map +1 -1
  208. package/dist/components/floating-card/provider.d.ts +30 -32
  209. package/dist/components/floating-card/provider.js +110 -49
  210. package/dist/components/floating-card/provider.js.map +1 -1
  211. package/dist/components/floating-card/styles.module.css +20 -2
  212. package/dist/components/floating-card/types.d.ts +161 -0
  213. package/dist/components/floating-card/types.js +12 -0
  214. package/dist/components/floating-card/utils.d.ts +104 -0
  215. package/dist/components/floating-card/utils.js +60 -0
  216. package/dist/components/floating-card/utils.js.map +1 -0
  217. package/dist/components/gantt/components/base-elements/point.d.ts +28 -0
  218. package/dist/components/gantt/components/base-elements/point.js +44 -0
  219. package/dist/components/gantt/components/base-elements/point.js.map +1 -0
  220. package/dist/components/gantt/components/base-elements/range.d.ts +30 -0
  221. package/dist/components/gantt/components/base-elements/range.js +51 -0
  222. package/dist/components/gantt/components/base-elements/range.js.map +1 -0
  223. package/dist/components/gantt/components/base-elements/use-point-element-layout/index.d.ts +12 -0
  224. package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js +42 -0
  225. package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js.map +1 -0
  226. package/dist/components/gantt/components/base-elements/use-range-element-layout/index.d.ts +23 -0
  227. package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js +50 -0
  228. package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js.map +1 -0
  229. package/dist/components/gantt/components/containers/external/gantt-content-container/index.d.ts +23 -0
  230. package/dist/components/gantt/components/containers/external/gantt-content-container/index.js +40 -0
  231. package/dist/components/gantt/components/containers/external/gantt-content-container/index.js.map +1 -0
  232. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +23 -0
  233. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js +33 -0
  234. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js.map +1 -0
  235. package/dist/components/gantt/components/containers/external/styles.module.css +32 -0
  236. package/dist/components/gantt/components/containers/internal/index.d.ts +22 -0
  237. package/dist/components/gantt/components/containers/internal/index.js +35 -0
  238. package/dist/components/gantt/components/containers/internal/index.js.map +1 -0
  239. package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +22 -0
  240. package/dist/components/gantt/components/containers/internal/layout-container/index.js +27 -0
  241. package/dist/components/gantt/components/containers/internal/layout-container/index.js.map +1 -0
  242. package/dist/components/gantt/components/containers/internal/styles.module.css +35 -0
  243. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +22 -0
  244. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js +38 -0
  245. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js.map +1 -0
  246. package/dist/components/gantt/components/content-row/block.d.ts +27 -0
  247. package/dist/components/gantt/components/content-row/block.js +39 -0
  248. package/dist/components/gantt/components/content-row/block.js.map +1 -0
  249. package/dist/components/gantt/components/content-row/bracket.d.ts +23 -0
  250. package/dist/components/gantt/components/content-row/bracket.js +48 -0
  251. package/dist/components/gantt/components/content-row/bracket.js.map +1 -0
  252. package/dist/components/gantt/components/content-row/icon-marker.d.ts +27 -0
  253. package/dist/components/gantt/components/content-row/icon-marker.js +41 -0
  254. package/dist/components/gantt/components/content-row/icon-marker.js.map +1 -0
  255. package/dist/components/gantt/components/content-row/index.d.ts +24 -0
  256. package/dist/components/gantt/components/content-row/index.js +32 -0
  257. package/dist/components/gantt/components/content-row/index.js.map +1 -0
  258. package/dist/components/gantt/components/content-row/marker.d.ts +21 -0
  259. package/dist/components/gantt/components/content-row/marker.js +35 -0
  260. package/dist/components/gantt/components/content-row/marker.js.map +1 -0
  261. package/dist/components/gantt/components/content-row/spacer.d.ts +23 -0
  262. package/dist/components/gantt/components/content-row/spacer.js +35 -0
  263. package/dist/components/gantt/components/content-row/spacer.js.map +1 -0
  264. package/dist/components/gantt/components/content-row/styles.module.css +198 -0
  265. package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.d.ts +19 -0
  266. package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js +27 -0
  267. package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js.map +1 -0
  268. package/dist/components/gantt/components/content-row/use-is-elapsed/index.d.ts +10 -0
  269. package/dist/components/gantt/components/content-row/use-is-elapsed/index.js +24 -0
  270. package/dist/components/gantt/components/content-row/use-is-elapsed/index.js.map +1 -0
  271. package/dist/components/gantt/components/current-time/index.d.ts +28 -0
  272. package/dist/components/gantt/components/current-time/index.js +63 -0
  273. package/dist/components/gantt/components/current-time/index.js.map +1 -0
  274. package/dist/components/gantt/components/current-time/styles.module.css +42 -0
  275. package/dist/components/gantt/components/current-time/use-current-time-layout/index.d.ts +31 -0
  276. package/dist/components/gantt/components/current-time/use-current-time-layout/index.js +58 -0
  277. package/dist/components/gantt/components/current-time/use-current-time-layout/index.js.map +1 -0
  278. package/dist/components/gantt/components/header/index.d.ts +25 -0
  279. package/dist/components/gantt/components/header/index.js +41 -0
  280. package/dist/components/gantt/components/header/index.js.map +1 -0
  281. package/dist/components/gantt/components/header/styles.module.css +23 -0
  282. package/dist/components/gantt/components/panel-row/index.d.ts +24 -0
  283. package/dist/components/gantt/components/panel-row/index.js +33 -0
  284. package/dist/components/gantt/components/panel-row/index.js.map +1 -0
  285. package/dist/components/gantt/components/panel-row/styles.module.css +24 -0
  286. package/dist/components/gantt/components/rows-virtualizer/index.d.ts +25 -0
  287. package/dist/components/gantt/components/rows-virtualizer/index.js +67 -0
  288. package/dist/components/gantt/components/rows-virtualizer/index.js.map +1 -0
  289. package/dist/components/gantt/components/rows-virtualizer/styles.module.css +30 -0
  290. package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.d.ts +29 -0
  291. package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js +57 -0
  292. package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js.map +1 -0
  293. package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.d.ts +10 -0
  294. package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js +58 -0
  295. package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js.map +1 -0
  296. package/dist/components/gantt/components/styles.module.css +46 -0
  297. package/dist/components/gantt/components/timeline/index.d.ts +19 -0
  298. package/dist/components/gantt/components/timeline/index.js +45 -0
  299. package/dist/components/gantt/components/timeline/index.js.map +1 -0
  300. package/dist/components/gantt/components/timeline/use-timeline-transform/index.d.ts +29 -0
  301. package/dist/components/gantt/components/timeline/use-timeline-transform/index.js +33 -0
  302. package/dist/components/gantt/components/timeline/use-timeline-transform/index.js.map +1 -0
  303. package/dist/components/gantt/components/timeline-chunk/index.d.ts +25 -0
  304. package/dist/components/gantt/components/timeline-chunk/index.js +43 -0
  305. package/dist/components/gantt/components/timeline-chunk/index.js.map +1 -0
  306. package/dist/components/gantt/constants.d.ts +31 -0
  307. package/dist/components/gantt/constants.js +57 -0
  308. package/dist/components/gantt/constants.js.map +1 -0
  309. package/dist/components/gantt/context/index.d.ts +60 -0
  310. package/dist/components/gantt/context/index.js +78 -0
  311. package/dist/components/gantt/context/index.js.map +1 -0
  312. package/dist/components/gantt/context/store/index.d.ts +45 -0
  313. package/dist/components/gantt/context/store/index.js +42 -0
  314. package/dist/components/gantt/context/store/index.js.map +1 -0
  315. package/dist/components/gantt/context/temporal-data/index.d.ts +48 -0
  316. package/dist/components/gantt/context/temporal-data/index.js +80 -0
  317. package/dist/components/gantt/context/temporal-data/index.js.map +1 -0
  318. package/dist/components/gantt/gantt.d.ts +50 -0
  319. package/dist/components/gantt/gantt.js +51 -0
  320. package/dist/components/gantt/gantt.js.map +1 -0
  321. package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.d.ts +22 -0
  322. package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js +36 -0
  323. package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js.map +1 -0
  324. package/dist/components/gantt/hooks/use-layout-subscription/index.d.ts +26 -0
  325. package/dist/components/gantt/hooks/use-layout-subscription/index.js +45 -0
  326. package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +1 -0
  327. package/dist/components/gantt/hooks/use-resize-intersection-effect/index.d.ts +26 -0
  328. package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js +50 -0
  329. package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js.map +1 -0
  330. package/dist/components/gantt/hooks/use-root-element-height/index.d.ts +5 -0
  331. package/dist/components/gantt/hooks/use-root-element-height/index.js +24 -0
  332. package/dist/components/gantt/hooks/use-root-element-height/index.js.map +1 -0
  333. package/dist/components/gantt/hooks/use-scrollbar-height/index.d.ts +5 -0
  334. package/dist/components/gantt/hooks/use-scrollbar-height/index.js +40 -0
  335. package/dist/components/gantt/hooks/use-scrollbar-height/index.js.map +1 -0
  336. package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.d.ts +19 -0
  337. package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js +87 -0
  338. package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js.map +1 -0
  339. package/dist/components/gantt/hooks/use-vertical-scroll-update/index.d.ts +22 -0
  340. package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js +38 -0
  341. package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js.map +1 -0
  342. package/dist/components/gantt/public-types.d.ts +31 -0
  343. package/dist/components/gantt/public-types.js +12 -0
  344. package/dist/components/gantt/store.d.ts +51 -0
  345. package/dist/components/gantt/store.js +46 -0
  346. package/dist/components/gantt/store.js.map +1 -0
  347. package/dist/components/gantt/styles.module.css +30 -0
  348. package/dist/components/gantt/types.d.ts +67 -0
  349. package/dist/components/gantt/types.js +12 -0
  350. package/dist/components/gantt/utils/conversions.d.ts +23 -0
  351. package/dist/components/gantt/utils/conversions.js +34 -0
  352. package/dist/components/gantt/utils/conversions.js.map +1 -0
  353. package/dist/components/gantt/utils/dates.d.ts +11 -0
  354. package/dist/components/gantt/utils/dates.js +41 -0
  355. package/dist/components/gantt/utils/dates.js.map +1 -0
  356. package/dist/components/gantt/utils/formatting.d.ts +5 -0
  357. package/dist/components/gantt/utils/formatting.js +54 -0
  358. package/dist/components/gantt/utils/formatting.js.map +1 -0
  359. package/dist/components/gantt/utils/generation.d.ts +19 -0
  360. package/dist/components/gantt/utils/generation.js +37 -0
  361. package/dist/components/gantt/utils/generation.js.map +1 -0
  362. package/dist/components/gantt/utils/helpers.d.ts +26 -0
  363. package/dist/components/gantt/utils/helpers.js +55 -0
  364. package/dist/components/gantt/utils/helpers.js.map +1 -0
  365. package/dist/components/gantt/utils/layout.d.ts +32 -0
  366. package/dist/components/gantt/utils/layout.js +55 -0
  367. package/dist/components/gantt/utils/layout.js.map +1 -0
  368. package/dist/components/gantt/utils/thresholds.d.ts +52 -0
  369. package/dist/components/gantt/utils/thresholds.js +116 -0
  370. package/dist/components/gantt/utils/thresholds.js.map +1 -0
  371. package/dist/components/hero/context.d.ts +3 -3
  372. package/dist/components/hero/context.js.map +1 -1
  373. package/dist/components/hero/index.d.ts +2 -2
  374. package/dist/components/hero/index.js +4 -1
  375. package/dist/components/hero/index.js.map +1 -1
  376. package/dist/components/hero/subtitle.d.ts +3 -3
  377. package/dist/components/hero/subtitle.js +1 -1
  378. package/dist/components/hero/subtitle.js.map +1 -1
  379. package/dist/components/hero/title.d.ts +3 -3
  380. package/dist/components/hero/title.js +1 -1
  381. package/dist/components/hero/title.js.map +1 -1
  382. package/dist/components/hotkey/context.d.ts +5 -5
  383. package/dist/components/hotkey/context.js.map +1 -1
  384. package/dist/components/hotkey/index.d.ts +2 -2
  385. package/dist/components/hotkey/index.js +2 -1
  386. package/dist/components/hotkey/index.js.map +1 -1
  387. package/dist/components/hotkey/set.d.ts +2 -2
  388. package/dist/components/icon/context.d.ts +5 -5
  389. package/dist/components/icon/context.js.map +1 -1
  390. package/dist/components/icon/index.d.ts +2 -2
  391. package/dist/components/icon/index.js +1 -1
  392. package/dist/components/icon/index.js.map +1 -1
  393. package/dist/components/input/context.d.ts +4 -4
  394. package/dist/components/input/context.js.map +1 -1
  395. package/dist/components/input/index.d.ts +2 -2
  396. package/dist/components/input/index.js +4 -2
  397. package/dist/components/input/index.js.map +1 -1
  398. package/dist/components/input/types.d.ts +3 -3
  399. package/dist/components/kanban/card-body.d.ts +2 -2
  400. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  401. package/dist/components/kanban/card-header-title.d.ts +2 -2
  402. package/dist/components/kanban/card-header.d.ts +2 -2
  403. package/dist/components/kanban/card.d.ts +2 -2
  404. package/dist/components/kanban/column-actions.d.ts +2 -2
  405. package/dist/components/kanban/column-container.d.ts +2 -2
  406. package/dist/components/kanban/column-content.d.ts +2 -2
  407. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  408. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  409. package/dist/components/kanban/column-header-title.d.ts +2 -2
  410. package/dist/components/kanban/column-header.d.ts +2 -2
  411. package/dist/components/kanban/column.d.ts +2 -2
  412. package/dist/components/kanban/context.d.ts +2 -2
  413. package/dist/components/kanban/header-actions.d.ts +2 -2
  414. package/dist/components/kanban/header-search.d.ts +2 -2
  415. package/dist/components/kanban/header-title.d.ts +2 -2
  416. package/dist/components/kanban/header-title.js +1 -1
  417. package/dist/components/kanban/header-title.js.map +1 -1
  418. package/dist/components/kanban/header.d.ts +2 -2
  419. package/dist/components/kanban/kanban.d.ts +4 -4
  420. package/dist/components/label/context.d.ts +6 -6
  421. package/dist/components/label/context.js.map +1 -1
  422. package/dist/components/label/index.d.ts +2 -2
  423. package/dist/components/label/index.js +2 -1
  424. package/dist/components/label/index.js.map +1 -1
  425. package/dist/components/label/types.d.ts +1 -1
  426. package/dist/components/lines/index.d.ts +2 -2
  427. package/dist/components/link/context.d.ts +2 -2
  428. package/dist/components/link/context.js +1 -1
  429. package/dist/components/link/context.js.map +1 -1
  430. package/dist/components/link/index.d.ts +2 -2
  431. package/dist/components/link/index.js +3 -1
  432. package/dist/components/link/index.js.map +1 -1
  433. package/dist/components/link/types.d.ts +1 -1
  434. package/dist/components/list/context.d.ts +3 -3
  435. package/dist/components/list/context.js.map +1 -1
  436. package/dist/components/list/index.d.ts +2 -2
  437. package/dist/components/list/index.js +3 -1
  438. package/dist/components/list/index.js.map +1 -1
  439. package/dist/components/list/item-content.d.ts +2 -2
  440. package/dist/components/list/item-description.d.ts +2 -2
  441. package/dist/components/list/item-title.d.ts +2 -2
  442. package/dist/components/list/item.d.ts +2 -2
  443. package/dist/components/list/item.js +2 -1
  444. package/dist/components/list/item.js.map +1 -1
  445. package/dist/components/list/types.d.ts +1 -1
  446. package/dist/components/media-controls/context.d.ts +4 -4
  447. package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
  448. package/dist/components/media-controls/index.d.ts +2 -2
  449. package/dist/components/media-controls/mute-button.d.ts +2 -2
  450. package/dist/components/media-controls/play-button.d.ts +2 -2
  451. package/dist/components/media-controls/playback-rate.d.ts +2 -2
  452. package/dist/components/media-controls/seek-button.d.ts +2 -2
  453. package/dist/components/media-controls/time-display.d.ts +2 -2
  454. package/dist/components/media-controls/time-range.d.ts +2 -2
  455. package/dist/components/media-controls/volume-slider.d.ts +2 -2
  456. package/dist/components/menu/context.d.ts +4 -4
  457. package/dist/components/menu/context.js.map +1 -1
  458. package/dist/components/menu/index.d.ts +2 -2
  459. package/dist/components/menu/index.js +4 -1
  460. package/dist/components/menu/index.js.map +1 -1
  461. package/dist/components/menu/item-description.d.ts +3 -3
  462. package/dist/components/menu/item-description.js +1 -1
  463. package/dist/components/menu/item-description.js.map +1 -1
  464. package/dist/components/menu/item-label.d.ts +3 -3
  465. package/dist/components/menu/item-label.js +1 -1
  466. package/dist/components/menu/item-label.js.map +1 -1
  467. package/dist/components/menu/item.d.ts +2 -2
  468. package/dist/components/menu/item.js +5 -1
  469. package/dist/components/menu/item.js.map +1 -1
  470. package/dist/components/menu/section.d.ts +2 -2
  471. package/dist/components/menu/section.js +1 -1
  472. package/dist/components/menu/section.js.map +1 -1
  473. package/dist/components/menu/separator.d.ts +3 -3
  474. package/dist/components/menu/separator.js +1 -1
  475. package/dist/components/menu/separator.js.map +1 -1
  476. package/dist/components/menu/styles.module.css +12 -0
  477. package/dist/components/menu/submenu.d.ts +3 -3
  478. package/dist/components/menu/submenu.js +1 -1
  479. package/dist/components/menu/submenu.js.map +1 -1
  480. package/dist/components/menu/trigger.d.ts +1 -1
  481. package/dist/components/menu/trigger.js +1 -1
  482. package/dist/components/menu/trigger.js.map +1 -1
  483. package/dist/components/menu/types.d.ts +1 -1
  484. package/dist/components/notice/index.d.ts +2 -2
  485. package/dist/components/notice/index.js +6 -5
  486. package/dist/components/notice/index.js.map +1 -1
  487. package/dist/components/notice/list.d.ts +2 -2
  488. package/dist/components/notice/list.js +16 -6
  489. package/dist/components/notice/list.js.map +1 -1
  490. package/dist/components/notice/notice-icon.d.ts +2 -2
  491. package/dist/components/notice/styles.module.css +27 -0
  492. package/dist/components/notice/types.d.ts +4 -4
  493. package/dist/components/options/context.d.ts +3 -3
  494. package/dist/components/options/context.js.map +1 -1
  495. package/dist/components/options/index.d.ts +2 -2
  496. package/dist/components/options/index.js +3 -1
  497. package/dist/components/options/index.js.map +1 -1
  498. package/dist/components/options/item-content.d.ts +3 -3
  499. package/dist/components/options/item-content.js.map +1 -1
  500. package/dist/components/options/item-description.d.ts +3 -3
  501. package/dist/components/options/item-description.js +1 -1
  502. package/dist/components/options/item-description.js.map +1 -1
  503. package/dist/components/options/item-label.d.ts +3 -3
  504. package/dist/components/options/item-label.js +2 -1
  505. package/dist/components/options/item-label.js.map +1 -1
  506. package/dist/components/options/item.d.ts +2 -2
  507. package/dist/components/options/item.js +2 -1
  508. package/dist/components/options/item.js.map +1 -1
  509. package/dist/components/options/section.d.ts +2 -2
  510. package/dist/components/options/section.js +1 -1
  511. package/dist/components/options/section.js.map +1 -1
  512. package/dist/components/options/types.d.ts +2 -2
  513. package/dist/components/pagination/context.d.ts +2 -2
  514. package/dist/components/pagination/index.d.ts +2 -2
  515. package/dist/components/pagination/index.js +1 -1
  516. package/dist/components/pagination/index.js.map +1 -1
  517. package/dist/components/pagination/next.d.ts +2 -2
  518. package/dist/components/pagination/next.js +3 -3
  519. package/dist/components/pagination/next.js.map +1 -1
  520. package/dist/components/pagination/pages.d.ts +2 -2
  521. package/dist/components/pagination/pages.js +3 -3
  522. package/dist/components/pagination/pages.js.map +1 -1
  523. package/dist/components/pagination/prev.d.ts +2 -2
  524. package/dist/components/pagination/prev.js +3 -3
  525. package/dist/components/pagination/prev.js.map +1 -1
  526. package/dist/components/popover/content.d.ts +2 -2
  527. package/dist/components/popover/footer.d.ts +2 -2
  528. package/dist/components/popover/index.d.ts +2 -2
  529. package/dist/components/popover/index.js +1 -1
  530. package/dist/components/popover/index.js.map +1 -1
  531. package/dist/components/popover/styles.module.css +34 -0
  532. package/dist/components/popover/title.d.ts +3 -3
  533. package/dist/components/popover/title.js +1 -1
  534. package/dist/components/popover/title.js.map +1 -1
  535. package/dist/components/popover/trigger.d.ts +2 -2
  536. package/dist/components/popover/trigger.js +3 -3
  537. package/dist/components/popover/trigger.js.map +1 -1
  538. package/dist/components/popover/types.d.ts +1 -1
  539. package/dist/components/query-builder/action-element.d.ts +2 -2
  540. package/dist/components/query-builder/actions.d.ts +4 -4
  541. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  542. package/dist/components/query-builder/index.d.ts +2 -2
  543. package/dist/components/query-builder/rule-group.d.ts +4 -4
  544. package/dist/components/query-builder/rule.d.ts +2 -2
  545. package/dist/components/query-builder/value-editor.d.ts +2 -2
  546. package/dist/components/query-builder/value-selector.d.ts +2 -2
  547. package/dist/components/query-builder/value-selector.js +1 -1
  548. package/dist/components/radio/context.d.ts +5 -5
  549. package/dist/components/radio/context.js.map +1 -1
  550. package/dist/components/radio/group.d.ts +2 -2
  551. package/dist/components/radio/group.js +5 -3
  552. package/dist/components/radio/group.js.map +1 -1
  553. package/dist/components/radio/index.d.ts +2 -2
  554. package/dist/components/radio/index.js +3 -1
  555. package/dist/components/radio/index.js.map +1 -1
  556. package/dist/components/radio/types.d.ts +3 -3
  557. package/dist/components/search-field/context.d.ts +6 -6
  558. package/dist/components/search-field/context.js.map +1 -1
  559. package/dist/components/search-field/index.d.ts +2 -2
  560. package/dist/components/search-field/index.js +3 -1
  561. package/dist/components/search-field/index.js.map +1 -1
  562. package/dist/components/search-field/types.d.ts +3 -3
  563. package/dist/components/select-field/context.d.ts +5 -5
  564. package/dist/components/select-field/context.js.map +1 -1
  565. package/dist/components/select-field/index.d.ts +2 -2
  566. package/dist/components/select-field/index.js +6 -3
  567. package/dist/components/select-field/index.js.map +1 -1
  568. package/dist/components/select-field/types.d.ts +8 -5
  569. package/dist/components/sidenav/avatar.d.ts +2 -2
  570. package/dist/components/sidenav/avatar.js +3 -1
  571. package/dist/components/sidenav/avatar.js.map +1 -1
  572. package/dist/components/sidenav/content.d.ts +2 -2
  573. package/dist/components/sidenav/content.js +1 -1
  574. package/dist/components/sidenav/content.js.map +1 -1
  575. package/dist/components/sidenav/context.d.ts +2 -2
  576. package/dist/components/sidenav/footer.d.ts +2 -2
  577. package/dist/components/sidenav/header.d.ts +2 -2
  578. package/dist/components/sidenav/header.js +3 -1
  579. package/dist/components/sidenav/header.js.map +1 -1
  580. package/dist/components/sidenav/index.d.ts +2 -2
  581. package/dist/components/sidenav/index.js +2 -1
  582. package/dist/components/sidenav/index.js.map +1 -1
  583. package/dist/components/sidenav/item.d.ts +2 -2
  584. package/dist/components/sidenav/item.js +8 -5
  585. package/dist/components/sidenav/item.js.map +1 -1
  586. package/dist/components/sidenav/link.d.ts +2 -2
  587. package/dist/components/sidenav/link.js +8 -5
  588. package/dist/components/sidenav/link.js.map +1 -1
  589. package/dist/components/sidenav/menu-item.d.ts +2 -2
  590. package/dist/components/sidenav/menu-item.js +2 -1
  591. package/dist/components/sidenav/menu-item.js.map +1 -1
  592. package/dist/components/sidenav/menu.d.ts +2 -2
  593. package/dist/components/sidenav/menu.js +10 -5
  594. package/dist/components/sidenav/menu.js.map +1 -1
  595. package/dist/components/sidenav/styles.module.css +10 -2
  596. package/dist/components/sidenav/trigger.d.ts +2 -2
  597. package/dist/components/sidenav/trigger.js +1 -1
  598. package/dist/components/sidenav/trigger.js.map +1 -1
  599. package/dist/components/sidenav/types.d.ts +6 -1
  600. package/dist/components/skeleton/index.d.ts +2 -2
  601. package/dist/components/slider/index.d.ts +2 -2
  602. package/dist/components/slider/index.js +9 -6
  603. package/dist/components/slider/index.js.map +1 -1
  604. package/dist/components/slider/types.d.ts +1 -1
  605. package/dist/components/status-indicator/index.d.ts +2 -2
  606. package/dist/components/switch/context.d.ts +6 -6
  607. package/dist/components/switch/context.js.map +1 -1
  608. package/dist/components/switch/index.d.ts +2 -2
  609. package/dist/components/switch/index.js +3 -1
  610. package/dist/components/switch/index.js.map +1 -1
  611. package/dist/components/switch/styles.module.css +8 -0
  612. package/dist/components/switch/types.d.ts +1 -1
  613. package/dist/components/table/body.d.ts +2 -2
  614. package/dist/components/table/cell.d.ts +2 -2
  615. package/dist/components/table/context.d.ts +2 -2
  616. package/dist/components/table/header-cell.d.ts +2 -2
  617. package/dist/components/table/header.d.ts +2 -2
  618. package/dist/components/table/index.d.ts +2 -2
  619. package/dist/components/table/index.js +4 -4
  620. package/dist/components/table/index.js.map +1 -1
  621. package/dist/components/table/row.d.ts +2 -2
  622. package/dist/components/tabs/context.d.ts +8 -8
  623. package/dist/components/tabs/context.js.map +1 -1
  624. package/dist/components/tabs/index.d.ts +2 -2
  625. package/dist/components/tabs/index.js +3 -1
  626. package/dist/components/tabs/index.js.map +1 -1
  627. package/dist/components/tabs/list.d.ts +3 -3
  628. package/dist/components/tabs/list.js +2 -1
  629. package/dist/components/tabs/list.js.map +1 -1
  630. package/dist/components/tabs/panel.d.ts +3 -3
  631. package/dist/components/tabs/panel.js +2 -1
  632. package/dist/components/tabs/panel.js.map +1 -1
  633. package/dist/components/tabs/tab.d.ts +2 -2
  634. package/dist/components/tabs/tab.js +3 -1
  635. package/dist/components/tabs/tab.js.map +1 -1
  636. package/dist/components/tabs/types.d.ts +1 -1
  637. package/dist/components/text-area-field/context.d.ts +5 -5
  638. package/dist/components/text-area-field/context.js.map +1 -1
  639. package/dist/components/text-area-field/index.d.ts +2 -2
  640. package/dist/components/text-area-field/index.js +8 -3
  641. package/dist/components/text-area-field/index.js.map +1 -1
  642. package/dist/components/text-area-field/types.d.ts +3 -1
  643. package/dist/components/text-field/context.d.ts +6 -6
  644. package/dist/components/text-field/context.js.map +1 -1
  645. package/dist/components/text-field/index.d.ts +2 -2
  646. package/dist/components/text-field/index.js +9 -5
  647. package/dist/components/text-field/index.js.map +1 -1
  648. package/dist/components/text-field/types.d.ts +7 -6
  649. package/dist/components/time-field/index.d.ts +3 -3
  650. package/dist/components/time-field/index.js +4 -3
  651. package/dist/components/time-field/index.js.map +1 -1
  652. package/dist/components/time-field/types.d.ts +1 -1
  653. package/dist/components/tooltip/context.d.ts +3 -3
  654. package/dist/components/tooltip/context.js.map +1 -1
  655. package/dist/components/tooltip/index.d.ts +2 -2
  656. package/dist/components/tooltip/index.js +3 -2
  657. package/dist/components/tooltip/index.js.map +1 -1
  658. package/dist/components/tooltip/styles.module.css +35 -0
  659. package/dist/components/tooltip/trigger.d.ts +2 -2
  660. package/dist/components/tooltip/trigger.js +6 -3
  661. package/dist/components/tooltip/trigger.js.map +1 -1
  662. package/dist/components/tooltip/types.d.ts +8 -3
  663. package/dist/components/tree/context.d.ts +3 -3
  664. package/dist/components/tree/index.d.ts +4 -2
  665. package/dist/components/tree/index.js +31 -16
  666. package/dist/components/tree/index.js.map +1 -1
  667. package/dist/components/tree/item-actions.d.ts +2 -2
  668. package/dist/components/tree/item-content.d.ts +2 -2
  669. package/dist/components/tree/item-content.js +10 -9
  670. package/dist/components/tree/item-content.js.map +1 -1
  671. package/dist/components/tree/item-description.d.ts +3 -3
  672. package/dist/components/tree/item-description.js +1 -1
  673. package/dist/components/tree/item-description.js.map +1 -1
  674. package/dist/components/tree/item-label.d.ts +3 -3
  675. package/dist/components/tree/item-label.js +1 -1
  676. package/dist/components/tree/item-label.js.map +1 -1
  677. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  678. package/dist/components/tree/item.d.ts +2 -2
  679. package/dist/components/tree/item.js +14 -7
  680. package/dist/components/tree/item.js.map +1 -1
  681. package/dist/components/tree/lines.d.ts +2 -2
  682. package/dist/components/tree/types.d.ts +30 -15
  683. package/dist/components/video/index.d.ts +2 -2
  684. package/dist/components/view-stack/context.d.ts +2 -2
  685. package/dist/components/view-stack/index.d.ts +2 -2
  686. package/dist/components/view-stack/trigger.d.ts +2 -2
  687. package/dist/components/view-stack/trigger.js +1 -1
  688. package/dist/components/view-stack/trigger.js.map +1 -1
  689. package/dist/components/view-stack/types.d.ts +1 -1
  690. package/dist/components/view-stack/view.d.ts +2 -2
  691. package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +1 -1
  692. package/dist/hooks/coordinate-field/use-coordinate-field.js +1 -1
  693. package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -1
  694. package/dist/hooks/use-tree/actions/cache.d.ts +406 -17
  695. package/dist/hooks/use-tree/actions/cache.js +488 -16
  696. package/dist/hooks/use-tree/actions/cache.js.map +1 -1
  697. package/dist/hooks/use-tree/actions/index.d.ts +36 -22
  698. package/dist/hooks/use-tree/actions/index.js +103 -36
  699. package/dist/hooks/use-tree/actions/index.js.map +1 -1
  700. package/dist/hooks/use-tree/state/index.d.ts +25 -2
  701. package/dist/hooks/use-tree/state/index.js +27 -3
  702. package/dist/hooks/use-tree/state/index.js.map +1 -1
  703. package/dist/hooks/use-tree/state/utils.d.ts +28 -0
  704. package/dist/hooks/use-tree/state/utils.js +29 -1
  705. package/dist/hooks/use-tree/state/utils.js.map +1 -1
  706. package/dist/hooks/use-tree/types.d.ts +66 -24
  707. package/dist/index.d.ts +27 -7
  708. package/dist/index.js +27 -10
  709. package/dist/lib/utils.d.ts +1 -1
  710. package/dist/lib/utils.js.map +1 -1
  711. package/dist/providers/portal.d.ts +2 -2
  712. package/dist/providers/portal.js +2 -2
  713. package/dist/providers/portal.js.map +1 -1
  714. package/dist/providers/theme-provider.d.ts +4 -4
  715. package/dist/providers/theme-provider.js +6 -7
  716. package/dist/providers/theme-provider.js.map +1 -1
  717. package/package.json +77 -36
  718. 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
  719. 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
@@ -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";
@@ -48,7 +48,7 @@ import Show from "@accelint/icons/show";
48
48
  * @returns The rendered TreeItemContent component.
49
49
  */
50
50
  function TreeItemContent({ children }) {
51
- const { showVisibility, variant, visibleKeys, onVisibilityChange } = useContext(TreeContext);
51
+ const { showVisibility, variant, visibleKeys, indeterminateKeys, onVisibilityChange } = useContext(TreeContext);
52
52
  const { isVisible, isViewable, ancestors } = useContext(TreeItemContext);
53
53
  const size = variant === "cozy" ? "medium" : "small";
54
54
  return /* @__PURE__ */ jsx(TreeItemContent$1, { children: (renderProps) => {
@@ -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,12 +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
- isDisabled
106
+ isDisabled,
107
+ isIndeterminate: indeterminateKeys?.has(id)
107
108
  }),
108
- allowsDragging && /* @__PURE__ */ jsx(Button$1, {
109
+ allowsDragging && /* @__PURE__ */ jsx(Button, {
109
110
  slot: "drag",
110
111
  variant: "icon",
111
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 { showVisibility, variant, visibleKeys, 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 />\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,EAAE,gBAAgB,SAAS,aAAa,uBAC5C,WAAW,YAAY;CACzB,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;OACZ;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"}
@@ -10,8 +10,8 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { TextProps } from "react-aria-components";
14
- import * as react_jsx_runtime108 from "react/jsx-runtime";
13
+ import * as react_jsx_runtime198 from "react/jsx-runtime";
14
+ import { TextProps } from "react-aria-components/Text";
15
15
 
16
16
  //#region src/components/tree/item-description.d.ts
17
17
  /**
@@ -33,7 +33,7 @@ import * as react_jsx_runtime108 from "react/jsx-runtime";
33
33
  declare function TreeItemDescription({
34
34
  children,
35
35
  className
36
- }: TextProps): react_jsx_runtime108.JSX.Element | null;
36
+ }: TextProps): react_jsx_runtime198.JSX.Element | null;
37
37
  //#endregion
38
38
  export { TreeItemDescription };
39
39
  //# sourceMappingURL=item-description.d.ts.map
@@ -14,8 +14,8 @@
14
14
  import { TreeContext } from "./context.js";
15
15
  import { useContext } from "react";
16
16
  import { clsx } from "@accelint/design-foundation/lib/utils";
17
- import { Text } from "react-aria-components";
18
17
  import { jsx } from "react/jsx-runtime";
18
+ import { Text } from "react-aria-components/Text";
19
19
  import styles from "./styles.module.css";
20
20
 
21
21
  //#region src/components/tree/item-description.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/tree/item-description.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 { useContext } from 'react';\nimport { Text, type TextProps } from 'react-aria-components';\nimport { TreeContext } from './context';\nimport styles from './styles.module.css';\n\n/**\n * TreeItemDescription - Secondary descriptive text for a tree item\n *\n * @example\n * ```tsx\n * <TreeItemContent>\n * <TreeItemLabel>Project Files</TreeItemLabel>\n * <TreeItemDescription>Last modified 2 hours ago</TreeItemDescription>\n * </TreeItemContent>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.children - Description text content.\n * @param props.className - CSS class for the description.\n * @returns The rendered TreeItemDescription component, or null if variant is 'crammed'.\n */\nexport function TreeItemDescription({ children, className }: TextProps) {\n const { variant } = useContext(TreeContext);\n\n return variant !== 'crammed' ? (\n <Text\n data-slot='description'\n className={clsx(styles.description, className)}\n >\n {children}\n </Text>\n ) : null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,SAAgB,oBAAoB,EAAE,UAAU,aAAwB;CACtE,MAAM,EAAE,YAAY,WAAW,YAAY;AAE3C,QAAO,YAAY,YACjB,oBAAC;EACC,aAAU;EACV,WAAW,KAAK,OAAO,aAAa,UAAU;EAE7C;GACI,GACL"}
1
+ {"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/tree/item-description.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 { useContext } from 'react';\nimport { Text, type TextProps } from 'react-aria-components/Text';\nimport { TreeContext } from './context';\nimport styles from './styles.module.css';\n\n/**\n * TreeItemDescription - Secondary descriptive text for a tree item\n *\n * @example\n * ```tsx\n * <TreeItemContent>\n * <TreeItemLabel>Project Files</TreeItemLabel>\n * <TreeItemDescription>Last modified 2 hours ago</TreeItemDescription>\n * </TreeItemContent>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.children - Description text content.\n * @param props.className - CSS class for the description.\n * @returns The rendered TreeItemDescription component, or null if variant is 'crammed'.\n */\nexport function TreeItemDescription({ children, className }: TextProps) {\n const { variant } = useContext(TreeContext);\n\n return variant !== 'crammed' ? (\n <Text\n data-slot='description'\n className={clsx(styles.description, className)}\n >\n {children}\n </Text>\n ) : null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,SAAgB,oBAAoB,EAAE,UAAU,aAAwB;CACtE,MAAM,EAAE,YAAY,WAAW,YAAY;AAE3C,QAAO,YAAY,YACjB,oBAAC;EACC,aAAU;EACV,WAAW,KAAK,OAAO,aAAa,UAAU;EAE7C;GACI,GACL"}
@@ -10,8 +10,8 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { TextProps } from "react-aria-components";
14
- import * as react_jsx_runtime104 from "react/jsx-runtime";
13
+ import * as react_jsx_runtime203 from "react/jsx-runtime";
14
+ import { TextProps } from "react-aria-components/Text";
15
15
 
16
16
  //#region src/components/tree/item-label.d.ts
17
17
  /**
@@ -33,7 +33,7 @@ import * as react_jsx_runtime104 from "react/jsx-runtime";
33
33
  declare function TreeItemLabel({
34
34
  children,
35
35
  className
36
- }: TextProps): react_jsx_runtime104.JSX.Element;
36
+ }: TextProps): react_jsx_runtime203.JSX.Element;
37
37
  //#endregion
38
38
  export { TreeItemLabel };
39
39
  //# sourceMappingURL=item-label.d.ts.map
@@ -12,8 +12,8 @@
12
12
 
13
13
 
14
14
  import { clsx } from "@accelint/design-foundation/lib/utils";
15
- import { Text } from "react-aria-components";
16
15
  import { jsx } from "react/jsx-runtime";
16
+ import { Text } from "react-aria-components/Text";
17
17
  import styles from "./styles.module.css";
18
18
 
19
19
  //#region src/components/tree/item-label.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"item-label.js","names":[],"sources":["../../../src/components/tree/item-label.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 { Text, type TextProps } from 'react-aria-components';\nimport styles from './styles.module.css';\n\n/**\n * TreeItemLabel - Primary text label for a tree item\n *\n * @example\n * ```tsx\n * <TreeItemContent>\n * <TreeItemLabel>Documents</TreeItemLabel>\n * <TreeItemDescription>Folder</TreeItemDescription>\n * </TreeItemContent>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.children - Label text content.\n * @param props.className - CSS class for the label.\n * @returns The rendered TreeItemLabel component.\n */\nexport function TreeItemLabel({ children, className }: TextProps) {\n return <Text className={clsx(styles.label, className)}>{children}</Text>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAgB,cAAc,EAAE,UAAU,aAAwB;AAChE,QAAO,oBAAC;EAAK,WAAW,KAAK,OAAO,OAAO,UAAU;EAAG;GAAgB"}
1
+ {"version":3,"file":"item-label.js","names":[],"sources":["../../../src/components/tree/item-label.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 { Text, type TextProps } from 'react-aria-components/Text';\nimport styles from './styles.module.css';\n\n/**\n * TreeItemLabel - Primary text label for a tree item\n *\n * @example\n * ```tsx\n * <TreeItemContent>\n * <TreeItemLabel>Documents</TreeItemLabel>\n * <TreeItemDescription>Folder</TreeItemDescription>\n * </TreeItemContent>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.children - Label text content.\n * @param props.className - CSS class for the label.\n * @returns The rendered TreeItemLabel component.\n */\nexport function TreeItemLabel({ children, className }: TextProps) {\n return <Text className={clsx(styles.label, className)}>{children}</Text>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAgB,cAAc,EAAE,UAAU,aAAwB;AAChE,QAAO,oBAAC;EAAK,WAAW,KAAK,OAAO,OAAO,UAAU;EAAG;GAAgB"}
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { IconProps } from "../icon/types.js";
14
- import * as react_jsx_runtime103 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime202 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/tree/item-prefix-icon.d.ts
17
17
  /**
@@ -33,7 +33,7 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
33
33
  declare function TreeItemPrefixIcon({
34
34
  children,
35
35
  className
36
- }: IconProps): react_jsx_runtime103.JSX.Element;
36
+ }: IconProps): react_jsx_runtime202.JSX.Element;
37
37
  //#endregion
38
38
  export { TreeItemPrefixIcon };
39
39
  //# sourceMappingURL=item-prefix-icon.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { TreeItemProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime145 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime204 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/tree/item.d.ts
18
18
 
@@ -44,7 +44,7 @@ declare function TreeItem({
44
44
  className,
45
45
  id,
46
46
  ...rest
47
- }: TreeItemProps): react_jsx_runtime145.JSX.Element;
47
+ }: TreeItemProps): react_jsx_runtime204.JSX.Element;
48
48
  //#endregion
49
49
  export { TreeItem };
50
50
  //# sourceMappingURL=item.d.ts.map
@@ -15,10 +15,11 @@
15
15
 
16
16
  import { TreeContext, TreeItemContext } from "./context.js";
17
17
  import "client-only";
18
- import { useContext } from "react";
18
+ import { useContext, useMemo } from "react";
19
19
  import { clsx } from "@accelint/design-foundation/lib/utils";
20
- import { TreeItem as TreeItem$1, composeRenderProps } from "react-aria-components";
20
+ import { composeRenderProps } from "react-aria-components/composeRenderProps";
21
21
  import { jsx } from "react/jsx-runtime";
22
+ import { TreeItem as TreeItem$1 } from "react-aria-components/Tree";
22
23
  import styles from "./styles.module.css";
23
24
 
24
25
  //#region src/components/tree/item.tsx
@@ -51,12 +52,18 @@ function TreeItem({ className, id, ...rest }) {
51
52
  const { ancestors } = useContext(TreeItemContext);
52
53
  const isViewable = visibilityComputedKeys?.has(id) || isStatic && ancestors.every((key) => visibleKeys?.has(key));
53
54
  const isVisible = visibleKeys?.has(id);
55
+ const contextValue = useMemo(() => ({
56
+ isVisible,
57
+ isViewable,
58
+ ancestors: [...ancestors, id]
59
+ }), [
60
+ isVisible,
61
+ isViewable,
62
+ ancestors,
63
+ id
64
+ ]);
54
65
  return /* @__PURE__ */ jsx(TreeItemContext.Provider, {
55
- value: {
56
- isVisible,
57
- isViewable,
58
- ancestors: [...ancestors, id]
59
- },
66
+ value: contextValue,
60
67
  children: /* @__PURE__ */ jsx(TreeItem$1, {
61
68
  ...rest,
62
69
  id,
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","names":["AriaTreeItem","className"],"sources":["../../../src/components/tree/item.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 { useContext } from 'react';\nimport {\n TreeItem as AriaTreeItem,\n composeRenderProps,\n} from 'react-aria-components';\nimport { TreeContext, TreeItemContext } from './context';\nimport styles from './styles.module.css';\nimport type { TreeItemProps } from './types';\n\n/**\n * TreeItem - Individual node in the tree hierarchy\n *\n * @example\n * ```tsx\n * <Tree>\n * <TreeItem id=\"root\" textValue=\"Root\">\n * <TreeItemContent>\n * <TreeItemLabel>Root Node</TreeItemLabel>\n * </TreeItemContent>\n * <TreeItem id=\"child\" textValue=\"Child\">\n * <TreeItemContent>\n * <TreeItemLabel>Child Node</TreeItemLabel>\n * </TreeItemContent>\n * </TreeItem>\n * </TreeItem>\n * </Tree>\n * ```\n *\n * @param props - {@link TreeItemProps}\n * @param props.className - CSS class for the tree item.\n * @param props.id - Unique identifier for the tree item.\n * @returns The rendered TreeItem component.\n */\nexport function TreeItem({ className, id, ...rest }: TreeItemProps) {\n const { visibilityComputedKeys, visibleKeys, isStatic } =\n useContext(TreeContext);\n const { ancestors } = useContext(TreeItemContext);\n const isViewable =\n visibilityComputedKeys?.has(id) ||\n (isStatic && ancestors.every((key) => visibleKeys?.has(key)));\n const isVisible = visibleKeys?.has(id);\n\n return (\n <TreeItemContext.Provider\n value={{\n isVisible,\n isViewable,\n ancestors: [...ancestors, id],\n }}\n >\n <AriaTreeItem\n {...rest}\n id={id}\n className={composeRenderProps(className, (className) =>\n clsx('group/tree-item', styles.item, className),\n )}\n data-viewable={isViewable || null}\n data-visible={isVisible || null}\n />\n </TreeItemContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,SAAgB,SAAS,EAAE,WAAW,IAAI,GAAG,QAAuB;CAClE,MAAM,EAAE,wBAAwB,aAAa,aAC3C,WAAW,YAAY;CACzB,MAAM,EAAE,cAAc,WAAW,gBAAgB;CACjD,MAAM,aACJ,wBAAwB,IAAI,GAAG,IAC9B,YAAY,UAAU,OAAO,QAAQ,aAAa,IAAI,IAAI,CAAC;CAC9D,MAAM,YAAY,aAAa,IAAI,GAAG;AAEtC,QACE,oBAAC,gBAAgB;EACf,OAAO;GACL;GACA;GACA,WAAW,CAAC,GAAG,WAAW,GAAG;GAC9B;YAED,oBAACA;GACC,GAAI;GACA;GACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,mBAAmB,OAAO,MAAMC,YAAU,CAChD;GACD,iBAAe,cAAc;GAC7B,gBAAc,aAAa;IAC3B;GACuB"}
1
+ {"version":3,"file":"item.js","names":["AriaTreeItem","className"],"sources":["../../../src/components/tree/item.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 { useContext, useMemo } from 'react';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { TreeItem as AriaTreeItem } from 'react-aria-components/Tree';\nimport { TreeContext, TreeItemContext } from './context';\nimport styles from './styles.module.css';\nimport type { TreeItemProps } from './types';\n\n/**\n * TreeItem - Individual node in the tree hierarchy\n *\n * @example\n * ```tsx\n * <Tree>\n * <TreeItem id=\"root\" textValue=\"Root\">\n * <TreeItemContent>\n * <TreeItemLabel>Root Node</TreeItemLabel>\n * </TreeItemContent>\n * <TreeItem id=\"child\" textValue=\"Child\">\n * <TreeItemContent>\n * <TreeItemLabel>Child Node</TreeItemLabel>\n * </TreeItemContent>\n * </TreeItem>\n * </TreeItem>\n * </Tree>\n * ```\n *\n * @param props - {@link TreeItemProps}\n * @param props.className - CSS class for the tree item.\n * @param props.id - Unique identifier for the tree item.\n * @returns The rendered TreeItem component.\n */\nexport function TreeItem({ className, id, ...rest }: TreeItemProps) {\n const { visibilityComputedKeys, visibleKeys, isStatic } =\n useContext(TreeContext);\n const { ancestors } = useContext(TreeItemContext);\n const isViewable =\n visibilityComputedKeys?.has(id) ||\n (isStatic && ancestors.every((key) => visibleKeys?.has(key)));\n const isVisible = visibleKeys?.has(id);\n\n const contextValue = useMemo(\n () => ({\n isVisible,\n isViewable,\n ancestors: [...ancestors, id],\n }),\n [isVisible, isViewable, ancestors, id],\n );\n\n return (\n <TreeItemContext.Provider value={contextValue}>\n <AriaTreeItem\n {...rest}\n id={id}\n className={composeRenderProps(className, (className) =>\n clsx('group/tree-item', styles.item, className),\n )}\n data-viewable={isViewable || null}\n data-visible={isVisible || null}\n />\n </TreeItemContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,SAAS,EAAE,WAAW,IAAI,GAAG,QAAuB;CAClE,MAAM,EAAE,wBAAwB,aAAa,aAC3C,WAAW,YAAY;CACzB,MAAM,EAAE,cAAc,WAAW,gBAAgB;CACjD,MAAM,aACJ,wBAAwB,IAAI,GAAG,IAC9B,YAAY,UAAU,OAAO,QAAQ,aAAa,IAAI,IAAI,CAAC;CAC9D,MAAM,YAAY,aAAa,IAAI,GAAG;CAEtC,MAAM,eAAe,eACZ;EACL;EACA;EACA,WAAW,CAAC,GAAG,WAAW,GAAG;EAC9B,GACD;EAAC;EAAW;EAAY;EAAW;EAAG,CACvC;AAED,QACE,oBAAC,gBAAgB;EAAS,OAAO;YAC/B,oBAACA;GACC,GAAI;GACA;GACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,mBAAmB,OAAO,MAAMC,YAAU,CAChD;GACD,iBAAe,cAAc;GAC7B,gBAAc,aAAa;IAC3B;GACuB"}
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import * as react35 from "react";
13
+ import * as react51 from "react";
14
14
 
15
15
  //#region src/components/tree/lines.d.ts
16
16
  /**
@@ -22,7 +22,7 @@ import * as react35 from "react";
22
22
  * @param props.ancestorLastOfSet - Array tracking which ancestors are last of set at each level.
23
23
  * @returns An array of Line components representing the tree structure.
24
24
  */
25
- declare const TreeLines: react35.NamedExoticComponent<{
25
+ declare const TreeLines: react51.NamedExoticComponent<{
26
26
  level: number;
27
27
  isLastOfSet: boolean;
28
28
  ancestorLastOfSet: boolean[];
@@ -11,25 +11,28 @@
11
11
  */
12
12
 
13
13
  import { DragAndDropConfig, TreeNode } from "../../hooks/use-tree/types.js";
14
- import { RenderProps, TreeItemContentRenderProps as TreeItemContentRenderProps$1, TreeItemProps as TreeItemProps$1, TreeProps as TreeProps$1 } from "react-aria-components";
15
- import { Key as Key$1 } from "@react-types/shared";
14
+ import { TreeItemContentRenderProps as TreeItemContentRenderProps$1, TreeItemProps as TreeItemProps$1, TreeProps as TreeProps$1 } from "react-aria-components/Tree";
15
+ import { Key } from "@react-types/shared";
16
+ import { RenderProps } from "react-aria-components/useRenderProps";
16
17
 
17
18
  //#region src/components/tree/types.d.ts
18
19
  /** Visual density variant for Tree components. */
19
20
  type TreeStyleVariant = 'cozy' | 'compact' | 'crammed';
20
21
  /**
21
22
  * Props for the Tree component.
23
+ *
24
+ * @template T - The type of custom values stored in tree nodes (accessed via `node.values`).
22
25
  */
23
26
  type TreeProps<T> = Omit<TreeProps$1<TreeNode<T>>, 'defaultExpandedKeys' | 'defaultSelectedKeys' | 'disabledKeys' | 'expandedKeys' | 'selectedKeys' | 'onSelectionChange'> & {
24
- disabledKeys?: Set<Key$1>;
27
+ disabledKeys?: Set<Key>;
25
28
  dragAndDropConfig?: DragAndDropConfig;
26
- expandedKeys?: Set<Key$1>;
27
- selectedKeys?: Set<Key$1>;
28
- visibleKeys?: Set<Key$1>;
29
+ expandedKeys?: Set<Key>;
30
+ selectedKeys?: Set<Key>;
31
+ visibleKeys?: Set<Key>;
29
32
  showRuleLines?: boolean;
30
33
  showVisibility?: boolean;
31
- onVisibilityChange?: (keys: Set<Key$1>) => void;
32
- onSelectionChange?: (keys: Set<Key$1>) => void;
34
+ onVisibilityChange?: (keys: Set<Key>) => void;
35
+ onSelectionChange?: (keys: Set<Key>) => void;
33
36
  variant?: TreeStyleVariant;
34
37
  };
35
38
  /**
@@ -37,10 +40,14 @@ type TreeProps<T> = Omit<TreeProps$1<TreeNode<T>>, 'defaultExpandedKeys' | 'defa
37
40
  */
38
41
  type TreeItemProps = Omit<TreeItemProps$1, 'id'> & {
39
42
  /** Unique identifier for the tree item. */
40
- id: Key$1;
43
+ id: Key;
41
44
  };
42
45
  /**
43
46
  * Props for the TreeItemContent component.
47
+ *
48
+ * The `children` prop accepts either a ReactNode or a render function
49
+ * receiving {@link TreeItemContentRenderProps} — use the render function form
50
+ * to access `isVisible`, `isViewable`, and `variant` from context.
44
51
  */
45
52
  type TreeItemContentProps = Pick<RenderProps<TreeItemContentRenderProps>, 'children'>;
46
53
  /**
@@ -58,11 +65,19 @@ type TreeItemContentRenderProps = TreeItemContentRenderProps$1 & {
58
65
  * Context value for the Tree component.
59
66
  */
60
67
  type TreeContextValue = Required<Pick<TreeProps<unknown>, 'showRuleLines' | 'showVisibility' | 'variant' | 'onVisibilityChange'>> & {
61
- disabledKeys?: Set<Key$1>;
62
- expandedKeys?: Set<Key$1>;
63
- selectedKeys?: Set<Key$1>;
64
- visibleKeys?: Set<Key$1>;
65
- visibilityComputedKeys?: Set<Key$1>;
68
+ /** Keys of items explicitly disabled. */
69
+ disabledKeys?: Set<Key>;
70
+ /** Keys of items currently expanded. */
71
+ expandedKeys?: Set<Key>;
72
+ /** Keys of items currently selected. */
73
+ selectedKeys?: Set<Key>;
74
+ /** Keys of items whose own `isVisible` flag is true. */
75
+ visibleKeys?: Set<Key>;
76
+ /** Keys of items that are visible after accounting for ancestor visibility. */
77
+ visibilityComputedKeys?: Set<Key>;
78
+ /** Keys of items in an indeterminate selection state (cascade mode only). */
79
+ indeterminateKeys?: Set<Key>;
80
+ /** Whether the tree uses a static (hard-coded) rather than dynamic (data-driven) collection. */
66
81
  isStatic: boolean;
67
82
  };
68
83
  /**
@@ -74,7 +89,7 @@ type TreeItemContextValue = {
74
89
  /** Whether the item is viewable based on ancestor visibility. */
75
90
  isViewable?: boolean;
76
91
  /** Array of ancestor item keys. */
77
- ancestors: Key$1[];
92
+ ancestors: Key[];
78
93
  };
79
94
  //#endregion
80
95
  export { TreeContextValue, TreeItemContentProps, TreeItemContentRenderProps, TreeItemContextValue, TreeItemProps, TreeProps, TreeStyleVariant };
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { VideoProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime105 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime209 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/video/index.d.ts
18
18
 
@@ -91,7 +91,7 @@ declare function Video({
91
91
  noMutedPref,
92
92
  lang,
93
93
  ...rest
94
- }: VideoProps): react_jsx_runtime105.JSX.Element;
94
+ }: VideoProps): react_jsx_runtime209.JSX.Element;
95
95
  //#endregion
96
96
  export { Video };
97
97
  //# sourceMappingURL=index.d.ts.map
@@ -12,12 +12,12 @@
12
12
 
13
13
  import { ViewStackContextValue } from "./types.js";
14
14
  import "client-only";
15
- import * as react47 from "react";
15
+ import * as react52 from "react";
16
16
  import { UniqueId } from "@accelint/core";
17
17
 
18
18
  //#region src/components/view-stack/context.d.ts
19
19
  /** Context for sharing state across ViewStack components */
20
- declare const ViewStackContext: react47.Context<ViewStackContextValue>;
20
+ declare const ViewStackContext: react52.Context<ViewStackContextValue>;
21
21
  /** Event handlers for ViewStack events */
22
22
  declare const ViewStackEventHandlers: {
23
23
  readonly back: (stack: UniqueId) => void;
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { ViewStackProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime106 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime212 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/view-stack/index.d.ts
18
18
 
@@ -47,7 +47,7 @@ declare function ViewStack({
47
47
  children,
48
48
  defaultView,
49
49
  onChange
50
- }: ViewStackProps): react_jsx_runtime106.JSX.Element;
50
+ }: ViewStackProps): react_jsx_runtime212.JSX.Element;
51
51
  //#endregion
52
52
  export { ViewStack };
53
53
  //# sourceMappingURL=index.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { ViewStackTriggerProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime107 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime214 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/view-stack/trigger.d.ts
18
18
 
@@ -45,7 +45,7 @@ import * as react_jsx_runtime107 from "react/jsx-runtime";
45
45
  declare function ViewStackTrigger({
46
46
  children,
47
47
  for: types
48
- }: ViewStackTriggerProps): react_jsx_runtime107.JSX.Element;
48
+ }: ViewStackTriggerProps): react_jsx_runtime214.JSX.Element;
49
49
  //#endregion
50
50
  export { ViewStackTrigger };
51
51
  //# sourceMappingURL=trigger.d.ts.map
@@ -16,9 +16,9 @@
16
16
  import { ViewStackContext, useViewStackEmit } from "./context.js";
17
17
  import "client-only";
18
18
  import { useContext } from "react";
19
- import { Pressable } from "react-aria-components";
20
19
  import { jsx } from "react/jsx-runtime";
21
20
  import { isUUID } from "@accelint/core";
21
+ import { Pressable } from "react-aria-components/Pressable";
22
22
 
23
23
  //#region src/components/view-stack/trigger.tsx
24
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.js","names":[],"sources":["../../../src/components/view-stack/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 { isUUID, type UniqueId } from '@accelint/core';\nimport { useContext } from 'react';\nimport { Pressable } from 'react-aria-components';\nimport { useViewStackEmit, ViewStackContext } from './context';\nimport type { ViewStackTriggerProps } from './types';\n\n/**\n * ViewStackTrigger - Pressable element that triggers ViewStack navigation actions\n *\n * @example\n * ```tsx\n * <ViewStack id=\"main-stack\">\n * <ViewStackView id=\"home\">\n * <h1>Home</h1>\n * <ViewStackTrigger for=\"settings-view-id\">\n * <Button>Go to Settings</Button>\n * </ViewStackTrigger>\n * </ViewStackView>\n * <ViewStackView id=\"settings-view-id\">\n * <h1>Settings</h1>\n * <ViewStackTrigger for=\"back:main-stack\">\n * <Button>Back</Button>\n * </ViewStackTrigger>\n * </ViewStackView>\n * </ViewStack>\n * ```\n *\n * @param props - {@link ViewStackTriggerProps}\n * @param props.children - Pressable children content.\n * @param props.for - Navigation action(s) to trigger on press.\n * @returns The rendered ViewStackTrigger component.\n */\nexport function ViewStackTrigger({\n children,\n for: types,\n}: ViewStackTriggerProps) {\n const { parent } = useContext(ViewStackContext);\n const viewStackEmit = useViewStackEmit();\n\n function handlePress() {\n for (const type of Array.isArray(types) ? types : [types]) {\n let [event, id] = (isUUID(type) ? ['push', type] : type.split(':')) as [\n 'back' | 'clear' | 'reset' | 'push',\n UniqueId | undefined | null,\n ];\n\n id ??= parent;\n\n if (!id) {\n continue;\n }\n\n viewStackEmit[event](id);\n }\n }\n\n return <Pressable onPress={handlePress}>{children}</Pressable>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,iBAAiB,EAC/B,UACA,KAAK,SACmB;CACxB,MAAM,EAAE,WAAW,WAAW,iBAAiB;CAC/C,MAAM,gBAAgB,kBAAkB;CAExC,SAAS,cAAc;AACrB,OAAK,MAAM,QAAQ,MAAM,QAAQ,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE;GACzD,IAAI,CAAC,OAAO,MAAO,OAAO,KAAK,GAAG,CAAC,QAAQ,KAAK,GAAG,KAAK,MAAM,IAAI;AAKlE,UAAO;AAEP,OAAI,CAAC,GACH;AAGF,iBAAc,OAAO,GAAG;;;AAI5B,QAAO,oBAAC;EAAU,SAAS;EAAc;GAAqB"}
1
+ {"version":3,"file":"trigger.js","names":[],"sources":["../../../src/components/view-stack/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 { isUUID, type UniqueId } from '@accelint/core';\nimport { useContext } from 'react';\nimport { Pressable } from 'react-aria-components/Pressable';\nimport { useViewStackEmit, ViewStackContext } from './context';\nimport type { ViewStackTriggerProps } from './types';\n\n/**\n * ViewStackTrigger - Pressable element that triggers ViewStack navigation actions\n *\n * @example\n * ```tsx\n * <ViewStack id=\"main-stack\">\n * <ViewStackView id=\"home\">\n * <h1>Home</h1>\n * <ViewStackTrigger for=\"settings-view-id\">\n * <Button>Go to Settings</Button>\n * </ViewStackTrigger>\n * </ViewStackView>\n * <ViewStackView id=\"settings-view-id\">\n * <h1>Settings</h1>\n * <ViewStackTrigger for=\"back:main-stack\">\n * <Button>Back</Button>\n * </ViewStackTrigger>\n * </ViewStackView>\n * </ViewStack>\n * ```\n *\n * @param props - {@link ViewStackTriggerProps}\n * @param props.children - Pressable children content.\n * @param props.for - Navigation action(s) to trigger on press.\n * @returns The rendered ViewStackTrigger component.\n */\nexport function ViewStackTrigger({\n children,\n for: types,\n}: ViewStackTriggerProps) {\n const { parent } = useContext(ViewStackContext);\n const viewStackEmit = useViewStackEmit();\n\n function handlePress() {\n for (const type of Array.isArray(types) ? types : [types]) {\n let [event, id] = (isUUID(type) ? ['push', type] : type.split(':')) as [\n 'back' | 'clear' | 'reset' | 'push',\n UniqueId | undefined | null,\n ];\n\n id ??= parent;\n\n if (!id) {\n continue;\n }\n\n viewStackEmit[event](id);\n }\n }\n\n return <Pressable onPress={handlePress}>{children}</Pressable>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,iBAAiB,EAC/B,UACA,KAAK,SACmB;CACxB,MAAM,EAAE,WAAW,WAAW,iBAAiB;CAC/C,MAAM,gBAAgB,kBAAkB;CAExC,SAAS,cAAc;AACrB,OAAK,MAAM,QAAQ,MAAM,QAAQ,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE;GACzD,IAAI,CAAC,OAAO,MAAO,OAAO,KAAK,GAAG,CAAC,QAAQ,KAAK,GAAG,KAAK,MAAM,IAAI;AAKlE,UAAO;AAEP,OAAI,CAAC,GACH;AAGF,iBAAc,OAAO,GAAG;;;AAI5B,QAAO,oBAAC;EAAU,SAAS;EAAc;GAAqB"}
@@ -12,9 +12,9 @@
12
12
 
13
13
  import { ViewStackEventTypes } from "./events.js";
14
14
  import { ComponentProps, PropsWithChildren, RefAttributes } from "react";
15
- import { Pressable } from "react-aria-components";
16
15
  import { UniqueId } from "@accelint/core";
17
16
  import { Payload } from "@accelint/bus";
17
+ import { Pressable } from "react-aria-components/Pressable";
18
18
 
19
19
  //#region src/components/view-stack/types.d.ts
20
20
  /**
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { ViewStackViewProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime147 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime199 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/view-stack/view.d.ts
18
18
 
@@ -43,7 +43,7 @@ import * as react_jsx_runtime147 from "react/jsx-runtime";
43
43
  declare function ViewStackView({
44
44
  id,
45
45
  children
46
- }: ViewStackViewProps): react_jsx_runtime147.JSX.Element | null;
46
+ }: ViewStackViewProps): react_jsx_runtime199.JSX.Element | null;
47
47
  //#endregion
48
48
  export { ViewStackView };
49
49
  //# sourceMappingURL=view.d.ts.map
@@ -15,7 +15,7 @@ import { useCoordinateCopy } from "./use-coordinate-copy.js";
15
15
  import { useCoordinateFieldState } from "./use-coordinate-field-state.js";
16
16
  import { useCoordinateFocus } from "./use-coordinate-focus.js";
17
17
  import { useCoordinatePaste } from "./use-coordinate-paste.js";
18
- import { ValidationResult } from "react-aria-components";
18
+ import { ValidationResult } from "react-aria-components/TextField";
19
19
 
20
20
  //#region src/hooks/coordinate-field/use-coordinate-field.d.ts
21
21
  /** Return value from the useCoordinateField hook */
@@ -17,7 +17,7 @@ import { useCoordinateFocus } from "./use-coordinate-focus.js";
17
17
  import { useCoordinatePaste } from "./use-coordinate-paste.js";
18
18
  import { useTimeoutCleanup } from "./use-timeout-cleanup.js";
19
19
  import { useMemo } from "react";
20
- import { useId } from "@react-aria/utils";
20
+ import { useId } from "react-aria/useId";
21
21
 
22
22
  //#region src/hooks/coordinate-field/use-coordinate-field.ts
23
23
  const FOCUS_DELAY_MS = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"use-coordinate-field.js","names":[],"sources":["../../../src/hooks/coordinate-field/use-coordinate-field.ts"],"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 { useId } from '@react-aria/utils';\nimport { useMemo } from 'react';\nimport { useCoordinateCopy } from './use-coordinate-copy';\nimport { useCoordinateFieldState } from './use-coordinate-field-state';\nimport { useCoordinateFocus } from './use-coordinate-focus';\nimport { useCoordinatePaste } from './use-coordinate-paste';\nimport { useTimeoutCleanup } from './use-timeout-cleanup';\nimport type { ValidationResult } from 'react-aria-components';\nimport type {\n CoordinateFieldProps,\n CoordinateSystem,\n CoordinateValue,\n} from '../../components/coordinate-field/types';\n\nconst FOCUS_DELAY_MS = 0;\n\n/** Return value from the useCoordinateField hook */\nexport interface UseCoordinateFieldResult {\n /** Coordinate state management utilities */\n state: ReturnType<typeof useCoordinateFieldState>;\n /** Focus management utilities */\n focus: ReturnType<typeof useCoordinateFocus>;\n /** Paste handling utilities */\n paste: ReturnType<typeof useCoordinatePaste>;\n /** Copy handling utilities */\n copy: ReturnType<typeof useCoordinateCopy>;\n /** Register timeouts for cleanup */\n registerTimeout: (timeoutId: NodeJS.Timeout) => void;\n /** ARIA props for the field container */\n fieldProps: {\n id: string;\n role: 'group';\n 'aria-labelledby': string | undefined;\n 'aria-describedby': string | undefined;\n 'aria-label': string | undefined;\n 'aria-details': string | undefined;\n 'aria-invalid': boolean | undefined;\n 'aria-required': boolean | undefined;\n 'aria-disabled': boolean | undefined;\n };\n /** Props for the label element */\n labelProps: {\n id: string;\n htmlFor: string;\n };\n /** Props for the description element */\n descriptionProps: {\n id: string;\n };\n /** Props for the error message element */\n errorProps: {\n id: string;\n };\n /** Validation result for react-aria */\n validation: ValidationResult;\n /** Generated element IDs */\n ids: {\n fieldId: string;\n labelId: string;\n descriptionId: string;\n errorId: string;\n };\n /** First error message or null */\n effectiveErrorMessage: string | null;\n /** Whether the field is in an invalid state */\n isInvalid: boolean;\n}\n\n/**\n * Manages coordinate field state, focus, copy, paste, and accessibility props\n *\n * @example\n * ```tsx\n * function CoordinateFieldComponent() {\n * const [value, setValue] = useState<CoordinateValue | null>(null);\n *\n * const {\n * state,\n * focus,\n * paste,\n * copy,\n * fieldProps,\n * labelProps,\n * isInvalid,\n * effectiveErrorMessage,\n * } = useCoordinateField({\n * value,\n * onChange: setValue,\n * format: 'dd',\n * label: 'Location',\n * });\n *\n * return (\n * <div {...fieldProps}>\n * <label {...labelProps}>Location</label>\n * {state.editableSegmentConfigs.map((config, index) => (\n * <input\n * key={index}\n * ref={focus.segmentRefs[index]}\n * value={state.segmentValues[index]}\n * onChange={(e) => state.handleSegmentChange(index, e.target.value)}\n * />\n * ))}\n * {isInvalid && <span>{effectiveErrorMessage}</span>}\n * </div>\n * );\n * }\n * ```\n *\n * @param props - {@link CoordinateFieldProps}\n * @param customAriaLabel - Custom aria-label for the field.\n * @param customAriaDescribedby - Custom aria-describedby IDs.\n * @param customAriaDetails - Custom aria-details ID.\n * @returns {@link UseCoordinateFieldResult} Combined state, focus, copy, paste utilities and accessibility props.\n */\nexport function useCoordinateField(\n props: CoordinateFieldProps,\n customAriaLabel?: string,\n customAriaDescribedby?: string,\n customAriaDetails?: string,\n): UseCoordinateFieldResult {\n const {\n description,\n errorMessage: errorMessageProp,\n format = 'dd' as CoordinateSystem,\n value,\n defaultValue,\n onChange,\n onError,\n isDisabled = false,\n isInvalid: isInvalidProp = false,\n isRequired = false,\n id: idProp,\n } = props;\n\n const fieldId = useId(idProp);\n const labelId = useId();\n const descriptionId = useId();\n const errorId = useId();\n\n const { registerTimeout } = useTimeoutCleanup();\n\n const state = useCoordinateFieldState({\n value,\n defaultValue,\n format,\n onChange,\n onError,\n registerTimeout,\n });\n\n const focus = useCoordinateFocus({\n editableSegmentConfigs: state.editableSegmentConfigs,\n });\n\n const handlePasteValueApplied = (pastedValue: CoordinateValue) => {\n state.applyPastedCoordinate(pastedValue);\n\n // Defer focus until after React commits state updates to the DOM.\n // applyPastedCoordinate triggers setSegmentValues which updates the input\n // elements, and we need those updates to complete before focusing.\n registerTimeout(\n setTimeout(() => {\n focus.focusFirstSegment();\n }, FOCUS_DELAY_MS),\n );\n };\n\n const paste = useCoordinatePaste({\n onValueApplied: handlePasteValueApplied,\n onError,\n });\n\n const copy = useCoordinateCopy({\n currentValue: state.currentValue,\n validationErrors: state.validationErrors,\n isDisabled,\n registerTimeout,\n });\n\n const effectiveErrorMessage = useMemo(\n () => errorMessageProp || state.effectiveErrorMessage,\n [errorMessageProp, state.effectiveErrorMessage],\n );\n\n const isInvalid = isInvalidProp || effectiveErrorMessage !== null;\n\n const describedByIds = [\n description && descriptionId,\n effectiveErrorMessage && errorId,\n customAriaDescribedby,\n ].filter(Boolean);\n const describedBy =\n describedByIds.length > 0 ? describedByIds.join(' ') : undefined;\n\n const labelProps = {\n id: labelId,\n htmlFor: fieldId,\n };\n\n // Only use aria-labelledby when we have a visible label (not using aria-label)\n // When aria-label is provided (e.g., in small size), it takes precedence\n const ariaLabelledBy = customAriaLabel ? undefined : labelId;\n\n const fieldProps = {\n id: fieldId,\n role: 'group' as const,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': describedBy,\n 'aria-label': customAriaLabel || undefined,\n 'aria-details': customAriaDetails || undefined,\n 'aria-invalid': isInvalid || undefined,\n 'aria-required': isRequired || undefined,\n 'aria-disabled': isDisabled || undefined,\n };\n\n const descriptionProps = {\n id: descriptionId,\n };\n\n const errorProps = {\n id: errorId,\n };\n\n const validation: ValidationResult = useMemo(\n () => ({\n isInvalid,\n validationErrors: effectiveErrorMessage ? [effectiveErrorMessage] : [],\n validationDetails: {} as ValidityState,\n }),\n [isInvalid, effectiveErrorMessage],\n );\n\n return {\n state,\n focus,\n paste,\n copy,\n registerTimeout,\n fieldProps,\n labelProps,\n descriptionProps,\n errorProps,\n validation,\n ids: {\n fieldId,\n labelId,\n descriptionId,\n errorId,\n },\n effectiveErrorMessage,\n isInvalid,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGvB,SAAgB,mBACd,OACA,iBACA,uBACA,mBAC0B;CAC1B,MAAM,EACJ,aACA,cAAc,kBACd,SAAS,MACT,OACA,cACA,UACA,SACA,aAAa,OACb,WAAW,gBAAgB,OAC3B,aAAa,OACb,IAAI,WACF;CAEJ,MAAM,UAAU,MAAM,OAAO;CAC7B,MAAM,UAAU,OAAO;CACvB,MAAM,gBAAgB,OAAO;CAC7B,MAAM,UAAU,OAAO;CAEvB,MAAM,EAAE,oBAAoB,mBAAmB;CAE/C,MAAM,QAAQ,wBAAwB;EACpC;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;CAEF,MAAM,QAAQ,mBAAmB,EAC/B,wBAAwB,MAAM,wBAC/B,CAAC;CAEF,MAAM,2BAA2B,gBAAiC;AAChE,QAAM,sBAAsB,YAAY;AAKxC,kBACE,iBAAiB;AACf,SAAM,mBAAmB;KACxB,eAAe,CACnB;;CAGH,MAAM,QAAQ,mBAAmB;EAC/B,gBAAgB;EAChB;EACD,CAAC;CAEF,MAAM,OAAO,kBAAkB;EAC7B,cAAc,MAAM;EACpB,kBAAkB,MAAM;EACxB;EACA;EACD,CAAC;CAEF,MAAM,wBAAwB,cACtB,oBAAoB,MAAM,uBAChC,CAAC,kBAAkB,MAAM,sBAAsB,CAChD;CAED,MAAM,YAAY,iBAAiB,0BAA0B;CAE7D,MAAM,iBAAiB;EACrB,eAAe;EACf,yBAAyB;EACzB;EACD,CAAC,OAAO,QAAQ;CACjB,MAAM,cACJ,eAAe,SAAS,IAAI,eAAe,KAAK,IAAI,GAAG;CAEzD,MAAM,aAAa;EACjB,IAAI;EACJ,SAAS;EACV;CAID,MAAM,iBAAiB,kBAAkB,SAAY;AA+BrD,QAAO;EACL;EACA;EACA;EACA;EACA;EACA,YAnCiB;GACjB,IAAI;GACJ,MAAM;GACN,mBAAmB;GACnB,oBAAoB;GACpB,cAAc,mBAAmB;GACjC,gBAAgB,qBAAqB;GACrC,gBAAgB,aAAa;GAC7B,iBAAiB,cAAc;GAC/B,iBAAiB,cAAc;GAChC;EA0BC;EACA,kBAzBuB,EACvB,IAAI,eACL;EAwBC,YAtBiB,EACjB,IAAI,SACL;EAqBC,YAnBmC,eAC5B;GACL;GACA,kBAAkB,wBAAwB,CAAC,sBAAsB,GAAG,EAAE;GACtE,mBAAmB,EAAE;GACtB,GACD,CAAC,WAAW,sBAAsB,CACnC;EAaC,KAAK;GACH;GACA;GACA;GACA;GACD;EACD;EACA;EACD"}
1
+ {"version":3,"file":"use-coordinate-field.js","names":[],"sources":["../../../src/hooks/coordinate-field/use-coordinate-field.ts"],"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 { useId } from 'react-aria/useId';\nimport { useMemo } from 'react';\nimport { useCoordinateCopy } from './use-coordinate-copy';\nimport { useCoordinateFieldState } from './use-coordinate-field-state';\nimport { useCoordinateFocus } from './use-coordinate-focus';\nimport { useCoordinatePaste } from './use-coordinate-paste';\nimport { useTimeoutCleanup } from './use-timeout-cleanup';\nimport type { ValidationResult } from 'react-aria-components/TextField';\nimport type {\n CoordinateFieldProps,\n CoordinateSystem,\n CoordinateValue,\n} from '../../components/coordinate-field/types';\n\nconst FOCUS_DELAY_MS = 0;\n\n/** Return value from the useCoordinateField hook */\nexport interface UseCoordinateFieldResult {\n /** Coordinate state management utilities */\n state: ReturnType<typeof useCoordinateFieldState>;\n /** Focus management utilities */\n focus: ReturnType<typeof useCoordinateFocus>;\n /** Paste handling utilities */\n paste: ReturnType<typeof useCoordinatePaste>;\n /** Copy handling utilities */\n copy: ReturnType<typeof useCoordinateCopy>;\n /** Register timeouts for cleanup */\n registerTimeout: (timeoutId: NodeJS.Timeout) => void;\n /** ARIA props for the field container */\n fieldProps: {\n id: string;\n role: 'group';\n 'aria-labelledby': string | undefined;\n 'aria-describedby': string | undefined;\n 'aria-label': string | undefined;\n 'aria-details': string | undefined;\n 'aria-invalid': boolean | undefined;\n 'aria-required': boolean | undefined;\n 'aria-disabled': boolean | undefined;\n };\n /** Props for the label element */\n labelProps: {\n id: string;\n htmlFor: string;\n };\n /** Props for the description element */\n descriptionProps: {\n id: string;\n };\n /** Props for the error message element */\n errorProps: {\n id: string;\n };\n /** Validation result for react-aria */\n validation: ValidationResult;\n /** Generated element IDs */\n ids: {\n fieldId: string;\n labelId: string;\n descriptionId: string;\n errorId: string;\n };\n /** First error message or null */\n effectiveErrorMessage: string | null;\n /** Whether the field is in an invalid state */\n isInvalid: boolean;\n}\n\n/**\n * Manages coordinate field state, focus, copy, paste, and accessibility props\n *\n * @example\n * ```tsx\n * function CoordinateFieldComponent() {\n * const [value, setValue] = useState<CoordinateValue | null>(null);\n *\n * const {\n * state,\n * focus,\n * paste,\n * copy,\n * fieldProps,\n * labelProps,\n * isInvalid,\n * effectiveErrorMessage,\n * } = useCoordinateField({\n * value,\n * onChange: setValue,\n * format: 'dd',\n * label: 'Location',\n * });\n *\n * return (\n * <div {...fieldProps}>\n * <label {...labelProps}>Location</label>\n * {state.editableSegmentConfigs.map((config, index) => (\n * <input\n * key={index}\n * ref={focus.segmentRefs[index]}\n * value={state.segmentValues[index]}\n * onChange={(e) => state.handleSegmentChange(index, e.target.value)}\n * />\n * ))}\n * {isInvalid && <span>{effectiveErrorMessage}</span>}\n * </div>\n * );\n * }\n * ```\n *\n * @param props - {@link CoordinateFieldProps}\n * @param customAriaLabel - Custom aria-label for the field.\n * @param customAriaDescribedby - Custom aria-describedby IDs.\n * @param customAriaDetails - Custom aria-details ID.\n * @returns {@link UseCoordinateFieldResult} Combined state, focus, copy, paste utilities and accessibility props.\n */\nexport function useCoordinateField(\n props: CoordinateFieldProps,\n customAriaLabel?: string,\n customAriaDescribedby?: string,\n customAriaDetails?: string,\n): UseCoordinateFieldResult {\n const {\n description,\n errorMessage: errorMessageProp,\n format = 'dd' as CoordinateSystem,\n value,\n defaultValue,\n onChange,\n onError,\n isDisabled = false,\n isInvalid: isInvalidProp = false,\n isRequired = false,\n id: idProp,\n } = props;\n\n const fieldId = useId(idProp);\n const labelId = useId();\n const descriptionId = useId();\n const errorId = useId();\n\n const { registerTimeout } = useTimeoutCleanup();\n\n const state = useCoordinateFieldState({\n value,\n defaultValue,\n format,\n onChange,\n onError,\n registerTimeout,\n });\n\n const focus = useCoordinateFocus({\n editableSegmentConfigs: state.editableSegmentConfigs,\n });\n\n const handlePasteValueApplied = (pastedValue: CoordinateValue) => {\n state.applyPastedCoordinate(pastedValue);\n\n // Defer focus until after React commits state updates to the DOM.\n // applyPastedCoordinate triggers setSegmentValues which updates the input\n // elements, and we need those updates to complete before focusing.\n registerTimeout(\n setTimeout(() => {\n focus.focusFirstSegment();\n }, FOCUS_DELAY_MS),\n );\n };\n\n const paste = useCoordinatePaste({\n onValueApplied: handlePasteValueApplied,\n onError,\n });\n\n const copy = useCoordinateCopy({\n currentValue: state.currentValue,\n validationErrors: state.validationErrors,\n isDisabled,\n registerTimeout,\n });\n\n const effectiveErrorMessage = useMemo(\n () => errorMessageProp || state.effectiveErrorMessage,\n [errorMessageProp, state.effectiveErrorMessage],\n );\n\n const isInvalid = isInvalidProp || effectiveErrorMessage !== null;\n\n const describedByIds = [\n description && descriptionId,\n effectiveErrorMessage && errorId,\n customAriaDescribedby,\n ].filter(Boolean);\n const describedBy =\n describedByIds.length > 0 ? describedByIds.join(' ') : undefined;\n\n const labelProps = {\n id: labelId,\n htmlFor: fieldId,\n };\n\n // Only use aria-labelledby when we have a visible label (not using aria-label)\n // When aria-label is provided (e.g., in small size), it takes precedence\n const ariaLabelledBy = customAriaLabel ? undefined : labelId;\n\n const fieldProps = {\n id: fieldId,\n role: 'group' as const,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': describedBy,\n 'aria-label': customAriaLabel || undefined,\n 'aria-details': customAriaDetails || undefined,\n 'aria-invalid': isInvalid || undefined,\n 'aria-required': isRequired || undefined,\n 'aria-disabled': isDisabled || undefined,\n };\n\n const descriptionProps = {\n id: descriptionId,\n };\n\n const errorProps = {\n id: errorId,\n };\n\n const validation: ValidationResult = useMemo(\n () => ({\n isInvalid,\n validationErrors: effectiveErrorMessage ? [effectiveErrorMessage] : [],\n validationDetails: {} as ValidityState,\n }),\n [isInvalid, effectiveErrorMessage],\n );\n\n return {\n state,\n focus,\n paste,\n copy,\n registerTimeout,\n fieldProps,\n labelProps,\n descriptionProps,\n errorProps,\n validation,\n ids: {\n fieldId,\n labelId,\n descriptionId,\n errorId,\n },\n effectiveErrorMessage,\n isInvalid,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGvB,SAAgB,mBACd,OACA,iBACA,uBACA,mBAC0B;CAC1B,MAAM,EACJ,aACA,cAAc,kBACd,SAAS,MACT,OACA,cACA,UACA,SACA,aAAa,OACb,WAAW,gBAAgB,OAC3B,aAAa,OACb,IAAI,WACF;CAEJ,MAAM,UAAU,MAAM,OAAO;CAC7B,MAAM,UAAU,OAAO;CACvB,MAAM,gBAAgB,OAAO;CAC7B,MAAM,UAAU,OAAO;CAEvB,MAAM,EAAE,oBAAoB,mBAAmB;CAE/C,MAAM,QAAQ,wBAAwB;EACpC;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;CAEF,MAAM,QAAQ,mBAAmB,EAC/B,wBAAwB,MAAM,wBAC/B,CAAC;CAEF,MAAM,2BAA2B,gBAAiC;AAChE,QAAM,sBAAsB,YAAY;AAKxC,kBACE,iBAAiB;AACf,SAAM,mBAAmB;KACxB,eAAe,CACnB;;CAGH,MAAM,QAAQ,mBAAmB;EAC/B,gBAAgB;EAChB;EACD,CAAC;CAEF,MAAM,OAAO,kBAAkB;EAC7B,cAAc,MAAM;EACpB,kBAAkB,MAAM;EACxB;EACA;EACD,CAAC;CAEF,MAAM,wBAAwB,cACtB,oBAAoB,MAAM,uBAChC,CAAC,kBAAkB,MAAM,sBAAsB,CAChD;CAED,MAAM,YAAY,iBAAiB,0BAA0B;CAE7D,MAAM,iBAAiB;EACrB,eAAe;EACf,yBAAyB;EACzB;EACD,CAAC,OAAO,QAAQ;CACjB,MAAM,cACJ,eAAe,SAAS,IAAI,eAAe,KAAK,IAAI,GAAG;CAEzD,MAAM,aAAa;EACjB,IAAI;EACJ,SAAS;EACV;CAID,MAAM,iBAAiB,kBAAkB,SAAY;AA+BrD,QAAO;EACL;EACA;EACA;EACA;EACA;EACA,YAnCiB;GACjB,IAAI;GACJ,MAAM;GACN,mBAAmB;GACnB,oBAAoB;GACpB,cAAc,mBAAmB;GACjC,gBAAgB,qBAAqB;GACrC,gBAAgB,aAAa;GAC7B,iBAAiB,cAAc;GAC/B,iBAAiB,cAAc;GAChC;EA0BC;EACA,kBAzBuB,EACvB,IAAI,eACL;EAwBC,YAtBiB,EACjB,IAAI,SACL;EAqBC,YAnBmC,eAC5B;GACL;GACA,kBAAkB,wBAAwB,CAAC,sBAAsB,GAAG,EAAE;GACtE,mBAAmB,EAAE;GACtB,GACD,CAAC,WAAW,sBAAsB,CACnC;EAaC,KAAK;GACH;GACA;GACA;GACA;GACD;EACD;EACA;EACD"}