@accelint/design-toolkit 5.2.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/README.md +2 -0
  2. package/catalog-info.yaml +44 -0
  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 -3
  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/styles.d.ts +3 -3
  19. package/dist/components/accordion/styles.js +1 -1
  20. package/dist/components/accordion/styles.js.map +1 -1
  21. package/dist/components/accordion/trigger.d.ts +11 -0
  22. package/dist/components/accordion/trigger.js +4 -0
  23. package/dist/components/accordion/trigger.js.map +1 -0
  24. package/dist/components/accordion/types.d.ts +1 -1
  25. package/dist/components/action-bar/index.d.ts +11 -3
  26. package/dist/components/action-bar/index.js +1 -1
  27. package/dist/components/action-bar/index.js.map +1 -1
  28. package/dist/components/avatar/context.d.ts +14 -0
  29. package/dist/components/avatar/context.js +4 -0
  30. package/dist/components/avatar/context.js.map +1 -0
  31. package/dist/components/avatar/index.d.ts +2 -13
  32. package/dist/components/avatar/index.js +1 -1
  33. package/dist/components/avatar/index.js.map +1 -1
  34. package/dist/components/badge/context.d.ts +13 -0
  35. package/dist/components/badge/context.js +4 -0
  36. package/dist/components/badge/context.js.map +1 -0
  37. package/dist/components/badge/index.d.ts +2 -13
  38. package/dist/components/badge/index.js +1 -3
  39. package/dist/components/badge/index.js.map +1 -1
  40. package/dist/components/breadcrumbs/index.d.ts +12 -9
  41. package/dist/components/breadcrumbs/index.js +1 -1
  42. package/dist/components/breadcrumbs/index.js.map +1 -1
  43. package/dist/components/breadcrumbs/item.d.ts +7 -0
  44. package/dist/components/breadcrumbs/item.js +4 -0
  45. package/dist/components/breadcrumbs/item.js.map +1 -0
  46. package/dist/components/button/context.d.ts +17 -0
  47. package/dist/components/button/context.js +4 -0
  48. package/dist/components/button/context.js.map +1 -0
  49. package/dist/components/button/index.d.ts +5 -104
  50. package/dist/components/button/index.js +1 -3
  51. package/dist/components/button/index.js.map +1 -1
  52. package/dist/components/button/link.d.ts +46 -0
  53. package/dist/components/button/link.js +4 -0
  54. package/dist/components/button/link.js.map +1 -0
  55. package/dist/components/button/styles.js +1 -1
  56. package/dist/components/button/styles.js.map +1 -1
  57. package/dist/components/button/toggle.d.ts +48 -0
  58. package/dist/components/button/toggle.js +4 -0
  59. package/dist/components/button/toggle.js.map +1 -0
  60. package/dist/components/checkbox/context.d.ts +10 -0
  61. package/dist/components/checkbox/context.js +4 -0
  62. package/dist/components/checkbox/context.js.map +1 -0
  63. package/dist/components/checkbox/group.d.ts +10 -0
  64. package/dist/components/checkbox/group.js +4 -0
  65. package/dist/components/checkbox/group.js.map +1 -0
  66. package/dist/components/checkbox/index.d.ts +6 -16
  67. package/dist/components/checkbox/index.js +1 -1
  68. package/dist/components/checkbox/index.js.map +1 -1
  69. package/dist/components/checkbox/styles.js +1 -1
  70. package/dist/components/checkbox/styles.js.map +1 -1
  71. package/dist/components/chip/context.d.ts +13 -0
  72. package/dist/components/chip/context.js +4 -0
  73. package/dist/components/chip/context.js.map +1 -0
  74. package/dist/components/chip/deletable.d.ts +11 -0
  75. package/dist/components/chip/deletable.js +4 -0
  76. package/dist/components/chip/deletable.js.map +1 -0
  77. package/dist/components/chip/index.d.ts +14 -39
  78. package/dist/components/chip/index.js +1 -3
  79. package/dist/components/chip/index.js.map +1 -1
  80. package/dist/components/chip/list.d.ts +12 -0
  81. package/dist/components/chip/list.js +4 -0
  82. package/dist/components/chip/list.js.map +1 -0
  83. package/dist/components/chip/selectable.d.ts +11 -0
  84. package/dist/components/chip/selectable.js +2 -0
  85. package/dist/components/chip/selectable.js.map +1 -0
  86. package/dist/components/chip/styles.js +1 -1
  87. package/dist/components/chip/styles.js.map +1 -1
  88. package/dist/components/chip/types.d.ts +2 -2
  89. package/dist/components/classification-badge/context.d.ts +12 -0
  90. package/dist/components/classification-badge/context.js +4 -0
  91. package/dist/components/classification-badge/context.js.map +1 -0
  92. package/dist/components/classification-badge/index.d.ts +2 -13
  93. package/dist/components/classification-badge/index.js +1 -3
  94. package/dist/components/classification-badge/index.js.map +1 -1
  95. package/dist/components/classification-banner/context.d.ts +12 -0
  96. package/dist/components/classification-banner/context.js +4 -0
  97. package/dist/components/classification-banner/context.js.map +1 -0
  98. package/dist/components/classification-banner/index.d.ts +2 -13
  99. package/dist/components/classification-banner/index.js +1 -3
  100. package/dist/components/classification-banner/index.js.map +1 -1
  101. package/dist/components/clock/index.d.ts +36 -0
  102. package/dist/components/clock/index.js +4 -0
  103. package/dist/components/clock/index.js.map +1 -0
  104. package/dist/components/clock/types.d.ts +7 -0
  105. package/dist/components/clock/types.js +2 -0
  106. package/dist/components/clock/types.js.map +1 -0
  107. package/dist/components/color-picker/index.d.ts +0 -3
  108. package/dist/components/color-picker/index.js +1 -1
  109. package/dist/components/color-picker/index.js.map +1 -1
  110. package/dist/components/color-picker/styles.js +1 -1
  111. package/dist/components/color-picker/styles.js.map +1 -1
  112. package/dist/components/combobox-field/context.d.ts +16 -0
  113. package/dist/components/combobox-field/context.js +4 -0
  114. package/dist/components/combobox-field/context.js.map +1 -0
  115. package/dist/components/combobox-field/index.d.ts +14 -7
  116. package/dist/components/combobox-field/index.js +1 -1
  117. package/dist/components/combobox-field/index.js.map +1 -1
  118. package/dist/components/combobox-field/styles.d.ts +3 -3
  119. package/dist/components/combobox-field/styles.js +1 -1
  120. package/dist/components/combobox-field/styles.js.map +1 -1
  121. package/dist/components/date-field/index.js +1 -1
  122. package/dist/components/date-field/index.js.map +1 -1
  123. package/dist/components/details-list/context.d.ts +12 -0
  124. package/dist/components/details-list/context.js +4 -0
  125. package/dist/components/details-list/context.js.map +1 -0
  126. package/dist/components/details-list/index.d.ts +15 -35
  127. package/dist/components/details-list/index.js +1 -3
  128. package/dist/components/details-list/index.js.map +1 -1
  129. package/dist/components/details-list/label.d.ts +10 -0
  130. package/dist/components/details-list/label.js +4 -0
  131. package/dist/components/details-list/label.js.map +1 -0
  132. package/dist/components/details-list/value.d.ts +10 -0
  133. package/dist/components/details-list/value.js +4 -0
  134. package/dist/components/details-list/value.js.map +1 -0
  135. package/dist/components/dialog/content.d.ts +6 -0
  136. package/dist/components/dialog/content.js +2 -0
  137. package/dist/components/dialog/content.js.map +1 -0
  138. package/dist/components/dialog/context.d.ts +7 -0
  139. package/dist/components/dialog/context.js +4 -0
  140. package/dist/components/dialog/context.js.map +1 -0
  141. package/dist/components/dialog/footer.d.ts +6 -0
  142. package/dist/components/dialog/footer.js +4 -0
  143. package/dist/components/dialog/footer.js.map +1 -0
  144. package/dist/components/dialog/index.d.ts +9 -30
  145. package/dist/components/dialog/index.js +1 -1
  146. package/dist/components/dialog/index.js.map +1 -1
  147. package/dist/components/dialog/styles.d.ts +3 -3
  148. package/dist/components/dialog/title.d.ts +6 -0
  149. package/dist/components/dialog/title.js +4 -0
  150. package/dist/components/dialog/title.js.map +1 -0
  151. package/dist/components/dialog/trigger.d.ts +1 -0
  152. package/dist/components/dialog/trigger.js +2 -0
  153. package/dist/components/dialog/trigger.js.map +1 -0
  154. package/dist/components/dialog/types.d.ts +3 -2
  155. package/dist/components/divider/context.d.ts +10 -0
  156. package/dist/components/divider/context.js +4 -0
  157. package/dist/components/divider/context.js.map +1 -0
  158. package/dist/components/divider/index.d.ts +2 -13
  159. package/dist/components/divider/index.js +1 -3
  160. package/dist/components/divider/index.js.map +1 -1
  161. package/dist/components/drawer/back.d.ts +5 -0
  162. package/dist/components/drawer/back.js +4 -0
  163. package/dist/components/drawer/back.js.map +1 -0
  164. package/dist/components/drawer/close.d.ts +5 -0
  165. package/dist/components/drawer/close.js +2 -0
  166. package/dist/components/drawer/close.js.map +1 -0
  167. package/dist/components/drawer/content.d.ts +6 -0
  168. package/dist/components/drawer/content.js +4 -0
  169. package/dist/components/drawer/content.js.map +1 -0
  170. package/dist/components/drawer/context.d.ts +38 -0
  171. package/dist/components/drawer/context.js +4 -0
  172. package/dist/components/drawer/context.js.map +1 -0
  173. package/dist/components/drawer/footer.d.ts +6 -0
  174. package/dist/components/drawer/footer.js +4 -0
  175. package/dist/components/drawer/footer.js.map +1 -0
  176. package/dist/components/drawer/header-title.d.ts +25 -0
  177. package/dist/components/drawer/header-title.js +2 -0
  178. package/dist/components/drawer/header-title.js.map +1 -0
  179. package/dist/components/drawer/header.d.ts +6 -0
  180. package/dist/components/drawer/header.js +4 -0
  181. package/dist/components/drawer/header.js.map +1 -0
  182. package/dist/components/drawer/index.d.ts +30 -88
  183. package/dist/components/drawer/index.js +1 -1
  184. package/dist/components/drawer/index.js.map +1 -1
  185. package/dist/components/drawer/layout-main.d.ts +6 -0
  186. package/dist/components/drawer/layout-main.js +2 -0
  187. package/dist/components/drawer/layout-main.js.map +1 -0
  188. package/dist/components/drawer/layout.d.ts +20 -0
  189. package/dist/components/drawer/layout.js +4 -0
  190. package/dist/components/drawer/layout.js.map +1 -0
  191. package/dist/components/drawer/menu-item.d.ts +20 -0
  192. package/dist/components/drawer/menu-item.js +2 -0
  193. package/dist/components/drawer/menu-item.js.map +1 -0
  194. package/dist/components/drawer/menu.d.ts +20 -0
  195. package/dist/components/drawer/menu.js +4 -0
  196. package/dist/components/drawer/menu.js.map +1 -0
  197. package/dist/components/drawer/panel.d.ts +6 -0
  198. package/dist/components/drawer/panel.js +2 -0
  199. package/dist/components/drawer/panel.js.map +1 -0
  200. package/dist/components/drawer/styles.d.ts +9 -9
  201. package/dist/components/drawer/trigger.d.ts +20 -0
  202. package/dist/components/drawer/trigger.js +4 -0
  203. package/dist/components/drawer/trigger.js.map +1 -0
  204. package/dist/components/drawer/types.d.ts +3 -3
  205. package/dist/components/drawer/view.d.ts +11 -0
  206. package/dist/components/drawer/view.js +4 -0
  207. package/dist/components/drawer/view.js.map +1 -0
  208. package/dist/components/hero/context.d.ts +7 -0
  209. package/dist/components/hero/context.js +2 -0
  210. package/dist/components/hero/context.js.map +1 -0
  211. package/dist/components/hero/index.d.ts +8 -16
  212. package/dist/components/hero/index.js +1 -1
  213. package/dist/components/hero/index.js.map +1 -1
  214. package/dist/components/hero/subtitle.d.ts +6 -0
  215. package/dist/components/hero/subtitle.js +4 -0
  216. package/dist/components/hero/subtitle.js.map +1 -0
  217. package/dist/components/hero/title.d.ts +6 -0
  218. package/dist/components/hero/title.js +2 -0
  219. package/dist/components/hero/title.js.map +1 -0
  220. package/dist/components/hotkey/context.d.ts +12 -0
  221. package/dist/components/hotkey/context.js +4 -0
  222. package/dist/components/hotkey/context.js.map +1 -0
  223. package/dist/components/hotkey/hotkey-set.d.ts +9 -0
  224. package/dist/components/hotkey/hotkey-set.js +2 -0
  225. package/dist/components/hotkey/hotkey-set.js.map +1 -0
  226. package/dist/components/hotkey/index.d.ts +7 -23
  227. package/dist/components/hotkey/index.js +1 -1
  228. package/dist/components/hotkey/index.js.map +1 -1
  229. package/dist/components/icon/context.d.ts +10 -0
  230. package/dist/components/icon/context.js +4 -0
  231. package/dist/components/icon/context.js.map +1 -0
  232. package/dist/components/icon/index.d.ts +2 -13
  233. package/dist/components/icon/index.js +1 -3
  234. package/dist/components/icon/index.js.map +1 -1
  235. package/dist/components/input/context.d.ts +13 -0
  236. package/dist/components/input/context.js +4 -0
  237. package/dist/components/input/context.js.map +1 -0
  238. package/dist/components/input/index.d.ts +3 -7
  239. package/dist/components/input/index.js +1 -1
  240. package/dist/components/input/index.js.map +1 -1
  241. package/dist/components/label/context.d.ts +10 -0
  242. package/dist/components/label/context.js +4 -0
  243. package/dist/components/label/context.js.map +1 -0
  244. package/dist/components/label/index.d.ts +3 -13
  245. package/dist/components/label/index.js +1 -3
  246. package/dist/components/label/index.js.map +1 -1
  247. package/dist/components/lines/index.d.ts +9 -0
  248. package/dist/components/lines/index.js.map +1 -1
  249. package/dist/components/link/context.d.ts +9 -0
  250. package/dist/components/link/context.js +4 -0
  251. package/dist/components/link/context.js.map +1 -0
  252. package/dist/components/link/index.d.ts +9 -9
  253. package/dist/components/link/index.js +1 -3
  254. package/dist/components/link/index.js.map +1 -1
  255. package/dist/components/link/styles.js +1 -1
  256. package/dist/components/link/styles.js.map +1 -1
  257. package/dist/components/menu/context.d.ts +10 -0
  258. package/dist/components/menu/context.js +4 -0
  259. package/dist/components/menu/context.js.map +1 -0
  260. package/dist/components/menu/index.d.ts +31 -63
  261. package/dist/components/menu/index.js +1 -1
  262. package/dist/components/menu/index.js.map +1 -1
  263. package/dist/components/menu/item-description.d.ts +6 -0
  264. package/dist/components/menu/item-description.js +2 -0
  265. package/dist/components/menu/item-description.js.map +1 -0
  266. package/dist/components/menu/item-label.d.ts +6 -0
  267. package/dist/components/menu/item-label.js +4 -0
  268. package/dist/components/menu/item-label.js.map +1 -0
  269. package/dist/components/menu/item.d.ts +11 -0
  270. package/dist/components/menu/item.js +4 -0
  271. package/dist/components/menu/item.js.map +1 -0
  272. package/dist/components/menu/section.d.ts +11 -0
  273. package/dist/components/menu/section.js +2 -0
  274. package/dist/components/menu/section.js.map +1 -0
  275. package/dist/components/menu/separator.d.ts +6 -0
  276. package/dist/components/menu/separator.js +4 -0
  277. package/dist/components/menu/separator.js.map +1 -0
  278. package/dist/components/menu/styles.js +1 -1
  279. package/dist/components/menu/styles.js.map +1 -1
  280. package/dist/components/menu/submenu.d.ts +6 -0
  281. package/dist/components/menu/submenu.js +4 -0
  282. package/dist/components/menu/submenu.js.map +1 -0
  283. package/dist/components/menu/trigger.d.ts +1 -0
  284. package/dist/components/menu/trigger.js +2 -0
  285. package/dist/components/menu/trigger.js.map +1 -0
  286. package/dist/components/menu/types.d.ts +1 -1
  287. package/dist/components/notice/events.d.ts +10 -0
  288. package/dist/components/notice/events.js +2 -0
  289. package/dist/components/notice/events.js.map +1 -0
  290. package/dist/components/notice/index.d.ts +16 -0
  291. package/dist/components/notice/index.js +4 -0
  292. package/dist/components/notice/index.js.map +1 -0
  293. package/dist/components/notice/list.d.ts +16 -0
  294. package/dist/components/notice/list.js +4 -0
  295. package/dist/components/notice/list.js.map +1 -0
  296. package/dist/components/notice/notice-icon.d.ts +16 -0
  297. package/dist/components/notice/notice-icon.js +2 -0
  298. package/dist/components/notice/notice-icon.js.map +1 -0
  299. package/dist/components/notice/styles.d.ts +60 -0
  300. package/dist/components/notice/styles.js +2 -0
  301. package/dist/components/notice/styles.js.map +1 -0
  302. package/dist/components/notice/types.d.ts +75 -0
  303. package/dist/components/notice/types.js +2 -0
  304. package/dist/components/notice/types.js.map +1 -0
  305. package/dist/components/notice/utils.d.ts +3 -0
  306. package/dist/components/notice/utils.js +4 -0
  307. package/dist/components/notice/utils.js.map +1 -0
  308. package/dist/components/options/context.d.ts +8 -0
  309. package/dist/components/options/context.js +2 -0
  310. package/dist/components/options/context.js.map +1 -0
  311. package/dist/components/options/index.d.ts +22 -51
  312. package/dist/components/options/index.js +1 -1
  313. package/dist/components/options/index.js.map +1 -1
  314. package/dist/components/options/item-content.d.ts +9 -0
  315. package/dist/components/options/item-content.js +2 -0
  316. package/dist/components/options/item-content.js.map +1 -0
  317. package/dist/components/options/item-description.d.ts +9 -0
  318. package/dist/components/options/item-description.js +4 -0
  319. package/dist/components/options/item-description.js.map +1 -0
  320. package/dist/components/options/item-label.d.ts +9 -0
  321. package/dist/components/options/item-label.js +2 -0
  322. package/dist/components/options/item-label.js.map +1 -0
  323. package/dist/components/options/item.d.ts +9 -0
  324. package/dist/components/options/item.js +4 -0
  325. package/dist/components/options/item.js.map +1 -0
  326. package/dist/components/options/section.d.ts +9 -0
  327. package/dist/components/options/section.js +2 -0
  328. package/dist/components/options/section.js.map +1 -0
  329. package/dist/components/options/styles.d.ts +3 -3
  330. package/dist/components/options/styles.js +1 -1
  331. package/dist/components/options/styles.js.map +1 -1
  332. package/dist/components/options/types.d.ts +2 -2
  333. package/dist/components/popover/body.d.ts +8 -0
  334. package/dist/components/popover/body.js +4 -0
  335. package/dist/components/popover/body.js.map +1 -0
  336. package/dist/components/popover/content.d.ts +8 -0
  337. package/dist/components/popover/content.js +2 -0
  338. package/dist/components/popover/content.js.map +1 -0
  339. package/dist/components/popover/footer.d.ts +9 -0
  340. package/dist/components/popover/footer.js +4 -0
  341. package/dist/components/popover/footer.js.map +1 -0
  342. package/dist/components/popover/index.d.ts +16 -39
  343. package/dist/components/popover/index.js +1 -3
  344. package/dist/components/popover/index.js.map +1 -1
  345. package/dist/components/popover/title.d.ts +8 -0
  346. package/dist/components/popover/title.js +4 -0
  347. package/dist/components/popover/title.js.map +1 -0
  348. package/dist/components/popover/trigger.d.ts +8 -0
  349. package/dist/components/popover/trigger.js +2 -0
  350. package/dist/components/popover/trigger.js.map +1 -0
  351. package/dist/components/popover/types.d.ts +1 -1
  352. package/dist/components/query-builder/action-element.js +1 -1
  353. package/dist/components/query-builder/action-element.js.map +1 -1
  354. package/dist/components/query-builder/actions.d.ts +8 -0
  355. package/dist/components/query-builder/actions.js +2 -0
  356. package/dist/components/query-builder/actions.js.map +1 -0
  357. package/dist/components/query-builder/combinator-selector.d.ts +6 -0
  358. package/dist/components/query-builder/combinator-selector.js +4 -0
  359. package/dist/components/query-builder/combinator-selector.js.map +1 -0
  360. package/dist/components/query-builder/index.d.ts +1 -21
  361. package/dist/components/query-builder/index.js +3 -1
  362. package/dist/components/query-builder/index.js.map +1 -1
  363. package/dist/components/query-builder/{group.js → rule-group.js} +2 -2
  364. package/dist/components/query-builder/rule-group.js.map +1 -0
  365. package/dist/components/query-builder/rule.js +1 -3
  366. package/dist/components/query-builder/rule.js.map +1 -1
  367. package/dist/components/query-builder/styles.d.ts +152 -0
  368. package/dist/components/query-builder/styles.js +2 -0
  369. package/dist/components/query-builder/styles.js.map +1 -0
  370. package/dist/components/query-builder/utils.d.ts +1 -10
  371. package/dist/components/query-builder/utils.js +1 -1
  372. package/dist/components/query-builder/utils.js.map +1 -1
  373. package/dist/components/query-builder/value-editor.js +1 -1
  374. package/dist/components/query-builder/value-editor.js.map +1 -1
  375. package/dist/components/query-builder/value-selector.js +1 -1
  376. package/dist/components/query-builder/value-selector.js.map +1 -1
  377. package/dist/components/radio/context.d.ts +13 -0
  378. package/dist/components/radio/context.js +4 -0
  379. package/dist/components/radio/context.js.map +1 -0
  380. package/dist/components/radio/group.d.ts +15 -0
  381. package/dist/components/radio/group.js +4 -0
  382. package/dist/components/radio/group.js.map +1 -0
  383. package/dist/components/radio/index.d.ts +10 -19
  384. package/dist/components/radio/index.js +1 -3
  385. package/dist/components/radio/index.js.map +1 -1
  386. package/dist/components/radio/styles.js +1 -1
  387. package/dist/components/radio/styles.js.map +1 -1
  388. package/dist/components/radio/types.d.ts +1 -1
  389. package/dist/components/search-field/context.d.ts +26 -0
  390. package/dist/components/search-field/context.js +4 -0
  391. package/dist/components/search-field/context.js.map +1 -0
  392. package/dist/components/search-field/index.d.ts +4 -20
  393. package/dist/components/search-field/index.js +1 -1
  394. package/dist/components/search-field/index.js.map +1 -1
  395. package/dist/components/select-field/context.d.ts +15 -0
  396. package/dist/components/select-field/context.js +4 -0
  397. package/dist/components/select-field/context.js.map +1 -0
  398. package/dist/components/select-field/index.d.ts +12 -21
  399. package/dist/components/select-field/index.js +1 -1
  400. package/dist/components/select-field/index.js.map +1 -1
  401. package/dist/components/select-field/styles.d.ts +9 -3
  402. package/dist/components/select-field/styles.js +1 -1
  403. package/dist/components/select-field/styles.js.map +1 -1
  404. package/dist/components/select-field/types.d.ts +2 -2
  405. package/dist/components/sidenav/avatar.d.ts +16 -0
  406. package/dist/components/sidenav/avatar.js +4 -0
  407. package/dist/components/sidenav/avatar.js.map +1 -0
  408. package/dist/components/sidenav/content.d.ts +16 -0
  409. package/dist/components/sidenav/content.js +2 -0
  410. package/dist/components/sidenav/content.js.map +1 -0
  411. package/dist/components/sidenav/context.d.ts +10 -0
  412. package/dist/components/sidenav/context.js +4 -0
  413. package/dist/components/sidenav/context.js.map +1 -0
  414. package/dist/components/sidenav/footer.d.ts +16 -0
  415. package/dist/components/sidenav/footer.js +4 -0
  416. package/dist/components/sidenav/footer.js.map +1 -0
  417. package/dist/components/sidenav/header.d.ts +16 -0
  418. package/dist/components/sidenav/header.js +4 -0
  419. package/dist/components/sidenav/header.js.map +1 -0
  420. package/dist/components/sidenav/index.d.ts +57 -49
  421. package/dist/components/sidenav/index.js +1 -3
  422. package/dist/components/sidenav/index.js.map +1 -1
  423. package/dist/components/sidenav/item.d.ts +16 -0
  424. package/dist/components/sidenav/item.js +4 -0
  425. package/dist/components/sidenav/item.js.map +1 -0
  426. package/dist/components/sidenav/link.d.ts +16 -0
  427. package/dist/components/sidenav/link.js +4 -0
  428. package/dist/components/sidenav/link.js.map +1 -0
  429. package/dist/components/sidenav/menu-item.d.ts +16 -0
  430. package/dist/components/sidenav/menu-item.js +2 -0
  431. package/dist/components/sidenav/menu-item.js.map +1 -0
  432. package/dist/components/sidenav/menu.d.ts +16 -0
  433. package/dist/components/sidenav/menu.js +4 -0
  434. package/dist/components/sidenav/menu.js.map +1 -0
  435. package/dist/components/sidenav/styles.d.ts +9 -9
  436. package/dist/components/sidenav/trigger.d.ts +16 -0
  437. package/dist/components/sidenav/trigger.js +4 -0
  438. package/dist/components/sidenav/trigger.js.map +1 -0
  439. package/dist/components/sidenav/types.d.ts +1 -1
  440. package/dist/components/skeleton/index.d.ts +0 -3
  441. package/dist/components/skeleton/index.js +1 -1
  442. package/dist/components/skeleton/index.js.map +1 -1
  443. package/dist/components/slider/index.d.ts +1 -1
  444. package/dist/components/slider/index.js +1 -1
  445. package/dist/components/slider/index.js.map +1 -1
  446. package/dist/components/slider/styles.d.ts +3 -3
  447. package/dist/components/slider/styles.js +1 -1
  448. package/dist/components/slider/styles.js.map +1 -1
  449. package/dist/components/switch/context.d.ts +20 -0
  450. package/dist/components/switch/context.js +4 -0
  451. package/dist/components/switch/context.js.map +1 -0
  452. package/dist/components/switch/index.d.ts +3 -13
  453. package/dist/components/switch/index.js +1 -1
  454. package/dist/components/switch/index.js.map +1 -1
  455. package/dist/components/switch/styles.js +1 -1
  456. package/dist/components/switch/styles.js.map +1 -1
  457. package/dist/components/table/body.js +2 -0
  458. package/dist/components/table/body.js.map +1 -0
  459. package/dist/components/table/cell.js +2 -0
  460. package/dist/components/table/cell.js.map +1 -0
  461. package/dist/components/table/constants/table.d.ts +17 -0
  462. package/dist/components/table/constants/table.js +2 -0
  463. package/dist/components/table/constants/table.js.map +1 -0
  464. package/dist/components/table/context.js +1 -1
  465. package/dist/components/table/context.js.map +1 -1
  466. package/dist/components/table/{table-header-cell.d.ts → header-cell.d.ts} +2 -2
  467. package/dist/components/table/header-cell.js +2 -0
  468. package/dist/components/table/header-cell.js.map +1 -0
  469. package/dist/components/table/header.js +2 -0
  470. package/dist/components/table/header.js.map +1 -0
  471. package/dist/components/table/index.d.ts +10 -14
  472. package/dist/components/table/index.js +1 -1
  473. package/dist/components/table/index.js.map +1 -1
  474. package/dist/components/table/row.js +2 -0
  475. package/dist/components/table/row.js.map +1 -0
  476. package/dist/components/table/types.d.ts +25 -2
  477. package/dist/components/tabs/context.d.ts +20 -0
  478. package/dist/components/tabs/context.js +4 -0
  479. package/dist/components/tabs/context.js.map +1 -0
  480. package/dist/components/tabs/index.d.ts +25 -51
  481. package/dist/components/tabs/index.js +1 -3
  482. package/dist/components/tabs/index.js.map +1 -1
  483. package/dist/components/tabs/list.d.ts +11 -0
  484. package/dist/components/tabs/list.js +4 -0
  485. package/dist/components/tabs/list.js.map +1 -0
  486. package/dist/components/tabs/panel.d.ts +11 -0
  487. package/dist/components/tabs/panel.js +2 -0
  488. package/dist/components/tabs/panel.js.map +1 -0
  489. package/dist/components/tabs/styles.js +1 -1
  490. package/dist/components/tabs/styles.js.map +1 -1
  491. package/dist/components/tabs/tab.d.ts +11 -0
  492. package/dist/components/tabs/tab.js +4 -0
  493. package/dist/components/tabs/tab.js.map +1 -0
  494. package/dist/components/text-area-field/context.d.ts +20 -0
  495. package/dist/components/text-area-field/context.js +4 -0
  496. package/dist/components/text-area-field/context.js.map +1 -0
  497. package/dist/components/text-area-field/index.d.ts +3 -13
  498. package/dist/components/text-area-field/index.js +1 -1
  499. package/dist/components/text-area-field/index.js.map +1 -1
  500. package/dist/components/text-field/context.d.ts +17 -0
  501. package/dist/components/text-field/context.js +4 -0
  502. package/dist/components/text-field/context.js.map +1 -0
  503. package/dist/components/text-field/index.d.ts +4 -13
  504. package/dist/components/text-field/index.js +1 -1
  505. package/dist/components/text-field/index.js.map +1 -1
  506. package/dist/components/time-field/index.d.ts +9 -0
  507. package/dist/components/time-field/index.js +1 -1
  508. package/dist/components/time-field/index.js.map +1 -1
  509. package/dist/components/tooltip/context.d.ts +7 -0
  510. package/dist/components/tooltip/context.js +4 -0
  511. package/dist/components/tooltip/context.js.map +1 -0
  512. package/dist/components/tooltip/index.d.ts +22 -42
  513. package/dist/components/tooltip/index.js +1 -1
  514. package/dist/components/tooltip/index.js.map +1 -1
  515. package/dist/components/tooltip/trigger.d.ts +8 -0
  516. package/dist/components/tooltip/trigger.js +4 -0
  517. package/dist/components/tooltip/trigger.js.map +1 -0
  518. package/dist/components/tooltip/types.d.ts +5 -6
  519. package/dist/components/tree/context.d.ts +18 -0
  520. package/dist/components/tree/context.js +4 -0
  521. package/dist/components/tree/context.js.map +1 -0
  522. package/dist/components/tree/index.d.ts +25 -43
  523. package/dist/components/tree/index.js +1 -1
  524. package/dist/components/tree/index.js.map +1 -1
  525. package/dist/components/tree/item-actions.d.ts +13 -0
  526. package/dist/components/tree/item-actions.js +2 -0
  527. package/dist/components/tree/item-actions.js.map +1 -0
  528. package/dist/components/tree/item-content.d.ts +17 -0
  529. package/dist/components/tree/item-content.js +2 -0
  530. package/dist/components/tree/item-content.js.map +1 -0
  531. package/dist/components/tree/item-description.d.ts +11 -0
  532. package/dist/components/tree/item-description.js +2 -0
  533. package/dist/components/tree/item-description.js.map +1 -0
  534. package/dist/components/tree/item-label.d.ts +11 -0
  535. package/dist/components/tree/item-label.js +2 -0
  536. package/dist/components/tree/item-label.js.map +1 -0
  537. package/dist/components/tree/item-prefix-icon.d.ts +12 -0
  538. package/dist/components/tree/item-prefix-icon.js +2 -0
  539. package/dist/components/tree/item-prefix-icon.js.map +1 -0
  540. package/dist/components/tree/item.d.ts +17 -0
  541. package/dist/components/tree/item.js +4 -0
  542. package/dist/components/tree/item.js.map +1 -0
  543. package/dist/components/tree/lines.d.ts +8 -0
  544. package/dist/components/tree/lines.js +2 -0
  545. package/dist/components/tree/lines.js.map +1 -0
  546. package/dist/components/tree/styles.js +1 -1
  547. package/dist/components/tree/styles.js.map +1 -1
  548. package/dist/components/tree/types.d.ts +1 -1
  549. package/dist/components/view-stack/context.d.ts +31 -0
  550. package/dist/components/view-stack/context.js +4 -0
  551. package/dist/components/view-stack/context.js.map +1 -0
  552. package/dist/components/view-stack/index.d.ts +38 -24
  553. package/dist/components/view-stack/index.js +1 -1
  554. package/dist/components/view-stack/index.js.map +1 -1
  555. package/dist/components/view-stack/trigger.d.ts +16 -0
  556. package/dist/components/view-stack/trigger.js +2 -0
  557. package/dist/components/view-stack/trigger.js.map +1 -0
  558. package/dist/components/view-stack/view.d.ts +16 -0
  559. package/dist/components/view-stack/view.js +4 -0
  560. package/dist/components/view-stack/view.js.map +1 -0
  561. package/dist/icons/catalog.d.ts +14 -0
  562. package/dist/icons/catalog.js +1 -1
  563. package/dist/icons/catalog.js.map +1 -1
  564. package/dist/index.css +5 -52
  565. package/dist/index.d.ts +152 -46
  566. package/dist/index.js +1 -1
  567. package/dist/metafile-esm.json +1 -1
  568. package/dist/providers/portal.d.ts +9 -0
  569. package/dist/providers/portal.js +2 -0
  570. package/dist/providers/portal.js.map +1 -0
  571. package/dist/providers/theme-provider.d.ts +6 -6
  572. package/dist/providers/theme-provider.js +1 -1
  573. package/dist/providers/theme-provider.js.map +1 -1
  574. package/dist/styles.css +1306 -340
  575. package/dist/tokens/themes.css +1 -1
  576. package/dist/tokens/themes.d.ts +1 -2
  577. package/dist/tokens/tokens.js +1 -1
  578. package/dist/tokens/tokens.js.map +1 -1
  579. package/package.json +109 -90
  580. package/dist/components/query-builder/group.js.map +0 -1
  581. package/dist/components/table/table-body.js +0 -2
  582. package/dist/components/table/table-body.js.map +0 -1
  583. package/dist/components/table/table-cell.js +0 -2
  584. package/dist/components/table/table-cell.js.map +0 -1
  585. package/dist/components/table/table-header-cell.js +0 -2
  586. package/dist/components/table/table-header-cell.js.map +0 -1
  587. package/dist/components/table/table-header.js +0 -2
  588. package/dist/components/table/table-header.js.map +0 -1
  589. package/dist/components/table/table-row.js +0 -2
  590. package/dist/components/table/table-row.js.map +0 -1
  591. package/dist/lib/react.d.ts +0 -59
  592. package/dist/lib/react.js +0 -9
  593. package/dist/lib/react.js.map +0 -1
  594. /package/dist/components/query-builder/{group.d.ts → rule-group.d.ts} +0 -0
  595. /package/dist/components/table/{table-body.d.ts → body.d.ts} +0 -0
  596. /package/dist/components/table/{table-cell.d.ts → cell.d.ts} +0 -0
  597. /package/dist/components/table/{table-header.d.ts → header.d.ts} +0 -0
  598. /package/dist/components/table/{table-row.d.ts → row.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/drawer/index.tsx"],"names":["DrawerStyles","menu","item","bus","Broadcast","DrawerContext","createContext","oe","ae","K","DrawerEventHandlers","_","ViewStackEventHandlers","view","q","P","DrawerTrigger","children","parent","handlePress","events","event","id","y","isUUID","type","jsx","Pressable","Q","r","Z","Icon","Cancel","b","h","DrawerBack","X","stack","useContext","ViewStackContext","Button","w","ChevronLeft","Y","className","rest","DrawerLayoutMain","DrawerLayout","layout","push","tooltipPlacementMap","DrawerMenuItem","textValue","placement","action","toggle","useRef","Tooltip","G","C","classNames","te","H","composeRenderProps","tooltipRef","DrawerMenu","R","position","DrawerPanel","panel","register","useEffect","unregister","ViewStack","B","U","DrawerView","level","Heading","re","ne","DrawerHeader","title","header","jsxs","Fragment","ee","Drawer","ye","DrawerHeaderTitle","DrawerContent","content","DrawerFooter","size","onChange","activeView","setActiveView","useState","defaultView","handleOpen","useCallback","data","views","E","ViewStackEventTypes","j","handleToggle","v","listeners","DrawerEventTypes","off","drawer","DrawerClose"],"mappings":"60BAsDmD,MAAA,CAAA,MAAS,CAAA,EAAA,CAAA,IAAO,CACjEA,EAAAA,CAAa,MACP,CAAA,EAAAC,CAAAA,KAAM,CAAAC,EAAK,KAAqB,CAAA,EAClCC,CAAMC,MAAU,CAAA,EAAA,CAAA,OAETC,CAAgBC,EAAkC,CAC7D,MAAA,CAAA,EAAU,CAAA,CAAAC,YAAG,EAAA,CACb,CAAA,IAAA,CAAA,EAAA,CAAA,IAAY,CAAA,EAAG,CAAA,CACfC,gBAAA,EAAA,CAAA,CAAA,CAAAC,SAAA,CAAA,WAGWC,EAAsB,CACjC,CAAA,CAAAC,aAAGC,CAAAA,CACH,QAA8B,CAAA,IAAA,CAC9B,CAAA,CAAA,UAA8B,CAAA,IAAsB,CAAA,CAAA,CAAA,SAAa,CAAC,MAClE,CAAA,CAAA,CAASC,EAAAA,CAAmBV,CAAAA,GAAIW,sBAAA,CAAA,KAAsB,CAAAA,sBAAA,CAAA,KAAU,CAAA,IAAM,CACxE,CAAA,EAEA,CAAA,CAAA,IAAA,CAAAC,gBAASC,CAAAA,WAAgBC,CAAAA,CAAU,CAAA,CAAA,MACjC,CAAA,CAAA,EAAA,CAAM,CAAE,IAAA,CAAAF,gBAAA,CAAAG,MAAsC,CAAA,CAE9C,IAAA,CAAA,CAAA,CAAA,CAAA,EAASC,oBACY,CAAA,CAAA,CAAA,GAAM,CAAA,CAAA,CAAA,CAAA,CAAA,KAAkBC,CAAS,MAClD,CAAA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F,CAAI,SAEpB,CAEA,CAAA,CAAA,CAAA,QAAC,CAAAgB,GAAA,CAAA8C,SAAA,CAAA,CAAA,IACK9B,CAAAA,WACOkE,CAAAA,CAAAA,CAAO,QAAE,CAAA,CAAA,EAAU,CAAC,CAAA,CAC/B,oBAA2B,CAAAlF,GAAA,CAC3B,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA,SACA,CAAA,EAAA,CAAA,CAAA,yBAQV0D,CAAO,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,gBAEA,CAAA,CAAA,CAAA,WACOtB,CACdsB,CAAAA,CAAO,QACPA,EAAO,CAAA,CAAA,CAAA,CAAA,CAAOX,CAAAA,CACdW,CAAAA,CAAO,WACA,CAAA,QAAUG,CACjBH,EAAO,MAAA,CAASK,CAAAA,CAChBL,CAAAA,CAAO,IAAA,CAAA,CAAA,CAAA,CAAUvE,CAAAA,KACV,CAAA,CAAA,CAAA,CAAQgG,CAAAA,IACR,CAAA,CAAA,CAAA,CAAO7E,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,IAAAA,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 { Broadcast } from '@accelint/bus';\nimport { isUUID, type UniqueId } from '@accelint/core';\nimport { Cancel, ChevronLeft } from '@accelint/icons';\nimport { Pressable } from '@react-aria/interactions';\nimport {\n type ComponentPropsWithRef,\n createContext,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { composeRenderProps, Header, Heading } from 'react-aria-components';\nimport { containsExactChildren } from '@/lib/react';\nimport { Button, ToggleButton } from '../button';\nimport { Icon } from '../icon';\nimport { Tooltip } from '../tooltip';\nimport {\n ViewStack,\n ViewStackContext,\n ViewStackEventHandlers,\n} from '../view-stack';\nimport { ViewStackEventTypes } from '../view-stack/events';\nimport { DrawerEventTypes } from './events';\nimport { DrawerMenuStyles, DrawerStyles, DrawerTitleStyles } from './styles';\nimport type { ViewStackViewProps } from '../view-stack/types';\nimport type {\n DrawerContextValue,\n DrawerEvent,\n DrawerLayoutProps,\n DrawerMenuItemProps,\n DrawerMenuProps,\n DrawerOpenEvent,\n DrawerProps,\n DrawerTitleProps,\n DrawerToggleEvent,\n DrawerTriggerProps,\n} from './types';\n\nconst { layout, main, drawer, panel, view, header, content, footer } =\n DrawerStyles();\nconst { menu, item } = DrawerMenuStyles();\nconst bus = Broadcast.getInstance<DrawerEvent>();\n\nexport const DrawerContext = createContext<DrawerContextValue>({\n register: () => undefined,\n unregister: () => undefined,\n placement: 'left',\n});\n\nexport const DrawerEventHandlers = {\n ...ViewStackEventHandlers,\n close: ViewStackEventHandlers.clear,\n open: (view: UniqueId) => bus.emit(DrawerEventTypes.open, { view }),\n toggle: (view: UniqueId) => bus.emit(DrawerEventTypes.toggle, { view }),\n} as const;\n\nfunction DrawerTrigger({ children, for: events }: DrawerTriggerProps) {\n const { parent } = useContext(ViewStackContext);\n\n function handlePress() {\n for (const type of Array.isArray(events) ? events : [events]) {\n let [event, id] = (isUUID(type) ? ['push', type] : type.split(':')) as [\n 'back' | 'clear' | 'close' | 'open' | 'push' | 'reset' | 'toggle',\n UniqueId | undefined | null,\n ];\n\n id ??= parent;\n\n if (!id) {\n continue;\n }\n\n DrawerEventHandlers[event](id);\n }\n }\n\n return <Pressable onPress={handlePress}>{children}</Pressable>;\n}\nDrawerTrigger.displayName = 'Drawer.Trigger';\n\nfunction DrawerClose() {\n return (\n <Drawer.Trigger for='close'>\n <Button variant='icon'>\n <Icon>\n <Cancel />\n </Icon>\n </Button>\n </Drawer.Trigger>\n );\n}\n\nDrawerClose.displayName = 'Drawer.Close';\n\nfunction DrawerBack() {\n const { stack } = useContext(ViewStackContext);\n return stack.length > 1 ? (\n <Drawer.Trigger for='back'>\n <Button variant='icon'>\n <Icon>\n <ChevronLeft />\n </Icon>\n </Button>\n </Drawer.Trigger>\n ) : null;\n}\n\nDrawerBack.displayName = 'Drawer.Back';\n\nfunction DrawerLayoutMain({\n className,\n ...rest\n}: ComponentPropsWithRef<'main'>) {\n return <main {...rest} className={main({ className })} />;\n}\nDrawerLayoutMain.displayName = 'Drawer.Layout.Main';\n\nfunction DrawerLayout({\n className,\n extend = 'left right',\n push,\n ...rest\n}: DrawerLayoutProps) {\n return (\n <div\n {...rest}\n className={layout({ className })}\n data-extend={extend}\n data-push={push}\n />\n );\n}\nDrawerLayout.displayName = 'Drawer.Layout';\nDrawerLayout.Main = DrawerLayoutMain;\n\nconst tooltipPlacementMap = {\n left: 'right',\n right: 'left',\n top: 'bottom',\n bottom: 'top',\n} as const;\n\nfunction DrawerMenuItem({\n for: id,\n children,\n classNames,\n toggle,\n textValue,\n ...rest\n}: DrawerMenuItemProps) {\n const { parent, stack } = useContext(ViewStackContext);\n const { placement } = useContext(DrawerContext);\n const view = stack.at(-1);\n const action = toggle ? 'toggle' : 'open';\n const tooltipRef = useRef(null);\n\n if (!parent) {\n return null;\n }\n\n return (\n <Tooltip>\n <Tooltip.Trigger>\n <DrawerTrigger for={`${action}:${id}`}>\n <ToggleButton\n {...rest}\n ref={tooltipRef}\n className={composeRenderProps(classNames?.item, (className) =>\n item({ className }),\n )}\n role='tab'\n variant='icon'\n isSelected={id === view || (stack.length > 1 && stack.includes(id))}\n >\n {composeRenderProps(children, (children) => (\n <Icon>{children}</Icon>\n ))}\n </ToggleButton>\n </DrawerTrigger>\n </Tooltip.Trigger>\n <Tooltip.Body\n triggerRef={tooltipRef}\n placement={tooltipPlacementMap[placement]}\n offset={6}\n className={classNames?.tooltip}\n >\n {textValue}\n </Tooltip.Body>\n </Tooltip>\n );\n}\nDrawerMenuItem.displayName = 'Drawer.Menu.Item';\n\nfunction DrawerMenu({\n className,\n position = 'center',\n children,\n ...rest\n}: DrawerMenuProps) {\n containsExactChildren({\n children,\n componentName: DrawerMenu.displayName,\n restrictions: [\n [DrawerMenuItem, { min: 1 }],\n [DrawerTrigger, { min: 0, max: 0 }],\n ],\n });\n return (\n <nav\n {...rest}\n className={menu({\n position,\n className,\n })}\n >\n {children}\n </nav>\n );\n}\nDrawerMenu.displayName = 'Drawer.Menu';\nDrawerMenu.Item = DrawerMenuItem;\n\nfunction DrawerPanel({ className, ...rest }: ComponentPropsWithRef<'div'>) {\n return <div {...rest} className={panel({ className })} />;\n}\nDrawerPanel.displayName = 'Drawer.Panel';\n\nfunction DrawerView({\n id,\n children,\n className,\n ...rest\n}: ViewStackViewProps & ComponentPropsWithRef<'div'>) {\n const { register, unregister } = useContext(DrawerContext);\n\n useEffect(() => {\n register(id);\n\n () => unregister(id);\n }, [register, unregister, id]);\n\n return (\n <ViewStack.View id={id}>\n <div {...rest} className={view({ className })} role='tabpanel'>\n {children}\n </div>\n </ViewStack.View>\n );\n}\nDrawerView.displayName = 'Drawer.View';\n\n/**\n * To change size of title, use the `level` prop: `1`-`3` (large), `4`-`6` (medium).\n *\n * `level` also changes the semantic heading tag number `h1`-`h6`\n */\nfunction DrawerHeaderTitle({ className, level, ...rest }: DrawerTitleProps) {\n return (\n <Heading\n {...rest}\n className={DrawerTitleStyles({ className, level })}\n level={level}\n />\n );\n}\nDrawerHeaderTitle.displayName = 'Drawer.Title';\n\nfunction DrawerHeader({\n className,\n title,\n children,\n ...rest\n}: ComponentPropsWithRef<'header'>) {\n const { stack } = useContext(ViewStackContext);\n const level = stack.length > 1 ? 4 : 1;\n\n return (\n <Header {...rest} className={header({ className })}>\n {title ? (\n <>\n <Drawer.Back />\n <Drawer.Header.Title level={level} className='w-fit'>\n {title}\n </Drawer.Header.Title>\n <Drawer.Close />\n </>\n ) : (\n children\n )}\n </Header>\n );\n}\n\nDrawerHeader.displayName = 'Drawer.Header';\nDrawerHeader.Title = DrawerHeaderTitle;\n\nfunction DrawerContent({ className, ...rest }: ComponentPropsWithRef<'div'>) {\n return <div {...rest} className={content({ className })} />;\n}\nDrawerContent.displayName = 'Drawer.Content';\n\nfunction DrawerFooter({ className, ...rest }: ComponentPropsWithRef<'footer'>) {\n return <footer {...rest} className={footer({ className })} />;\n}\nDrawerFooter.displayName = 'Drawer.Footer';\n\nexport function Drawer({\n id,\n children,\n className,\n defaultView,\n placement = 'left',\n size = 'medium',\n onChange,\n ...rest\n}: DrawerProps) {\n containsExactChildren({\n children,\n componentName: Drawer.displayName,\n restrictions: [\n [DrawerMenu, { min: 0, max: 1 }],\n [DrawerPanel, { min: 1, max: 1 }],\n ],\n });\n\n const views = useRef(new Set<UniqueId>());\n const [activeView, setActiveView] = useState<UniqueId | null>(\n defaultView || null,\n );\n\n const handleOpen = useCallback(\n (data: DrawerOpenEvent) => {\n if (views.current.has(data?.payload?.view)) {\n bus.emit(ViewStackEventTypes.clear, { stack: id });\n bus.emit(ViewStackEventTypes.push, data.payload);\n }\n },\n [id],\n );\n const handleToggle = useCallback(\n (data: DrawerToggleEvent) => {\n if (views.current.has(data?.payload?.view)) {\n bus.emit(ViewStackEventTypes.clear, { stack: id });\n if (activeView !== data?.payload?.view) {\n bus.emit(ViewStackEventTypes.push, data.payload);\n }\n }\n },\n [id, activeView],\n );\n\n useEffect(() => {\n const listeners = [\n bus.on(DrawerEventTypes.open, handleOpen),\n bus.on(DrawerEventTypes.toggle, handleToggle),\n ];\n\n return () => {\n for (const off of listeners) {\n off();\n }\n };\n }, [handleOpen, handleToggle]);\n\n return (\n <DrawerContext.Provider\n value={{\n register: (view: UniqueId) => views.current.add(view),\n unregister: (view: UniqueId) => views.current.delete(view),\n placement,\n }}\n >\n <ViewStack\n id={id}\n defaultView={defaultView}\n onChange={(view) => {\n setActiveView(view);\n onChange?.(view);\n }}\n >\n <div\n {...rest}\n className={drawer({ className })}\n data-open={!!activeView || null}\n data-placement={placement}\n data-size={size}\n >\n {children}\n </div>\n </ViewStack>\n </DrawerContext.Provider>\n );\n}\nDrawer.displayName = 'Drawer';\n\nDrawer.Layout = DrawerLayout;\nDrawer.Menu = DrawerMenu;\nDrawer.Panel = DrawerPanel;\nDrawer.View = DrawerView;\nDrawer.Header = DrawerHeader;\nDrawer.Content = DrawerContent;\nDrawer.Footer = DrawerFooter;\nDrawer.Trigger = DrawerTrigger;\nDrawer.Close = DrawerClose;\nDrawer.Back = DrawerBack;\n"]}
1
+ {"version":3,"sources":["../../../src/components/drawer/index.tsx"],"names":["q","children","className","defaultView","placement","size","onChange","rest","views","useRef","setActiveView","useState","y","viewStackEmit","useCallback","data","s","id","activeView","useOn","DrawerEventTypes","handleOpen","jsx","DrawerContext","l","c","n","k","view","ViewStack","E","drawer"],"mappings":"kXAoDO,KAAgB,CACrB,MACA,CAAA,CAAA,CAAA,CAAAA,YAAA,EAAA,CAAAC,SACA,CAAA,CAAA,CAAAC,EACA,CAAA,CAAA,CAAA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,EAAY,WACZ,CAAAC,CAAAA,CAAO,SACP,CAAA,CAAA,CAAA,MAAAC,CAAAA,IACGC,CACL,CAAA,CAAgB,QACRC,CAAQC,QAAW,CAAe,CAAA,CAClC,GAAaC,CAAa,CAAA,CAAIC,OACnB,CAAA,CACjBC,MAAA,CAEMC,IAAiC,IAEpBC,CAAAA,CAChBC,CAAAA,CAAAA,CAA0B,CACrBP,CAAAA,QAAM,CAAA,CAAA,EAAA,IAAQ,CAAA,CAAA,CAAA,CAAIO,kBAAM,CA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GAAGf,CACJ,YAAWwB,CAAOL,GAAE,CAAA,KAAA,CAAA,CAAA,GAAU,CAAC,CAAA,aACpB,SAAgB,CAC3B,CAAA,CAAA,CAAA,CAAA,WAAA,CAAA,CAAgBtB,CAAAA,CAChB,EAAA,IAAA,CAAA,gBAECH,CAAAA,CACH,CAAA,WAIR,CAAA,CAAA,CAAA,QAAA,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 { useOn } from '@accelint/bus/react';\nimport type { UniqueId } from '@accelint/core';\nimport 'client-only';\nimport { useCallback, useRef, useState } from 'react';\nimport { ViewStack } from '../view-stack';\nimport { useViewStackEmit } from '../view-stack/context';\nimport { DrawerContext } from './context';\nimport { DrawerEventTypes } from './events';\nimport { DrawerStyles } from './styles';\nimport type { DrawerOpenEvent, DrawerProps, DrawerToggleEvent } from './types';\n\nconst { drawer } = DrawerStyles();\n\n/**\n * Drawer - Slide-in panel for navigation or contextual content\n *\n * A flexible panel that slides in from the viewport edge and supports\n * stacked views, headers, footers, and programmatic triggers.\n *\n * @example\n * const ids = { drawer: uuid(), a: uuid() };\n *\n * <DrawerLayout push=\"left\">\n * <DrawerLayoutMain>\n * <DrawerTrigger for={`open:${ids.a}`}>\n * <Button variant=\"icon\">Open</Button>\n * </DrawerTrigger>\n * </DrawerLayoutMain>\n *\n * <Drawer id={ids.drawer} defaultView={ids.a}>\n * <DrawerPanel>\n * <DrawerView id={ids.a}>\n * <DrawerHeader title=\"Title A\" />\n * <DrawerContent>Content for View A</DrawerContent>\n * </DrawerView>\n * </DrawerPanel>\n * </Drawer>\n * </DrawerLayout>\n */\nexport function Drawer({\n id,\n children,\n className,\n defaultView,\n placement = 'left',\n size = 'medium',\n onChange,\n ...rest\n}: DrawerProps) {\n const views = useRef(new Set<UniqueId>());\n const [activeView, setActiveView] = useState<UniqueId | null>(\n defaultView || null,\n );\n\n const viewStackEmit = useViewStackEmit();\n\n const handleOpen = useCallback(\n (data: DrawerOpenEvent) => {\n if (views.current.has(data?.payload?.view)) {\n viewStackEmit.clear(id);\n viewStackEmit.push(data.payload.view);\n }\n },\n [id, viewStackEmit.clear, viewStackEmit.push],\n );\n const handleToggle = useCallback(\n (data: DrawerToggleEvent) => {\n if (views.current.has(data?.payload?.view)) {\n viewStackEmit.clear(id);\n if (activeView !== data?.payload?.view) {\n viewStackEmit.push(data.payload.view);\n }\n }\n },\n [id, activeView, viewStackEmit.clear, viewStackEmit.push],\n );\n\n useOn(DrawerEventTypes.open, handleOpen);\n useOn(DrawerEventTypes.toggle, handleToggle);\n\n return (\n <DrawerContext.Provider\n value={{\n register: (view: UniqueId) => views.current.add(view),\n unregister: (view: UniqueId) => views.current.delete(view),\n placement,\n }}\n >\n <ViewStack\n id={id}\n defaultView={defaultView}\n onChange={(view) => {\n setActiveView(view);\n onChange?.(view);\n }}\n >\n <div\n {...rest}\n className={drawer({ className })}\n data-open={!!activeView || null}\n data-placement={placement}\n data-size={size}\n >\n {children}\n </div>\n </ViewStack>\n </DrawerContext.Provider>\n );\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithRef } from 'react';
3
+
4
+ declare function DrawerLayoutMain({ className, ...rest }: ComponentPropsWithRef<'main'>): react_jsx_runtime.JSX.Element;
5
+
6
+ export { DrawerLayoutMain };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{main:e}=DrawerStyles();function a({className:o,...t}){return jsx("main",{...t,className:e({className:o})})}export{a as DrawerLayoutMain};//# sourceMappingURL=layout-main.js.map
2
+ //# sourceMappingURL=layout-main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/layout-main.tsx"],"names":["DrawerStyles","r","rest","n"],"mappings":"+FAkBA,UAAiBA,CAAAA,CAAa,CAAA,CAEvBC,wBACL,CAAA,CAAA,CAAA,WACGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAA,MAAM,CAAGD,CAAAA,GAAM,CAAA,CAAA,SAAkB,CAAA,CAAA,CAAA,CAAA,UAAc,CACzD,CAAA,CAAA,CAAA,CAAA","file":"layout-main.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\n'use client';\n\nimport 'client-only';\nimport { DrawerStyles } from './styles';\nimport type { ComponentPropsWithRef } from 'react';\n\nconst { main } = DrawerStyles();\n\nexport function DrawerLayoutMain({\n className,\n ...rest\n}: ComponentPropsWithRef<'main'>) {\n return <main {...rest} className={main({ className })} />;\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DrawerLayoutProps } from './types.js';
3
+ import '@accelint/bus';
4
+ import '@accelint/core';
5
+ import '@react-types/shared';
6
+ import 'react';
7
+ import 'react-aria-components';
8
+ import 'tailwind-variants';
9
+ import '../../lib/types.js';
10
+ import '../button/types.js';
11
+ import '../button/styles.js';
12
+ import 'tailwind-merge';
13
+ import '../view-stack/types.js';
14
+ import '../view-stack/events.js';
15
+ import './events.js';
16
+ import './styles.js';
17
+
18
+ declare function DrawerLayout({ className, extend, push, ...rest }: DrawerLayoutProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { DrawerLayout };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{layout:p}=DrawerStyles();function i({className:t,extend:r="left right",push:o,...a}){return jsx("div",{...a,className:p({className:t}),"data-extend":r,"data-push":o})}export{i as DrawerLayout};//# sourceMappingURL=layout.js.map
4
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/layout.tsx"],"names":["DrawerStyles","e","rest"],"mappings":"+FAiBA,YAAmBA,EAAa,CAAA,CAEzBC,YAAA,EAAA,CAAA,SACL,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,qBACA,CAAA,MACGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,gBAEK,CAAGA,CAAAA,cACgB,cACpB,CAAA,CAAA,CAAA,CAAA,aACA,CAAA,CAAA,CAAA,WAGN,CAAA,CAAA,CAAA,CAAA","file":"layout.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 { DrawerStyles } from './styles';\nimport type { DrawerLayoutProps } from './types';\n\nconst { layout } = DrawerStyles();\n\nexport function DrawerLayout({\n className,\n extend = 'left right',\n push,\n ...rest\n}: DrawerLayoutProps) {\n return (\n <div\n {...rest}\n className={layout({ className })}\n data-extend={extend}\n data-push={push}\n />\n );\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DrawerMenuItemProps } from './types.js';
3
+ import '@accelint/bus';
4
+ import '@accelint/core';
5
+ import '@react-types/shared';
6
+ import 'react';
7
+ import 'react-aria-components';
8
+ import 'tailwind-variants';
9
+ import '../../lib/types.js';
10
+ import '../button/types.js';
11
+ import '../button/styles.js';
12
+ import 'tailwind-merge';
13
+ import '../view-stack/types.js';
14
+ import '../view-stack/events.js';
15
+ import './events.js';
16
+ import './styles.js';
17
+
18
+ declare function DrawerMenuItem({ for: id, children, classNames, toggle, textValue, ...rest }: DrawerMenuItemProps): react_jsx_runtime.JSX.Element | null;
19
+
20
+ export { DrawerMenuItem };
@@ -0,0 +1,2 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import'client-only';import {useContext,useRef}from'react';import {composeRenderProps}from'react-aria-components';import {ToggleButton}from'../button/toggle.js';import {Icon}from'../icon/index.js';import {Tooltip}from'../tooltip/index.js';import {TooltipTrigger}from'../tooltip/trigger.js';import {ViewStackContext}from'../view-stack/context.js';import {DrawerContext}from'./context.js';import {DrawerMenuStyles}from'./styles.js';import {DrawerTrigger}from'./trigger.js';const{item:y}=DrawerMenuStyles(),C={left:"right",right:"left",top:"bottom",bottom:"top"};function F({for:o,children:l,classNames:n,toggle:f,textValue:c,...s}){const{parent:a,stack:e}=useContext(ViewStackContext),{placement:g}=useContext(DrawerContext),u=e.at(-1),T=f?"toggle":"open",i=useRef(null);return a?jsxs(TooltipTrigger,{children:[jsx(DrawerTrigger,{for:`${T}:${o}`,children:jsx(ToggleButton,{...s,ref:i,className:composeRenderProps(n?.item,r=>y({className:r})),role:"tab",variant:"icon",isSelected:o===u||e.length>1&&e.includes(o),children:composeRenderProps(l,r=>jsx(Icon,{children:r}))})}),jsx(Tooltip,{triggerRef:i,placement:C[g],offset:6,className:n?.tooltip,children:c})]}):null}export{F as DrawerMenuItem};//# sourceMappingURL=menu-item.js.map
2
+ //# sourceMappingURL=menu-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/menu-item.tsx"],"names":["h","DrawerMenuItem","id","textValue","parent","useContext","placement","view","stack","action","m","R","b","jsxs","TooltipTrigger","DrawerTrigger","S","jsx","ToggleButton","tooltipRef","x","composeRenderProps","classNames","t","D","className","p","children","Icon","Tooltip","I","M"],"mappings":"+fA+BS,UACF,CAAA,CAAA,CAAA,CAAAA,gBAAA,EACL,CAAA,CAAA,CAAA,CAAA,YAGK,CAAA,KAASC,CAAAA,MACTC,CAAAA,YAEL,CAAA,MAAA,CAAA,KACA,CAAA,CAAA,iBACAC,CAAAA,QAGA,aAAQC,EAAQ,CAAA,MAAM,EAAIC,CAAAA,SAClB,CAAA,CAAA,CAAA,GAAAC,CAAU,EAAID,CAAAA,KAChBE,CAAOC,MAAS,CAAE,CAAA,CAClBC,KAAkB,CAAA,CAAA,CAAA,CAAAC,UAAA,CAAAC,gBAAA,CAAW,WACT,IAAID,UAAA,CAE9BE,aAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAKR,EAKHS,CAAAA,EAACC,CAAA,CACC,CAAA,CAAA,CAAA,CAAA,QAACC,OAAmB,GAAGN,MAAM,CAAA,IAAM,CAAA,CAAA,OACjC,CAAA,CAAAO,IAAAC,eAACC,CAAAA,CAAA,QAEC,CAAA,CAAKC,IACLC,aAAA,CAAA,CAAA,GAAA,CAAA,CAAA,EAAWC,CAAAA,CAAmBC,GAAY,CAAA,CAAA,CAAA,CAAA,QACjC,CAAAC,GAAA,CAAAC,YAAA,CAAA,CAAA,GAAAC,CAAU,CAAC,GAEpB,YACA,CAAAC,kBAAA,CAAA,CAAA,EAAA,QACA,CAAA,CAAA,CAAA,SAAYxB,CAAAA,CAAAA,CAAOK,GAASC,IAAM,CAAA,aAAoB,CAAA,MAAW,CAEhE,WAAmBmB,CAAAA,GAAWA,CAC7BV,EAACW,CAAAA,CAAA,MAAM,CAAA,CAAA,EAAAD,EAAS,QAItBV,CAACY,EAAA,CACC,QAAA,CAAAH,kBAAA,CAAYP,EACZ,CAAA,EAAAI,GAAA,CAAAO,IAAA,CAAA,CAAA,QACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,EACR,CAAA,CAAAP,GAAA,CAAAQ,OAAA,CAAA,CAAA,sBAEC,CAAA5B,CAAAA,CACH,CAAA,CAAA,CACF,MAEJ,CAAA,CAAA,CAAA,SAAA,CAAA,CAAA,EAAA,OAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA","file":"menu-item.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\n'use client';\n\nimport 'client-only';\nimport { useContext, useRef } from 'react';\nimport { composeRenderProps } from 'react-aria-components';\nimport { ToggleButton } from '../button/toggle';\nimport { Icon } from '../icon';\nimport { Tooltip } from '../tooltip';\nimport { TooltipTrigger } from '../tooltip/trigger';\nimport { ViewStackContext } from '../view-stack/context';\nimport { DrawerContext } from './context';\nimport { DrawerMenuStyles } from './styles';\nimport { DrawerTrigger } from './trigger';\nimport type { DrawerMenuItemProps } from './types';\n\nconst { item } = DrawerMenuStyles();\n\nconst tooltipPlacementMap = {\n left: 'right',\n right: 'left',\n top: 'bottom',\n bottom: 'top',\n} as const;\n\nexport function DrawerMenuItem({\n for: id,\n children,\n classNames,\n toggle,\n textValue,\n ...rest\n}: DrawerMenuItemProps) {\n const { parent, stack } = useContext(ViewStackContext);\n const { placement } = useContext(DrawerContext);\n const view = stack.at(-1);\n const action = toggle ? 'toggle' : 'open';\n const tooltipRef = useRef(null);\n\n if (!parent) {\n return null;\n }\n\n return (\n <TooltipTrigger>\n <DrawerTrigger for={`${action}:${id}`}>\n <ToggleButton\n {...rest}\n ref={tooltipRef}\n className={composeRenderProps(classNames?.item, (className) =>\n item({ className }),\n )}\n role='tab'\n variant='icon'\n isSelected={id === view || (stack.length > 1 && stack.includes(id))}\n >\n {composeRenderProps(children, (children) => (\n <Icon>{children}</Icon>\n ))}\n </ToggleButton>\n </DrawerTrigger>\n <Tooltip\n triggerRef={tooltipRef}\n placement={tooltipPlacementMap[placement]}\n offset={6}\n className={classNames?.tooltip}\n >\n {textValue}\n </Tooltip>\n </TooltipTrigger>\n );\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DrawerMenuProps } from './types.js';
3
+ import '@accelint/bus';
4
+ import '@accelint/core';
5
+ import '@react-types/shared';
6
+ import 'react';
7
+ import 'react-aria-components';
8
+ import 'tailwind-variants';
9
+ import '../../lib/types.js';
10
+ import '../button/types.js';
11
+ import '../button/styles.js';
12
+ import 'tailwind-merge';
13
+ import '../view-stack/types.js';
14
+ import '../view-stack/events.js';
15
+ import './events.js';
16
+ import './styles.js';
17
+
18
+ declare function DrawerMenu({ className, position, children, ...rest }: DrawerMenuProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { DrawerMenu };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerMenuStyles}from'./styles.js';const{menu:p}=DrawerMenuStyles();function m({className:e,position:r="center",children:n,...o}){return jsx("nav",{...o,className:p({position:r,className:e}),children:n})}export{m as DrawerMenu};//# sourceMappingURL=menu.js.map
4
+ //# sourceMappingURL=menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/menu.tsx"],"names":["DrawerMenuStyles","t","rest"],"mappings":"mGAiBA,UAAiBA,EAAiB,CAAA,CAE3BC,gBAAA,EAAA,CAAA,SACL,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,mBACA,CAAA,UACGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,gBAEK,CAAGA,CAAAA,cAEF,YACA,CAAA,CAAA,CAAA,SACD,CAEA,CAAA,CAAA,CAAA,CAAA,QAGP,CAAA,CAAA,CAAA,CAAA","file":"menu.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 { DrawerMenuStyles } from './styles';\nimport type { DrawerMenuProps } from './types';\n\nconst { menu } = DrawerMenuStyles();\n\nexport function DrawerMenu({\n className,\n position = 'center',\n children,\n ...rest\n}: DrawerMenuProps) {\n return (\n <nav\n {...rest}\n className={menu({\n position,\n className,\n })}\n >\n {children}\n </nav>\n );\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithRef } from 'react';
3
+
4
+ declare function DrawerPanel({ className, ...rest }: ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
5
+
6
+ export { DrawerPanel };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{panel:t}=DrawerStyles();function m({className:e,...o}){return jsx("div",{...o,className:t({className:e})})}export{m as DrawerPanel};//# sourceMappingURL=panel.js.map
2
+ //# sourceMappingURL=panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/panel.tsx"],"names":["DrawerStyles","r","rest","n"],"mappings":"+FAiBA,WAAkBA,CAAAA,CAAa,CAAA,CAExBC,wBACL,CAAA,CAAA,CAAA,WACGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAA,KAAK,CAAGD,CAAAA,GAAM,CAAA,CAAA,SAAmB,CAAA,CAAA,CAAA,CAAA,UAAc,CACzD,CAAA,CAAA,CAAA,CAAA","file":"panel.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 { DrawerStyles } from './styles';\nimport type { ComponentPropsWithRef } from 'react';\n\nconst { panel } = DrawerStyles();\n\nexport function DrawerPanel({\n className,\n ...rest\n}: ComponentPropsWithRef<'div'>) {\n return <div {...rest} className={panel({ className })} />;\n}\n"]}
@@ -4,12 +4,12 @@ import * as tailwind_merge from 'tailwind-merge';
4
4
  declare const DrawerStyles: tailwind_variants.TVReturnType<{
5
5
  [key: string]: {
6
6
  [key: string]: tailwind_merge.ClassNameValue | {
7
- content?: tailwind_merge.ClassNameValue;
8
7
  main?: tailwind_merge.ClassNameValue;
9
- footer?: tailwind_merge.ClassNameValue;
8
+ content?: tailwind_merge.ClassNameValue;
9
+ panel?: tailwind_merge.ClassNameValue;
10
10
  header?: tailwind_merge.ClassNameValue;
11
+ footer?: tailwind_merge.ClassNameValue;
11
12
  view?: tailwind_merge.ClassNameValue;
12
- panel?: tailwind_merge.ClassNameValue;
13
13
  layout?: tailwind_merge.ClassNameValue;
14
14
  drawer?: tailwind_merge.ClassNameValue;
15
15
  };
@@ -17,12 +17,12 @@ declare const DrawerStyles: tailwind_variants.TVReturnType<{
17
17
  } | {
18
18
  [x: string]: {
19
19
  [x: string]: tailwind_merge.ClassNameValue | {
20
- content?: tailwind_merge.ClassNameValue;
21
20
  main?: tailwind_merge.ClassNameValue;
22
- footer?: tailwind_merge.ClassNameValue;
21
+ content?: tailwind_merge.ClassNameValue;
22
+ panel?: tailwind_merge.ClassNameValue;
23
23
  header?: tailwind_merge.ClassNameValue;
24
+ footer?: tailwind_merge.ClassNameValue;
24
25
  view?: tailwind_merge.ClassNameValue;
25
- panel?: tailwind_merge.ClassNameValue;
26
26
  layout?: tailwind_merge.ClassNameValue;
27
27
  drawer?: tailwind_merge.ClassNameValue;
28
28
  };
@@ -39,12 +39,12 @@ declare const DrawerStyles: tailwind_variants.TVReturnType<{
39
39
  }, undefined, {
40
40
  [key: string]: {
41
41
  [key: string]: tailwind_merge.ClassNameValue | {
42
- content?: tailwind_merge.ClassNameValue;
43
42
  main?: tailwind_merge.ClassNameValue;
44
- footer?: tailwind_merge.ClassNameValue;
43
+ content?: tailwind_merge.ClassNameValue;
44
+ panel?: tailwind_merge.ClassNameValue;
45
45
  header?: tailwind_merge.ClassNameValue;
46
+ footer?: tailwind_merge.ClassNameValue;
46
47
  view?: tailwind_merge.ClassNameValue;
47
- panel?: tailwind_merge.ClassNameValue;
48
48
  layout?: tailwind_merge.ClassNameValue;
49
49
  drawer?: tailwind_merge.ClassNameValue;
50
50
  };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DrawerTriggerProps } from './types.js';
3
+ import '@accelint/bus';
4
+ import '@accelint/core';
5
+ import '@react-types/shared';
6
+ import 'react';
7
+ import 'react-aria-components';
8
+ import 'tailwind-variants';
9
+ import '../../lib/types.js';
10
+ import '../button/types.js';
11
+ import '../button/styles.js';
12
+ import 'tailwind-merge';
13
+ import '../view-stack/types.js';
14
+ import '../view-stack/events.js';
15
+ import './events.js';
16
+ import './styles.js';
17
+
18
+ declare function DrawerTrigger({ for: events, ...rest }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { DrawerTrigger };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import {isUUID}from'@accelint/core';import {Pressable}from'@react-aria/interactions';import'client-only';import {useContext}from'react';import {ViewStackContext}from'../view-stack/context.js';import {useDrawerEmit}from'./context.js';function U({for:r,...t}){const{parent:i}=useContext(ViewStackContext),n=useDrawerEmit();function s(){for(const e of Array.isArray(r)?r:[r]){let[p,o]=isUUID(e)?["push",e]:e.split(":");o??=i,o&&n[p](o);}}return jsx(Pressable,{...t,onPress:s})}export{U as DrawerTrigger};//# sourceMappingURL=trigger.js.map
4
+ //# sourceMappingURL=trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/trigger.tsx"],"names":["parent","drawerEmit","useDrawerEmit","c","type","events","event","id","jsx","rest","a","handlePress"],"mappings":"6QAqBO,UAAsC,CAAA,CAAA,IAA+B,CAC1E,CAAA,GAAA,CAAM,CAAE,CAAA,CAAA,KAAAA,CAAO,OACTC,CAAAA,CAAaC,CAAAA,UAAc,iBAEjC,CAAA,CAAA,CAAA,CAAAC,aAAA,EAAA,CAAA,SACE,CAAA,EAAA,CAAA,IAAWC,WAAc,KAAA,CAAQC,OAA0B,CAAA,CAAG,CAC5D,GAAI,CAACC,CAAAA,CAAOC,CAAE,CAAA,GAAYH,CAAI,CAAA,CAAI,CAAC,YAAQA,CAAI,MAAS,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,KAK9DG,CAAAA,GAEKA,GAILN,GAAgB,EAAEM,CAAE,EAExB,CAEA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAOC,QAAeC,GAAAA,CAAMC,SAAA,CAAA,CAAA,GAAA,CAAA,CAASC,OACvC,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 { isUUID, type UniqueId } from '@accelint/core';\nimport { Pressable } from '@react-aria/interactions';\nimport 'client-only';\nimport { useContext } from 'react';\nimport { ViewStackContext } from '../view-stack/context';\nimport { useDrawerEmit } from './context';\nimport type { DrawerTriggerProps } from './types';\n\nexport function DrawerTrigger({ for: events, ...rest }: DrawerTriggerProps) {\n const { parent } = useContext(ViewStackContext);\n const drawerEmit = useDrawerEmit();\n\n function handlePress() {\n for (const type of Array.isArray(events) ? events : [events]) {\n let [event, id] = (isUUID(type) ? ['push', type] : type.split(':')) as [\n 'back' | 'clear' | 'close' | 'open' | 'push' | 'reset' | 'toggle',\n UniqueId | undefined | null,\n ];\n\n id ??= parent;\n\n if (!id) {\n continue;\n }\n\n drawerEmit[event](id);\n }\n }\n\n return <Pressable {...rest} onPress={handlePress} />;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { Payload } from '@accelint/bus';
2
2
  import { UniqueId } from '@accelint/core';
3
3
  import { FocusableElement } from '@react-types/shared';
4
- import { ComponentPropsWithRef, ReactElement, DOMAttributes } from 'react';
4
+ import { ComponentPropsWithRef, RefAttributes, ReactElement, DOMAttributes } from 'react';
5
5
  import { HeadingProps } from 'react-aria-components';
6
6
  import { VariantProps } from 'tailwind-variants';
7
7
  import { AriaAttributesWithRef } from '../../lib/types.js';
@@ -121,7 +121,7 @@ type DrawerMenuProps = ComponentPropsWithRef<'nav'> & {
121
121
  position?: 'start' | 'center' | 'end';
122
122
  };
123
123
  /**
124
- * Drawer.Menu.Item implements Drawer.Trigger with the default behavior of
124
+ * DrawerMenuItem implements DrawerTrigger with the default behavior of
125
125
  * the trigger's `open` event type, which resets the stack before pushing the new view
126
126
  */
127
127
  type DrawerMenuItemProps = Omit<ToggleButtonProps, 'id' | 'isSelected' | 'className'> & {
@@ -164,7 +164,7 @@ type DrawerEvent = DrawerOpenEvent | DrawerToggleEvent | ViewStackEvent;
164
164
  type SimpleEvents = 'back' | 'clear' | 'close' | 'reset' | UniqueId;
165
165
  type TargetedEvents = `back:${UniqueId}` | `clear:${UniqueId}` | `close:${UniqueId}` | `open:${UniqueId}` | `toggle:${UniqueId}` | `reset:${UniqueId}`;
166
166
  type ChainedEvents = (SimpleEvents | TargetedEvents)[];
167
- type DrawerTriggerProps = {
167
+ type DrawerTriggerProps = RefAttributes<FocusableElement> & {
168
168
  children: ReactElement<DOMAttributes<FocusableElement>, string>;
169
169
  /**
170
170
  * __SimpleEvents__ allow the easiest implementation of events, but come with some restrictions:
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithRef } from 'react';
3
+ import { ViewStackViewProps } from '../view-stack/types.js';
4
+ import '@accelint/bus';
5
+ import '@accelint/core';
6
+ import 'react-aria-components';
7
+ import '../view-stack/events.js';
8
+
9
+ declare function DrawerView({ id, children, className, ...rest }: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
10
+
11
+ export { DrawerView };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {useContext,useEffect}from'react';import {ViewStackView}from'../view-stack/view.js';import {DrawerContext}from'./context.js';import {DrawerStyles}from'./styles.js';const{view:f}=DrawerStyles();function S({id:e,children:i,className:p,...s}){const{register:t,unregister:r}=useContext(DrawerContext);return useEffect(()=>(t(e),()=>r(e)),[t,r,e]),jsx(ViewStackView,{id:e,children:jsx("div",{...s,className:f({className:p}),role:"tabpanel",children:i})})}export{S as DrawerView};//# sourceMappingURL=view.js.map
4
+ //# sourceMappingURL=view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/view.tsx"],"names":["c","DrawerView","children","className","unregister","useEffect","a","w","register","jsx","ViewStackView","id","o","m","rest","view"],"mappings":"mOAoBa,KAAiB,CAEvB,IAAA,CAAA,CAAA,CAAA,CAAAA,YAASC,EAAW,CACzB,SACA,CAAA,CAAA,CAAA,EAAAC,CAAAA,CACA,UAAAC,CAAAA,CACA,YAEM,GAAE,CAAA,CAAA,CAAA,CAAA,KAAU,CAAA,QAAA,CAAA,CAAAC,CAAW,UAE7B,CAAA,CAAA,CAAA,CAAAC,WAAUC,aAAA,CAAA,CAAA,OAGDC,SAAA,CAAA,KAAmB,CAAA,CAAA,CACzB,CAACC,CAAAA,IAAwB,CAAC,CAAA,CAG3BC,EAACC,CAAAA,CAAA,CAAc,GAAIC,CAAAA,CACjB,CAAA,CAAAC,GAAA,CAAAC,aAAA,CAAA,CAAA,EAAAJ,EAAC,CAAA,QAAK,CAAGK,IAAM,KAAA,CAAA,CAAA,GAAWC,CAAAA,CAAK,SAAE,CAAA,CAAAZ,CAAU,CAAC,kBACzC,CAAA,UACH,SAGN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"view.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 { type ComponentPropsWithRef, useContext, useEffect } from 'react';\nimport { ViewStackView } from '../view-stack/view';\nimport { DrawerContext } from './context';\nimport { DrawerStyles } from './styles';\nimport type { ViewStackViewProps } from '../view-stack/types';\n\nconst { view } = DrawerStyles();\n\nexport function DrawerView({\n id,\n children,\n className,\n ...rest\n}: ViewStackViewProps & ComponentPropsWithRef<'div'>) {\n const { register, unregister } = useContext(DrawerContext);\n\n useEffect(() => {\n register(id);\n\n return () => unregister(id);\n }, [register, unregister, id]);\n\n return (\n <ViewStackView id={id}>\n <div {...rest} className={view({ className })} role='tabpanel'>\n {children}\n </div>\n </ViewStackView>\n );\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import * as react from 'react';
2
+ import { ContextValue } from 'react-aria-components';
3
+ import { HeroProps } from './types.js';
4
+
5
+ declare const HeroContext: react.Context<ContextValue<HeroProps, HTMLElement>>;
6
+
7
+ export { HeroContext };
@@ -0,0 +1,2 @@
1
+ import'client-only';import {createContext}from'react';const r=createContext(null);export{r as HeroContext};//# sourceMappingURL=context.js.map
2
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/hero/context.tsx"],"names":["HeroContext","createContext"],"mappings":"sDAkBO,MAAMA,CAAAA,CACXC,cAAoD,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 { HeroProps } from './types';\n\nexport const HeroContext =\n createContext<ContextValue<HeroProps, HTMLElement>>(null);\n"]}
@@ -1,10 +1,7 @@
1
- import * as react_aria_components from 'react-aria-components';
2
- import { ContextValue } from 'react-aria-components';
3
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as react from 'react';
5
2
  import { HeroProps } from './types.js';
3
+ import 'react';
6
4
 
7
- declare const HeroContext: react.Context<ContextValue<HeroProps, HTMLElement>>;
8
5
  /**
9
6
  * A versatile hero component that displays an icon alongside primary and secondary content.
10
7
  * Automatically organizes child components by type and supports both stacked and grid layouts.
@@ -14,32 +11,27 @@ declare const HeroContext: react.Context<ContextValue<HeroProps, HTMLElement>>;
14
11
  * // Basic hero with icon and content
15
12
  * <Hero>
16
13
  * <Icon><Placeholder /></Icon>
17
- * <Hero.Title>Primary Title</Hero.Title>
18
- * <Hero.Subtitle>Secondary information</Hero.Subtitle>
14
+ * <HeroTitle>Primary Title</HeroTitle>
15
+ * <HeroSubtitle>Secondary information</HeroSubtitle>
19
16
  * </Hero>
20
17
  *
21
18
  * // Grid layout for compact display
22
19
  * <Hero compact>
23
20
  * <Icon><Settings /></Icon>
24
- * <Hero.Title>Settings</Hero.Title>
25
- * <Hero.Subtitle>Configure your preferences</Hero.Subtitle>
21
+ * <HeroTitle>Settings</HeroTitle>
22
+ * <HeroSubtitle>Configure your preferences</HeroSubtitle>
26
23
  * </Hero>
27
24
  * ```
28
25
  *
29
26
  * ## Child Component Behavior
30
27
  * - **Icon**: Only one allowed
31
- * - **Hero.Title**: Only one allowed
32
- * - **Hero.Subtitle**: Any number allowed as secondary content
28
+ * - **HeroTitle**: Only one allowed
29
+ * - **HeroSubtitle**: Any number allowed as secondary content
33
30
  *
34
31
  * ## Layout Modes
35
32
  * - **Stack** (default): Vertical layout with larger icon and stacked content
36
33
  * - **Grid** (compact=true): Horizontal layout with smaller icon beside content
37
34
  */
38
35
  declare function Hero({ ref, ...props }: HeroProps): react_jsx_runtime.JSX.Element;
39
- declare namespace Hero {
40
- var displayName: string;
41
- var Title: react.ForwardRefExoticComponent<react_aria_components.HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
42
- var Subtitle: react.ForwardRefExoticComponent<react_aria_components.TextProps & react.RefAttributes<HTMLElement>>;
43
- }
44
36
 
45
- export { Hero, HeroContext };
37
+ export { Hero };
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';import {Text,useContextProps,Provider,HeadingContext,TextContext,Header,Heading}from'react-aria-components';import {containsExactChildren}from'./../../lib/react.js';import {Icon,IconContext}from'../icon/index.js';import {HeroStyles}from'./styles.js';const {hero:b,icon:f,title:P,subtitle:S}=HeroStyles(),g=createContext(null);function e({ref:o,...a}){[a,o]=useContextProps(a,o??null,g);const{children:l,classNames:t,compact:i,...s}=a;return containsExactChildren({children:l,componentName:e.displayName,restrictions:[[Icon,{min:1,max:1}],[e.Title,{min:1,max:1}],[e.Subtitle,{min:0}]]}),jsx(Provider,{values:[[IconContext,{className:f({className:t?.icon}),size:"large"}],[HeadingContext,{className:P({className:t?.title}),level:2}],[TextContext,{className:S({className:t?.subtitle})}]],children:jsx(Header,{...s,ref:o,className:b({className:t?.hero}),"data-layout":i?"grid":"stack",children:l})})}e.displayName="Hero",e.Title=Heading,e.Title.displayName="Hero.Title",e.Subtitle=Text,e.Subtitle.displayName="Hero.Subtitle";export{e as Hero,g as HeroContext};//# sourceMappingURL=index.js.map
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {useContextProps,Provider,HeadingContext,TextContext,Header}from'react-aria-components';import {IconContext}from'../icon/context.js';import {HeroContext}from'./context.js';import {HeroStyles}from'./styles.js';const{hero:H,icon:x,title:f,subtitle:C}=HeroStyles();function b({ref:t,...o}){[o,t]=useContextProps(o,t??null,HeroContext);const{children:r,classNames:e,compact:a,...l}=o;return jsx(Provider,{values:[[IconContext,{className:x({className:e?.icon}),size:"large"}],[HeadingContext,{className:f({className:e?.title}),level:2}],[TextContext,{className:C({className:e?.subtitle})}]],children:jsx(Header,{...l,ref:t,className:H({className:e?.hero}),"data-layout":a?"grid":"stack",children:r})})}export{b as Hero};//# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/hero/index.tsx"],"names":["subtitle","HeroStyles","HeroContext","Hero","ref","props","H","children","compact","N","jsx","Provider","icon","C","classNames","HeadingContext","title","p","x","rest","r","hero","c","Text","d"],"mappings":"oVA8B2B,MAAA,CAAA,IAAA,CAAA,CAAA,CAAAA,IAAaC,CAAW,CAAA,CAEtCC,KACyC,CAAA,CAAA,CAAI,WAgC1CC,CAAAA,UAAK,KAAEC,aAAAA,CAAK,IAAS,EAAc,SAClBC,CAAAA,CAAOD,CAAAA,GAAO,CAAA,CAAA,CAAA,GAAiB,CAE9D,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA,CAAA,CAAAE,eAAA,CAAA,CAAA,CAAA,CAAA,EAAAC,IAAU,CAAA,CAAA,CAAA,CAAA,MAAY,QAAAC,CAAAA,CAAS,CAAA,oBAGrC,CAAA,CAAA,CAAA,GAAAD,CAAAA,CACA,CAAA,CAAA,CAAA,OAAAE,qBAAA,CAAA,CAAA,wBACA,CAAA,CAAA,CAAA,YACmB,oBACJ,CAAE,GAAA,CAAK,EAAG,GAAA,CAAK,CAAE,CAAC,CAAA,CAC/B,CAACN,CAAAA,CAAK,KAAA,CAAA,CAAA,GAAY,CAAA,CAAA,CAAA,GAAQ,CAC5B,CACF,CAAC,CAAA,CAGCO,CAAAA,CAACC,SACC,CAAQ,CACN,GAEE,CAAE,mBAAWC,CAAAA,CAAK,MAAE,CAAA,CAAA,CAAAC,WAAA,CAAWC,CAAAA,SAAqB,CAAA,CAAA,CAAA,CAAA,SACtD,CAAA,CACA,EACEC,IACE,CAAA,CAAA,CAAA,IAAA,CAAWC,OAAQ,CAAA,CAAA,CAAA,CAAAC,cAAA,CAAWH,CAAAA,SAAmB,CAAG,CAAA,CAAA,CAAA,UAItD,CAAE,EAAA,KAAA,CAAA,CAAA,CAAWd,KAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAkB,WAAA,CAAWJ,UAAY,CAAS,CAAC,CAAE,CAC7D,aAGFJ,QACMS,CACJ,CAAA,CAAA,CAAA,CAAKf,SACL,CAAAgB,GAAA,CAAWC,MAAAA,CAAK,CAAE,GAAA,CAAA,CAAA,GAAA,CAAA,CAAWP,CAAAA,SAC7B,CAAA,CAAA,CAAA,CAAA,SAAA,CAAaN,CAAAA,EAAU,IAAA,CAAA,CAAS,CAAA,aAE/B,CAAA,CAAA,CAAAD,MAKTJ,CAAAA,OAAK,CAAA,QAAc,CAAA,CAAA,CAAA,CACnBA,EAAK,CAAA,CAAA,CAAA,WACA,CAAA,MAAM,CAAA,CAAA,CAAA,KAAc,CAAAmB,OAAA,CAAA,CAAA,CAAA,KAAA,CAAA,WACpB,CAAWC,YACX,CAAS,CAAA,CAAA,QAAA,CAAAC,IAAc,CAAA,CAAA,CAAA,QAAA,CAAA,WAAA,CAAA,eAAA","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 { createContext } from 'react';\nimport {\n type ContextValue,\n Header,\n Heading,\n HeadingContext,\n Provider,\n Text,\n TextContext,\n useContextProps,\n} from 'react-aria-components';\nimport { containsExactChildren } from '@/lib/react';\nimport { Icon, IconContext } from '../icon';\nimport { HeroStyles } from './styles';\nimport type { HeroProps } from './types';\n\nconst { hero, icon, title, subtitle } = HeroStyles();\n\nexport const HeroContext =\n createContext<ContextValue<HeroProps, HTMLElement>>(null);\n\n/**\n * A versatile hero component that displays an icon alongside primary and secondary content.\n * Automatically organizes child components by type and supports both stacked and grid layouts.\n *\n * @example\n * ```tsx\n * // Basic hero with icon and content\n * <Hero>\n * <Icon><Placeholder /></Icon>\n * <Hero.Title>Primary Title</Hero.Title>\n * <Hero.Subtitle>Secondary information</Hero.Subtitle>\n * </Hero>\n *\n * // Grid layout for compact display\n * <Hero compact>\n * <Icon><Settings /></Icon>\n * <Hero.Title>Settings</Hero.Title>\n * <Hero.Subtitle>Configure your preferences</Hero.Subtitle>\n * </Hero>\n * ```\n *\n * ## Child Component Behavior\n * - **Icon**: Only one allowed\n * - **Hero.Title**: Only one allowed\n * - **Hero.Subtitle**: Any number allowed as secondary content\n *\n * ## Layout Modes\n * - **Stack** (default): Vertical layout with larger icon and stacked content\n * - **Grid** (compact=true): Horizontal layout with smaller icon beside content\n */\nexport function Hero({ ref, ...props }: HeroProps) {\n [props, ref] = useContextProps(props, ref ?? null, HeroContext);\n\n const { children, classNames, compact, ...rest } = props;\n\n containsExactChildren({\n children,\n componentName: Hero.displayName,\n restrictions: [\n [Icon, { min: 1, max: 1 }],\n [Hero.Title, { min: 1, max: 1 }],\n [Hero.Subtitle, { min: 0 }],\n ],\n });\n\n return (\n <Provider\n values={[\n [\n IconContext,\n { className: icon({ className: classNames?.icon }), size: 'large' },\n ],\n [\n HeadingContext,\n { className: title({ className: classNames?.title }), level: 2 },\n ],\n [\n TextContext,\n { className: subtitle({ className: classNames?.subtitle }) },\n ],\n ]}\n >\n <Header\n {...rest}\n ref={ref}\n className={hero({ className: classNames?.hero })}\n data-layout={compact ? 'grid' : 'stack'}\n >\n {children}\n </Header>\n </Provider>\n );\n}\nHero.displayName = 'Hero';\nHero.Title = Heading;\nHero.Title.displayName = 'Hero.Title';\nHero.Subtitle = Text;\nHero.Subtitle.displayName = 'Hero.Subtitle';\n"]}
1
+ {"version":3,"sources":["../../../src/components/hero/index.tsx"],"names":["hero","icon","subtitle","HeroStyles","Hero","props","ref","HeroContext","d","classNames","compact","jsx","Provider","s","IconContext","N","HeadingContext","title","TextContext","n","Header"],"mappings":"gRA0BQA,MAAMC,IAAM,CAAA,CAAA,CAAA,IAAO,CAAA,CAAA,CAAA,KAAAC,CAAS,CAAA,CAAIC,sBAgCxBC,EAAK,CAAE,SAAQC,CAAM,CAAA,CAAc,GAChDA,CAAOC,CAAG,CAAA,GAAoBD,CAAAA,CAAOC,CAAAA,CAAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAMC,eAAW,EAE9D,CAAA,CAAA,EAAA,IAAQ,CAAAC,WAAA,CAAA,CAAA,KAAU,WAAAC,CAAAA,UAAYC,CAAS,CAAA,CAAA,OAEvC,CAAA,CAAA,CAAA,GACEC,CAAAA,CAACC,CAAAA,CAAA,CACC,OAAQC,GACN,CACEC,QAAAA,CACA,CAAE,MAAA,CAAA,CAAA,CAAAC,WAAWd,CAAAA,CAAK,SAAE,CAAA,CAAWQ,CAAAA,CAAAA,SAAqB,CAAA,CAAA,EAAM,IAAA,CAAA,CAAA,CAAQ,IAGlEO,CAAAA,yBACaC,CAAAA,CAAM,SAAE,CAAA,CAAWR,CAAAA,CAAAA,SAAsB,CAAA,CAAA,EAAA,KACxD,CACA,CACES,CAAAA,KACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAC,WAAWjB,CAAAA,CAAS,SAAE,CAAA,CAAWO,WAAqB,CAAC,CAAE,EAE/D,QAEA,CAAA,CAAA,CAAAE,CAAAA,CAACS,CAAAA,QAEC,CAAAP,GAAA,CAAKP,MAAAA,CACL,CAAA,GAAA,CAAA,CAAA,GAAA,CAAWN,CAAAA,CAAK,SAAE,CAAA,CAAWS,WAC7B,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,CAAA,aAAgC,CAAA,CAAA,CAAA,MAE/B,CAAA,OACH,SAGN,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 {\n Header,\n HeadingContext,\n Provider,\n TextContext,\n useContextProps,\n} from 'react-aria-components';\nimport { IconContext } from '../icon/context';\nimport { HeroContext } from './context';\nimport { HeroStyles } from './styles';\nimport type { HeroProps } from './types';\n\nconst { hero, icon, title, subtitle } = HeroStyles();\n\n/**\n * A versatile hero component that displays an icon alongside primary and secondary content.\n * Automatically organizes child components by type and supports both stacked and grid layouts.\n *\n * @example\n * ```tsx\n * // Basic hero with icon and content\n * <Hero>\n * <Icon><Placeholder /></Icon>\n * <HeroTitle>Primary Title</HeroTitle>\n * <HeroSubtitle>Secondary information</HeroSubtitle>\n * </Hero>\n *\n * // Grid layout for compact display\n * <Hero compact>\n * <Icon><Settings /></Icon>\n * <HeroTitle>Settings</HeroTitle>\n * <HeroSubtitle>Configure your preferences</HeroSubtitle>\n * </Hero>\n * ```\n *\n * ## Child Component Behavior\n * - **Icon**: Only one allowed\n * - **HeroTitle**: Only one allowed\n * - **HeroSubtitle**: Any number allowed as secondary content\n *\n * ## Layout Modes\n * - **Stack** (default): Vertical layout with larger icon and stacked content\n * - **Grid** (compact=true): Horizontal layout with smaller icon beside content\n */\nexport function Hero({ ref, ...props }: HeroProps) {\n [props, ref] = useContextProps(props, ref ?? null, HeroContext);\n\n const { children, classNames, compact, ...rest } = props;\n\n return (\n <Provider\n values={[\n [\n IconContext,\n { className: icon({ className: classNames?.icon }), size: 'large' },\n ],\n [\n HeadingContext,\n { className: title({ className: classNames?.title }), level: 2 },\n ],\n [\n TextContext,\n { className: subtitle({ className: classNames?.subtitle }) },\n ],\n ]}\n >\n <Header\n {...rest}\n ref={ref}\n className={hero({ className: classNames?.hero })}\n data-layout={compact ? 'grid' : 'stack'}\n >\n {children}\n </Header>\n </Provider>\n );\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import * as react_aria_components from 'react-aria-components';
3
+
4
+ declare const HeroSubtitle: react.ForwardRefExoticComponent<react_aria_components.TextProps & react.RefAttributes<HTMLElement>>;
5
+
6
+ export { HeroSubtitle };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import'client-only';import {Text}from'react-aria-components';const r=Text;export{r as HeroSubtitle};//# sourceMappingURL=subtitle.js.map
4
+ //# sourceMappingURL=subtitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/hero/subtitle.tsx"],"names":["HeroSubtitle","Text"],"mappings":"mEAgBaA,CAAAA,CAAeC","file":"subtitle.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 { Text } from 'react-aria-components';\n\nexport const HeroSubtitle = Text;\n"]}
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import * as react_aria_components from 'react-aria-components';
3
+
4
+ declare const HeroTitle: react.ForwardRefExoticComponent<react_aria_components.HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
5
+
6
+ export { HeroTitle };
@@ -0,0 +1,2 @@
1
+ import'client-only';import {Heading}from'react-aria-components';const i=Heading;export{i as HeroTitle};//# sourceMappingURL=title.js.map
2
+ //# sourceMappingURL=title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/hero/title.tsx"],"names":["HeroTitle","Heading"],"mappings":"sEAgBaA,CAAAA,CAAYC","file":"title.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 { Heading } from 'react-aria-components';\n\nexport const HeroTitle = Heading;\n"]}
@@ -0,0 +1,12 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { ProviderProps } from '../../lib/types.js';
4
+ import { ContextValue } from 'react-aria-components';
5
+ import { HotkeyProps } from './types.js';
6
+ import 'tailwind-variants';
7
+ import './styles.js';
8
+
9
+ declare const HotkeyContext: react.Context<ContextValue<HotkeyProps, HTMLElement>>;
10
+ declare function HotkeyProvider({ children, ...props }: ProviderProps<HotkeyProps>): react_jsx_runtime.JSX.Element;
11
+
12
+ export { HotkeyContext, HotkeyProvider };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';const r=createContext(null);function y({children:o,...t}){return jsx(r.Provider,{value:t,children:o})}export{r as HotkeyContext,y as HotkeyProvider};//# sourceMappingURL=context.js.map
4
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/hotkey/context.tsx"],"names":["HotkeyContext","createContext","HotkeyProvider","children","props","jsx"],"mappings":"0FAoBO,MAAMA,CAAAA,CACXC,aAAAA,CAAsD,IAAI,EAErD,SAASC,CAAAA,CAAe,CAC7B,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA+B,CAC7B,OACEC,GAAAA,CAACL,CAAAA,CAAc,QAAA,CAAd,CAAuB,KAAA,CAAOI,CAAAA,CAAQ,QAAA,CAAAD,EAAS,CAEpD","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\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { HotkeyProps } from './types';\n\nexport const HotkeyContext =\n createContext<ContextValue<HotkeyProps, HTMLElement>>(null);\n\nexport function HotkeyProvider({\n children,\n ...props\n}: ProviderProps<HotkeyProps>) {\n return (\n <HotkeyContext.Provider value={props}>{children}</HotkeyContext.Provider>\n );\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { HotkeySetProps } from './types.js';
3
+ import 'react';
4
+ import 'tailwind-variants';
5
+ import './styles.js';
6
+
7
+ declare function HotkeySet({ children, ...props }: HotkeySetProps): react_jsx_runtime.JSX.Element;
8
+
9
+ export { HotkeySet };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import'client-only';import {IconProvider}from'../icon/context.js';import {HotkeyStyles}from'./styles.js';const{set:p}=HotkeyStyles();function y({children:e,...t}){const{className:r}=t;return jsx("div",{className:p({className:r}),children:jsx(IconProvider,{size:"large",children:e})})}export{y as HotkeySet};//# sourceMappingURL=hotkey-set.js.map
2
+ //# sourceMappingURL=hotkey-set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/hotkey/hotkey-set.tsx"],"names":["HotkeyStyles","jsx","o","s"],"mappings":"6IAmBQ,KAAQA,CAAAA,GAET,4BAAqB,CAAA,CAAA,CAAA,SAAsC,CAChE,CAAA,GAAA,CAAM,CAAE,CAAA,CAAA,KAAA,CAAA,SAER,CAAA,CAAA,CAAA,CAAA,CACEC,CAAAA,OAACC,GAAI,CAAA,KAAA,CAAA,CAAA,sBACH,CAAA,CAAA,CAAA,CAAA,CAAA,QAAc,CAAAA,GAAA,CAAKC,YAAA,CAAA,CAAA,IAAA,CAAS,OAAA,CAAA,QAGlC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"hotkey-set.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\n'use client';\n\nimport 'client-only';\nimport { IconProvider } from '../icon/context';\nimport { HotkeyStyles } from './styles';\nimport type { HotkeySetProps } from './types';\n\nconst { set } = HotkeyStyles();\n\nexport function HotkeySet({ children, ...props }: HotkeySetProps) {\n const { className } = props;\n\n return (\n <div className={set({ className })}>\n <IconProvider size='large'>{children}</IconProvider>\n </div>\n );\n}\n"]}