@accelint/design-toolkit 6.0.0 → 7.0.1

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 (570) hide show
  1. package/README.md +2 -0
  2. package/catalog-info.yaml +18 -18
  3. package/dist/components/accordion/context.d.ts +10 -0
  4. package/dist/components/accordion/context.js +4 -0
  5. package/dist/components/accordion/context.js.map +1 -0
  6. package/dist/components/accordion/group.d.ts +11 -0
  7. package/dist/components/accordion/group.js +4 -0
  8. package/dist/components/accordion/group.js.map +1 -0
  9. package/dist/components/accordion/header.d.ts +11 -0
  10. package/dist/components/accordion/header.js +4 -0
  11. package/dist/components/accordion/header.js.map +1 -0
  12. package/dist/components/accordion/index.d.ts +22 -46
  13. package/dist/components/accordion/index.js +1 -1
  14. package/dist/components/accordion/index.js.map +1 -1
  15. package/dist/components/accordion/panel.d.ts +11 -0
  16. package/dist/components/accordion/panel.js +4 -0
  17. package/dist/components/accordion/panel.js.map +1 -0
  18. package/dist/components/accordion/trigger.d.ts +11 -0
  19. package/dist/components/accordion/trigger.js +4 -0
  20. package/dist/components/accordion/trigger.js.map +1 -0
  21. package/dist/components/accordion/types.d.ts +1 -1
  22. package/dist/components/action-bar/index.d.ts +0 -3
  23. package/dist/components/action-bar/index.js +1 -1
  24. package/dist/components/action-bar/index.js.map +1 -1
  25. package/dist/components/avatar/context.d.ts +14 -0
  26. package/dist/components/avatar/context.js +4 -0
  27. package/dist/components/avatar/context.js.map +1 -0
  28. package/dist/components/avatar/index.d.ts +2 -13
  29. package/dist/components/avatar/index.js +1 -1
  30. package/dist/components/avatar/index.js.map +1 -1
  31. package/dist/components/badge/context.d.ts +13 -0
  32. package/dist/components/badge/context.js +4 -0
  33. package/dist/components/badge/context.js.map +1 -0
  34. package/dist/components/badge/index.d.ts +2 -13
  35. package/dist/components/badge/index.js +1 -1
  36. package/dist/components/badge/index.js.map +1 -1
  37. package/dist/components/breadcrumbs/index.d.ts +2 -11
  38. package/dist/components/breadcrumbs/index.js +1 -1
  39. package/dist/components/breadcrumbs/index.js.map +1 -1
  40. package/dist/components/breadcrumbs/item.d.ts +7 -0
  41. package/dist/components/breadcrumbs/item.js +4 -0
  42. package/dist/components/breadcrumbs/item.js.map +1 -0
  43. package/dist/components/button/context.d.ts +17 -0
  44. package/dist/components/button/context.js +4 -0
  45. package/dist/components/button/context.js.map +1 -0
  46. package/dist/components/button/index.d.ts +5 -104
  47. package/dist/components/button/index.js +1 -1
  48. package/dist/components/button/index.js.map +1 -1
  49. package/dist/components/button/link.d.ts +46 -0
  50. package/dist/components/button/link.js +4 -0
  51. package/dist/components/button/link.js.map +1 -0
  52. package/dist/components/button/toggle.d.ts +48 -0
  53. package/dist/components/button/toggle.js +4 -0
  54. package/dist/components/button/toggle.js.map +1 -0
  55. package/dist/components/checkbox/context.d.ts +10 -0
  56. package/dist/components/checkbox/context.js +4 -0
  57. package/dist/components/checkbox/context.js.map +1 -0
  58. package/dist/components/checkbox/group.d.ts +10 -0
  59. package/dist/components/checkbox/group.js +4 -0
  60. package/dist/components/checkbox/group.js.map +1 -0
  61. package/dist/components/checkbox/index.d.ts +6 -16
  62. package/dist/components/checkbox/index.js +1 -1
  63. package/dist/components/checkbox/index.js.map +1 -1
  64. package/dist/components/checkbox/styles.js +1 -1
  65. package/dist/components/checkbox/styles.js.map +1 -1
  66. package/dist/components/chip/context.d.ts +13 -0
  67. package/dist/components/chip/context.js +4 -0
  68. package/dist/components/chip/context.js.map +1 -0
  69. package/dist/components/chip/deletable.d.ts +11 -0
  70. package/dist/components/chip/deletable.js +4 -0
  71. package/dist/components/chip/deletable.js.map +1 -0
  72. package/dist/components/chip/index.d.ts +14 -39
  73. package/dist/components/chip/index.js +1 -1
  74. package/dist/components/chip/index.js.map +1 -1
  75. package/dist/components/chip/list.d.ts +12 -0
  76. package/dist/components/chip/list.js +4 -0
  77. package/dist/components/chip/list.js.map +1 -0
  78. package/dist/components/chip/selectable.d.ts +11 -0
  79. package/dist/components/chip/selectable.js +4 -0
  80. package/dist/components/chip/selectable.js.map +1 -0
  81. package/dist/components/chip/styles.js +1 -1
  82. package/dist/components/chip/styles.js.map +1 -1
  83. package/dist/components/chip/types.d.ts +2 -2
  84. package/dist/components/classification-badge/context.d.ts +12 -0
  85. package/dist/components/classification-badge/context.js +4 -0
  86. package/dist/components/classification-badge/context.js.map +1 -0
  87. package/dist/components/classification-badge/index.d.ts +2 -13
  88. package/dist/components/classification-badge/index.js +1 -1
  89. package/dist/components/classification-badge/index.js.map +1 -1
  90. package/dist/components/classification-banner/context.d.ts +12 -0
  91. package/dist/components/classification-banner/context.js +4 -0
  92. package/dist/components/classification-banner/context.js.map +1 -0
  93. package/dist/components/classification-banner/index.d.ts +2 -13
  94. package/dist/components/classification-banner/index.js +1 -1
  95. package/dist/components/classification-banner/index.js.map +1 -1
  96. package/dist/components/clock/index.d.ts +0 -3
  97. package/dist/components/clock/index.js +1 -1
  98. package/dist/components/clock/index.js.map +1 -1
  99. package/dist/components/color-picker/index.d.ts +0 -3
  100. package/dist/components/color-picker/index.js +1 -1
  101. package/dist/components/color-picker/index.js.map +1 -1
  102. package/dist/components/color-picker/styles.js +1 -1
  103. package/dist/components/color-picker/styles.js.map +1 -1
  104. package/dist/components/combobox-field/context.d.ts +16 -0
  105. package/dist/components/combobox-field/context.js +4 -0
  106. package/dist/components/combobox-field/context.js.map +1 -0
  107. package/dist/components/combobox-field/index.d.ts +4 -8
  108. package/dist/components/combobox-field/index.js +1 -1
  109. package/dist/components/combobox-field/index.js.map +1 -1
  110. package/dist/components/combobox-field/styles.d.ts +3 -3
  111. package/dist/components/date-field/index.js +1 -1
  112. package/dist/components/date-field/index.js.map +1 -1
  113. package/dist/components/details-list/context.d.ts +12 -0
  114. package/dist/components/details-list/context.js +4 -0
  115. package/dist/components/details-list/context.js.map +1 -0
  116. package/dist/components/details-list/index.d.ts +15 -35
  117. package/dist/components/details-list/index.js +1 -1
  118. package/dist/components/details-list/index.js.map +1 -1
  119. package/dist/components/details-list/label.d.ts +10 -0
  120. package/dist/components/details-list/label.js +4 -0
  121. package/dist/components/details-list/label.js.map +1 -0
  122. package/dist/components/details-list/value.d.ts +10 -0
  123. package/dist/components/details-list/value.js +4 -0
  124. package/dist/components/details-list/value.js.map +1 -0
  125. package/dist/components/dialog/content.d.ts +6 -0
  126. package/dist/components/dialog/content.js +4 -0
  127. package/dist/components/dialog/content.js.map +1 -0
  128. package/dist/components/dialog/context.d.ts +7 -0
  129. package/dist/components/dialog/context.js +4 -0
  130. package/dist/components/dialog/context.js.map +1 -0
  131. package/dist/components/dialog/footer.d.ts +6 -0
  132. package/dist/components/dialog/footer.js +4 -0
  133. package/dist/components/dialog/footer.js.map +1 -0
  134. package/dist/components/dialog/index.d.ts +9 -30
  135. package/dist/components/dialog/index.js +1 -1
  136. package/dist/components/dialog/index.js.map +1 -1
  137. package/dist/components/dialog/styles.d.ts +3 -3
  138. package/dist/components/dialog/title.d.ts +6 -0
  139. package/dist/components/dialog/title.js +4 -0
  140. package/dist/components/dialog/title.js.map +1 -0
  141. package/dist/components/dialog/trigger.d.ts +1 -0
  142. package/dist/components/dialog/trigger.js +2 -0
  143. package/dist/components/dialog/trigger.js.map +1 -0
  144. package/dist/components/dialog/types.d.ts +3 -2
  145. package/dist/components/divider/context.d.ts +10 -0
  146. package/dist/components/divider/context.js +4 -0
  147. package/dist/components/divider/context.js.map +1 -0
  148. package/dist/components/divider/index.d.ts +2 -13
  149. package/dist/components/divider/index.js +1 -1
  150. package/dist/components/divider/index.js.map +1 -1
  151. package/dist/components/drawer/back.d.ts +5 -0
  152. package/dist/components/drawer/back.js +4 -0
  153. package/dist/components/drawer/back.js.map +1 -0
  154. package/dist/components/drawer/close.d.ts +5 -0
  155. package/dist/components/drawer/close.js +4 -0
  156. package/dist/components/drawer/close.js.map +1 -0
  157. package/dist/components/drawer/content.d.ts +6 -0
  158. package/dist/components/drawer/content.js +4 -0
  159. package/dist/components/drawer/content.js.map +1 -0
  160. package/dist/components/drawer/context.d.ts +38 -0
  161. package/dist/components/drawer/context.js +4 -0
  162. package/dist/components/drawer/context.js.map +1 -0
  163. package/dist/components/drawer/footer.d.ts +6 -0
  164. package/dist/components/drawer/footer.js +4 -0
  165. package/dist/components/drawer/footer.js.map +1 -0
  166. package/dist/components/drawer/header-title.d.ts +25 -0
  167. package/dist/components/drawer/header-title.js +4 -0
  168. package/dist/components/drawer/header-title.js.map +1 -0
  169. package/dist/components/drawer/header.d.ts +6 -0
  170. package/dist/components/drawer/header.js +4 -0
  171. package/dist/components/drawer/header.js.map +1 -0
  172. package/dist/components/drawer/index.d.ts +19 -112
  173. package/dist/components/drawer/index.js +1 -1
  174. package/dist/components/drawer/index.js.map +1 -1
  175. package/dist/components/drawer/layout-main.d.ts +6 -0
  176. package/dist/components/drawer/layout-main.js +4 -0
  177. package/dist/components/drawer/layout-main.js.map +1 -0
  178. package/dist/components/drawer/layout.d.ts +20 -0
  179. package/dist/components/drawer/layout.js +4 -0
  180. package/dist/components/drawer/layout.js.map +1 -0
  181. package/dist/components/drawer/menu-item.d.ts +20 -0
  182. package/dist/components/drawer/menu-item.js +4 -0
  183. package/dist/components/drawer/menu-item.js.map +1 -0
  184. package/dist/components/drawer/menu.d.ts +20 -0
  185. package/dist/components/drawer/menu.js +4 -0
  186. package/dist/components/drawer/menu.js.map +1 -0
  187. package/dist/components/drawer/panel.d.ts +6 -0
  188. package/dist/components/drawer/panel.js +4 -0
  189. package/dist/components/drawer/panel.js.map +1 -0
  190. package/dist/components/drawer/styles.d.ts +9 -9
  191. package/dist/components/drawer/trigger.d.ts +20 -0
  192. package/dist/components/drawer/trigger.js +4 -0
  193. package/dist/components/drawer/trigger.js.map +1 -0
  194. package/dist/components/drawer/types.d.ts +3 -3
  195. package/dist/components/drawer/view.d.ts +11 -0
  196. package/dist/components/drawer/view.js +4 -0
  197. package/dist/components/drawer/view.js.map +1 -0
  198. package/dist/components/hero/context.d.ts +7 -0
  199. package/dist/components/hero/context.js +4 -0
  200. package/dist/components/hero/context.js.map +1 -0
  201. package/dist/components/hero/index.d.ts +8 -16
  202. package/dist/components/hero/index.js +1 -1
  203. package/dist/components/hero/index.js.map +1 -1
  204. package/dist/components/hero/subtitle.d.ts +6 -0
  205. package/dist/components/hero/subtitle.js +4 -0
  206. package/dist/components/hero/subtitle.js.map +1 -0
  207. package/dist/components/hero/title.d.ts +6 -0
  208. package/dist/components/hero/title.js +4 -0
  209. package/dist/components/hero/title.js.map +1 -0
  210. package/dist/components/hotkey/context.d.ts +12 -0
  211. package/dist/components/hotkey/context.js +4 -0
  212. package/dist/components/hotkey/context.js.map +1 -0
  213. package/dist/components/hotkey/hotkey-set.d.ts +9 -0
  214. package/dist/components/hotkey/hotkey-set.js +4 -0
  215. package/dist/components/hotkey/hotkey-set.js.map +1 -0
  216. package/dist/components/hotkey/index.d.ts +7 -23
  217. package/dist/components/hotkey/index.js +1 -1
  218. package/dist/components/hotkey/index.js.map +1 -1
  219. package/dist/components/icon/context.d.ts +10 -0
  220. package/dist/components/icon/context.js +4 -0
  221. package/dist/components/icon/context.js.map +1 -0
  222. package/dist/components/icon/index.d.ts +2 -13
  223. package/dist/components/icon/index.js +1 -1
  224. package/dist/components/icon/index.js.map +1 -1
  225. package/dist/components/input/context.d.ts +13 -0
  226. package/dist/components/input/context.js +4 -0
  227. package/dist/components/input/context.js.map +1 -0
  228. package/dist/components/input/index.d.ts +3 -7
  229. package/dist/components/input/index.js +1 -1
  230. package/dist/components/input/index.js.map +1 -1
  231. package/dist/components/label/context.d.ts +10 -0
  232. package/dist/components/label/context.js +4 -0
  233. package/dist/components/label/context.js.map +1 -0
  234. package/dist/components/label/index.d.ts +3 -13
  235. package/dist/components/label/index.js +1 -1
  236. package/dist/components/label/index.js.map +1 -1
  237. package/dist/components/link/context.d.ts +9 -0
  238. package/dist/components/link/context.js +4 -0
  239. package/dist/components/link/context.js.map +1 -0
  240. package/dist/components/link/index.d.ts +0 -9
  241. package/dist/components/link/index.js +1 -1
  242. package/dist/components/link/index.js.map +1 -1
  243. package/dist/components/menu/context.d.ts +10 -0
  244. package/dist/components/menu/context.js +4 -0
  245. package/dist/components/menu/context.js.map +1 -0
  246. package/dist/components/menu/index.d.ts +31 -63
  247. package/dist/components/menu/index.js +1 -1
  248. package/dist/components/menu/index.js.map +1 -1
  249. package/dist/components/menu/item-description.d.ts +6 -0
  250. package/dist/components/menu/item-description.js +4 -0
  251. package/dist/components/menu/item-description.js.map +1 -0
  252. package/dist/components/menu/item-label.d.ts +6 -0
  253. package/dist/components/menu/item-label.js +4 -0
  254. package/dist/components/menu/item-label.js.map +1 -0
  255. package/dist/components/menu/item.d.ts +11 -0
  256. package/dist/components/menu/item.js +4 -0
  257. package/dist/components/menu/item.js.map +1 -0
  258. package/dist/components/menu/section.d.ts +11 -0
  259. package/dist/components/menu/section.js +4 -0
  260. package/dist/components/menu/section.js.map +1 -0
  261. package/dist/components/menu/separator.d.ts +6 -0
  262. package/dist/components/menu/separator.js +4 -0
  263. package/dist/components/menu/separator.js.map +1 -0
  264. package/dist/components/menu/styles.js +1 -1
  265. package/dist/components/menu/styles.js.map +1 -1
  266. package/dist/components/menu/submenu.d.ts +6 -0
  267. package/dist/components/menu/submenu.js +4 -0
  268. package/dist/components/menu/submenu.js.map +1 -0
  269. package/dist/components/menu/trigger.d.ts +1 -0
  270. package/dist/components/menu/trigger.js +4 -0
  271. package/dist/components/menu/trigger.js.map +1 -0
  272. package/dist/components/menu/types.d.ts +1 -1
  273. package/dist/components/notice/index.d.ts +1 -5
  274. package/dist/components/notice/index.js +1 -1
  275. package/dist/components/notice/index.js.map +1 -1
  276. package/dist/components/notice/list.d.ts +16 -0
  277. package/dist/components/notice/list.js +4 -0
  278. package/dist/components/notice/list.js.map +1 -0
  279. package/dist/components/notice/notice-icon.d.ts +16 -0
  280. package/dist/components/notice/notice-icon.js +4 -0
  281. package/dist/components/notice/notice-icon.js.map +1 -0
  282. package/dist/components/notice/styles.d.ts +3 -3
  283. package/dist/components/notice/utils.d.ts +3 -0
  284. package/dist/components/notice/utils.js +4 -0
  285. package/dist/components/notice/utils.js.map +1 -0
  286. package/dist/components/options/context.d.ts +8 -0
  287. package/dist/components/options/context.js +4 -0
  288. package/dist/components/options/context.js.map +1 -0
  289. package/dist/components/options/index.d.ts +22 -51
  290. package/dist/components/options/index.js +1 -1
  291. package/dist/components/options/index.js.map +1 -1
  292. package/dist/components/options/item-content.d.ts +9 -0
  293. package/dist/components/options/item-content.js +4 -0
  294. package/dist/components/options/item-content.js.map +1 -0
  295. package/dist/components/options/item-description.d.ts +9 -0
  296. package/dist/components/options/item-description.js +4 -0
  297. package/dist/components/options/item-description.js.map +1 -0
  298. package/dist/components/options/item-label.d.ts +9 -0
  299. package/dist/components/options/item-label.js +4 -0
  300. package/dist/components/options/item-label.js.map +1 -0
  301. package/dist/components/options/item.d.ts +9 -0
  302. package/dist/components/options/item.js +4 -0
  303. package/dist/components/options/item.js.map +1 -0
  304. package/dist/components/options/section.d.ts +9 -0
  305. package/dist/components/options/section.js +4 -0
  306. package/dist/components/options/section.js.map +1 -0
  307. package/dist/components/options/styles.d.ts +3 -3
  308. package/dist/components/options/styles.js +1 -1
  309. package/dist/components/options/styles.js.map +1 -1
  310. package/dist/components/options/types.d.ts +2 -2
  311. package/dist/components/popover/body.d.ts +8 -0
  312. package/dist/components/popover/body.js +4 -0
  313. package/dist/components/popover/body.js.map +1 -0
  314. package/dist/components/popover/content.d.ts +8 -0
  315. package/dist/components/popover/content.js +4 -0
  316. package/dist/components/popover/content.js.map +1 -0
  317. package/dist/components/popover/footer.d.ts +9 -0
  318. package/dist/components/popover/footer.js +4 -0
  319. package/dist/components/popover/footer.js.map +1 -0
  320. package/dist/components/popover/index.d.ts +16 -39
  321. package/dist/components/popover/index.js +1 -1
  322. package/dist/components/popover/index.js.map +1 -1
  323. package/dist/components/popover/title.d.ts +8 -0
  324. package/dist/components/popover/title.js +4 -0
  325. package/dist/components/popover/title.js.map +1 -0
  326. package/dist/components/popover/trigger.d.ts +8 -0
  327. package/dist/components/popover/trigger.js +4 -0
  328. package/dist/components/popover/trigger.js.map +1 -0
  329. package/dist/components/popover/types.d.ts +1 -1
  330. package/dist/components/query-builder/action-element.js +1 -1
  331. package/dist/components/query-builder/action-element.js.map +1 -1
  332. package/dist/components/query-builder/actions.d.ts +8 -0
  333. package/dist/components/query-builder/actions.js +4 -0
  334. package/dist/components/query-builder/actions.js.map +1 -0
  335. package/dist/components/query-builder/combinator-selector.d.ts +6 -0
  336. package/dist/components/query-builder/combinator-selector.js +4 -0
  337. package/dist/components/query-builder/combinator-selector.js.map +1 -0
  338. package/dist/components/query-builder/index.d.ts +1 -21
  339. package/dist/components/query-builder/index.js +3 -1
  340. package/dist/components/query-builder/index.js.map +1 -1
  341. package/dist/components/query-builder/{group.js → rule-group.js} +2 -2
  342. package/dist/components/query-builder/rule-group.js.map +1 -0
  343. package/dist/components/query-builder/rule.js +1 -1
  344. package/dist/components/query-builder/rule.js.map +1 -1
  345. package/dist/components/query-builder/styles.d.ts +152 -0
  346. package/dist/components/query-builder/styles.js +2 -0
  347. package/dist/components/query-builder/styles.js.map +1 -0
  348. package/dist/components/query-builder/utils.d.ts +1 -10
  349. package/dist/components/query-builder/utils.js +1 -1
  350. package/dist/components/query-builder/utils.js.map +1 -1
  351. package/dist/components/query-builder/value-editor.js +1 -1
  352. package/dist/components/query-builder/value-editor.js.map +1 -1
  353. package/dist/components/query-builder/value-selector.js +3 -1
  354. package/dist/components/query-builder/value-selector.js.map +1 -1
  355. package/dist/components/radio/context.d.ts +13 -0
  356. package/dist/components/radio/context.js +4 -0
  357. package/dist/components/radio/context.js.map +1 -0
  358. package/dist/components/radio/group.d.ts +15 -0
  359. package/dist/components/radio/group.js +4 -0
  360. package/dist/components/radio/group.js.map +1 -0
  361. package/dist/components/radio/index.d.ts +10 -19
  362. package/dist/components/radio/index.js +1 -1
  363. package/dist/components/radio/index.js.map +1 -1
  364. package/dist/components/radio/styles.js +1 -1
  365. package/dist/components/radio/styles.js.map +1 -1
  366. package/dist/components/radio/types.d.ts +1 -1
  367. package/dist/components/search-field/context.d.ts +26 -0
  368. package/dist/components/search-field/context.js +4 -0
  369. package/dist/components/search-field/context.js.map +1 -0
  370. package/dist/components/search-field/index.d.ts +4 -20
  371. package/dist/components/search-field/index.js +1 -1
  372. package/dist/components/search-field/index.js.map +1 -1
  373. package/dist/components/select-field/context.d.ts +15 -0
  374. package/dist/components/select-field/context.js +4 -0
  375. package/dist/components/select-field/context.js.map +1 -0
  376. package/dist/components/select-field/index.d.ts +12 -21
  377. package/dist/components/select-field/index.js +1 -1
  378. package/dist/components/select-field/index.js.map +1 -1
  379. package/dist/components/select-field/styles.d.ts +9 -3
  380. package/dist/components/select-field/styles.js +1 -1
  381. package/dist/components/select-field/styles.js.map +1 -1
  382. package/dist/components/select-field/types.d.ts +2 -2
  383. package/dist/components/sidenav/avatar.d.ts +16 -0
  384. package/dist/components/sidenav/avatar.js +4 -0
  385. package/dist/components/sidenav/avatar.js.map +1 -0
  386. package/dist/components/sidenav/content.d.ts +16 -0
  387. package/dist/components/sidenav/content.js +4 -0
  388. package/dist/components/sidenav/content.js.map +1 -0
  389. package/dist/components/sidenav/context.d.ts +10 -0
  390. package/dist/components/sidenav/context.js +4 -0
  391. package/dist/components/sidenav/context.js.map +1 -0
  392. package/dist/components/sidenav/footer.d.ts +16 -0
  393. package/dist/components/sidenav/footer.js +4 -0
  394. package/dist/components/sidenav/footer.js.map +1 -0
  395. package/dist/components/sidenav/header.d.ts +16 -0
  396. package/dist/components/sidenav/header.js +4 -0
  397. package/dist/components/sidenav/header.js.map +1 -0
  398. package/dist/components/sidenav/index.d.ts +28 -76
  399. package/dist/components/sidenav/index.js +1 -1
  400. package/dist/components/sidenav/index.js.map +1 -1
  401. package/dist/components/sidenav/item.d.ts +16 -0
  402. package/dist/components/sidenav/item.js +4 -0
  403. package/dist/components/sidenav/item.js.map +1 -0
  404. package/dist/components/sidenav/link.d.ts +16 -0
  405. package/dist/components/sidenav/link.js +4 -0
  406. package/dist/components/sidenav/link.js.map +1 -0
  407. package/dist/components/sidenav/menu-item.d.ts +16 -0
  408. package/dist/components/sidenav/menu-item.js +4 -0
  409. package/dist/components/sidenav/menu-item.js.map +1 -0
  410. package/dist/components/sidenav/menu.d.ts +16 -0
  411. package/dist/components/sidenav/menu.js +4 -0
  412. package/dist/components/sidenav/menu.js.map +1 -0
  413. package/dist/components/sidenav/styles.d.ts +9 -9
  414. package/dist/components/sidenav/trigger.d.ts +16 -0
  415. package/dist/components/sidenav/trigger.js +4 -0
  416. package/dist/components/sidenav/trigger.js.map +1 -0
  417. package/dist/components/sidenav/types.d.ts +1 -1
  418. package/dist/components/skeleton/index.d.ts +0 -3
  419. package/dist/components/skeleton/index.js +1 -1
  420. package/dist/components/skeleton/index.js.map +1 -1
  421. package/dist/components/slider/index.d.ts +1 -1
  422. package/dist/components/slider/index.js +1 -1
  423. package/dist/components/slider/index.js.map +1 -1
  424. package/dist/components/slider/styles.d.ts +3 -3
  425. package/dist/components/slider/styles.js +1 -1
  426. package/dist/components/slider/styles.js.map +1 -1
  427. package/dist/components/switch/context.d.ts +20 -0
  428. package/dist/components/switch/context.js +4 -0
  429. package/dist/components/switch/context.js.map +1 -0
  430. package/dist/components/switch/index.d.ts +3 -13
  431. package/dist/components/switch/index.js +1 -1
  432. package/dist/components/switch/index.js.map +1 -1
  433. package/dist/components/switch/styles.js +1 -1
  434. package/dist/components/switch/styles.js.map +1 -1
  435. package/dist/components/table/body.js +2 -0
  436. package/dist/components/table/body.js.map +1 -0
  437. package/dist/components/table/cell.js +2 -0
  438. package/dist/components/table/cell.js.map +1 -0
  439. package/dist/components/table/constants/table.d.ts +17 -0
  440. package/dist/components/table/constants/table.js +2 -0
  441. package/dist/components/table/constants/table.js.map +1 -0
  442. package/dist/components/table/context.js +1 -1
  443. package/dist/components/table/context.js.map +1 -1
  444. package/dist/components/table/{table-header-cell.d.ts → header-cell.d.ts} +2 -2
  445. package/dist/components/table/header-cell.js +2 -0
  446. package/dist/components/table/header-cell.js.map +1 -0
  447. package/dist/components/table/header.js +2 -0
  448. package/dist/components/table/header.js.map +1 -0
  449. package/dist/components/table/index.d.ts +1 -14
  450. package/dist/components/table/index.js +1 -1
  451. package/dist/components/table/index.js.map +1 -1
  452. package/dist/components/table/row.js +2 -0
  453. package/dist/components/table/row.js.map +1 -0
  454. package/dist/components/table/types.d.ts +25 -2
  455. package/dist/components/tabs/context.d.ts +20 -0
  456. package/dist/components/tabs/context.js +4 -0
  457. package/dist/components/tabs/context.js.map +1 -0
  458. package/dist/components/tabs/index.d.ts +25 -51
  459. package/dist/components/tabs/index.js +1 -1
  460. package/dist/components/tabs/index.js.map +1 -1
  461. package/dist/components/tabs/list.d.ts +11 -0
  462. package/dist/components/tabs/list.js +4 -0
  463. package/dist/components/tabs/list.js.map +1 -0
  464. package/dist/components/tabs/panel.d.ts +11 -0
  465. package/dist/components/tabs/panel.js +4 -0
  466. package/dist/components/tabs/panel.js.map +1 -0
  467. package/dist/components/tabs/tab.d.ts +11 -0
  468. package/dist/components/tabs/tab.js +4 -0
  469. package/dist/components/tabs/tab.js.map +1 -0
  470. package/dist/components/text-area-field/context.d.ts +20 -0
  471. package/dist/components/text-area-field/context.js +4 -0
  472. package/dist/components/text-area-field/context.js.map +1 -0
  473. package/dist/components/text-area-field/index.d.ts +3 -13
  474. package/dist/components/text-area-field/index.js +1 -1
  475. package/dist/components/text-area-field/index.js.map +1 -1
  476. package/dist/components/text-field/context.d.ts +17 -0
  477. package/dist/components/text-field/context.js +4 -0
  478. package/dist/components/text-field/context.js.map +1 -0
  479. package/dist/components/text-field/index.d.ts +4 -13
  480. package/dist/components/text-field/index.js +1 -1
  481. package/dist/components/text-field/index.js.map +1 -1
  482. package/dist/components/time-field/index.js +1 -1
  483. package/dist/components/time-field/index.js.map +1 -1
  484. package/dist/components/tooltip/context.d.ts +7 -0
  485. package/dist/components/tooltip/context.js +4 -0
  486. package/dist/components/tooltip/context.js.map +1 -0
  487. package/dist/components/tooltip/index.d.ts +10 -19
  488. package/dist/components/tooltip/index.js +1 -1
  489. package/dist/components/tooltip/index.js.map +1 -1
  490. package/dist/components/tooltip/trigger.d.ts +8 -0
  491. package/dist/components/tooltip/trigger.js +4 -0
  492. package/dist/components/tooltip/trigger.js.map +1 -0
  493. package/dist/components/tooltip/types.d.ts +1 -1
  494. package/dist/components/tree/context.d.ts +18 -0
  495. package/dist/components/tree/context.js +4 -0
  496. package/dist/components/tree/context.js.map +1 -0
  497. package/dist/components/tree/index.d.ts +11 -50
  498. package/dist/components/tree/index.js +1 -1
  499. package/dist/components/tree/index.js.map +1 -1
  500. package/dist/components/tree/item-actions.d.ts +13 -0
  501. package/dist/components/tree/item-actions.js +2 -0
  502. package/dist/components/tree/item-actions.js.map +1 -0
  503. package/dist/components/tree/item-content.d.ts +17 -0
  504. package/dist/components/tree/item-content.js +2 -0
  505. package/dist/components/tree/item-content.js.map +1 -0
  506. package/dist/components/tree/item-description.d.ts +11 -0
  507. package/dist/components/tree/item-description.js +2 -0
  508. package/dist/components/tree/item-description.js.map +1 -0
  509. package/dist/components/tree/item-label.d.ts +11 -0
  510. package/dist/components/tree/item-label.js +2 -0
  511. package/dist/components/tree/item-label.js.map +1 -0
  512. package/dist/components/tree/item-prefix-icon.d.ts +12 -0
  513. package/dist/components/tree/item-prefix-icon.js +2 -0
  514. package/dist/components/tree/item-prefix-icon.js.map +1 -0
  515. package/dist/components/tree/item.d.ts +17 -0
  516. package/dist/components/tree/item.js +4 -0
  517. package/dist/components/tree/item.js.map +1 -0
  518. package/dist/components/tree/lines.d.ts +8 -0
  519. package/dist/components/tree/lines.js +2 -0
  520. package/dist/components/tree/lines.js.map +1 -0
  521. package/dist/components/tree/styles.js +1 -1
  522. package/dist/components/tree/styles.js.map +1 -1
  523. package/dist/components/tree/types.d.ts +1 -1
  524. package/dist/components/view-stack/context.d.ts +31 -0
  525. package/dist/components/view-stack/context.js +4 -0
  526. package/dist/components/view-stack/context.js.map +1 -0
  527. package/dist/components/view-stack/index.d.ts +12 -38
  528. package/dist/components/view-stack/index.js +1 -1
  529. package/dist/components/view-stack/index.js.map +1 -1
  530. package/dist/components/view-stack/trigger.d.ts +16 -0
  531. package/dist/components/view-stack/trigger.js +4 -0
  532. package/dist/components/view-stack/trigger.js.map +1 -0
  533. package/dist/components/view-stack/view.d.ts +16 -0
  534. package/dist/components/view-stack/view.js +4 -0
  535. package/dist/components/view-stack/view.js.map +1 -0
  536. package/dist/hooks/use-tree/state/index.js +2 -0
  537. package/dist/icons/catalog.d.ts +14 -0
  538. package/dist/icons/catalog.js +1 -1
  539. package/dist/icons/catalog.js.map +1 -1
  540. package/dist/index.css +0 -49
  541. package/dist/index.d.ts +143 -44
  542. package/dist/index.js +1 -1
  543. package/dist/metafile-esm.json +1 -1
  544. package/dist/providers/theme-provider.js +1 -1
  545. package/dist/providers/theme-provider.js.map +1 -1
  546. package/dist/styles.css +965 -243
  547. package/dist/tokens/themes.css +1 -1
  548. package/dist/tokens/themes.d.ts +1 -2
  549. package/dist/tokens/tokens.js +1 -1
  550. package/dist/tokens/tokens.js.map +1 -1
  551. package/package.json +98 -95
  552. package/dist/components/query-builder/group.js.map +0 -1
  553. package/dist/components/table/table-body.js +0 -2
  554. package/dist/components/table/table-body.js.map +0 -1
  555. package/dist/components/table/table-cell.js +0 -2
  556. package/dist/components/table/table-cell.js.map +0 -1
  557. package/dist/components/table/table-header-cell.js +0 -2
  558. package/dist/components/table/table-header-cell.js.map +0 -1
  559. package/dist/components/table/table-header.js +0 -2
  560. package/dist/components/table/table-header.js.map +0 -1
  561. package/dist/components/table/table-row.js +0 -2
  562. package/dist/components/table/table-row.js.map +0 -1
  563. package/dist/lib/react.d.ts +0 -59
  564. package/dist/lib/react.js +0 -9
  565. package/dist/lib/react.js.map +0 -1
  566. /package/dist/components/query-builder/{group.d.ts → rule-group.d.ts} +0 -0
  567. /package/dist/components/table/{table-body.d.ts → body.d.ts} +0 -0
  568. /package/dist/components/table/{table-cell.d.ts → cell.d.ts} +0 -0
  569. /package/dist/components/table/{table-header.d.ts → header.d.ts} +0 -0
  570. /package/dist/components/table/{table-row.d.ts → row.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/time-field/index.tsx"],"names":["control","input","description","error","TimeField","M","classNames","labelProp","shouldForceLeadingZeros","isDisabled","isInvalidProp","isRequired","isSmall","AriaTimeField","rest","L","className","field","a","hourCycle","label","Label","w","e","E","u","size","jsx","AriaDateInput","composeRenderProps","v","segmentProp","AriaText","x","descriptionProp","errorMessage"],"mappings":"oUA6BsB,KAAA,CAAAA,QAASC,KAAO,CAAA,CAAA,CAAA,OAAAC,CAAa,CAAA,CAAA,KAAAC,CAAO,CAAA,CAAA,WACxC,CAAA,CAWX,CAAA,KAAA,CAAA,CAAA,CAASC,OACd,CAAA,CAAA,CAAA,CAAAC,eAAA,EAAAC,CAAAA,SACA,CAAA,CAAA,CAAA,UACA,CAAA,CAAA,CAAA,WACA,CAAA,CAAA,CAAA,YAAc,CAAA,CACd,CAAA,WAAY,CAAA,CAAA,CACZ,QAAA,CAAA,SACA,CAAOC,CAAAA,CACP,EAAA,CAAA,UAAA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAAC,uBAEA,CAAA,CAAA,CAAA,IAAA,CAAA,IAAAC,CACA,CAAA,CAAA,QAAWC,CAAAA,UACX,CAAA,CAAAC,CAAAA,SAGA,CAAA,CAAA,CAAA,UAAyC,CAAA,CACnCC,CAAAA,KAAmB,CAAA,CAAA,MAEzB,CAAA,CAAA,CAAA,EAAA,IACGC,CAAAA,CAAA,CACE,CAAA,GAAGC,OACJ,CAAA,OAA8BR,GAAY,CAAAS,SAAA,CAAA,CAAA,GAAQC,CAAAA,CAChDC,SAAQ,CAAAC,kBAAA,CAAA,CAAAF,EAAW,KAErB,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAWG,WACX,CAAA,CAAA,CAAA,SAAA,CAAA,CAA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A,EAAW9B,CAAY,CACrB,EAAA,CAAA,CAAA,EAAAqB,GAAA,CAAAU,IAAA,CAAW3B,CAAAA,SAAY,CAAA,CAAA,CAAA,CACzB,SACK,CAAA,CAAA,EAAA,WAEJ,CAAA,CAAA,CAAA,IAAA4B,CAAAA,aAIH,CAAA,QAA8B5B,CAAY,CAAA,CAAA,CAAA,CAAAiB,GAAA,CAAQP,UAAAA,CAAAA,CAChDb,SAAQ,CAAAe,kBAAA,CAAA,CAAAF,EAAW,KAGpB,CAAA,CAAA,EAAA,CAAA,CAAA,CAAAmB,SAMb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 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 { Time } from '@accelint/icons';\nimport {\n DateInput as AriaDateInput,\n Text as AriaText,\n TimeField as AriaTimeField,\n composeRenderProps,\n DateSegment,\n FieldError,\n type TimeValue,\n} from 'react-aria-components';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { TimeFieldStyles } from './styles';\nimport type { TimeFieldProps } from './types';\n\nconst { field, label, control, input, description, error, segment } =\n TimeFieldStyles();\n\n/**\n * TimeField - Form input for time values\n *\n * A time input field with configurable granularity and size, built on React\n * Aria components and suitable for forms requiring time entry.\n *\n * @example\n * <TimeField label=\"Time\" granularity=\"second\" />\n */\nexport function TimeField<T extends TimeValue>({\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n granularity = 'second',\n hourCycle = 24,\n inputProps,\n label: labelProp,\n shouldForceLeadingZeros = true,\n size = 'medium',\n isDisabled,\n isInvalid: isInvalidProp,\n isRequired,\n ...rest\n}: TimeFieldProps<T>) {\n const errorMessage = errorMessageProp || null; // Protect against empty string\n const isSmall = size === 'small';\n\n return (\n <AriaTimeField<T>\n {...rest}\n className={composeRenderProps(classNames?.field, (className) =>\n field({ className }),\n )}\n granularity={granularity}\n hourCycle={hourCycle}\n shouldForceLeadingZeros={shouldForceLeadingZeros}\n isDisabled={isDisabled}\n isInvalid={isInvalidProp || (errorMessage ? true : undefined)} // Leave uncontrolled if possible to fallback to validation state\n isRequired={isRequired}\n aria-label={labelProp}\n data-size={size}\n >\n {(\n { isDisabled }, // Rely on internal state, not props, since state could differ from props\n ) => (\n <>\n {!isSmall && label && (\n <Label\n className={label({ className: classNames?.label })}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n <div className={control({ className: classNames?.control })}>\n {size === 'medium' && (\n <Icon>\n <Time />\n </Icon>\n )}\n <AriaDateInput\n {...inputProps}\n className={composeRenderProps(classNames?.input, (className) =>\n input({\n className,\n }),\n )}\n >\n {(segmentProp) => (\n <DateSegment\n segment={segmentProp}\n className={composeRenderProps(\n classNames?.segment,\n (className) => segment({ className }),\n )}\n />\n )}\n </AriaDateInput>\n <span>Z</span>\n </div>\n {descriptionProp && !(isSmall || isInvalidProp) && !errorMessage && (\n <AriaText\n className={description({\n className: classNames?.description,\n })}\n slot='description'\n >\n {descriptionProp}\n </AriaText>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n error({ className }),\n )}\n >\n {errorMessage}\n </FieldError>\n </>\n )}\n </AriaTimeField>\n );\n}\n"]}
1
+ {"version":3,"sources":["../../../src/components/time-field/index.tsx"],"names":["control","input","description","error","TimeField","M","classNames","labelProp","shouldForceLeadingZeros","isDisabled","isInvalidProp","isRequired","isSmall","AriaTimeField","rest","L","className","field","a","hourCycle","label","Label","w","e","E","u","size","jsx","AriaDateInput","composeRenderProps","v","segmentProp","AriaText","x","descriptionProp","errorMessage"],"mappings":"oUA6BsB,KAAA,CAAAA,QAASC,KAAO,CAAA,CAAA,CAAA,OAAAC,CAAa,CAAA,CAAA,KAAAC,CAAO,CAAA,CAAA,WACxC,CAAA,CAWX,CAAA,KAAA,CAAA,CAAA,CAASC,OACd,CAAA,CAAA,CAAA,CAAAC,eAAA,EAAAC,CAAAA,SACA,CAAA,CAAA,CAAA,UACA,CAAA,CAAA,CAAA,WACA,CAAA,CAAA,CAAA,YAAc,CAAA,CACd,CAAA,WAAY,CAAA,CAAA,CACZ,QAAA,CAAA,SACA,CAAOC,CAAAA,CACP,EAAA,CAAA,UAAA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAAC,uBAEA,CAAA,CAAA,CAAA,IAAA,CAAA,IAAAC,CACA,CAAA,CAAA,QAAWC,CAAAA,UACX,CAAA,CAAAC,CAAAA,SAGA,CAAA,CAAA,CAAA,UAAyC,CAAA,CACnCC,CAAAA,KAAmB,CAAA,CAAA,MAEzB,CAAA,CAAA,CAAA,EAAA,IACGC,CAAAA,CAAA,CACE,CAAA,GAAGC,OACJ,CAAA,OAA8BR,GAAY,CAAAS,SAAA,CAAA,CAAA,GAAQC,CAAAA,CAChDC,SAAQ,CAAAC,kBAAA,CAAA,CAAAF,EAAW,KAErB,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAWG,WACX,CAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAyBX,uBAEzB,CAAA,CAAWE,CAAAA,UAAwC,CAAA,CAAA,CAAA,SACnD,CAAA,CAAA,GAAYC,CAAAA,CACZ,uBACA,CAAA,CAAA,CAAA,YAEC,CAAA,CAAA,CACC,WAAE,CAAAF,CAAW,CAAA,QAGV,CAAA,CAAA,CAAA,UAACG,CAAWQ,CAAAA,CAAAA,GACVC,IAAAA,CAAAC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AAA,CAAAA,CAChDb,SAAQ,CAAAe,kBAAA,CAAA,CAAAF,EAAW,KAGpB,CAAA,CAAA,EAAA,CAAA,CAAA,CAAAmB,SAMb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 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 { Time } from '@accelint/icons';\nimport 'client-only';\nimport {\n DateInput as AriaDateInput,\n Text as AriaText,\n TimeField as AriaTimeField,\n composeRenderProps,\n DateSegment,\n FieldError,\n type TimeValue,\n} from 'react-aria-components';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { TimeFieldStyles } from './styles';\nimport type { TimeFieldProps } from './types';\n\nconst { field, label, control, input, description, error, segment } =\n TimeFieldStyles();\n\n/**\n * TimeField - Form input for time values\n *\n * A time input field with configurable granularity and size, built on React\n * Aria components and suitable for forms requiring time entry.\n *\n * @example\n * <TimeField label=\"Time\" granularity=\"second\" />\n */\nexport function TimeField<T extends TimeValue>({\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n granularity = 'second',\n hourCycle = 24,\n inputProps,\n label: labelProp,\n shouldForceLeadingZeros = true,\n size = 'medium',\n isDisabled,\n isInvalid: isInvalidProp,\n isRequired,\n ...rest\n}: TimeFieldProps<T>) {\n const errorMessage = errorMessageProp || null; // Protect against empty string\n const isSmall = size === 'small';\n\n return (\n <AriaTimeField<T>\n {...rest}\n className={composeRenderProps(classNames?.field, (className) =>\n field({ className }),\n )}\n granularity={granularity}\n hourCycle={hourCycle}\n shouldForceLeadingZeros={shouldForceLeadingZeros}\n isDisabled={isDisabled}\n isInvalid={isInvalidProp || (errorMessage ? true : undefined)} // Leave uncontrolled if possible to fallback to validation state\n isRequired={isRequired}\n aria-label={labelProp}\n data-size={size}\n >\n {(\n { isDisabled }, // Rely on internal state, not props, since state could differ from props\n ) => (\n <>\n {!isSmall && label && (\n <Label\n className={label({ className: classNames?.label })}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n <div className={control({ className: classNames?.control })}>\n {size === 'medium' && (\n <Icon>\n <Time />\n </Icon>\n )}\n <AriaDateInput\n {...inputProps}\n className={composeRenderProps(classNames?.input, (className) =>\n input({\n className,\n }),\n )}\n >\n {(segmentProp) => (\n <DateSegment\n segment={segmentProp}\n className={composeRenderProps(\n classNames?.segment,\n (className) => segment({ className }),\n )}\n />\n )}\n </AriaDateInput>\n <span>Z</span>\n </div>\n {descriptionProp && !(isSmall || isInvalidProp) && !errorMessage && (\n <AriaText\n className={description({\n className: classNames?.description,\n })}\n slot='description'\n >\n {descriptionProp}\n </AriaText>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n error({ className }),\n )}\n >\n {errorMessage}\n </FieldError>\n </>\n )}\n </AriaTimeField>\n );\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import * as react from 'react';
2
+ import { ContextValue } from 'react-aria-components';
3
+ import { TooltipTriggerProps } from './types.js';
4
+
5
+ declare const TooltipContext: react.Context<ContextValue<TooltipTriggerProps, HTMLDivElement>>;
6
+
7
+ export { TooltipContext };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import'client-only';import {createContext}from'react';const r=createContext(null);export{r as TooltipContext};//# sourceMappingURL=context.js.map
4
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tooltip/context.tsx"],"names":["TooltipContext","createContext"],"mappings":"sDAkBO,MAAMA,CAAAA,CACXC,cAAiE,IAAI","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { TooltipTriggerProps } from './types';\n\nexport const TooltipContext =\n createContext<ContextValue<TooltipTriggerProps, HTMLDivElement>>(null);\n"]}
@@ -1,9 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ContextValue } from 'react-aria-components';
4
- import { TooltipProps, TooltipTriggerProps } from './types.js';
2
+ import { TooltipProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
5
 
6
- declare const TooltipContext: react.Context<ContextValue<TooltipTriggerProps, HTMLDivElement>>;
7
6
  /**
8
7
  * Tooltip - A contextual popup component for providing additional information
9
8
  *
@@ -13,41 +12,33 @@ declare const TooltipContext: react.Context<ContextValue<TooltipTriggerProps, HT
13
12
  *
14
13
  * @example
15
14
  * // Basic tooltip
16
- * <Tooltip.Trigger>
15
+ * <TooltipTrigger>
17
16
  * <Button>Hover me</Button>
18
17
  * <Tooltip>
19
18
  * This is helpful information
20
19
  * </Tooltip>
21
- * </Tooltip.Trigger>
20
+ * </TooltipTrigger>
22
21
  *
23
22
  * @example
24
23
  * // Tooltip with custom positioning
25
- * <Tooltip.Trigger>
24
+ * <TooltipTrigger>
26
25
  * <Button>Hover for info</Button>
27
26
  * <Tooltip placement="top" offset={10}>
28
27
  * Positioned above with custom offset
29
28
  * </Tooltip>
30
- * </Tooltip.Trigger>
29
+ * </TooltipTrigger>
31
30
  *
32
31
  * @example
33
32
  * // Icon with tooltip
34
- * <Tooltip.Trigger>
33
+ * <TooltipTrigger>
35
34
  * <Button variant="icon">
36
35
  * <Icon><Info /></Icon>
37
36
  * </Button>
38
37
  * <Tooltip>
39
38
  * Additional context for this action
40
39
  * </Tooltip>
41
- * </Tooltip.Trigger>
40
+ * </TooltipTrigger>
42
41
  */
43
- declare function TooltipTrigger({ ref, ...props }: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
44
- declare namespace TooltipTrigger {
45
- var displayName: string;
46
- }
47
42
  declare function Tooltip({ children, parentRef, className, offset, placement, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
48
- declare namespace Tooltip {
49
- var displayName: string;
50
- var Trigger: typeof TooltipTrigger;
51
- }
52
43
 
53
- export { Tooltip, TooltipContext };
44
+ export { Tooltip };
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {useFocusable}from'@react-aria/interactions';import {useIsSSR}from'@react-aria/ssr';import {useObjectRef,mergeRefs,mergeProps}from'@react-aria/utils';import {createContext,Children,version,cloneElement}from'react';import {Tooltip,composeRenderProps,useContextProps,TooltipTrigger}from'react-aria-components';import {containsExactChildren}from'./../../lib/react.js';import {PortalProvider}from'./../../providers/portal.js';import {TooltipStyles}from'./styles.js';const S=createContext(null);function h({children:t,ref:e,...r}){e=useObjectRef(e);const{focusableProps:i}=useFocusable(r,e),[o,s]=Children.toArray(t),a=Number.parseInt(version,10)<19?o.ref:o.props.ref;return jsxs(Fragment,{children:[cloneElement(o,{...mergeProps(i,o.props),ref:mergeRefs(a,e)}),s]})}function p({ref:t,...e}){[e,t]=useContextProps(e,t??null,S);const{children:r,delay:i=250,...o}=e;return containsExactChildren({children:r,componentName:p.displayName,restrictions:[[n,{min:1,max:1}]]}),jsx(TooltipTrigger,{...o,delay:i,children:jsx(h,{ref:t,children:r})})}p.displayName="Tooltip.Trigger";function n({children:t,parentRef:e,className:r,offset:i=5,placement:o="bottom",...s}){const m=useIsSSR()?null:document.createElement("div");return m?.setAttribute("class","absolute"),jsx(PortalProvider,{parentRef:e,inject:m,children:jsx(Tooltip,{...s,className:composeRenderProps(r,c=>TooltipStyles({className:c})),offset:i,placement:o,children:t})})}n.displayName="Tooltip",n.Trigger=p;export{n as Tooltip,S as TooltipContext};//# sourceMappingURL=index.js.map
3
+ import {jsx}from'react/jsx-runtime';import {useIsSSR}from'@react-aria/ssr';import {PortalProvider}from'./../../providers/portal.js';import'client-only';import {useMemo}from'react';import {Tooltip,composeRenderProps}from'react-aria-components';import {TooltipStyles}from'./styles.js';function A({children:e,parentRef:i,className:p,offset:s=5,placement:l="bottom",...m}){const t=useIsSSR(),n=useMemo(()=>{if(t)return null;const o=document.createElement("div");return o.setAttribute("class","absolute"),o},[t]);return jsx(PortalProvider,{parentRef:i,inject:n,children:jsx(Tooltip,{...m,className:composeRenderProps(p,o=>TooltipStyles({className:o})),offset:s,placement:l,children:e})})}export{A as Tooltip};//# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/tooltip/index.tsx"],"names":["children","ref","d","focusableProps","useFocusable","u","childRef","b","trigger","R","jsxs","cloneElement","mergeProps","y","mergeRefs","g","tooltip","TooltipTrigger","props","delay","C","jsx","AriaTooltipTrigger","l","E","TooltipFocusable","parentRef","className","placement","overlayContainer","useIsSSR","T","F","AriaTooltip","TooltipStyles","v","N","offset","Tooltip"],"mappings":"qjBA+CEA,EACA,SAEF,CAAA,CAA6D,CAC3DC,QAEA,CAAA,CAAA,CAAA,GAAQ,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAC,YAAA,CAAAC,CAAe,CAAA,CAAIC,KAAuB,CAAA,cACd,CAAA,CAAA,CAAQJ,CAAQK,YAAA,CAK9CC,CAAAA,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AAA,SAAAC,CAAAA,CAAY,CAAA,MAAA,CAAA,CACZ,CAAA,CAAA,CAAGV,SAGH,CAAMW,CAAAA,CADQC,QACmB,CAAO,GAAA,CAAA,CAAA,CAAA,CAAA,MAAS,CAAA,CAAAC,QAAA,EAAA,CAAA,IAAc,SAC/D,CAAA,aAAkB,CAAA,KAAA,CAAa,CAAA,OAAS,CAAA,EAAA,aAErC,OAAe,CAAA,UAAsB,CAAA,CAAQF,GAAAA,CAC5CG,cAAA,CAAA,CAAA,SAACC,CAAA,CACE,CAAA,MACD,CAAA,CAAA,CAAA,QAA8BN,CAAYA,GAAAA,CAAAA,OACxCO,CAAAA,CAAc,GAAE,CAAA,CAAA,SAClB,CAAAC,kBACA,CAAA,CAAA,CAAA,CAAA,EAAAC,aAAQC,CAAAA,CACR,SAAA,CAAWT,EAEV,CAAA,CAAA,CAAA,MAAA5B,CAAAA,CACH,CAAA,SAIE,CAAA,CAAA,CAAA,QAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAEtBsC,EAAQ,WAAUrB,CAAAA,SAAAA,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport {\n type FocusableProviderProps,\n useFocusable,\n} from '@react-aria/interactions';\nimport { useIsSSR } from '@react-aria/ssr';\nimport { mergeProps, mergeRefs, useObjectRef } from '@react-aria/utils';\nimport {\n Children,\n cloneElement,\n createContext,\n type DOMAttributes,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n version,\n} from 'react';\nimport {\n Tooltip as AriaTooltip,\n TooltipTrigger as AriaTooltipTrigger,\n type ContextValue,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { containsExactChildren } from '@/lib/react';\nimport { PortalProvider } from '@/providers/portal';\nimport { TooltipStyles } from './styles';\nimport type { FocusableElement } from '@react-types/shared';\nimport type { TooltipProps, TooltipTriggerProps } from './types';\n\nexport const TooltipContext =\n createContext<ContextValue<TooltipTriggerProps, HTMLDivElement>>(null);\n\nfunction TooltipFocusable({\n children,\n ref,\n ...props\n}: FocusableProviderProps & RefAttributes<FocusableElement>) {\n ref = useObjectRef(ref);\n\n const { focusableProps } = useFocusable(props, ref);\n const [trigger, tooltip] = Children.toArray(children) as [\n ReactElement<DOMAttributes<FocusableElement>, string>,\n ReactNode,\n ];\n\n const childRef =\n //@ts-expect-error\n Number.parseInt(version, 10) < 19 ? trigger.ref : trigger.props.ref;\n\n return (\n <>\n {cloneElement(trigger, {\n ...mergeProps(focusableProps, trigger.props),\n //@ts-expect-error\n ref: mergeRefs(childRef, ref),\n })}\n {tooltip}\n </>\n );\n}\n/**\n * Tooltip - A contextual popup component for providing additional information\n *\n * Displays helpful information when users hover over or focus on an element.\n * Provides accessible tooltip functionality with proper positioning, keyboard\n * navigation, and screen reader support for enhanced user experience.\n *\n * @example\n * // Basic tooltip\n * <Tooltip.Trigger>\n * <Button>Hover me</Button>\n * <Tooltip>\n * This is helpful information\n * </Tooltip>\n * </Tooltip.Trigger>\n *\n * @example\n * // Tooltip with custom positioning\n * <Tooltip.Trigger>\n * <Button>Hover for info</Button>\n * <Tooltip placement=\"top\" offset={10}>\n * Positioned above with custom offset\n * </Tooltip>\n * </Tooltip.Trigger>\n *\n * @example\n * // Icon with tooltip\n * <Tooltip.Trigger>\n * <Button variant=\"icon\">\n * <Icon><Info /></Icon>\n * </Button>\n * <Tooltip>\n * Additional context for this action\n * </Tooltip>\n * </Tooltip.Trigger>\n */\nfunction TooltipTrigger({ ref, ...props }: TooltipTriggerProps) {\n [props, ref] = useContextProps(props, ref ?? null, TooltipContext);\n\n const { children, delay = 250, ...rest } = props;\n\n containsExactChildren({\n children,\n componentName: TooltipTrigger.displayName,\n restrictions: [[Tooltip, { min: 1, max: 1 }]],\n });\n\n return (\n <AriaTooltipTrigger {...rest} delay={delay}>\n <TooltipFocusable ref={ref}>{children}</TooltipFocusable>\n </AriaTooltipTrigger>\n );\n}\nTooltipTrigger.displayName = 'Tooltip.Trigger';\n\nexport function Tooltip({\n children,\n parentRef,\n className,\n offset = 5,\n placement = 'bottom',\n ...props\n}: TooltipProps) {\n const isSSR = useIsSSR();\n const overlayContainer = isSSR ? null : document.createElement('div');\n overlayContainer?.setAttribute('class', 'absolute');\n return (\n <PortalProvider parentRef={parentRef} inject={overlayContainer}>\n <AriaTooltip\n {...props}\n className={composeRenderProps(className, (className) =>\n TooltipStyles({ className }),\n )}\n offset={offset}\n placement={placement}\n >\n {children}\n </AriaTooltip>\n </PortalProvider>\n );\n}\nTooltip.displayName = 'Tooltip';\n\nTooltip.Trigger = TooltipTrigger;\n"]}
1
+ {"version":3,"sources":["../../../src/components/tooltip/index.tsx"],"names":["className","placement","props","isSSR","overlayContainer","useMemo","f","div","jsx","PortalProvider","r","parentRef","AriaTooltip","u","T","offset"],"mappings":"2RA6DE,SACA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,SAAAA,CACA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,MAAA,CAAAC,EAAY,CAAA,CAAA,SACZ,CAAGC,CACL,CAAA,QACQC,IAAiB,CAAA,CACjBC,CAAAA,CAAmBC,MAAc,CACrC,WAAIF,CACF,CAAA,CAAAG,OAAA,CAAA,IAAO,CAAA,GAET,CAAA,CAAA,OAAY,IAAA,CAAA,iBAAuB,aACnC,CAAAC,KAAI,CAAA,CAAA,OAAA,CAAa,CAAA,oBAEnB,CAAA,UAEA,CAAA,CAAA,CACEC,CAAAA,CAACC,CAAAA,CAAA,CAAe,CAAA,CAAA,OAAAC,GAAWC,CAAAA,cAAW,WACpC,CAAA,CAAA,CAAA,MAACC,CAAAA,CAAA,CACE,QACD,CAAAF,GAAA,CAAAG,OAAA,CAAA,CAAA,GAA8Bb,CAAAA,CAAYA,kCACdc,aAAC,CAC7B,CAAA,SACQC,CACR,WAAWd,CAEV,CAAA,CAAA,SACH,CAAA,CACF,CAEJ,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 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 { useIsSSR } from '@react-aria/ssr';\nimport { PortalProvider } from '@/providers/portal';\nimport 'client-only';\nimport { useMemo } from 'react';\nimport {\n Tooltip as AriaTooltip,\n composeRenderProps,\n} from 'react-aria-components';\nimport { TooltipStyles } from './styles';\nimport type { TooltipProps } from './types';\n\n/**\n * Tooltip - A contextual popup component for providing additional information\n *\n * Displays helpful information when users hover over or focus on an element.\n * Provides accessible tooltip functionality with proper positioning, keyboard\n * navigation, and screen reader support for enhanced user experience.\n *\n * @example\n * // Basic tooltip\n * <TooltipTrigger>\n * <Button>Hover me</Button>\n * <Tooltip>\n * This is helpful information\n * </Tooltip>\n * </TooltipTrigger>\n *\n * @example\n * // Tooltip with custom positioning\n * <TooltipTrigger>\n * <Button>Hover for info</Button>\n * <Tooltip placement=\"top\" offset={10}>\n * Positioned above with custom offset\n * </Tooltip>\n * </TooltipTrigger>\n *\n * @example\n * // Icon with tooltip\n * <TooltipTrigger>\n * <Button variant=\"icon\">\n * <Icon><Info /></Icon>\n * </Button>\n * <Tooltip>\n * Additional context for this action\n * </Tooltip>\n * </TooltipTrigger>\n */\nexport function Tooltip({\n children,\n parentRef,\n className,\n offset = 5,\n placement = 'bottom',\n ...props\n}: TooltipProps) {\n const isSSR = useIsSSR();\n const overlayContainer = useMemo(() => {\n if (isSSR) {\n return null;\n }\n const div = document.createElement('div');\n div.setAttribute('class', 'absolute');\n return div;\n }, [isSSR]);\n\n return (\n <PortalProvider parentRef={parentRef} inject={overlayContainer}>\n <AriaTooltip\n {...props}\n className={composeRenderProps(className, (className) =>\n TooltipStyles({ className }),\n )}\n offset={offset}\n placement={placement}\n >\n {children}\n </AriaTooltip>\n </PortalProvider>\n );\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { TooltipTriggerProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
+
6
+ declare function TooltipTrigger({ ref, ...props }: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { TooltipTrigger };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {useFocusable}from'@react-aria/interactions';import {useObjectRef,mergeRefs,mergeProps}from'@react-aria/utils';import {Children,version,cloneElement}from'react';import {useContextProps,TooltipTrigger}from'react-aria-components';import {TooltipContext}from'./context.js';function d({children:o,ref:e,...r}){e=useObjectRef(e);const{focusableProps:i}=useFocusable(r,e),[t,p]=Children.toArray(o),l=Number.parseInt(version,10)<19?t.ref:t.props.ref;return jsxs(Fragment,{children:[cloneElement(t,{...mergeProps(i,t.props),ref:mergeRefs(l,e)}),p]})}function N({ref:o,...e}){[e,o]=useContextProps(e,o??null,TooltipContext);const{children:r,delay:i=250,...t}=e;return jsx(TooltipTrigger,{...t,delay:i,children:jsx(d,{ref:o,children:r})})}export{N as TooltipTrigger};//# sourceMappingURL=trigger.js.map
4
+ //# sourceMappingURL=trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tooltip/trigger.tsx"],"names":["ref","props","useObjectRef","a","useFocusable","trigger","tooltip","Children","u","childRef","b","R","P","g","mergeProps","mergeRefs","useContextProps","y","rest","s","T","TooltipFocusable"],"mappings":"2VAoCA,SACE,CAAA,CAAA,CAAA,WACAA,GACA,CAAA,CAAGC,CACL,GACED,CAAAA,CAAME,CAAAA,CAAaF,CAAG,CAAAG,YAEtB,SAAQ,CAAA,cAAmBC,EAAaH,CAAAA,CAAOD,YAAG,CAAA,CAC5C,CAACK,EAASC,CAAO,CAAA,CAAIC,CAAAA,CAAS,CAAA,CAAAC,QAAA,CAAA,OAK9BC,CAAAA,CAEJ,CAAA,CAAA,CAAA,CAAA,MAAO,CAAA,QAAkB,CAAEC,OAAA,CAAI,EAAA,CAAKL,CAAAA,EAAQ,CAAA,CAAA,CAAMA,GAAQ,CAAA,CAAA,CAAA,KAAM,CAElE,WACEM,IACG,CAAAC,QAAA,CAAA,CAAA,QAAaP,CAAAA,CAASQ,YACrB,CAAA,CAAA,CAAGC,CAAAA,GAA2BT,UAAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,KAEtC,CAAA,CAAKU,GAAUN,CAAUT,SAAG,CAC9B,CAAC,EACAM,CAAAA,CAAAA,CACH,CAEJ,CAEO,CAAA,CAAA,CAAA,CAAA,SAA0B,CAAA,CAAA,CAAAN,GAAK,CAAA,CAAGC,CAAM,GAC7C,CAACA,CAAAA,CAAOD,CAAG,CAAA,CAAIgB,CAAAA,CAAgBf,CAAAA,CAAOD,eAAAA,CAAAA,CAAO,QAE7C,CAAAiB,cAAA,CAAA,CAAA,cAAkB,CAAA,CAAA,CAAA,KAAQ,CAAA,CAAA,CAAK,GAAGC,CAAK,GAAIjB,CAE3C,CAAA,CAAA,CAAA,CAAA,OACGkB,GAAoB,CAAAC,cAAA,CAAGF,CAAAA,UACtB,CAAA,CAAA,CAAA,QAACG,CAAAF,GAAiB,CAAA,CAAA,CAAA,CAAKnB,GAAM,CAAA,CAAA,CAAA,SAC/B,CAEJ,CAAA,CAAA,CAAA,CAAA","file":"trigger.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport {\n type FocusableProviderProps,\n useFocusable,\n} from '@react-aria/interactions';\nimport { mergeProps, mergeRefs, useObjectRef } from '@react-aria/utils';\nimport {\n Children,\n cloneElement,\n type DOMAttributes,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n version,\n} from 'react';\nimport {\n TooltipTrigger as AriaTooltipTrigger,\n useContextProps,\n} from 'react-aria-components';\nimport { TooltipContext } from './context';\nimport type { FocusableElement } from '@react-types/shared';\nimport type { TooltipTriggerProps } from './types';\n\nfunction TooltipFocusable({\n children,\n ref,\n ...props\n}: FocusableProviderProps & RefAttributes<FocusableElement>) {\n ref = useObjectRef(ref);\n\n const { focusableProps } = useFocusable(props, ref);\n const [trigger, tooltip] = Children.toArray(children) as [\n ReactElement<DOMAttributes<FocusableElement>, string>,\n ReactNode,\n ];\n\n const childRef =\n //@ts-expect-error\n Number.parseInt(version, 10) < 19 ? trigger.ref : trigger.props.ref;\n\n return (\n <>\n {cloneElement(trigger, {\n ...mergeProps(focusableProps, trigger.props),\n //@ts-expect-error\n ref: mergeRefs(childRef, ref),\n })}\n {tooltip}\n </>\n );\n}\n\nexport function TooltipTrigger({ ref, ...props }: TooltipTriggerProps) {\n [props, ref] = useContextProps(props, ref ?? null, TooltipContext);\n\n const { children, delay = 250, ...rest } = props;\n\n return (\n <AriaTooltipTrigger {...rest} delay={delay}>\n <TooltipFocusable ref={ref}>{children}</TooltipFocusable>\n </AriaTooltipTrigger>\n );\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components';
2
+ import { TooltipTriggerComponentProps, TooltipProps as TooltipProps$1 } from 'react-aria-components';
3
3
 
4
4
  type TooltipTriggerProps = Omit<ComponentPropsWithRef<'div'>, 'className'> & TooltipTriggerComponentProps;
5
5
  type TooltipProps = TooltipProps$1 & {
@@ -0,0 +1,18 @@
1
+ import * as react from 'react';
2
+ import { TreeContextValue, TreeItemContextValue } from './types.js';
3
+ import '@react-types/shared';
4
+ import 'react-aria-components';
5
+ import 'tailwind-variants';
6
+ import '../../hooks/use-tree/types.js';
7
+ import './styles.js';
8
+
9
+ /**
10
+ * Context for Tree component
11
+ */
12
+ declare const TreeContext: react.Context<TreeContextValue>;
13
+ /**
14
+ * Context for TreeItem component
15
+ */
16
+ declare const TreeItemContext: react.Context<TreeItemContextValue>;
17
+
18
+ export { TreeContext, TreeItemContext };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import'client-only';import {createContext}from'react';import {TreeStylesDefaults}from'./styles.js';const s=createContext({visibilityComputedKeys:new Set,showRuleLines:true,showVisibility:false,variant:TreeStylesDefaults.variant,isStatic:true,onVisibilityChange:()=>{}}),n=createContext({isVisible:true,isViewable:true,ancestors:[]});export{s as TreeContext,n as TreeItemContext};//# sourceMappingURL=context.js.map
4
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tree/context.tsx"],"names":["e","TreeItemContext","createContext"],"mappings":"yGAqB2D,CACzD,CAAAA,aAAA,CAAA,CAAA,uBAA4B,IAC5B,GAAA,CAAA,aACA,CAAA,IAAA,CAAA,cACA,CAAA,KAAA,CAAA,kCACA,CAAA,QACA,wBAAoB,CAAG,IACxB,CAKYC,CAAAA,CAAkBC,CAAAA,CAAoC,CACjE,yBACA,CAAA,IAAA,CAAA,UACA,CAAA,IAAA,CAAA,SACD,CAAA,EAAA,CAAA","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport { TreeStylesDefaults } from './styles';\nimport type { TreeContextValue, TreeItemContextValue } from './types';\n\n/**\n * Context for Tree component\n */\nexport const TreeContext = createContext<TreeContextValue>({\n visibilityComputedKeys: new Set(),\n showRuleLines: true,\n showVisibility: false,\n variant: TreeStylesDefaults.variant,\n isStatic: true,\n onVisibilityChange: () => undefined,\n});\n\n/**\n * Context for TreeItem component\n */\nexport const TreeItemContext = createContext<TreeItemContextValue>({\n isVisible: true,\n isViewable: true,\n ancestors: [],\n});\n"]}
@@ -1,20 +1,17 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { PropsWithChildren } from 'react';
4
- import { TextProps } from 'react-aria-components';
5
- import { IconProps } from '../icon/types.js';
6
- import { TreeProps, TreeItemProps, TreeItemContentProps, TreeContextValue, TreeItemContextValue } from './types.js';
2
+ import { TreeProps } from './types.js';
7
3
  import '@react-types/shared';
4
+ import 'react-aria-components';
8
5
  import 'tailwind-variants';
9
6
  import '../../hooks/use-tree/types.js';
7
+ import 'react';
10
8
  import './styles.js';
11
9
 
12
- declare const TreeContext: react.Context<TreeContextValue>;
13
10
  /**
14
11
  * Tree - Hierarchical tree view with optional drag-and-drop and visibility
15
12
  *
16
13
  * Renders a selectable tree with support for nested items, drag-and-drop,
17
- * selection modes, and visibility controls. Use Tree.Item to define nodes.
14
+ * selection modes, and visibility controls. Use TreeItem to define nodes.
18
15
  *
19
16
  * @example
20
17
  * <Tree items={items} expandedKeys={expandedKeys}>
@@ -23,50 +20,14 @@ declare const TreeContext: react.Context<TreeContextValue>;
23
20
  *
24
21
  * @example
25
22
  * <Tree>
26
- * <Tree.Item id='one' textValue='one'>
27
- * <Tree.Item.Content>One</Tree.Item.Content>
28
- * <Tree.Item id='two' textValue='two'>
29
- * <Tree.Item.Content>Two</Tree.Item.Content>
30
- * </Tree.Item>
31
- * </Tree.Item>
23
+ * <TreeItem id='one' textValue='one'>
24
+ * <TreeItemContent>One</TreeItemContent>
25
+ * <TreeItem id='two' textValue='two'>
26
+ * <TreeItemContent>Two</TreeItemContent>
27
+ * </TreeItem>
28
+ * </TreeItem>
32
29
  * </Tree>
33
30
  */
34
31
  declare function Tree<T>({ children, className, disabledKeys: disabledKeysProp, dragAndDropConfig, expandedKeys: expandedKeysProp, items, selectedKeys: selectedKeysProp, showRuleLines, showVisibility, selectionMode, variant, visibleKeys: visibleKeysProp, onVisibilityChange, onSelectionChange, ...rest }: TreeProps<T>): react_jsx_runtime.JSX.Element;
35
- declare namespace Tree {
36
- var displayName: string;
37
- var Item: typeof TreeItem;
38
- }
39
- declare const TreeItemContext: react.Context<TreeItemContextValue>;
40
- declare function TreeItem({ className, id, ...rest }: TreeItemProps): react_jsx_runtime.JSX.Element;
41
- declare namespace TreeItem {
42
- var displayName: string;
43
- var Content: typeof ItemContent;
44
- var Label: typeof ItemLabel;
45
- var Description: typeof ItemDescription;
46
- var PrefixIcon: typeof ItemIcon;
47
- var Actions: typeof ItemActions;
48
- }
49
- declare function ItemContent({ children }: TreeItemContentProps): react_jsx_runtime.JSX.Element;
50
- declare namespace ItemContent {
51
- var displayName: string;
52
- }
53
- declare function ItemLabel({ children, className }: TextProps): react_jsx_runtime.JSX.Element;
54
- declare namespace ItemLabel {
55
- var displayName: string;
56
- }
57
- declare function ItemDescription({ children, className }: TextProps): react_jsx_runtime.JSX.Element | null;
58
- declare namespace ItemDescription {
59
- var displayName: string;
60
- }
61
- declare function ItemIcon({ children, className }: IconProps): react_jsx_runtime.JSX.Element;
62
- declare namespace ItemIcon {
63
- var displayName: string;
64
- }
65
- declare function ItemActions({ children, className, }: PropsWithChildren & {
66
- className?: string;
67
- }): react_jsx_runtime.JSX.Element;
68
- declare namespace ItemActions {
69
- var displayName: string;
70
- }
71
32
 
72
- export { Tree, TreeContext, TreeItemContext };
33
+ export { Tree };
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx,jsxs}from'react/jsx-runtime';import {Show,Hide,ChevronDown,ChevronUp,DragVert}from'@accelint/icons';import {Cache}from'./../../hooks/use-tree/actions/cache.js';import'client-only';import {createContext,memo,useContext,useMemo}from'react';import {TreeItemContent,TreeItem,composeRenderProps,Text,useDragAndDrop,Tree,DropIndicator}from'react-aria-components';import {Button}from'../button/index.js';import {Checkbox}from'../checkbox/index.js';import {Icon}from'../icon/index.js';import {Lines}from'../lines/index.js';import {TreeStyles,TreeStylesDefaults}from'./styles.js';const {tree:pe,item:ue,content:ye,display:fe,icon:be,label:ve,actions:Te,spacing:E,description:he,drag:Ie,expansion:Ce,visibility:ge}=TreeStyles(),x=createContext({visibilityComputedKeys:new Set,showRuleLines:true,showVisibility:false,variant:TreeStylesDefaults.variant,isStatic:true,onVisibilityChange:()=>{}}),xe=t=>jsx(DropIndicator,{target:t,className:"border border-highlight-hover"}),we=memo(function({level:o,isLastOfSet:s}){const{showRuleLines:m,variant:r}=useContext(x);return Array.from({length:o}).map((i,n)=>{const a=n===o-1?"branch":"vert",d=s&&n>0?"last":a;return jsx(Lines,{variant:d,size:r==="crammed"?"medium":"large",isVisible:m,className:E({variant:r})},n)})});function H({children:t,className:o,disabledKeys:s,dragAndDropConfig:m,expandedKeys:r,items:i,selectedKeys:n,showRuleLines:a=true,showVisibility:d=true,selectionMode:l="multiple",variant:w=TreeStylesDefaults.variant,visibleKeys:y,onVisibilityChange:K,onSelectionChange:N,...D}){if(i&&(s||r||n||y))throw new Error("Tree should only be controlled with state from either `items` or keys props, not both");if(!!i!=(typeof t=="function"))throw new Error("Tree `items` and node iterator `children` must be used together");const{dragAndDropHooks:V}=useDragAndDrop({renderDropIndicator:xe,getAllowedDropOperations:()=>["move"],getDropOperation:()=>"move",...m}),f=useMemo(()=>i?new Cache([...i]):null,[i]),c=useMemo(()=>f?.getAllNodes(),[f]),{disabledKeys:S,expandedKeys:T,selectedKeys:h,visibleKeys:A,visibilityComputedKeys:I}=useMemo(()=>{const p={disabledKeys:c?new Set:s,expandedKeys:c?new Set:r,selectedKeys:c?new Set:n,visibleKeys:c?new Set:y,visibilityComputedKeys:new Set};return c?c.reduce((b,{key:C,isDisabled:G,isExpanded:J,isSelected:Q,isVisible:X,isVisibleComputed:Y})=>(G&&b.disabledKeys?.add(C),J&&b.expandedKeys?.add(C),Q&&b.selectedKeys?.add(C),X&&b.visibleKeys?.add(C),Y&&b.visibilityComputedKeys.add(C),b),p):p},[c,s,r,n,y]),F=h?p=>{p!=="all"&&N?.(p);}:void 0;return jsx(x.Provider,{value:{disabledKeys:S,expandedKeys:T,selectedKeys:h,showRuleLines:a,showVisibility:d,variant:w,visibleKeys:A,visibilityComputedKeys:I,isStatic:typeof t!="function",onVisibilityChange:K??(()=>{})},children:jsx(Tree,{...D,className:composeRenderProps(o,p=>pe({className:p,variant:w})),disabledKeys:S,dragAndDropHooks:V,expandedKeys:T,items:i,selectedKeys:h,onSelectionChange:F,selectionMode:l,children:t})})}H.displayName="Tree";const z=createContext({isVisible:true,isViewable:true,ancestors:[]});function u({className:t,id:o,...s}){const{visibilityComputedKeys:m,visibleKeys:r,isStatic:i}=useContext(x),{ancestors:n}=useContext(z),a=m?.has(o)||i&&n.every(l=>r?.has(l)),d=r?.has(o);return jsx(z.Provider,{value:{isVisible:d,isViewable:a,ancestors:[...n,o]},children:jsx(TreeItem,{...s,id:o,className:composeRenderProps(t,l=>ue({className:l})),"data-viewable":a||null,"data-visible":d||null})})}u.displayName="Tree.Item";function M({children:t}){const{showVisibility:o,variant:s,visibleKeys:m,onVisibilityChange:r}=useContext(x),{isVisible:i,isViewable:n}=useContext(z),a=s==="cozy"?"medium":"small";return jsx(TreeItemContent,{children:d=>{const{id:l,allowsDragging:w,hasChildItems:y,level:K,selectionBehavior:N,selectionMode:D,state:V,isDisabled:f,isExpanded:c,isSelected:S}=d,T=!(V.collection.getItem(l)?.nextKey||y),h=N==="toggle"&&D!=="none",A=()=>{const I=new Set(m);m?.has(l)?I.delete(l):I.add(l),r?.(I);};return jsx(Icon.Provider,{size:a,children:jsxs("div",{className:ye({variant:s}),"data-last-of-set":T,children:[o&&jsx(Button,{variant:"icon",color:"mono-bold",size:a,onPress:A,isDisabled:f,className:ge(),children:jsx(Icon,{children:i?jsx(Show,{}):jsx(Hide,{})})}),K>1&&jsx(we,{level:K,isLastOfSet:T}),y?jsx(Button,{slot:"chevron",variant:"icon",size:a,className:Ce(),children:jsx(Icon,{children:c?jsx(ChevronDown,{}):jsx(ChevronUp,{})})}):jsx("div",{className:E({variant:s})}),jsx("div",{className:fe({variant:s}),children:typeof t=="function"?t({...d,variant:s,isVisible:i,isViewable:n,defaultChildren:null}):t}),h&&jsx(Checkbox,{slot:"selection",isSelected:S,isDisabled:f}),w&&jsx(Button,{slot:"drag",variant:"icon",size:a,isDisabled:f,className:Ie({}),children:jsx(Icon,{children:jsx(DragVert,{})})})]})})}})}M.displayName="Tree.Item.Content";function W({children:t,className:o}){return jsx(Text,{className:ve({className:o}),children:t})}W.displayName="Tree.Item.Label";function U({children:t,className:o}){const{variant:s}=useContext(x);return s!=="crammed"?jsx(Text,{"data-slot":"description",className:he({className:o,variant:s}),children:t}):null}U.displayName="Tree.Item.Description";function _({children:t,className:o}){return jsx(Icon,{className:be({className:o}),children:t})}_.displayName="Tree.Item.PrefixIcon";function q({children:t,className:o}){return jsx("div",{className:Te({className:o}),children:t})}q.displayName="Tree.Icon.Actions",H.Item=u,u.Content=M,u.Label=W,u.Description=U,u.PrefixIcon=_,u.Actions=q;export{H as Tree,x as TreeContext,z as TreeItemContext};//# sourceMappingURL=index.js.map
3
+ import {jsx}from'react/jsx-runtime';import {Cache}from'./../../hooks/use-tree/actions/cache.js';import'client-only';import {useMemo}from'react';import {useDragAndDrop,Tree,composeRenderProps,DropIndicator}from'react-aria-components';import {TreeContext}from'./context.js';import {TreeStyles,TreeStylesDefaults}from'./styles.js';const{tree:L}=TreeStyles(),Q=i=>jsx(DropIndicator,{target:i,className:"border border-highlight-hover"});function $({children:i,className:h,disabledKeys:s,dragAndDropConfig:T,expandedKeys:d,items:r,selectedKeys:a,showRuleLines:g=true,showVisibility:b=true,selectionMode:w="multiple",variant:u=TreeStylesDefaults.variant,visibleKeys:l,onVisibilityChange:D,onSelectionChange:S,...v}){if(r&&(s||d||a||l))throw new Error("Tree should only be controlled with state from either `items` or keys props, not both");if(!!r!=(typeof i=="function"))throw new Error("Tree `items` and node iterator `children` must be used together");const{dragAndDropHooks:C}=useDragAndDrop({renderDropIndicator:Q,getAllowedDropOperations:()=>["move"],getDropOperation:()=>"move",...T}),m=useMemo(()=>r?new Cache([...r]):null,[r]),e=useMemo(()=>m?.getAllNodes(),[m]),{disabledKeys:c,expandedKeys:K,selectedKeys:p,visibleKeys:A,visibilityComputedKeys:x}=useMemo(()=>{const t={disabledKeys:e?new Set:s,expandedKeys:e?new Set:d,selectedKeys:e?new Set:a,visibleKeys:e?new Set:l,visibilityComputedKeys:new Set};return e?e.reduce((o,{key:n,isDisabled:N,isExpanded:E,isSelected:H,isVisible:M,isVisibleComputed:O})=>(N&&o.disabledKeys?.add(n),E&&o.expandedKeys?.add(n),H&&o.selectedKeys?.add(n),M&&o.visibleKeys?.add(n),O&&o.visibilityComputedKeys.add(n),o),t):t},[e,s,d,a,l]),I=p?t=>{t!=="all"&&S?.(t);}:void 0;return jsx(TreeContext.Provider,{value:{disabledKeys:c,expandedKeys:K,selectedKeys:p,showRuleLines:g,showVisibility:b,variant:u,visibleKeys:A,visibilityComputedKeys:x,isStatic:typeof i!="function",onVisibilityChange:D??(()=>{})},children:jsx(Tree,{...v,className:composeRenderProps(h,t=>L({className:t,variant:u})),disabledKeys:c,dragAndDropHooks:C,expandedKeys:K,items:r,selectedKeys:p,onSelectionChange:I,selectionMode:w,children:i})})}export{$ as Tree};//# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/tree/index.tsx"],"names":["label","description","drag","expansion","TreeStyles","me","B","target","jsx","e","ae","TreeLines","se","showRuleLines","variant","TreeContext","_","i","type","level","Lines","ce","spacing","Tree","children","className","disabledKeysProp","selectionMode","onVisibilityChange","k","onSelectionChange","items","defaultRenderDropIndicator","le","nodes","P","oe","disabledKeys","visibilityComputedKeys","acc","selectedKeysProp","visibleKeysProp","isExpanded","isSelected","isDisabled","key","isVisible","isVisibleComputed","expandedKeysProp","handleSelectionChange","selectedKeys","AriaTree","ie","O","expandedKeys","TreeItem","visibleKeys","isStatic","isViewable","ancestors","v","id","TreeItemContext","rest","item","ne","useContext","renderProps","allowsDragging","re","state","isLastOfSet","hasChildItems","keys","size","jsxs","g","Ke","Button","handlePress","L","visibility","Hide","te","ee","ChevronUp","$","display","shouldShowSelection","j","ItemLabel","R","ItemDescription","ItemIcon","actions","ItemContent","ItemActions"],"mappings":"ukBAuDEA,MAAAA,CAAAA,IACA,CAAA,EAAA,CAAA,IACA,CAAA,EAAA,CAAA,OACA,CAAA,EAAA,CAAA,OAAAC,CAAAA,EACA,CAAA,IAAAC,CAAAA,EACA,CAAA,KAAA,CAAA,EAAA,CAAAC,OACA,CAAA,EAAA,CAAA,OACEC,CAAAA,CAAAA,CAAW,WAGb,CAAA,EAAA,CAAA,IAAA,CAAA,EAAA,CAAA,SAAwB,CAAA,EAAI,CAAA,UAC5B,CAAA,EAAA,CAAA,CAAAC,UAAe,EACf,CA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AAA,CAAA,CAAO8C,QACH,CAAA,CAAA,CAAA,CAAUwC,CAAAA,CACnBxC,CAAAA,WACS,CAAA,mBACA,CAAA,CAAA,CAAA,IAAasC,CAAAA,CACtBtC,EAAS,CAAA,OAAUyC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,WAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 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 { ChevronDown, ChevronUp, DragVert, Hide, Show } from '@accelint/icons';\nimport { Cache } from '@/hooks/use-tree/actions/cache';\nimport type { Key, Selection } from '@react-types/shared';\nimport 'client-only';\nimport {\n createContext,\n memo,\n type PropsWithChildren,\n useContext,\n useMemo,\n} from 'react';\nimport {\n Tree as AriaTree,\n TreeItem as AriaTreeItem,\n TreeItemContent as AriaTreeItemContent,\n composeRenderProps,\n DropIndicator,\n type DropTarget,\n Text,\n type TextProps,\n useDragAndDrop,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Checkbox } from '../checkbox';\nimport { Icon } from '../icon';\nimport { Lines } from '../lines';\nimport { TreeStyles, TreeStylesDefaults } from './styles';\nimport type { IconProps } from '../icon/types';\nimport type {\n TreeContextValue,\n TreeItemContentProps,\n TreeItemContextValue,\n TreeItemProps,\n TreeProps,\n} from './types';\n\nconst {\n tree,\n item,\n content,\n display,\n icon,\n label,\n actions,\n spacing,\n description,\n drag,\n expansion,\n visibility,\n} = TreeStyles();\n\nexport const TreeContext = createContext<TreeContextValue>({\n visibilityComputedKeys: new Set(),\n showRuleLines: true,\n showVisibility: false,\n variant: TreeStylesDefaults.variant,\n isStatic: true,\n onVisibilityChange: () => undefined,\n});\n\nconst defaultRenderDropIndicator = (target: DropTarget) => (\n <DropIndicator target={target} className='border border-highlight-hover' />\n);\n\nconst TreeLines = memo(function TreeLines({\n level,\n isLastOfSet,\n}: {\n level: number;\n isLastOfSet: boolean;\n}) {\n const { showRuleLines, variant } = useContext(TreeContext);\n\n return Array.from({ length: level }).map((_, i) => {\n const type = i === level - 1 ? 'branch' : 'vert';\n const line = isLastOfSet && i > 0 ? 'last' : type;\n const size = variant === 'crammed' ? 'medium' : 'large';\n\n return (\n <Lines\n // biome-ignore lint/suspicious/noArrayIndexKey: index should be the key, only count matters\n key={i}\n variant={line}\n size={size}\n isVisible={showRuleLines}\n className={spacing({ variant })}\n />\n );\n });\n});\n\n/**\n * Tree - Hierarchical tree view with optional drag-and-drop and visibility\n *\n * Renders a selectable tree with support for nested items, drag-and-drop,\n * selection modes, and visibility controls. Use Tree.Item to define nodes.\n *\n * @example\n * <Tree items={items} expandedKeys={expandedKeys}>\n * {(node) => <Node key={node.key} node={node} />}\n * </Tree>\n *\n * @example\n * <Tree>\n * <Tree.Item id='one' textValue='one'>\n * <Tree.Item.Content>One</Tree.Item.Content>\n * <Tree.Item id='two' textValue='two'>\n * <Tree.Item.Content>Two</Tree.Item.Content>\n * </Tree.Item>\n * </Tree.Item>\n * </Tree>\n */\nexport function Tree<T>({\n children,\n className,\n disabledKeys: disabledKeysProp,\n dragAndDropConfig,\n expandedKeys: expandedKeysProp,\n items,\n selectedKeys: selectedKeysProp,\n showRuleLines = true,\n showVisibility = true,\n selectionMode = 'multiple',\n variant = TreeStylesDefaults.variant,\n visibleKeys: visibleKeysProp,\n onVisibilityChange,\n onSelectionChange,\n ...rest\n}: TreeProps<T>) {\n /**\n * A static collection is hard-coded. Dynamic is data-driven from an external source.\n * https://react-spectrum.adobe.com/react-aria/Tree.html#content\n *\n * Controlled state should only be used on a static tree.\n */\n if (\n items &&\n (disabledKeysProp ||\n expandedKeysProp ||\n selectedKeysProp ||\n visibleKeysProp)\n ) {\n throw new Error(\n 'Tree should only be controlled with state from either `items` or keys props, not both',\n );\n }\n\n /**\n * A static tree won't support the node iterator pattern.\n */\n if (!!items !== (typeof children === 'function')) {\n throw new Error(\n 'Tree `items` and node iterator `children` must be used together',\n );\n }\n\n const { dragAndDropHooks } = useDragAndDrop({\n renderDropIndicator: defaultRenderDropIndicator,\n getAllowedDropOperations: () => ['move'],\n getDropOperation: () => 'move',\n ...dragAndDropConfig,\n });\n const cache = useMemo(() => (items ? new Cache([...items]) : null), [items]);\n const nodes = useMemo(() => cache?.getAllNodes(), [cache]);\n const {\n disabledKeys,\n expandedKeys,\n selectedKeys,\n visibleKeys,\n visibilityComputedKeys,\n } = useMemo(() => {\n const acc = {\n disabledKeys: nodes ? new Set<Key>() : disabledKeysProp,\n expandedKeys: nodes ? new Set<Key>() : expandedKeysProp,\n selectedKeys: nodes ? new Set<Key>() : selectedKeysProp,\n visibleKeys: nodes ? new Set<Key>() : visibleKeysProp,\n visibilityComputedKeys: new Set<Key>(),\n };\n\n if (!nodes) {\n return acc;\n }\n\n return nodes.reduce(\n (\n acc,\n {\n key,\n isDisabled,\n isExpanded,\n isSelected,\n isVisible,\n isVisibleComputed,\n },\n ) => {\n if (isDisabled) {\n acc.disabledKeys?.add(key);\n }\n if (isExpanded) {\n acc.expandedKeys?.add(key);\n }\n if (isSelected) {\n acc.selectedKeys?.add(key);\n }\n if (isVisible) {\n acc.visibleKeys?.add(key);\n }\n if (isVisibleComputed) {\n acc.visibilityComputedKeys.add(key);\n }\n return acc;\n },\n acc,\n );\n }, [\n nodes,\n disabledKeysProp,\n expandedKeysProp,\n selectedKeysProp,\n visibleKeysProp,\n ]);\n\n const handleSelectionChange = selectedKeys\n ? (selection: Selection) => {\n if (selection !== 'all') {\n onSelectionChange?.(selection);\n }\n }\n : undefined;\n\n return (\n <TreeContext.Provider\n value={{\n disabledKeys,\n expandedKeys,\n selectedKeys,\n showRuleLines,\n showVisibility,\n variant,\n visibleKeys,\n visibilityComputedKeys,\n isStatic: typeof children !== 'function',\n onVisibilityChange: onVisibilityChange ?? (() => undefined), // TODO: improve\n }}\n >\n <AriaTree\n {...rest}\n className={composeRenderProps(className, (className) =>\n tree({ className, variant }),\n )}\n disabledKeys={disabledKeys}\n dragAndDropHooks={dragAndDropHooks}\n expandedKeys={expandedKeys}\n items={items}\n selectedKeys={selectedKeys}\n onSelectionChange={handleSelectionChange}\n selectionMode={selectionMode}\n >\n {children}\n </AriaTree>\n </TreeContext.Provider>\n );\n}\nTree.displayName = 'Tree';\n\nexport const TreeItemContext = createContext<TreeItemContextValue>({\n isVisible: true,\n isViewable: true,\n ancestors: [],\n});\n\nfunction 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 item({ className }),\n )}\n data-viewable={isViewable || null}\n data-visible={isVisible || null}\n />\n </TreeItemContext.Provider>\n );\n}\nTreeItem.displayName = 'Tree.Item';\n\nfunction ItemContent({ children }: TreeItemContentProps) {\n const { showVisibility, variant, visibleKeys, onVisibilityChange } =\n useContext(TreeContext);\n const { isVisible, isViewable } = 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 isLastOfSet = !(\n state.collection.getItem(id)?.nextKey || hasChildItems\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 <Icon.Provider size={size}>\n <div\n className={content({ 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={visibility()}\n >\n <Icon>{isVisible ? <Show /> : <Hide />}</Icon>\n </Button>\n )}\n {level > 1 && (\n <TreeLines level={level} isLastOfSet={isLastOfSet} />\n )}\n {hasChildItems ? (\n <Button\n slot='chevron'\n variant='icon'\n size={size}\n className={expansion()}\n >\n <Icon>{isExpanded ? <ChevronDown /> : <ChevronUp />}</Icon>\n </Button>\n ) : (\n <div className={spacing({ variant })} />\n )}\n <div className={display({ 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={drag({})}\n >\n <Icon>\n <DragVert />\n </Icon>\n </Button>\n )}\n </div>\n </Icon.Provider>\n );\n }}\n </AriaTreeItemContent>\n );\n}\nItemContent.displayName = 'Tree.Item.Content';\n\nfunction ItemLabel({ children, className }: TextProps) {\n return <Text className={label({ className })}>{children}</Text>;\n}\nItemLabel.displayName = 'Tree.Item.Label';\n\nfunction ItemDescription({ children, className }: TextProps) {\n const { variant } = useContext(TreeContext);\n\n return variant !== 'crammed' ? (\n <Text\n data-slot='description'\n className={description({ className, variant })}\n >\n {children}\n </Text>\n ) : null;\n}\nItemDescription.displayName = 'Tree.Item.Description';\n\nfunction ItemIcon({ children, className }: IconProps) {\n return <Icon className={icon({ className })}>{children}</Icon>;\n}\nItemIcon.displayName = 'Tree.Item.PrefixIcon';\n\nfunction ItemActions({\n children,\n className,\n}: PropsWithChildren & { className?: string }) {\n return <div className={actions({ className })}>{children}</div>;\n}\nItemActions.displayName = 'Tree.Icon.Actions';\n\nTree.Item = TreeItem;\nTreeItem.Content = ItemContent;\nTreeItem.Label = ItemLabel;\nTreeItem.Description = ItemDescription;\nTreeItem.PrefixIcon = ItemIcon;\nTreeItem.Actions = ItemActions;\n"]}
1
+ {"version":3,"sources":["../../../src/components/tree/index.tsx"],"names":["defaultRenderDropIndicator","jsx","G","target","f","z","dragAndDropConfig","showVisibility","selectionMode","J","onSelectionChange","expandedKeysProp","selectedKeysProp","visibleKeysProp","children","dragAndDropHooks","B","cache","Cache","items","R","nodes","y","disabledKeys","acc","key","isDisabled","isVisibleComputed","handleSelectionChange","selectedKeys","selection","TreeContext","F","showRuleLines","rest","composeRenderProps","className","tree","q"],"mappings":"wUA8BMA,KACJC,CAAAA,IAAe,CAAA,CAAA,CAAA,CAAAC,UAAA,EAAQC,CAAAA,CAAQ,CAAA,CAAA,EAAAC,GAAA,CAAAC,aAAA,CAAA,CAAA,MAAU,CAAA,CAAA,CAAA,SAAA,CAAA,+BAyBzC,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,oBAEA,CAAA,CAAA,CAAA,YAAA,CAAA,CAAA,CAAAC,iBAEA,CAAA,CAAA,CAAA,oBAEA,CAAA,CAAA,CAAA,aAAgB,CAAA,CAAA,aAChB,CAAA,CAAA,CAAAC,IAAiB,CAAA,cACjB,CAAA,CAAAC,CAAAA,IAAgB,CAAA,kCAEhB,CAAA,CAAA,CAAAC,kBAAA,CAAA,wCAEA,CAAA,CAAA,CAAAC,mBAYIC,CAAAA,GACAC,CA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EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,sBAOVJ,CAAAA,GAEAV,CAAAA,CACAC,EACAC,CACF,CAAC,CAAA,CAEKe,CAAAA,CAAwBC,EACzBC,CAAAA,CAAAA,CAAyB,CACpBA,CAAAA,CAAAA,CAAAA,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAChBpB,IAAoBoB,EAExB,EACA,GAAA,KAEJ,EAAA,CAAA,GACE7B,GAAC8B,CAAAA,CAAY,MAAA,CAAA,OACX3B,GAAA,CAAO4B,WACL,CAAA,QAAA,CAAA,CAAA,mBAEA,CAAA,CAAA,CAAA,YACA,CAAA,CAAA,CAAA,YAAAC,CACA,CAAA,CAAA,aAAA1B,CAAAA,CACA,eACA,CAAA,CAAA,CAAA,OACA,CAAA,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,sBACU,CAAOO,CAAAA,CAAAA,QAAa,CAAA,OAC9B,CAAA,EAAA,UAAA,CAAA,kBAGF,CAAA,CAAA,GAAAb,IAAC,CACE,CAAA,CAAA,CAAGiC,CAAAA,QACJ,CAAA9B,GAAA,CAAW+B,KAAmBC,CAAAA,GAAYA,CACxCC,UAAO,CAAAC,kBAAA,CAAAF,EAAW,CAAA,EAAA,CAAA,CAAA,CAAA,SAEpB,CAAA,CAAA,CAAA,OAAA,CAAcb,CAAAA,CACd,iBAAkBR,CAAAA,gBAElB,CAAA,CAAA,CAAA,YACA,CAAA,CAAA,CAAA,KACA,kBAAmBa,kBAGlB,CAAA,CAAA,aAIT,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport { Cache } from '@/hooks/use-tree/actions/cache';\nimport type { Key, Selection } from '@react-types/shared';\nimport 'client-only';\nimport { useMemo } from 'react';\nimport {\n Tree as AriaTree,\n composeRenderProps,\n DropIndicator,\n type DropTarget,\n useDragAndDrop,\n} from 'react-aria-components';\nimport { TreeContext } from './context';\nimport { TreeStyles, TreeStylesDefaults } from './styles';\nimport type { TreeProps } from './types';\n\nconst { tree } = TreeStyles();\n\nconst defaultRenderDropIndicator = (target: DropTarget) => (\n <DropIndicator target={target} className='border border-highlight-hover' />\n);\n\n/**\n * Tree - Hierarchical tree view with optional drag-and-drop and visibility\n *\n * Renders a selectable tree with support for nested items, drag-and-drop,\n * selection modes, and visibility controls. Use TreeItem to define nodes.\n *\n * @example\n * <Tree items={items} expandedKeys={expandedKeys}>\n * {(node) => <Node key={node.key} node={node} />}\n * </Tree>\n *\n * @example\n * <Tree>\n * <TreeItem id='one' textValue='one'>\n * <TreeItemContent>One</TreeItemContent>\n * <TreeItem id='two' textValue='two'>\n * <TreeItemContent>Two</TreeItemContent>\n * </TreeItem>\n * </TreeItem>\n * </Tree>\n */\nexport function Tree<T>({\n children,\n className,\n disabledKeys: disabledKeysProp,\n dragAndDropConfig,\n expandedKeys: expandedKeysProp,\n items,\n selectedKeys: selectedKeysProp,\n showRuleLines = true,\n showVisibility = true,\n selectionMode = 'multiple',\n variant = TreeStylesDefaults.variant,\n visibleKeys: visibleKeysProp,\n onVisibilityChange,\n onSelectionChange,\n ...rest\n}: TreeProps<T>) {\n /**\n * A static collection is hard-coded. Dynamic is data-driven from an external source.\n * https://react-spectrum.adobe.com/react-aria/Tree.html#content\n *\n * Controlled state should only be used on a static tree.\n */\n if (\n items &&\n (disabledKeysProp ||\n expandedKeysProp ||\n selectedKeysProp ||\n visibleKeysProp)\n ) {\n throw new Error(\n 'Tree should only be controlled with state from either `items` or keys props, not both',\n );\n }\n\n /**\n * A static tree won't support the node iterator pattern.\n */\n if (!!items !== (typeof children === 'function')) {\n throw new Error(\n 'Tree `items` and node iterator `children` must be used together',\n );\n }\n\n const { dragAndDropHooks } = useDragAndDrop({\n renderDropIndicator: defaultRenderDropIndicator,\n getAllowedDropOperations: () => ['move'],\n getDropOperation: () => 'move',\n ...dragAndDropConfig,\n });\n const cache = useMemo(() => (items ? new Cache([...items]) : null), [items]);\n const nodes = useMemo(() => cache?.getAllNodes(), [cache]);\n const {\n disabledKeys,\n expandedKeys,\n selectedKeys,\n visibleKeys,\n visibilityComputedKeys,\n } = useMemo(() => {\n const acc = {\n disabledKeys: nodes ? new Set<Key>() : disabledKeysProp,\n expandedKeys: nodes ? new Set<Key>() : expandedKeysProp,\n selectedKeys: nodes ? new Set<Key>() : selectedKeysProp,\n visibleKeys: nodes ? new Set<Key>() : visibleKeysProp,\n visibilityComputedKeys: new Set<Key>(),\n };\n\n if (!nodes) {\n return acc;\n }\n\n return nodes.reduce(\n (\n acc,\n {\n key,\n isDisabled,\n isExpanded,\n isSelected,\n isVisible,\n isVisibleComputed,\n },\n ) => {\n if (isDisabled) {\n acc.disabledKeys?.add(key);\n }\n if (isExpanded) {\n acc.expandedKeys?.add(key);\n }\n if (isSelected) {\n acc.selectedKeys?.add(key);\n }\n if (isVisible) {\n acc.visibleKeys?.add(key);\n }\n if (isVisibleComputed) {\n acc.visibilityComputedKeys.add(key);\n }\n return acc;\n },\n acc,\n );\n }, [\n nodes,\n disabledKeysProp,\n expandedKeysProp,\n selectedKeysProp,\n visibleKeysProp,\n ]);\n\n const handleSelectionChange = selectedKeys\n ? (selection: Selection) => {\n if (selection !== 'all') {\n onSelectionChange?.(selection);\n }\n }\n : undefined;\n\n return (\n <TreeContext.Provider\n value={{\n disabledKeys,\n expandedKeys,\n selectedKeys,\n showRuleLines,\n showVisibility,\n variant,\n visibleKeys,\n visibilityComputedKeys,\n isStatic: typeof children !== 'function',\n onVisibilityChange: onVisibilityChange ?? (() => undefined), // TODO: improve\n }}\n >\n <AriaTree\n {...rest}\n className={composeRenderProps(className, (className) =>\n tree({ className, variant }),\n )}\n disabledKeys={disabledKeys}\n dragAndDropHooks={dragAndDropHooks}\n expandedKeys={expandedKeys}\n items={items}\n selectedKeys={selectedKeys}\n onSelectionChange={handleSelectionChange}\n selectionMode={selectionMode}\n >\n {children}\n </AriaTree>\n </TreeContext.Provider>\n );\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /**
5
+ * ItemActions - Action buttons for a tree item
6
+ *
7
+ * Container for action buttons in a tree item
8
+ */
9
+ declare function TreeItemActions({ children, className, }: PropsWithChildren & {
10
+ className?: string;
11
+ }): react_jsx_runtime.JSX.Element;
12
+
13
+ export { TreeItemActions };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import {TreeStyles}from'./styles.js';const{actions:i}=TreeStyles();function n({children:r,className:t}){return jsx("div",{className:i({className:t}),children:r})}export{n as TreeItemActions};//# sourceMappingURL=item-actions.js.map
2
+ //# sourceMappingURL=item-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tree/item-actions.tsx"],"names":["TreeStyles","e","o"],"mappings":"yEAeA,KAAQ,CAAA,OAAYA,CAAAA,CAAW,CAAA,CAOxBC,UAAA,EAAA,CAAA,SACL,CAAA,CAAA,CAAA,QACA,CAAA,CAAA,CAAA,SAC6C,CAC7C,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAA,KAAI,CAAA,CAAA,SAAqB,aAAW,CAAI,CAAA,CAAA,CAAA,CAAA,QAClD,CAAA,CAAA,CAAA,CAAA","file":"item-actions.js","sourcesContent":["/*\n * Copyright 2025 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 { TreeStyles } from './styles';\nimport type { PropsWithChildren } from 'react';\n\nconst { actions } = TreeStyles();\n\n/**\n * ItemActions - Action buttons for a tree item\n *\n * Container for action buttons in a tree item\n */\nexport function TreeItemActions({\n children,\n className,\n}: PropsWithChildren & { className?: string }) {\n return <div className={actions({ className })}>{children}</div>;\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { TreeItemContentProps } from './types.js';
3
+ import '@react-types/shared';
4
+ import 'react-aria-components';
5
+ import 'tailwind-variants';
6
+ import '../../hooks/use-tree/types.js';
7
+ import 'react';
8
+ import './styles.js';
9
+
10
+ /**
11
+ * ItemContent - Content of a tree item
12
+ *
13
+ * Renders the content of a tree item with proper styling
14
+ */
15
+ declare function TreeItemContent({ children }: TreeItemContentProps): react_jsx_runtime.JSX.Element;
16
+
17
+ export { TreeItemContent };
@@ -0,0 +1,2 @@
1
+ import {jsx,jsxs}from'react/jsx-runtime';import {Show,Hide,ChevronDown,ChevronUp,DragVert}from'@accelint/icons';import {useContext}from'react';import {TreeItemContent}from'react-aria-components';import {Button}from'../button/index.js';import {Checkbox}from'../checkbox/index.js';import {Icon}from'../icon/index.js';import {IconProvider}from'../icon/context.js';import {TreeContext,TreeItemContext}from'./context.js';import {TreeLines}from'./lines.js';import {TreeStyles}from'./styles.js';const{content:M,display:U,spacing:q,drag:F,expansion:G,visibility:J}=TreeStyles();function oe({children:s}){const{showVisibility:C,variant:t,visibleKeys:m,onVisibilityChange:I}=useContext(TreeContext),{isVisible:c,isViewable:h}=useContext(TreeItemContext),o=t==="cozy"?"medium":"small";return jsx(TreeItemContent,{children:d=>{const{id:i,allowsDragging:b,hasChildItems:p,level:f,selectionBehavior:u,selectionMode:g,state:T,isDisabled:n,isExpanded:S,isSelected:w}=d,v=!(T.collection.getItem(i)?.nextKey||p),x=u==="toggle"&&g!=="none",D=()=>{const r=new Set(m);m?.has(i)?r.delete(i):r.add(i),I?.(r);};return jsx(IconProvider,{size:o,children:jsxs("div",{className:M({variant:t}),"data-last-of-set":v,children:[C&&jsx(Button,{variant:"icon",color:"mono-bold",size:o,onPress:D,isDisabled:n,className:J(),children:jsx(Icon,{children:c?jsx(Show,{}):jsx(Hide,{})})}),f>1&&jsx(TreeLines,{level:f,isLastOfSet:v}),p?jsx(Button,{slot:"chevron",variant:"icon",size:o,className:G(),children:jsx(Icon,{children:S?jsx(ChevronDown,{}):jsx(ChevronUp,{})})}):jsx("div",{className:q({variant:t})}),jsx("div",{className:U({variant:t}),children:typeof s=="function"?s({...d,variant:t,isVisible:c,isViewable:h,defaultChildren:null}):s}),x&&jsx(Checkbox,{slot:"selection",isSelected:w,isDisabled:n}),b&&jsx(Button,{slot:"drag",variant:"icon",size:o,isDisabled:n,className:F({}),children:jsx(Icon,{children:jsx(DragVert,{})})})]})})}})}export{oe as TreeItemContent};//# sourceMappingURL=item-content.js.map
2
+ //# sourceMappingURL=item-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tree/item-content.tsx"],"names":["TreeStyles","TreeItemContent","H","variant","visibleKeys","onVisibilityChange","useContext","y","A","jsx","AriaTreeItemContent","O","renderProps","e","K","hasChildItems","level","selectionBehavior","state","isSelected","shouldShowSelection","keys","id","size","jsxs","k","isLastOfSet","showVisibility","a","isDisabled","P","Button","E","isExpanded","z","display","children","Checkbox","L","allowsDragging","drag","l","V"],"mappings":"weAyByC,KAAA,CAAA,OAAW,CAAA,CAAA,CAAA,OAAeA,CAAAA,CAAW,CAAA,UAO9DC,IAAkB,CAAA,CAAA,CAAA,SAAkC,CAClE,CAAA,CAAA,UAAQ,CAAA,CAAA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AA,QAAA,CAAAI,GAAA,CAAA4B,IAAA,CAAA,CAAA,QAAA,CAAA5B,GAAA,CAAA6B,QAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"item-content.js","sourcesContent":["/*\n * Copyright 2025 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 { ChevronDown, ChevronUp, DragVert, Hide, Show } from '@accelint/icons';\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 { TreeStyles } from './styles';\nimport type { Key } from '@react-types/shared';\nimport type { TreeItemContentProps } from './types';\n\nconst { content, display, spacing, drag, expansion, visibility } = TreeStyles();\n\n/**\n * ItemContent - Content of a tree item\n *\n * Renders the content of a tree item with proper styling\n */\nexport function TreeItemContent({ children }: TreeItemContentProps) {\n const { showVisibility, variant, visibleKeys, onVisibilityChange } =\n useContext(TreeContext);\n const { isVisible, isViewable } = 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 isLastOfSet = !(\n state.collection.getItem(id)?.nextKey || hasChildItems\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={content({ 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={visibility()}\n >\n <Icon>{isVisible ? <Show /> : <Hide />}</Icon>\n </Button>\n )}\n {level > 1 && (\n <TreeLines level={level} isLastOfSet={isLastOfSet} />\n )}\n {hasChildItems ? (\n <Button\n slot='chevron'\n variant='icon'\n size={size}\n className={expansion()}\n >\n <Icon>{isExpanded ? <ChevronDown /> : <ChevronUp />}</Icon>\n </Button>\n ) : (\n <div className={spacing({ variant })} />\n )}\n <div className={display({ 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={drag({})}\n >\n <Icon>\n <DragVert />\n </Icon>\n </Button>\n )}\n </div>\n </IconProvider>\n );\n }}\n </AriaTreeItemContent>\n );\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { TextProps } from 'react-aria-components';
3
+
4
+ /**
5
+ * ItemDescription - Description for a tree item
6
+ *
7
+ * Renders secondary descriptive text for a tree item
8
+ */
9
+ declare function TreeItemDescription({ children, className }: TextProps): react_jsx_runtime.JSX.Element | null;
10
+
11
+ export { TreeItemDescription };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import {useContext}from'react';import {Text}from'react-aria-components';import {TreeContext}from'./context.js';import {TreeStyles}from'./styles.js';const{description:p}=TreeStyles();function f({children:e,className:o}){const{variant:t}=useContext(TreeContext);return t!=="crammed"?jsx(Text,{"data-slot":"description",className:p({className:o,variant:t}),children:e}):null}export{f as TreeItemDescription};//# sourceMappingURL=item-description.js.map
2
+ //# sourceMappingURL=item-description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tree/item-description.tsx"],"names":["n","variant","r","m","s","i"],"mappings":"wLAiBQ,KAAA,CAAA,WAOD,CAAA,CAAA,CAAA,CAAAA,UAAA,EAAA,CAAA,oBAAyC,CAAA,CAAA,CAAA,SAC9C,CAAA,CAAM,CAAE,CAAA,CAAA,KAAA,CAAAC,OAAkC,CAE1C,CAAA,CAAA,CAAAC,UAAA,CAAAC,WAAA,CAAOF,CAAAA,OAAY,CAAA,GAAA,SAEf,CAAAG,GAAA,CAAAC,IAAA,CAAA,CAAA,WAAU,CAAA,aACV,CAAA,SAAyB,CAAA,CAAA,CAAA,CAAA,SAAW,CAAA,CAAA,CAAAJ,OAEnC,CAAA,CAAA,CAAA,CAAA,CAAA,QAED,CACN,CAAA,CAAA,CAAA,CAAA,IAAA","file":"item-description.js","sourcesContent":["/*\n * Copyright 2025 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 { useContext } from 'react';\nimport { Text, type TextProps } from 'react-aria-components';\nimport { TreeContext } from './context';\nimport { TreeStyles } from './styles';\n\nconst { description } = TreeStyles();\n\n/**\n * ItemDescription - Description for a tree item\n *\n * Renders secondary descriptive text for a tree item\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={description({ className, variant })}\n >\n {children}\n </Text>\n ) : null;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { TextProps } from 'react-aria-components';
3
+
4
+ /**
5
+ * ItemLabel - Label for a tree item
6
+ *
7
+ * Renders the primary text label for a tree item
8
+ */
9
+ declare function TreeItemLabel({ children, className }: TextProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { TreeItemLabel };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import {Text}from'react-aria-components';import {TreeStyles}from'./styles.js';const{label:p}=TreeStyles();function s({children:e,className:t}){return jsx(Text,{className:p({className:t}),children:e})}export{s as TreeItemLabel};//# sourceMappingURL=item-label.js.map
2
+ //# sourceMappingURL=item-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tree/item-label.tsx"],"names":["TreeStyles","r","T","o"],"mappings":"uHAeQ,CAAA,KAAUA,CAAAA,CAAW,EAOtBC,UAAA,EAAA,CAAA,SAAyB,CAAA,CAAA,CAAA,QAAU,CAAA,CAAA,CAAA,SAAwB,CAChE,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAK,CAAAC,IAAA,CAAA,CAAA,SAAmB,CAAA,CAAA,CAAA,CAAA,SAAW,CAAI,CAAA,CAAA,CAAA,CAAA,QACjD,CAAA,CAAA,CAAA,CAAA","file":"item-label.js","sourcesContent":["/*\n * Copyright 2025 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 { Text, type TextProps } from 'react-aria-components';\nimport { TreeStyles } from './styles';\n\nconst { label } = TreeStyles();\n\n/**\n * ItemLabel - Label for a tree item\n *\n * Renders the primary text label for a tree item\n */\nexport function TreeItemLabel({ children, className }: TextProps) {\n return <Text className={label({ className })}>{children}</Text>;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { IconProps } from '../icon/types.js';
3
+ import 'react';
4
+
5
+ /**
6
+ * ItemIcon - Icon for a tree item
7
+ *
8
+ * Renders an icon for a tree item
9
+ */
10
+ declare function TreeItemPrefixIcon({ children, className }: IconProps): react_jsx_runtime.JSX.Element;
11
+
12
+ export { TreeItemPrefixIcon };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import {Icon}from'../icon/index.js';import {TreeStyles}from'./styles.js';const{icon:c}=TreeStyles();function i({children:o,className:r}){return jsx(Icon,{className:c({className:r}),children:o})}export{i as TreeItemPrefixIcon};//# sourceMappingURL=item-prefix-icon.js.map
2
+ //# sourceMappingURL=item-prefix-icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/tree/item-prefix-icon.tsx"],"names":["TreeStyles","TreeItemPrefixIcon","Icon","t","icon","className","children"],"mappings":"6GAgBiBA,KAOV,CAAA,IAAA,CAAA,CAAA,CAASC,CAAAA,UAAmB,EAAE,CAAA,SAAU,CAAA,CAAA,CAAA,QAAU,EAAc,CACrE,SAAQC,CAAAA,CAAA,CAAK,CAAA,CAAA,OAAAC,GAAWC,CAAAA,IAAK,CAAE,CAAA,SAAAC,CAAU,CAAC,CAAA,CAAI,SAAAC,EAAS,CACzD,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA","file":"item-prefix-icon.js","sourcesContent":["/*\n * Copyright 2025 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 { Icon } from '../icon';\nimport { TreeStyles } from './styles';\nimport type { IconProps } from '../icon/types';\n\nconst { icon } = TreeStyles();\n\n/**\n * ItemIcon - Icon for a tree item\n *\n * Renders an icon for a tree item\n */\nexport function TreeItemPrefixIcon({ children, className }: IconProps) {\n return <Icon className={icon({ className })}>{children}</Icon>;\n}\n"]}