@accelint/design-toolkit 6.0.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 (569) hide show
  1. package/README.md +2 -0
  2. package/catalog-info.yaml +18 -18
  3. package/dist/components/accordion/context.d.ts +10 -0
  4. package/dist/components/accordion/context.js +4 -0
  5. package/dist/components/accordion/context.js.map +1 -0
  6. package/dist/components/accordion/group.d.ts +11 -0
  7. package/dist/components/accordion/group.js +4 -0
  8. package/dist/components/accordion/group.js.map +1 -0
  9. package/dist/components/accordion/header.d.ts +11 -0
  10. package/dist/components/accordion/header.js +4 -0
  11. package/dist/components/accordion/header.js.map +1 -0
  12. package/dist/components/accordion/index.d.ts +22 -46
  13. package/dist/components/accordion/index.js +1 -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/trigger.d.ts +11 -0
  19. package/dist/components/accordion/trigger.js +4 -0
  20. package/dist/components/accordion/trigger.js.map +1 -0
  21. package/dist/components/accordion/types.d.ts +1 -1
  22. package/dist/components/action-bar/index.d.ts +0 -3
  23. package/dist/components/action-bar/index.js +1 -1
  24. package/dist/components/action-bar/index.js.map +1 -1
  25. package/dist/components/avatar/context.d.ts +14 -0
  26. package/dist/components/avatar/context.js +4 -0
  27. package/dist/components/avatar/context.js.map +1 -0
  28. package/dist/components/avatar/index.d.ts +2 -13
  29. package/dist/components/avatar/index.js +1 -1
  30. package/dist/components/avatar/index.js.map +1 -1
  31. package/dist/components/badge/context.d.ts +13 -0
  32. package/dist/components/badge/context.js +4 -0
  33. package/dist/components/badge/context.js.map +1 -0
  34. package/dist/components/badge/index.d.ts +2 -13
  35. package/dist/components/badge/index.js +1 -3
  36. package/dist/components/badge/index.js.map +1 -1
  37. package/dist/components/breadcrumbs/index.d.ts +2 -11
  38. package/dist/components/breadcrumbs/index.js +1 -1
  39. package/dist/components/breadcrumbs/index.js.map +1 -1
  40. package/dist/components/breadcrumbs/item.d.ts +7 -0
  41. package/dist/components/breadcrumbs/item.js +4 -0
  42. package/dist/components/breadcrumbs/item.js.map +1 -0
  43. package/dist/components/button/context.d.ts +17 -0
  44. package/dist/components/button/context.js +4 -0
  45. package/dist/components/button/context.js.map +1 -0
  46. package/dist/components/button/index.d.ts +5 -104
  47. package/dist/components/button/index.js +1 -3
  48. package/dist/components/button/index.js.map +1 -1
  49. package/dist/components/button/link.d.ts +46 -0
  50. package/dist/components/button/link.js +4 -0
  51. package/dist/components/button/link.js.map +1 -0
  52. package/dist/components/button/toggle.d.ts +48 -0
  53. package/dist/components/button/toggle.js +4 -0
  54. package/dist/components/button/toggle.js.map +1 -0
  55. package/dist/components/checkbox/context.d.ts +10 -0
  56. package/dist/components/checkbox/context.js +4 -0
  57. package/dist/components/checkbox/context.js.map +1 -0
  58. package/dist/components/checkbox/group.d.ts +10 -0
  59. package/dist/components/checkbox/group.js +4 -0
  60. package/dist/components/checkbox/group.js.map +1 -0
  61. package/dist/components/checkbox/index.d.ts +6 -16
  62. package/dist/components/checkbox/index.js +1 -1
  63. package/dist/components/checkbox/index.js.map +1 -1
  64. package/dist/components/checkbox/styles.js +1 -1
  65. package/dist/components/checkbox/styles.js.map +1 -1
  66. package/dist/components/chip/context.d.ts +13 -0
  67. package/dist/components/chip/context.js +4 -0
  68. package/dist/components/chip/context.js.map +1 -0
  69. package/dist/components/chip/deletable.d.ts +11 -0
  70. package/dist/components/chip/deletable.js +4 -0
  71. package/dist/components/chip/deletable.js.map +1 -0
  72. package/dist/components/chip/index.d.ts +14 -39
  73. package/dist/components/chip/index.js +1 -3
  74. package/dist/components/chip/index.js.map +1 -1
  75. package/dist/components/chip/list.d.ts +12 -0
  76. package/dist/components/chip/list.js +4 -0
  77. package/dist/components/chip/list.js.map +1 -0
  78. package/dist/components/chip/selectable.d.ts +11 -0
  79. package/dist/components/chip/selectable.js +2 -0
  80. package/dist/components/chip/selectable.js.map +1 -0
  81. package/dist/components/chip/styles.js +1 -1
  82. package/dist/components/chip/styles.js.map +1 -1
  83. package/dist/components/chip/types.d.ts +2 -2
  84. package/dist/components/classification-badge/context.d.ts +12 -0
  85. package/dist/components/classification-badge/context.js +4 -0
  86. package/dist/components/classification-badge/context.js.map +1 -0
  87. package/dist/components/classification-badge/index.d.ts +2 -13
  88. package/dist/components/classification-badge/index.js +1 -3
  89. package/dist/components/classification-badge/index.js.map +1 -1
  90. package/dist/components/classification-banner/context.d.ts +12 -0
  91. package/dist/components/classification-banner/context.js +4 -0
  92. package/dist/components/classification-banner/context.js.map +1 -0
  93. package/dist/components/classification-banner/index.d.ts +2 -13
  94. package/dist/components/classification-banner/index.js +1 -3
  95. package/dist/components/classification-banner/index.js.map +1 -1
  96. package/dist/components/clock/index.d.ts +0 -3
  97. package/dist/components/clock/index.js +1 -1
  98. package/dist/components/clock/index.js.map +1 -1
  99. package/dist/components/color-picker/index.d.ts +0 -3
  100. package/dist/components/color-picker/index.js +1 -1
  101. package/dist/components/color-picker/index.js.map +1 -1
  102. package/dist/components/color-picker/styles.js +1 -1
  103. package/dist/components/color-picker/styles.js.map +1 -1
  104. package/dist/components/combobox-field/context.d.ts +16 -0
  105. package/dist/components/combobox-field/context.js +4 -0
  106. package/dist/components/combobox-field/context.js.map +1 -0
  107. package/dist/components/combobox-field/index.d.ts +4 -8
  108. package/dist/components/combobox-field/index.js +1 -1
  109. package/dist/components/combobox-field/index.js.map +1 -1
  110. package/dist/components/combobox-field/styles.d.ts +3 -3
  111. package/dist/components/date-field/index.js +1 -1
  112. package/dist/components/date-field/index.js.map +1 -1
  113. package/dist/components/details-list/context.d.ts +12 -0
  114. package/dist/components/details-list/context.js +4 -0
  115. package/dist/components/details-list/context.js.map +1 -0
  116. package/dist/components/details-list/index.d.ts +15 -35
  117. package/dist/components/details-list/index.js +1 -3
  118. package/dist/components/details-list/index.js.map +1 -1
  119. package/dist/components/details-list/label.d.ts +10 -0
  120. package/dist/components/details-list/label.js +4 -0
  121. package/dist/components/details-list/label.js.map +1 -0
  122. package/dist/components/details-list/value.d.ts +10 -0
  123. package/dist/components/details-list/value.js +4 -0
  124. package/dist/components/details-list/value.js.map +1 -0
  125. package/dist/components/dialog/content.d.ts +6 -0
  126. package/dist/components/dialog/content.js +2 -0
  127. package/dist/components/dialog/content.js.map +1 -0
  128. package/dist/components/dialog/context.d.ts +7 -0
  129. package/dist/components/dialog/context.js +4 -0
  130. package/dist/components/dialog/context.js.map +1 -0
  131. package/dist/components/dialog/footer.d.ts +6 -0
  132. package/dist/components/dialog/footer.js +4 -0
  133. package/dist/components/dialog/footer.js.map +1 -0
  134. package/dist/components/dialog/index.d.ts +9 -30
  135. package/dist/components/dialog/index.js +1 -1
  136. package/dist/components/dialog/index.js.map +1 -1
  137. package/dist/components/dialog/styles.d.ts +3 -3
  138. package/dist/components/dialog/title.d.ts +6 -0
  139. package/dist/components/dialog/title.js +4 -0
  140. package/dist/components/dialog/title.js.map +1 -0
  141. package/dist/components/dialog/trigger.d.ts +1 -0
  142. package/dist/components/dialog/trigger.js +2 -0
  143. package/dist/components/dialog/trigger.js.map +1 -0
  144. package/dist/components/dialog/types.d.ts +3 -2
  145. package/dist/components/divider/context.d.ts +10 -0
  146. package/dist/components/divider/context.js +4 -0
  147. package/dist/components/divider/context.js.map +1 -0
  148. package/dist/components/divider/index.d.ts +2 -13
  149. package/dist/components/divider/index.js +1 -3
  150. package/dist/components/divider/index.js.map +1 -1
  151. package/dist/components/drawer/back.d.ts +5 -0
  152. package/dist/components/drawer/back.js +4 -0
  153. package/dist/components/drawer/back.js.map +1 -0
  154. package/dist/components/drawer/close.d.ts +5 -0
  155. package/dist/components/drawer/close.js +2 -0
  156. package/dist/components/drawer/close.js.map +1 -0
  157. package/dist/components/drawer/content.d.ts +6 -0
  158. package/dist/components/drawer/content.js +4 -0
  159. package/dist/components/drawer/content.js.map +1 -0
  160. package/dist/components/drawer/context.d.ts +38 -0
  161. package/dist/components/drawer/context.js +4 -0
  162. package/dist/components/drawer/context.js.map +1 -0
  163. package/dist/components/drawer/footer.d.ts +6 -0
  164. package/dist/components/drawer/footer.js +4 -0
  165. package/dist/components/drawer/footer.js.map +1 -0
  166. package/dist/components/drawer/header-title.d.ts +25 -0
  167. package/dist/components/drawer/header-title.js +2 -0
  168. package/dist/components/drawer/header-title.js.map +1 -0
  169. package/dist/components/drawer/header.d.ts +6 -0
  170. package/dist/components/drawer/header.js +4 -0
  171. package/dist/components/drawer/header.js.map +1 -0
  172. package/dist/components/drawer/index.d.ts +19 -112
  173. package/dist/components/drawer/index.js +1 -1
  174. package/dist/components/drawer/index.js.map +1 -1
  175. package/dist/components/drawer/layout-main.d.ts +6 -0
  176. package/dist/components/drawer/layout-main.js +2 -0
  177. package/dist/components/drawer/layout-main.js.map +1 -0
  178. package/dist/components/drawer/layout.d.ts +20 -0
  179. package/dist/components/drawer/layout.js +4 -0
  180. package/dist/components/drawer/layout.js.map +1 -0
  181. package/dist/components/drawer/menu-item.d.ts +20 -0
  182. package/dist/components/drawer/menu-item.js +2 -0
  183. package/dist/components/drawer/menu-item.js.map +1 -0
  184. package/dist/components/drawer/menu.d.ts +20 -0
  185. package/dist/components/drawer/menu.js +4 -0
  186. package/dist/components/drawer/menu.js.map +1 -0
  187. package/dist/components/drawer/panel.d.ts +6 -0
  188. package/dist/components/drawer/panel.js +2 -0
  189. package/dist/components/drawer/panel.js.map +1 -0
  190. package/dist/components/drawer/styles.d.ts +9 -9
  191. package/dist/components/drawer/trigger.d.ts +20 -0
  192. package/dist/components/drawer/trigger.js +4 -0
  193. package/dist/components/drawer/trigger.js.map +1 -0
  194. package/dist/components/drawer/types.d.ts +3 -3
  195. package/dist/components/drawer/view.d.ts +11 -0
  196. package/dist/components/drawer/view.js +4 -0
  197. package/dist/components/drawer/view.js.map +1 -0
  198. package/dist/components/hero/context.d.ts +7 -0
  199. package/dist/components/hero/context.js +2 -0
  200. package/dist/components/hero/context.js.map +1 -0
  201. package/dist/components/hero/index.d.ts +8 -16
  202. package/dist/components/hero/index.js +1 -1
  203. package/dist/components/hero/index.js.map +1 -1
  204. package/dist/components/hero/subtitle.d.ts +6 -0
  205. package/dist/components/hero/subtitle.js +4 -0
  206. package/dist/components/hero/subtitle.js.map +1 -0
  207. package/dist/components/hero/title.d.ts +6 -0
  208. package/dist/components/hero/title.js +2 -0
  209. package/dist/components/hero/title.js.map +1 -0
  210. package/dist/components/hotkey/context.d.ts +12 -0
  211. package/dist/components/hotkey/context.js +4 -0
  212. package/dist/components/hotkey/context.js.map +1 -0
  213. package/dist/components/hotkey/hotkey-set.d.ts +9 -0
  214. package/dist/components/hotkey/hotkey-set.js +2 -0
  215. package/dist/components/hotkey/hotkey-set.js.map +1 -0
  216. package/dist/components/hotkey/index.d.ts +7 -23
  217. package/dist/components/hotkey/index.js +1 -1
  218. package/dist/components/hotkey/index.js.map +1 -1
  219. package/dist/components/icon/context.d.ts +10 -0
  220. package/dist/components/icon/context.js +4 -0
  221. package/dist/components/icon/context.js.map +1 -0
  222. package/dist/components/icon/index.d.ts +2 -13
  223. package/dist/components/icon/index.js +1 -3
  224. package/dist/components/icon/index.js.map +1 -1
  225. package/dist/components/input/context.d.ts +13 -0
  226. package/dist/components/input/context.js +4 -0
  227. package/dist/components/input/context.js.map +1 -0
  228. package/dist/components/input/index.d.ts +3 -7
  229. package/dist/components/input/index.js +1 -1
  230. package/dist/components/input/index.js.map +1 -1
  231. package/dist/components/label/context.d.ts +10 -0
  232. package/dist/components/label/context.js +4 -0
  233. package/dist/components/label/context.js.map +1 -0
  234. package/dist/components/label/index.d.ts +3 -13
  235. package/dist/components/label/index.js +1 -3
  236. package/dist/components/label/index.js.map +1 -1
  237. package/dist/components/link/context.d.ts +9 -0
  238. package/dist/components/link/context.js +4 -0
  239. package/dist/components/link/context.js.map +1 -0
  240. package/dist/components/link/index.d.ts +0 -9
  241. package/dist/components/link/index.js +1 -3
  242. package/dist/components/link/index.js.map +1 -1
  243. package/dist/components/menu/context.d.ts +10 -0
  244. package/dist/components/menu/context.js +4 -0
  245. package/dist/components/menu/context.js.map +1 -0
  246. package/dist/components/menu/index.d.ts +31 -63
  247. package/dist/components/menu/index.js +1 -1
  248. package/dist/components/menu/index.js.map +1 -1
  249. package/dist/components/menu/item-description.d.ts +6 -0
  250. package/dist/components/menu/item-description.js +2 -0
  251. package/dist/components/menu/item-description.js.map +1 -0
  252. package/dist/components/menu/item-label.d.ts +6 -0
  253. package/dist/components/menu/item-label.js +4 -0
  254. package/dist/components/menu/item-label.js.map +1 -0
  255. package/dist/components/menu/item.d.ts +11 -0
  256. package/dist/components/menu/item.js +4 -0
  257. package/dist/components/menu/item.js.map +1 -0
  258. package/dist/components/menu/section.d.ts +11 -0
  259. package/dist/components/menu/section.js +2 -0
  260. package/dist/components/menu/section.js.map +1 -0
  261. package/dist/components/menu/separator.d.ts +6 -0
  262. package/dist/components/menu/separator.js +4 -0
  263. package/dist/components/menu/separator.js.map +1 -0
  264. package/dist/components/menu/styles.js +1 -1
  265. package/dist/components/menu/styles.js.map +1 -1
  266. package/dist/components/menu/submenu.d.ts +6 -0
  267. package/dist/components/menu/submenu.js +4 -0
  268. package/dist/components/menu/submenu.js.map +1 -0
  269. package/dist/components/menu/trigger.d.ts +1 -0
  270. package/dist/components/menu/trigger.js +2 -0
  271. package/dist/components/menu/trigger.js.map +1 -0
  272. package/dist/components/menu/types.d.ts +1 -1
  273. package/dist/components/notice/index.d.ts +1 -5
  274. package/dist/components/notice/index.js +1 -1
  275. package/dist/components/notice/index.js.map +1 -1
  276. package/dist/components/notice/list.d.ts +16 -0
  277. package/dist/components/notice/list.js +4 -0
  278. package/dist/components/notice/list.js.map +1 -0
  279. package/dist/components/notice/notice-icon.d.ts +16 -0
  280. package/dist/components/notice/notice-icon.js +2 -0
  281. package/dist/components/notice/notice-icon.js.map +1 -0
  282. package/dist/components/notice/styles.d.ts +3 -3
  283. package/dist/components/notice/utils.d.ts +3 -0
  284. package/dist/components/notice/utils.js +4 -0
  285. package/dist/components/notice/utils.js.map +1 -0
  286. package/dist/components/options/context.d.ts +8 -0
  287. package/dist/components/options/context.js +2 -0
  288. package/dist/components/options/context.js.map +1 -0
  289. package/dist/components/options/index.d.ts +22 -51
  290. package/dist/components/options/index.js +1 -1
  291. package/dist/components/options/index.js.map +1 -1
  292. package/dist/components/options/item-content.d.ts +9 -0
  293. package/dist/components/options/item-content.js +2 -0
  294. package/dist/components/options/item-content.js.map +1 -0
  295. package/dist/components/options/item-description.d.ts +9 -0
  296. package/dist/components/options/item-description.js +4 -0
  297. package/dist/components/options/item-description.js.map +1 -0
  298. package/dist/components/options/item-label.d.ts +9 -0
  299. package/dist/components/options/item-label.js +2 -0
  300. package/dist/components/options/item-label.js.map +1 -0
  301. package/dist/components/options/item.d.ts +9 -0
  302. package/dist/components/options/item.js +4 -0
  303. package/dist/components/options/item.js.map +1 -0
  304. package/dist/components/options/section.d.ts +9 -0
  305. package/dist/components/options/section.js +2 -0
  306. package/dist/components/options/section.js.map +1 -0
  307. package/dist/components/options/styles.d.ts +3 -3
  308. package/dist/components/options/styles.js +1 -1
  309. package/dist/components/options/styles.js.map +1 -1
  310. package/dist/components/options/types.d.ts +2 -2
  311. package/dist/components/popover/body.d.ts +8 -0
  312. package/dist/components/popover/body.js +4 -0
  313. package/dist/components/popover/body.js.map +1 -0
  314. package/dist/components/popover/content.d.ts +8 -0
  315. package/dist/components/popover/content.js +2 -0
  316. package/dist/components/popover/content.js.map +1 -0
  317. package/dist/components/popover/footer.d.ts +9 -0
  318. package/dist/components/popover/footer.js +4 -0
  319. package/dist/components/popover/footer.js.map +1 -0
  320. package/dist/components/popover/index.d.ts +16 -39
  321. package/dist/components/popover/index.js +1 -3
  322. package/dist/components/popover/index.js.map +1 -1
  323. package/dist/components/popover/title.d.ts +8 -0
  324. package/dist/components/popover/title.js +4 -0
  325. package/dist/components/popover/title.js.map +1 -0
  326. package/dist/components/popover/trigger.d.ts +8 -0
  327. package/dist/components/popover/trigger.js +2 -0
  328. package/dist/components/popover/trigger.js.map +1 -0
  329. package/dist/components/popover/types.d.ts +1 -1
  330. package/dist/components/query-builder/action-element.js +1 -1
  331. package/dist/components/query-builder/action-element.js.map +1 -1
  332. package/dist/components/query-builder/actions.d.ts +8 -0
  333. package/dist/components/query-builder/actions.js +2 -0
  334. package/dist/components/query-builder/actions.js.map +1 -0
  335. package/dist/components/query-builder/combinator-selector.d.ts +6 -0
  336. package/dist/components/query-builder/combinator-selector.js +4 -0
  337. package/dist/components/query-builder/combinator-selector.js.map +1 -0
  338. package/dist/components/query-builder/index.d.ts +1 -21
  339. package/dist/components/query-builder/index.js +3 -1
  340. package/dist/components/query-builder/index.js.map +1 -1
  341. package/dist/components/query-builder/{group.js → rule-group.js} +2 -2
  342. package/dist/components/query-builder/rule-group.js.map +1 -0
  343. package/dist/components/query-builder/rule.js +1 -3
  344. package/dist/components/query-builder/rule.js.map +1 -1
  345. package/dist/components/query-builder/styles.d.ts +152 -0
  346. package/dist/components/query-builder/styles.js +2 -0
  347. package/dist/components/query-builder/styles.js.map +1 -0
  348. package/dist/components/query-builder/utils.d.ts +1 -10
  349. package/dist/components/query-builder/utils.js +1 -1
  350. package/dist/components/query-builder/utils.js.map +1 -1
  351. package/dist/components/query-builder/value-editor.js +1 -1
  352. package/dist/components/query-builder/value-editor.js.map +1 -1
  353. package/dist/components/query-builder/value-selector.js +1 -1
  354. package/dist/components/query-builder/value-selector.js.map +1 -1
  355. package/dist/components/radio/context.d.ts +13 -0
  356. package/dist/components/radio/context.js +4 -0
  357. package/dist/components/radio/context.js.map +1 -0
  358. package/dist/components/radio/group.d.ts +15 -0
  359. package/dist/components/radio/group.js +4 -0
  360. package/dist/components/radio/group.js.map +1 -0
  361. package/dist/components/radio/index.d.ts +10 -19
  362. package/dist/components/radio/index.js +1 -3
  363. package/dist/components/radio/index.js.map +1 -1
  364. package/dist/components/radio/styles.js +1 -1
  365. package/dist/components/radio/styles.js.map +1 -1
  366. package/dist/components/radio/types.d.ts +1 -1
  367. package/dist/components/search-field/context.d.ts +26 -0
  368. package/dist/components/search-field/context.js +4 -0
  369. package/dist/components/search-field/context.js.map +1 -0
  370. package/dist/components/search-field/index.d.ts +4 -20
  371. package/dist/components/search-field/index.js +1 -1
  372. package/dist/components/search-field/index.js.map +1 -1
  373. package/dist/components/select-field/context.d.ts +15 -0
  374. package/dist/components/select-field/context.js +4 -0
  375. package/dist/components/select-field/context.js.map +1 -0
  376. package/dist/components/select-field/index.d.ts +12 -21
  377. package/dist/components/select-field/index.js +1 -1
  378. package/dist/components/select-field/index.js.map +1 -1
  379. package/dist/components/select-field/styles.d.ts +9 -3
  380. package/dist/components/select-field/styles.js +1 -1
  381. package/dist/components/select-field/styles.js.map +1 -1
  382. package/dist/components/select-field/types.d.ts +2 -2
  383. package/dist/components/sidenav/avatar.d.ts +16 -0
  384. package/dist/components/sidenav/avatar.js +4 -0
  385. package/dist/components/sidenav/avatar.js.map +1 -0
  386. package/dist/components/sidenav/content.d.ts +16 -0
  387. package/dist/components/sidenav/content.js +2 -0
  388. package/dist/components/sidenav/content.js.map +1 -0
  389. package/dist/components/sidenav/context.d.ts +10 -0
  390. package/dist/components/sidenav/context.js +4 -0
  391. package/dist/components/sidenav/context.js.map +1 -0
  392. package/dist/components/sidenav/footer.d.ts +16 -0
  393. package/dist/components/sidenav/footer.js +4 -0
  394. package/dist/components/sidenav/footer.js.map +1 -0
  395. package/dist/components/sidenav/header.d.ts +16 -0
  396. package/dist/components/sidenav/header.js +4 -0
  397. package/dist/components/sidenav/header.js.map +1 -0
  398. package/dist/components/sidenav/index.d.ts +28 -76
  399. package/dist/components/sidenav/index.js +1 -3
  400. package/dist/components/sidenav/index.js.map +1 -1
  401. package/dist/components/sidenav/item.d.ts +16 -0
  402. package/dist/components/sidenav/item.js +4 -0
  403. package/dist/components/sidenav/item.js.map +1 -0
  404. package/dist/components/sidenav/link.d.ts +16 -0
  405. package/dist/components/sidenav/link.js +4 -0
  406. package/dist/components/sidenav/link.js.map +1 -0
  407. package/dist/components/sidenav/menu-item.d.ts +16 -0
  408. package/dist/components/sidenav/menu-item.js +2 -0
  409. package/dist/components/sidenav/menu-item.js.map +1 -0
  410. package/dist/components/sidenav/menu.d.ts +16 -0
  411. package/dist/components/sidenav/menu.js +4 -0
  412. package/dist/components/sidenav/menu.js.map +1 -0
  413. package/dist/components/sidenav/styles.d.ts +9 -9
  414. package/dist/components/sidenav/trigger.d.ts +16 -0
  415. package/dist/components/sidenav/trigger.js +4 -0
  416. package/dist/components/sidenav/trigger.js.map +1 -0
  417. package/dist/components/sidenav/types.d.ts +1 -1
  418. package/dist/components/skeleton/index.d.ts +0 -3
  419. package/dist/components/skeleton/index.js +1 -1
  420. package/dist/components/skeleton/index.js.map +1 -1
  421. package/dist/components/slider/index.d.ts +1 -1
  422. package/dist/components/slider/index.js +1 -1
  423. package/dist/components/slider/index.js.map +1 -1
  424. package/dist/components/slider/styles.d.ts +3 -3
  425. package/dist/components/slider/styles.js +1 -1
  426. package/dist/components/slider/styles.js.map +1 -1
  427. package/dist/components/switch/context.d.ts +20 -0
  428. package/dist/components/switch/context.js +4 -0
  429. package/dist/components/switch/context.js.map +1 -0
  430. package/dist/components/switch/index.d.ts +3 -13
  431. package/dist/components/switch/index.js +1 -1
  432. package/dist/components/switch/index.js.map +1 -1
  433. package/dist/components/switch/styles.js +1 -1
  434. package/dist/components/switch/styles.js.map +1 -1
  435. package/dist/components/table/body.js +2 -0
  436. package/dist/components/table/body.js.map +1 -0
  437. package/dist/components/table/cell.js +2 -0
  438. package/dist/components/table/cell.js.map +1 -0
  439. package/dist/components/table/constants/table.d.ts +17 -0
  440. package/dist/components/table/constants/table.js +2 -0
  441. package/dist/components/table/constants/table.js.map +1 -0
  442. package/dist/components/table/context.js +1 -1
  443. package/dist/components/table/context.js.map +1 -1
  444. package/dist/components/table/{table-header-cell.d.ts → header-cell.d.ts} +2 -2
  445. package/dist/components/table/header-cell.js +2 -0
  446. package/dist/components/table/header-cell.js.map +1 -0
  447. package/dist/components/table/header.js +2 -0
  448. package/dist/components/table/header.js.map +1 -0
  449. package/dist/components/table/index.d.ts +1 -14
  450. package/dist/components/table/index.js +1 -1
  451. package/dist/components/table/index.js.map +1 -1
  452. package/dist/components/table/row.js +2 -0
  453. package/dist/components/table/row.js.map +1 -0
  454. package/dist/components/table/types.d.ts +25 -2
  455. package/dist/components/tabs/context.d.ts +20 -0
  456. package/dist/components/tabs/context.js +4 -0
  457. package/dist/components/tabs/context.js.map +1 -0
  458. package/dist/components/tabs/index.d.ts +25 -51
  459. package/dist/components/tabs/index.js +1 -3
  460. package/dist/components/tabs/index.js.map +1 -1
  461. package/dist/components/tabs/list.d.ts +11 -0
  462. package/dist/components/tabs/list.js +4 -0
  463. package/dist/components/tabs/list.js.map +1 -0
  464. package/dist/components/tabs/panel.d.ts +11 -0
  465. package/dist/components/tabs/panel.js +2 -0
  466. package/dist/components/tabs/panel.js.map +1 -0
  467. package/dist/components/tabs/tab.d.ts +11 -0
  468. package/dist/components/tabs/tab.js +4 -0
  469. package/dist/components/tabs/tab.js.map +1 -0
  470. package/dist/components/text-area-field/context.d.ts +20 -0
  471. package/dist/components/text-area-field/context.js +4 -0
  472. package/dist/components/text-area-field/context.js.map +1 -0
  473. package/dist/components/text-area-field/index.d.ts +3 -13
  474. package/dist/components/text-area-field/index.js +1 -1
  475. package/dist/components/text-area-field/index.js.map +1 -1
  476. package/dist/components/text-field/context.d.ts +17 -0
  477. package/dist/components/text-field/context.js +4 -0
  478. package/dist/components/text-field/context.js.map +1 -0
  479. package/dist/components/text-field/index.d.ts +4 -13
  480. package/dist/components/text-field/index.js +1 -1
  481. package/dist/components/text-field/index.js.map +1 -1
  482. package/dist/components/time-field/index.js +1 -1
  483. package/dist/components/time-field/index.js.map +1 -1
  484. package/dist/components/tooltip/context.d.ts +7 -0
  485. package/dist/components/tooltip/context.js +4 -0
  486. package/dist/components/tooltip/context.js.map +1 -0
  487. package/dist/components/tooltip/index.d.ts +10 -19
  488. package/dist/components/tooltip/index.js +1 -1
  489. package/dist/components/tooltip/index.js.map +1 -1
  490. package/dist/components/tooltip/trigger.d.ts +8 -0
  491. package/dist/components/tooltip/trigger.js +4 -0
  492. package/dist/components/tooltip/trigger.js.map +1 -0
  493. package/dist/components/tooltip/types.d.ts +1 -1
  494. package/dist/components/tree/context.d.ts +18 -0
  495. package/dist/components/tree/context.js +4 -0
  496. package/dist/components/tree/context.js.map +1 -0
  497. package/dist/components/tree/index.d.ts +11 -50
  498. package/dist/components/tree/index.js +1 -1
  499. package/dist/components/tree/index.js.map +1 -1
  500. package/dist/components/tree/item-actions.d.ts +13 -0
  501. package/dist/components/tree/item-actions.js +2 -0
  502. package/dist/components/tree/item-actions.js.map +1 -0
  503. package/dist/components/tree/item-content.d.ts +17 -0
  504. package/dist/components/tree/item-content.js +2 -0
  505. package/dist/components/tree/item-content.js.map +1 -0
  506. package/dist/components/tree/item-description.d.ts +11 -0
  507. package/dist/components/tree/item-description.js +2 -0
  508. package/dist/components/tree/item-description.js.map +1 -0
  509. package/dist/components/tree/item-label.d.ts +11 -0
  510. package/dist/components/tree/item-label.js +2 -0
  511. package/dist/components/tree/item-label.js.map +1 -0
  512. package/dist/components/tree/item-prefix-icon.d.ts +12 -0
  513. package/dist/components/tree/item-prefix-icon.js +2 -0
  514. package/dist/components/tree/item-prefix-icon.js.map +1 -0
  515. package/dist/components/tree/item.d.ts +17 -0
  516. package/dist/components/tree/item.js +4 -0
  517. package/dist/components/tree/item.js.map +1 -0
  518. package/dist/components/tree/lines.d.ts +8 -0
  519. package/dist/components/tree/lines.js +2 -0
  520. package/dist/components/tree/lines.js.map +1 -0
  521. package/dist/components/tree/styles.js +1 -1
  522. package/dist/components/tree/styles.js.map +1 -1
  523. package/dist/components/tree/types.d.ts +1 -1
  524. package/dist/components/view-stack/context.d.ts +31 -0
  525. package/dist/components/view-stack/context.js +4 -0
  526. package/dist/components/view-stack/context.js.map +1 -0
  527. package/dist/components/view-stack/index.d.ts +12 -38
  528. package/dist/components/view-stack/index.js +1 -1
  529. package/dist/components/view-stack/index.js.map +1 -1
  530. package/dist/components/view-stack/trigger.d.ts +16 -0
  531. package/dist/components/view-stack/trigger.js +2 -0
  532. package/dist/components/view-stack/trigger.js.map +1 -0
  533. package/dist/components/view-stack/view.d.ts +16 -0
  534. package/dist/components/view-stack/view.js +4 -0
  535. package/dist/components/view-stack/view.js.map +1 -0
  536. package/dist/icons/catalog.d.ts +14 -0
  537. package/dist/icons/catalog.js +1 -1
  538. package/dist/icons/catalog.js.map +1 -1
  539. package/dist/index.css +0 -49
  540. package/dist/index.d.ts +143 -44
  541. package/dist/index.js +1 -1
  542. package/dist/metafile-esm.json +1 -1
  543. package/dist/providers/theme-provider.js +1 -1
  544. package/dist/providers/theme-provider.js.map +1 -1
  545. package/dist/styles.css +965 -243
  546. package/dist/tokens/themes.css +1 -1
  547. package/dist/tokens/themes.d.ts +1 -2
  548. package/dist/tokens/tokens.js +1 -1
  549. package/dist/tokens/tokens.js.map +1 -1
  550. package/package.json +98 -95
  551. package/dist/components/query-builder/group.js.map +0 -1
  552. package/dist/components/table/table-body.js +0 -2
  553. package/dist/components/table/table-body.js.map +0 -1
  554. package/dist/components/table/table-cell.js +0 -2
  555. package/dist/components/table/table-cell.js.map +0 -1
  556. package/dist/components/table/table-header-cell.js +0 -2
  557. package/dist/components/table/table-header-cell.js.map +0 -1
  558. package/dist/components/table/table-header.js +0 -2
  559. package/dist/components/table/table-header.js.map +0 -1
  560. package/dist/components/table/table-row.js +0 -2
  561. package/dist/components/table/table-row.js.map +0 -1
  562. package/dist/lib/react.d.ts +0 -59
  563. package/dist/lib/react.js +0 -9
  564. package/dist/lib/react.js.map +0 -1
  565. /package/dist/components/query-builder/{group.d.ts → rule-group.d.ts} +0 -0
  566. /package/dist/components/table/{table-body.d.ts → body.d.ts} +0 -0
  567. /package/dist/components/table/{table-cell.d.ts → cell.d.ts} +0 -0
  568. /package/dist/components/table/{table-header.d.ts → header.d.ts} +0 -0
  569. /package/dist/components/table/{table-row.d.ts → row.d.ts} +0 -0
@@ -1,100 +1,20 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ComponentPropsWithRef } from 'react';
4
- import { UniqueId } from '@accelint/core';
5
- import { ViewStackViewProps } from '../view-stack/types.js';
6
- import { DrawerProps, DrawerLayoutProps, DrawerMenuProps, DrawerMenuItemProps, DrawerTitleProps, DrawerTriggerProps, DrawerContextValue } from './types.js';
2
+ import { DrawerProps } from './types.js';
7
3
  import '@accelint/bus';
8
- import 'react-aria-components';
9
- import '../view-stack/events.js';
4
+ import '@accelint/core';
10
5
  import '@react-types/shared';
6
+ import 'react';
7
+ import 'react-aria-components';
11
8
  import 'tailwind-variants';
12
9
  import '../../lib/types.js';
13
10
  import '../button/types.js';
14
11
  import '../button/styles.js';
15
12
  import 'tailwind-merge';
13
+ import '../view-stack/types.js';
14
+ import '../view-stack/events.js';
16
15
  import './events.js';
17
16
  import './styles.js';
18
17
 
19
- declare const DrawerContext: react.Context<DrawerContextValue>;
20
- declare const DrawerEventHandlers: {
21
- readonly close: (stack: UniqueId) => void;
22
- readonly open: (view: UniqueId) => void;
23
- readonly toggle: (view: UniqueId) => void;
24
- readonly back: (stack: UniqueId) => void;
25
- readonly clear: (stack: UniqueId) => void;
26
- readonly push: (view: UniqueId) => void;
27
- readonly reset: (stack: UniqueId) => void;
28
- };
29
- declare function useDrawerEmit(): {
30
- readonly close: (stack: UniqueId) => void;
31
- readonly open: (view: UniqueId) => void;
32
- readonly toggle: (view: UniqueId) => void;
33
- readonly back: (stack: UniqueId) => void;
34
- readonly clear: (stack: UniqueId) => void;
35
- readonly push: (view: UniqueId) => void;
36
- readonly reset: (stack: UniqueId) => void;
37
- };
38
- declare function DrawerTrigger({ children, for: events }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
39
- declare namespace DrawerTrigger {
40
- var displayName: string;
41
- }
42
- declare function DrawerClose(): react_jsx_runtime.JSX.Element;
43
- declare namespace DrawerClose {
44
- var displayName: string;
45
- }
46
- declare function DrawerBack(): react_jsx_runtime.JSX.Element | null;
47
- declare namespace DrawerBack {
48
- var displayName: string;
49
- }
50
- declare function DrawerLayoutMain({ className, ...rest }: ComponentPropsWithRef<'main'>): react_jsx_runtime.JSX.Element;
51
- declare namespace DrawerLayoutMain {
52
- var displayName: string;
53
- }
54
- declare function DrawerLayout({ className, extend, push, ...rest }: DrawerLayoutProps): react_jsx_runtime.JSX.Element;
55
- declare namespace DrawerLayout {
56
- var displayName: string;
57
- var Main: typeof DrawerLayoutMain;
58
- }
59
- declare function DrawerMenuItem({ for: id, children, classNames, toggle, textValue, ...rest }: DrawerMenuItemProps): react_jsx_runtime.JSX.Element | null;
60
- declare namespace DrawerMenuItem {
61
- var displayName: string;
62
- }
63
- declare function DrawerMenu({ className, position, children, ...rest }: DrawerMenuProps): react_jsx_runtime.JSX.Element;
64
- declare namespace DrawerMenu {
65
- var displayName: string;
66
- var Item: typeof DrawerMenuItem;
67
- }
68
- declare function DrawerPanel({ className, ...rest }: ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
69
- declare namespace DrawerPanel {
70
- var displayName: string;
71
- }
72
- declare function DrawerView({ id, children, className, ...rest }: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
73
- declare namespace DrawerView {
74
- var displayName: string;
75
- }
76
- /**
77
- * To change size of title, use the `level` prop: `1`-`3` (large), `4`-`6` (medium).
78
- *
79
- * `level` also changes the semantic heading tag number `h1`-`h6`
80
- */
81
- declare function DrawerHeaderTitle({ className, level, ...rest }: DrawerTitleProps): react_jsx_runtime.JSX.Element;
82
- declare namespace DrawerHeaderTitle {
83
- var displayName: string;
84
- }
85
- declare function DrawerHeader({ className, title, children, ...rest }: ComponentPropsWithRef<'header'>): react_jsx_runtime.JSX.Element;
86
- declare namespace DrawerHeader {
87
- var displayName: string;
88
- var Title: typeof DrawerHeaderTitle;
89
- }
90
- declare function DrawerContent({ className, ...rest }: ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
91
- declare namespace DrawerContent {
92
- var displayName: string;
93
- }
94
- declare function DrawerFooter({ className, ...rest }: ComponentPropsWithRef<'footer'>): react_jsx_runtime.JSX.Element;
95
- declare namespace DrawerFooter {
96
- var displayName: string;
97
- }
98
18
  /**
99
19
  * Drawer - Slide-in panel for navigation or contextual content
100
20
  *
@@ -104,36 +24,23 @@ declare namespace DrawerFooter {
104
24
  * @example
105
25
  * const ids = { drawer: uuid(), a: uuid() };
106
26
  *
107
- * <Drawer.Layout push="left">
108
- * <Drawer.Layout.Main>
109
- * <Drawer.Trigger for={`open:${ids.a}`}>
27
+ * <DrawerLayout push="left">
28
+ * <DrawerLayoutMain>
29
+ * <DrawerTrigger for={`open:${ids.a}`}>
110
30
  * <Button variant="icon">Open</Button>
111
- * </Drawer.Trigger>
112
- * </Drawer.Layout.Main>
31
+ * </DrawerTrigger>
32
+ * </DrawerLayoutMain>
113
33
  *
114
34
  * <Drawer id={ids.drawer} defaultView={ids.a}>
115
- * <Drawer.Panel>
116
- * <Drawer.View id={ids.a}>
117
- * <Drawer.Header title="Title A" />
118
- * <Drawer.Content>Content for View A</Drawer.Content>
119
- * </Drawer.View>
120
- * </Drawer.Panel>
35
+ * <DrawerPanel>
36
+ * <DrawerView id={ids.a}>
37
+ * <DrawerHeader title="Title A" />
38
+ * <DrawerContent>Content for View A</DrawerContent>
39
+ * </DrawerView>
40
+ * </DrawerPanel>
121
41
  * </Drawer>
122
- * </Drawer.Layout>
42
+ * </DrawerLayout>
123
43
  */
124
44
  declare function Drawer({ id, children, className, defaultView, placement, size, onChange, ...rest }: DrawerProps): react_jsx_runtime.JSX.Element;
125
- declare namespace Drawer {
126
- var displayName: string;
127
- var Layout: typeof DrawerLayout;
128
- var Menu: typeof DrawerMenu;
129
- var Panel: typeof DrawerPanel;
130
- var View: typeof DrawerView;
131
- var Header: typeof DrawerHeader;
132
- var Content: typeof DrawerContent;
133
- var Footer: typeof DrawerFooter;
134
- var Trigger: typeof DrawerTrigger;
135
- var Close: typeof DrawerClose;
136
- var Back: typeof DrawerBack;
137
- }
138
45
 
139
- export { Drawer, DrawerContext, DrawerEventHandlers, useDrawerEmit };
46
+ export { Drawer };
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {Broadcast}from'@accelint/bus';import {useEmit,useOn}from'@accelint/bus/react';import {isUUID}from'@accelint/core';import {Cancel,ChevronLeft}from'@accelint/icons';import {Pressable}from'@react-aria/interactions';import {createContext,useRef,useState,useCallback,useContext,useEffect}from'react';import {composeRenderProps,Heading,Header}from'react-aria-components';import {containsExactChildren}from'./../../lib/react.js';import {Button,ToggleButton}from'../button/index.js';import {Icon}from'../icon/index.js';import {Tooltip}from'../tooltip/index.js';import {ViewStackEventHandlers,useViewStackEmit,ViewStack,ViewStackContext}from'../view-stack/index.js';import {DrawerEventTypes}from'./events.js';import {DrawerStyles,DrawerMenuStyles,DrawerTitleStyles}from'./styles.js';const {layout:le,main:ce,drawer:pe,panel:me,view:ue,header:we,content:fe,footer:de}=DrawerStyles(),{menu:ge,item:De}=DrawerMenuStyles(),L=Broadcast.getInstance(),T=createContext({register:()=>{},unregister:()=>{},placement:"left"}),qe={...ViewStackEventHandlers,close:ViewStackEventHandlers.clear,open:e=>L.emit(DrawerEventTypes.open,{view:e}),toggle:e=>L.emit(DrawerEventTypes.toggle,{view:e})};function ve(){const e=useViewStackEmit(),r=useEmit(DrawerEventTypes.open),a=useEmit(DrawerEventTypes.toggle);return {...e,close:e.clear,open:n=>r({view:n}),toggle:n=>a({view:n})}}function y({children:e,for:r}){const{parent:a}=useContext(ViewStackContext),n=ve();function l(){for(const s of Array.isArray(r)?r:[r]){let[f,p]=isUUID(s)?["push",s]:s.split(":");p??=a,p&&n[f](p);}}return jsx(Pressable,{onPress:l,children:e})}y.displayName="Drawer.Trigger";function W(){return jsx(o.Trigger,{for:"close",children:jsx(Button,{variant:"icon",children:jsx(Icon,{children:jsx(Cancel,{})})})})}W.displayName="Drawer.Close";function O(){const{stack:e}=useContext(ViewStackContext);return e.length>1?jsx(o.Trigger,{for:"back",children:jsx(Button,{variant:"icon",children:jsx(Icon,{children:jsx(ChevronLeft,{})})})}):null}O.displayName="Drawer.Back";function A({className:e,...r}){return jsx("main",{...r,className:ce({className:e})})}A.displayName="Drawer.Layout.Main";function h({className:e,extend:r="left right",push:a,...n}){return jsx("div",{...n,className:le({className:e}),"data-extend":r,"data-push":a})}h.displayName="Drawer.Layout",h.Main=A;const ye={left:"right",right:"left",top:"bottom",bottom:"top"};function C({for:e,children:r,classNames:a,toggle:n,textValue:l,...s}){const{parent:f,stack:p}=useContext(ViewStackContext),{placement:m}=useContext(T),d=p.at(-1),P=n?"toggle":"open",c=useRef(null);return f?jsxs(Tooltip.Trigger,{children:[jsx(y,{for:`${P}:${e}`,children:jsx(ToggleButton,{...s,ref:c,className:composeRenderProps(a?.item,g=>De({className:g})),role:"tab",variant:"icon",isSelected:e===d||p.length>1&&p.includes(e),children:composeRenderProps(r,g=>jsx(Icon,{children:g}))})}),jsx(Tooltip,{triggerRef:c,placement:ye[m],offset:6,className:a?.tooltip,children:l})]}):null}C.displayName="Drawer.Menu.Item";function D({className:e,position:r="center",children:a,...n}){return containsExactChildren({children:a,componentName:D.displayName,restrictions:[[C,{min:1}],[y,{min:0,max:0}]]}),jsx("nav",{...n,className:ge({position:r,className:e}),children:a})}D.displayName="Drawer.Menu",D.Item=C;function k({className:e,...r}){return jsx("div",{...r,className:me({className:e})})}k.displayName="Drawer.Panel";function F({id:e,children:r,className:a,...n}){const{register:l,unregister:s}=useContext(T);return useEffect(()=>(l(e),()=>s(e)),[l,s,e]),jsx(ViewStack.View,{id:e,children:jsx("div",{...n,className:ue({className:a}),role:"tabpanel",children:r})})}F.displayName="Drawer.View";function $({className:e,level:r,...a}){return jsx(Heading,{...a,className:DrawerTitleStyles({className:e,level:r}),level:r})}$.displayName="Drawer.Title";function I({className:e,title:r,children:a,...n}){const{stack:l}=useContext(ViewStackContext),s=l.length>1?4:1;return jsx(Header,{...n,className:we({className:e}),children:r?jsxs(Fragment,{children:[jsx(o.Back,{}),jsx(o.Header.Title,{level:s,className:"w-fit",children:r}),jsx(o.Close,{})]}):a})}I.displayName="Drawer.Header",I.Title=$;function z({className:e,...r}){return jsx("div",{...r,className:fe({className:e})})}z.displayName="Drawer.Content";function G({className:e,...r}){return jsx("footer",{...r,className:de({className:e})})}G.displayName="Drawer.Footer";function o({id:e,children:r,className:a,defaultView:n,placement:l="left",size:s="medium",onChange:f,...p}){containsExactChildren({children:r,componentName:o.displayName,restrictions:[[D,{min:0,max:1}],[k,{min:1,max:1}]]});const m=useRef(new Set),[d,P]=useState(n||null),c=useViewStackEmit(),g=useCallback(i=>{m.current.has(i?.payload?.view)&&(c.clear(e),c.push(i.payload.view));},[e,c.clear,c.push]),K=useCallback(i=>{m.current.has(i?.payload?.view)&&(c.clear(e),d!==i?.payload?.view&&c.push(i.payload.view));},[e,d,c.clear,c.push]);return useOn(DrawerEventTypes.open,g),useOn(DrawerEventTypes.toggle,K),jsx(T.Provider,{value:{register:i=>m.current.add(i),unregister:i=>m.current.delete(i),placement:l},children:jsx(ViewStack,{id:e,defaultView:n,onChange:i=>{P(i),f?.(i);},children:jsx("div",{...p,className:pe({className:a}),"data-open":!!d||null,"data-placement":l,"data-size":s,children:r})})})}o.displayName="Drawer",o.Layout=h,o.Menu=D,o.Panel=k,o.View=F,o.Header=I,o.Content=z,o.Footer=G,o.Trigger=y,o.Close=W,o.Back=O;export{o as Drawer,T as DrawerContext,qe as DrawerEventHandlers,ve as useDrawerEmit};//# sourceMappingURL=index.js.map
3
+ import {jsx}from'react/jsx-runtime';import {useOn}from'@accelint/bus/react';import'client-only';import {useRef,useState,useCallback}from'react';import {ViewStack}from'../view-stack/index.js';import {useViewStackEmit}from'../view-stack/context.js';import {DrawerContext}from'./context.js';import {DrawerEventTypes}from'./events.js';import {DrawerStyles}from'./styles.js';const{drawer:I}=DrawerStyles();function z({id:t,children:u,className:w,defaultView:i,placement:p="left",size:m="medium",onChange:d,...v}){const o=useRef(new Set),[a,f]=useState(i||null),r=useViewStackEmit(),g=useCallback(e=>{o.current.has(e?.payload?.view)&&(r.clear(t),r.push(e.payload.view));},[t,r.clear,r.push]),D=useCallback(e=>{o.current.has(e?.payload?.view)&&(r.clear(t),a!==e?.payload?.view&&r.push(e.payload.view));},[t,a,r.clear,r.push]);return useOn(DrawerEventTypes.open,g),useOn(DrawerEventTypes.toggle,D),jsx(DrawerContext.Provider,{value:{register:e=>o.current.add(e),unregister:e=>o.current.delete(e),placement:p},children:jsx(ViewStack,{id:t,defaultView:i,onChange:e=>{f(e),d?.(e);},children:jsx("div",{...v,className:I({className:w}),"data-open":!!a||null,"data-placement":p,"data-size":m,children:u})})})}export{z as Drawer};//# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/drawer/index.tsx"],"names":["footer","DrawerMenuStyles","DrawerContext","ie","oe","DrawerEventHandlers","bus","DrawerEventTypes","view","w","viewStackEmit","emitOpen","useEmit","emitToggle","b","E","DrawerTrigger","children","useContext","drawerEmit","useDrawerEmit","handlePress","type","events","event","id","jsx","Pressable","X","t","_","DrawerClose","Drawer","Button","H","N","Y","stack","ViewStackContext","v","DrawerBack","DrawerLayoutMain","Z","className","rest","layout","push","DrawerMenuItem","toggle","tooltipRef","useRef","parent","jsxs","Tooltip","x","J","R","composeRenderProps","classNames","item","M","tooltipPlacementMap","placement","textValue","containsExactChildren","menu","position","DrawerMenu","DrawerPanel","DrawerView","unregister","register","ee","q","level","DrawerTitleStyles","DrawerHeaderTitle","se","DrawerHeader","title","Header","u","te","Pe","DrawerContent","DrawerFooter","onChange","activeView","setActiveView","useState","defaultView","useViewStackEmit","handleOpen","useCallback","data","views","re","S","useOn","V","ViewStack","size"],"mappings":"o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AAA,CAAA,CAAAiB,CAAU,CAAC,CAAA,CAC/B,gBAAa4C,CAAAA,GAAc,CAAA,KAC3B,CAAA,CAAA,GAAA,CAAA,CAAA,SAAgBzB,CAAAA,EAChB,CAAA,CAAA,SAAWuC,CAAAA,CAEV,cAEL,CACF,CAEJ,CACArE,CAAAA,EAAO,IAAA,CAAA,iBAEA,CAAA,CAAA,WACA,CAAA,CAAA,CAAOmC,QACP,CAAA,CAAQC,CAAAA,CACfpC,EAAO,CAAA,CAAA,CAAA,CAAA,CAAOqC,WACES,CAAAA,QACT,CAAA,CAAA,CAAUM,MACV,CAAA,CAAA,CAAA,CAAA,CAASC,IACT,CAAA,CAAA,CAAA,CAAA,CAAA,KACPrD,CAAAA,CAAO,CAAA,CAAA,CAAA,IAAQD,CACfC,EAAO,CAAA,CAAA,MAAOQ,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 { useEmit, useOn } from '@accelint/bus/react';\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 useViewStackEmit,\n ViewStack,\n ViewStackContext,\n ViewStackEventHandlers,\n} from '../view-stack';\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();\n\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\nexport function useDrawerEmit() {\n const viewStackEmit = useViewStackEmit();\n const emitOpen = useEmit<DrawerEvent>(DrawerEventTypes.open);\n const emitToggle = useEmit<DrawerEvent>(DrawerEventTypes.toggle);\n\n return {\n ...viewStackEmit,\n close: viewStackEmit.clear,\n open: (view: UniqueId) => emitOpen({ view }),\n toggle: (view: UniqueId) => emitToggle({ view }),\n } as const;\n}\n\nfunction DrawerTrigger({ children, for: events }: 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 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.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\n triggerRef={tooltipRef}\n placement={tooltipPlacementMap[placement]}\n offset={6}\n className={classNames?.tooltip}\n >\n {textValue}\n </Tooltip>\n </Tooltip.Trigger>\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 return () => 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\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 * <Drawer.Layout push=\"left\">\n * <Drawer.Layout.Main>\n * <Drawer.Trigger for={`open:${ids.a}`}>\n * <Button variant=\"icon\">Open</Button>\n * </Drawer.Trigger>\n * </Drawer.Layout.Main>\n *\n * <Drawer id={ids.drawer} defaultView={ids.a}>\n * <Drawer.Panel>\n * <Drawer.View id={ids.a}>\n * <Drawer.Header title=\"Title A\" />\n * <Drawer.Content>Content for View A</Drawer.Content>\n * </Drawer.View>\n * </Drawer.Panel>\n * </Drawer>\n * </Drawer.Layout>\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 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}\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","handleO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AAA,CAAA,CAAA,OAGrBG,KAAAA,CAACC,gBAAAA,CAAc,IAAA,CAAA,CAAA,CAAA,CAAAC,KAAd,CACCC,gBAAA,CAAA,MACE,CAAA,CAAA,CAAA,CAAAC,GAAA,CAAAC,aAAA,CAAWC,QAAyB,CAAA,CAAA,OAAYA,QAChD,CAAA,CAAA,EAAA,CAAA,CAAaA,OAAyB,CAAA,GAAA,CAAA,CAAQ,YAC9C,CAAA,CAAA,EAAA,CAAA,CAAA,OAGF,CAAA,MAAAN,EAACO,CAAAA,CAAA,SAEC,CAAA,CAAA,CAAA,CAAA,QACA,CAAAH,GAAA,CAAAI,SAAA,CAAA,CAAA,EAAWF,CAAAA,CAAAA,CAAS,WAEH,CACjB,CAAA,CAEA,QAAA,CAAAN,CAAAA,EAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,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 };