@accelint/design-toolkit 5.2.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/README.md +2 -0
  2. package/catalog-info.yaml +44 -0
  3. package/dist/components/accordion/context.d.ts +10 -0
  4. package/dist/components/accordion/context.js +4 -0
  5. package/dist/components/accordion/context.js.map +1 -0
  6. package/dist/components/accordion/group.d.ts +11 -0
  7. package/dist/components/accordion/group.js +4 -0
  8. package/dist/components/accordion/group.js.map +1 -0
  9. package/dist/components/accordion/header.d.ts +11 -0
  10. package/dist/components/accordion/header.js +4 -0
  11. package/dist/components/accordion/header.js.map +1 -0
  12. package/dist/components/accordion/index.d.ts +22 -46
  13. package/dist/components/accordion/index.js +1 -3
  14. package/dist/components/accordion/index.js.map +1 -1
  15. package/dist/components/accordion/panel.d.ts +11 -0
  16. package/dist/components/accordion/panel.js +4 -0
  17. package/dist/components/accordion/panel.js.map +1 -0
  18. package/dist/components/accordion/styles.d.ts +3 -3
  19. package/dist/components/accordion/styles.js +1 -1
  20. package/dist/components/accordion/styles.js.map +1 -1
  21. package/dist/components/accordion/trigger.d.ts +11 -0
  22. package/dist/components/accordion/trigger.js +4 -0
  23. package/dist/components/accordion/trigger.js.map +1 -0
  24. package/dist/components/accordion/types.d.ts +1 -1
  25. package/dist/components/action-bar/index.d.ts +11 -3
  26. package/dist/components/action-bar/index.js +1 -1
  27. package/dist/components/action-bar/index.js.map +1 -1
  28. package/dist/components/avatar/context.d.ts +14 -0
  29. package/dist/components/avatar/context.js +4 -0
  30. package/dist/components/avatar/context.js.map +1 -0
  31. package/dist/components/avatar/index.d.ts +2 -13
  32. package/dist/components/avatar/index.js +1 -1
  33. package/dist/components/avatar/index.js.map +1 -1
  34. package/dist/components/badge/context.d.ts +13 -0
  35. package/dist/components/badge/context.js +4 -0
  36. package/dist/components/badge/context.js.map +1 -0
  37. package/dist/components/badge/index.d.ts +2 -13
  38. package/dist/components/badge/index.js +1 -3
  39. package/dist/components/badge/index.js.map +1 -1
  40. package/dist/components/breadcrumbs/index.d.ts +12 -9
  41. package/dist/components/breadcrumbs/index.js +1 -1
  42. package/dist/components/breadcrumbs/index.js.map +1 -1
  43. package/dist/components/breadcrumbs/item.d.ts +7 -0
  44. package/dist/components/breadcrumbs/item.js +4 -0
  45. package/dist/components/breadcrumbs/item.js.map +1 -0
  46. package/dist/components/button/context.d.ts +17 -0
  47. package/dist/components/button/context.js +4 -0
  48. package/dist/components/button/context.js.map +1 -0
  49. package/dist/components/button/index.d.ts +5 -104
  50. package/dist/components/button/index.js +1 -3
  51. package/dist/components/button/index.js.map +1 -1
  52. package/dist/components/button/link.d.ts +46 -0
  53. package/dist/components/button/link.js +4 -0
  54. package/dist/components/button/link.js.map +1 -0
  55. package/dist/components/button/styles.js +1 -1
  56. package/dist/components/button/styles.js.map +1 -1
  57. package/dist/components/button/toggle.d.ts +48 -0
  58. package/dist/components/button/toggle.js +4 -0
  59. package/dist/components/button/toggle.js.map +1 -0
  60. package/dist/components/checkbox/context.d.ts +10 -0
  61. package/dist/components/checkbox/context.js +4 -0
  62. package/dist/components/checkbox/context.js.map +1 -0
  63. package/dist/components/checkbox/group.d.ts +10 -0
  64. package/dist/components/checkbox/group.js +4 -0
  65. package/dist/components/checkbox/group.js.map +1 -0
  66. package/dist/components/checkbox/index.d.ts +6 -16
  67. package/dist/components/checkbox/index.js +1 -1
  68. package/dist/components/checkbox/index.js.map +1 -1
  69. package/dist/components/checkbox/styles.js +1 -1
  70. package/dist/components/checkbox/styles.js.map +1 -1
  71. package/dist/components/chip/context.d.ts +13 -0
  72. package/dist/components/chip/context.js +4 -0
  73. package/dist/components/chip/context.js.map +1 -0
  74. package/dist/components/chip/deletable.d.ts +11 -0
  75. package/dist/components/chip/deletable.js +4 -0
  76. package/dist/components/chip/deletable.js.map +1 -0
  77. package/dist/components/chip/index.d.ts +14 -39
  78. package/dist/components/chip/index.js +1 -3
  79. package/dist/components/chip/index.js.map +1 -1
  80. package/dist/components/chip/list.d.ts +12 -0
  81. package/dist/components/chip/list.js +4 -0
  82. package/dist/components/chip/list.js.map +1 -0
  83. package/dist/components/chip/selectable.d.ts +11 -0
  84. package/dist/components/chip/selectable.js +2 -0
  85. package/dist/components/chip/selectable.js.map +1 -0
  86. package/dist/components/chip/styles.js +1 -1
  87. package/dist/components/chip/styles.js.map +1 -1
  88. package/dist/components/chip/types.d.ts +2 -2
  89. package/dist/components/classification-badge/context.d.ts +12 -0
  90. package/dist/components/classification-badge/context.js +4 -0
  91. package/dist/components/classification-badge/context.js.map +1 -0
  92. package/dist/components/classification-badge/index.d.ts +2 -13
  93. package/dist/components/classification-badge/index.js +1 -3
  94. package/dist/components/classification-badge/index.js.map +1 -1
  95. package/dist/components/classification-banner/context.d.ts +12 -0
  96. package/dist/components/classification-banner/context.js +4 -0
  97. package/dist/components/classification-banner/context.js.map +1 -0
  98. package/dist/components/classification-banner/index.d.ts +2 -13
  99. package/dist/components/classification-banner/index.js +1 -3
  100. package/dist/components/classification-banner/index.js.map +1 -1
  101. package/dist/components/clock/index.d.ts +36 -0
  102. package/dist/components/clock/index.js +4 -0
  103. package/dist/components/clock/index.js.map +1 -0
  104. package/dist/components/clock/types.d.ts +7 -0
  105. package/dist/components/clock/types.js +2 -0
  106. package/dist/components/clock/types.js.map +1 -0
  107. package/dist/components/color-picker/index.d.ts +0 -3
  108. package/dist/components/color-picker/index.js +1 -1
  109. package/dist/components/color-picker/index.js.map +1 -1
  110. package/dist/components/color-picker/styles.js +1 -1
  111. package/dist/components/color-picker/styles.js.map +1 -1
  112. package/dist/components/combobox-field/context.d.ts +16 -0
  113. package/dist/components/combobox-field/context.js +4 -0
  114. package/dist/components/combobox-field/context.js.map +1 -0
  115. package/dist/components/combobox-field/index.d.ts +14 -7
  116. package/dist/components/combobox-field/index.js +1 -1
  117. package/dist/components/combobox-field/index.js.map +1 -1
  118. package/dist/components/combobox-field/styles.d.ts +3 -3
  119. package/dist/components/combobox-field/styles.js +1 -1
  120. package/dist/components/combobox-field/styles.js.map +1 -1
  121. package/dist/components/date-field/index.js +1 -1
  122. package/dist/components/date-field/index.js.map +1 -1
  123. package/dist/components/details-list/context.d.ts +12 -0
  124. package/dist/components/details-list/context.js +4 -0
  125. package/dist/components/details-list/context.js.map +1 -0
  126. package/dist/components/details-list/index.d.ts +15 -35
  127. package/dist/components/details-list/index.js +1 -3
  128. package/dist/components/details-list/index.js.map +1 -1
  129. package/dist/components/details-list/label.d.ts +10 -0
  130. package/dist/components/details-list/label.js +4 -0
  131. package/dist/components/details-list/label.js.map +1 -0
  132. package/dist/components/details-list/value.d.ts +10 -0
  133. package/dist/components/details-list/value.js +4 -0
  134. package/dist/components/details-list/value.js.map +1 -0
  135. package/dist/components/dialog/content.d.ts +6 -0
  136. package/dist/components/dialog/content.js +2 -0
  137. package/dist/components/dialog/content.js.map +1 -0
  138. package/dist/components/dialog/context.d.ts +7 -0
  139. package/dist/components/dialog/context.js +4 -0
  140. package/dist/components/dialog/context.js.map +1 -0
  141. package/dist/components/dialog/footer.d.ts +6 -0
  142. package/dist/components/dialog/footer.js +4 -0
  143. package/dist/components/dialog/footer.js.map +1 -0
  144. package/dist/components/dialog/index.d.ts +9 -30
  145. package/dist/components/dialog/index.js +1 -1
  146. package/dist/components/dialog/index.js.map +1 -1
  147. package/dist/components/dialog/styles.d.ts +3 -3
  148. package/dist/components/dialog/title.d.ts +6 -0
  149. package/dist/components/dialog/title.js +4 -0
  150. package/dist/components/dialog/title.js.map +1 -0
  151. package/dist/components/dialog/trigger.d.ts +1 -0
  152. package/dist/components/dialog/trigger.js +2 -0
  153. package/dist/components/dialog/trigger.js.map +1 -0
  154. package/dist/components/dialog/types.d.ts +3 -2
  155. package/dist/components/divider/context.d.ts +10 -0
  156. package/dist/components/divider/context.js +4 -0
  157. package/dist/components/divider/context.js.map +1 -0
  158. package/dist/components/divider/index.d.ts +2 -13
  159. package/dist/components/divider/index.js +1 -3
  160. package/dist/components/divider/index.js.map +1 -1
  161. package/dist/components/drawer/back.d.ts +5 -0
  162. package/dist/components/drawer/back.js +4 -0
  163. package/dist/components/drawer/back.js.map +1 -0
  164. package/dist/components/drawer/close.d.ts +5 -0
  165. package/dist/components/drawer/close.js +2 -0
  166. package/dist/components/drawer/close.js.map +1 -0
  167. package/dist/components/drawer/content.d.ts +6 -0
  168. package/dist/components/drawer/content.js +4 -0
  169. package/dist/components/drawer/content.js.map +1 -0
  170. package/dist/components/drawer/context.d.ts +38 -0
  171. package/dist/components/drawer/context.js +4 -0
  172. package/dist/components/drawer/context.js.map +1 -0
  173. package/dist/components/drawer/footer.d.ts +6 -0
  174. package/dist/components/drawer/footer.js +4 -0
  175. package/dist/components/drawer/footer.js.map +1 -0
  176. package/dist/components/drawer/header-title.d.ts +25 -0
  177. package/dist/components/drawer/header-title.js +2 -0
  178. package/dist/components/drawer/header-title.js.map +1 -0
  179. package/dist/components/drawer/header.d.ts +6 -0
  180. package/dist/components/drawer/header.js +4 -0
  181. package/dist/components/drawer/header.js.map +1 -0
  182. package/dist/components/drawer/index.d.ts +30 -88
  183. package/dist/components/drawer/index.js +1 -1
  184. package/dist/components/drawer/index.js.map +1 -1
  185. package/dist/components/drawer/layout-main.d.ts +6 -0
  186. package/dist/components/drawer/layout-main.js +2 -0
  187. package/dist/components/drawer/layout-main.js.map +1 -0
  188. package/dist/components/drawer/layout.d.ts +20 -0
  189. package/dist/components/drawer/layout.js +4 -0
  190. package/dist/components/drawer/layout.js.map +1 -0
  191. package/dist/components/drawer/menu-item.d.ts +20 -0
  192. package/dist/components/drawer/menu-item.js +2 -0
  193. package/dist/components/drawer/menu-item.js.map +1 -0
  194. package/dist/components/drawer/menu.d.ts +20 -0
  195. package/dist/components/drawer/menu.js +4 -0
  196. package/dist/components/drawer/menu.js.map +1 -0
  197. package/dist/components/drawer/panel.d.ts +6 -0
  198. package/dist/components/drawer/panel.js +2 -0
  199. package/dist/components/drawer/panel.js.map +1 -0
  200. package/dist/components/drawer/styles.d.ts +9 -9
  201. package/dist/components/drawer/trigger.d.ts +20 -0
  202. package/dist/components/drawer/trigger.js +4 -0
  203. package/dist/components/drawer/trigger.js.map +1 -0
  204. package/dist/components/drawer/types.d.ts +3 -3
  205. package/dist/components/drawer/view.d.ts +11 -0
  206. package/dist/components/drawer/view.js +4 -0
  207. package/dist/components/drawer/view.js.map +1 -0
  208. package/dist/components/hero/context.d.ts +7 -0
  209. package/dist/components/hero/context.js +2 -0
  210. package/dist/components/hero/context.js.map +1 -0
  211. package/dist/components/hero/index.d.ts +8 -16
  212. package/dist/components/hero/index.js +1 -1
  213. package/dist/components/hero/index.js.map +1 -1
  214. package/dist/components/hero/subtitle.d.ts +6 -0
  215. package/dist/components/hero/subtitle.js +4 -0
  216. package/dist/components/hero/subtitle.js.map +1 -0
  217. package/dist/components/hero/title.d.ts +6 -0
  218. package/dist/components/hero/title.js +2 -0
  219. package/dist/components/hero/title.js.map +1 -0
  220. package/dist/components/hotkey/context.d.ts +12 -0
  221. package/dist/components/hotkey/context.js +4 -0
  222. package/dist/components/hotkey/context.js.map +1 -0
  223. package/dist/components/hotkey/hotkey-set.d.ts +9 -0
  224. package/dist/components/hotkey/hotkey-set.js +2 -0
  225. package/dist/components/hotkey/hotkey-set.js.map +1 -0
  226. package/dist/components/hotkey/index.d.ts +7 -23
  227. package/dist/components/hotkey/index.js +1 -1
  228. package/dist/components/hotkey/index.js.map +1 -1
  229. package/dist/components/icon/context.d.ts +10 -0
  230. package/dist/components/icon/context.js +4 -0
  231. package/dist/components/icon/context.js.map +1 -0
  232. package/dist/components/icon/index.d.ts +2 -13
  233. package/dist/components/icon/index.js +1 -3
  234. package/dist/components/icon/index.js.map +1 -1
  235. package/dist/components/input/context.d.ts +13 -0
  236. package/dist/components/input/context.js +4 -0
  237. package/dist/components/input/context.js.map +1 -0
  238. package/dist/components/input/index.d.ts +3 -7
  239. package/dist/components/input/index.js +1 -1
  240. package/dist/components/input/index.js.map +1 -1
  241. package/dist/components/label/context.d.ts +10 -0
  242. package/dist/components/label/context.js +4 -0
  243. package/dist/components/label/context.js.map +1 -0
  244. package/dist/components/label/index.d.ts +3 -13
  245. package/dist/components/label/index.js +1 -3
  246. package/dist/components/label/index.js.map +1 -1
  247. package/dist/components/lines/index.d.ts +9 -0
  248. package/dist/components/lines/index.js.map +1 -1
  249. package/dist/components/link/context.d.ts +9 -0
  250. package/dist/components/link/context.js +4 -0
  251. package/dist/components/link/context.js.map +1 -0
  252. package/dist/components/link/index.d.ts +9 -9
  253. package/dist/components/link/index.js +1 -3
  254. package/dist/components/link/index.js.map +1 -1
  255. package/dist/components/link/styles.js +1 -1
  256. package/dist/components/link/styles.js.map +1 -1
  257. package/dist/components/menu/context.d.ts +10 -0
  258. package/dist/components/menu/context.js +4 -0
  259. package/dist/components/menu/context.js.map +1 -0
  260. package/dist/components/menu/index.d.ts +31 -63
  261. package/dist/components/menu/index.js +1 -1
  262. package/dist/components/menu/index.js.map +1 -1
  263. package/dist/components/menu/item-description.d.ts +6 -0
  264. package/dist/components/menu/item-description.js +2 -0
  265. package/dist/components/menu/item-description.js.map +1 -0
  266. package/dist/components/menu/item-label.d.ts +6 -0
  267. package/dist/components/menu/item-label.js +4 -0
  268. package/dist/components/menu/item-label.js.map +1 -0
  269. package/dist/components/menu/item.d.ts +11 -0
  270. package/dist/components/menu/item.js +4 -0
  271. package/dist/components/menu/item.js.map +1 -0
  272. package/dist/components/menu/section.d.ts +11 -0
  273. package/dist/components/menu/section.js +2 -0
  274. package/dist/components/menu/section.js.map +1 -0
  275. package/dist/components/menu/separator.d.ts +6 -0
  276. package/dist/components/menu/separator.js +4 -0
  277. package/dist/components/menu/separator.js.map +1 -0
  278. package/dist/components/menu/styles.js +1 -1
  279. package/dist/components/menu/styles.js.map +1 -1
  280. package/dist/components/menu/submenu.d.ts +6 -0
  281. package/dist/components/menu/submenu.js +4 -0
  282. package/dist/components/menu/submenu.js.map +1 -0
  283. package/dist/components/menu/trigger.d.ts +1 -0
  284. package/dist/components/menu/trigger.js +2 -0
  285. package/dist/components/menu/trigger.js.map +1 -0
  286. package/dist/components/menu/types.d.ts +1 -1
  287. package/dist/components/notice/events.d.ts +10 -0
  288. package/dist/components/notice/events.js +2 -0
  289. package/dist/components/notice/events.js.map +1 -0
  290. package/dist/components/notice/index.d.ts +16 -0
  291. package/dist/components/notice/index.js +4 -0
  292. package/dist/components/notice/index.js.map +1 -0
  293. package/dist/components/notice/list.d.ts +16 -0
  294. package/dist/components/notice/list.js +4 -0
  295. package/dist/components/notice/list.js.map +1 -0
  296. package/dist/components/notice/notice-icon.d.ts +16 -0
  297. package/dist/components/notice/notice-icon.js +2 -0
  298. package/dist/components/notice/notice-icon.js.map +1 -0
  299. package/dist/components/notice/styles.d.ts +60 -0
  300. package/dist/components/notice/styles.js +2 -0
  301. package/dist/components/notice/styles.js.map +1 -0
  302. package/dist/components/notice/types.d.ts +75 -0
  303. package/dist/components/notice/types.js +2 -0
  304. package/dist/components/notice/types.js.map +1 -0
  305. package/dist/components/notice/utils.d.ts +3 -0
  306. package/dist/components/notice/utils.js +4 -0
  307. package/dist/components/notice/utils.js.map +1 -0
  308. package/dist/components/options/context.d.ts +8 -0
  309. package/dist/components/options/context.js +2 -0
  310. package/dist/components/options/context.js.map +1 -0
  311. package/dist/components/options/index.d.ts +22 -51
  312. package/dist/components/options/index.js +1 -1
  313. package/dist/components/options/index.js.map +1 -1
  314. package/dist/components/options/item-content.d.ts +9 -0
  315. package/dist/components/options/item-content.js +2 -0
  316. package/dist/components/options/item-content.js.map +1 -0
  317. package/dist/components/options/item-description.d.ts +9 -0
  318. package/dist/components/options/item-description.js +4 -0
  319. package/dist/components/options/item-description.js.map +1 -0
  320. package/dist/components/options/item-label.d.ts +9 -0
  321. package/dist/components/options/item-label.js +2 -0
  322. package/dist/components/options/item-label.js.map +1 -0
  323. package/dist/components/options/item.d.ts +9 -0
  324. package/dist/components/options/item.js +4 -0
  325. package/dist/components/options/item.js.map +1 -0
  326. package/dist/components/options/section.d.ts +9 -0
  327. package/dist/components/options/section.js +2 -0
  328. package/dist/components/options/section.js.map +1 -0
  329. package/dist/components/options/styles.d.ts +3 -3
  330. package/dist/components/options/styles.js +1 -1
  331. package/dist/components/options/styles.js.map +1 -1
  332. package/dist/components/options/types.d.ts +2 -2
  333. package/dist/components/popover/body.d.ts +8 -0
  334. package/dist/components/popover/body.js +4 -0
  335. package/dist/components/popover/body.js.map +1 -0
  336. package/dist/components/popover/content.d.ts +8 -0
  337. package/dist/components/popover/content.js +2 -0
  338. package/dist/components/popover/content.js.map +1 -0
  339. package/dist/components/popover/footer.d.ts +9 -0
  340. package/dist/components/popover/footer.js +4 -0
  341. package/dist/components/popover/footer.js.map +1 -0
  342. package/dist/components/popover/index.d.ts +16 -39
  343. package/dist/components/popover/index.js +1 -3
  344. package/dist/components/popover/index.js.map +1 -1
  345. package/dist/components/popover/title.d.ts +8 -0
  346. package/dist/components/popover/title.js +4 -0
  347. package/dist/components/popover/title.js.map +1 -0
  348. package/dist/components/popover/trigger.d.ts +8 -0
  349. package/dist/components/popover/trigger.js +2 -0
  350. package/dist/components/popover/trigger.js.map +1 -0
  351. package/dist/components/popover/types.d.ts +1 -1
  352. package/dist/components/query-builder/action-element.js +1 -1
  353. package/dist/components/query-builder/action-element.js.map +1 -1
  354. package/dist/components/query-builder/actions.d.ts +8 -0
  355. package/dist/components/query-builder/actions.js +2 -0
  356. package/dist/components/query-builder/actions.js.map +1 -0
  357. package/dist/components/query-builder/combinator-selector.d.ts +6 -0
  358. package/dist/components/query-builder/combinator-selector.js +4 -0
  359. package/dist/components/query-builder/combinator-selector.js.map +1 -0
  360. package/dist/components/query-builder/index.d.ts +1 -21
  361. package/dist/components/query-builder/index.js +3 -1
  362. package/dist/components/query-builder/index.js.map +1 -1
  363. package/dist/components/query-builder/{group.js → rule-group.js} +2 -2
  364. package/dist/components/query-builder/rule-group.js.map +1 -0
  365. package/dist/components/query-builder/rule.js +1 -3
  366. package/dist/components/query-builder/rule.js.map +1 -1
  367. package/dist/components/query-builder/styles.d.ts +152 -0
  368. package/dist/components/query-builder/styles.js +2 -0
  369. package/dist/components/query-builder/styles.js.map +1 -0
  370. package/dist/components/query-builder/utils.d.ts +1 -10
  371. package/dist/components/query-builder/utils.js +1 -1
  372. package/dist/components/query-builder/utils.js.map +1 -1
  373. package/dist/components/query-builder/value-editor.js +1 -1
  374. package/dist/components/query-builder/value-editor.js.map +1 -1
  375. package/dist/components/query-builder/value-selector.js +1 -1
  376. package/dist/components/query-builder/value-selector.js.map +1 -1
  377. package/dist/components/radio/context.d.ts +13 -0
  378. package/dist/components/radio/context.js +4 -0
  379. package/dist/components/radio/context.js.map +1 -0
  380. package/dist/components/radio/group.d.ts +15 -0
  381. package/dist/components/radio/group.js +4 -0
  382. package/dist/components/radio/group.js.map +1 -0
  383. package/dist/components/radio/index.d.ts +10 -19
  384. package/dist/components/radio/index.js +1 -3
  385. package/dist/components/radio/index.js.map +1 -1
  386. package/dist/components/radio/styles.js +1 -1
  387. package/dist/components/radio/styles.js.map +1 -1
  388. package/dist/components/radio/types.d.ts +1 -1
  389. package/dist/components/search-field/context.d.ts +26 -0
  390. package/dist/components/search-field/context.js +4 -0
  391. package/dist/components/search-field/context.js.map +1 -0
  392. package/dist/components/search-field/index.d.ts +4 -20
  393. package/dist/components/search-field/index.js +1 -1
  394. package/dist/components/search-field/index.js.map +1 -1
  395. package/dist/components/select-field/context.d.ts +15 -0
  396. package/dist/components/select-field/context.js +4 -0
  397. package/dist/components/select-field/context.js.map +1 -0
  398. package/dist/components/select-field/index.d.ts +12 -21
  399. package/dist/components/select-field/index.js +1 -1
  400. package/dist/components/select-field/index.js.map +1 -1
  401. package/dist/components/select-field/styles.d.ts +9 -3
  402. package/dist/components/select-field/styles.js +1 -1
  403. package/dist/components/select-field/styles.js.map +1 -1
  404. package/dist/components/select-field/types.d.ts +2 -2
  405. package/dist/components/sidenav/avatar.d.ts +16 -0
  406. package/dist/components/sidenav/avatar.js +4 -0
  407. package/dist/components/sidenav/avatar.js.map +1 -0
  408. package/dist/components/sidenav/content.d.ts +16 -0
  409. package/dist/components/sidenav/content.js +2 -0
  410. package/dist/components/sidenav/content.js.map +1 -0
  411. package/dist/components/sidenav/context.d.ts +10 -0
  412. package/dist/components/sidenav/context.js +4 -0
  413. package/dist/components/sidenav/context.js.map +1 -0
  414. package/dist/components/sidenav/footer.d.ts +16 -0
  415. package/dist/components/sidenav/footer.js +4 -0
  416. package/dist/components/sidenav/footer.js.map +1 -0
  417. package/dist/components/sidenav/header.d.ts +16 -0
  418. package/dist/components/sidenav/header.js +4 -0
  419. package/dist/components/sidenav/header.js.map +1 -0
  420. package/dist/components/sidenav/index.d.ts +57 -49
  421. package/dist/components/sidenav/index.js +1 -3
  422. package/dist/components/sidenav/index.js.map +1 -1
  423. package/dist/components/sidenav/item.d.ts +16 -0
  424. package/dist/components/sidenav/item.js +4 -0
  425. package/dist/components/sidenav/item.js.map +1 -0
  426. package/dist/components/sidenav/link.d.ts +16 -0
  427. package/dist/components/sidenav/link.js +4 -0
  428. package/dist/components/sidenav/link.js.map +1 -0
  429. package/dist/components/sidenav/menu-item.d.ts +16 -0
  430. package/dist/components/sidenav/menu-item.js +2 -0
  431. package/dist/components/sidenav/menu-item.js.map +1 -0
  432. package/dist/components/sidenav/menu.d.ts +16 -0
  433. package/dist/components/sidenav/menu.js +4 -0
  434. package/dist/components/sidenav/menu.js.map +1 -0
  435. package/dist/components/sidenav/styles.d.ts +9 -9
  436. package/dist/components/sidenav/trigger.d.ts +16 -0
  437. package/dist/components/sidenav/trigger.js +4 -0
  438. package/dist/components/sidenav/trigger.js.map +1 -0
  439. package/dist/components/sidenav/types.d.ts +1 -1
  440. package/dist/components/skeleton/index.d.ts +0 -3
  441. package/dist/components/skeleton/index.js +1 -1
  442. package/dist/components/skeleton/index.js.map +1 -1
  443. package/dist/components/slider/index.d.ts +1 -1
  444. package/dist/components/slider/index.js +1 -1
  445. package/dist/components/slider/index.js.map +1 -1
  446. package/dist/components/slider/styles.d.ts +3 -3
  447. package/dist/components/slider/styles.js +1 -1
  448. package/dist/components/slider/styles.js.map +1 -1
  449. package/dist/components/switch/context.d.ts +20 -0
  450. package/dist/components/switch/context.js +4 -0
  451. package/dist/components/switch/context.js.map +1 -0
  452. package/dist/components/switch/index.d.ts +3 -13
  453. package/dist/components/switch/index.js +1 -1
  454. package/dist/components/switch/index.js.map +1 -1
  455. package/dist/components/switch/styles.js +1 -1
  456. package/dist/components/switch/styles.js.map +1 -1
  457. package/dist/components/table/body.js +2 -0
  458. package/dist/components/table/body.js.map +1 -0
  459. package/dist/components/table/cell.js +2 -0
  460. package/dist/components/table/cell.js.map +1 -0
  461. package/dist/components/table/constants/table.d.ts +17 -0
  462. package/dist/components/table/constants/table.js +2 -0
  463. package/dist/components/table/constants/table.js.map +1 -0
  464. package/dist/components/table/context.js +1 -1
  465. package/dist/components/table/context.js.map +1 -1
  466. package/dist/components/table/{table-header-cell.d.ts → header-cell.d.ts} +2 -2
  467. package/dist/components/table/header-cell.js +2 -0
  468. package/dist/components/table/header-cell.js.map +1 -0
  469. package/dist/components/table/header.js +2 -0
  470. package/dist/components/table/header.js.map +1 -0
  471. package/dist/components/table/index.d.ts +10 -14
  472. package/dist/components/table/index.js +1 -1
  473. package/dist/components/table/index.js.map +1 -1
  474. package/dist/components/table/row.js +2 -0
  475. package/dist/components/table/row.js.map +1 -0
  476. package/dist/components/table/types.d.ts +25 -2
  477. package/dist/components/tabs/context.d.ts +20 -0
  478. package/dist/components/tabs/context.js +4 -0
  479. package/dist/components/tabs/context.js.map +1 -0
  480. package/dist/components/tabs/index.d.ts +25 -51
  481. package/dist/components/tabs/index.js +1 -3
  482. package/dist/components/tabs/index.js.map +1 -1
  483. package/dist/components/tabs/list.d.ts +11 -0
  484. package/dist/components/tabs/list.js +4 -0
  485. package/dist/components/tabs/list.js.map +1 -0
  486. package/dist/components/tabs/panel.d.ts +11 -0
  487. package/dist/components/tabs/panel.js +2 -0
  488. package/dist/components/tabs/panel.js.map +1 -0
  489. package/dist/components/tabs/styles.js +1 -1
  490. package/dist/components/tabs/styles.js.map +1 -1
  491. package/dist/components/tabs/tab.d.ts +11 -0
  492. package/dist/components/tabs/tab.js +4 -0
  493. package/dist/components/tabs/tab.js.map +1 -0
  494. package/dist/components/text-area-field/context.d.ts +20 -0
  495. package/dist/components/text-area-field/context.js +4 -0
  496. package/dist/components/text-area-field/context.js.map +1 -0
  497. package/dist/components/text-area-field/index.d.ts +3 -13
  498. package/dist/components/text-area-field/index.js +1 -1
  499. package/dist/components/text-area-field/index.js.map +1 -1
  500. package/dist/components/text-field/context.d.ts +17 -0
  501. package/dist/components/text-field/context.js +4 -0
  502. package/dist/components/text-field/context.js.map +1 -0
  503. package/dist/components/text-field/index.d.ts +4 -13
  504. package/dist/components/text-field/index.js +1 -1
  505. package/dist/components/text-field/index.js.map +1 -1
  506. package/dist/components/time-field/index.d.ts +9 -0
  507. package/dist/components/time-field/index.js +1 -1
  508. package/dist/components/time-field/index.js.map +1 -1
  509. package/dist/components/tooltip/context.d.ts +7 -0
  510. package/dist/components/tooltip/context.js +4 -0
  511. package/dist/components/tooltip/context.js.map +1 -0
  512. package/dist/components/tooltip/index.d.ts +22 -42
  513. package/dist/components/tooltip/index.js +1 -1
  514. package/dist/components/tooltip/index.js.map +1 -1
  515. package/dist/components/tooltip/trigger.d.ts +8 -0
  516. package/dist/components/tooltip/trigger.js +4 -0
  517. package/dist/components/tooltip/trigger.js.map +1 -0
  518. package/dist/components/tooltip/types.d.ts +5 -6
  519. package/dist/components/tree/context.d.ts +18 -0
  520. package/dist/components/tree/context.js +4 -0
  521. package/dist/components/tree/context.js.map +1 -0
  522. package/dist/components/tree/index.d.ts +25 -43
  523. package/dist/components/tree/index.js +1 -1
  524. package/dist/components/tree/index.js.map +1 -1
  525. package/dist/components/tree/item-actions.d.ts +13 -0
  526. package/dist/components/tree/item-actions.js +2 -0
  527. package/dist/components/tree/item-actions.js.map +1 -0
  528. package/dist/components/tree/item-content.d.ts +17 -0
  529. package/dist/components/tree/item-content.js +2 -0
  530. package/dist/components/tree/item-content.js.map +1 -0
  531. package/dist/components/tree/item-description.d.ts +11 -0
  532. package/dist/components/tree/item-description.js +2 -0
  533. package/dist/components/tree/item-description.js.map +1 -0
  534. package/dist/components/tree/item-label.d.ts +11 -0
  535. package/dist/components/tree/item-label.js +2 -0
  536. package/dist/components/tree/item-label.js.map +1 -0
  537. package/dist/components/tree/item-prefix-icon.d.ts +12 -0
  538. package/dist/components/tree/item-prefix-icon.js +2 -0
  539. package/dist/components/tree/item-prefix-icon.js.map +1 -0
  540. package/dist/components/tree/item.d.ts +17 -0
  541. package/dist/components/tree/item.js +4 -0
  542. package/dist/components/tree/item.js.map +1 -0
  543. package/dist/components/tree/lines.d.ts +8 -0
  544. package/dist/components/tree/lines.js +2 -0
  545. package/dist/components/tree/lines.js.map +1 -0
  546. package/dist/components/tree/styles.js +1 -1
  547. package/dist/components/tree/styles.js.map +1 -1
  548. package/dist/components/tree/types.d.ts +1 -1
  549. package/dist/components/view-stack/context.d.ts +31 -0
  550. package/dist/components/view-stack/context.js +4 -0
  551. package/dist/components/view-stack/context.js.map +1 -0
  552. package/dist/components/view-stack/index.d.ts +38 -24
  553. package/dist/components/view-stack/index.js +1 -1
  554. package/dist/components/view-stack/index.js.map +1 -1
  555. package/dist/components/view-stack/trigger.d.ts +16 -0
  556. package/dist/components/view-stack/trigger.js +2 -0
  557. package/dist/components/view-stack/trigger.js.map +1 -0
  558. package/dist/components/view-stack/view.d.ts +16 -0
  559. package/dist/components/view-stack/view.js +4 -0
  560. package/dist/components/view-stack/view.js.map +1 -0
  561. package/dist/icons/catalog.d.ts +14 -0
  562. package/dist/icons/catalog.js +1 -1
  563. package/dist/icons/catalog.js.map +1 -1
  564. package/dist/index.css +5 -52
  565. package/dist/index.d.ts +152 -46
  566. package/dist/index.js +1 -1
  567. package/dist/metafile-esm.json +1 -1
  568. package/dist/providers/portal.d.ts +9 -0
  569. package/dist/providers/portal.js +2 -0
  570. package/dist/providers/portal.js.map +1 -0
  571. package/dist/providers/theme-provider.d.ts +6 -6
  572. package/dist/providers/theme-provider.js +1 -1
  573. package/dist/providers/theme-provider.js.map +1 -1
  574. package/dist/styles.css +1306 -340
  575. package/dist/tokens/themes.css +1 -1
  576. package/dist/tokens/themes.d.ts +1 -2
  577. package/dist/tokens/tokens.js +1 -1
  578. package/dist/tokens/tokens.js.map +1 -1
  579. package/package.json +109 -90
  580. package/dist/components/query-builder/group.js.map +0 -1
  581. package/dist/components/table/table-body.js +0 -2
  582. package/dist/components/table/table-body.js.map +0 -1
  583. package/dist/components/table/table-cell.js +0 -2
  584. package/dist/components/table/table-cell.js.map +0 -1
  585. package/dist/components/table/table-header-cell.js +0 -2
  586. package/dist/components/table/table-header-cell.js.map +0 -1
  587. package/dist/components/table/table-header.js +0 -2
  588. package/dist/components/table/table-header.js.map +0 -1
  589. package/dist/components/table/table-row.js +0 -2
  590. package/dist/components/table/table-row.js.map +0 -1
  591. package/dist/lib/react.d.ts +0 -59
  592. package/dist/lib/react.js +0 -9
  593. package/dist/lib/react.js.map +0 -1
  594. /package/dist/components/query-builder/{group.d.ts → rule-group.d.ts} +0 -0
  595. /package/dist/components/table/{table-body.d.ts → body.d.ts} +0 -0
  596. /package/dist/components/table/{table-cell.d.ts → cell.d.ts} +0 -0
  597. /package/dist/components/table/{table-header.d.ts → header.d.ts} +0 -0
  598. /package/dist/components/table/{table-row.d.ts → row.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/dialog/index.tsx"],"names":["title","DialogStyles","DialogContext","DialogTitle","x","className","jsx","Heading","t","H","children","DialogContent","context","useContext","O","state","p","A","size","DialogFooter","props","ref","isSSR","useIsSSR","portal","N","T","classNames","parentRef","useEffect","node","S","port","setPortal","y","rest","composeRenderProps","modal","u","dialog","E","Dialog"],"mappings":"yfAwCwB,MAAA,CAAA,SAAQA,CAAAA,KAAO,CAAA,CAAA,CAAA,MAAS,CAAA,CAAA,CAAA,KAAWC,CAAa,EAE3DC,QACkD,CAAA,CAE/D,MAAA,CAAA,CAAA,CAASC,aAAY,EAAE,CAAA,CAAA,CAAAC,aAAA,CAAA,MAAU,SAAAC,CAAU,EAAiB,QAExDC,EAACC,CAAAA,SAAa,CAAA,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAAC,OAAA,CAAWT,CAAAA,YAAQK,CAAU,SAChD,CAAA,CAAA,CAAAK,CAAAA,SAIK,CAAA,CAAA,CAAA,CAAA,CAAA,QAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,YAEjBC,cAA0B,CAAA,SAAAN,CAAU,CAAA,CAA0B,QAC9DC,CAAAA,CAAC,UAAI,CAAA,CAAA,CAAA,CAAA,CAAA,OAAqBE,GAAA,CAAA,KAAA,CAAAH,CAAU,SAAK,CAAA,CAAA,CAAAK,UAEpC,CAAA,CAAA,CAAA,CAAA,CAAA,QAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,4BAEM,CAAA,SAAAL,CAAU,CAAA,CAA6B,QACjEO,CAAUC,EAAWX,SAEK,EAAI,CAAA,CAAA,CAAA,qBAAyB,CAAA,CAAA,CAAA,CAAAY,qBAAA,CAAA,CAAA,CACvDC,CAAAA,IAA6C,CAAA,CAEnD,SACG,OAAA,CAAA,CAAA,CAAOC,UAAA,CAAAC,0BAAA,CAAA,CAAA,OAAkBT,GAAE,CAAA,QAAA,CAAAH,CAAU,SACpC,CAAA,CAAA,CAAAC,UAAe,CAAA,CAAA,CAAd,CACC,CAAA,aACEY,aAAAA,CACA,QAASH,OAAO,CAAA,CAAA,IAAU,CAAA,CAAG,QAG9B,CAAA,CAAA,EAAA,KACH,GAKNI,iBAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,WA0BpB,CAAA,eAAgC,CAAgB,SACtBC,CAAAA,CAAOC,CAAAA,GAAO,CAAA,CAAA,CAAA,GAAmB,CAEhE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAMC,EAAQC,CAAAA,eAAS,CAAA,CACjB,CAACC,CAAAA,EAAiB,IAAaF,CAAAA,CAAQ,QAAO,CAAA,CAAAG,QAAA,EAAA,CAAS,CAAA,CAAA,CAAA,CAAI,EAC3DC,QAAE,CAAA,CAAA,CAAA,IAAA,CAAA,QAAU,CAAA,IAAA,CAAAC,CAAAA,CAAY,QAAA,CAAA,CAAAC,CAAAA,UAAkB,CAAA,CAAA,CAAA,SAAqBR,EAErE,CAAA,IAAA,CAAA,CAAAS,CAAAA,OACE,CAAA,GAAA,CAAMC,EAAOF,CAAAA,CAAAA,OAAWG,SAAA,CAElBC,IAAe,CAAA,kBAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,IAAc,CAAA,QAEnD,CAAA,aACO,eAELC,GAAc,CAAA,iBAID,CAAA,CAEbA,CAAAA,CAAUX,EAAQ,CAAA,CAAA,CAAA,IAAO,CAAA,CAAA,EAAA,QAC3B,CACF,CAAA,CAAG,CAACA,MAGFhB,aAAC,EAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAOc,EAC7B,CAAA,CAAAZ,GAAA,CAAA,CAAA,CAAA,QAAuB,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,QAAoBgB,CACzChB,GAAA,CAAA0B,qBAAA,CAAA,CAAA,YACMC,CAAAA,KACCd,CAAAA,QACL,CAAAb,GAAA,CAAW4B,aAAmBT,CAAAA,GAAY,CAAA,CAAA,GAAA,CAAA,CAAUtB,iCACxCA,OAEZ,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,SAEA,CAAA,CAAA,CAAA,CAAA,CAAAC,CAAAA,WACE,CAAA,CAAA,CAAW8B,aAAuC/B,KAAAA,CAAAA,CAChDgC,SAAQ,CAAAC,kBAAA,CAAA,CAAAjC,EAAW,YAGrBC,SAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAWiC,QAAS,CAAA/B,GAAA,CAAAgC,MAAA,CAAWb,CAAAA,SAAoB,CAAA,CAC5D,CAAA,CAAA,SACH,EACF,EACF,MAKRc,EAAO,CAAA,QAAA,CAAA,CAAA,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACrBA,EAAO,CAAA,WACA,CAAA,SACA,CAAA,CAAA,OAAU9B,CACjB8B,cAAO,CAAA,CAAA,KAAStB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,MAAAA,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 { UNSAFE_PortalProvider } from '@react-aria/overlays';\nimport { useIsSSR } from '@react-aria/ssr';\nimport {\n type ComponentProps,\n createContext,\n useContext,\n useEffect,\n useState,\n} from 'react';\nimport {\n Dialog as AriaDialog,\n type ContextValue,\n composeRenderProps,\n DialogTrigger,\n Heading,\n type HeadingProps,\n Modal,\n ModalOverlay,\n OverlayTriggerStateContext,\n useContextProps,\n} from 'react-aria-components';\nimport { isSlottedContextValue } from '@/lib/utils';\nimport { ButtonContext } from '../button';\nimport { DialogStyles } from './styles';\nimport type { DialogProps } from './types';\n\nconst { overlay, modal, dialog, title, content, footer } = DialogStyles();\n\nexport const DialogContext =\n createContext<ContextValue<DialogProps, HTMLDivElement>>(null);\n\nfunction DialogTitle({ children, className }: HeadingProps) {\n return (\n <Heading slot='title' className={title({ className })}>\n {children}\n </Heading>\n );\n}\nDialogTitle.displayName = 'Dialog.Title';\n\nfunction DialogContent({ children, className }: ComponentProps<'div'>) {\n return <div className={content({ className })}>{children}</div>;\n}\nDialogContent.displayName = 'Dialog.Content';\n\nfunction DialogFooter({ children, className }: ComponentProps<'footer'>) {\n const context = useContext(DialogContext);\n const size =\n (isSlottedContextValue(context) ? null : context?.size) ?? 'small';\n const state = useContext(OverlayTriggerStateContext);\n\n return (\n <footer className={footer({ className })}>\n <ButtonContext.Provider\n value={{\n size,\n onPress: state?.close ?? (() => undefined),\n }}\n >\n {children}\n </ButtonContext.Provider>\n </footer>\n );\n}\n\nDialogFooter.displayName = 'Dialog.Footer';\n\n/**\n * Dialog - A modal dialog component for important content and interactions\n *\n * Provides accessible modal functionality with focus management, backdrop handling,\n * and keyboard navigation. Supports multiple sizes and customizable dismissal behavior.\n * Perfect for confirmations, forms, or any content requiring user focus.\n *\n * @example\n * // Basic dialog with trigger\n * <Dialog.Trigger>\n * <Button>Open Dialog</Button>\n * <Dialog>\n * {({ close }) => (\n * <>\n * <Dialog.Title>Confirm Action</Dialog.Title>\n * <p>Are you sure you want to continue?</p>\n * <Dialog.Footer>\n * <Dialog.Button onPress={close}>Confirm</Dialog.Button>\n * </Dialog.Footer>\n * </>\n * )}\n * </Dialog>\n * </Dialog.Trigger>\n */\nexport function Dialog({ ref, ...props }: DialogProps) {\n [props, ref] = useContextProps(props, ref ?? null, DialogContext);\n\n const isSSR = useIsSSR();\n const [portal, setPortal] = useState(isSSR ? null : document.body);\n const { children, classNames, parentRef, size = 'small', ...rest } = props;\n\n useEffect(() => {\n const node = parentRef?.current;\n // TODO: Ensure proper ssr hydration\n const port = isSSR ? null : document.createElement('div');\n\n if (node && port) {\n node.appendChild(port);\n\n setPortal(port);\n }\n\n return () => {\n port?.remove();\n\n setPortal(isSSR ? null : document.body);\n };\n }, [isSSR, parentRef]);\n\n return (\n <DialogContext.Provider value={props}>\n <UNSAFE_PortalProvider getContainer={() => portal}>\n <ModalOverlay\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.overlay, (className) =>\n overlay({ className }),\n )}\n data-size={size}\n >\n <Modal\n className={composeRenderProps(classNames?.modal, (className) =>\n modal({ className }),\n )}\n >\n <AriaDialog className={dialog({ className: classNames?.dialog })}>\n {children}\n </AriaDialog>\n </Modal>\n </ModalOverlay>\n </UNSAFE_PortalProvider>\n </DialogContext.Provider>\n );\n}\nDialog.displayName = 'Dialog';\nDialog.Trigger = DialogTrigger;\nDialog.Title = DialogTitle;\nDialog.Content = DialogContent;\nDialog.Footer = DialogFooter;\n"]}
1
+ {"version":3,"sources":["../../../src/components/dialog/index.tsx"],"names":["modal","dialog","DialogStyles","D","ref","props","DialogContext","children","size","rest","o","jsx","P","composeRenderProps","classNames","overlay","i","p","AriaDialog"],"mappings":"kSA0BiB,KAAAA,CAAO,OAAAC,CAAO,CAAA,CAAIC,KA0B5B,CAAA,CAAA,CAAA,OAAgB,CAAE,CAAA,CAAAC,YAAA,EAAAC,CAAK,UACpBA,CAAG,CAAA,GAAoBC,CAAAA,CAAOD,CAAAA,GAAO,CAAA,CAAA,CAAA,CAAME,CAAa,CAAA,CAEhE,mBAAM,CAAE,CAAA,CAAA,EAAA,IAAA,CAAAC,aAAAA,CAAU,CAAA,KAAA,CAAA,QAAY,CAAA,CAAA,CAAA,UAAW,CAAA,CAAAC,CAAAA,SAAgB,CAAA,CAAA,CAAGC,IAASJ,CAErE,CAAA,CAAA,OACGC,CAAAA,GAAc,CAAA,CAAA,CAAA,CAAA,CAAA,OAASI,GAAA,CAAOL,aAAAA,CAC7B,QAAA,CAAAM,CAAAA,KAAgB,CAAA,CAAA,CAAA,QACd,8BACG,CAAA,CAAGF,CAAAA,QAEJ,CAAAC,GAAA,CAAAE,YAAA,CAAA,CAAA,GAAWC,EAAmBC,GAAY,CAAA,CAAA,CAAA,SACxCC,CAAQC,kBAAE,CAAA,CAAA,EAAA,OAAU,CAAC,CACvB,EACA,CAAA,CAAA,CAAA,SAAWR,CAAAA,CAEX,CAAA,CAAA,CAAA,CAAA,WACE,CAAA,CAAA,CAAA,QAA8BM,CAAAA,GAAAA,CAAYG,KAAA,CAAA,CAAA,SAChC,CAAAD,kBAAA,CAAA,CAAA,EAAA,KAAU,CAAC,CACrB,EAEA,CAAA,CAAA,CAAA,SAACE,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,QAAkB,CAAER,qBAAuB,CAAA,CAAA,CAAA,CAAA,aACpDH,MAGP,CAAA,CACF,SAGN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport { PortalProvider } from '@/providers/portal';\nimport 'client-only';\nimport {\n Dialog as AriaDialog,\n composeRenderProps,\n Modal,\n ModalOverlay,\n useContextProps,\n} from 'react-aria-components';\nimport { DialogContext } from './context';\nimport { DialogStyles } from './styles';\nimport type { DialogProps } from './types';\n\nconst { overlay, modal, dialog } = DialogStyles();\n\n/**\n * Dialog - A modal dialog component for important content and interactions\n *\n * Provides accessible modal functionality with focus management, backdrop handling,\n * and keyboard navigation. Supports multiple sizes and customizable dismissal behavior.\n * Perfect for confirmations, forms, or any content requiring user focus.\n *\n * @example\n * // Basic dialog with trigger\n * <DialogTrigger>\n * <Button>Open Dialog</Button>\n * <Dialog>\n * {({ close }) => (\n * <>\n * <DialogTitle>Confirm Action</DialogTitle>\n * <p>Are you sure you want to continue?</p>\n * <DialogFooter>\n * <Button onPress={close}>Confirm</Button>\n * </DialogFooter>\n * </>\n * )}\n * </Dialog>\n * </DialogTrigger>\n */\nexport function Dialog({ ref, ...props }: DialogProps) {\n [props, ref] = useContextProps(props, ref ?? null, DialogContext);\n\n const { children, classNames, parentRef, size = 'small', ...rest } = props;\n\n return (\n <DialogContext.Provider value={props}>\n <PortalProvider parentRef={parentRef}>\n <ModalOverlay\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.overlay, (className) =>\n overlay({ className }),\n )}\n data-size={size}\n >\n <Modal\n className={composeRenderProps(classNames?.modal, (className) =>\n modal({ className }),\n )}\n >\n <AriaDialog className={dialog({ className: classNames?.dialog })}>\n {children}\n </AriaDialog>\n </Modal>\n </ModalOverlay>\n </PortalProvider>\n </DialogContext.Provider>\n );\n}\n"]}
@@ -4,8 +4,8 @@ import * as tailwind_merge from 'tailwind-merge';
4
4
  declare const DialogStyles: tailwind_variants.TVReturnType<{
5
5
  [key: string]: {
6
6
  [key: string]: tailwind_merge.ClassNameValue | {
7
- content?: tailwind_merge.ClassNameValue;
8
7
  dialog?: tailwind_merge.ClassNameValue;
8
+ content?: tailwind_merge.ClassNameValue;
9
9
  footer?: tailwind_merge.ClassNameValue;
10
10
  title?: tailwind_merge.ClassNameValue;
11
11
  overlay?: tailwind_merge.ClassNameValue;
@@ -15,8 +15,8 @@ declare const DialogStyles: tailwind_variants.TVReturnType<{
15
15
  } | {
16
16
  [x: string]: {
17
17
  [x: string]: tailwind_merge.ClassNameValue | {
18
- content?: tailwind_merge.ClassNameValue;
19
18
  dialog?: tailwind_merge.ClassNameValue;
19
+ content?: tailwind_merge.ClassNameValue;
20
20
  footer?: tailwind_merge.ClassNameValue;
21
21
  title?: tailwind_merge.ClassNameValue;
22
22
  overlay?: tailwind_merge.ClassNameValue;
@@ -33,8 +33,8 @@ declare const DialogStyles: tailwind_variants.TVReturnType<{
33
33
  }, undefined, {
34
34
  [key: string]: {
35
35
  [key: string]: tailwind_merge.ClassNameValue | {
36
- content?: tailwind_merge.ClassNameValue;
37
36
  dialog?: tailwind_merge.ClassNameValue;
37
+ content?: tailwind_merge.ClassNameValue;
38
38
  footer?: tailwind_merge.ClassNameValue;
39
39
  title?: tailwind_merge.ClassNameValue;
40
40
  overlay?: tailwind_merge.ClassNameValue;
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { HeadingProps } from 'react-aria-components';
3
+
4
+ declare function DialogTitle({ children, className }: HeadingProps): react_jsx_runtime.JSX.Element;
5
+
6
+ export { DialogTitle };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {Heading}from'react-aria-components';import {DialogStyles}from'./styles.js';const{title:l}=DialogStyles();function s({children:t,className:i}){return jsx(Heading,{slot:"title",className:l({className:i}),children:t})}export{s as DialogTitle};//# sourceMappingURL=title.js.map
4
+ //# sourceMappingURL=title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/dialog/title.tsx"],"names":["DialogStyles","e","n","o"],"mappings":"gJAiBQ,CAAA,KAAUA,CAAAA,CAAa,EAExBC,YAAA,EAAA,CAAA,SAAuB,CAAA,CAAA,CAAA,oBAAqC,CACjE,CAAA,CAAA,CAAA,CAAA,OACGC,GAAQ,CAAAC,OAAA,CAAA,CAAA,YAAa,CAAA,SAAmB,CAAA,CAAA,CAAA,CAAA,SAAW,CACjD,CAAA,CAAA,CAAA,CAAA,QAGP,CAAA,CAAA,CAAA,CAAA","file":"title.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Heading, type HeadingProps } from 'react-aria-components';\nimport { DialogStyles } from './styles';\n\nconst { title } = DialogStyles();\n\nexport function DialogTitle({ children, className }: HeadingProps) {\n return (\n <Heading slot='title' className={title({ className })}>\n {children}\n </Heading>\n );\n}\n"]}
@@ -0,0 +1 @@
1
+ export { DialogTrigger } from 'react-aria-components';
@@ -0,0 +1,2 @@
1
+ export{DialogTrigger}from'react-aria-components';//# sourceMappingURL=trigger.js.map
2
+ //# sourceMappingURL=trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"trigger.js","sourcesContent":[]}
@@ -1,5 +1,5 @@
1
1
  import { RefAttributes, RefObject } from 'react';
2
- import { ModalOverlayProps, DialogProps as DialogProps$1 } from 'react-aria-components';
2
+ import { ModalOverlayProps, DialogProps as DialogProps$1, DialogTriggerProps as DialogTriggerProps$1 } from 'react-aria-components';
3
3
 
4
4
  type DialogProps = Omit<ModalOverlayProps, 'children' | 'className'> & Pick<DialogProps$1, 'children'> & RefAttributes<HTMLDivElement> & {
5
5
  classNames?: {
@@ -10,5 +10,6 @@ type DialogProps = Omit<ModalOverlayProps, 'children' | 'className'> & Pick<Dial
10
10
  parentRef?: RefObject<HTMLElement | null>;
11
11
  size?: 'small' | 'large';
12
12
  };
13
+ type DialogTriggerProps = DialogTriggerProps$1;
13
14
 
14
- export type { DialogProps };
15
+ export type { DialogProps, DialogTriggerProps };
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { ProviderProps } from '../../lib/types.js';
4
+ import { ContextValue } from 'react-aria-components';
5
+ import { DividerProps } from './types.js';
6
+
7
+ declare const DividerContext: react.Context<ContextValue<DividerProps, HTMLHRElement>>;
8
+ declare function DividerProvider({ children, ...props }: ProviderProps<DividerProps>): react_jsx_runtime.JSX.Element;
9
+
10
+ export { DividerContext, DividerProvider };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';const t=createContext(null);function v({children:r,...e}){return jsx(t.Provider,{value:e,children:r})}export{t as DividerContext,v as DividerProvider};//# sourceMappingURL=context.js.map
4
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/divider/context.tsx"],"names":["DividerContext","createContext","DividerProvider","children","props","jsx"],"mappings":"0FAoBO,MAAMA,CAAAA,CACXC,aAAAA,CAAyD,IAAI,EAExD,SAASC,CAAAA,CAAgB,CAC9B,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAgC,CAC9B,OACEC,GAAAA,CAACL,CAAAA,CAAe,QAAA,CAAf,CAAwB,KAAA,CAAOI,CAAAA,CAAQ,QAAA,CAAAD,EAAS,CAErD","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { DividerProps } from './types';\n\nexport const DividerContext =\n createContext<ContextValue<DividerProps, HTMLHRElement>>(null);\n\nexport function DividerProvider({\n children,\n ...props\n}: ProviderProps<DividerProps>) {\n return (\n <DividerContext.Provider value={props}>{children}</DividerContext.Provider>\n );\n}\n"]}
@@ -1,14 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ContextValue } from 'react-aria-components';
4
- import { ProviderProps } from '../../lib/types.js';
5
2
  import { DividerProps } from './types.js';
3
+ import 'react';
6
4
 
7
- declare const DividerContext: react.Context<ContextValue<DividerProps, HTMLHRElement>>;
8
- declare function DividerProvider({ children, ...props }: ProviderProps<DividerProps>): react_jsx_runtime.JSX.Element;
9
- declare namespace DividerProvider {
10
- var displayName: string;
11
- }
12
5
  /**
13
6
  * Divider - A simple horizontal or vertical rule component
14
7
  *
@@ -24,9 +17,5 @@ declare namespace DividerProvider {
24
17
  * <Divider orientation="vertical" />
25
18
  */
26
19
  declare function Divider({ ref, ...props }: DividerProps): react_jsx_runtime.JSX.Element;
27
- declare namespace Divider {
28
- var displayName: string;
29
- var Provider: typeof DividerProvider;
30
- }
31
20
 
32
- export { Divider, DividerContext };
21
+ export { Divider };
@@ -1,4 +1,2 @@
1
- 'use client';
2
-
3
- import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';import {useContextProps}from'react-aria-components';import {DividerStyles}from'./styles.js';const i=createContext(null);function o({children:r,...e}){return jsx(i.Provider,{value:e,children:r})}o.displayName="Divider.Provider";function t({ref:r,...e}){[e,r]=useContextProps(e,r??null,i);const{className:d,orientation:v="horizontal",...p}=e;return jsx("hr",{...p,ref:r,className:DividerStyles({className:d}),"data-orientation":v})}t.displayName="Divider",t.Provider=o;export{t as Divider,i as DividerContext};//# sourceMappingURL=index.js.map
1
+ import {jsx}from'react/jsx-runtime';import'client-only';import {useContextProps}from'react-aria-components';import {DividerContext}from'./context.js';import {DividerStyles}from'./styles.js';function D({ref:t,...i}){[i,t]=useContextProps(i,t??null,DividerContext);const{className:o,orientation:r="horizontal",...e}=i;return jsx("hr",{...e,ref:t,className:DividerStyles({className:o}),"data-orientation":r})}export{D as Divider};//# sourceMappingURL=index.js.map
4
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/divider/index.tsx"],"names":["createContext","s","props","n","DividerProvider","ref","useContextProps","rest","l","Divider"],"mappings":"sLAsBEA,MAAyD,CAAA,CAAAC,aAAA,CAAI,IAE/D,EAAA,SAA2B,CAAA,CAAA,CAAA,UAAaC,CAAM,GAC5C,CAAA,CAAA,CAAA,CAAA,OACkBC,GAAA,CAAA,CAAA,CAAA,eAAwB,CAAA,CAAA,CAAA,QAE5C,CACAC,EAAgB,CAAA,CAAA,CAAA,CAAA,WAAc,CAAA,kBAgBvB,CAAA,SAAmB,CAAA,CAAA,CAAAC,GAAK,CAAA,CAAGH,CAAM,GACtC,CAACA,EAAOG,CAAG,CAAA,CAAIC,EAAgBJ,CAAAA,CAAOG,eAAAA,CAAAA,CAAO,QAE7C,SAAQ,CAAA,SAAW,CAAA,CAAA,CAAA,WAAc,CAAA,CAAA,CAAA,YAAiBE,CAAK,IAEvD,CAAA,CAAA,CAAA,CAAA,eAEK,CAAGA,CAAAA,KACCF,GACL,CAAA,CAAA,CAAA,SAA2B,CAAAG,aAAA,CAAA,CAAA,SAAW,CACtC,sBAGN,CACAC,CAAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,WAAc,CAAA,SACd,CAAA,CAAA,CAAA,QAAWL,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\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport { type ContextValue, useContextProps } from 'react-aria-components';\nimport { DividerStyles } from './styles';\nimport type { ProviderProps } from '@/lib/types';\nimport type { DividerProps } from './types';\n\nexport const DividerContext =\n createContext<ContextValue<DividerProps, HTMLHRElement>>(null);\n\nfunction DividerProvider({ children, ...props }: ProviderProps<DividerProps>) {\n return (\n <DividerContext.Provider value={props}>{children}</DividerContext.Provider>\n );\n}\nDividerProvider.displayName = 'Divider.Provider';\n\n/**\n * Divider - A simple horizontal or vertical rule component\n *\n * Provides a visual separator between content sections with support for both\n * horizontal and vertical orientations.\n *\n * @example\n * // Basic horizontal divider\n * <Divider />\n *\n * @example\n * // Vertical divider\n * <Divider orientation=\"vertical\" />\n */\nexport function Divider({ ref, ...props }: DividerProps) {\n [props, ref] = useContextProps(props, ref ?? null, DividerContext);\n\n const { className, orientation = 'horizontal', ...rest } = props;\n\n return (\n <hr\n {...rest}\n ref={ref}\n className={DividerStyles({ className })}\n data-orientation={orientation}\n />\n );\n}\nDivider.displayName = 'Divider';\nDivider.Provider = DividerProvider;\n"]}
1
+ {"version":3,"sources":["../../../src/components/divider/index.tsx"],"names":["ref","props","useContextProps","n","DividerContext","m","jsx","a","s"],"mappings":"8LAkCO,SAAmBA,CAAK,CAAA,CAAA,GAAS,CAAiB,CACvD,CAACC,GAAU,EAAIC,CAAAA,CAAgBD,CAAAA,CAAOD,CAAAA,CAAAA,CAAO,CAAAG,eAAA,CAAA,CAAA,CAAMC,CAAc,EAEjE,IAAA,CAAMC,cAAE,CAAA,CAAA,KAAA,CAAA,SAAW,CAAA,CAAA,CAAA,WAAc,CAAA,CAAA,CAAA,YAA0BJ,CAE3D,GAAA,CAAA,CAAA,CAAA,CACEK,CAAAA,OACGC,GAAA,CAAA,IACD,CAAA,CAAA,GACA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,SAA2B,CAAAC,aAAA,CAAA,CAAA,SAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,kBAGN,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\n'use client';\n\nimport 'client-only';\nimport { useContextProps } from 'react-aria-components';\nimport { DividerContext } from './context';\nimport { DividerStyles } from './styles';\nimport type { DividerProps } from './types';\n\n/**\n * Divider - A simple horizontal or vertical rule component\n *\n * Provides a visual separator between content sections with support for both\n * horizontal and vertical orientations.\n *\n * @example\n * // Basic horizontal divider\n * <Divider />\n *\n * @example\n * // Vertical divider\n * <Divider orientation=\"vertical\" />\n */\nexport function Divider({ ref, ...props }: DividerProps) {\n [props, ref] = useContextProps(props, ref ?? null, DividerContext);\n\n const { className, orientation = 'horizontal', ...rest } = props;\n\n return (\n <hr\n {...rest}\n ref={ref}\n className={DividerStyles({ className })}\n data-orientation={orientation}\n />\n );\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function DrawerBack(): react_jsx_runtime.JSX.Element | null;
4
+
5
+ export { DrawerBack };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import {ChevronLeft}from'@accelint/icons';import'client-only';import {useContext}from'react';import {Button}from'../button/index.js';import {Icon}from'../icon/index.js';import {ViewStackContext}from'../view-stack/context.js';import {DrawerTrigger}from'./trigger.js';function w(){const{stack:o}=useContext(ViewStackContext);return o.length>1?jsx(DrawerTrigger,{for:"back",children:jsx(Button,{variant:"icon",children:jsx(Icon,{children:jsx(ChevronLeft,{})})})}):null}export{w as DrawerBack};//# sourceMappingURL=back.js.map
4
+ //# sourceMappingURL=back.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/back.tsx"],"names":["useContext","stack","jsx","DrawerTrigger","n","m","Button","c","r","Icon","i","t"],"mappings":"8SAuBoBA,SAClB,CAAA,EAAOC,CAAAA,KAAM,CAAA,KACXC,CAACC,CAAAA,CAAA,CAAcC,UAAA,CAAAC,gBAAA,CAAI,QACjB,CAAA,CAAA,MAAAH,CAAAA,CAACI,CAAAA,GAAA,CAAOC,aAAA,CAAA,CAAA,GAAA,CAAA,MAAQ,CAAA,QACd,CAAAC,GAAAN,CAAAA,MAACO,EAAA,OACC,CAAA,MAAC,CAAA,SAILD,GAAA,CAAAE,IAAA,CACN,CAAA,QAAA,CAAAF,GAAA,CAAAG,WAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA","file":"back.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 { ChevronLeft } from '@accelint/icons';\nimport 'client-only';\nimport { useContext } from 'react';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { ViewStackContext } from '../view-stack/context';\nimport { DrawerTrigger } from './trigger';\n\nexport function DrawerBack() {\n const { stack } = useContext(ViewStackContext);\n return stack.length > 1 ? (\n <DrawerTrigger for='back'>\n <Button variant='icon'>\n <Icon>\n <ChevronLeft />\n </Icon>\n </Button>\n </DrawerTrigger>\n ) : null;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function DrawerClose(): react_jsx_runtime.JSX.Element;
4
+
5
+ export { DrawerClose };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import {Cancel}from'@accelint/icons';import'client-only';import {Button}from'../button/index.js';import {Icon}from'../icon/index.js';import {DrawerTrigger}from'./trigger.js';function a(){return jsx(DrawerTrigger,{for:"close",children:jsx(Button,{variant:"icon",children:jsx(Icon,{children:jsx(Cancel,{})})})})}export{a as DrawerClose};//# sourceMappingURL=close.js.map
2
+ //# sourceMappingURL=close.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/close.tsx"],"names":["jsx","Button","r","e","o"],"mappings":"kNAsBK,SAAkB,CAAA,EAAA,CACjB,WAAAA,aAAAA,CAACC,CAAAA,GAAO,CAAA,OAAQ,CAAA,qBACdD,OACE,CAAA,MAAAA,CAAAA,QACF,CACFE,GAAA,CACFC,IAEJ,CAAA,CAAA,QAAA,CAAAD,GAAA,CAAAE,MAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"close.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 { Cancel } from '@accelint/icons';\nimport 'client-only';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { DrawerTrigger } from './trigger';\n\nexport function DrawerClose() {\n return (\n <DrawerTrigger for='close'>\n <Button variant='icon'>\n <Icon>\n <Cancel />\n </Icon>\n </Button>\n </DrawerTrigger>\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 DrawerContent({ className, ...rest }: ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
5
+
6
+ export { DrawerContent };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{content:r}=DrawerStyles();function m({className:t,...o}){return jsx("div",{...o,className:r({className:t})})}export{m as DrawerContent};//# sourceMappingURL=content.js.map
4
+ //# sourceMappingURL=content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/content.tsx"],"names":["DrawerStyles","e","rest","n"],"mappings":"+FAiBA,aAAoBA,CAAAA,CAAa,CAAA,CAE1BC,wBACL,CAAA,CAAA,CAAA,WACGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAA,KAAK,CAAGD,CAAAA,GAAM,CAAA,CAAA,SAAqB,CAAA,CAAA,CAAA,CAAA,UAAc,CAC3D,CAAA,CAAA,CAAA,CAAA","file":"content.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { DrawerStyles } from './styles';\nimport type { ComponentPropsWithRef } from 'react';\n\nconst { content } = DrawerStyles();\n\nexport function DrawerContent({\n className,\n ...rest\n}: ComponentPropsWithRef<'div'>) {\n return <div {...rest} className={content({ className })} />;\n}\n"]}
@@ -0,0 +1,38 @@
1
+ import * as react from 'react';
2
+ import { Broadcast } from '@accelint/bus';
3
+ import { UniqueId } from '@accelint/core';
4
+ import { DrawerContextValue, DrawerEvent } from './types.js';
5
+ import '@react-types/shared';
6
+ import 'react-aria-components';
7
+ import 'tailwind-variants';
8
+ import '../../lib/types.js';
9
+ import '../button/types.js';
10
+ import '../button/styles.js';
11
+ import 'tailwind-merge';
12
+ import '../view-stack/types.js';
13
+ import '../view-stack/events.js';
14
+ import './events.js';
15
+ import './styles.js';
16
+
17
+ declare const DrawerContext: react.Context<DrawerContextValue>;
18
+ declare const bus: Broadcast<DrawerEvent>;
19
+ declare const DrawerEventHandlers: {
20
+ readonly close: (stack: UniqueId) => void;
21
+ readonly open: (view: UniqueId) => void;
22
+ readonly toggle: (view: UniqueId) => void;
23
+ readonly back: (stack: UniqueId) => void;
24
+ readonly clear: (stack: UniqueId) => void;
25
+ readonly push: (view: UniqueId) => void;
26
+ readonly reset: (stack: UniqueId) => void;
27
+ };
28
+ declare function useDrawerEmit(): {
29
+ readonly close: (stack: UniqueId) => void;
30
+ readonly open: (view: UniqueId) => void;
31
+ readonly toggle: (view: UniqueId) => void;
32
+ readonly back: (stack: UniqueId) => void;
33
+ readonly clear: (stack: UniqueId) => void;
34
+ readonly push: (view: UniqueId) => void;
35
+ readonly reset: (stack: UniqueId) => void;
36
+ };
37
+
38
+ export { DrawerContext, DrawerEventHandlers, bus, useDrawerEmit };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {Broadcast}from'@accelint/bus';import {useEmit}from'@accelint/bus/react';import'client-only';import {createContext}from'react';import {ViewStackEventHandlers,useViewStackEmit}from'../view-stack/context.js';import {DrawerEventTypes}from'./events.js';const E=createContext({register:()=>{},unregister:()=>{},placement:"left"}),i=Broadcast.getInstance(),D={...ViewStackEventHandlers,close:ViewStackEventHandlers.clear,open:e=>i.emit(DrawerEventTypes.open,{view:e}),toggle:e=>i.emit(DrawerEventTypes.toggle,{view:e})};function v(){const e=useViewStackEmit(),a=useEmit(DrawerEventTypes.open),s=useEmit(DrawerEventTypes.toggle);return {...e,close:e.clear,open:r=>a({view:r}),toggle:r=>s({view:r})}}export{E as DrawerContext,D as DrawerEventHandlers,i as bus,v as useDrawerEmit};//# sourceMappingURL=context.js.map
4
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/context.tsx"],"names":["m","c","ViewStackEventHandlers","n","view","bus","DrawerEventTypes","t","viewStackEmit","useViewStackEmit","useEmit","o","emitToggle","emitOpen"],"mappings":"gQA0BE,MAAA,CAAA,CAAAA,aAAA,CAAA,CAAA,QACA,CAAA,IAAA,CAAA,CAAA,CAAA,UACA,iBACD,CAAA,MAE4B,CAAA,CAAA,CAAA,CAAA,CAAAC,SAAA,CAAA,WAG3B,EAAGC,CACH,CAAA,CAAA,CAAA,GAAOA,sBAAAA,CAAuB,KAAA,CAC9BC,sBAAA,CAAA,KAAOC,CAAmBC,IAAI,CAAA,CAAA,EAAKC,CAAiB,CAAA,IAAM,CAAEC,qBAAK,CAAC,CAAA,IAClE,CAAA,CAAA,CAAA,CAASH,CAAAA,UAA4BE,CAAiB,CAAA,IAAA,CAAAC,gBAAQ,CAAE,MAAK,CAAC,CACxE,IAEO,CAAA,CAAA,CAAA,CAAA,EAAA,SACL,CAAA,EAAMC,CAAgBC,MACLC,CAAAA,CAAqBJ,gBAAAA,EAAiB,CAAA,CAAA,CAAIK,OAAA,CACrDC,gBAAAA,CAAaF,IAAsC,CAAA,CAAA,CAAA,CAAAC,OAAA,CAAMJ,gBAAA,CAE/D,MAAO,CACL,CAAA,OACA,CAAA,GAAOC,CAAAA,CAAc,KAAA,CACrB,CAAA,CAAA,KAAOJ,CAAmBS,IAAW,CAAA,CAAA,EAAAT,CAAK,CAAC,CAAA,IAC3C,CAAA,CAAA,CAAA,CAASA,CAAAA,MAAgC,CAAA,CAAA,EAAAA,CAAK,CAAC,CACjD,IACF,CAAA,CAAA,CAAA,CAAA,CAAA","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport { Broadcast } from '@accelint/bus';\nimport { useEmit } from '@accelint/bus/react';\nimport type { UniqueId } from '@accelint/core';\nimport 'client-only';\nimport { createContext } from 'react';\nimport {\n useViewStackEmit,\n ViewStackEventHandlers,\n} from '../view-stack/context';\nimport { DrawerEventTypes } from './events';\nimport type { DrawerContextValue, DrawerEvent } from './types';\n\nexport const DrawerContext = createContext<DrawerContextValue>({\n register: () => undefined,\n unregister: () => undefined,\n placement: 'left',\n});\n\nexport const bus = Broadcast.getInstance<DrawerEvent>();\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"]}
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithRef } from 'react';
3
+
4
+ declare function DrawerFooter({ className, ...rest }: ComponentPropsWithRef<'footer'>): react_jsx_runtime.JSX.Element;
5
+
6
+ export { DrawerFooter };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{footer:e}=DrawerStyles();function m({className:o,...r}){return jsx("footer",{...r,className:e({className:o})})}export{m as DrawerFooter};//# sourceMappingURL=footer.js.map
4
+ //# sourceMappingURL=footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/footer.tsx"],"names":["DrawerStyles","t","rest","p"],"mappings":"+FAiBA,YAAmBA,CAAAA,CAAa,CAAA,CAEzBC,wBACL,CAAA,CAAA,CAAA,WACGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAA,QAAQ,CAAGD,CAAAA,GAAM,CAAA,CAAA,SAAoB,CAAA,CAAA,CAAA,CAAA,UAAc,CAC7D,CAAA,CAAA,CAAA,CAAA","file":"footer.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 { footer } = DrawerStyles();\n\nexport function DrawerFooter({\n className,\n ...rest\n}: ComponentPropsWithRef<'footer'>) {\n return <footer {...rest} className={footer({ className })} />;\n}\n"]}
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DrawerTitleProps } 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
+ /**
19
+ * To change size of title, use the `level` prop: `1`-`3` (large), `4`-`6` (medium).
20
+ *
21
+ * `level` also changes the semantic heading tag number `h1`-`h6`
22
+ */
23
+ declare function DrawerHeaderTitle({ className, level, ...rest }: DrawerTitleProps): react_jsx_runtime.JSX.Element;
24
+
25
+ export { DrawerHeaderTitle };
@@ -0,0 +1,2 @@
1
+ import {jsx}from'react/jsx-runtime';import'client-only';import {Heading}from'react-aria-components';import {DrawerTitleStyles}from'./styles.js';function s({className:e,level:r,...t}){return jsx(Heading,{...t,className:DrawerTitleStyles({className:e,level:r}),level:r})}export{s as DrawerHeaderTitle};//# sourceMappingURL=header-title.js.map
2
+ //# sourceMappingURL=header-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/header-title.tsx"],"names":["rest","p","o","i"],"mappings":"gJAwBO,SACL,CAAA,CAAA,CAAA,iBAEA,CAAA,CAAGA,CACL,GACE,CAAA,CAAA,CAAA,CAAA,OACGC,GACE,CAAAC,OAAA,CAAGF,IACJ,CAAA,CAAA,SAA+B,CAAAG,iBAAA,CAAA,CAAA,SAAW,CAAA,CAAA,CAAA,KAAO,CACjD,CAAA,CAAA,CAAA,CAAA,KAGN,CAAA,CAAA,CAAA,CAAA","file":"header-title.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { Heading } from 'react-aria-components';\nimport { DrawerTitleStyles } from './styles';\nimport type { DrawerTitleProps } from './types';\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 */\nexport function DrawerHeaderTitle({\n className,\n level,\n ...rest\n}: DrawerTitleProps) {\n return (\n <Heading\n {...rest}\n className={DrawerTitleStyles({ className, level })}\n level={level}\n />\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 DrawerHeader({ className, title, children, ...rest }: ComponentPropsWithRef<'header'>): react_jsx_runtime.JSX.Element;
5
+
6
+ export { DrawerHeader };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {useContext}from'react';import {Header}from'react-aria-components';import {ViewStackContext}from'../view-stack/context.js';import {DrawerBack}from'./back.js';import {DrawerClose}from'./close.js';import {DrawerHeaderTitle}from'./header-title.js';import {DrawerStyles}from'./styles.js';const{header:d}=DrawerStyles();function P({className:o,title:r,children:t,...a}){const{stack:m}=useContext(ViewStackContext),i=m.length>1?4:1;return jsx(Header,{...a,className:d({className:o}),children:r?jsxs(Fragment,{children:[jsx(DrawerBack,{}),jsx(DrawerHeaderTitle,{level:i,className:"w-fit",children:r}),jsx(DrawerClose,{})]}):t})}export{P as DrawerHeader};//# sourceMappingURL=header.js.map
4
+ //# sourceMappingURL=header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/drawer/header.tsx"],"names":["w","title","children","stack","ViewStackContext","level","p","s","jsx","rest","header","n","DrawerBack","h","D","DrawerHeaderTitle","f","e","c","l"],"mappings":"yWAwBO,KAAA,CAAA,MACL,CAAA,CAAA,CAAA,CAAAA,YAAA,EAAA,CAAA,SACA,CAAAC,CAAAA,CACA,SAAAC,CAAAA,CACA,CAAA,KACkC,CAClC,CAAA,CAAA,QAAQ,CAAA,CAAAC,CAAM,IAAeC,CAAgB,CAAA,CACvCC,KAAc,CAAA,KAAS,CAAA,CAAI,EAAIC,UAAA,CAErCC,gBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACEC,MAAS,CAAA,CAAGC,EAAM,CAAA,CAAA,CAAA,OAAWC,GAAAA,CAAOC,MAAE,CAAA,CAAA,GAAA,CAAA,CAAA,SACnC,CAAA,CAAA,CAAA,CAAA,SACC,CACE,CAAA,CAAA,CAAA,CAAA,QAACC,CAAAA,CAAA,CAAAC,IAAW,CAAAC,QACZN,CAAAA,CAACO,SAAyBV,CAAAA,GAAO,CAAAW,UAAA,CAAA,EAAA,CAAA,CAAAC,GAAA,CAAAC,iBAAU,CAAA,CAAA,KAAA,CACxC,CAAA,CAAA,SACH,CAAA,OACa,CAAA,QAOvB,CAAA,CAAA,CAAA,CAAA,CAAAD,GAAA,CAAAE,WAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"header.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 } from 'react';\nimport { Header } from 'react-aria-components';\nimport { ViewStackContext } from '../view-stack/context';\nimport { DrawerBack } from './back';\nimport { DrawerClose } from './close';\nimport { DrawerHeaderTitle } from './header-title';\nimport { DrawerStyles } from './styles';\n\nconst { header } = DrawerStyles();\n\nexport function 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 <DrawerBack />\n <DrawerHeaderTitle level={level} className='w-fit'>\n {title}\n </DrawerHeaderTitle>\n <DrawerClose />\n </>\n ) : (\n children\n )}\n </Header>\n );\n}\n"]}
@@ -1,104 +1,46 @@
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 DrawerTrigger({ children, for: events }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
30
- declare namespace DrawerTrigger {
31
- var displayName: string;
32
- }
33
- declare function DrawerClose(): react_jsx_runtime.JSX.Element;
34
- declare namespace DrawerClose {
35
- var displayName: string;
36
- }
37
- declare function DrawerBack(): react_jsx_runtime.JSX.Element | null;
38
- declare namespace DrawerBack {
39
- var displayName: string;
40
- }
41
- declare function DrawerLayoutMain({ className, ...rest }: ComponentPropsWithRef<'main'>): react_jsx_runtime.JSX.Element;
42
- declare namespace DrawerLayoutMain {
43
- var displayName: string;
44
- }
45
- declare function DrawerLayout({ className, extend, push, ...rest }: DrawerLayoutProps): react_jsx_runtime.JSX.Element;
46
- declare namespace DrawerLayout {
47
- var displayName: string;
48
- var Main: typeof DrawerLayoutMain;
49
- }
50
- declare function DrawerMenuItem({ for: id, children, classNames, toggle, textValue, ...rest }: DrawerMenuItemProps): react_jsx_runtime.JSX.Element | null;
51
- declare namespace DrawerMenuItem {
52
- var displayName: string;
53
- }
54
- declare function DrawerMenu({ className, position, children, ...rest }: DrawerMenuProps): react_jsx_runtime.JSX.Element;
55
- declare namespace DrawerMenu {
56
- var displayName: string;
57
- var Item: typeof DrawerMenuItem;
58
- }
59
- declare function DrawerPanel({ className, ...rest }: ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
60
- declare namespace DrawerPanel {
61
- var displayName: string;
62
- }
63
- declare function DrawerView({ id, children, className, ...rest }: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
64
- declare namespace DrawerView {
65
- var displayName: string;
66
- }
67
18
  /**
68
- * To change size of title, use the `level` prop: `1`-`3` (large), `4`-`6` (medium).
19
+ * Drawer - Slide-in panel for navigation or contextual content
20
+ *
21
+ * A flexible panel that slides in from the viewport edge and supports
22
+ * stacked views, headers, footers, and programmatic triggers.
23
+ *
24
+ * @example
25
+ * const ids = { drawer: uuid(), a: uuid() };
26
+ *
27
+ * <DrawerLayout push="left">
28
+ * <DrawerLayoutMain>
29
+ * <DrawerTrigger for={`open:${ids.a}`}>
30
+ * <Button variant="icon">Open</Button>
31
+ * </DrawerTrigger>
32
+ * </DrawerLayoutMain>
69
33
  *
70
- * `level` also changes the semantic heading tag number `h1`-`h6`
34
+ * <Drawer id={ids.drawer} defaultView={ids.a}>
35
+ * <DrawerPanel>
36
+ * <DrawerView id={ids.a}>
37
+ * <DrawerHeader title="Title A" />
38
+ * <DrawerContent>Content for View A</DrawerContent>
39
+ * </DrawerView>
40
+ * </DrawerPanel>
41
+ * </Drawer>
42
+ * </DrawerLayout>
71
43
  */
72
- declare function DrawerHeaderTitle({ className, level, ...rest }: DrawerTitleProps): react_jsx_runtime.JSX.Element;
73
- declare namespace DrawerHeaderTitle {
74
- var displayName: string;
75
- }
76
- declare function DrawerHeader({ className, title, children, ...rest }: ComponentPropsWithRef<'header'>): react_jsx_runtime.JSX.Element;
77
- declare namespace DrawerHeader {
78
- var displayName: string;
79
- var Title: typeof DrawerHeaderTitle;
80
- }
81
- declare function DrawerContent({ className, ...rest }: ComponentPropsWithRef<'div'>): react_jsx_runtime.JSX.Element;
82
- declare namespace DrawerContent {
83
- var displayName: string;
84
- }
85
- declare function DrawerFooter({ className, ...rest }: ComponentPropsWithRef<'footer'>): react_jsx_runtime.JSX.Element;
86
- declare namespace DrawerFooter {
87
- var displayName: string;
88
- }
89
44
  declare function Drawer({ id, children, className, defaultView, placement, size, onChange, ...rest }: DrawerProps): react_jsx_runtime.JSX.Element;
90
- declare namespace Drawer {
91
- var displayName: string;
92
- var Layout: typeof DrawerLayout;
93
- var Menu: typeof DrawerMenu;
94
- var Panel: typeof DrawerPanel;
95
- var View: typeof DrawerView;
96
- var Header: typeof DrawerHeader;
97
- var Content: typeof DrawerContent;
98
- var Footer: typeof DrawerFooter;
99
- var Trigger: typeof DrawerTrigger;
100
- var Close: typeof DrawerClose;
101
- var Back: typeof DrawerBack;
102
- }
103
45
 
104
- export { Drawer, DrawerContext, DrawerEventHandlers };
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 {isUUID}from'@accelint/core';import {Cancel,ChevronLeft}from'@accelint/icons';import {Pressable}from'@react-aria/interactions';import {createContext,useRef,useState,useCallback,useEffect,useContext}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,ViewStack,ViewStackContext}from'../view-stack/index.js';import {ViewStackEventTypes}from'../view-stack/events.js';import {DrawerEventTypes}from'./events.js';import {DrawerStyles,DrawerMenuStyles,DrawerTitleStyles}from'./styles.js';const {layout:ie,main:se,drawer:le,panel:pe,view:ce,header:me,content:ue,footer:we}=DrawerStyles(),{menu:fe,item:de}=DrawerMenuStyles(),p=Broadcast.getInstance(),k=createContext({register:()=>{},unregister:()=>{},placement:"left"}),ge={...ViewStackEventHandlers,close:ViewStackEventHandlers.clear,open:e=>p.emit(DrawerEventTypes.open,{view:e}),toggle:e=>p.emit(DrawerEventTypes.toggle,{view:e})};function T({children:e,for:t}){const{parent:a}=useContext(ViewStackContext);function i(){for(const s of Array.isArray(t)?t:[t]){let[l,c]=isUUID(s)?["push",s]:s.split(":");c??=a,c&&ge[l](c);}}return jsx(Pressable,{onPress:i,children:e})}T.displayName="Drawer.Trigger";function L(){return jsx(o.Trigger,{for:"close",children:jsx(Button,{variant:"icon",children:jsx(Icon,{children:jsx(Cancel,{})})})})}L.displayName="Drawer.Close";function W(){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}W.displayName="Drawer.Back";function A({className:e,...t}){return jsx("main",{...t,className:se({className:e})})}A.displayName="Drawer.Layout.Main";function I({className:e,extend:t="left right",push:a,...i}){return jsx("div",{...i,className:ie({className:e}),"data-extend":t,"data-push":a})}I.displayName="Drawer.Layout",I.Main=A;const De={left:"right",right:"left",top:"bottom",bottom:"top"};function V({for:e,children:t,classNames:a,toggle:i,textValue:s,...l}){const{parent:c,stack:f}=useContext(ViewStackContext),{placement:m}=useContext(k),d=f.at(-1),N=i?"toggle":"open",g=useRef(null);return c?jsxs(Tooltip,{children:[jsx(Tooltip.Trigger,{children:jsx(T,{for:`${N}:${e}`,children:jsx(ToggleButton,{...l,ref:g,className:composeRenderProps(a?.item,u=>de({className:u})),role:"tab",variant:"icon",isSelected:e===d||f.length>1&&f.includes(e),children:composeRenderProps(t,u=>jsx(Icon,{children:u}))})})}),jsx(Tooltip.Body,{triggerRef:g,placement:De[m],offset:6,className:a?.tooltip,children:s})]}):null}V.displayName="Drawer.Menu.Item";function D({className:e,position:t="center",children:a,...i}){return containsExactChildren({children:a,componentName:D.displayName,restrictions:[[V,{min:1}],[T,{min:0,max:0}]]}),jsx("nav",{...i,className:fe({position:t,className:e}),children:a})}D.displayName="Drawer.Menu",D.Item=V;function x({className:e,...t}){return jsx("div",{...t,className:pe({className:e})})}x.displayName="Drawer.Panel";function F({id:e,children:t,className:a,...i}){const{register:s,unregister:l}=useContext(k);return useEffect(()=>{s(e);},[s,l,e]),jsx(ViewStack.View,{id:e,children:jsx("div",{...i,className:ce({className:a}),role:"tabpanel",children:t})})}F.displayName="Drawer.View";function O({className:e,level:t,...a}){return jsx(Heading,{...a,className:DrawerTitleStyles({className:e,level:t}),level:t})}O.displayName="Drawer.Title";function M({className:e,title:t,children:a,...i}){const{stack:s}=useContext(ViewStackContext),l=s.length>1?4:1;return jsx(Header,{...i,className:me({className:e}),children:t?jsxs(Fragment,{children:[jsx(o.Back,{}),jsx(o.Header.Title,{level:l,className:"w-fit",children:t}),jsx(o.Close,{})]}):a})}M.displayName="Drawer.Header",M.Title=O;function $({className:e,...t}){return jsx("div",{...t,className:ue({className:e})})}$.displayName="Drawer.Content";function z({className:e,...t}){return jsx("footer",{...t,className:we({className:e})})}z.displayName="Drawer.Footer";function o({id:e,children:t,className:a,defaultView:i,placement:s="left",size:l="medium",onChange:c,...f}){containsExactChildren({children:t,componentName:o.displayName,restrictions:[[D,{min:0,max:1}],[x,{min:1,max:1}]]});const m=useRef(new Set),[d,N]=useState(i||null),g=useCallback(n=>{m.current.has(n?.payload?.view)&&(p.emit(ViewStackEventTypes.clear,{stack:e}),p.emit(ViewStackEventTypes.push,n.payload));},[e]),u=useCallback(n=>{m.current.has(n?.payload?.view)&&(p.emit(ViewStackEventTypes.clear,{stack:e}),d!==n?.payload?.view&&p.emit(ViewStackEventTypes.push,n.payload));},[e,d]);return useEffect(()=>{const n=[p.on(DrawerEventTypes.open,g),p.on(DrawerEventTypes.toggle,u)];return ()=>{for(const J of n)J();}},[g,u]),jsx(k.Provider,{value:{register:n=>m.current.add(n),unregister:n=>m.current.delete(n),placement:s},children:jsx(ViewStack,{id:e,defaultView:i,onChange:n=>{N(n),c?.(n);},children:jsx("div",{...f,className:le({className:a}),"data-open":!!d||null,"data-placement":s,"data-size":l,children:t})})})}o.displayName="Drawer",o.Layout=I,o.Menu=D,o.Panel=x,o.View=F,o.Header=M,o.Content=$,o.Footer=z,o.Trigger=T,o.Close=L,o.Back=W;export{o as Drawer,k as DrawerContext,ge as DrawerEventHandlers};//# 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