@cerberus-design/react 0.9.2-next-5604236 → 0.9.2-next-74f2c67

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 (310) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +730 -117
  2. package/build/legacy/aria-helpers/tabs.aria.cjs.map +1 -1
  3. package/build/legacy/components/Avatar.cjs.map +1 -1
  4. package/build/legacy/components/Button.cjs.map +1 -1
  5. package/build/legacy/components/Checkbox.cjs.map +1 -1
  6. package/build/legacy/components/CircularProgress.cjs.map +1 -1
  7. package/build/legacy/components/Droppable.cjs.map +1 -1
  8. package/build/legacy/components/FeatureFlag.cjs.map +1 -1
  9. package/build/legacy/components/FieldMessage.cjs.map +1 -1
  10. package/build/legacy/components/FileStatus.cjs +70 -74
  11. package/build/legacy/components/FileStatus.cjs.map +1 -1
  12. package/build/legacy/components/FileUploader.cjs.map +1 -1
  13. package/build/legacy/components/IconButton.cjs.map +1 -1
  14. package/build/legacy/components/Input.cjs.map +1 -1
  15. package/build/legacy/components/Label.cjs.map +1 -1
  16. package/build/legacy/components/Modal.cjs.map +1 -1
  17. package/build/legacy/components/ModalDescription.cjs.map +1 -1
  18. package/build/legacy/components/ModalHeader.cjs.map +1 -1
  19. package/build/legacy/components/ModalHeading.cjs.map +1 -1
  20. package/build/legacy/components/NavMenuLink.cjs.map +1 -1
  21. package/build/legacy/components/NavMenuList.cjs.map +1 -1
  22. package/build/legacy/components/NavMenuTrigger.cjs.map +1 -1
  23. package/build/legacy/components/Notification.cjs.map +1 -1
  24. package/build/legacy/components/NotificationDescription.cjs.map +1 -1
  25. package/build/legacy/components/NotificationHeading.cjs.map +1 -1
  26. package/build/legacy/components/Portal.cjs.map +1 -1
  27. package/build/legacy/components/ProgressBar.cjs.map +1 -1
  28. package/build/legacy/components/Radio.cjs.map +1 -1
  29. package/build/legacy/components/Select.cjs.map +1 -1
  30. package/build/legacy/components/Show.cjs.map +1 -1
  31. package/build/legacy/components/Spinner.cjs.map +1 -1
  32. package/build/legacy/components/Tab.cjs.map +1 -1
  33. package/build/legacy/components/TabList.cjs.map +1 -1
  34. package/build/legacy/components/TabPanel.cjs.map +1 -1
  35. package/build/legacy/components/Table.cjs.map +1 -1
  36. package/build/legacy/components/Tag.cjs +70 -4
  37. package/build/legacy/components/Tag.cjs.map +1 -1
  38. package/build/legacy/components/Tbody.cjs.map +1 -1
  39. package/build/legacy/components/Td.cjs.map +1 -1
  40. package/build/legacy/components/Textarea.cjs.map +1 -1
  41. package/build/legacy/components/Th.cjs.map +1 -1
  42. package/build/legacy/components/Thead.cjs.map +1 -1
  43. package/build/legacy/components/Toggle.cjs.map +1 -1
  44. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  45. package/build/legacy/context/feature-flags.cjs.map +1 -1
  46. package/build/legacy/context/field.cjs.map +1 -1
  47. package/build/legacy/context/navMenu.cjs.map +1 -1
  48. package/build/legacy/context/notification-center.cjs.map +1 -1
  49. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  50. package/build/legacy/context/tabs.cjs.map +1 -1
  51. package/build/legacy/context/theme.cjs.map +1 -1
  52. package/build/legacy/hooks/useModal.cjs.map +1 -1
  53. package/build/legacy/hooks/useTheme.cjs.map +1 -1
  54. package/build/legacy/hooks/useToggle.cjs.map +1 -1
  55. package/build/legacy/index.cjs +5 -5
  56. package/build/legacy/index.cjs.map +1 -1
  57. package/build/modern/_tsup-dts-rollup.d.ts +730 -117
  58. package/build/modern/aria-helpers/tabs.aria.js +2 -2
  59. package/build/modern/{chunk-LAOQSNMN.js → chunk-2RPWSVRX.js} +6 -6
  60. package/build/modern/chunk-2RPWSVRX.js.map +1 -0
  61. package/build/modern/{chunk-JB7IQ2BM.js → chunk-2UXE5PDG.js} +1 -1
  62. package/build/modern/chunk-2UXE5PDG.js.map +1 -0
  63. package/build/modern/{chunk-4CAT3FHV.js → chunk-2VX52EEJ.js} +1 -1
  64. package/build/modern/chunk-2VX52EEJ.js.map +1 -0
  65. package/build/modern/{chunk-A6CLBPFE.js → chunk-3O6UTN3J.js} +1 -1
  66. package/build/modern/chunk-3O6UTN3J.js.map +1 -0
  67. package/build/modern/{chunk-UN3OAW56.js → chunk-477G5ZEL.js} +2 -2
  68. package/build/modern/chunk-477G5ZEL.js.map +1 -0
  69. package/build/modern/{chunk-PMCYXRAH.js → chunk-5V5MBSM3.js} +3 -3
  70. package/build/modern/chunk-5V5MBSM3.js.map +1 -0
  71. package/build/modern/{chunk-3GXISGPS.js → chunk-7K6PZBHN.js} +2 -2
  72. package/build/modern/chunk-7K6PZBHN.js.map +1 -0
  73. package/build/modern/{chunk-IXOJLCNO.js → chunk-7SYJFI5E.js} +1 -1
  74. package/build/modern/chunk-7SYJFI5E.js.map +1 -0
  75. package/build/modern/{chunk-GABTVDSB.js → chunk-AUAPBPGW.js} +3 -3
  76. package/build/modern/chunk-AUAPBPGW.js.map +1 -0
  77. package/build/modern/{chunk-A5WYZVUR.js → chunk-B4CVET74.js} +1 -1
  78. package/build/modern/chunk-B4CVET74.js.map +1 -0
  79. package/build/modern/{chunk-2UFNQM55.js → chunk-BE4EOU2P.js} +1 -1
  80. package/build/modern/{chunk-2UFNQM55.js.map → chunk-BE4EOU2P.js.map} +1 -1
  81. package/build/modern/{chunk-VULPMZUW.js → chunk-BIDE4IJG.js} +3 -3
  82. package/build/modern/chunk-BIDE4IJG.js.map +1 -0
  83. package/build/modern/{chunk-4O4QFF4S.js → chunk-BUVVRQLZ.js} +1 -1
  84. package/build/modern/chunk-BUVVRQLZ.js.map +1 -0
  85. package/build/modern/{chunk-4M3EUP57.js → chunk-CJFW36DZ.js} +1 -1
  86. package/build/modern/chunk-CJFW36DZ.js.map +1 -0
  87. package/build/modern/{chunk-ZBEHDXFT.js → chunk-E6QFLLXH.js} +13 -13
  88. package/build/modern/chunk-E6QFLLXH.js.map +1 -0
  89. package/build/modern/{chunk-S3MTABYX.js → chunk-EB37HRCN.js} +2 -2
  90. package/build/modern/chunk-EB37HRCN.js.map +1 -0
  91. package/build/modern/{chunk-JXJ6VFZO.js → chunk-EJOXOICK.js} +1 -1
  92. package/build/modern/chunk-EJOXOICK.js.map +1 -0
  93. package/build/modern/{chunk-6F34A7NZ.js → chunk-EXGKZGML.js} +1 -1
  94. package/build/modern/chunk-EXGKZGML.js.map +1 -0
  95. package/build/modern/{chunk-ISPTI4GC.js → chunk-EZYCKM7R.js} +2 -2
  96. package/build/modern/chunk-EZYCKM7R.js.map +1 -0
  97. package/build/modern/{chunk-4YJOK7JJ.js → chunk-GMG3B34U.js} +2 -2
  98. package/build/modern/chunk-GMG3B34U.js.map +1 -0
  99. package/build/modern/{chunk-U72VPIZA.js → chunk-HHVQ6LCA.js} +3 -3
  100. package/build/modern/chunk-HHVQ6LCA.js.map +1 -0
  101. package/build/modern/{chunk-XREC5IJE.js → chunk-HPM2XRWT.js} +1 -1
  102. package/build/modern/chunk-HPM2XRWT.js.map +1 -0
  103. package/build/modern/{chunk-RQPDRHRP.js → chunk-I35HMGJQ.js} +3 -3
  104. package/build/modern/chunk-I35HMGJQ.js.map +1 -0
  105. package/build/modern/{chunk-CMKBUSGN.js → chunk-ILZKQP6R.js} +10 -10
  106. package/build/modern/chunk-ILZKQP6R.js.map +1 -0
  107. package/build/modern/{chunk-GKUDLVOV.js → chunk-ITOIXNJS.js} +2 -2
  108. package/build/modern/{chunk-BTEEBIVN.js → chunk-JCGWTIR4.js} +3 -3
  109. package/build/modern/chunk-JCGWTIR4.js.map +1 -0
  110. package/build/modern/{chunk-TCO46FK7.js → chunk-JIJM6JFJ.js} +2 -2
  111. package/build/modern/chunk-JIJM6JFJ.js.map +1 -0
  112. package/build/modern/{chunk-VGHVH2T3.js → chunk-JWIJHSI6.js} +5 -3
  113. package/build/modern/chunk-JWIJHSI6.js.map +1 -0
  114. package/build/modern/{chunk-6DIGPXAD.js → chunk-KBBASJIY.js} +2 -2
  115. package/build/modern/chunk-KBBASJIY.js.map +1 -0
  116. package/build/modern/{chunk-SONHHNYQ.js → chunk-LFWAJ5DX.js} +3 -3
  117. package/build/modern/chunk-LFWAJ5DX.js.map +1 -0
  118. package/build/modern/{chunk-PH64POOB.js → chunk-LJYCFFX7.js} +2 -2
  119. package/build/modern/chunk-LJYCFFX7.js.map +1 -0
  120. package/build/modern/{chunk-AEDGCR25.js → chunk-NUGDTZCL.js} +7 -7
  121. package/build/modern/chunk-NUGDTZCL.js.map +1 -0
  122. package/build/modern/{chunk-XPVDT4VF.js → chunk-O6JYYVO7.js} +3 -3
  123. package/build/modern/chunk-O6JYYVO7.js.map +1 -0
  124. package/build/modern/{chunk-KJUCHZHV.js → chunk-O75QAT4Z.js} +1 -1
  125. package/build/modern/chunk-O75QAT4Z.js.map +1 -0
  126. package/build/modern/{chunk-C5HLLGME.js → chunk-OW62FLJ6.js} +1 -1
  127. package/build/modern/chunk-OW62FLJ6.js.map +1 -0
  128. package/build/modern/{chunk-RPZAPUCF.js → chunk-OWKN5IV7.js} +3 -3
  129. package/build/modern/chunk-OWKN5IV7.js.map +1 -0
  130. package/build/modern/{chunk-PJ3744I6.js → chunk-PKQTTFWA.js} +1 -1
  131. package/build/modern/chunk-PKQTTFWA.js.map +1 -0
  132. package/build/modern/{chunk-N3FUF4TB.js → chunk-PKY46RRA.js} +1 -1
  133. package/build/modern/chunk-PKY46RRA.js.map +1 -0
  134. package/build/modern/{chunk-4M4LCQ43.js → chunk-Q7BRMIBR.js} +1 -1
  135. package/build/modern/{chunk-4M4LCQ43.js.map → chunk-Q7BRMIBR.js.map} +1 -1
  136. package/build/modern/{chunk-QEA6N6TN.js → chunk-REO5GUNC.js} +1 -1
  137. package/build/modern/chunk-REO5GUNC.js.map +1 -0
  138. package/build/modern/{chunk-KF24CS4S.js → chunk-RIFQSCHT.js} +1 -1
  139. package/build/modern/chunk-RIFQSCHT.js.map +1 -0
  140. package/build/modern/{chunk-RBZAEOKN.js → chunk-S7XGIQY6.js} +6 -3
  141. package/build/modern/chunk-S7XGIQY6.js.map +1 -0
  142. package/build/modern/{chunk-3C2DJSEE.js → chunk-SXIXDXG3.js} +1 -1
  143. package/build/modern/chunk-SXIXDXG3.js.map +1 -0
  144. package/build/modern/{chunk-7VJOPJVX.js → chunk-TKI2CKHH.js} +1 -1
  145. package/build/modern/chunk-TKI2CKHH.js.map +1 -0
  146. package/build/modern/{chunk-SLHX5K6I.js → chunk-UBJBMOG7.js} +4 -2
  147. package/build/modern/chunk-UBJBMOG7.js.map +1 -0
  148. package/build/modern/{chunk-ZAU4JVLL.js → chunk-UZDVOIW5.js} +1 -1
  149. package/build/modern/chunk-UZDVOIW5.js.map +1 -0
  150. package/build/modern/{chunk-QZ6NS6VN.js → chunk-VG46RHBJ.js} +1 -1
  151. package/build/modern/chunk-VG46RHBJ.js.map +1 -0
  152. package/build/modern/{chunk-QU7UV5DB.js → chunk-WLEX22KS.js} +1 -1
  153. package/build/modern/chunk-WLEX22KS.js.map +1 -0
  154. package/build/modern/{chunk-SSY3KX3F.js → chunk-WZOYPFUU.js} +3 -3
  155. package/build/modern/chunk-WZOYPFUU.js.map +1 -0
  156. package/build/modern/{chunk-HW76XVA3.js → chunk-XEW6TJJ4.js} +1 -1
  157. package/build/modern/chunk-XEW6TJJ4.js.map +1 -0
  158. package/build/modern/{chunk-G6O7KRQ6.js → chunk-ZFK33MVD.js} +1 -1
  159. package/build/modern/chunk-ZFK33MVD.js.map +1 -0
  160. package/build/modern/components/Avatar.js +2 -2
  161. package/build/modern/components/Button.js +1 -1
  162. package/build/modern/components/Checkbox.js +3 -3
  163. package/build/modern/components/CircularProgress.js +1 -1
  164. package/build/modern/components/Droppable.js +1 -1
  165. package/build/modern/components/FeatureFlag.js +3 -3
  166. package/build/modern/components/FieldMessage.js +2 -2
  167. package/build/modern/components/FileStatus.js +7 -7
  168. package/build/modern/components/FileUploader.js +3 -3
  169. package/build/modern/components/IconButton.js +1 -1
  170. package/build/modern/components/Input.js +3 -3
  171. package/build/modern/components/Label.js +3 -3
  172. package/build/modern/components/Modal.js +1 -1
  173. package/build/modern/components/ModalDescription.js +1 -1
  174. package/build/modern/components/ModalHeader.js +1 -1
  175. package/build/modern/components/ModalHeading.js +1 -1
  176. package/build/modern/components/NavMenuLink.js +2 -2
  177. package/build/modern/components/NavMenuList.js +3 -3
  178. package/build/modern/components/NavMenuTrigger.js +3 -3
  179. package/build/modern/components/Notification.js +1 -1
  180. package/build/modern/components/NotificationDescription.js +1 -1
  181. package/build/modern/components/NotificationHeading.js +1 -1
  182. package/build/modern/components/Portal.js +1 -1
  183. package/build/modern/components/ProgressBar.js +1 -1
  184. package/build/modern/components/Radio.js +2 -2
  185. package/build/modern/components/Select.js +3 -3
  186. package/build/modern/components/Show.js +1 -1
  187. package/build/modern/components/Spinner.js +1 -1
  188. package/build/modern/components/Tab.js +3 -3
  189. package/build/modern/components/TabList.js +2 -2
  190. package/build/modern/components/TabPanel.js +3 -3
  191. package/build/modern/components/Table.js +1 -1
  192. package/build/modern/components/Tag.js +5 -2
  193. package/build/modern/components/Tbody.js +1 -1
  194. package/build/modern/components/Td.js +1 -1
  195. package/build/modern/components/Textarea.js +2 -2
  196. package/build/modern/components/Th.js +2 -2
  197. package/build/modern/components/Thead.js +1 -1
  198. package/build/modern/components/Toggle.js +2 -2
  199. package/build/modern/context/confirm-modal.js +10 -10
  200. package/build/modern/context/feature-flags.js +1 -1
  201. package/build/modern/context/field.js +1 -1
  202. package/build/modern/context/navMenu.js +1 -1
  203. package/build/modern/context/notification-center.js +7 -7
  204. package/build/modern/context/prompt-modal.js +13 -13
  205. package/build/modern/context/tabs.js +1 -1
  206. package/build/modern/context/theme.js +2 -2
  207. package/build/modern/hooks/useModal.js +1 -1
  208. package/build/modern/hooks/useTheme.js +1 -1
  209. package/build/modern/hooks/useToggle.js +1 -1
  210. package/build/modern/index.js +51 -51
  211. package/package.json +2 -2
  212. package/src/components/Avatar.tsx +28 -1
  213. package/src/components/Button.tsx +1 -1
  214. package/src/components/Checkbox.tsx +11 -1
  215. package/src/components/CircularProgress.tsx +1 -1
  216. package/src/components/Droppable.tsx +13 -0
  217. package/src/components/FeatureFlag.tsx +7 -0
  218. package/src/components/FieldMessage.tsx +13 -6
  219. package/src/components/FileStatus.tsx +38 -11
  220. package/src/components/FileUploader.tsx +10 -0
  221. package/src/components/IconButton.tsx +15 -5
  222. package/src/components/Input.tsx +21 -4
  223. package/src/components/Label.tsx +13 -8
  224. package/src/components/Modal.tsx +8 -3
  225. package/src/components/ModalDescription.tsx +1 -0
  226. package/src/components/ModalHeader.tsx +1 -0
  227. package/src/components/ModalHeading.tsx +1 -0
  228. package/src/components/NavMenuLink.tsx +22 -0
  229. package/src/components/NavMenuList.tsx +37 -5
  230. package/src/components/NavMenuTrigger.tsx +13 -0
  231. package/src/components/Notification.tsx +13 -6
  232. package/src/components/NotificationDescription.tsx +8 -6
  233. package/src/components/NotificationHeading.tsx +8 -6
  234. package/src/components/Portal.tsx +9 -2
  235. package/src/components/ProgressBar.tsx +14 -4
  236. package/src/components/Radio.tsx +29 -0
  237. package/src/components/Select.tsx +17 -8
  238. package/src/components/Show.tsx +16 -5
  239. package/src/components/Spinner.tsx +12 -5
  240. package/src/components/Tab.tsx +13 -5
  241. package/src/components/TabList.tsx +5 -1
  242. package/src/components/TabPanel.tsx +7 -2
  243. package/src/components/Table.tsx +6 -3
  244. package/src/components/Tag.tsx +28 -2
  245. package/src/components/Tbody.tsx +7 -1
  246. package/src/components/Td.tsx +2 -1
  247. package/src/components/Textarea.tsx +9 -4
  248. package/src/components/Th.tsx +13 -1
  249. package/src/components/Thead.tsx +2 -1
  250. package/src/components/Toggle.tsx +35 -0
  251. package/src/context/confirm-modal.tsx +17 -0
  252. package/src/context/feature-flags.tsx +4 -1
  253. package/src/context/field.tsx +26 -0
  254. package/src/context/navMenu.tsx +25 -0
  255. package/src/context/notification-center.tsx +17 -0
  256. package/src/context/prompt-modal.tsx +39 -1
  257. package/src/context/tabs.tsx +31 -4
  258. package/src/context/theme.tsx +29 -1
  259. package/src/hooks/useModal.ts +14 -0
  260. package/src/hooks/useTheme.ts +21 -0
  261. package/src/hooks/useToggle.ts +22 -0
  262. package/build/modern/chunk-3C2DJSEE.js.map +0 -1
  263. package/build/modern/chunk-3GXISGPS.js.map +0 -1
  264. package/build/modern/chunk-4CAT3FHV.js.map +0 -1
  265. package/build/modern/chunk-4M3EUP57.js.map +0 -1
  266. package/build/modern/chunk-4O4QFF4S.js.map +0 -1
  267. package/build/modern/chunk-4YJOK7JJ.js.map +0 -1
  268. package/build/modern/chunk-6DIGPXAD.js.map +0 -1
  269. package/build/modern/chunk-6F34A7NZ.js.map +0 -1
  270. package/build/modern/chunk-7VJOPJVX.js.map +0 -1
  271. package/build/modern/chunk-A5WYZVUR.js.map +0 -1
  272. package/build/modern/chunk-A6CLBPFE.js.map +0 -1
  273. package/build/modern/chunk-AEDGCR25.js.map +0 -1
  274. package/build/modern/chunk-BTEEBIVN.js.map +0 -1
  275. package/build/modern/chunk-C5HLLGME.js.map +0 -1
  276. package/build/modern/chunk-CMKBUSGN.js.map +0 -1
  277. package/build/modern/chunk-G6O7KRQ6.js.map +0 -1
  278. package/build/modern/chunk-GABTVDSB.js.map +0 -1
  279. package/build/modern/chunk-HW76XVA3.js.map +0 -1
  280. package/build/modern/chunk-ISPTI4GC.js.map +0 -1
  281. package/build/modern/chunk-IXOJLCNO.js.map +0 -1
  282. package/build/modern/chunk-JB7IQ2BM.js.map +0 -1
  283. package/build/modern/chunk-JXJ6VFZO.js.map +0 -1
  284. package/build/modern/chunk-KF24CS4S.js.map +0 -1
  285. package/build/modern/chunk-KJUCHZHV.js.map +0 -1
  286. package/build/modern/chunk-LAOQSNMN.js.map +0 -1
  287. package/build/modern/chunk-N3FUF4TB.js.map +0 -1
  288. package/build/modern/chunk-PH64POOB.js.map +0 -1
  289. package/build/modern/chunk-PJ3744I6.js.map +0 -1
  290. package/build/modern/chunk-PMCYXRAH.js.map +0 -1
  291. package/build/modern/chunk-QEA6N6TN.js.map +0 -1
  292. package/build/modern/chunk-QU7UV5DB.js.map +0 -1
  293. package/build/modern/chunk-QZ6NS6VN.js.map +0 -1
  294. package/build/modern/chunk-RBZAEOKN.js.map +0 -1
  295. package/build/modern/chunk-RPZAPUCF.js.map +0 -1
  296. package/build/modern/chunk-RQPDRHRP.js.map +0 -1
  297. package/build/modern/chunk-S3MTABYX.js.map +0 -1
  298. package/build/modern/chunk-SLHX5K6I.js.map +0 -1
  299. package/build/modern/chunk-SONHHNYQ.js.map +0 -1
  300. package/build/modern/chunk-SSY3KX3F.js.map +0 -1
  301. package/build/modern/chunk-TCO46FK7.js.map +0 -1
  302. package/build/modern/chunk-U72VPIZA.js.map +0 -1
  303. package/build/modern/chunk-UN3OAW56.js.map +0 -1
  304. package/build/modern/chunk-VGHVH2T3.js.map +0 -1
  305. package/build/modern/chunk-VULPMZUW.js.map +0 -1
  306. package/build/modern/chunk-XPVDT4VF.js.map +0 -1
  307. package/build/modern/chunk-XREC5IJE.js.map +0 -1
  308. package/build/modern/chunk-ZAU4JVLL.js.map +0 -1
  309. package/build/modern/chunk-ZBEHDXFT.js.map +0 -1
  310. /package/build/modern/{chunk-GKUDLVOV.js.map → chunk-ITOIXNJS.js.map} +0 -0
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  PromptModal,
4
4
  usePromptModal
5
- } from "../chunk-ZBEHDXFT.js";
6
- import "../chunk-4CAT3FHV.js";
7
- import "../chunk-QU7UV5DB.js";
8
- import "../chunk-JB7IQ2BM.js";
9
- import "../chunk-SSY3KX3F.js";
10
- import "../chunk-RQPDRHRP.js";
11
- import "../chunk-2UFNQM55.js";
12
- import "../chunk-4M4LCQ43.js";
13
- import "../chunk-UN3OAW56.js";
14
- import "../chunk-6F34A7NZ.js";
15
- import "../chunk-ZAU4JVLL.js";
16
- import "../chunk-4O4QFF4S.js";
5
+ } from "../chunk-E6QFLLXH.js";
6
+ import "../chunk-2VX52EEJ.js";
7
+ import "../chunk-WLEX22KS.js";
8
+ import "../chunk-2UXE5PDG.js";
9
+ import "../chunk-WZOYPFUU.js";
10
+ import "../chunk-I35HMGJQ.js";
11
+ import "../chunk-BE4EOU2P.js";
12
+ import "../chunk-Q7BRMIBR.js";
13
+ import "../chunk-477G5ZEL.js";
14
+ import "../chunk-EXGKZGML.js";
15
+ import "../chunk-UZDVOIW5.js";
16
+ import "../chunk-BUVVRQLZ.js";
17
17
  import "../chunk-JIZQFTW6.js";
18
18
  import "../chunk-NBG2OSYI.js";
19
19
  import "../chunk-BDCFYW34.js";
20
20
  import "../chunk-CP7OUC2Q.js";
21
- import "../chunk-C5HLLGME.js";
21
+ import "../chunk-OW62FLJ6.js";
22
22
  export {
23
23
  PromptModal,
24
24
  usePromptModal
@@ -3,7 +3,7 @@ import {
3
3
  Tabs,
4
4
  TabsContext,
5
5
  useTabsContext
6
- } from "../chunk-KF24CS4S.js";
6
+ } from "../chunk-RIFQSCHT.js";
7
7
  export {
8
8
  Tabs,
9
9
  TabsContext,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  ThemeProvider,
4
4
  useThemeContext
5
- } from "../chunk-S3MTABYX.js";
6
- import "../chunk-JXJ6VFZO.js";
5
+ } from "../chunk-EB37HRCN.js";
6
+ import "../chunk-EJOXOICK.js";
7
7
  export {
8
8
  ThemeProvider,
9
9
  useThemeContext
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useModal
4
- } from "../chunk-C5HLLGME.js";
4
+ } from "../chunk-OW62FLJ6.js";
5
5
  export {
6
6
  useModal
7
7
  };
@@ -3,7 +3,7 @@ import {
3
3
  MODE_KEY,
4
4
  THEME_KEY,
5
5
  useTheme
6
- } from "../chunk-JXJ6VFZO.js";
6
+ } from "../chunk-EJOXOICK.js";
7
7
  export {
8
8
  MODE_KEY,
9
9
  THEME_KEY,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useToggle
4
- } from "../chunk-QEA6N6TN.js";
4
+ } from "../chunk-REO5GUNC.js";
5
5
  export {
6
6
  useToggle
7
7
  };
@@ -1,172 +1,172 @@
1
1
  import {
2
2
  ThemeProvider,
3
3
  useThemeContext
4
- } from "./chunk-S3MTABYX.js";
4
+ } from "./chunk-EB37HRCN.js";
5
5
  import {
6
6
  Toggle
7
- } from "./chunk-4YJOK7JJ.js";
7
+ } from "./chunk-GMG3B34U.js";
8
8
  import {
9
9
  ConfirmModal,
10
10
  useConfirmModal
11
- } from "./chunk-CMKBUSGN.js";
11
+ } from "./chunk-ILZKQP6R.js";
12
12
  import {
13
13
  NotificationCenter,
14
14
  useNotificationCenter
15
- } from "./chunk-AEDGCR25.js";
15
+ } from "./chunk-NUGDTZCL.js";
16
16
  import {
17
17
  PromptModal,
18
18
  usePromptModal
19
- } from "./chunk-ZBEHDXFT.js";
19
+ } from "./chunk-E6QFLLXH.js";
20
20
  import {
21
21
  TabPanel
22
- } from "./chunk-U72VPIZA.js";
22
+ } from "./chunk-HHVQ6LCA.js";
23
23
  import {
24
24
  Table,
25
25
  Tr
26
- } from "./chunk-A5WYZVUR.js";
26
+ } from "./chunk-B4CVET74.js";
27
27
  import {
28
28
  Tag
29
- } from "./chunk-RBZAEOKN.js";
29
+ } from "./chunk-S7XGIQY6.js";
30
30
  import {
31
31
  Tbody
32
- } from "./chunk-PJ3744I6.js";
32
+ } from "./chunk-PKQTTFWA.js";
33
33
  import {
34
34
  Td
35
- } from "./chunk-XREC5IJE.js";
35
+ } from "./chunk-HPM2XRWT.js";
36
36
  import {
37
37
  Textarea
38
- } from "./chunk-TCO46FK7.js";
38
+ } from "./chunk-JIJM6JFJ.js";
39
39
  import {
40
40
  Th
41
- } from "./chunk-3GXISGPS.js";
41
+ } from "./chunk-7K6PZBHN.js";
42
42
  import {
43
43
  Thead
44
- } from "./chunk-N3FUF4TB.js";
44
+ } from "./chunk-PKY46RRA.js";
45
45
  import {
46
46
  Portal
47
- } from "./chunk-4CAT3FHV.js";
47
+ } from "./chunk-2VX52EEJ.js";
48
48
  import {
49
49
  Radio
50
- } from "./chunk-PH64POOB.js";
50
+ } from "./chunk-LJYCFFX7.js";
51
51
  import {
52
52
  Option,
53
53
  Select
54
- } from "./chunk-XPVDT4VF.js";
54
+ } from "./chunk-O6JYYVO7.js";
55
55
  import {
56
56
  Spinner
57
- } from "./chunk-IXOJLCNO.js";
57
+ } from "./chunk-7SYJFI5E.js";
58
58
  import {
59
59
  Tab
60
- } from "./chunk-SONHHNYQ.js";
60
+ } from "./chunk-LFWAJ5DX.js";
61
61
  import {
62
62
  TabList
63
- } from "./chunk-ISPTI4GC.js";
63
+ } from "./chunk-EZYCKM7R.js";
64
64
  import {
65
65
  ModalHeader
66
- } from "./chunk-QU7UV5DB.js";
66
+ } from "./chunk-WLEX22KS.js";
67
67
  import {
68
68
  ModalHeading
69
- } from "./chunk-JB7IQ2BM.js";
69
+ } from "./chunk-2UXE5PDG.js";
70
70
  import {
71
71
  NavMenuLink
72
- } from "./chunk-6DIGPXAD.js";
72
+ } from "./chunk-KBBASJIY.js";
73
73
  import {
74
74
  NavMenuList,
75
75
  getPosition
76
- } from "./chunk-PMCYXRAH.js";
76
+ } from "./chunk-5V5MBSM3.js";
77
77
  import {
78
78
  NavMenuTrigger
79
- } from "./chunk-RPZAPUCF.js";
79
+ } from "./chunk-OWKN5IV7.js";
80
80
  import {
81
81
  NavMenu,
82
82
  useNavMenuContext
83
- } from "./chunk-KJUCHZHV.js";
83
+ } from "./chunk-O75QAT4Z.js";
84
84
  import {
85
85
  Notification
86
- } from "./chunk-QZ6NS6VN.js";
86
+ } from "./chunk-VG46RHBJ.js";
87
87
  import {
88
88
  NotificationDescription
89
- } from "./chunk-HW76XVA3.js";
89
+ } from "./chunk-XEW6TJJ4.js";
90
90
  import {
91
91
  NotificationHeading
92
- } from "./chunk-3C2DJSEE.js";
92
+ } from "./chunk-SXIXDXG3.js";
93
93
  import {
94
94
  FileStatus,
95
95
  processStatus
96
- } from "./chunk-LAOQSNMN.js";
96
+ } from "./chunk-2RPWSVRX.js";
97
97
  import {
98
98
  ProgressBar
99
- } from "./chunk-G6O7KRQ6.js";
99
+ } from "./chunk-ZFK33MVD.js";
100
100
  import {
101
101
  FieldMessage
102
- } from "./chunk-VGHVH2T3.js";
102
+ } from "./chunk-JWIJHSI6.js";
103
103
  import {
104
104
  FileUploader
105
- } from "./chunk-BTEEBIVN.js";
105
+ } from "./chunk-JCGWTIR4.js";
106
106
  import {
107
107
  IconButton
108
- } from "./chunk-SLHX5K6I.js";
108
+ } from "./chunk-UBJBMOG7.js";
109
109
  import {
110
110
  Input
111
- } from "./chunk-SSY3KX3F.js";
111
+ } from "./chunk-WZOYPFUU.js";
112
112
  import {
113
113
  Label
114
- } from "./chunk-RQPDRHRP.js";
114
+ } from "./chunk-I35HMGJQ.js";
115
115
  import {
116
116
  Modal
117
- } from "./chunk-2UFNQM55.js";
117
+ } from "./chunk-BE4EOU2P.js";
118
118
  import {
119
119
  ModalDescription
120
- } from "./chunk-4M4LCQ43.js";
120
+ } from "./chunk-Q7BRMIBR.js";
121
121
  import {
122
122
  MODE_KEY,
123
123
  THEME_KEY,
124
124
  useTheme
125
- } from "./chunk-JXJ6VFZO.js";
125
+ } from "./chunk-EJOXOICK.js";
126
126
  import {
127
127
  useToggle
128
- } from "./chunk-QEA6N6TN.js";
128
+ } from "./chunk-REO5GUNC.js";
129
129
  import {
130
130
  Avatar
131
- } from "./chunk-UN3OAW56.js";
131
+ } from "./chunk-477G5ZEL.js";
132
132
  import {
133
133
  Button
134
- } from "./chunk-6F34A7NZ.js";
134
+ } from "./chunk-EXGKZGML.js";
135
135
  import {
136
136
  Checkbox
137
- } from "./chunk-GABTVDSB.js";
137
+ } from "./chunk-AUAPBPGW.js";
138
138
  import {
139
139
  Field,
140
140
  useFieldContext
141
- } from "./chunk-ZAU4JVLL.js";
141
+ } from "./chunk-UZDVOIW5.js";
142
142
  import {
143
143
  CircularProgress
144
- } from "./chunk-A6CLBPFE.js";
144
+ } from "./chunk-3O6UTN3J.js";
145
145
  import {
146
146
  Droppable
147
- } from "./chunk-7VJOPJVX.js";
147
+ } from "./chunk-TKI2CKHH.js";
148
148
  import {
149
149
  FeatureFlag
150
- } from "./chunk-VULPMZUW.js";
150
+ } from "./chunk-BIDE4IJG.js";
151
151
  import {
152
152
  FeatureFlags,
153
153
  useFeatureFlags
154
- } from "./chunk-4M3EUP57.js";
154
+ } from "./chunk-CJFW36DZ.js";
155
155
  import {
156
156
  Show
157
- } from "./chunk-4O4QFF4S.js";
157
+ } from "./chunk-BUVVRQLZ.js";
158
158
  import "./chunk-55J6XMHW.js";
159
159
  import {
160
160
  createNavTriggerProps
161
161
  } from "./chunk-JF76VIL3.js";
162
162
  import {
163
163
  useTabsKeyboardNavigation
164
- } from "./chunk-GKUDLVOV.js";
164
+ } from "./chunk-ITOIXNJS.js";
165
165
  import {
166
166
  Tabs,
167
167
  TabsContext,
168
168
  useTabsContext
169
- } from "./chunk-KF24CS4S.js";
169
+ } from "./chunk-RIFQSCHT.js";
170
170
  import {
171
171
  trapFocus
172
172
  } from "./chunk-JIZQFTW6.js";
@@ -178,7 +178,7 @@ import "./chunk-BDCFYW34.js";
178
178
  import "./chunk-CP7OUC2Q.js";
179
179
  import {
180
180
  useModal
181
- } from "./chunk-C5HLLGME.js";
181
+ } from "./chunk-OW62FLJ6.js";
182
182
 
183
183
  // src/index.ts
184
184
  export * from "@dnd-kit/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerberus-design/react",
3
- "version": "0.9.2-next-5604236",
3
+ "version": "0.9.2-next-74f2c67",
4
4
  "description": "The Cerberus Design React component library.",
5
5
  "browserslist": "> 0.25%, not dead",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  "react-dom": "^18",
27
27
  "tsup": "^8.1.0",
28
28
  "@cerberus-design/configs": "0.0.0",
29
- "@cerberus-design/styled-system": "0.9.2-next-5604236"
29
+ "@cerberus-design/styled-system": "0.9.2-next-74f2c67"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
@@ -14,19 +14,46 @@ import { Show } from './Show'
14
14
  */
15
15
 
16
16
  export type SharedAvatarProps = {
17
+ /**
18
+ * An optional icon to show when no src or ariaLabel is provided.
19
+ */
17
20
  icon?: ReactNode
21
+ /**
22
+ * The size of the avatar.
23
+ */
18
24
  width?: number
25
+ /**
26
+ * The size of the avatar.
27
+ */
19
28
  height?: number
20
29
  }
21
30
  export type AvatarImageProps = HtmlHTMLAttributes<HTMLImageElement> &
22
31
  SharedAvatarProps & {
32
+ /**
33
+ * The aria-label for the avatar needed for accessibility.
34
+ */
23
35
  ariaLabel: string
36
+ /**
37
+ * An optional element to replace the image. Recommended for Next.js Image component.
38
+ */
24
39
  as?: never
40
+ /**
41
+ * The source of the image.
42
+ */
25
43
  src: string
26
44
  }
27
45
  export type AvatarAsProps = SharedAvatarProps & {
46
+ /**
47
+ * An optional element to replace the image. Recommended for Next.js Image component.
48
+ */
28
49
  as: ReactNode
50
+ /**
51
+ * The aria-label for the avatar needed for accessibility.
52
+ */
29
53
  ariaLabel?: never
54
+ /**
55
+ * The source of the image.
56
+ */
30
57
  src?: never
31
58
  }
32
59
 
@@ -36,7 +63,7 @@ export type AvatarProps = (HtmlHTMLAttributes<HTMLDivElement> &
36
63
 
37
64
  /**
38
65
  * The Avatar component is used to represent a user or entity. It will show an image if src provided, otherwise it will show the ariaLabel of the ariaLabel. If the ariaLabel is empty, it will show a `defineIcons().avatar` icon.
39
- * @definition [Avatar docs](https://cerberus.digitalu.design/react/avatar)
66
+ * @see https://cerberus.digitalu.design/react/avatar
40
67
  * @example
41
68
  * ```tsx
42
69
  * <Avatar
@@ -15,7 +15,7 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &
15
15
 
16
16
  /**
17
17
  * A component that allows the user to perform actions
18
- * @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/Button.tsx
18
+ * @see https://cerberus.digitalu.design/react/button
19
19
  */
20
20
  export function Button(props: ButtonProps): JSX.Element {
21
21
  const { palette, usage, shape, ...nativeProps } = props
@@ -18,8 +18,18 @@ import { $cerberusIcons } from '../config/defineIcons'
18
18
 
19
19
  export type CheckboxProps = CheckboxVariantProps &
20
20
  Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {
21
+ /**
22
+ * The id of the FieldMessage element describing the Checkbox.
23
+ */
21
24
  describedBy?: string
25
+ /**
26
+ * The unique identifier for the checkbox. Required for accessibility.
27
+ */
22
28
  id: string
29
+ /**
30
+ * Used to display a mixed checked state.
31
+ * @description [ARIA Mixed State](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/examples/checkbox-mixed/)
32
+ */
23
33
  mixed?: boolean
24
34
  }
25
35
 
@@ -27,7 +37,7 @@ export type CheckboxProps = CheckboxVariantProps &
27
37
  * Checkbox component
28
38
  * @definition [ARIA Target Size](https://www.w3.org/WAI/WCAG21/Understanding/target-size.html#:~:text=Understanding%20SC%202.5.,%3ATarget%20Size%20(Level%20AAA)&text=The%20size%20of%20the%20target,Equivalent)
29
39
  * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
30
- * @definition [Checkbox docs](https://cerberus.digitalu.design/react/checkbox)
40
+ * @see https://cerberus.digitalu.design/react/checkbox
31
41
  * @example
32
42
  * ```tsx
33
43
  * <Field>
@@ -30,7 +30,7 @@ export interface CircularProgressProps extends SVGProps<SVGSVGElement> {
30
30
  * @param props.now - The current value of the CircularProgress
31
31
  * @param props.title - The title of the CircularProgress for a11y
32
32
  * @param props.label - What is shown below the now value (default: 'Done')
33
- * @description [CircularProgress Docs](https://cerberus.digitalu.design/react/progress/)
33
+ * @see https://cerberus.digitalu.design/react/progress-indicators
34
34
  * @example
35
35
  * ```tsx
36
36
  * <CircularProgress now={24} title="Course completion" label="done" />
@@ -6,9 +6,22 @@ import { useId, type HtmlHTMLAttributes, type PropsWithChildren } from 'react'
6
6
  export interface DroppableProps
7
7
  extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'id'>,
8
8
  UseDroppableArguments {
9
+ /**
10
+ * If the item has been dropped.
11
+ */
9
12
  dropped?: boolean
10
13
  }
11
14
 
15
+ /**
16
+ * A Cerberus component is used to define a drop target for draggable elements.
17
+ * @see https://dndkit.com/
18
+ * @example
19
+ * ```tsx
20
+ * <Droppable id="dropzone">
21
+ * <Draggable id="draggable">Drag me</Draggable>
22
+ * </Droppable>
23
+ * ```
24
+ */
12
25
  export function Droppable(props: PropsWithChildren<DroppableProps>) {
13
26
  const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } =
14
27
  props
@@ -5,9 +5,16 @@ import { useFeatureFlags } from '../context/feature-flags'
5
5
  import { Show } from './Show'
6
6
 
7
7
  export interface FeatureFlagProps {
8
+ /**
9
+ * The name of the feature flag to check.
10
+ */
8
11
  flag: string
9
12
  }
10
13
 
14
+ /**
15
+ * A component that allows you to show or hide content based on a feature flag.
16
+ * @see https://cerberus.digitalu.design/react/feature-flags
17
+ */
11
18
  export function FeatureFlag(props: PropsWithChildren<FeatureFlagProps>) {
12
19
  const showContent = useFeatureFlags(props.flag)
13
20
  return <Show when={showContent}>{props.children}</Show>
@@ -1,25 +1,32 @@
1
1
  'use client'
2
2
 
3
3
  import type { HTMLAttributes } from 'react'
4
- import { cx, type RecipeVariantProps } from '@cerberus/styled-system/css'
5
- import { fieldMessage } from '@cerberus/styled-system/recipes'
4
+ import { cx } from '@cerberus/styled-system/css'
5
+ import {
6
+ fieldMessage,
7
+ type FieldMessageVariantProps,
8
+ } from '@cerberus/styled-system/recipes'
6
9
  import { useFieldContext } from '../context/field'
7
10
 
8
11
  /**
9
12
  * This module contains the FieldMessage component.
10
13
  * @module
11
14
  */
12
-
13
- export type FieldMessageRecipe = RecipeVariantProps<typeof fieldMessage>
14
15
  export interface FieldMessageBaseProps
15
16
  extends HTMLAttributes<HTMLParagraphElement> {
17
+ /**
18
+ * The id of the FieldMessage element describing the field. Required for accessibility. It is considered best practice to use the `help` or `error` prefix to help screen readers identify the type of message.
19
+ *
20
+ * @example For help messages: `help:field_id`
21
+ * @example For error messages: `error:field_id`
22
+ */
16
23
  id: string
17
24
  }
18
- export type FieldMessageProps = FieldMessageBaseProps & FieldMessageRecipe
25
+ export type FieldMessageProps = FieldMessageBaseProps & FieldMessageVariantProps
19
26
 
20
27
  /**
21
28
  * A component that provides feedback about the field.
22
- * @description [FieldMessage Docs](https://cerberus.digitalu.design/react/field-message)
29
+ * @see https://cerberus.digitalu.design/react/field-message
23
30
  * @example
24
31
  * ```tsx
25
32
  * <Field>
@@ -6,8 +6,6 @@ import {
6
6
  type HTMLAttributes,
7
7
  type MouseEvent,
8
8
  } from 'react'
9
- import { ProgressBar } from './ProgressBar'
10
- import { IconButton } from './IconButton'
11
9
  import {
12
10
  fileStatus,
13
11
  type FileStatusVariantProps,
@@ -15,8 +13,10 @@ import {
15
13
  import { css, cx } from '@cerberus/styled-system/css'
16
14
  import { hstack, vstack } from '@cerberus/styled-system/patterns'
17
15
  import { $cerberusIcons } from '../config/defineIcons'
18
- import { FieldMessage } from './FieldMessage'
19
16
  import { Field } from '../context/field'
17
+ import { FieldMessage } from './FieldMessage'
18
+ import { ProgressBar, type ProgressBarProps } from './ProgressBar'
19
+ import { IconButton } from './IconButton'
20
20
  import { Avatar } from './Avatar'
21
21
 
22
22
  /**
@@ -24,13 +24,45 @@ import { Avatar } from './Avatar'
24
24
  * @module
25
25
  */
26
26
 
27
+ /**
28
+ * The available values of the fileStatus helper Object.
29
+ * @example
30
+ * ```tsx
31
+ * import { fileStatus } from '@cerberus/react'
32
+ * processStatus.TODO // 'todo'
33
+ * ```
34
+ */
27
35
  export type FileStatusKey = (typeof processStatus)[keyof typeof processStatus]
36
+
37
+ /**
38
+ * The actions that can be performed on a file.
39
+ */
28
40
  export type FileStatusActions = 'cancel' | 'retry' | 'delete'
29
41
  export interface FileBaseStatusProps
30
42
  extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
43
+ /**
44
+ * The name of the file.
45
+ */
31
46
  file: string
32
- now: number
47
+ /**
48
+ * The percentage of the file that has been processed.
49
+ */
50
+ now: ProgressBarProps['now']
51
+ /**
52
+ * The status of the file.
53
+ */
33
54
  status: processStatus
55
+ /**
56
+ * The action to perform on the file when a user clicks the
57
+ * button located at the end of the status card.
58
+ * @param status - The status of the file.
59
+ * @param e - The event object.
60
+ * @example
61
+ * ```tsx
62
+ * <FileStatus file="file.txt" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />
63
+ * ```
64
+ * @default () => {}
65
+ */
34
66
  onClick: (status: FileStatusActions, e: MouseEvent<HTMLButtonElement>) => void
35
67
  }
36
68
  export type FileStatusProps = FileBaseStatusProps & FileStatusVariantProps
@@ -51,13 +83,8 @@ export const enum processStatus {
51
83
  }
52
84
 
53
85
  /**
54
- * This component displays the status of a file.
55
- * @param props - {
56
- * file: string,
57
- * now: number,
58
- * status: keyof typeof fileStatus,
59
- * action: (status: FileStatusActions, e: MouseEvent<HTMLButtonElement>) => void
60
- * }.
86
+ * A component that displays the status of a file during file processing.
87
+ * @see https://cerberus.digitalu.design/react/file-uploader
61
88
  * @example
62
89
  * ```tsx
63
90
  * <FileStatus file="file.txt" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />
@@ -10,10 +10,20 @@ import { Avatar } from './Avatar'
10
10
 
11
11
  export interface FileUploaderProps
12
12
  extends InputHTMLAttributes<HTMLInputElement> {
13
+ /**
14
+ * The optional heading to display in the FileUploader component.
15
+ */
13
16
  heading?: string
17
+ /**
18
+ * The name of the file input element.
19
+ */
14
20
  name: string
15
21
  }
16
22
 
23
+ /**
24
+ * A component that allows the user to upload files.
25
+ * @see https://cerberus.digitalu.design/react/file-uploader
26
+ */
17
27
  export function FileUploader(props: FileUploaderProps) {
18
28
  const styles = fileUploader()
19
29
  const Icon = $cerberusIcons.fileUploader
@@ -1,6 +1,9 @@
1
1
  import type { ButtonHTMLAttributes } from 'react'
2
- import { cx, type RecipeVariantProps } from '@cerberus/styled-system/css'
3
- import { iconButton } from '@cerberus/styled-system/recipes'
2
+ import { cx } from '@cerberus/styled-system/css'
3
+ import {
4
+ iconButton,
5
+ type IconButtonVariantProps,
6
+ } from '@cerberus/styled-system/recipes'
4
7
  import type { Positions } from '../types'
5
8
 
6
9
  /**
@@ -10,15 +13,22 @@ import type { Positions } from '../types'
10
13
 
11
14
  export interface IconButtonRawProps
12
15
  extends ButtonHTMLAttributes<HTMLButtonElement> {
16
+ /**
17
+ * The aria-label attribute for the icon button.
18
+ */
13
19
  ariaLabel: string
20
+ /**
21
+ * The position of the tooltip relative to the icon button.
22
+ * @example 'top' | 'right' | 'bottom' | 'left'
23
+ * @default 'top'
24
+ */
14
25
  tooltipPosition?: Positions
15
26
  }
16
- export type IconButtonRecipeProps = RecipeVariantProps<typeof iconButton>
17
- export type IconButtonProps = IconButtonRawProps & IconButtonRecipeProps
27
+ export type IconButtonProps = IconButtonRawProps & IconButtonVariantProps
18
28
 
19
29
  /**
20
30
  * A component that allows the user to perform actions using an icon
21
- * @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/IconButton.tsx
31
+ * @see https://cerberus.digitalu.design/react/icon-button
22
32
  */
23
33
  export function IconButton(props: IconButtonProps): JSX.Element {
24
34
  const { ariaLabel, palette, usage, size, ...nativeProps } = props