@accelint/design-toolkit 9.3.0 → 9.4.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 (722) hide show
  1. package/catalog-info.yaml +1 -1
  2. package/dist/components/accordion/context.d.ts +6 -0
  3. package/dist/components/accordion/context.js +6 -0
  4. package/dist/components/accordion/context.js.map +1 -1
  5. package/dist/components/accordion/group.d.ts +37 -2
  6. package/dist/components/accordion/group.js +34 -0
  7. package/dist/components/accordion/group.js.map +1 -1
  8. package/dist/components/accordion/header.d.ts +27 -2
  9. package/dist/components/accordion/header.js +25 -1
  10. package/dist/components/accordion/header.js.map +1 -1
  11. package/dist/components/accordion/index.d.ts +18 -4
  12. package/dist/components/accordion/index.js +16 -2
  13. package/dist/components/accordion/index.js.map +1 -1
  14. package/dist/components/accordion/panel.d.ts +29 -2
  15. package/dist/components/accordion/panel.js +26 -0
  16. package/dist/components/accordion/panel.js.map +1 -1
  17. package/dist/components/accordion/trigger.d.ts +25 -2
  18. package/dist/components/accordion/trigger.js +23 -1
  19. package/dist/components/accordion/trigger.js.map +1 -1
  20. package/dist/components/accordion/types.d.ts +33 -0
  21. package/dist/components/action-bar/index.d.ts +29 -8
  22. package/dist/components/action-bar/index.js +27 -6
  23. package/dist/components/action-bar/index.js.map +1 -1
  24. package/dist/components/action-bar/types.d.ts +7 -0
  25. package/dist/components/avatar/context.d.ts +22 -4
  26. package/dist/components/avatar/context.js +18 -0
  27. package/dist/components/avatar/context.js.map +1 -1
  28. package/dist/components/avatar/index.d.ts +22 -15
  29. package/dist/components/avatar/index.js +21 -14
  30. package/dist/components/avatar/index.js.map +1 -1
  31. package/dist/components/avatar/types.d.ts +13 -0
  32. package/dist/components/badge/context.d.ts +20 -2
  33. package/dist/components/badge/context.js +18 -0
  34. package/dist/components/badge/context.js.map +1 -1
  35. package/dist/components/badge/index.d.ts +28 -14
  36. package/dist/components/badge/index.js +28 -14
  37. package/dist/components/badge/index.js.map +1 -1
  38. package/dist/components/badge/types.d.ts +9 -0
  39. package/dist/components/breadcrumbs/index.d.ts +8 -0
  40. package/dist/components/breadcrumbs/index.js +7 -0
  41. package/dist/components/breadcrumbs/index.js.map +1 -1
  42. package/dist/components/breadcrumbs/item.d.ts +23 -0
  43. package/dist/components/breadcrumbs/item.js +23 -1
  44. package/dist/components/breadcrumbs/item.js.map +1 -1
  45. package/dist/components/breadcrumbs/types.d.ts +17 -0
  46. package/dist/components/button/context.d.ts +62 -8
  47. package/dist/components/button/context.js +54 -0
  48. package/dist/components/button/context.js.map +1 -1
  49. package/dist/components/button/index.d.ts +21 -2
  50. package/dist/components/button/index.js +19 -0
  51. package/dist/components/button/index.js.map +1 -1
  52. package/dist/components/button/link.d.ts +20 -0
  53. package/dist/components/button/link.js +20 -0
  54. package/dist/components/button/link.js.map +1 -1
  55. package/dist/components/button/toggle.d.ts +23 -2
  56. package/dist/components/button/toggle.js +22 -1
  57. package/dist/components/button/toggle.js.map +1 -1
  58. package/dist/components/button/types.d.ts +26 -0
  59. package/dist/components/checkbox/context.d.ts +9 -3
  60. package/dist/components/checkbox/context.js +6 -0
  61. package/dist/components/checkbox/context.js.map +1 -1
  62. package/dist/components/checkbox/group.d.ts +31 -2
  63. package/dist/components/checkbox/group.js +28 -0
  64. package/dist/components/checkbox/group.js.map +1 -1
  65. package/dist/components/checkbox/index.d.ts +19 -2
  66. package/dist/components/checkbox/index.js +19 -1
  67. package/dist/components/checkbox/index.js.map +1 -1
  68. package/dist/components/checkbox/types.d.ts +19 -0
  69. package/dist/components/chip/context.d.ts +22 -4
  70. package/dist/components/chip/context.js +18 -0
  71. package/dist/components/chip/context.js.map +1 -1
  72. package/dist/components/chip/deletable.d.ts +38 -2
  73. package/dist/components/chip/deletable.js +36 -1
  74. package/dist/components/chip/deletable.js.map +1 -1
  75. package/dist/components/chip/index.d.ts +24 -2
  76. package/dist/components/chip/index.js +22 -0
  77. package/dist/components/chip/index.js.map +1 -1
  78. package/dist/components/chip/list.d.ts +47 -2
  79. package/dist/components/chip/list.js +45 -0
  80. package/dist/components/chip/list.js.map +1 -1
  81. package/dist/components/chip/selectable.d.ts +32 -0
  82. package/dist/components/chip/selectable.js +31 -0
  83. package/dist/components/chip/selectable.js.map +1 -1
  84. package/dist/components/chip/types.d.ts +27 -0
  85. package/dist/components/classification-badge/context.d.ts +18 -2
  86. package/dist/components/classification-badge/context.js +16 -0
  87. package/dist/components/classification-badge/context.js.map +1 -1
  88. package/dist/components/classification-badge/index.d.ts +26 -8
  89. package/dist/components/classification-badge/index.js +25 -8
  90. package/dist/components/classification-badge/index.js.map +1 -1
  91. package/dist/components/classification-badge/types.d.ts +4 -0
  92. package/dist/components/classification-banner/context.d.ts +20 -4
  93. package/dist/components/classification-banner/context.js +16 -0
  94. package/dist/components/classification-banner/context.js.map +1 -1
  95. package/dist/components/classification-banner/index.d.ts +12 -2
  96. package/dist/components/classification-banner/index.js +9 -0
  97. package/dist/components/classification-banner/index.js.map +1 -1
  98. package/dist/components/classification-banner/types.d.ts +4 -0
  99. package/dist/components/clock/index.d.ts +12 -2
  100. package/dist/components/clock/index.js +10 -0
  101. package/dist/components/clock/index.js.map +1 -1
  102. package/dist/components/clock/types.d.ts +4 -0
  103. package/dist/components/color-picker/index.d.ts +12 -10
  104. package/dist/components/color-picker/index.js +10 -8
  105. package/dist/components/color-picker/index.js.map +1 -1
  106. package/dist/components/color-picker/types.d.ts +8 -0
  107. package/dist/components/combobox-field/context.d.ts +20 -4
  108. package/dist/components/combobox-field/context.js +16 -0
  109. package/dist/components/combobox-field/context.js.map +1 -1
  110. package/dist/components/combobox-field/index.d.ts +15 -2
  111. package/dist/components/combobox-field/index.js +13 -1
  112. package/dist/components/combobox-field/index.js.map +1 -1
  113. package/dist/components/combobox-field/types.d.ts +19 -0
  114. package/dist/components/coordinate-field/context.d.ts +15 -6
  115. package/dist/components/coordinate-field/context.js +9 -0
  116. package/dist/components/coordinate-field/context.js.map +1 -1
  117. package/dist/components/coordinate-field/coordinate-utils.d.ts +8 -0
  118. package/dist/components/coordinate-field/coordinate-utils.js +8 -0
  119. package/dist/components/coordinate-field/coordinate-utils.js.map +1 -1
  120. package/dist/components/coordinate-field/index.d.ts +29 -2
  121. package/dist/components/coordinate-field/index.js +29 -3
  122. package/dist/components/coordinate-field/index.js.map +1 -1
  123. package/dist/components/coordinate-field/segment.d.ts +27 -2
  124. package/dist/components/coordinate-field/segment.js +25 -0
  125. package/dist/components/coordinate-field/segment.js.map +1 -1
  126. package/dist/components/coordinate-field/styles.module.css +5 -1
  127. package/dist/components/date-field/index.d.ts +27 -2
  128. package/dist/components/date-field/index.js +25 -0
  129. package/dist/components/date-field/index.js.map +1 -1
  130. package/dist/components/date-field/types.d.ts +19 -3
  131. package/dist/components/deferred-collection/index.d.ts +10 -2
  132. package/dist/components/deferred-collection/index.js +8 -0
  133. package/dist/components/deferred-collection/index.js.map +1 -1
  134. package/dist/components/deferred-collection/types.d.ts +6 -3
  135. package/dist/components/details-list/context.d.ts +25 -4
  136. package/dist/components/details-list/context.js +21 -0
  137. package/dist/components/details-list/context.js.map +1 -1
  138. package/dist/components/details-list/index.d.ts +9 -2
  139. package/dist/components/details-list/index.js +7 -0
  140. package/dist/components/details-list/index.js.map +1 -1
  141. package/dist/components/details-list/label.d.ts +18 -2
  142. package/dist/components/details-list/label.js +16 -0
  143. package/dist/components/details-list/label.js.map +1 -1
  144. package/dist/components/details-list/types.d.ts +14 -0
  145. package/dist/components/details-list/value.d.ts +20 -2
  146. package/dist/components/details-list/value.js +17 -0
  147. package/dist/components/details-list/value.js.map +1 -1
  148. package/dist/components/dialog/content.d.ts +23 -2
  149. package/dist/components/dialog/content.js +20 -0
  150. package/dist/components/dialog/content.js.map +1 -1
  151. package/dist/components/dialog/context.d.ts +5 -2
  152. package/dist/components/dialog/context.js +3 -0
  153. package/dist/components/dialog/context.js.map +1 -1
  154. package/dist/components/dialog/footer.d.ts +26 -2
  155. package/dist/components/dialog/footer.js +23 -0
  156. package/dist/components/dialog/footer.js.map +1 -1
  157. package/dist/components/dialog/index.d.ts +12 -2
  158. package/dist/components/dialog/index.js +10 -0
  159. package/dist/components/dialog/index.js.map +1 -1
  160. package/dist/components/dialog/title.d.ts +21 -2
  161. package/dist/components/dialog/title.js +18 -0
  162. package/dist/components/dialog/title.js.map +1 -1
  163. package/dist/components/dialog/trigger.d.ts +18 -0
  164. package/dist/components/dialog/trigger.js +17 -0
  165. package/dist/components/dialog/trigger.js.map +1 -1
  166. package/dist/components/dialog/types.d.ts +12 -0
  167. package/dist/components/divider/context.d.ts +24 -4
  168. package/dist/components/divider/context.js +20 -0
  169. package/dist/components/divider/context.js.map +1 -1
  170. package/dist/components/divider/index.d.ts +13 -2
  171. package/dist/components/divider/index.js +10 -0
  172. package/dist/components/divider/index.js.map +1 -1
  173. package/dist/components/divider/types.d.ts +4 -4
  174. package/dist/components/drawer/back.d.ts +21 -2
  175. package/dist/components/drawer/back.js +19 -1
  176. package/dist/components/drawer/back.js.map +1 -1
  177. package/dist/components/drawer/close.d.ts +25 -2
  178. package/dist/components/drawer/close.js +28 -3
  179. package/dist/components/drawer/close.js.map +1 -1
  180. package/dist/components/drawer/content.d.ts +22 -2
  181. package/dist/components/drawer/content.js +19 -0
  182. package/dist/components/drawer/content.js.map +1 -1
  183. package/dist/components/drawer/context.d.ts +46 -4
  184. package/dist/components/drawer/context.js +45 -2
  185. package/dist/components/drawer/context.js.map +1 -1
  186. package/dist/components/drawer/events.d.ts +2 -0
  187. package/dist/components/drawer/events.js +2 -0
  188. package/dist/components/drawer/events.js.map +1 -1
  189. package/dist/components/drawer/footer.d.ts +24 -2
  190. package/dist/components/drawer/footer.js +21 -0
  191. package/dist/components/drawer/footer.js.map +1 -1
  192. package/dist/components/drawer/header-title.d.ts +22 -4
  193. package/dist/components/drawer/header-title.js +19 -2
  194. package/dist/components/drawer/header-title.js.map +1 -1
  195. package/dist/components/drawer/header.d.ts +34 -2
  196. package/dist/components/drawer/header.js +42 -2
  197. package/dist/components/drawer/header.js.map +1 -1
  198. package/dist/components/drawer/index.d.ts +14 -2
  199. package/dist/components/drawer/index.js +16 -0
  200. package/dist/components/drawer/index.js.map +1 -1
  201. package/dist/components/drawer/layout-main.d.ts +23 -2
  202. package/dist/components/drawer/layout-main.js +20 -0
  203. package/dist/components/drawer/layout-main.js.map +1 -1
  204. package/dist/components/drawer/layout.d.ts +25 -2
  205. package/dist/components/drawer/layout.js +22 -0
  206. package/dist/components/drawer/layout.js.map +1 -1
  207. package/dist/components/drawer/menu-item.d.ts +25 -2
  208. package/dist/components/drawer/menu-item.js +22 -0
  209. package/dist/components/drawer/menu-item.js.map +1 -1
  210. package/dist/components/drawer/menu.d.ts +22 -2
  211. package/dist/components/drawer/menu.js +19 -0
  212. package/dist/components/drawer/menu.js.map +1 -1
  213. package/dist/components/drawer/panel.d.ts +21 -2
  214. package/dist/components/drawer/panel.js +18 -0
  215. package/dist/components/drawer/panel.js.map +1 -1
  216. package/dist/components/drawer/trigger.d.ts +31 -2
  217. package/dist/components/drawer/trigger.js +29 -1
  218. package/dist/components/drawer/trigger.js.map +1 -1
  219. package/dist/components/drawer/types.d.ts +149 -2
  220. package/dist/components/drawer/view.d.ts +25 -2
  221. package/dist/components/drawer/view.js +22 -0
  222. package/dist/components/drawer/view.js.map +1 -1
  223. package/dist/components/flashcard/index.d.ts +129 -27
  224. package/dist/components/flashcard/index.js +120 -18
  225. package/dist/components/flashcard/index.js.map +1 -1
  226. package/dist/components/flashcard/styles.module.css +1 -1
  227. package/dist/components/flashcard/types.d.ts +12 -0
  228. package/dist/components/hero/context.d.ts +5 -2
  229. package/dist/components/hero/context.js +3 -0
  230. package/dist/components/hero/context.js.map +1 -1
  231. package/dist/components/hero/index.d.ts +9 -2
  232. package/dist/components/hero/index.js +7 -0
  233. package/dist/components/hero/index.js.map +1 -1
  234. package/dist/components/hero/subtitle.d.ts +17 -2
  235. package/dist/components/hero/subtitle.js +15 -0
  236. package/dist/components/hero/subtitle.js.map +1 -1
  237. package/dist/components/hero/title.d.ts +15 -2
  238. package/dist/components/hero/title.js +13 -0
  239. package/dist/components/hero/title.js.map +1 -1
  240. package/dist/components/hero/types.d.ts +9 -0
  241. package/dist/components/hotkey/context.d.ts +24 -4
  242. package/dist/components/hotkey/context.js +20 -0
  243. package/dist/components/hotkey/context.js.map +1 -1
  244. package/dist/components/hotkey/index.d.ts +17 -2
  245. package/dist/components/hotkey/index.js +15 -0
  246. package/dist/components/hotkey/index.js.map +1 -1
  247. package/dist/components/hotkey/set.d.ts +21 -2
  248. package/dist/components/hotkey/set.js +18 -0
  249. package/dist/components/hotkey/set.js.map +1 -1
  250. package/dist/components/hotkey/types.d.ts +4 -0
  251. package/dist/components/icon/context.d.ts +24 -4
  252. package/dist/components/icon/context.js +20 -0
  253. package/dist/components/icon/context.js.map +1 -1
  254. package/dist/components/icon/index.d.ts +15 -2
  255. package/dist/components/icon/index.js +13 -0
  256. package/dist/components/icon/index.js.map +1 -1
  257. package/dist/components/icon/types.d.ts +4 -0
  258. package/dist/components/input/context.d.ts +4 -0
  259. package/dist/components/input/context.js +4 -0
  260. package/dist/components/input/context.js.map +1 -1
  261. package/dist/components/input/index.d.ts +17 -2
  262. package/dist/components/input/index.js +16 -1
  263. package/dist/components/input/index.js.map +1 -1
  264. package/dist/components/input/types.d.ts +16 -0
  265. package/dist/components/kanban/card-body.d.ts +10 -2
  266. package/dist/components/kanban/card-body.js +8 -0
  267. package/dist/components/kanban/card-body.js.map +1 -1
  268. package/dist/components/kanban/card-header-actions.d.ts +10 -2
  269. package/dist/components/kanban/card-header-actions.js +8 -0
  270. package/dist/components/kanban/card-header-actions.js.map +1 -1
  271. package/dist/components/kanban/card-header-title.d.ts +10 -2
  272. package/dist/components/kanban/card-header-title.js +8 -0
  273. package/dist/components/kanban/card-header-title.js.map +1 -1
  274. package/dist/components/kanban/card-header.d.ts +12 -2
  275. package/dist/components/kanban/card-header.js +10 -0
  276. package/dist/components/kanban/card-header.js.map +1 -1
  277. package/dist/components/kanban/card.d.ts +26 -2
  278. package/dist/components/kanban/card.js +23 -0
  279. package/dist/components/kanban/card.js.map +1 -1
  280. package/dist/components/kanban/column-actions.d.ts +10 -2
  281. package/dist/components/kanban/column-actions.js +9 -1
  282. package/dist/components/kanban/column-actions.js.map +1 -1
  283. package/dist/components/kanban/column-container.d.ts +10 -2
  284. package/dist/components/kanban/column-container.js +8 -0
  285. package/dist/components/kanban/column-container.js.map +1 -1
  286. package/dist/components/kanban/column-content.d.ts +13 -2
  287. package/dist/components/kanban/column-content.js +11 -0
  288. package/dist/components/kanban/column-content.js.map +1 -1
  289. package/dist/components/kanban/column-header-actions.d.ts +13 -2
  290. package/dist/components/kanban/column-header-actions.js +11 -0
  291. package/dist/components/kanban/column-header-actions.js.map +1 -1
  292. package/dist/components/kanban/column-header-drag-handle.d.ts +7 -2
  293. package/dist/components/kanban/column-header-drag-handle.js +6 -1
  294. package/dist/components/kanban/column-header-drag-handle.js.map +1 -1
  295. package/dist/components/kanban/column-header-title.d.ts +10 -2
  296. package/dist/components/kanban/column-header-title.js +8 -0
  297. package/dist/components/kanban/column-header-title.js.map +1 -1
  298. package/dist/components/kanban/column-header.d.ts +12 -2
  299. package/dist/components/kanban/column-header.js +10 -0
  300. package/dist/components/kanban/column-header.js.map +1 -1
  301. package/dist/components/kanban/column.d.ts +22 -2
  302. package/dist/components/kanban/column.js +19 -0
  303. package/dist/components/kanban/column.js.map +1 -1
  304. package/dist/components/kanban/context.d.ts +49 -2
  305. package/dist/components/kanban/context.js +30 -0
  306. package/dist/components/kanban/context.js.map +1 -1
  307. package/dist/components/kanban/header-actions.d.ts +10 -2
  308. package/dist/components/kanban/header-actions.js +8 -0
  309. package/dist/components/kanban/header-actions.js.map +1 -1
  310. package/dist/components/kanban/header-search.d.ts +9 -2
  311. package/dist/components/kanban/header-search.js +7 -0
  312. package/dist/components/kanban/header-search.js.map +1 -1
  313. package/dist/components/kanban/header-title.d.ts +10 -2
  314. package/dist/components/kanban/header-title.js +8 -0
  315. package/dist/components/kanban/header-title.js.map +1 -1
  316. package/dist/components/kanban/header.d.ts +12 -2
  317. package/dist/components/kanban/header.js +10 -0
  318. package/dist/components/kanban/header.js.map +1 -1
  319. package/dist/components/kanban/kanban.d.ts +33 -4
  320. package/dist/components/kanban/kanban.js +29 -0
  321. package/dist/components/kanban/kanban.js.map +1 -1
  322. package/dist/components/kanban/types.d.ts +51 -0
  323. package/dist/components/label/context.d.ts +25 -4
  324. package/dist/components/label/context.js +21 -0
  325. package/dist/components/label/context.js.map +1 -1
  326. package/dist/components/label/index.d.ts +16 -2
  327. package/dist/components/label/index.js +14 -0
  328. package/dist/components/label/index.js.map +1 -1
  329. package/dist/components/label/types.d.ts +5 -0
  330. package/dist/components/lines/index.d.ts +10 -0
  331. package/dist/components/lines/index.js +9 -0
  332. package/dist/components/lines/index.js.map +1 -1
  333. package/dist/components/lines/types.d.ts +6 -0
  334. package/dist/components/link/context.d.ts +21 -2
  335. package/dist/components/link/context.js +18 -0
  336. package/dist/components/link/context.js.map +1 -1
  337. package/dist/components/link/index.d.ts +12 -2
  338. package/dist/components/link/index.js +9 -0
  339. package/dist/components/link/index.js.map +1 -1
  340. package/dist/components/link/types.d.ts +5 -0
  341. package/dist/components/list/context.d.ts +11 -2
  342. package/dist/components/list/context.js +9 -0
  343. package/dist/components/list/context.js.map +1 -1
  344. package/dist/components/list/index.d.ts +11 -2
  345. package/dist/components/list/index.js +9 -0
  346. package/dist/components/list/index.js.map +1 -1
  347. package/dist/components/list/item-content.d.ts +9 -2
  348. package/dist/components/list/item-content.js +6 -0
  349. package/dist/components/list/item-content.js.map +1 -1
  350. package/dist/components/list/item-description.d.ts +9 -2
  351. package/dist/components/list/item-description.js +7 -0
  352. package/dist/components/list/item-description.js.map +1 -1
  353. package/dist/components/list/item-title.d.ts +9 -2
  354. package/dist/components/list/item-title.js +7 -0
  355. package/dist/components/list/item-title.js.map +1 -1
  356. package/dist/components/list/item.d.ts +10 -2
  357. package/dist/components/list/item.js +8 -0
  358. package/dist/components/list/item.js.map +1 -1
  359. package/dist/components/list/types.d.ts +22 -0
  360. package/dist/components/menu/context.d.ts +6 -2
  361. package/dist/components/menu/context.js +4 -0
  362. package/dist/components/menu/context.js.map +1 -1
  363. package/dist/components/menu/index.d.ts +24 -3
  364. package/dist/components/menu/index.js +22 -1
  365. package/dist/components/menu/index.js.map +1 -1
  366. package/dist/components/menu/item-description.d.ts +17 -2
  367. package/dist/components/menu/item-description.js +15 -0
  368. package/dist/components/menu/item-description.js.map +1 -1
  369. package/dist/components/menu/item-label.d.ts +17 -2
  370. package/dist/components/menu/item-label.js +15 -0
  371. package/dist/components/menu/item-label.js.map +1 -1
  372. package/dist/components/menu/item.d.ts +23 -2
  373. package/dist/components/menu/item.js +21 -1
  374. package/dist/components/menu/item.js.map +1 -1
  375. package/dist/components/menu/section.d.ts +23 -2
  376. package/dist/components/menu/section.js +20 -0
  377. package/dist/components/menu/section.js.map +1 -1
  378. package/dist/components/menu/separator.d.ts +16 -2
  379. package/dist/components/menu/separator.js +14 -0
  380. package/dist/components/menu/separator.js.map +1 -1
  381. package/dist/components/menu/submenu.d.ts +18 -2
  382. package/dist/components/menu/submenu.js +16 -0
  383. package/dist/components/menu/submenu.js.map +1 -1
  384. package/dist/components/menu/trigger.d.ts +15 -0
  385. package/dist/components/menu/trigger.js +15 -0
  386. package/dist/components/menu/trigger.js.map +1 -1
  387. package/dist/components/menu/types.d.ts +25 -0
  388. package/dist/components/notice/events.d.ts +9 -0
  389. package/dist/components/notice/events.js +9 -0
  390. package/dist/components/notice/events.js.map +1 -1
  391. package/dist/components/notice/index.d.ts +34 -2
  392. package/dist/components/notice/index.js +32 -1
  393. package/dist/components/notice/index.js.map +1 -1
  394. package/dist/components/notice/list.d.ts +31 -2
  395. package/dist/components/notice/list.js +28 -0
  396. package/dist/components/notice/list.js.map +1 -1
  397. package/dist/components/notice/notice-icon.d.ts +22 -2
  398. package/dist/components/notice/notice-icon.js +23 -1
  399. package/dist/components/notice/notice-icon.js.map +1 -1
  400. package/dist/components/notice/types.d.ts +60 -0
  401. package/dist/components/notice/utils.d.ts +8 -0
  402. package/dist/components/notice/utils.js +8 -0
  403. package/dist/components/notice/utils.js.map +1 -1
  404. package/dist/components/options/context.d.ts +1 -0
  405. package/dist/components/options/context.js +1 -0
  406. package/dist/components/options/context.js.map +1 -1
  407. package/dist/components/options/index.d.ts +15 -2
  408. package/dist/components/options/index.js +13 -0
  409. package/dist/components/options/index.js.map +1 -1
  410. package/dist/components/options/item-content.d.ts +22 -2
  411. package/dist/components/options/item-content.js +19 -0
  412. package/dist/components/options/item-content.js.map +1 -1
  413. package/dist/components/options/item-description.d.ts +14 -2
  414. package/dist/components/options/item-description.js +12 -0
  415. package/dist/components/options/item-description.js.map +1 -1
  416. package/dist/components/options/item-label.d.ts +14 -2
  417. package/dist/components/options/item-label.js +12 -0
  418. package/dist/components/options/item-label.js.map +1 -1
  419. package/dist/components/options/item.d.ts +24 -2
  420. package/dist/components/options/item.js +21 -0
  421. package/dist/components/options/item.js.map +1 -1
  422. package/dist/components/options/section.d.ts +21 -2
  423. package/dist/components/options/section.js +18 -0
  424. package/dist/components/options/section.js.map +1 -1
  425. package/dist/components/options/types.d.ts +24 -0
  426. package/dist/components/pagination/context.d.ts +3 -2
  427. package/dist/components/pagination/context.js +1 -0
  428. package/dist/components/pagination/context.js.map +1 -1
  429. package/dist/components/pagination/index.d.ts +18 -11
  430. package/dist/components/pagination/index.js +15 -9
  431. package/dist/components/pagination/index.js.map +1 -1
  432. package/dist/components/pagination/next.d.ts +17 -2
  433. package/dist/components/pagination/next.js +15 -0
  434. package/dist/components/pagination/next.js.map +1 -1
  435. package/dist/components/pagination/pages.d.ts +21 -2
  436. package/dist/components/pagination/pages.js +18 -0
  437. package/dist/components/pagination/pages.js.map +1 -1
  438. package/dist/components/pagination/prev.d.ts +17 -2
  439. package/dist/components/pagination/prev.js +16 -1
  440. package/dist/components/pagination/prev.js.map +1 -1
  441. package/dist/components/pagination/types.d.ts +32 -0
  442. package/dist/components/pagination/utils.d.ts +35 -0
  443. package/dist/components/pagination/utils.js +35 -0
  444. package/dist/components/pagination/utils.js.map +1 -1
  445. package/dist/components/popover/content.d.ts +20 -2
  446. package/dist/components/popover/content.js +17 -0
  447. package/dist/components/popover/content.js.map +1 -1
  448. package/dist/components/popover/footer.d.ts +22 -2
  449. package/dist/components/popover/footer.js +19 -0
  450. package/dist/components/popover/footer.js.map +1 -1
  451. package/dist/components/popover/index.d.ts +9 -2
  452. package/dist/components/popover/index.js +8 -1
  453. package/dist/components/popover/index.js.map +1 -1
  454. package/dist/components/popover/styles.module.css +6 -0
  455. package/dist/components/popover/title.d.ts +17 -2
  456. package/dist/components/popover/title.js +15 -0
  457. package/dist/components/popover/title.js.map +1 -1
  458. package/dist/components/popover/trigger.d.ts +24 -2
  459. package/dist/components/popover/trigger.js +21 -0
  460. package/dist/components/popover/trigger.js.map +1 -1
  461. package/dist/components/popover/types.d.ts +10 -0
  462. package/dist/components/query-builder/action-element.d.ts +20 -2
  463. package/dist/components/query-builder/action-element.js +17 -0
  464. package/dist/components/query-builder/action-element.js.map +1 -1
  465. package/dist/components/query-builder/actions.d.ts +37 -4
  466. package/dist/components/query-builder/actions.js +36 -1
  467. package/dist/components/query-builder/actions.js.map +1 -1
  468. package/dist/components/query-builder/combinator-selector.d.ts +10 -2
  469. package/dist/components/query-builder/combinator-selector.js +8 -0
  470. package/dist/components/query-builder/combinator-selector.js.map +1 -1
  471. package/dist/components/query-builder/constants.d.ts +1 -0
  472. package/dist/components/query-builder/constants.js +1 -0
  473. package/dist/components/query-builder/constants.js.map +1 -1
  474. package/dist/components/query-builder/index.d.ts +11 -2
  475. package/dist/components/query-builder/index.js +9 -0
  476. package/dist/components/query-builder/index.js.map +1 -1
  477. package/dist/components/query-builder/rule-group.d.ts +52 -4
  478. package/dist/components/query-builder/rule-group.js +47 -0
  479. package/dist/components/query-builder/rule-group.js.map +1 -1
  480. package/dist/components/query-builder/rule.d.ts +20 -2
  481. package/dist/components/query-builder/rule.js +18 -0
  482. package/dist/components/query-builder/rule.js.map +1 -1
  483. package/dist/components/query-builder/types.d.ts +9 -0
  484. package/dist/components/query-builder/utils.d.ts +15 -0
  485. package/dist/components/query-builder/utils.js +15 -0
  486. package/dist/components/query-builder/utils.js.map +1 -1
  487. package/dist/components/query-builder/value-editor.d.ts +23 -2
  488. package/dist/components/query-builder/value-editor.js +20 -0
  489. package/dist/components/query-builder/value-editor.js.map +1 -1
  490. package/dist/components/query-builder/value-selector.d.ts +23 -2
  491. package/dist/components/query-builder/value-selector.js +20 -0
  492. package/dist/components/query-builder/value-selector.js.map +1 -1
  493. package/dist/components/radio/context.d.ts +2 -2
  494. package/dist/components/radio/group.d.ts +19 -2
  495. package/dist/components/radio/group.js +16 -0
  496. package/dist/components/radio/group.js.map +1 -1
  497. package/dist/components/radio/index.d.ts +13 -26
  498. package/dist/components/radio/index.js +11 -24
  499. package/dist/components/radio/index.js.map +1 -1
  500. package/dist/components/radio/types.d.ts +16 -0
  501. package/dist/components/search-field/context.d.ts +7 -4
  502. package/dist/components/search-field/context.js +3 -0
  503. package/dist/components/search-field/context.js.map +1 -1
  504. package/dist/components/search-field/index.d.ts +15 -24
  505. package/dist/components/search-field/index.js +16 -23
  506. package/dist/components/search-field/index.js.map +1 -1
  507. package/dist/components/search-field/types.d.ts +13 -0
  508. package/dist/components/select-field/context.d.ts +11 -4
  509. package/dist/components/select-field/context.js +7 -0
  510. package/dist/components/select-field/context.js.map +1 -1
  511. package/dist/components/select-field/index.d.ts +19 -39
  512. package/dist/components/select-field/index.js +18 -38
  513. package/dist/components/select-field/index.js.map +1 -1
  514. package/dist/components/select-field/styles.module.css +8 -0
  515. package/dist/components/select-field/types.d.ts +18 -0
  516. package/dist/components/sidenav/avatar.d.ts +19 -2
  517. package/dist/components/sidenav/avatar.js +16 -0
  518. package/dist/components/sidenav/avatar.js.map +1 -1
  519. package/dist/components/sidenav/content.d.ts +23 -2
  520. package/dist/components/sidenav/content.js +20 -0
  521. package/dist/components/sidenav/content.js.map +1 -1
  522. package/dist/components/sidenav/context.d.ts +3 -2
  523. package/dist/components/sidenav/context.js +1 -0
  524. package/dist/components/sidenav/context.js.map +1 -1
  525. package/dist/components/sidenav/events.d.ts +2 -0
  526. package/dist/components/sidenav/events.js +2 -0
  527. package/dist/components/sidenav/events.js.map +1 -1
  528. package/dist/components/sidenav/footer.d.ts +16 -2
  529. package/dist/components/sidenav/footer.js +13 -0
  530. package/dist/components/sidenav/footer.js.map +1 -1
  531. package/dist/components/sidenav/header.d.ts +20 -2
  532. package/dist/components/sidenav/header.js +18 -1
  533. package/dist/components/sidenav/header.js.map +1 -1
  534. package/dist/components/sidenav/index.d.ts +11 -2
  535. package/dist/components/sidenav/index.js +9 -0
  536. package/dist/components/sidenav/index.js.map +1 -1
  537. package/dist/components/sidenav/item.d.ts +17 -2
  538. package/dist/components/sidenav/item.js +14 -0
  539. package/dist/components/sidenav/item.js.map +1 -1
  540. package/dist/components/sidenav/link.d.ts +17 -2
  541. package/dist/components/sidenav/link.js +15 -1
  542. package/dist/components/sidenav/link.js.map +1 -1
  543. package/dist/components/sidenav/menu-item.d.ts +16 -2
  544. package/dist/components/sidenav/menu-item.js +13 -0
  545. package/dist/components/sidenav/menu-item.js.map +1 -1
  546. package/dist/components/sidenav/menu.d.ts +19 -2
  547. package/dist/components/sidenav/menu.js +17 -1
  548. package/dist/components/sidenav/menu.js.map +1 -1
  549. package/dist/components/sidenav/trigger.d.ts +17 -2
  550. package/dist/components/sidenav/trigger.js +14 -0
  551. package/dist/components/sidenav/trigger.js.map +1 -1
  552. package/dist/components/sidenav/types.d.ts +53 -0
  553. package/dist/components/skeleton/index.d.ts +12 -27
  554. package/dist/components/skeleton/index.js +10 -24
  555. package/dist/components/skeleton/index.js.map +1 -1
  556. package/dist/components/skeleton/types.d.ts +4 -0
  557. package/dist/components/slider/index.d.ts +30 -29
  558. package/dist/components/slider/index.js +28 -27
  559. package/dist/components/slider/index.js.map +1 -1
  560. package/dist/components/slider/types.d.ts +18 -0
  561. package/dist/components/switch/context.d.ts +16 -10
  562. package/dist/components/switch/context.js +13 -7
  563. package/dist/components/switch/context.js.map +1 -1
  564. package/dist/components/switch/index.d.ts +14 -31
  565. package/dist/components/switch/index.js +12 -29
  566. package/dist/components/switch/index.js.map +1 -1
  567. package/dist/components/switch/types.d.ts +5 -0
  568. package/dist/components/table/body.d.ts +21 -2
  569. package/dist/components/table/body.js +18 -0
  570. package/dist/components/table/body.js.map +1 -1
  571. package/dist/components/table/cell.d.ts +22 -2
  572. package/dist/components/table/cell.js +19 -0
  573. package/dist/components/table/cell.js.map +1 -1
  574. package/dist/components/table/constants/table.d.ts +6 -0
  575. package/dist/components/table/constants/table.js +4 -0
  576. package/dist/components/table/constants/table.js.map +1 -1
  577. package/dist/components/table/context.d.ts +3 -2
  578. package/dist/components/table/context.js +1 -0
  579. package/dist/components/table/context.js.map +1 -1
  580. package/dist/components/table/header-cell.d.ts +24 -2
  581. package/dist/components/table/header-cell.js +24 -1
  582. package/dist/components/table/header-cell.js.map +1 -1
  583. package/dist/components/table/header.d.ts +20 -0
  584. package/dist/components/table/header.js +19 -0
  585. package/dist/components/table/header.js.map +1 -1
  586. package/dist/components/table/index.d.ts +28 -6
  587. package/dist/components/table/index.js +27 -5
  588. package/dist/components/table/index.js.map +1 -1
  589. package/dist/components/table/row.d.ts +26 -2
  590. package/dist/components/table/row.js +23 -0
  591. package/dist/components/table/row.js.map +1 -1
  592. package/dist/components/table/types.d.ts +3 -0
  593. package/dist/components/tabs/context.d.ts +20 -10
  594. package/dist/components/tabs/context.js +17 -7
  595. package/dist/components/tabs/context.js.map +1 -1
  596. package/dist/components/tabs/index.d.ts +17 -40
  597. package/dist/components/tabs/index.js +15 -38
  598. package/dist/components/tabs/index.js.map +1 -1
  599. package/dist/components/tabs/list.d.ts +20 -4
  600. package/dist/components/tabs/list.js +17 -2
  601. package/dist/components/tabs/list.js.map +1 -1
  602. package/dist/components/tabs/panel.d.ts +21 -4
  603. package/dist/components/tabs/panel.js +18 -2
  604. package/dist/components/tabs/panel.js.map +1 -1
  605. package/dist/components/tabs/tab.d.ts +17 -4
  606. package/dist/components/tabs/tab.js +14 -2
  607. package/dist/components/tabs/tab.js.map +1 -1
  608. package/dist/components/tabs/types.d.ts +3 -0
  609. package/dist/components/text-area-field/context.d.ts +20 -10
  610. package/dist/components/text-area-field/context.js +17 -7
  611. package/dist/components/text-area-field/context.js.map +1 -1
  612. package/dist/components/text-area-field/index.d.ts +20 -15
  613. package/dist/components/text-area-field/index.js +18 -13
  614. package/dist/components/text-area-field/index.js.map +1 -1
  615. package/dist/components/text-area-field/styles.module.css +1 -1
  616. package/dist/components/text-area-field/types.d.ts +9 -0
  617. package/dist/components/text-field/context.d.ts +24 -4
  618. package/dist/components/text-field/context.js +20 -0
  619. package/dist/components/text-field/context.js.map +1 -1
  620. package/dist/components/text-field/index.d.ts +17 -82
  621. package/dist/components/text-field/index.js +15 -80
  622. package/dist/components/text-field/index.js.map +1 -1
  623. package/dist/components/text-field/types.d.ts +9 -0
  624. package/dist/components/time-field/index.d.ts +23 -5
  625. package/dist/components/time-field/index.js +21 -4
  626. package/dist/components/time-field/index.js.map +1 -1
  627. package/dist/components/time-field/types.d.ts +9 -0
  628. package/dist/components/tooltip/context.d.ts +3 -2
  629. package/dist/components/tooltip/context.js +1 -0
  630. package/dist/components/tooltip/context.js.map +1 -1
  631. package/dist/components/tooltip/index.d.ts +15 -30
  632. package/dist/components/tooltip/index.js +13 -28
  633. package/dist/components/tooltip/index.js.map +1 -1
  634. package/dist/components/tooltip/trigger.d.ts +22 -2
  635. package/dist/components/tooltip/trigger.js +19 -0
  636. package/dist/components/tooltip/trigger.js.map +1 -1
  637. package/dist/components/tooltip/types.d.ts +7 -0
  638. package/dist/components/tree/context.d.ts +5 -9
  639. package/dist/components/tree/context.js +2 -6
  640. package/dist/components/tree/context.js.map +1 -1
  641. package/dist/components/tree/index.d.ts +30 -8
  642. package/dist/components/tree/index.js +28 -6
  643. package/dist/components/tree/index.js.map +1 -1
  644. package/dist/components/tree/item-actions.d.ts +19 -4
  645. package/dist/components/tree/item-actions.js +16 -2
  646. package/dist/components/tree/item-actions.js.map +1 -1
  647. package/dist/components/tree/item-content.d.ts +18 -4
  648. package/dist/components/tree/item-content.js +20 -3
  649. package/dist/components/tree/item-content.js.map +1 -1
  650. package/dist/components/tree/item-description.d.ts +15 -4
  651. package/dist/components/tree/item-description.js +13 -2
  652. package/dist/components/tree/item-description.js.map +1 -1
  653. package/dist/components/tree/item-label.d.ts +15 -4
  654. package/dist/components/tree/item-label.js +13 -2
  655. package/dist/components/tree/item-label.js.map +1 -1
  656. package/dist/components/tree/item-prefix-icon.d.ts +15 -4
  657. package/dist/components/tree/item-prefix-icon.js +13 -2
  658. package/dist/components/tree/item-prefix-icon.js.map +1 -1
  659. package/dist/components/tree/item.d.ts +24 -4
  660. package/dist/components/tree/item.js +21 -2
  661. package/dist/components/tree/item.js.map +1 -1
  662. package/dist/components/tree/lines.d.ts +10 -2
  663. package/dist/components/tree/lines.js +8 -0
  664. package/dist/components/tree/lines.js.map +1 -1
  665. package/dist/components/tree/types.d.ts +26 -0
  666. package/dist/components/view-stack/context.d.ts +20 -9
  667. package/dist/components/view-stack/context.js +18 -7
  668. package/dist/components/view-stack/context.js.map +1 -1
  669. package/dist/components/view-stack/events.d.ts +2 -0
  670. package/dist/components/view-stack/events.js +2 -0
  671. package/dist/components/view-stack/events.js.map +1 -1
  672. package/dist/components/view-stack/index.d.ts +16 -24
  673. package/dist/components/view-stack/index.js +14 -22
  674. package/dist/components/view-stack/index.js.map +1 -1
  675. package/dist/components/view-stack/trigger.d.ts +26 -4
  676. package/dist/components/view-stack/trigger.js +23 -2
  677. package/dist/components/view-stack/trigger.js.map +1 -1
  678. package/dist/components/view-stack/types.d.ts +29 -0
  679. package/dist/components/view-stack/view.d.ts +22 -2
  680. package/dist/components/view-stack/view.js +19 -0
  681. package/dist/components/view-stack/view.js.map +1 -1
  682. package/dist/hooks/coordinate-field/use-coordinate-copy.d.ts +44 -0
  683. package/dist/hooks/coordinate-field/use-coordinate-copy.js +35 -0
  684. package/dist/hooks/coordinate-field/use-coordinate-copy.js.map +1 -1
  685. package/dist/hooks/coordinate-field/use-coordinate-field-state.d.ts +69 -0
  686. package/dist/hooks/coordinate-field/use-coordinate-field-state.js +50 -0
  687. package/dist/hooks/coordinate-field/use-coordinate-field-state.js.map +1 -1
  688. package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +61 -0
  689. package/dist/hooks/coordinate-field/use-coordinate-field.js +47 -0
  690. package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -1
  691. package/dist/hooks/coordinate-field/use-coordinate-focus.d.ts +51 -0
  692. package/dist/hooks/coordinate-field/use-coordinate-focus.js +39 -0
  693. package/dist/hooks/coordinate-field/use-coordinate-focus.js.map +1 -1
  694. package/dist/hooks/coordinate-field/use-coordinate-paste.d.ts +63 -0
  695. package/dist/hooks/coordinate-field/use-coordinate-paste.js +51 -0
  696. package/dist/hooks/coordinate-field/use-coordinate-paste.js.map +1 -1
  697. package/dist/hooks/coordinate-field/use-timeout-cleanup.d.ts +32 -0
  698. package/dist/hooks/coordinate-field/use-timeout-cleanup.js +30 -0
  699. package/dist/hooks/coordinate-field/use-timeout-cleanup.js.map +1 -1
  700. package/dist/hooks/use-frame-delay/index.d.ts +5 -0
  701. package/dist/hooks/use-frame-delay/index.js +5 -0
  702. package/dist/hooks/use-frame-delay/index.js.map +1 -1
  703. package/dist/hooks/use-tree/actions/index.d.ts +4 -2
  704. package/dist/hooks/use-tree/actions/index.js +4 -2
  705. package/dist/hooks/use-tree/actions/index.js.map +1 -1
  706. package/dist/hooks/use-tree/state/index.d.ts +7 -0
  707. package/dist/hooks/use-tree/state/index.js +7 -0
  708. package/dist/hooks/use-tree/state/index.js.map +1 -1
  709. package/dist/hooks/use-tree/types.d.ts +22 -0
  710. package/dist/index.d.ts +4 -4
  711. package/dist/index.js +1 -1
  712. package/dist/lib/types.d.ts +17 -0
  713. package/dist/lib/utils.d.ts +15 -0
  714. package/dist/lib/utils.js +15 -0
  715. package/dist/lib/utils.js.map +1 -1
  716. package/dist/providers/portal.d.ts +11 -2
  717. package/dist/providers/portal.js +9 -0
  718. package/dist/providers/portal.js.map +1 -1
  719. package/dist/providers/theme-provider.d.ts +18 -2
  720. package/dist/providers/theme-provider.js +15 -0
  721. package/dist/providers/theme-provider.js.map +1 -1
  722. package/package.json +3 -3
@@ -13,9 +13,9 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { SearchFieldProps as SearchFieldProps$1 } from "./types.js";
15
15
  import "client-only";
16
- import * as react37 from "react";
16
+ import * as react32 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime135 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime132 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/search-field/context.d.ts
21
21
  /**
@@ -23,16 +23,19 @@ import * as react_jsx_runtime135 from "react/jsx-runtime";
23
23
  *
24
24
  * Provides context for SearchField component to share props
25
25
  */
26
- declare const SearchFieldContext: react37.Context<ContextValue<SearchFieldProps$1, HTMLDivElement>>;
26
+ declare const SearchFieldContext: react32.Context<ContextValue<SearchFieldProps$1, HTMLDivElement>>;
27
27
  /**
28
28
  * Provider for SearchField component
29
29
  *
30
30
  * Allows setting default props for all SearchField components within
31
+ *
32
+ * @param props - Provider props including children and default SearchFieldProps.
33
+ * @returns The provider component wrapping children with context.
31
34
  */
32
35
  declare function SearchFieldProvider({
33
36
  children,
34
37
  ...props
35
- }: ProviderProps<SearchFieldProps$1>): react_jsx_runtime135.JSX.Element;
38
+ }: ProviderProps<SearchFieldProps$1>): react_jsx_runtime132.JSX.Element;
36
39
  //#endregion
37
40
  export { SearchFieldContext, SearchFieldProvider };
38
41
  //# sourceMappingURL=context.d.ts.map
@@ -28,6 +28,9 @@ const SearchFieldContext = createContext(null);
28
28
  * Provider for SearchField component
29
29
  *
30
30
  * Allows setting default props for all SearchField components within
31
+ *
32
+ * @param props - Provider props including children and default SearchFieldProps.
33
+ * @returns The provider component wrapping children with context.
31
34
  */
32
35
  function SearchFieldProvider({ children, ...props }) {
33
36
  return /* @__PURE__ */ jsx(SearchFieldContext.Provider, {
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","names":[],"sources":["../../../src/components/search-field/context.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ProviderProps } from '@/lib/types';\nimport type { SearchFieldProps } from './types';\n\n/**\n * Context for SearchField component\n *\n * Provides context for SearchField component to share props\n */\nexport const SearchFieldContext =\n createContext<ContextValue<SearchFieldProps, HTMLDivElement>>(null);\n\n/**\n * Provider for SearchField component\n *\n * Allows setting default props for all SearchField components within\n */\nexport function SearchFieldProvider({\n children,\n ...props\n}: ProviderProps<SearchFieldProps>) {\n return (\n <SearchFieldContext.Provider value={props}>\n {children}\n </SearchFieldContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,qBACX,cAA8D,KAAK;;;;;;AAOrE,SAAgB,oBAAoB,EAClC,UACA,GAAG,SAC+B;AAClC,QACE,oBAAC,mBAAmB;EAAS,OAAO;EACjC;GAC2B"}
1
+ {"version":3,"file":"context.js","names":[],"sources":["../../../src/components/search-field/context.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ProviderProps } from '@/lib/types';\nimport type { SearchFieldProps } from './types';\n\n/**\n * Context for SearchField component\n *\n * Provides context for SearchField component to share props\n */\nexport const SearchFieldContext =\n createContext<ContextValue<SearchFieldProps, HTMLDivElement>>(null);\n\n/**\n * Provider for SearchField component\n *\n * Allows setting default props for all SearchField components within\n *\n * @param props - Provider props including children and default SearchFieldProps.\n * @returns The provider component wrapping children with context.\n */\nexport function SearchFieldProvider({\n children,\n ...props\n}: ProviderProps<SearchFieldProps>) {\n return (\n <SearchFieldContext.Provider value={props}>\n {children}\n </SearchFieldContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,qBACX,cAA8D,KAAK;;;;;;;;;AAUrE,SAAgB,oBAAoB,EAClC,UACA,GAAG,SAC+B;AAClC,QACE,oBAAC,mBAAmB;EAAS,OAAO;EACjC;GAC2B"}
@@ -12,45 +12,36 @@
12
12
 
13
13
  import { SearchFieldProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime136 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime131 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/search-field/index.d.ts
18
18
 
19
19
  /**
20
- * SearchField - A customizable search input component built on React Aria Components
20
+ * SearchField - Search input with integrated search icon, loading state, and clear button
21
21
  *
22
- * Provides a search input with integrated search icon, loading state, and clear functionality.
23
- * Supports two visual variants (filled/outlined), and granular styling control.
22
+ * Supports outline and filled variants with automatic icon sizing.
24
23
  *
25
- * @example
26
- * // Basic search field
27
- * <SearchField inputProps={{ placeholder: 'Search...' }} />
28
- *
29
- * @example
30
- * // Filled variant with custom styling
31
- * <SearchField
32
- * variant="filled"
33
- * inputProps={{ placeholder: 'Search...' }}
34
- * classNames={{
35
- * input: "bg-info-bold",
36
- * searchIcon: "fg-accent-primary-bold"
37
- * }}
38
- * />
24
+ * @param props - {@link SearchFieldProps}
25
+ * @param props.ref - Forwarded ref for the field container.
26
+ * @param props.classNames - Custom CSS class names for field elements.
27
+ * @param props.inputProps - Additional props for the input element.
28
+ * @param props.isLoading - Whether to show loading spinner instead of clear button.
29
+ * @param props.variant - Visual variant ('outline' or 'filled').
30
+ * @returns The rendered SearchField component.
39
31
  *
40
32
  * @example
41
- * // With event handlers
33
+ * ```tsx
42
34
  * <SearchField
43
- * inputProps: {
44
- * placeholder: 'Search...',
45
- * },
46
- * onSubmit={(value) => console.log('Search:', value)}
35
+ * label="Search"
36
+ * placeholder="Search items..."
47
37
  * onChange={(value) => setQuery(value)}
48
38
  * />
39
+ * ```
49
40
  */
50
41
  declare function SearchField({
51
42
  ref,
52
43
  ...props
53
- }: SearchFieldProps): react_jsx_runtime136.JSX.Element;
44
+ }: SearchFieldProps): react_jsx_runtime131.JSX.Element;
54
45
  //#endregion
55
46
  export { SearchField };
56
47
  //# sourceMappingURL=index.d.ts.map
@@ -20,40 +20,33 @@ import "client-only";
20
20
  import { clsx } from "@accelint/design-foundation/lib/utils";
21
21
  import { Button, Input, SearchField as SearchField$1, composeRenderProps, useContextProps } from "react-aria-components";
22
22
  import { jsx, jsxs } from "react/jsx-runtime";
23
- import { CancelFill, Loop, Search } from "@accelint/icons";
23
+ import CancelFill from "@accelint/icons/cancel-fill";
24
+ import Loop from "@accelint/icons/loop";
25
+ import Search from "@accelint/icons/search";
24
26
  import styles from "./styles.module.css";
25
27
 
26
28
  //#region src/components/search-field/index.tsx
27
29
  /**
28
- * SearchField - A customizable search input component built on React Aria Components
30
+ * SearchField - Search input with integrated search icon, loading state, and clear button
29
31
  *
30
- * Provides a search input with integrated search icon, loading state, and clear functionality.
31
- * Supports two visual variants (filled/outlined), and granular styling control.
32
+ * Supports outline and filled variants with automatic icon sizing.
32
33
  *
33
- * @example
34
- * // Basic search field
35
- * <SearchField inputProps={{ placeholder: 'Search...' }} />
36
- *
37
- * @example
38
- * // Filled variant with custom styling
39
- * <SearchField
40
- * variant="filled"
41
- * inputProps={{ placeholder: 'Search...' }}
42
- * classNames={{
43
- * input: "bg-info-bold",
44
- * searchIcon: "fg-accent-primary-bold"
45
- * }}
46
- * />
34
+ * @param props - {@link SearchFieldProps}
35
+ * @param props.ref - Forwarded ref for the field container.
36
+ * @param props.classNames - Custom CSS class names for field elements.
37
+ * @param props.inputProps - Additional props for the input element.
38
+ * @param props.isLoading - Whether to show loading spinner instead of clear button.
39
+ * @param props.variant - Visual variant ('outline' or 'filled').
40
+ * @returns The rendered SearchField component.
47
41
  *
48
42
  * @example
49
- * // With event handlers
43
+ * ```tsx
50
44
  * <SearchField
51
- * inputProps: {
52
- * placeholder: 'Search...',
53
- * },
54
- * onSubmit={(value) => console.log('Search:', value)}
45
+ * label="Search"
46
+ * placeholder="Search items..."
55
47
  * onChange={(value) => setQuery(value)}
56
48
  * />
49
+ * ```
57
50
  */
58
51
  function SearchField({ ref, ...props }) {
59
52
  [props, ref] = useContextProps(props, ref ?? null, SearchFieldContext);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaSearchField"],"sources":["../../../src/components/search-field/index.tsx"],"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 { CancelFill, Loop, Search } from '@accelint/icons';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n SearchField as AriaSearchField,\n Button,\n composeRenderProps,\n Input,\n useContextProps,\n} from 'react-aria-components';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { SearchFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { SearchFieldProps } from './types';\n\n/**\n * SearchField - A customizable search input component built on React Aria Components\n *\n * Provides a search input with integrated search icon, loading state, and clear functionality.\n * Supports two visual variants (filled/outlined), and granular styling control.\n *\n * @example\n * // Basic search field\n * <SearchField inputProps={{ placeholder: 'Search...' }} />\n *\n * @example\n * // Filled variant with custom styling\n * <SearchField\n * variant=\"filled\"\n * inputProps={{ placeholder: 'Search...' }}\n * classNames={{\n * input: \"bg-info-bold\",\n * searchIcon: \"fg-accent-primary-bold\"\n * }}\n * />\n *\n * @example\n * // With event handlers\n * <SearchField\n * inputProps: {\n * placeholder: 'Search...',\n * },\n * onSubmit={(value) => console.log('Search:', value)}\n * onChange={(value) => setQuery(value)}\n * />\n */\nexport function SearchField({ ref, ...props }: SearchFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, SearchFieldContext);\n\n const {\n classNames,\n inputProps,\n isLoading = false,\n variant = 'outline',\n ...rest\n } = props;\n\n return (\n <IconProvider size='small'>\n <AriaSearchField\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/search-field', styles.field, styles[variant], className),\n )}\n >\n <Icon className={clsx(styles.search, classNames?.search)}>\n <Search />\n </Icon>\n <Input\n {...inputProps}\n className={composeRenderProps(classNames?.input, (className) =>\n clsx(styles.input, className),\n )}\n type='search'\n />\n {isLoading ? (\n <Icon className={clsx(styles.loading, classNames?.loading)}>\n <Loop />\n </Icon>\n ) : (\n <Button\n className={composeRenderProps(classNames?.clear, (className) =>\n clsx(styles.clear, className),\n )}\n >\n <Icon>\n <CancelFill />\n </Icon>\n </Button>\n )}\n </AriaSearchField>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,SAAgB,YAAY,EAAE,KAAK,GAAG,SAA2B;AAC/D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,mBAAmB;CAEtE,MAAM,EACJ,YACA,YACA,YAAY,OACZ,UAAU,WACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAa,MAAK;YACjB,qBAACA;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,sBAAsB,OAAO,OAAO,OAAO,UAAU,UAAU,CACrE;;IAED,oBAAC;KAAK,WAAW,KAAK,OAAO,QAAQ,YAAY,OAAO;eACtD,oBAAC,WAAS;MACL;IACP,oBAAC;KACC,GAAI;KACJ,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;KACD,MAAK;MACL;IACD,YACC,oBAAC;KAAK,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;eACxD,oBAAC,SAAO;MACH,GAEP,oBAAC;KACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;eAED,oBAAC,kBACC,oBAAC,eAAa,GACT;MACA;;IAEK;GACL"}
1
+ {"version":3,"file":"index.js","names":["AriaSearchField"],"sources":["../../../src/components/search-field/index.tsx"],"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 { clsx } from '@accelint/design-foundation/lib/utils';\nimport CancelFill from '@accelint/icons/cancel-fill';\nimport Loop from '@accelint/icons/loop';\nimport Search from '@accelint/icons/search';\nimport {\n SearchField as AriaSearchField,\n Button,\n composeRenderProps,\n Input,\n useContextProps,\n} from 'react-aria-components';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { SearchFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { SearchFieldProps } from './types';\n\n/**\n * SearchField - Search input with integrated search icon, loading state, and clear button\n *\n * Supports outline and filled variants with automatic icon sizing.\n *\n * @param props - {@link SearchFieldProps}\n * @param props.ref - Forwarded ref for the field container.\n * @param props.classNames - Custom CSS class names for field elements.\n * @param props.inputProps - Additional props for the input element.\n * @param props.isLoading - Whether to show loading spinner instead of clear button.\n * @param props.variant - Visual variant ('outline' or 'filled').\n * @returns The rendered SearchField component.\n *\n * @example\n * ```tsx\n * <SearchField\n * label=\"Search\"\n * placeholder=\"Search items...\"\n * onChange={(value) => setQuery(value)}\n * />\n * ```\n */\nexport function SearchField({ ref, ...props }: SearchFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, SearchFieldContext);\n\n const {\n classNames,\n inputProps,\n isLoading = false,\n variant = 'outline',\n ...rest\n } = props;\n\n return (\n <IconProvider size='small'>\n <AriaSearchField\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/search-field', styles.field, styles[variant], className),\n )}\n >\n <Icon className={clsx(styles.search, classNames?.search)}>\n <Search />\n </Icon>\n <Input\n {...inputProps}\n className={composeRenderProps(classNames?.input, (className) =>\n clsx(styles.input, className),\n )}\n type='search'\n />\n {isLoading ? (\n <Icon className={clsx(styles.loading, classNames?.loading)}>\n <Loop />\n </Icon>\n ) : (\n <Button\n className={composeRenderProps(classNames?.clear, (className) =>\n clsx(styles.clear, className),\n )}\n >\n <Icon>\n <CancelFill />\n </Icon>\n </Button>\n )}\n </AriaSearchField>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,SAAgB,YAAY,EAAE,KAAK,GAAG,SAA2B;AAC/D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,mBAAmB;CAEtE,MAAM,EACJ,YACA,YACA,YAAY,OACZ,UAAU,WACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAa,MAAK;YACjB,qBAACA;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,sBAAsB,OAAO,OAAO,OAAO,UAAU,UAAU,CACrE;;IAED,oBAAC;KAAK,WAAW,KAAK,OAAO,QAAQ,YAAY,OAAO;eACtD,oBAAC,WAAS;MACL;IACP,oBAAC;KACC,GAAI;KACJ,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;KACD,MAAK;MACL;IACD,YACC,oBAAC;KAAK,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;eACxD,oBAAC,SAAO;MACH,GAEP,oBAAC;KACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;eAED,oBAAC,kBACC,oBAAC,eAAa,GACT;MACA;;IAEK;GACL"}
@@ -16,6 +16,19 @@ import { RefAttributes } from "react";
16
16
  import { InputProps, SearchFieldProps as SearchFieldProps$1 } from "react-aria-components";
17
17
 
18
18
  //#region src/components/search-field/types.d.ts
19
+ /**
20
+ * Props for SearchField component.
21
+ *
22
+ * Extends AriaSearchFieldProps with custom classNames, variant, and loading support.
23
+ * - `classNames.field` - CSS class for the field container.
24
+ * - `classNames.input` - CSS class for the input element.
25
+ * - `classNames.clear` - CSS class for the clear button.
26
+ * - `classNames.loading` - CSS class for the loading spinner.
27
+ * - `classNames.search` - CSS class for the search icon.
28
+ * - `inputProps` - Additional props passed to the Input element.
29
+ * - `variant` - Visual style ('filled' or 'outline').
30
+ * - `isLoading` - Displays a loading spinner when true.
31
+ */
19
32
  interface SearchFieldProps extends Omit<SearchFieldProps$1, 'className' | 'pattern' | 'type'>, RefAttributes<HTMLDivElement> {
20
33
  classNames?: {
21
34
  field?: SearchFieldProps$1['className'];
@@ -13,16 +13,23 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { SelectFieldProps } from "./types.js";
15
15
  import "client-only";
16
- import * as react38 from "react";
16
+ import * as react45 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime137 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime181 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/select-field/context.d.ts
21
- declare const SelectFieldContext: react38.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
21
+ /** Context for SelectField component */
22
+ declare const SelectFieldContext: react45.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
23
+ /**
24
+ * Provider for setting default props across multiple SelectField components
25
+ *
26
+ * @param props - Provider props including children and default SelectFieldProps.
27
+ * @returns The provider component wrapping children with context.
28
+ */
22
29
  declare function SelectFieldProvider({
23
30
  children,
24
31
  ...props
25
- }: ProviderProps<SelectFieldProps>): react_jsx_runtime137.JSX.Element;
32
+ }: ProviderProps<SelectFieldProps>): react_jsx_runtime181.JSX.Element;
26
33
  //#endregion
27
34
  export { SelectFieldContext, SelectFieldProvider };
28
35
  //# sourceMappingURL=context.d.ts.map
@@ -18,7 +18,14 @@ import { createContext } from "react";
18
18
  import { jsx } from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/select-field/context.tsx
21
+ /** Context for SelectField component */
21
22
  const SelectFieldContext = createContext(null);
23
+ /**
24
+ * Provider for setting default props across multiple SelectField components
25
+ *
26
+ * @param props - Provider props including children and default SelectFieldProps.
27
+ * @returns The provider component wrapping children with context.
28
+ */
22
29
  function SelectFieldProvider({ children, ...props }) {
23
30
  return /* @__PURE__ */ jsx(SelectFieldContext.Provider, {
24
31
  value: props,
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","names":[],"sources":["../../../src/components/select-field/context.tsx"],"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 type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { SelectFieldProps } from './types';\n\nexport const SelectFieldContext =\n createContext<ContextValue<SelectFieldProps, HTMLDivElement>>(null);\n\nexport function SelectFieldProvider({\n children,\n ...props\n}: ProviderProps<SelectFieldProps>) {\n return (\n <SelectFieldContext.Provider value={props}>\n {children}\n </SelectFieldContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAa,qBACX,cAA8D,KAAK;AAErE,SAAgB,oBAAoB,EAClC,UACA,GAAG,SAC+B;AAClC,QACE,oBAAC,mBAAmB;EAAS,OAAO;EACjC;GAC2B"}
1
+ {"version":3,"file":"context.js","names":[],"sources":["../../../src/components/select-field/context.tsx"],"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 type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { SelectFieldProps } from './types';\n\n/** Context for SelectField component */\nexport const SelectFieldContext =\n createContext<ContextValue<SelectFieldProps, HTMLDivElement>>(null);\n\n/**\n * Provider for setting default props across multiple SelectField components\n *\n * @param props - Provider props including children and default SelectFieldProps.\n * @returns The provider component wrapping children with context.\n */\nexport function SelectFieldProvider({\n children,\n ...props\n}: ProviderProps<SelectFieldProps>) {\n return (\n <SelectFieldContext.Provider value={props}>\n {children}\n </SelectFieldContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,qBACX,cAA8D,KAAK;;;;;;;AAQrE,SAAgB,oBAAoB,EAClC,UACA,GAAG,SAC+B;AAClC,QACE,oBAAC,mBAAmB;EAAS,OAAO;EACjC;GAC2B"}
@@ -12,58 +12,38 @@
12
12
 
13
13
  import { SelectFieldProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime138 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime137 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/select-field/index.d.ts
18
18
 
19
19
  /**
20
- * SelectField - A dropdown selection component with comprehensive form field features
20
+ * SelectField - Dropdown select with form field features
21
21
  *
22
- * Provides an accessible and feature-rich select dropdown with built-in validation,
23
- * multiple sizing options, virtualization support for large datasets, and seamless
24
- * integration with form libraries. Includes label, description, and error messaging
25
- * capabilities with customizable styling through className props.
22
+ * Includes label, description, error messaging, and virtualized rendering for large datasets.
26
23
  *
27
- * @example
28
- * // Basic select field
29
- * <SelectField label='Country' placeholder='Select a country'>
30
- * <OptionsItem textValue='us'>United States</OptionsItem>
31
- * <OptionsItem textValue='ca'>Canada</OptionsItem>
32
- * <OptionsItem textValue='uk'>United Kingdom</OptionsItem>
33
- * </SelectField>
34
- *
35
- * @example
36
- * // Select field with validation and description
37
- * <SelectField
38
- * label="Priority Level"
39
- * description="Choose the urgency level for this task"
40
- * errorMessage={errors.priority}
41
- * isRequired
42
- * isInvalid={!!errors.priority}
43
- * >
44
- * <OptionsItem textValue="low">Low</OptionsItem>
45
- * <OptionsItem textValue="medium">Medium</OptionsItem>
46
- * <OptionsItem textValue="high">High</OptionsItem>
47
- * </SelectField>
24
+ * @param props - {@link SelectFieldProps}
25
+ * @param props.ref - Forwarded ref for the field container.
26
+ * @param props.size - Field size ('medium' or 'small').
27
+ * @param props.classNames - Custom CSS class names for field elements.
28
+ * @param props.label - Label text for the field.
29
+ * @param props.description - Helper text below the field.
30
+ * @param props.errorMessage - Error message displayed when invalid.
31
+ * @param props.isReadOnly - Displays value without dropdown interaction.
32
+ * @param props.layoutOptions - Virtualizer layout options for large lists.
33
+ * @returns The rendered SelectField component.
48
34
  *
49
35
  * @example
50
- * // Small size select field with custom styling
51
- * <SelectField
52
- * size="small"
53
- * placeholder="Quick select"
54
- * classNames={{
55
- * field: "custom-field-styles",
56
- * trigger: "custom-trigger-styles"
57
- * }}
58
- * >
59
- * <OptionsItem textValue="option1">Option 1</OptionsItem>
60
- * <OptionsItem textValue="option2">Option 2</OptionsItem>
36
+ * ```tsx
37
+ * <SelectField label="Country" onSelectionChange={setCountry}>
38
+ * <Option id="us">United States</Option>
39
+ * <Option id="ca">Canada</Option>
61
40
  * </SelectField>
41
+ * ```
62
42
  */
63
43
  declare function SelectField({
64
44
  ref,
65
45
  ...props
66
- }: SelectFieldProps): react_jsx_runtime138.JSX.Element;
46
+ }: SelectFieldProps): react_jsx_runtime137.JSX.Element;
67
47
  //#endregion
68
48
  export { SelectField };
69
49
  //# sourceMappingURL=index.d.ts.map
@@ -27,48 +27,28 @@ import styles from "./styles.module.css";
27
27
 
28
28
  //#region src/components/select-field/index.tsx
29
29
  /**
30
- * SelectField - A dropdown selection component with comprehensive form field features
30
+ * SelectField - Dropdown select with form field features
31
31
  *
32
- * Provides an accessible and feature-rich select dropdown with built-in validation,
33
- * multiple sizing options, virtualization support for large datasets, and seamless
34
- * integration with form libraries. Includes label, description, and error messaging
35
- * capabilities with customizable styling through className props.
32
+ * Includes label, description, error messaging, and virtualized rendering for large datasets.
36
33
  *
37
- * @example
38
- * // Basic select field
39
- * <SelectField label='Country' placeholder='Select a country'>
40
- * <OptionsItem textValue='us'>United States</OptionsItem>
41
- * <OptionsItem textValue='ca'>Canada</OptionsItem>
42
- * <OptionsItem textValue='uk'>United Kingdom</OptionsItem>
43
- * </SelectField>
44
- *
45
- * @example
46
- * // Select field with validation and description
47
- * <SelectField
48
- * label="Priority Level"
49
- * description="Choose the urgency level for this task"
50
- * errorMessage={errors.priority}
51
- * isRequired
52
- * isInvalid={!!errors.priority}
53
- * >
54
- * <OptionsItem textValue="low">Low</OptionsItem>
55
- * <OptionsItem textValue="medium">Medium</OptionsItem>
56
- * <OptionsItem textValue="high">High</OptionsItem>
57
- * </SelectField>
34
+ * @param props - {@link SelectFieldProps}
35
+ * @param props.ref - Forwarded ref for the field container.
36
+ * @param props.size - Field size ('medium' or 'small').
37
+ * @param props.classNames - Custom CSS class names for field elements.
38
+ * @param props.label - Label text for the field.
39
+ * @param props.description - Helper text below the field.
40
+ * @param props.errorMessage - Error message displayed when invalid.
41
+ * @param props.isReadOnly - Displays value without dropdown interaction.
42
+ * @param props.layoutOptions - Virtualizer layout options for large lists.
43
+ * @returns The rendered SelectField component.
58
44
  *
59
45
  * @example
60
- * // Small size select field with custom styling
61
- * <SelectField
62
- * size="small"
63
- * placeholder="Quick select"
64
- * classNames={{
65
- * field: "custom-field-styles",
66
- * trigger: "custom-trigger-styles"
67
- * }}
68
- * >
69
- * <OptionsItem textValue="option1">Option 1</OptionsItem>
70
- * <OptionsItem textValue="option2">Option 2</OptionsItem>
46
+ * ```tsx
47
+ * <SelectField label="Country" onSelectionChange={setCountry}>
48
+ * <Option id="us">United States</Option>
49
+ * <Option id="ca">Canada</Option>
71
50
  * </SelectField>
51
+ * ```
72
52
  */
73
53
  function SelectField({ ref, ...props }) {
74
54
  [props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);
@@ -100,7 +80,7 @@ function SelectField({ ref, ...props }) {
100
80
  className: composeRenderProps(classNames?.trigger, (className) => clsx(styles.trigger, className)),
101
81
  size,
102
82
  variant: "outline",
103
- children: [/* @__PURE__ */ jsx(SelectValue, { className: clsx(styles.value, classNames?.value) }), /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(ChevronDown, { className: "transform group-open/select-field:rotate-180" }) })]
83
+ children: [/* @__PURE__ */ jsx(SelectValue, { className: clsx(styles.value, classNames?.value) }), /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(ChevronDown, { className: styles.chevron }) })]
104
84
  }),
105
85
  shouldShowDescription && /* @__PURE__ */ jsx(Text, {
106
86
  slot: "description",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaSelect","Label","AriaButton","Button","children"],"sources":["../../../src/components/select-field/index.tsx"],"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 { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport {\n Button as AriaButton,\n Select as AriaSelect,\n composeRenderProps,\n FieldError,\n ListLayout,\n Popover,\n SelectValue,\n Text,\n useContextProps,\n Virtualizer,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Options } from '../options';\nimport { SelectFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { SelectFieldProps } from './types';\n\n/**\n * SelectField - A dropdown selection component with comprehensive form field features\n *\n * Provides an accessible and feature-rich select dropdown with built-in validation,\n * multiple sizing options, virtualization support for large datasets, and seamless\n * integration with form libraries. Includes label, description, and error messaging\n * capabilities with customizable styling through className props.\n *\n * @example\n * // Basic select field\n * <SelectField label='Country' placeholder='Select a country'>\n * <OptionsItem textValue='us'>United States</OptionsItem>\n * <OptionsItem textValue='ca'>Canada</OptionsItem>\n * <OptionsItem textValue='uk'>United Kingdom</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Select field with validation and description\n * <SelectField\n * label=\"Priority Level\"\n * description=\"Choose the urgency level for this task\"\n * errorMessage={errors.priority}\n * isRequired\n * isInvalid={!!errors.priority}\n * >\n * <OptionsItem textValue=\"low\">Low</OptionsItem>\n * <OptionsItem textValue=\"medium\">Medium</OptionsItem>\n * <OptionsItem textValue=\"high\">High</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Small size select field with custom styling\n * <SelectField\n * size=\"small\"\n * placeholder=\"Quick select\"\n * classNames={{\n * field: \"custom-field-styles\",\n * trigger: \"custom-trigger-styles\"\n * }}\n * >\n * <OptionsItem textValue=\"option1\">Option 1</OptionsItem>\n * <OptionsItem textValue=\"option2\">Option 2</OptionsItem>\n * </SelectField>\n */\nexport function SelectField({ ref, ...props }: SelectFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);\n\n const {\n size = 'medium',\n children,\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n label: labelProp,\n layoutOptions,\n isInvalid: isInvalidProp,\n isReadOnly,\n ...rest\n } = props;\n\n const errorMessage = errorMessageProp?.trim() ?? null;\n const hasError = !!errorMessage;\n const isInvalid = isInvalidProp ?? hasError;\n const isSmall = size === 'small';\n const showLabel = !isSmall && !!labelProp;\n const shouldShowDescription =\n !isReadOnly && !!descriptionProp && !(isSmall || isInvalid);\n\n return (\n <AriaSelect\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/select-field', styles.field, className),\n )}\n isInvalid={isInvalid}\n data-size={size}\n data-readonly={isReadOnly}\n >\n {composeRenderProps(\n children,\n (children, { isRequired, isDisabled, isInvalid }) => (\n <>\n {showLabel && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isRequired={isRequired}\n isDisabled={isDisabled}\n >\n {labelProp}\n </Label>\n )}\n {isReadOnly ? (\n // Using the native RAC disabled button component because we don't want the DTK button styles\n <AriaButton isDisabled className={styles.readonly}>\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n </AriaButton>\n ) : (\n <Button\n className={composeRenderProps(\n classNames?.trigger,\n (className) => clsx(styles.trigger, className),\n )}\n size={size}\n variant='outline'\n >\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n <Icon>\n <ChevronDown className='transform group-open/select-field:rotate-180' />\n </Icon>\n </Button>\n )}\n {shouldShowDescription && (\n <Text\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </Text>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n <Popover\n className={composeRenderProps(classNames?.popover, (className) =>\n clsx(styles.popover, className),\n )}\n >\n <Virtualizer layout={ListLayout} layoutOptions={layoutOptions}>\n <Options>{children}</Options>\n </Virtualizer>\n </Popover>\n </>\n ),\n )}\n </AriaSelect>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,SAAgB,YAAY,EAAE,KAAK,GAAG,SAA2B;AAC/D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,mBAAmB;CAEtE,MAAM,EACJ,OAAO,UACP,UACA,YACA,aAAa,iBACb,cAAc,kBACd,OAAO,WACP,eACA,WAAW,eACX,YACA,GAAG,SACD;CAEJ,MAAM,eAAe,kBAAkB,MAAM,IAAI;CAEjD,MAAM,YAAY,iBADD,CAAC,CAAC;CAEnB,MAAM,UAAU,SAAS;CACzB,MAAM,YAAY,CAAC,WAAW,CAAC,CAAC;CAChC,MAAM,wBACJ,CAAC,cAAc,CAAC,CAAC,mBAAmB,EAAE,WAAW;AAEnD,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,sBAAsB,OAAO,OAAO,UAAU,CACpD;EACU;EACX,aAAW;EACX,iBAAe;YAEd,mBACC,WACC,YAAU,EAAE,YAAY,YAAY,6BACnC;GACG,aACC,oBAACC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK;GAET,aAEC,oBAACC;IAAW;IAAW,WAAW,OAAO;cACvC,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD;KACS,GAEb,qBAACC;IACC,WAAW,mBACT,YAAY,UACX,cAAc,KAAK,OAAO,SAAS,UAAU,CAC/C;IACK;IACN,SAAQ;eAER,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD,EACF,oBAAC,kBACC,oBAAC,eAAY,WAAU,iDAAiD,GACnE;KACA;GAEV,yBACC,oBAAC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACI;GAET,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;GACb,oBAAC;IACC,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,UAAU,CAChC;cAED,oBAAC;KAAY,QAAQ;KAA2B;eAC9C,oBAAC,qBAASC,aAAmB;MACjB;KACN;MACT,CAEN;GACU"}
1
+ {"version":3,"file":"index.js","names":["AriaSelect","Label","AriaButton","Button","children"],"sources":["../../../src/components/select-field/index.tsx"],"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 { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport {\n Button as AriaButton,\n Select as AriaSelect,\n composeRenderProps,\n FieldError,\n ListLayout,\n Popover,\n SelectValue,\n Text,\n useContextProps,\n Virtualizer,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Options } from '../options';\nimport { SelectFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { SelectFieldProps } from './types';\n\n/**\n * SelectField - Dropdown select with form field features\n *\n * Includes label, description, error messaging, and virtualized rendering for large datasets.\n *\n * @param props - {@link SelectFieldProps}\n * @param props.ref - Forwarded ref for the field container.\n * @param props.size - Field size ('medium' or 'small').\n * @param props.classNames - Custom CSS class names for field elements.\n * @param props.label - Label text for the field.\n * @param props.description - Helper text below the field.\n * @param props.errorMessage - Error message displayed when invalid.\n * @param props.isReadOnly - Displays value without dropdown interaction.\n * @param props.layoutOptions - Virtualizer layout options for large lists.\n * @returns The rendered SelectField component.\n *\n * @example\n * ```tsx\n * <SelectField label=\"Country\" onSelectionChange={setCountry}>\n * <Option id=\"us\">United States</Option>\n * <Option id=\"ca\">Canada</Option>\n * </SelectField>\n * ```\n */\nexport function SelectField({ ref, ...props }: SelectFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);\n\n const {\n size = 'medium',\n children,\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n label: labelProp,\n layoutOptions,\n isInvalid: isInvalidProp,\n isReadOnly,\n ...rest\n } = props;\n\n const errorMessage = errorMessageProp?.trim() ?? null;\n const hasError = !!errorMessage;\n const isInvalid = isInvalidProp ?? hasError;\n const isSmall = size === 'small';\n const showLabel = !isSmall && !!labelProp;\n const shouldShowDescription =\n !isReadOnly && !!descriptionProp && !(isSmall || isInvalid);\n\n return (\n <AriaSelect\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/select-field', styles.field, className),\n )}\n isInvalid={isInvalid}\n data-size={size}\n data-readonly={isReadOnly}\n >\n {composeRenderProps(\n children,\n (children, { isRequired, isDisabled, isInvalid }) => (\n <>\n {showLabel && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isRequired={isRequired}\n isDisabled={isDisabled}\n >\n {labelProp}\n </Label>\n )}\n {isReadOnly ? (\n // Using the native RAC disabled button component because we don't want the DTK button styles\n <AriaButton isDisabled className={styles.readonly}>\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n </AriaButton>\n ) : (\n <Button\n className={composeRenderProps(\n classNames?.trigger,\n (className) => clsx(styles.trigger, className),\n )}\n size={size}\n variant='outline'\n >\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n <Icon>\n <ChevronDown className={styles.chevron} />\n </Icon>\n </Button>\n )}\n {shouldShowDescription && (\n <Text\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </Text>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n <Popover\n className={composeRenderProps(classNames?.popover, (className) =>\n clsx(styles.popover, className),\n )}\n >\n <Virtualizer layout={ListLayout} layoutOptions={layoutOptions}>\n <Options>{children}</Options>\n </Virtualizer>\n </Popover>\n </>\n ),\n )}\n </AriaSelect>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,SAAgB,YAAY,EAAE,KAAK,GAAG,SAA2B;AAC/D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,mBAAmB;CAEtE,MAAM,EACJ,OAAO,UACP,UACA,YACA,aAAa,iBACb,cAAc,kBACd,OAAO,WACP,eACA,WAAW,eACX,YACA,GAAG,SACD;CAEJ,MAAM,eAAe,kBAAkB,MAAM,IAAI;CAEjD,MAAM,YAAY,iBADD,CAAC,CAAC;CAEnB,MAAM,UAAU,SAAS;CACzB,MAAM,YAAY,CAAC,WAAW,CAAC,CAAC;CAChC,MAAM,wBACJ,CAAC,cAAc,CAAC,CAAC,mBAAmB,EAAE,WAAW;AAEnD,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,sBAAsB,OAAO,OAAO,UAAU,CACpD;EACU;EACX,aAAW;EACX,iBAAe;YAEd,mBACC,WACC,YAAU,EAAE,YAAY,YAAY,6BACnC;GACG,aACC,oBAACC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK;GAET,aAEC,oBAACC;IAAW;IAAW,WAAW,OAAO;cACvC,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD;KACS,GAEb,qBAACC;IACC,WAAW,mBACT,YAAY,UACX,cAAc,KAAK,OAAO,SAAS,UAAU,CAC/C;IACK;IACN,SAAQ;eAER,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD,EACF,oBAAC,kBACC,oBAAC,eAAY,WAAW,OAAO,UAAW,GACrC;KACA;GAEV,yBACC,oBAAC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACI;GAET,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;GACb,oBAAC;IACC,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,UAAU,CAChC;cAED,oBAAC;KAAY,QAAQ;KAA2B;eAC9C,oBAAC,qBAASC,aAAmB;MACjB;KACN;MACT,CAEN;GACU"}
@@ -40,6 +40,14 @@
40
40
  .readonly {
41
41
  @apply py-xs block;
42
42
  }
43
+
44
+ .chevron {
45
+ @apply transform;
46
+
47
+ @variant group-open/select-field {
48
+ @apply rotate-180;
49
+ }
50
+ }
43
51
  }
44
52
 
45
53
  @layer components.l2 {
@@ -16,6 +16,24 @@ import { RefAttributes } from "react";
16
16
  import { FieldErrorProps, ListLayoutOptions, PopoverProps, SelectProps, VirtualizerProps } from "react-aria-components";
17
17
 
18
18
  //#region src/components/select-field/types.d.ts
19
+
20
+ /**
21
+ * Props for SelectField component.
22
+ *
23
+ * Extends AriaSelectProps with form field features and virtualization.
24
+ * - `classNames.description` - CSS class for the description text.
25
+ * - `classNames.error` - CSS class for the error message.
26
+ * - `classNames.field` - CSS class for the field container.
27
+ * - `classNames.label` - CSS class for the label.
28
+ * - `classNames.trigger` - CSS class for the trigger button.
29
+ * - `classNames.value` - CSS class for the selected value display.
30
+ * - `classNames.popover` - CSS class for the dropdown popover.
31
+ * - `label` - Label text for the field.
32
+ * - `description` - Helper text below the field.
33
+ * - `errorMessage` - Error message displayed when invalid.
34
+ * - `isReadOnly` - Displays value without dropdown interaction.
35
+ * - `size` - Field size ('medium' or 'small').
36
+ */
19
37
  type SelectFieldProps = Omit<SelectProps, 'className'> & Pick<VirtualizerProps<ListLayoutOptions>, 'layoutOptions'> & RefAttributes<HTMLDivElement> & {
20
38
  classNames?: {
21
39
  description?: string;
@@ -12,19 +12,36 @@
12
12
 
13
13
  import { SidenavAvatarProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime139 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime182 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/avatar.d.ts
18
+
18
19
  /**
19
20
  * SidenavAvatar - Avatar component for sidenav
20
21
  *
21
22
  * Provides an avatar container with proper styling for the sidenav
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <SidenavHeader>
27
+ * <SidenavAvatar>
28
+ * <Avatar>JD</Avatar>
29
+ * <Heading>John Doe</Heading>
30
+ * <Text>Administrator</Text>
31
+ * </SidenavAvatar>
32
+ * </SidenavHeader>
33
+ * ```
34
+ *
35
+ * @param props - {@link SidenavAvatarProps}
36
+ * @param props.children - Avatar content (icon, heading, text).
37
+ * @param props.className - CSS class for the avatar container.
38
+ * @returns The rendered SidenavAvatar component.
22
39
  */
23
40
  declare function SidenavAvatar({
24
41
  children,
25
42
  className,
26
43
  ...rest
27
- }: SidenavAvatarProps): react_jsx_runtime139.JSX.Element;
44
+ }: SidenavAvatarProps): react_jsx_runtime182.JSX.Element;
28
45
  //#endregion
29
46
  export { SidenavAvatar };
30
47
  //# sourceMappingURL=avatar.d.ts.map
@@ -26,6 +26,22 @@ import styles from "./styles.module.css";
26
26
  * SidenavAvatar - Avatar component for sidenav
27
27
  *
28
28
  * Provides an avatar container with proper styling for the sidenav
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * <SidenavHeader>
33
+ * <SidenavAvatar>
34
+ * <Avatar>JD</Avatar>
35
+ * <Heading>John Doe</Heading>
36
+ * <Text>Administrator</Text>
37
+ * </SidenavAvatar>
38
+ * </SidenavHeader>
39
+ * ```
40
+ *
41
+ * @param props - {@link SidenavAvatarProps}
42
+ * @param props.children - Avatar content (icon, heading, text).
43
+ * @param props.className - CSS class for the avatar container.
44
+ * @returns The rendered SidenavAvatar component.
29
45
  */
30
46
  function SidenavAvatar({ children, className, ...rest }) {
31
47
  return /* @__PURE__ */ jsx(Provider, {
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","names":[],"sources":["../../../src/components/sidenav/avatar.tsx"],"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 { clsx } from '@accelint/design-foundation/lib/utils';\nimport { HeadingContext, Provider, TextContext } from 'react-aria-components';\nimport { AvatarContext } from '../avatar/context';\nimport { IconContext } from '../icon/context';\nimport styles from './styles.module.css';\nimport type { SidenavAvatarProps } from './types';\n\n/**\n * SidenavAvatar - Avatar component for sidenav\n *\n * Provides an avatar container with proper styling for the sidenav\n */\nexport function SidenavAvatar({\n children,\n className,\n ...rest\n}: SidenavAvatarProps) {\n return (\n <Provider\n values={[\n [IconContext, { size: 'large', className: styles.icon }],\n [HeadingContext, { className: clsx(styles.heading, styles.transient) }],\n [TextContext, { className: clsx(styles.text, styles.transient) }],\n [AvatarContext, { classNames: { avatar: styles.icon } }],\n ]}\n >\n <div {...rest} className={clsx(styles.avatar, className)}>\n {children}\n </div>\n </Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,cAAc,EAC5B,UACA,WACA,GAAG,QACkB;AACrB,QACE,oBAAC;EACC,QAAQ;GACN,CAAC,aAAa;IAAE,MAAM;IAAS,WAAW,OAAO;IAAM,CAAC;GACxD,CAAC,gBAAgB,EAAE,WAAW,KAAK,OAAO,SAAS,OAAO,UAAU,EAAE,CAAC;GACvE,CAAC,aAAa,EAAE,WAAW,KAAK,OAAO,MAAM,OAAO,UAAU,EAAE,CAAC;GACjE,CAAC,eAAe,EAAE,YAAY,EAAE,QAAQ,OAAO,MAAM,EAAE,CAAC;GACzD;YAED,oBAAC;GAAI,GAAI;GAAM,WAAW,KAAK,OAAO,QAAQ,UAAU;GACrD;IACG;GACG"}
1
+ {"version":3,"file":"avatar.js","names":[],"sources":["../../../src/components/sidenav/avatar.tsx"],"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 { clsx } from '@accelint/design-foundation/lib/utils';\nimport { HeadingContext, Provider, TextContext } from 'react-aria-components';\nimport { AvatarContext } from '../avatar/context';\nimport { IconContext } from '../icon/context';\nimport styles from './styles.module.css';\nimport type { SidenavAvatarProps } from './types';\n\n/**\n * SidenavAvatar - Avatar component for sidenav\n *\n * Provides an avatar container with proper styling for the sidenav\n *\n * @example\n * ```tsx\n * <SidenavHeader>\n * <SidenavAvatar>\n * <Avatar>JD</Avatar>\n * <Heading>John Doe</Heading>\n * <Text>Administrator</Text>\n * </SidenavAvatar>\n * </SidenavHeader>\n * ```\n *\n * @param props - {@link SidenavAvatarProps}\n * @param props.children - Avatar content (icon, heading, text).\n * @param props.className - CSS class for the avatar container.\n * @returns The rendered SidenavAvatar component.\n */\nexport function SidenavAvatar({\n children,\n className,\n ...rest\n}: SidenavAvatarProps) {\n return (\n <Provider\n values={[\n [IconContext, { size: 'large', className: styles.icon }],\n [HeadingContext, { className: clsx(styles.heading, styles.transient) }],\n [TextContext, { className: clsx(styles.text, styles.transient) }],\n [AvatarContext, { classNames: { avatar: styles.icon } }],\n ]}\n >\n <div {...rest} className={clsx(styles.avatar, className)}>\n {children}\n </div>\n </Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,cAAc,EAC5B,UACA,WACA,GAAG,QACkB;AACrB,QACE,oBAAC;EACC,QAAQ;GACN,CAAC,aAAa;IAAE,MAAM;IAAS,WAAW,OAAO;IAAM,CAAC;GACxD,CAAC,gBAAgB,EAAE,WAAW,KAAK,OAAO,SAAS,OAAO,UAAU,EAAE,CAAC;GACvE,CAAC,aAAa,EAAE,WAAW,KAAK,OAAO,MAAM,OAAO,UAAU,EAAE,CAAC;GACjE,CAAC,eAAe,EAAE,YAAY,EAAE,QAAQ,OAAO,MAAM,EAAE,CAAC;GACzD;YAED,oBAAC;GAAI,GAAI;GAAM,WAAW,KAAK,OAAO,QAAQ,UAAU;GACrD;IACG;GACG"}