@cerberus-design/react 0.17.1 → 0.18.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 (835) hide show
  1. package/README.md +1 -1
  2. package/build/legacy/_tsup-dts-rollup.d.cts +21878 -1965
  3. package/build/legacy/aria-helpers/nav-menu.aria.cjs.map +1 -1
  4. package/build/legacy/aria-helpers/trap-focus.aria.cjs.map +1 -1
  5. package/build/legacy/components/CircularProgress.cjs +24 -22
  6. package/build/legacy/components/CircularProgress.cjs.map +1 -1
  7. package/build/legacy/components/FeatureFlag.cjs +10 -8
  8. package/build/legacy/components/FeatureFlag.cjs.map +1 -1
  9. package/build/legacy/components/FileStatus.cjs +67 -65
  10. package/build/legacy/components/FileStatus.cjs.map +1 -1
  11. package/build/legacy/components/FileUploader.cjs +34 -32
  12. package/build/legacy/components/FileUploader.cjs.map +1 -1
  13. package/build/legacy/components/IconButton.cjs +2 -2
  14. package/build/legacy/components/IconButton.cjs.map +1 -1
  15. package/build/legacy/components/Menu.cjs +8 -4
  16. package/build/legacy/components/Menu.cjs.map +1 -1
  17. package/build/legacy/components/Menu.d.cts +2 -2
  18. package/build/legacy/components/Portal.cjs +4 -1
  19. package/build/legacy/components/Portal.cjs.map +1 -1
  20. package/build/legacy/components/Portal.d.cts +1 -1
  21. package/build/legacy/components/ProgressBar.cjs +2 -2
  22. package/build/legacy/components/ProgressBar.cjs.map +1 -1
  23. package/build/legacy/components/Show.cjs +8 -7
  24. package/build/legacy/components/Show.cjs.map +1 -1
  25. package/build/legacy/components/Spinner.cjs +2 -1
  26. package/build/legacy/components/Spinner.cjs.map +1 -1
  27. package/build/legacy/components/Tag.cjs +18 -16
  28. package/build/legacy/components/Tag.cjs.map +1 -1
  29. package/build/legacy/components/Text.cjs +1 -1
  30. package/build/legacy/components/Text.cjs.map +1 -1
  31. package/build/legacy/components/Tooltip.cjs +2 -2
  32. package/build/legacy/components/Tooltip.cjs.map +1 -1
  33. package/build/legacy/components/accordion/index.cjs +25 -21
  34. package/build/legacy/components/accordion/index.cjs.map +1 -1
  35. package/build/legacy/components/accordion/index.d.cts +1 -1
  36. package/build/legacy/components/accordion/item-group.cjs +31 -27
  37. package/build/legacy/components/accordion/item-group.cjs.map +1 -1
  38. package/build/legacy/components/accordion/item-group.d.cts +1 -1
  39. package/build/legacy/components/accordion/item-indicator.cjs +2 -2
  40. package/build/legacy/components/accordion/item-indicator.cjs.map +1 -1
  41. package/build/legacy/components/accordion/parts.cjs +2 -2
  42. package/build/legacy/components/accordion/parts.cjs.map +1 -1
  43. package/build/legacy/components/accordion/primitives.cjs +2 -2
  44. package/build/legacy/components/accordion/primitives.cjs.map +1 -1
  45. package/build/legacy/components/admonition/admonition.cjs +44 -42
  46. package/build/legacy/components/admonition/admonition.cjs.map +1 -1
  47. package/build/legacy/components/admonition/index.cjs +44 -42
  48. package/build/legacy/components/admonition/index.cjs.map +1 -1
  49. package/build/legacy/components/admonition/match-avatar.cjs +29 -27
  50. package/build/legacy/components/admonition/match-avatar.cjs.map +1 -1
  51. package/build/legacy/components/admonition/parts.cjs +2 -2
  52. package/build/legacy/components/admonition/parts.cjs.map +1 -1
  53. package/build/legacy/components/admonition/primitives.cjs +2 -2
  54. package/build/legacy/components/admonition/primitives.cjs.map +1 -1
  55. package/build/legacy/components/avatar/avatar.cjs +20 -18
  56. package/build/legacy/components/avatar/avatar.cjs.map +1 -1
  57. package/build/legacy/components/avatar/index.cjs +16 -14
  58. package/build/legacy/components/avatar/index.cjs.map +1 -1
  59. package/build/legacy/components/avatar/parts.cjs +2 -2
  60. package/build/legacy/components/avatar/parts.cjs.map +1 -1
  61. package/build/legacy/components/avatar/primitives.cjs +2 -2
  62. package/build/legacy/components/avatar/primitives.cjs.map +1 -1
  63. package/build/legacy/components/button/button.cjs +28 -25
  64. package/build/legacy/components/button/button.cjs.map +1 -1
  65. package/build/legacy/components/button/index.cjs +28 -25
  66. package/build/legacy/components/button/index.cjs.map +1 -1
  67. package/build/legacy/components/button/parts.cjs +28 -25
  68. package/build/legacy/components/button/parts.cjs.map +1 -1
  69. package/build/legacy/components/checkbox/checkbox-icon.cjs +12 -10
  70. package/build/legacy/components/checkbox/checkbox-icon.cjs.map +1 -1
  71. package/build/legacy/components/checkbox/checkbox.cjs +46 -44
  72. package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
  73. package/build/legacy/components/checkbox/index.cjs +46 -44
  74. package/build/legacy/components/checkbox/index.cjs.map +1 -1
  75. package/build/legacy/components/checkbox/parts.cjs +2 -2
  76. package/build/legacy/components/checkbox/parts.cjs.map +1 -1
  77. package/build/legacy/components/checkbox/primitives.cjs +2 -2
  78. package/build/legacy/components/checkbox/primitives.cjs.map +1 -1
  79. package/build/legacy/components/combobox/combobox.cjs +38 -33
  80. package/build/legacy/components/combobox/combobox.cjs.map +1 -1
  81. package/build/legacy/components/combobox/index.cjs +38 -33
  82. package/build/legacy/components/combobox/index.cjs.map +1 -1
  83. package/build/legacy/components/combobox/item-group.cjs +2 -2
  84. package/build/legacy/components/combobox/item-group.cjs.map +1 -1
  85. package/build/legacy/components/combobox/item.cjs +2 -2
  86. package/build/legacy/components/combobox/item.cjs.map +1 -1
  87. package/build/legacy/components/combobox/parts.cjs +2 -2
  88. package/build/legacy/components/combobox/parts.cjs.map +1 -1
  89. package/build/legacy/components/combobox/primitives.cjs +2 -2
  90. package/build/legacy/components/combobox/primitives.cjs.map +1 -1
  91. package/build/legacy/components/combobox/use-stateful-collection.cjs +2 -2
  92. package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -1
  93. package/build/legacy/components/cta-dialog/index.cjs +90 -84
  94. package/build/legacy/components/cta-dialog/index.cjs.map +1 -1
  95. package/build/legacy/components/cta-dialog/provider.cjs +90 -84
  96. package/build/legacy/components/cta-dialog/provider.cjs.map +1 -1
  97. package/build/legacy/components/cta-dialog/trigger-item.cjs +5 -5
  98. package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -1
  99. package/build/legacy/components/date-picker/calendar.cjs +95 -66
  100. package/build/legacy/components/date-picker/calendar.cjs.map +1 -1
  101. package/build/legacy/components/date-picker/content.cjs +59 -30
  102. package/build/legacy/components/date-picker/content.cjs.map +1 -1
  103. package/build/legacy/components/date-picker/date-picker.cjs +41 -15
  104. package/build/legacy/components/date-picker/date-picker.cjs.map +1 -1
  105. package/build/legacy/components/date-picker/day-view.cjs +47 -21
  106. package/build/legacy/components/date-picker/day-view.cjs.map +1 -1
  107. package/build/legacy/components/date-picker/index.cjs +80 -51
  108. package/build/legacy/components/date-picker/index.cjs.map +1 -1
  109. package/build/legacy/components/date-picker/input.cjs +43 -17
  110. package/build/legacy/components/date-picker/input.cjs.map +1 -1
  111. package/build/legacy/components/date-picker/month-view.cjs +47 -21
  112. package/build/legacy/components/date-picker/month-view.cjs.map +1 -1
  113. package/build/legacy/components/date-picker/parts.cjs +41 -15
  114. package/build/legacy/components/date-picker/parts.cjs.map +1 -1
  115. package/build/legacy/components/date-picker/primitives.cjs +41 -15
  116. package/build/legacy/components/date-picker/primitives.cjs.map +1 -1
  117. package/build/legacy/components/date-picker/range-input.cjs +43 -17
  118. package/build/legacy/components/date-picker/range-input.cjs.map +1 -1
  119. package/build/legacy/components/date-picker/trigger.cjs +43 -17
  120. package/build/legacy/components/date-picker/trigger.cjs.map +1 -1
  121. package/build/legacy/components/date-picker/view-control-group.cjs +47 -21
  122. package/build/legacy/components/date-picker/view-control-group.cjs.map +1 -1
  123. package/build/legacy/components/date-picker/year-view.cjs +47 -21
  124. package/build/legacy/components/date-picker/year-view.cjs.map +1 -1
  125. package/build/legacy/components/deprecated/FieldMessage.cjs +2 -2
  126. package/build/legacy/components/deprecated/FieldMessage.cjs.map +1 -1
  127. package/build/legacy/components/deprecated/FieldsetLabel.cjs +2 -2
  128. package/build/legacy/components/deprecated/FieldsetLabel.cjs.map +1 -1
  129. package/build/legacy/components/deprecated/Label.cjs +4 -4
  130. package/build/legacy/components/deprecated/Label.cjs.map +1 -1
  131. package/build/legacy/components/deprecated/Legend.cjs +14 -12
  132. package/build/legacy/components/deprecated/Legend.cjs.map +1 -1
  133. package/build/legacy/components/deprecated/Modal.cjs +4 -13
  134. package/build/legacy/components/deprecated/Modal.cjs.map +1 -1
  135. package/build/legacy/components/deprecated/Modal.d.cts +2 -2
  136. package/build/legacy/components/deprecated/ModalDescription.cjs +2 -2
  137. package/build/legacy/components/deprecated/ModalDescription.cjs.map +1 -1
  138. package/build/legacy/components/deprecated/ModalDescription.d.cts +2 -2
  139. package/build/legacy/components/deprecated/ModalHeader.cjs +2 -2
  140. package/build/legacy/components/deprecated/ModalHeader.cjs.map +1 -1
  141. package/build/legacy/components/deprecated/ModalHeader.d.cts +2 -2
  142. package/build/legacy/components/deprecated/ModalHeading.cjs +2 -2
  143. package/build/legacy/components/deprecated/ModalHeading.cjs.map +1 -1
  144. package/build/legacy/components/deprecated/ModalHeading.d.cts +2 -2
  145. package/build/legacy/components/deprecated/NavMenuLink.cjs +14 -12
  146. package/build/legacy/components/deprecated/NavMenuLink.cjs.map +1 -1
  147. package/build/legacy/components/deprecated/NavMenuList.cjs +15 -13
  148. package/build/legacy/components/deprecated/NavMenuList.cjs.map +1 -1
  149. package/build/legacy/components/deprecated/NavMenuTrigger.cjs +17 -15
  150. package/build/legacy/components/deprecated/NavMenuTrigger.cjs.map +1 -1
  151. package/build/legacy/components/deprecated/Notification.cjs +3 -3
  152. package/build/legacy/components/deprecated/Notification.cjs.map +1 -1
  153. package/build/legacy/components/deprecated/NotificationDescription.cjs +2 -2
  154. package/build/legacy/components/deprecated/NotificationDescription.cjs.map +1 -1
  155. package/build/legacy/components/deprecated/NotificationHeading.cjs +2 -2
  156. package/build/legacy/components/deprecated/NotificationHeading.cjs.map +1 -1
  157. package/build/legacy/components/dialog/close-icon-trigger.cjs +6 -6
  158. package/build/legacy/components/dialog/close-icon-trigger.cjs.map +1 -1
  159. package/build/legacy/components/dialog/dialog.cjs +14 -11
  160. package/build/legacy/components/dialog/dialog.cjs.map +1 -1
  161. package/build/legacy/components/dialog/index.cjs +14 -11
  162. package/build/legacy/components/dialog/index.cjs.map +1 -1
  163. package/build/legacy/components/dialog/parts.cjs +2 -2
  164. package/build/legacy/components/dialog/parts.cjs.map +1 -1
  165. package/build/legacy/components/dialog/primitives.cjs +2 -2
  166. package/build/legacy/components/dialog/primitives.cjs.map +1 -1
  167. package/build/legacy/components/field/field.cjs +18 -16
  168. package/build/legacy/components/field/field.cjs.map +1 -1
  169. package/build/legacy/components/field/index.cjs +22 -20
  170. package/build/legacy/components/field/index.cjs.map +1 -1
  171. package/build/legacy/components/field/parts.cjs +6 -6
  172. package/build/legacy/components/field/parts.cjs.map +1 -1
  173. package/build/legacy/components/field/primitives.cjs +6 -6
  174. package/build/legacy/components/field/primitives.cjs.map +1 -1
  175. package/build/legacy/components/field/start-indicator.cjs +2 -2
  176. package/build/legacy/components/field/start-indicator.cjs.map +1 -1
  177. package/build/legacy/components/field/status-indicator.cjs +2 -2
  178. package/build/legacy/components/field/status-indicator.cjs.map +1 -1
  179. package/build/legacy/components/fieldset/fieldset.cjs +2 -2
  180. package/build/legacy/components/fieldset/fieldset.cjs.map +1 -1
  181. package/build/legacy/components/fieldset/index.cjs +2 -2
  182. package/build/legacy/components/fieldset/index.cjs.map +1 -1
  183. package/build/legacy/components/fieldset/parts.cjs +2 -2
  184. package/build/legacy/components/fieldset/parts.cjs.map +1 -1
  185. package/build/legacy/components/fieldset/primitives.cjs +2 -2
  186. package/build/legacy/components/fieldset/primitives.cjs.map +1 -1
  187. package/build/legacy/components/for.cjs +2 -1
  188. package/build/legacy/components/for.cjs.map +1 -1
  189. package/build/legacy/components/notifications/center.cjs +54 -51
  190. package/build/legacy/components/notifications/center.cjs.map +1 -1
  191. package/build/legacy/components/notifications/close-trigger.cjs +2 -2
  192. package/build/legacy/components/notifications/close-trigger.cjs.map +1 -1
  193. package/build/legacy/components/notifications/index.cjs +51 -46
  194. package/build/legacy/components/notifications/index.cjs.map +1 -1
  195. package/build/legacy/components/notifications/index.d.cts +1 -1
  196. package/build/legacy/components/notifications/match-icon.cjs +3 -2
  197. package/build/legacy/components/notifications/match-icon.cjs.map +1 -1
  198. package/build/legacy/components/notifications/parts.cjs +2 -2
  199. package/build/legacy/components/notifications/parts.cjs.map +1 -1
  200. package/build/legacy/components/notifications/primitives.cjs +5 -3
  201. package/build/legacy/components/notifications/primitives.cjs.map +1 -1
  202. package/build/legacy/components/notifications/primitives.d.cts +1 -1
  203. package/build/legacy/components/radio/index.cjs +2 -2
  204. package/build/legacy/components/radio/index.cjs.map +1 -1
  205. package/build/legacy/components/radio/parts.cjs +2 -2
  206. package/build/legacy/components/radio/parts.cjs.map +1 -1
  207. package/build/legacy/components/radio/primitives.cjs +2 -2
  208. package/build/legacy/components/radio/primitives.cjs.map +1 -1
  209. package/build/legacy/components/radio/radio.cjs +2 -2
  210. package/build/legacy/components/radio/radio.cjs.map +1 -1
  211. package/build/legacy/components/rating/index.cjs +15 -13
  212. package/build/legacy/components/rating/index.cjs.map +1 -1
  213. package/build/legacy/components/rating/parts.cjs +2 -2
  214. package/build/legacy/components/rating/parts.cjs.map +1 -1
  215. package/build/legacy/components/rating/primitives.cjs +2 -2
  216. package/build/legacy/components/rating/primitives.cjs.map +1 -1
  217. package/build/legacy/components/rating/rating.cjs +23 -21
  218. package/build/legacy/components/rating/rating.cjs.map +1 -1
  219. package/build/legacy/components/select/index.cjs +30 -25
  220. package/build/legacy/components/select/index.cjs.map +1 -1
  221. package/build/legacy/components/select/option-group.cjs +2 -2
  222. package/build/legacy/components/select/option-group.cjs.map +1 -1
  223. package/build/legacy/components/select/parts.cjs +2 -2
  224. package/build/legacy/components/select/parts.cjs.map +1 -1
  225. package/build/legacy/components/select/primitives.cjs +2 -2
  226. package/build/legacy/components/select/primitives.cjs.map +1 -1
  227. package/build/legacy/components/select/select.cjs +43 -38
  228. package/build/legacy/components/select/select.cjs.map +1 -1
  229. package/build/legacy/components/switch/index.cjs +13 -11
  230. package/build/legacy/components/switch/index.cjs.map +1 -1
  231. package/build/legacy/components/switch/parts.cjs +10 -8
  232. package/build/legacy/components/switch/parts.cjs.map +1 -1
  233. package/build/legacy/components/switch/primitives.cjs +10 -8
  234. package/build/legacy/components/switch/primitives.cjs.map +1 -1
  235. package/build/legacy/components/switch/switch.cjs +13 -11
  236. package/build/legacy/components/switch/switch.cjs.map +1 -1
  237. package/build/legacy/components/table/index.cjs +13 -11
  238. package/build/legacy/components/table/index.cjs.map +1 -1
  239. package/build/legacy/components/table/parts.cjs +2 -2
  240. package/build/legacy/components/table/parts.cjs.map +1 -1
  241. package/build/legacy/components/table/primitives.cjs +2 -2
  242. package/build/legacy/components/table/primitives.cjs.map +1 -1
  243. package/build/legacy/components/table/table.cjs +13 -11
  244. package/build/legacy/components/table/table.cjs.map +1 -1
  245. package/build/legacy/components/tabs/index.cjs +2 -2
  246. package/build/legacy/components/tabs/index.cjs.map +1 -1
  247. package/build/legacy/components/tabs/parts.cjs +2 -2
  248. package/build/legacy/components/tabs/parts.cjs.map +1 -1
  249. package/build/legacy/components/tabs/primitives.cjs +2 -2
  250. package/build/legacy/components/tabs/primitives.cjs.map +1 -1
  251. package/build/legacy/components/tabs/tabs.cjs +2 -2
  252. package/build/legacy/components/tabs/tabs.cjs.map +1 -1
  253. package/build/legacy/components/toggle/index.cjs +7 -2
  254. package/build/legacy/components/toggle/index.cjs.map +1 -1
  255. package/build/legacy/components/toggle/parts.cjs +7 -2
  256. package/build/legacy/components/toggle/parts.cjs.map +1 -1
  257. package/build/legacy/components/toggle/primitives.cjs +7 -2
  258. package/build/legacy/components/toggle/primitives.cjs.map +1 -1
  259. package/build/legacy/config/defineIcons.cjs +2 -4
  260. package/build/legacy/config/defineIcons.cjs.map +1 -1
  261. package/build/legacy/config/icons/checkbox.icons.cjs +2 -4
  262. package/build/legacy/config/icons/checkbox.icons.cjs.map +1 -1
  263. package/build/legacy/config/icons/checkbox.icons.d.cts +0 -2
  264. package/build/legacy/config/index.cjs +2 -4
  265. package/build/legacy/config/index.cjs.map +1 -1
  266. package/build/legacy/context/confirm-modal.cjs +78 -77
  267. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  268. package/build/legacy/context/field.cjs +2 -2
  269. package/build/legacy/context/field.cjs.map +1 -1
  270. package/build/legacy/context/navMenu.cjs +1 -1
  271. package/build/legacy/context/navMenu.cjs.map +1 -1
  272. package/build/legacy/context/prompt-modal.cjs +102 -97
  273. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  274. package/build/legacy/context/theme.cjs.map +1 -1
  275. package/build/legacy/hooks/useModal.cjs.map +1 -1
  276. package/build/legacy/hooks/useModal.d.cts +2 -2
  277. package/build/legacy/index.cjs +1451 -1500
  278. package/build/legacy/index.cjs.map +1 -1
  279. package/build/legacy/index.d.cts +20 -30
  280. package/build/modern/_tsup-dts-rollup.d.ts +21878 -1965
  281. package/build/modern/aria-helpers/nav-menu.aria.js +1 -1
  282. package/build/modern/aria-helpers/trap-focus.aria.js +1 -1
  283. package/build/modern/{chunk-QG4NDPST.js → chunk-25P3FUUT.js} +3 -3
  284. package/build/modern/{chunk-FZ53535Q.js → chunk-2CZWHED6.js} +2 -2
  285. package/build/modern/{chunk-JAAMD5EH.js → chunk-2IYWFZTK.js} +2 -2
  286. package/build/modern/{chunk-LZWNHXRP.js → chunk-3DZW23OX.js} +7 -5
  287. package/build/modern/chunk-3DZW23OX.js.map +1 -0
  288. package/build/modern/{chunk-7OYOT5LK.js → chunk-3IT3V3YA.js} +6 -6
  289. package/build/modern/chunk-3IT3V3YA.js.map +1 -0
  290. package/build/modern/{chunk-KWZ3CEG6.js → chunk-52ZQ26IV.js} +2 -2
  291. package/build/modern/chunk-53YVHIGJ.js +11 -0
  292. package/build/modern/chunk-53YVHIGJ.js.map +1 -0
  293. package/build/modern/{chunk-XBUXVNTY.js → chunk-5FC7HIAR.js} +2 -2
  294. package/build/modern/{chunk-TEMFCS72.js → chunk-5HEU3SYR.js} +2 -2
  295. package/build/modern/{chunk-QCBLRACK.js → chunk-5MUUKSLF.js} +3 -5
  296. package/build/modern/chunk-5MUUKSLF.js.map +1 -0
  297. package/build/modern/{chunk-CHSC2LEM.js → chunk-6DU5QBPR.js} +8 -8
  298. package/build/modern/chunk-6DU5QBPR.js.map +1 -0
  299. package/build/modern/{chunk-AIJ75ENY.js → chunk-6KX5P5OU.js} +5 -5
  300. package/build/modern/chunk-6KX5P5OU.js.map +1 -0
  301. package/build/modern/{chunk-DEXJQ6UI.js → chunk-6MMH3Y2U.js} +5 -5
  302. package/build/modern/chunk-6MMH3Y2U.js.map +1 -0
  303. package/build/modern/{chunk-4IXQNNAM.js → chunk-6UVR3VGK.js} +2 -2
  304. package/build/modern/{chunk-JOM5AAVW.js → chunk-75DUDVPA.js} +2 -2
  305. package/build/modern/chunk-75DUDVPA.js.map +1 -0
  306. package/build/modern/{chunk-JWF7FK7T.js → chunk-7I7LA2EE.js} +2 -2
  307. package/build/modern/chunk-7I7LA2EE.js.map +1 -0
  308. package/build/modern/{chunk-FCRD3ZRZ.js → chunk-ADZRQNW3.js} +3 -3
  309. package/build/modern/{chunk-7SYJFI5E.js → chunk-AUI74W7J.js} +3 -2
  310. package/build/modern/chunk-AUI74W7J.js.map +1 -0
  311. package/build/modern/{chunk-CPNKDKC2.js → chunk-BMPMMTX3.js} +3 -5
  312. package/build/modern/chunk-BMPMMTX3.js.map +1 -0
  313. package/build/modern/{chunk-6HOLE2JH.js → chunk-CEJIKL6N.js} +2 -2
  314. package/build/modern/{chunk-N4RPMT6J.js → chunk-CF4TCMJI.js} +4 -4
  315. package/build/modern/chunk-CF4TCMJI.js.map +1 -0
  316. package/build/modern/{chunk-NR5XDIJ7.js → chunk-D4BVNWAY.js} +3 -5
  317. package/build/modern/chunk-D4BVNWAY.js.map +1 -0
  318. package/build/modern/{chunk-E7FVTKUT.js → chunk-D6PFYSIP.js} +3 -3
  319. package/build/modern/{chunk-WMRSNYYG.js → chunk-D7QIPJQC.js} +7 -7
  320. package/build/modern/chunk-D7QIPJQC.js.map +1 -0
  321. package/build/modern/{chunk-IP3O6AIC.js → chunk-DHKSNGQX.js} +8 -8
  322. package/build/modern/chunk-DHKSNGQX.js.map +1 -0
  323. package/build/modern/{chunk-Z52R6ABJ.js → chunk-EMDNETC7.js} +3 -3
  324. package/build/modern/chunk-EMDNETC7.js.map +1 -0
  325. package/build/modern/{chunk-BPRF34DU.js → chunk-ENJUQNVT.js} +3 -5
  326. package/build/modern/chunk-ENJUQNVT.js.map +1 -0
  327. package/build/modern/{chunk-YOTXFCCC.js → chunk-F2MWSSK2.js} +3 -3
  328. package/build/modern/chunk-F2MWSSK2.js.map +1 -0
  329. package/build/modern/{chunk-GVU6L6CZ.js → chunk-F3XFJHGR.js} +5 -5
  330. package/build/modern/chunk-F3XFJHGR.js.map +1 -0
  331. package/build/modern/{chunk-EH36PXVP.js → chunk-FAQ3F72W.js} +2 -2
  332. package/build/modern/{chunk-JIZQFTW6.js → chunk-FHNT274F.js} +1 -1
  333. package/build/modern/chunk-FHNT274F.js.map +1 -0
  334. package/build/modern/{chunk-JF76VIL3.js → chunk-FUTYPCHZ.js} +1 -1
  335. package/build/modern/chunk-FUTYPCHZ.js.map +1 -0
  336. package/build/modern/{chunk-6WS765J3.js → chunk-FXWN3SPS.js} +2 -2
  337. package/build/modern/chunk-FXWN3SPS.js.map +1 -0
  338. package/build/modern/{chunk-RD2YPFRA.js → chunk-GB7W3YNU.js} +6 -8
  339. package/build/modern/chunk-GB7W3YNU.js.map +1 -0
  340. package/build/modern/{chunk-LT62577B.js → chunk-GBCF6DOS.js} +4 -4
  341. package/build/modern/chunk-GBCF6DOS.js.map +1 -0
  342. package/build/modern/{chunk-2CVGNLIM.js → chunk-GC6JUHVS.js} +2 -2
  343. package/build/modern/{chunk-IASVL7CW.js → chunk-GUAF4FXQ.js} +2 -2
  344. package/build/modern/{chunk-OS73F4SR.js → chunk-GYUCW2QK.js} +2 -2
  345. package/build/modern/{chunk-Z5K4J4MS.js → chunk-H2HP63H4.js} +7 -7
  346. package/build/modern/chunk-H2HP63H4.js.map +1 -0
  347. package/build/modern/{chunk-STLN7BMJ.js → chunk-H2VYN32T.js} +2 -2
  348. package/build/modern/chunk-H2VYN32T.js.map +1 -0
  349. package/build/modern/{chunk-BIDE4IJG.js → chunk-H4SH6ORP.js} +2 -2
  350. package/build/modern/{chunk-5RTNSVYU.js → chunk-HJ7MAPDD.js} +3 -5
  351. package/build/modern/chunk-HJ7MAPDD.js.map +1 -0
  352. package/build/modern/{chunk-HUN7VQBT.js → chunk-I4EGYD24.js} +2 -2
  353. package/build/modern/chunk-I5RGBB57.js +13 -0
  354. package/build/modern/{chunk-DXOKSZVQ.js.map → chunk-I5RGBB57.js.map} +1 -1
  355. package/build/modern/{chunk-DRDNNRU3.js → chunk-IIH4VDQA.js} +3 -3
  356. package/build/modern/chunk-IIH4VDQA.js.map +1 -0
  357. package/build/modern/{chunk-W47QEZD5.js → chunk-IL677ECW.js} +3 -3
  358. package/build/modern/chunk-IL677ECW.js.map +1 -0
  359. package/build/modern/{chunk-6I2FW4WI.js → chunk-ILROS7ST.js} +4 -4
  360. package/build/modern/{chunk-BD4UH5GS.js → chunk-INVZVMY4.js} +5 -5
  361. package/build/modern/chunk-INVZVMY4.js.map +1 -0
  362. package/build/modern/{chunk-SYPAA5YF.js → chunk-IUF74GEL.js} +2 -2
  363. package/build/modern/{chunk-WVFEJCUN.js → chunk-J76SGDYP.js} +2 -2
  364. package/build/modern/{chunk-2LP4KQYQ.js → chunk-JFSCSAHD.js} +8 -8
  365. package/build/modern/chunk-JFSCSAHD.js.map +1 -0
  366. package/build/modern/{chunk-RQCJKDXU.js → chunk-JQYW4IOC.js} +2 -2
  367. package/build/modern/{chunk-6MNFE6U6.js → chunk-KEGLWDD6.js} +3 -3
  368. package/build/modern/{chunk-EB37HRCN.js → chunk-KOLNLCMZ.js} +1 -1
  369. package/build/modern/{chunk-EB37HRCN.js.map → chunk-KOLNLCMZ.js.map} +1 -1
  370. package/build/modern/{chunk-Z3FDG263.js → chunk-KV4NRGKW.js} +3 -5
  371. package/build/modern/chunk-KV4NRGKW.js.map +1 -0
  372. package/build/modern/{chunk-LPALHB6R.js → chunk-L2EGF5AV.js} +3 -3
  373. package/build/modern/chunk-L2EGF5AV.js.map +1 -0
  374. package/build/modern/{chunk-4GFEWP76.js → chunk-L5FYGWAZ.js} +3 -3
  375. package/build/modern/chunk-L5FYGWAZ.js.map +1 -0
  376. package/build/modern/{chunk-RU5LOXWI.js → chunk-L64HQGLQ.js} +2 -2
  377. package/build/modern/chunk-L64HQGLQ.js.map +1 -0
  378. package/build/modern/{chunk-FBS7AX76.js → chunk-LEBDLXJE.js} +7 -7
  379. package/build/modern/chunk-LEBDLXJE.js.map +1 -0
  380. package/build/modern/{chunk-A464YKEL.js → chunk-MDXJ6MGF.js} +3 -3
  381. package/build/modern/chunk-MDXJ6MGF.js.map +1 -0
  382. package/build/modern/{chunk-KZDEDAIK.js → chunk-MTD4JSHT.js} +2 -2
  383. package/build/modern/{chunk-FUL2VRDU.js → chunk-MZXSSTS7.js} +2 -2
  384. package/build/modern/{chunk-NOXZZHDH.js → chunk-N6XHXPBI.js} +5 -5
  385. package/build/modern/{chunk-LLZE2RBB.js → chunk-NJ37QRAI.js} +2 -2
  386. package/build/modern/chunk-NJ37QRAI.js.map +1 -0
  387. package/build/modern/{chunk-KB52N3HJ.js → chunk-NP73HOHI.js} +3 -3
  388. package/build/modern/{chunk-7TQRTBUP.js → chunk-NQ22M7U7.js} +2 -2
  389. package/build/modern/{chunk-EL4MX2PG.js → chunk-NYEUNVKR.js} +3 -3
  390. package/build/modern/{chunk-GBCJKBWH.js → chunk-NYRNXRTZ.js} +5 -5
  391. package/build/modern/chunk-NYRNXRTZ.js.map +1 -0
  392. package/build/modern/{chunk-MR4DX76C.js → chunk-NYVKL2IS.js} +2 -2
  393. package/build/modern/{chunk-E3PAEB7Y.js → chunk-OCZCCOWW.js} +3 -5
  394. package/build/modern/chunk-OCZCCOWW.js.map +1 -0
  395. package/build/modern/{chunk-5DY66QZD.js → chunk-ONHP3RYL.js} +4 -4
  396. package/build/modern/chunk-ONHP3RYL.js.map +1 -0
  397. package/build/modern/{chunk-RKGFPKKK.js → chunk-OY33UHBG.js} +3 -5
  398. package/build/modern/chunk-OY33UHBG.js.map +1 -0
  399. package/build/modern/{chunk-NHBL7NNP.js → chunk-OY7BOKWW.js} +5 -5
  400. package/build/modern/chunk-OY7BOKWW.js.map +1 -0
  401. package/build/modern/{chunk-MPS6BAJ2.js → chunk-P7DWMM56.js} +12 -12
  402. package/build/modern/chunk-P7DWMM56.js.map +1 -0
  403. package/build/modern/{chunk-4HUK7YNZ.js → chunk-PHPXOX2Y.js} +7 -5
  404. package/build/modern/chunk-PHPXOX2Y.js.map +1 -0
  405. package/build/modern/{chunk-6QHOKCV3.js → chunk-Q3LUIS3M.js} +4 -4
  406. package/build/modern/chunk-Q3LUIS3M.js.map +1 -0
  407. package/build/modern/{chunk-KJMCUYWV.js → chunk-Q737W5KJ.js} +3 -3
  408. package/build/modern/chunk-Q737W5KJ.js.map +1 -0
  409. package/build/modern/{chunk-QQCB6JXW.js → chunk-QCZ5VNGU.js} +4 -4
  410. package/build/modern/chunk-QCZ5VNGU.js.map +1 -0
  411. package/build/modern/{chunk-TNSIYRF7.js → chunk-QD3WAARV.js} +4 -4
  412. package/build/modern/chunk-QD3WAARV.js.map +1 -0
  413. package/build/modern/{chunk-XBDEIBW2.js → chunk-QNZIH2KG.js} +2 -2
  414. package/build/modern/chunk-RP6DNLP3.js +17 -0
  415. package/build/modern/chunk-RP6DNLP3.js.map +1 -0
  416. package/build/modern/{chunk-M7T3MBFB.js → chunk-RT7OJ4X5.js} +2 -2
  417. package/build/modern/{chunk-D7MAAGNA.js → chunk-RW3YEBDW.js} +42 -16
  418. package/build/modern/chunk-RW3YEBDW.js.map +1 -0
  419. package/build/modern/{chunk-BJJ4XAVO.js → chunk-RYRB5GPN.js} +3 -3
  420. package/build/modern/{chunk-GBHYDL2K.js → chunk-SDV6XUM6.js} +12 -9
  421. package/build/modern/chunk-SDV6XUM6.js.map +1 -0
  422. package/build/modern/{chunk-D7UIWAFO.js → chunk-SSR3CWJZ.js} +3 -5
  423. package/build/modern/chunk-SSR3CWJZ.js.map +1 -0
  424. package/build/modern/{chunk-QD4TL3L6.js → chunk-STCGFGTK.js} +7 -7
  425. package/build/modern/chunk-STCGFGTK.js.map +1 -0
  426. package/build/modern/{chunk-7JHQVQPS.js → chunk-SZOV7M64.js} +6 -4
  427. package/build/modern/chunk-SZOV7M64.js.map +1 -0
  428. package/build/modern/{chunk-L7N24B6B.js → chunk-T2NB3RBO.js} +3 -3
  429. package/build/modern/chunk-T2NB3RBO.js.map +1 -0
  430. package/build/modern/{chunk-VOYXV3US.js → chunk-TGY3RICC.js} +11 -13
  431. package/build/modern/chunk-TGY3RICC.js.map +1 -0
  432. package/build/modern/{chunk-2FRF57EU.js → chunk-UGFSACHC.js} +3 -5
  433. package/build/modern/chunk-UGFSACHC.js.map +1 -0
  434. package/build/modern/{chunk-SRNDDY5D.js → chunk-UH6XSYYD.js} +3 -5
  435. package/build/modern/chunk-UH6XSYYD.js.map +1 -0
  436. package/build/modern/{chunk-AO3GB72J.js → chunk-UJTE43LT.js} +2 -2
  437. package/build/modern/chunk-UJTE43LT.js.map +1 -0
  438. package/build/modern/{chunk-HB6MBJSG.js → chunk-URJ6JHLG.js} +10 -10
  439. package/build/modern/chunk-URJ6JHLG.js.map +1 -0
  440. package/build/modern/{chunk-FCSO6N2Y.js → chunk-V6EAWUCQ.js} +2 -2
  441. package/build/modern/{chunk-HIC7Z23X.js → chunk-V6ZOASMM.js} +2 -2
  442. package/build/modern/chunk-VEAC4I3F.js +17 -0
  443. package/build/modern/chunk-VEAC4I3F.js.map +1 -0
  444. package/build/modern/{chunk-CNA2VKAH.js → chunk-VIKVLJGG.js} +3 -3
  445. package/build/modern/chunk-VIKVLJGG.js.map +1 -0
  446. package/build/modern/{chunk-YUNLWTUB.js → chunk-W337WQTU.js} +2 -2
  447. package/build/modern/{chunk-VSTOSLFS.js → chunk-WEL43I6Y.js} +5 -5
  448. package/build/modern/chunk-WEL43I6Y.js.map +1 -0
  449. package/build/modern/{chunk-XTNGF4D6.js → chunk-YOYCS3MD.js} +2 -2
  450. package/build/modern/{chunk-RUR5MV54.js → chunk-YUVPXW6D.js} +12 -6
  451. package/build/modern/chunk-YUVPXW6D.js.map +1 -0
  452. package/build/modern/{chunk-MH6CIBDU.js → chunk-Z2KBUTCO.js} +3 -3
  453. package/build/modern/chunk-Z2KBUTCO.js.map +1 -0
  454. package/build/modern/{chunk-K2TZB3I4.js → chunk-ZL7AX5EM.js} +3 -3
  455. package/build/modern/components/CircularProgress.js +2 -2
  456. package/build/modern/components/FeatureFlag.js +2 -2
  457. package/build/modern/components/FileStatus.js +12 -12
  458. package/build/modern/components/FileUploader.js +5 -5
  459. package/build/modern/components/IconButton.js +1 -1
  460. package/build/modern/components/Menu.d.ts +2 -2
  461. package/build/modern/components/Menu.js +1 -1
  462. package/build/modern/components/Portal.d.ts +1 -1
  463. package/build/modern/components/Portal.js +1 -1
  464. package/build/modern/components/ProgressBar.js +1 -1
  465. package/build/modern/components/Show.js +1 -2
  466. package/build/modern/components/Spinner.js +1 -1
  467. package/build/modern/components/Tag.js +3 -3
  468. package/build/modern/components/Text.js +1 -1
  469. package/build/modern/components/Tooltip.js +1 -1
  470. package/build/modern/components/accordion/index.d.ts +1 -1
  471. package/build/modern/components/accordion/index.js +5 -5
  472. package/build/modern/components/accordion/item-group.d.ts +1 -1
  473. package/build/modern/components/accordion/item-group.js +5 -5
  474. package/build/modern/components/accordion/item-indicator.js +3 -3
  475. package/build/modern/components/accordion/parts.js +2 -2
  476. package/build/modern/components/accordion/primitives.js +1 -1
  477. package/build/modern/components/admonition/admonition.js +8 -8
  478. package/build/modern/components/admonition/index.js +8 -8
  479. package/build/modern/components/admonition/match-avatar.js +5 -5
  480. package/build/modern/components/admonition/parts.js +2 -2
  481. package/build/modern/components/admonition/primitives.js +1 -1
  482. package/build/modern/components/avatar/avatar.js +4 -4
  483. package/build/modern/components/avatar/index.js +4 -4
  484. package/build/modern/components/avatar/parts.js +2 -2
  485. package/build/modern/components/avatar/primitives.js +1 -1
  486. package/build/modern/components/button/button.js +3 -3
  487. package/build/modern/components/button/index.js +4 -4
  488. package/build/modern/components/button/parts.js +4 -4
  489. package/build/modern/components/checkbox/checkbox-icon.js +4 -4
  490. package/build/modern/components/checkbox/checkbox.js +6 -6
  491. package/build/modern/components/checkbox/index.js +6 -6
  492. package/build/modern/components/checkbox/parts.js +2 -2
  493. package/build/modern/components/checkbox/primitives.js +1 -1
  494. package/build/modern/components/combobox/combobox.js +5 -5
  495. package/build/modern/components/combobox/index.js +9 -9
  496. package/build/modern/components/combobox/item-group.js +3 -3
  497. package/build/modern/components/combobox/item.js +3 -3
  498. package/build/modern/components/combobox/parts.js +2 -2
  499. package/build/modern/components/combobox/primitives.js +1 -1
  500. package/build/modern/components/combobox/use-stateful-collection.js +2 -2
  501. package/build/modern/components/cta-dialog/index.js +15 -15
  502. package/build/modern/components/cta-dialog/provider.js +15 -15
  503. package/build/modern/components/cta-dialog/trigger-item.js +4 -4
  504. package/build/modern/components/date-picker/calendar.js +13 -13
  505. package/build/modern/components/date-picker/content.js +4 -4
  506. package/build/modern/components/date-picker/date-picker.js +3 -3
  507. package/build/modern/components/date-picker/day-view.js +8 -8
  508. package/build/modern/components/date-picker/index.js +17 -17
  509. package/build/modern/components/date-picker/input.js +5 -5
  510. package/build/modern/components/date-picker/month-view.js +8 -8
  511. package/build/modern/components/date-picker/parts.js +2 -2
  512. package/build/modern/components/date-picker/primitives.js +1 -1
  513. package/build/modern/components/date-picker/range-input.js +5 -5
  514. package/build/modern/components/date-picker/trigger.js +4 -4
  515. package/build/modern/components/date-picker/view-control-group.js +7 -7
  516. package/build/modern/components/date-picker/year-view.js +8 -8
  517. package/build/modern/components/deprecated/FieldMessage.js +1 -1
  518. package/build/modern/components/deprecated/FieldsetLabel.js +1 -1
  519. package/build/modern/components/deprecated/Label.js +7 -7
  520. package/build/modern/components/deprecated/Legend.js +2 -2
  521. package/build/modern/components/deprecated/Modal.d.ts +2 -2
  522. package/build/modern/components/deprecated/Modal.js +7 -3
  523. package/build/modern/components/deprecated/Modal.js.map +1 -1
  524. package/build/modern/components/deprecated/ModalDescription.d.ts +2 -2
  525. package/build/modern/components/deprecated/ModalDescription.js +7 -3
  526. package/build/modern/components/deprecated/ModalDescription.js.map +1 -1
  527. package/build/modern/components/deprecated/ModalHeader.d.ts +2 -2
  528. package/build/modern/components/deprecated/ModalHeader.js +20 -3
  529. package/build/modern/components/deprecated/ModalHeader.js.map +1 -1
  530. package/build/modern/components/deprecated/ModalHeading.d.ts +2 -2
  531. package/build/modern/components/deprecated/ModalHeading.js +7 -3
  532. package/build/modern/components/deprecated/ModalHeading.js.map +1 -1
  533. package/build/modern/components/deprecated/NavMenuLink.js +2 -2
  534. package/build/modern/components/deprecated/NavMenuList.js +3 -3
  535. package/build/modern/components/deprecated/NavMenuTrigger.js +4 -4
  536. package/build/modern/components/deprecated/Notification.js +72 -4
  537. package/build/modern/components/deprecated/Notification.js.map +1 -1
  538. package/build/modern/components/deprecated/NotificationDescription.js +16 -2
  539. package/build/modern/components/deprecated/NotificationDescription.js.map +1 -1
  540. package/build/modern/components/deprecated/NotificationHeading.js +10 -2
  541. package/build/modern/components/deprecated/NotificationHeading.js.map +1 -1
  542. package/build/modern/components/dialog/close-icon-trigger.js +3 -3
  543. package/build/modern/components/dialog/dialog.js +3 -3
  544. package/build/modern/components/dialog/index.js +8 -8
  545. package/build/modern/components/dialog/parts.js +2 -2
  546. package/build/modern/components/dialog/primitives.js +1 -1
  547. package/build/modern/components/field/field.js +5 -5
  548. package/build/modern/components/field/index.js +6 -6
  549. package/build/modern/components/field/parts.js +4 -4
  550. package/build/modern/components/field/primitives.js +3 -3
  551. package/build/modern/components/field/start-indicator.js +1 -1
  552. package/build/modern/components/field/status-indicator.js +1 -1
  553. package/build/modern/components/fieldset/fieldset.js +3 -3
  554. package/build/modern/components/fieldset/index.js +3 -3
  555. package/build/modern/components/fieldset/parts.js +2 -2
  556. package/build/modern/components/fieldset/primitives.js +1 -1
  557. package/build/modern/components/for.js +1 -1
  558. package/build/modern/components/notifications/center.js +8 -8
  559. package/build/modern/components/notifications/close-trigger.js +3 -3
  560. package/build/modern/components/notifications/index.d.ts +1 -1
  561. package/build/modern/components/notifications/index.js +8 -8
  562. package/build/modern/components/notifications/match-icon.js +2 -2
  563. package/build/modern/components/notifications/parts.js +2 -2
  564. package/build/modern/components/notifications/primitives.d.ts +1 -1
  565. package/build/modern/components/notifications/primitives.js +1 -1
  566. package/build/modern/components/radio/index.js +3 -3
  567. package/build/modern/components/radio/parts.js +2 -2
  568. package/build/modern/components/radio/primitives.js +1 -1
  569. package/build/modern/components/radio/radio.js +2 -2
  570. package/build/modern/components/rating/index.js +4 -4
  571. package/build/modern/components/rating/parts.js +2 -2
  572. package/build/modern/components/rating/primitives.js +1 -1
  573. package/build/modern/components/rating/rating.js +4 -4
  574. package/build/modern/components/select/index.js +6 -6
  575. package/build/modern/components/select/option-group.js +2 -2
  576. package/build/modern/components/select/parts.js +2 -2
  577. package/build/modern/components/select/primitives.js +1 -1
  578. package/build/modern/components/select/select.js +5 -5
  579. package/build/modern/components/switch/index.js +3 -3
  580. package/build/modern/components/switch/parts.js +2 -2
  581. package/build/modern/components/switch/primitives.js +1 -1
  582. package/build/modern/components/switch/switch.js +3 -3
  583. package/build/modern/components/table/index.js +4 -4
  584. package/build/modern/components/table/parts.js +2 -2
  585. package/build/modern/components/table/primitives.js +1 -1
  586. package/build/modern/components/table/table.js +3 -3
  587. package/build/modern/components/tabs/index.js +3 -3
  588. package/build/modern/components/tabs/parts.js +2 -2
  589. package/build/modern/components/tabs/primitives.js +1 -1
  590. package/build/modern/components/tabs/tabs.js +3 -3
  591. package/build/modern/components/toggle/index.js +2 -2
  592. package/build/modern/components/toggle/parts.js +2 -2
  593. package/build/modern/components/toggle/primitives.js +1 -1
  594. package/build/modern/config/defineIcons.js +2 -2
  595. package/build/modern/config/icons/checkbox.icons.d.ts +0 -2
  596. package/build/modern/config/icons/checkbox.icons.js +1 -1
  597. package/build/modern/config/index.js +2 -2
  598. package/build/modern/context/confirm-modal.js +13 -13
  599. package/build/modern/context/field.js +3 -3
  600. package/build/modern/context/field.js.map +1 -1
  601. package/build/modern/context/navMenu.js +1 -1
  602. package/build/modern/context/prompt-modal.js +19 -19
  603. package/build/modern/context/theme.js +1 -1
  604. package/build/modern/hooks/useModal.d.ts +2 -2
  605. package/build/modern/hooks/useModal.js +23 -3
  606. package/build/modern/hooks/useModal.js.map +1 -1
  607. package/build/modern/index.d.ts +20 -30
  608. package/build/modern/index.js +128 -148
  609. package/build/modern/index.js.map +1 -1
  610. package/package.json +43 -43
  611. package/src/.DS_Store +0 -0
  612. package/src/aria-helpers/nav-menu.aria.ts +3 -0
  613. package/src/aria-helpers/trap-focus.aria.ts +4 -1
  614. package/src/components/.DS_Store +0 -0
  615. package/src/components/CircularProgress.tsx +2 -2
  616. package/src/components/FileStatus.tsx +3 -6
  617. package/src/components/FileUploader.tsx +4 -4
  618. package/src/components/IconButton.tsx +3 -6
  619. package/src/components/Menu.tsx +13 -92
  620. package/src/components/Portal.tsx +6 -6
  621. package/src/components/ProgressBar.tsx +2 -2
  622. package/src/components/Show.tsx +13 -11
  623. package/src/components/Spinner.tsx +3 -4
  624. package/src/components/Tag.tsx +2 -2
  625. package/src/components/Text.tsx +3 -6
  626. package/src/components/Tooltip.tsx +2 -2
  627. package/src/components/accordion/item-group.tsx +8 -4
  628. package/src/components/accordion/item-indicator.tsx +1 -1
  629. package/src/components/accordion/primitives.tsx +2 -5
  630. package/src/components/admonition/admonition.tsx +3 -3
  631. package/src/components/admonition/match-avatar.tsx +1 -1
  632. package/src/components/admonition/primitives.tsx +2 -5
  633. package/src/components/avatar/avatar.tsx +2 -2
  634. package/src/components/avatar/primitives.tsx +2 -5
  635. package/src/components/button/button.tsx +3 -6
  636. package/src/components/checkbox/checkbox.tsx +1 -1
  637. package/src/components/checkbox/primitives.tsx +2 -5
  638. package/src/components/combobox/combobox.tsx +2 -2
  639. package/src/components/combobox/primitives.tsx +2 -5
  640. package/src/components/cta-dialog/provider.tsx +2 -2
  641. package/src/components/cta-dialog/trigger-item.tsx +2 -2
  642. package/src/components/date-picker/primitives.tsx +63 -15
  643. package/src/components/date-picker/view-control-group.tsx +1 -1
  644. package/src/components/deprecated/FieldMessage.tsx +2 -2
  645. package/src/components/deprecated/FieldsetLabel.tsx +2 -2
  646. package/src/components/deprecated/Label.tsx +2 -2
  647. package/src/components/deprecated/Legend.tsx +3 -3
  648. package/src/components/deprecated/Modal.tsx +8 -14
  649. package/src/components/deprecated/ModalDescription.tsx +2 -2
  650. package/src/components/deprecated/ModalHeader.tsx +2 -2
  651. package/src/components/deprecated/ModalHeading.tsx +2 -2
  652. package/src/components/deprecated/NavMenuLink.tsx +2 -2
  653. package/src/components/deprecated/NavMenuList.tsx +3 -3
  654. package/src/components/deprecated/NavMenuTrigger.tsx +3 -3
  655. package/src/components/deprecated/Notification.tsx +4 -4
  656. package/src/components/deprecated/NotificationDescription.tsx +2 -2
  657. package/src/components/deprecated/NotificationHeading.tsx +2 -2
  658. package/src/components/dialog/close-icon-trigger.tsx +2 -2
  659. package/src/components/dialog/dialog.tsx +1 -1
  660. package/src/components/dialog/primitives.tsx +2 -5
  661. package/src/components/field/field.tsx +4 -4
  662. package/src/components/field/primitives.tsx +2 -2
  663. package/src/components/field/start-indicator.tsx +2 -2
  664. package/src/components/field/status-indicator.tsx +2 -2
  665. package/src/components/fieldset/fieldset.tsx +1 -1
  666. package/src/components/fieldset/primitives.tsx +2 -5
  667. package/src/components/for.tsx +1 -1
  668. package/src/components/notifications/center.tsx +8 -4
  669. package/src/components/notifications/match-icon.tsx +1 -1
  670. package/src/components/notifications/primitives.tsx +6 -3
  671. package/src/components/radio/primitives.tsx +2 -5
  672. package/src/components/radio/radio.tsx +1 -1
  673. package/src/components/rating/primitives.tsx +2 -2
  674. package/src/components/rating/rating.tsx +2 -2
  675. package/src/components/select/primitives.tsx +2 -5
  676. package/src/components/select/select.tsx +2 -2
  677. package/src/components/switch/primitives.tsx +7 -4
  678. package/src/components/switch/switch.tsx +1 -1
  679. package/src/components/table/primitives.tsx +2 -2
  680. package/src/components/table/table.tsx +2 -2
  681. package/src/components/tabs/primitives.tsx +2 -2
  682. package/src/components/toggle/primitives.tsx +11 -3
  683. package/src/config/icons/checkbox.icons.tsx +2 -10
  684. package/src/context/confirm-modal.tsx +3 -3
  685. package/src/context/field.tsx +2 -4
  686. package/src/context/navMenu.tsx +8 -8
  687. package/src/context/prompt-modal.tsx +5 -5
  688. package/src/context/theme.tsx +1 -3
  689. package/src/hooks/useModal.ts +1 -1
  690. package/src/index.ts +2 -7
  691. package/build/legacy/context/notification-center/store.cjs +0 -66
  692. package/build/legacy/context/notification-center/store.cjs.map +0 -1
  693. package/build/legacy/context/notification-center/store.d.cts +0 -5
  694. package/build/legacy/context/notification-center/types.cjs +0 -19
  695. package/build/legacy/context/notification-center/types.cjs.map +0 -1
  696. package/build/legacy/context/notification-center/types.d.cts +0 -6
  697. package/build/legacy/context/notification-center.cjs +0 -381
  698. package/build/legacy/context/notification-center.cjs.map +0 -1
  699. package/build/legacy/context/notification-center.d.cts +0 -5
  700. package/build/modern/chunk-2FRF57EU.js.map +0 -1
  701. package/build/modern/chunk-2LP4KQYQ.js.map +0 -1
  702. package/build/modern/chunk-4GFEWP76.js.map +0 -1
  703. package/build/modern/chunk-4HUK7YNZ.js.map +0 -1
  704. package/build/modern/chunk-5DY66QZD.js.map +0 -1
  705. package/build/modern/chunk-5RTNSVYU.js.map +0 -1
  706. package/build/modern/chunk-6QHOKCV3.js.map +0 -1
  707. package/build/modern/chunk-6WS765J3.js.map +0 -1
  708. package/build/modern/chunk-7JHQVQPS.js.map +0 -1
  709. package/build/modern/chunk-7OYOT5LK.js.map +0 -1
  710. package/build/modern/chunk-7SYJFI5E.js.map +0 -1
  711. package/build/modern/chunk-A464YKEL.js.map +0 -1
  712. package/build/modern/chunk-AIJ75ENY.js.map +0 -1
  713. package/build/modern/chunk-AO3GB72J.js.map +0 -1
  714. package/build/modern/chunk-AUALRL3U.js +0 -25
  715. package/build/modern/chunk-AUALRL3U.js.map +0 -1
  716. package/build/modern/chunk-BD4UH5GS.js.map +0 -1
  717. package/build/modern/chunk-BPRF34DU.js.map +0 -1
  718. package/build/modern/chunk-BUVVRQLZ.js +0 -15
  719. package/build/modern/chunk-BUVVRQLZ.js.map +0 -1
  720. package/build/modern/chunk-CHSC2LEM.js.map +0 -1
  721. package/build/modern/chunk-CIMY2U22.js +0 -10
  722. package/build/modern/chunk-CIMY2U22.js.map +0 -1
  723. package/build/modern/chunk-CNA2VKAH.js.map +0 -1
  724. package/build/modern/chunk-CPNKDKC2.js.map +0 -1
  725. package/build/modern/chunk-D7MAAGNA.js.map +0 -1
  726. package/build/modern/chunk-D7UIWAFO.js.map +0 -1
  727. package/build/modern/chunk-DEXJQ6UI.js.map +0 -1
  728. package/build/modern/chunk-DRDNNRU3.js.map +0 -1
  729. package/build/modern/chunk-DXOKSZVQ.js +0 -12
  730. package/build/modern/chunk-E3PAEB7Y.js.map +0 -1
  731. package/build/modern/chunk-EUYI7C2E.js +0 -78
  732. package/build/modern/chunk-EUYI7C2E.js.map +0 -1
  733. package/build/modern/chunk-FBS7AX76.js.map +0 -1
  734. package/build/modern/chunk-GBCJKBWH.js.map +0 -1
  735. package/build/modern/chunk-GBHYDL2K.js.map +0 -1
  736. package/build/modern/chunk-GVU6L6CZ.js.map +0 -1
  737. package/build/modern/chunk-HB6MBJSG.js.map +0 -1
  738. package/build/modern/chunk-IP3O6AIC.js.map +0 -1
  739. package/build/modern/chunk-IQJDVFPP.js +0 -10
  740. package/build/modern/chunk-IQJDVFPP.js.map +0 -1
  741. package/build/modern/chunk-JF76VIL3.js.map +0 -1
  742. package/build/modern/chunk-JIZQFTW6.js.map +0 -1
  743. package/build/modern/chunk-JOM5AAVW.js.map +0 -1
  744. package/build/modern/chunk-JWF7FK7T.js.map +0 -1
  745. package/build/modern/chunk-KGQG5JGW.js +0 -27
  746. package/build/modern/chunk-KGQG5JGW.js.map +0 -1
  747. package/build/modern/chunk-KJMCUYWV.js.map +0 -1
  748. package/build/modern/chunk-L7N24B6B.js.map +0 -1
  749. package/build/modern/chunk-LLZE2RBB.js.map +0 -1
  750. package/build/modern/chunk-LPALHB6R.js.map +0 -1
  751. package/build/modern/chunk-LT62577B.js.map +0 -1
  752. package/build/modern/chunk-LZWNHXRP.js.map +0 -1
  753. package/build/modern/chunk-MH6CIBDU.js.map +0 -1
  754. package/build/modern/chunk-MPS6BAJ2.js.map +0 -1
  755. package/build/modern/chunk-N4RPMT6J.js.map +0 -1
  756. package/build/modern/chunk-NHBL7NNP.js.map +0 -1
  757. package/build/modern/chunk-NR5XDIJ7.js.map +0 -1
  758. package/build/modern/chunk-Q3I4H6EC.js +0 -21
  759. package/build/modern/chunk-Q3I4H6EC.js.map +0 -1
  760. package/build/modern/chunk-QCBLRACK.js.map +0 -1
  761. package/build/modern/chunk-QD4TL3L6.js.map +0 -1
  762. package/build/modern/chunk-QJ3CJ4CR.js +0 -22
  763. package/build/modern/chunk-QJ3CJ4CR.js.map +0 -1
  764. package/build/modern/chunk-QQCB6JXW.js.map +0 -1
  765. package/build/modern/chunk-RD2YPFRA.js.map +0 -1
  766. package/build/modern/chunk-RKGFPKKK.js.map +0 -1
  767. package/build/modern/chunk-RU5LOXWI.js.map +0 -1
  768. package/build/modern/chunk-RUR5MV54.js.map +0 -1
  769. package/build/modern/chunk-SRNDDY5D.js.map +0 -1
  770. package/build/modern/chunk-STLN7BMJ.js.map +0 -1
  771. package/build/modern/chunk-SWX5JWZR.js +0 -12
  772. package/build/modern/chunk-SWX5JWZR.js.map +0 -1
  773. package/build/modern/chunk-TNSIYRF7.js.map +0 -1
  774. package/build/modern/chunk-V3M3ZOQI.js +0 -38
  775. package/build/modern/chunk-V3M3ZOQI.js.map +0 -1
  776. package/build/modern/chunk-V6LNXFJV.js +0 -16
  777. package/build/modern/chunk-V6LNXFJV.js.map +0 -1
  778. package/build/modern/chunk-VOYXV3US.js.map +0 -1
  779. package/build/modern/chunk-VSTOSLFS.js.map +0 -1
  780. package/build/modern/chunk-W47QEZD5.js.map +0 -1
  781. package/build/modern/chunk-WECB67DC.js +0 -12
  782. package/build/modern/chunk-WECB67DC.js.map +0 -1
  783. package/build/modern/chunk-WMRSNYYG.js.map +0 -1
  784. package/build/modern/chunk-YOTXFCCC.js.map +0 -1
  785. package/build/modern/chunk-Z3FDG263.js.map +0 -1
  786. package/build/modern/chunk-Z52R6ABJ.js.map +0 -1
  787. package/build/modern/chunk-Z5K4J4MS.js.map +0 -1
  788. package/build/modern/context/notification-center/store.d.ts +0 -5
  789. package/build/modern/context/notification-center/store.js +0 -15
  790. package/build/modern/context/notification-center/store.js.map +0 -1
  791. package/build/modern/context/notification-center/types.d.ts +0 -6
  792. package/build/modern/context/notification-center/types.js +0 -1
  793. package/build/modern/context/notification-center/types.js.map +0 -1
  794. package/build/modern/context/notification-center.d.ts +0 -5
  795. package/build/modern/context/notification-center.js +0 -183
  796. package/build/modern/context/notification-center.js.map +0 -1
  797. package/src/context/notification-center/store.ts +0 -88
  798. package/src/context/notification-center/types.ts +0 -28
  799. package/src/context/notification-center.tsx +0 -257
  800. /package/build/modern/{chunk-QG4NDPST.js.map → chunk-25P3FUUT.js.map} +0 -0
  801. /package/build/modern/{chunk-FZ53535Q.js.map → chunk-2CZWHED6.js.map} +0 -0
  802. /package/build/modern/{chunk-JAAMD5EH.js.map → chunk-2IYWFZTK.js.map} +0 -0
  803. /package/build/modern/{chunk-KWZ3CEG6.js.map → chunk-52ZQ26IV.js.map} +0 -0
  804. /package/build/modern/{chunk-XBUXVNTY.js.map → chunk-5FC7HIAR.js.map} +0 -0
  805. /package/build/modern/{chunk-TEMFCS72.js.map → chunk-5HEU3SYR.js.map} +0 -0
  806. /package/build/modern/{chunk-4IXQNNAM.js.map → chunk-6UVR3VGK.js.map} +0 -0
  807. /package/build/modern/{chunk-FCRD3ZRZ.js.map → chunk-ADZRQNW3.js.map} +0 -0
  808. /package/build/modern/{chunk-6HOLE2JH.js.map → chunk-CEJIKL6N.js.map} +0 -0
  809. /package/build/modern/{chunk-E7FVTKUT.js.map → chunk-D6PFYSIP.js.map} +0 -0
  810. /package/build/modern/{chunk-EH36PXVP.js.map → chunk-FAQ3F72W.js.map} +0 -0
  811. /package/build/modern/{chunk-2CVGNLIM.js.map → chunk-GC6JUHVS.js.map} +0 -0
  812. /package/build/modern/{chunk-IASVL7CW.js.map → chunk-GUAF4FXQ.js.map} +0 -0
  813. /package/build/modern/{chunk-OS73F4SR.js.map → chunk-GYUCW2QK.js.map} +0 -0
  814. /package/build/modern/{chunk-BIDE4IJG.js.map → chunk-H4SH6ORP.js.map} +0 -0
  815. /package/build/modern/{chunk-HUN7VQBT.js.map → chunk-I4EGYD24.js.map} +0 -0
  816. /package/build/modern/{chunk-6I2FW4WI.js.map → chunk-ILROS7ST.js.map} +0 -0
  817. /package/build/modern/{chunk-SYPAA5YF.js.map → chunk-IUF74GEL.js.map} +0 -0
  818. /package/build/modern/{chunk-WVFEJCUN.js.map → chunk-J76SGDYP.js.map} +0 -0
  819. /package/build/modern/{chunk-RQCJKDXU.js.map → chunk-JQYW4IOC.js.map} +0 -0
  820. /package/build/modern/{chunk-6MNFE6U6.js.map → chunk-KEGLWDD6.js.map} +0 -0
  821. /package/build/modern/{chunk-KZDEDAIK.js.map → chunk-MTD4JSHT.js.map} +0 -0
  822. /package/build/modern/{chunk-FUL2VRDU.js.map → chunk-MZXSSTS7.js.map} +0 -0
  823. /package/build/modern/{chunk-NOXZZHDH.js.map → chunk-N6XHXPBI.js.map} +0 -0
  824. /package/build/modern/{chunk-KB52N3HJ.js.map → chunk-NP73HOHI.js.map} +0 -0
  825. /package/build/modern/{chunk-7TQRTBUP.js.map → chunk-NQ22M7U7.js.map} +0 -0
  826. /package/build/modern/{chunk-EL4MX2PG.js.map → chunk-NYEUNVKR.js.map} +0 -0
  827. /package/build/modern/{chunk-MR4DX76C.js.map → chunk-NYVKL2IS.js.map} +0 -0
  828. /package/build/modern/{chunk-XBDEIBW2.js.map → chunk-QNZIH2KG.js.map} +0 -0
  829. /package/build/modern/{chunk-M7T3MBFB.js.map → chunk-RT7OJ4X5.js.map} +0 -0
  830. /package/build/modern/{chunk-BJJ4XAVO.js.map → chunk-RYRB5GPN.js.map} +0 -0
  831. /package/build/modern/{chunk-FCSO6N2Y.js.map → chunk-V6EAWUCQ.js.map} +0 -0
  832. /package/build/modern/{chunk-HIC7Z23X.js.map → chunk-V6ZOASMM.js.map} +0 -0
  833. /package/build/modern/{chunk-YUNLWTUB.js.map → chunk-W337WQTU.js.map} +0 -0
  834. /package/build/modern/{chunk-XTNGF4D6.js.map → chunk-YOYCS3MD.js.map} +0 -0
  835. /package/build/modern/{chunk-K2TZB3I4.js.map → chunk-ZL7AX5EM.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/Tag.tsx"],"sourcesContent":["'use client'\n\nimport { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport type { MouseEventHandler, PropsWithChildren } from 'react'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { tag, type TagVariantProps } from '@cerberus/styled-system/recipes'\nimport { useCerberusContext } from '../context/cerberus'\nimport { Show } from './Show'\nimport { IconButton } from './IconButton'\n\n/**\n * This module contains the tag component.\n * @module\n */\n\nexport type StaticTagProps = HTMLArkProps<'span'> &\n TagVariantProps & {\n /**\n * The action to be performed when the tag is clicked. Not available when\n * the palette or gradient props are provided.\n */\n onClick?: never\n }\n\nexport type ClickableTagProps = HTMLArkProps<'span'> & {\n /**\n * The gradient to apply to the tag. Not available when the onClick prop is\n * provided.\n */\n gradient?: never\n /**\n * The palette to use for the tag. Not available when the onClick prop is\n * provided.\n */\n palette?: never\n /**\n * The action to be performed when the tag is clicked.\n */\n onClick: MouseEventHandler<HTMLSpanElement>\n /**\n * The shape of the tag. Not available when the onClick prop is provided.\n * @type 'pill' | 'rounded'\n * @default 'pill'\n */\n shape?: never\n /**\n * The usage of the tag. Not available when the onClick prop is provided.\n * @type 'filled' | 'outlined'\n * @default 'filled'\n */\n usage?: never\n}\n\nexport type TagProps = StaticTagProps | ClickableTagProps\n\n/**\n * The Tag component is used to display a meta descriptions.\n * @see https://cerberus.digitalu.design/react/tag\n * @example\n * ```tsx\n * <Tag>Tag</Tag>\n * ```\n */\nexport function Tag(props: PropsWithChildren<TagProps>) {\n const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props\n const palette = props?.palette ?? 'page'\n const isClosable = Boolean(onClick)\n const shape = isClosable ? 'pill' : initShape\n const closableStyles = isClosable ? closableCss : ''\n const { icons } = useCerberusContext()\n const { close: Close } = icons\n\n return (\n <ark.span\n {...nativeProps}\n className={cx(\n nativeProps.className,\n tag({\n gradient,\n palette,\n shape,\n usage,\n }),\n closableStyles,\n )}\n >\n {props.children}\n\n <Show when={isClosable}>\n <IconButton\n ariaLabel=\"Close\"\n onClick={onClick}\n palette=\"action\"\n usage=\"filled\"\n size=\"sm\"\n >\n <Close />\n </IconButton>\n </Show>\n </ark.span>\n )\n}\n\nconst closableCss = css({\n bgColor: 'action.bg.active',\n color: 'action.text.initial',\n paddingInlineEnd: '0',\n})\n"],"mappings":";;;;;;;;;;;AAEA,SAAS,WAA8B;AAEvC,SAAS,KAAK,UAAU;AACxB,SAAS,WAAiC;AAoEtC,SAuBM,KAvBN;AAVG,SAAS,IAAI,OAAoC;AACtD,QAAM,EAAE,OAAO,WAAW,UAAU,SAAS,OAAO,GAAG,YAAY,IAAI;AACvE,QAAM,UAAU,OAAO,WAAW;AAClC,QAAM,aAAa,QAAQ,OAAO;AAClC,QAAM,QAAQ,aAAa,SAAS;AACpC,QAAM,iBAAiB,aAAa,cAAc;AAClD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,OAAO,MAAM,IAAI;AAEzB,SACE;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,IAAI;AAAA,UACF;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,QACD;AAAA,MACF;AAAA,MAEC;AAAA,cAAM;AAAA,QAEP,oBAAC,QAAK,MAAM,YACV;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV;AAAA,YACA,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,MAAK;AAAA,YAEL,8BAAC,SAAM;AAAA;AAAA,QACT,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,IAAM,cAAc,IAAI;AAAA,EACtB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,kBAAkB;AACpB,CAAC;","names":[]}
@@ -1,22 +0,0 @@
1
- // src/components/deprecated/NotificationDescription.tsx
2
- import { cx } from "@cerberus/styled-system/css";
3
- import {
4
- notification
5
- } from "@cerberus/styled-system/recipes";
6
- import { jsx } from "react/jsx-runtime";
7
- function NotificationDescription(props) {
8
- const { palette, ...nativeProps } = props;
9
- const styles = notification({ palette });
10
- return /* @__PURE__ */ jsx(
11
- "p",
12
- {
13
- className: cx(nativeProps.className, styles.description),
14
- ...nativeProps
15
- }
16
- );
17
- }
18
-
19
- export {
20
- NotificationDescription
21
- };
22
- //# sourceMappingURL=chunk-QJ3CJ4CR.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/deprecated/NotificationDescription.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport {\n notification,\n type NotificationVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\n/**\n * This module exports the NotificationDescription component.\n * @module\n */\n\nexport type BaseNotificationDescriptionProps =\n HTMLAttributes<HTMLParagraphElement>\nexport type NotificationDescriptionProps = BaseNotificationDescriptionProps &\n NotificationVariantProps\n\n/**\n * @deprecated use `NotificationParts` instead\n */\nexport function NotificationDescription(props: NotificationDescriptionProps) {\n const { palette, ...nativeProps } = props\n const styles = notification({ palette })\n return (\n <p\n className={cx(nativeProps.className, styles.description)}\n {...nativeProps}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAoBH;AAJG,SAAS,wBAAwB,OAAqC;AAC3E,QAAM,EAAE,SAAS,GAAG,YAAY,IAAI;AACpC,QAAM,SAAS,aAAa,EAAE,QAAQ,CAAC;AACvC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,YAAY,WAAW,OAAO,WAAW;AAAA,MACtD,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/rating/rating.tsx"],"sourcesContent":["import type {\n RatingGroupRootProps,\n UseRatingGroupContext,\n UseRatingGroupItemContext,\n} from '@ark-ui/react/rating-group'\nimport type { RatingGroupVariantProps } from '@cerberus/styled-system/recipes'\nimport type { ReactNode } from 'react'\nimport { splitProps } from '../../utils/index'\nimport { Show } from '../Show'\nimport { RatingParts } from './parts'\n\n/**\n * This module contains the abstracted Rating component.\n * @module 'react/rating'\n */\n\nexport interface RatingProps\n extends Omit<RatingGroupRootProps, 'children'>,\n RatingGroupVariantProps {\n /**\n * The label of the rating component.\n */\n label?: string\n /**\n * The children of the rating component.\n */\n children: (context: UseRatingGroupItemContext) => ReactNode\n}\n\n/**\n * The Rating component is an abstraction of the primitives which provides a\n * visual rating system for a user to select a value.\n * @description [Cerberus Docs](https://cerberus.digitalu.design/react/rating)\n * @description [Ark Docs](https://ark-ui.com/react/docs/components/rating-group#api-reference)\n * @example\n * ```tsx\n * <Rating count={5} defaultValue={3} allowHalf>\n * {({ half, highlighted }) => {\n * if (half) return <StarHalfIcon fill=\"current\" />\n * if (highlighted) return <StarIcon fill=\"current\" />\n * return <StarIcon />\n * }}\n * </Rating>\n * ```\n */\nexport function Rating(props: RatingProps) {\n const [{ label }, styleProps, rootProps] = splitProps(\n props,\n ['label'],\n ['orientation', 'palette', 'size'],\n )\n\n return (\n <RatingParts.Root {...styleProps} {...rootProps}>\n <Show when={Boolean(label)}>\n <RatingParts.Label>{label}</RatingParts.Label>\n </Show>\n\n <RatingParts.Control>\n <RatingParts.Context>\n {(context: UseRatingGroupContext) =>\n context.items.map((item) => (\n <RatingParts.Item\n key={item}\n index={item}\n palette={styleProps.palette}\n >\n <RatingParts.ItemContext>\n {rootProps.children}\n </RatingParts.ItemContext>\n </RatingParts.Item>\n ))\n }\n </RatingParts.Context>\n </RatingParts.Control>\n </RatingParts.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;AAqDI,SAEI,KAFJ;AARG,SAAS,OAAO,OAAoB;AACzC,QAAM,CAAC,EAAE,MAAM,GAAG,YAAY,SAAS,IAAI;AAAA,IACzC;AAAA,IACA,CAAC,OAAO;AAAA,IACR,CAAC,eAAe,WAAW,MAAM;AAAA,EACnC;AAEA,SACE,qBAAC,YAAY,MAAZ,EAAkB,GAAG,YAAa,GAAG,WACpC;AAAA,wBAAC,QAAK,MAAM,QAAQ,KAAK,GACvB,8BAAC,YAAY,OAAZ,EAAmB,iBAAM,GAC5B;AAAA,IAEA,oBAAC,YAAY,SAAZ,EACC,8BAAC,YAAY,SAAZ,EACE,WAAC,YACA,QAAQ,MAAM,IAAI,CAAC,SACjB;AAAA,MAAC,YAAY;AAAA,MAAZ;AAAA,QAEC,OAAO;AAAA,QACP,SAAS,WAAW;AAAA,QAEpB,8BAAC,YAAY,aAAZ,EACE,oBAAU,UACb;AAAA;AAAA,MANK;AAAA,IAOP,CACD,GAEL,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/button/button.tsx"],"sourcesContent":["'use client'\n\nimport { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport {\n type PropsWithChildren,\n createContext,\n useContext,\n useMemo,\n} from 'react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n button,\n type ButtonVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { Box } from '@cerberus/styled-system/jsx'\nimport { Show } from '../Show'\nimport { Spinner } from '../Spinner'\n\n/**\n * This module contains the Button component.\n * @module\n */\n\ninterface ButtonContextValue {\n pending: boolean\n}\n\nconst ButtonContext = createContext<ButtonContextValue>({\n pending: false,\n})\n\nexport type ButtonProps = HTMLArkProps<'button'> &\n ButtonVariantProps & {\n pending?: boolean\n }\n\n/**\n * A component that allows the user to perform actions\n * @see https://cerberus.digitalu.design/react/button\n */\nexport function Button(props: ButtonProps) {\n const { palette, usage, shape, size, pending = false, ...nativeProps } = props\n const value = useMemo(() => ({ pending }), [pending])\n\n return (\n <ButtonContext.Provider value={value}>\n <ark.button\n {...nativeProps}\n disabled={pending || nativeProps.disabled}\n className={cx(\n nativeProps.className,\n button({\n palette,\n usage,\n shape,\n size,\n }),\n )}\n />\n </ButtonContext.Provider>\n )\n}\n\n/**\n * An icon to display in a button that utilizes the pending state to display\n * a loading spinner.\n */\nexport function ButtonIcon(props: PropsWithChildren<object>) {\n const { pending } = useContext(ButtonContext)\n return (\n <Show when={pending} fallback={<>{props.children}</>}>\n <Box w=\"4\">\n <Spinner />\n </Box>\n </Show>\n )\n}\n"],"mappings":";;;;;;;;AAEA,SAAS,WAA8B;AACvC;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AACP,SAAS,WAAW;AAgCd,SAwB6B,UAxB7B;AAnBN,IAAM,gBAAgB,cAAkC;AAAA,EACtD,SAAS;AACX,CAAC;AAWM,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,SAAS,OAAO,OAAO,MAAM,UAAU,OAAO,GAAG,YAAY,IAAI;AACzE,QAAM,QAAQ,QAAQ,OAAO,EAAE,QAAQ,IAAI,CAAC,OAAO,CAAC;AAEpD,SACE,oBAAC,cAAc,UAAd,EAAuB,OACtB;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,UAAU,WAAW,YAAY;AAAA,MACjC,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF,GACF;AAEJ;AAMO,SAAS,WAAW,OAAkC;AAC3D,QAAM,EAAE,QAAQ,IAAI,WAAW,aAAa;AAC5C,SACE,oBAAC,QAAK,MAAM,SAAS,UAAU,gCAAG,gBAAM,UAAS,GAC/C,8BAAC,OAAI,GAAE,KACL,8BAAC,WAAQ,GACX,GACF;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/admonition/primitives.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n admonition,\n type AdmonitionVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the primitives of the Admonition components.\n * @module 'admonition/primitives'\n */\n\n/**\n * The `AdmonitionRoot` component is the container for the Admonition.\n */\nexport function AdmonitionRoot(\n props: HTMLArkProps<'aside'> & AdmonitionVariantProps,\n) {\n const { palette, usage, ...nativeProps } = props\n const styles = admonition({ palette, usage })\n return (\n <ark.aside\n {...nativeProps}\n className={cx(styles.root, nativeProps.className)}\n data-scope=\"admonition\"\n data-part=\"root\"\n />\n )\n}\n\n/**\n * The `AdmonitionIndicator` component is the indicator for the Admonition.\n */\nexport function AdmonitionIndicator(props: HTMLArkProps<'span'>) {\n return <ark.span {...props} data-scope=\"admonition\" data-part=\"indicator\" />\n}\n\n/**\n * The `AdmonitionContent` component is the content for the Admonition.\n */\nexport function AdmonitionContent(props: HTMLArkProps<'div'>) {\n return <ark.div {...props} data-scope=\"admonition\" data-part=\"content\" />\n}\n\n/**\n * The `AdmonitionHeading` component is the heading title for the Admonition.\n */\nexport function AdmonitionHeading(props: HTMLArkProps<'p'>) {\n const styles = admonition()\n return (\n <ark.p\n {...props}\n className={cx(styles.heading, props.className)}\n data-scope=\"admonition\"\n data-part=\"heading\"\n />\n )\n}\n\n/**\n * The `AdmonitionDescription` component is the description for the Admonition.\n */\nexport function AdmonitionDescription(props: HTMLArkProps<'p'>) {\n const styles = admonition()\n return (\n <ark.p\n {...props}\n className={cx(styles.description, props.className)}\n data-scope=\"admonition\"\n data-part=\"description\"\n />\n )\n}\n"],"mappings":";AAAA,SAAS,WAA8B;AACvC,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAgBH;AANG,SAAS,eACd,OACA;AACA,QAAM,EAAE,SAAS,OAAO,GAAG,YAAY,IAAI;AAC3C,QAAM,SAAS,WAAW,EAAE,SAAS,MAAM,CAAC;AAC5C,SACE;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,YAAY,SAAS;AAAA,MAChD,cAAW;AAAA,MACX,aAAU;AAAA;AAAA,EACZ;AAEJ;AAKO,SAAS,oBAAoB,OAA6B;AAC/D,SAAO,oBAAC,IAAI,MAAJ,EAAU,GAAG,OAAO,cAAW,cAAa,aAAU,aAAY;AAC5E;AAKO,SAAS,kBAAkB,OAA4B;AAC5D,SAAO,oBAAC,IAAI,KAAJ,EAAS,GAAG,OAAO,cAAW,cAAa,aAAU,WAAU;AACzE;AAKO,SAAS,kBAAkB,OAA0B;AAC1D,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,SAAS,MAAM,SAAS;AAAA,MAC7C,cAAW;AAAA,MACX,aAAU;AAAA;AAAA,EACZ;AAEJ;AAKO,SAAS,sBAAsB,OAA0B;AAC9D,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,aAAa,MAAM,SAAS;AAAA,MACjD,cAAW;AAAA,MACX,aAAU;AAAA;AAAA,EACZ;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/Text.tsx"],"sourcesContent":["import {\n Em,\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n P,\n Small,\n Span,\n Strong,\n type PProps,\n} from '@cerberus/styled-system/jsx'\nimport { type HTMLAttributes, type PropsWithChildren } from 'react'\n\n/**\n * This module exports a component for rendering text utilizing the styled-system JSX utility.\n * @module @cerberus/react/Text\n */\n\nexport type Headings = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\nexport type TextElements = 'p' | 'strong' | 'em' | 'small' | 'span'\n\n// For some reason we have to use the HTMLParagraphElement type here\n// or else TS will fail for non-style props like 'id' or 'className'\nexport interface TextProps\n extends PProps,\n HTMLAttributes<HTMLParagraphElement> {\n /**\n * The element to render as. Defaults to 'p'.\n */\n as?: TextElements | Headings\n}\n\n/**\n * A component for rendering text utilizing the styled-system JSX utility.\n * @definition [Text docs](https://cerberus.digitalu.design/react/text)\n * @example\n * ```tsx\n * <Text as=\"h1\" color=\"page.text.100\" textStyle={{\n * base: 'heading-md',\n * md: 'heading-lg',\n * }}>\n * Hello, world!\n * </Text>\n */\nexport function Text(props: PropsWithChildren<TextProps>) {\n const { as = 'p', ...pandaJSXProps } = props\n switch (as) {\n case 'h1':\n return <H1 {...pandaJSXProps} />\n case 'h2':\n return <H2 {...pandaJSXProps} />\n case 'h3':\n return <H3 {...pandaJSXProps} />\n case 'h4':\n return <H4 {...pandaJSXProps} />\n case 'h5':\n return <H5 {...pandaJSXProps} />\n case 'h6':\n return <H6 {...pandaJSXProps} />\n case 'strong':\n return <Strong {...pandaJSXProps} />\n case 'em':\n return <Em {...pandaJSXProps} />\n case 'small':\n return <Small {...pandaJSXProps} />\n case 'span':\n return <Span {...pandaJSXProps} />\n default:\n return <P {...pandaJSXProps} />\n }\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAsCM;AAJN,SAAS,KAAK,OAAqC;AACxD,QAAM,EAAE,KAAK,KAAK,GAAG,cAAc,IAAI;AACvC,UAAQ,IAAI;AAAA,IACV,KAAK;AACH,aAAO,oBAAC,MAAI,GAAG,eAAe;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,MAAI,GAAG,eAAe;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,MAAI,GAAG,eAAe;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,MAAI,GAAG,eAAe;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,MAAI,GAAG,eAAe;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,MAAI,GAAG,eAAe;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,UAAQ,GAAG,eAAe;AAAA,IACpC,KAAK;AACH,aAAO,oBAAC,MAAI,GAAG,eAAe;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,SAAO,GAAG,eAAe;AAAA,IACnC,KAAK;AACH,aAAO,oBAAC,QAAM,GAAG,eAAe;AAAA,IAClC;AACE,aAAO,oBAAC,KAAG,GAAG,eAAe;AAAA,EACjC;AACF;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/Menu.tsx"],"sourcesContent":["import { Menu as ArkMenu } from '@ark-ui/react'\nimport { menu } from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\n\n/**\n * This module contains the Menu component family.\n * @module Menu\n */\n\nconst menuStyles = menu()\n\n/**\n * The root Menu component which controls the menu.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>Trigger</MenuTrigger>\n * </Menu>\n */\nexport const Menu = ArkMenu.Root\n\n/**\n * The MenuTrigger component opens/closes the Menu.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * </Menu>\n */\nexport function MenuTrigger(props: ArkMenu.TriggerProps) {\n return <ArkMenu.Trigger {...props} asChild />\n}\n\n/**\n * The MenuContent component is the container for the menu items.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuItem value=\"item_1\">Item 1</MenuItem>\n * <MenuItem value=\"item_2\">Item 2</MenuItem>\n * </MenuContent>\n * </Menu>\n */\nexport function MenuContent(props: ArkMenu.ContentProps) {\n return (\n <ArkMenu.Positioner>\n <ArkMenu.Content\n {...props}\n className={cx(props.className, menuStyles.content)}\n />\n </ArkMenu.Positioner>\n )\n}\n\n/**\n * The MenuItem component is a single item in the menu.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuItem value=\"item_1\">Item 1</MenuItem>\n * <MenuItem value=\"item_2\">Item 2</MenuItem>\n * </MenuContent>\n * </Menu>\n */\nexport function MenuItem(props: ArkMenu.ItemProps) {\n return (\n <ArkMenu.Item {...props} className={cx(props.className, menuStyles.item)} />\n )\n}\n\n/**\n * The MenuItemGroup component is a group of menu items.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuItemGroup>\n * <MenuItem value=\"item_1\">Item 1</MenuItem>\n * <MenuItem value=\"item_2\">Item 2</MenuItem>\n * </MenuItemGroup>\n * </MenuContent>\n * </Menu>\n */\nexport const MenuItemGroup = ArkMenu.ItemGroup\n\n/**\n * The MenuItemGroupLabel component is the label for a group of menu items.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuItemGroup>\n * <MenuItemGroupLabel>Group Label</MenuItemGroupLabel>\n * <MenuItem value=\"item_1\">Item 1</MenuItem>\n * <MenuItem value=\"item_2\">Item 2</MenuItem>\n * </MenuItemGroup>\n * </MenuContent>\n * </Menu>\n */\nexport function MenuGroupLabel(props: ArkMenu.ItemGroupLabelProps) {\n return (\n <ArkMenu.ItemGroupLabel\n {...props}\n className={cx(props.className, menuStyles.itemGroupLabel)}\n />\n )\n}\n\n/**\n * The MenuSeparator component is a visual divider between menu items.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuItemGroup>\n * <MenuGroupLabel>Group Label</MenuGroupLabel>\n * <MenuSeparator />\n * <MenuItem value=\"item_1\">Item 1</MenuItem>\n * <MenuItem value=\"item_2\">Item 2</MenuItem>\n * </MenuItemGroup>\n * </MenuContent>\n * </Menu>\n */\nexport function MenuSeparator(props: ArkMenu.SeparatorProps) {\n return (\n <ArkMenu.Separator\n {...props}\n className={cx(props.className, menuStyles.separator)}\n />\n )\n}\n\n/**\n * The MenuCheckboxItem component is a menu item with a checkbox.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuCheckboxItem\n * checked={checked}\n * onCheckedChange={setChecked}\n * value=\"checked\"\n * >\n * <MenuItemIndicator>✅</MenuItemIndicator>\n * <MenuItemText>Check me</MenuItemText>\n * </MenuCheckboxItem>\n * </MenuContent>\n */\n// export function MenuCheckboxItem(props: ArkMenu.CheckboxItemProps) {\n// return (\n// <ArkMenu.CheckboxItem\n// {...props}\n// className={cx(props.className, menuStyles.item)}\n// />\n// )\n// }\n\n/**\n * The MenuItemText component is the text for a grouped menu item.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuCheckboxItem\n * checked={checked}\n * onCheckedChange={setChecked}\n * value=\"checked\"\n * >\n * <MenuItemText>Item 1</MenuItemText>\n * </MenuCheckboxItem>\n * </MenuContent>\n * </Menu>\n */\n// export function MenuItemText(props: ArkMenu.ItemTextProps) {\n// return (\n// <ArkMenu.ItemText\n// {...props}\n// className={cx(props.className, menuStyles.itemText)}\n// />\n// )\n// }\n\n/**\n * The MenuItemIndicator component is the indicator for a grouped menu item.\n * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu)\n * @example\n * ```tsx\n * <Menu>\n * <MenuTrigger>\n * <Button>Trigger</Button>\n * </MenuTrigger>\n * <MenuContent>\n * <MenuCheckboxItem\n * checked={checked}\n * onCheckedChange={setChecked}\n * value=\"checked\"\n * >\n * <MenuItemIndicator>✅</MenuItemIndicator>\n * <MenuItemText>Check me</MenuItemText>\n * </MenuCheckboxItem>\n * </MenuContent>\n */\n// export function MenuItemIndicator(props: ArkMenu.ItemIndicatorProps) {\n// return (\n// <ArkMenu.ItemIndicator\n// {...props}\n// className={cx(props.className, menuStyles.itemIndicator)}\n// />\n// )\n// }\n"],"mappings":";AAAA,SAAS,QAAQ,eAAe;AAChC,SAAS,YAAY;AACrB,SAAS,UAAU;AAgCV;AAzBT,IAAM,aAAa,KAAK;AAWjB,IAAM,OAAO,QAAQ;AAarB,SAAS,YAAY,OAA6B;AACvD,SAAO,oBAAC,QAAQ,SAAR,EAAiB,GAAG,OAAO,SAAO,MAAC;AAC7C;AAiBO,SAAS,YAAY,OAA6B;AACvD,SACE,oBAAC,QAAQ,YAAR,EACC;AAAA,IAAC,QAAQ;AAAA,IAAR;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,MAAM,WAAW,WAAW,OAAO;AAAA;AAAA,EACnD,GACF;AAEJ;AAiBO,SAAS,SAAS,OAA0B;AACjD,SACE,oBAAC,QAAQ,MAAR,EAAc,GAAG,OAAO,WAAW,GAAG,MAAM,WAAW,WAAW,IAAI,GAAG;AAE9E;AAmBO,IAAM,gBAAgB,QAAQ;AAoB9B,SAAS,eAAe,OAAoC;AACjE,SACE;AAAA,IAAC,QAAQ;AAAA,IAAR;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,MAAM,WAAW,WAAW,cAAc;AAAA;AAAA,EAC1D;AAEJ;AAqBO,SAAS,cAAc,OAA+B;AAC3D,SACE;AAAA,IAAC,QAAQ;AAAA,IAAR;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,MAAM,WAAW,WAAW,SAAS;AAAA;AAAA,EACrD;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/IconButton.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n iconButton,\n type IconButtonVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Icon Button component.\n * @module\n */\n\nexport interface IconButtonRawProps extends HTMLArkProps<'button'> {\n /**\n * The aria-label attribute for the icon button.\n */\n ariaLabel: string\n}\nexport type IconButtonProps = IconButtonRawProps & IconButtonVariantProps\n\n/**\n * A component that allows the user to perform actions using an icon\n * @see https://cerberus.digitalu.design/react/icon-button\n */\nexport function IconButton(props: IconButtonProps): JSX.Element {\n const { ariaLabel, palette, usage, size, ...nativeProps } = props\n return (\n <ark.button\n {...nativeProps}\n aria-label={ariaLabel ?? 'Icon Button'}\n className={cx(\n nativeProps.className,\n iconButton({\n palette,\n usage,\n size,\n }),\n )}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,WAA8B;AACvC,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAsBH;AAHG,SAAS,WAAW,OAAqC;AAC9D,QAAM,EAAE,WAAW,SAAS,OAAO,MAAM,GAAG,YAAY,IAAI;AAC5D,SACE;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,cAAY,aAAa;AAAA,MACzB,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,WAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/radio/radio.tsx"],"sourcesContent":["import type { RadioGroupItemProps } from '@ark-ui/react'\nimport { type RadioGroupVariantProps } from '@cerberus/styled-system/recipes'\nimport {\n RadioGroupItem,\n RadioGroupItemControl,\n RadioGroupItemHiddenInput,\n RadioGroupItemText,\n} from './primitives'\n\n/**\n * This module contains the Radio component.\n * @module\n */\n\nexport type RadioProps = RadioGroupVariantProps & RadioGroupItemProps\n\n/**\n * The Radio component is used to allow users to select a single option from a list of options.\n * @see https://cerberus.digitalu.design/react/radio\n * @memberof module:Field\n * @example\n * ```tsx\n * <Radio value=\"option1\">Option 1</Radio>\n * ```\n */\nexport function Radio(props: RadioProps) {\n const { size, children, ...groupProps } = props\n return (\n <RadioGroupItem {...groupProps}>\n <RadioGroupItemControl size={size} />\n <RadioGroupItemText size={size}>{children}</RadioGroupItemText>\n <RadioGroupItemHiddenInput />\n </RadioGroupItem>\n )\n}\n"],"mappings":";;;;;;;;AA4BI,SACE,KADF;AAHG,SAAS,MAAM,OAAmB;AACvC,QAAM,EAAE,MAAM,UAAU,GAAG,WAAW,IAAI;AAC1C,SACE,qBAAC,kBAAgB,GAAG,YAClB;AAAA,wBAAC,yBAAsB,MAAY;AAAA,IACnC,oBAAC,sBAAmB,MAAa,UAAS;AAAA,IAC1C,oBAAC,6BAA0B;AAAA,KAC7B;AAEJ;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/components/deprecated/ModalHeading.tsx
2
- import { cx } from "@cerberus/styled-system/css";
3
- import { modal } from "@cerberus/styled-system/recipes";
4
- import { jsx } from "react/jsx-runtime";
5
- function ModalHeading(props) {
6
- return /* @__PURE__ */ jsx("p", { ...props, className: cx(props.className, modal().heading) });
7
- }
8
-
9
- export {
10
- ModalHeading
11
- };
12
- //# sourceMappingURL=chunk-SWX5JWZR.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/deprecated/ModalHeading.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { modal } from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\n/**\n * This module contains the ModalHeading component for a customizable modal.\n * @module\n */\n\nexport type ModalHeadingProps = HTMLAttributes<HTMLParagraphElement>\n\n/**\n * @deprecated use `DialogHeading` instead\n */\nexport function ModalHeading(props: ModalHeadingProps) {\n return <p {...props} className={cx(props.className, modal().heading)} />\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAa;AAcb;AADF,SAAS,aAAa,OAA0B;AACrD,SAAO,oBAAC,OAAG,GAAG,OAAO,WAAW,GAAG,MAAM,WAAW,MAAM,EAAE,OAAO,GAAG;AACxE;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/cta-dialog/trigger-item.tsx"],"sourcesContent":["import { css, cx } from '@cerberus/styled-system/css'\nimport { Button, type ButtonProps } from '../button/button'\nimport { ark } from '@ark-ui/react/factory'\nimport { button } from '@cerberus/styled-system/recipes'\n\n/**\n * This module provides the trigger item for the cta modal.\n * @module 'react/cta-modal/trigger-item'\n */\n\nexport interface TriggerItemProps extends ButtonProps {\n asChild?: boolean\n}\n\n/**\n * Trigger item for the cta modal which renders content based on the actions.\n * type.\n */\nexport function TriggerItem(props: TriggerItemProps) {\n const { asChild, children, ...buttonProps } = props\n\n if (asChild) {\n return (\n <ark.div\n className={cx(\n button({\n shape: 'rounded',\n usage: 'ghost',\n }),\n css({\n w: '1/2',\n }),\n )}\n asChild\n >\n {children}\n </ark.div>\n )\n }\n\n return (\n <Button\n {...buttonProps}\n className={css({\n w: '1/2',\n })}\n shape=\"rounded\"\n usage=\"outlined\"\n >\n {children}\n </Button>\n )\n}\n"],"mappings":";;;;;AAAA,SAAS,KAAK,UAAU;AAExB,SAAS,WAAW;AACpB,SAAS,cAAc;AAoBjB;AALC,SAAS,YAAY,OAAyB;AACnD,QAAM,EAAE,SAAS,UAAU,GAAG,YAAY,IAAI;AAE9C,MAAI,SAAS;AACX,WACE;AAAA,MAAC,IAAI;AAAA,MAAJ;AAAA,QACC,WAAW;AAAA,UACT,OAAO;AAAA,YACL,OAAO;AAAA,YACP,OAAO;AAAA,UACT,CAAC;AAAA,UACD,IAAI;AAAA,YACF,GAAG;AAAA,UACL,CAAC;AAAA,QACH;AAAA,QACA,SAAO;AAAA,QAEN;AAAA;AAAA,IACH;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,IAAI;AAAA,QACb,GAAG;AAAA,MACL,CAAC;AAAA,MACD,OAAM;AAAA,MACN,OAAM;AAAA,MAEL;AAAA;AAAA,EACH;AAEJ;","names":[]}
@@ -1,38 +0,0 @@
1
- // src/context/notification-center/store.ts
2
- function notificationCenterReducer(state, action) {
3
- switch (action.type) {
4
- case "ADD_NOTIFICATION":
5
- return [...state, action.payload];
6
- case "REMOVE_NOTIFICATION":
7
- return state.filter((n) => n.id !== action.payload.id);
8
- case "UPDATE_NOTIFICATION":
9
- return state.map(
10
- (n) => n.id === action.payload.id ? { ...n, ...action.payload } : n
11
- );
12
- case "CLEAR_NOTIFICATIONS":
13
- return [];
14
- default:
15
- return state;
16
- }
17
- }
18
- function addNotification(dispatch, options) {
19
- dispatch({ type: "ADD_NOTIFICATION", payload: { ...options } });
20
- }
21
- function removeNotification(dispatch, id) {
22
- dispatch({ type: "REMOVE_NOTIFICATION", payload: { id } });
23
- }
24
- function updateNotificationState(dispatch, options) {
25
- dispatch({ type: "UPDATE_NOTIFICATION", payload: { ...options } });
26
- }
27
- function clearNotificationState(dispatch) {
28
- dispatch({ type: "CLEAR_NOTIFICATIONS" });
29
- }
30
-
31
- export {
32
- notificationCenterReducer,
33
- addNotification,
34
- removeNotification,
35
- updateNotificationState,
36
- clearNotificationState
37
- };
38
- //# sourceMappingURL=chunk-V3M3ZOQI.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/context/notification-center/store.ts"],"sourcesContent":["import type { Dispatch } from 'react'\nimport type {\n AddNotifyAction,\n ClearNotifyAction,\n NotificationsStore,\n RemoveNotifyAction,\n UpdateNotifyAction,\n} from './types'\n\n/**\n * This module contains the reducer store and actions for the notification\n * center.\n * @module notification-center/store\n */\n\n/**\n * The reducer for the notification center.\n * @param state An array of notifications.\n * @param action An action to take on the notifications.\n * @returns The new state of the notifications.\n */\nexport function notificationCenterReducer(\n state: NotificationsStore,\n action:\n | AddNotifyAction\n | RemoveNotifyAction\n | UpdateNotifyAction\n | ClearNotifyAction,\n): NotificationsStore {\n switch (action.type) {\n case 'ADD_NOTIFICATION':\n return [...state, action.payload]\n case 'REMOVE_NOTIFICATION':\n return state.filter((n) => n.id !== action.payload.id)\n case 'UPDATE_NOTIFICATION':\n return state.map((n) =>\n n.id === action.payload.id ? { ...n, ...action.payload } : n,\n )\n case 'CLEAR_NOTIFICATIONS':\n return []\n default:\n return state\n }\n}\n\n/**\n * Adds a notification to the notification center.\n * @param dispatch The dispatch function.\n * @param options The notification options.\n */\nexport function addNotification(\n dispatch: Dispatch<AddNotifyAction>,\n options: AddNotifyAction['payload'],\n) {\n dispatch({ type: 'ADD_NOTIFICATION', payload: { ...options } })\n}\n\n/**\n * Removes a notification from the notification center.\n * @param dispatch The dispatch function.\n * @param id The id of the notification to remove.\n */\nexport function removeNotification(\n dispatch: Dispatch<RemoveNotifyAction>,\n id: RemoveNotifyAction['payload']['id'],\n) {\n dispatch({ type: 'REMOVE_NOTIFICATION', payload: { id } })\n}\n\n/**\n * Updates a notification in the notification center.\n * @param dispatch The dispatch function.\n * @param options The notification options.\n */\nexport function updateNotificationState(\n dispatch: Dispatch<UpdateNotifyAction>,\n options: UpdateNotifyAction['payload'],\n) {\n dispatch({ type: 'UPDATE_NOTIFICATION', payload: { ...options } })\n}\n\n/**\n * Clears the notification state.\n * @param dispatch The dispatch function.\n */\nexport function clearNotificationState(dispatch: Dispatch<ClearNotifyAction>) {\n dispatch({ type: 'CLEAR_NOTIFICATIONS' })\n}\n"],"mappings":";AAqBO,SAAS,0BACd,OACA,QAKoB;AACpB,UAAQ,OAAO,MAAM;AAAA,IACnB,KAAK;AACH,aAAO,CAAC,GAAG,OAAO,OAAO,OAAO;AAAA,IAClC,KAAK;AACH,aAAO,MAAM,OAAO,CAAC,MAAM,EAAE,OAAO,OAAO,QAAQ,EAAE;AAAA,IACvD,KAAK;AACH,aAAO,MAAM;AAAA,QAAI,CAAC,MAChB,EAAE,OAAO,OAAO,QAAQ,KAAK,EAAE,GAAG,GAAG,GAAG,OAAO,QAAQ,IAAI;AAAA,MAC7D;AAAA,IACF,KAAK;AACH,aAAO,CAAC;AAAA,IACV;AACE,aAAO;AAAA,EACX;AACF;AAOO,SAAS,gBACd,UACA,SACA;AACA,WAAS,EAAE,MAAM,oBAAoB,SAAS,EAAE,GAAG,QAAQ,EAAE,CAAC;AAChE;AAOO,SAAS,mBACd,UACA,IACA;AACA,WAAS,EAAE,MAAM,uBAAuB,SAAS,EAAE,GAAG,EAAE,CAAC;AAC3D;AAOO,SAAS,wBACd,UACA,SACA;AACA,WAAS,EAAE,MAAM,uBAAuB,SAAS,EAAE,GAAG,QAAQ,EAAE,CAAC;AACnE;AAMO,SAAS,uBAAuB,UAAuC;AAC5E,WAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1C;","names":[]}
@@ -1,16 +0,0 @@
1
- // src/components/deprecated/NotificationHeading.tsx
2
- import { cx } from "@cerberus/styled-system/css";
3
- import {
4
- notification
5
- } from "@cerberus/styled-system/recipes";
6
- import { jsx } from "react/jsx-runtime";
7
- function NotificationHeading(props) {
8
- const { palette, ...nativeProps } = props;
9
- const styles = notification({ palette });
10
- return /* @__PURE__ */ jsx("p", { className: cx(nativeProps.className, styles.heading), ...nativeProps });
11
- }
12
-
13
- export {
14
- NotificationHeading
15
- };
16
- //# sourceMappingURL=chunk-V6LNXFJV.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/deprecated/NotificationHeading.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport {\n notification,\n type NotificationVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\n/**\n * This module exports the NotificationHeading component.\n * @module\n */\n\nexport type BaseNotificationHeadingProps = HTMLAttributes<HTMLParagraphElement>\nexport type NotificationHeadingProps = BaseNotificationHeadingProps &\n NotificationVariantProps\n\n/**\n * @deprecated use `NotificationParts` instead\n */\nexport function NotificationHeading(props: NotificationHeadingProps) {\n const { palette, ...nativeProps } = props\n const styles = notification({ palette })\n return (\n <p className={cx(nativeProps.className, styles.heading)} {...nativeProps} />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAmBH;AAJG,SAAS,oBAAoB,OAAiC;AACnE,QAAM,EAAE,SAAS,GAAG,YAAY,IAAI;AACpC,QAAM,SAAS,aAAa,EAAE,QAAQ,CAAC;AACvC,SACE,oBAAC,OAAE,WAAW,GAAG,YAAY,WAAW,OAAO,OAAO,GAAI,GAAG,aAAa;AAE9E;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/FileStatus.tsx"],"sourcesContent":["'use client'\n\nimport {\n useCallback,\n useMemo,\n type HTMLAttributes,\n type MouseEvent,\n} from 'react'\nimport {\n fileStatus,\n type FileStatusVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { hstack, vstack } from '@cerberus/styled-system/patterns'\nimport { useCerberusContext } from '../context/cerberus'\nimport { ProgressBar, type ProgressBarProps } from './ProgressBar'\nimport { IconButton } from './IconButton'\nimport { Avatar } from './avatar/avatar'\nimport { Field, FieldHelperText } from './field/index'\n\n/**\n * This module contains the FileStatus component.\n * @module\n */\n\n/**\n * The available values of the fileStatus helper Object.\n * @example\n * ```tsx\n * import { fileStatus } from '@cerberus/react'\n * processStatus.TODO // 'todo'\n * ```\n */\nexport type FileStatusKey = (typeof processStatus)[keyof typeof processStatus]\n\n/**\n * The actions that can be performed on a file.\n */\nexport type FileStatusActions = 'cancel' | 'retry' | 'delete'\nexport interface FileBaseStatusProps\n extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {\n /**\n * A unique identifier for the file status. Required for accessibility.\n */\n id: string\n /**\n * The name of the file.\n */\n file: string\n /**\n * The percentage of the file that has been processed.\n */\n now: ProgressBarProps['now']\n /**\n * The status of the file.\n */\n status: processStatus\n /**\n * The action to perform on the file when a user clicks the\n * button located at the end of the status card.\n * @param status - The status of the file.\n * @param e - The event object.\n * @example\n * ```tsx\n * <FileStatus file=\"file.txt\" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />\n * ```\n * @default () => {}\n */\n onClick: (status: FileStatusActions, e: MouseEvent<HTMLButtonElement>) => void\n}\nexport type FileStatusProps = FileBaseStatusProps & FileStatusVariantProps\n\n/**\n * A helper object to represent the status of a file.\n * @example\n * ```tsx\n * import { fileStatus } from '@cerberus/react'\n * processStatus.TODO // 'todo'\n * ```\n */\nexport const enum processStatus {\n TODO = 'todo',\n PROCESSING = 'processing',\n DONE = 'done',\n ERROR = 'error',\n}\n\n/**\n * A component that displays the status of a file during file processing.\n * @see https://cerberus.digitalu.design/react/file-uploader\n * @example\n * ```tsx\n * <FileStatus file=\"file.txt\" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />\n * ```\n */\nexport function FileStatus(props: FileStatusProps) {\n const { file, now, status, onClick, ...nativeProps } = props\n const actionLabel = useMemo(() => getStatusActionLabel(status), [status])\n const palette = useMemo(() => getPalette(status), [status])\n const modalIconPalette = useMemo(() => getModalIconPalette(status), [status])\n const styles = useMemo(() => {\n switch (status) {\n case processStatus.TODO:\n return fileStatus({ status: 'todo' })\n case processStatus.PROCESSING:\n return fileStatus({ status: 'processing' })\n case processStatus.DONE:\n return fileStatus({ status: 'done' })\n case processStatus.ERROR:\n return fileStatus({ status: 'error' })\n default:\n return fileStatus()\n }\n }, [status])\n\n const handleClick = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => {\n const actionStatus = getStatusActionLabel(\n status,\n ).toLocaleLowerCase() as FileStatusActions\n onClick(actionStatus, e)\n },\n [onClick],\n )\n\n return (\n <div\n {...nativeProps}\n className={cx(nativeProps.className, styles.root, hstack())}\n >\n <Avatar\n gradient={modalIconPalette}\n fallback={<MatchFileStatusIcon size={24} status={status} />}\n />\n\n <div\n className={vstack({\n alignItems: 'flex-start',\n gap: '0.12rem',\n w: 'full',\n })}\n >\n <small\n className={css({\n color: 'page.text.initial',\n textStyle: 'label-sm',\n })}\n >\n {file}\n </small>\n <ProgressBar\n id={props.id}\n label=\"File upload status\"\n now={now}\n size=\"sm\"\n />\n <Field label=\"\" invalid={modalIconPalette === 'hades-dark'}>\n <FieldHelperText\n className={css({\n color: 'page.text.100',\n })}\n id={`help:${file}`}\n >\n <MatchFileStatusText status={status} now={now} />\n </FieldHelperText>\n </Field>\n </div>\n\n <IconButton\n ariaLabel={actionLabel}\n onClick={handleClick}\n palette={palette}\n size=\"sm\"\n >\n <MatchStatusAction status={status} />\n </IconButton>\n </div>\n )\n}\n\ninterface FileStatusElProps {\n status: FileStatusProps['status']\n size?: 16 | 20 | 24 | 32\n now?: number\n}\n\nfunction MatchFileStatusIcon(props: FileStatusElProps) {\n const { icons } = useCerberusContext()\n const {\n waitingFileUploader: TodoIcon,\n fileUploader: FileUploaderIcon,\n invalidAlt: InvalidIcon,\n successNotification: DoneIcon,\n } = icons\n\n switch (props.status) {\n case processStatus.TODO:\n return <TodoIcon size={props.size} />\n case processStatus.PROCESSING:\n return <FileUploaderIcon size={props.size} />\n case processStatus.DONE:\n return <DoneIcon size={props.size} />\n case processStatus.ERROR:\n return <InvalidIcon size={props.size} />\n default:\n throw new Error('Unknown status')\n }\n}\n\nfunction MatchFileStatusText(props: FileStatusElProps) {\n switch (props.status) {\n case processStatus.TODO:\n return 'Waiting to upload'\n case processStatus.PROCESSING:\n return `${props.now}% Complete`\n case processStatus.DONE:\n return 'File uploaded successfully'\n case processStatus.ERROR:\n return 'There was an error uploading the file'\n default:\n throw new Error('Invalid status')\n }\n}\n\nfunction MatchStatusAction(props: FileStatusElProps) {\n const { icons } = useCerberusContext()\n const { close: CloseIcon, redo: RedoIcon, delete: TrashIcon } = icons\n switch (props.status) {\n case processStatus.TODO:\n case processStatus.PROCESSING:\n return <CloseIcon />\n case processStatus.ERROR:\n return <RedoIcon />\n case processStatus.DONE:\n return <TrashIcon />\n default:\n throw new Error('Invalid status')\n }\n}\n\nfunction getStatusActionLabel(status: FileStatusKey) {\n switch (status) {\n case processStatus.TODO:\n case processStatus.PROCESSING:\n return 'Cancel'\n case processStatus.ERROR:\n return 'Retry'\n case processStatus.DONE:\n return 'Delete'\n default:\n return ''\n }\n}\n\nfunction getPalette(status: FileStatusKey) {\n switch (status) {\n case processStatus.TODO:\n case processStatus.PROCESSING:\n return 'danger'\n case processStatus.ERROR:\n return 'action'\n case processStatus.DONE:\n return 'danger'\n default:\n return 'action'\n }\n}\n\nfunction getModalIconPalette(status: FileStatusKey) {\n switch (status) {\n case processStatus.TODO:\n case processStatus.PROCESSING:\n return 'charon-light'\n case processStatus.ERROR:\n return 'hades-dark'\n case processStatus.DONE:\n return 'thanatos-light'\n default:\n return 'charon-light'\n }\n}\n"],"mappings":"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","names":["processStatus"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/field/primitives.tsx"],"sourcesContent":["import {\n Field,\n type FieldHelperTextProps,\n type FieldInputProps as ArkFieldInputProps,\n type FieldLabelProps,\n type FieldRootProps as ArkFieldRootProps,\n type FieldTextareaProps,\n} from '@ark-ui/react/field'\nimport type { ReactNode } from 'react'\nimport { cx } from '@cerberus/styled-system/css'\nimport { field, type FieldVariantProps } from '@cerberus/styled-system/recipes'\nimport { FieldStatusIndicator } from './status-indicator'\nimport { FieldStartIndicator } from './start-indicator'\n\n/**\n * This module contains all the primitives of the Field component.\n * @module 'field'\n */\n\nexport type FieldRootProps = ArkFieldRootProps & FieldVariantProps\n\n/**\n * The context & container for the Field components.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot required ids={{ input: 'exampleId' }}>\n * <FieldLabel>Label</FieldLabel>\n * <FieldInput />\n * </FieldRoot>\n * ```\n */\nexport function FieldRoot(props: FieldRootProps) {\n const { size, ...fieldProps } = props\n const styles = field({ size })\n return (\n <Field.Root\n {...fieldProps}\n className={cx(styles.root, fieldProps.className)}\n />\n )\n}\n\n/**\n * The label for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldLabel>Label</FieldLabel>\n * </FieldRoot>\n * ```\n */\nexport function FieldLabel(props: FieldLabelProps) {\n const { children, ...nativeProps } = props\n const styles = field()\n return (\n <Field.Label {...nativeProps} className={cx(styles.label, props.className)}>\n {children}\n <Field.RequiredIndicator>(required)</Field.RequiredIndicator>\n </Field.Label>\n )\n}\n\n/**\n * The required indicator for the Field component.\n */\nexport function FieldRequiredIndicator() {\n return <Field.RequiredIndicator>(required)</Field.RequiredIndicator>\n}\n\nexport interface FieldInputProps\n extends Omit<ArkFieldInputProps, 'size'>,\n FieldVariantProps {\n /**\n * An optional icon to display at the start of the input.\n */\n startIcon?: ReactNode\n /**\n * An optional icon to display at the end of the input.\n */\n endIcon?: ReactNode\n}\n\n/**\n * The input for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldInput />\n * </FieldRoot>\n * ```\n */\nexport function FieldInput(props: FieldInputProps) {\n const { size, startIcon, endIcon, ...fieldProps } = props\n const styles = field({ size })\n const hasStartIcon = Boolean(startIcon)\n\n return (\n <div className={styles.inputRoot}>\n <FieldStartIndicator>{startIcon}</FieldStartIndicator>\n <Field.Input\n {...fieldProps}\n {...(hasStartIcon && { 'data-has': 'start-indicator' })}\n className={cx(styles.input, fieldProps.className)}\n />\n <FieldStatusIndicator fallback={endIcon} />\n </div>\n )\n}\n\n/**\n * The helper text for the Field component that is shown when the field is\n * valid.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldInput />\n * <FieldHelperText>Helper text</FieldHelperText>\n * </FieldRoot>\n * ```\n */\nexport function FieldHelperText(props: FieldHelperTextProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <Field.HelperText\n {...props}\n className={cx(styles.helperText, props.className)}\n />\n )\n}\n\n/**\n * The error text for the Field component that is shown when the field is\n * invalid.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldInput />\n * <FieldErrorText>Error text</FieldErrorText>\n * </FieldRoot>\n * ```\n */\nexport function FieldErrorText(props: FieldHelperTextProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <Field.ErrorText\n {...props}\n className={cx(styles.errorText, props.className)}\n />\n )\n}\n\n/**\n * The textarea for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldTextarea />\n * </FieldRoot>\n * ```\n */\nexport function FieldTextarea(props: FieldTextareaProps) {\n const styles = field()\n return (\n <Field.Textarea\n {...props}\n className={cx(styles.textarea, props.className)}\n />\n )\n}\n\n/**\n * A named export for the FieldInput component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * import { Input } from '@cerberus/react'\n *\n * <Field\n * ids={{\n * control: 'email',\n * }}\n * label=\"Enter your email\"\n * helperText=\"We'll never share your email with anyone else.\"\n * errorText=\"Email is required.\"\n * required\n * >\n * <Input type=\"email\" />\n * </Field>\n * ```\n */\nexport const Input = FieldInput\nexport const Textarea = FieldTextarea\n"],"mappings":";;;;;;;;AAAA;AAAA,EACE;AAAA,OAMK;AAEP,SAAS,UAAU;AACnB,SAAS,aAAqC;AA0B1C,cAqBA,YArBA;AAJG,SAAS,UAAU,OAAuB;AAC/C,QAAM,EAAE,MAAM,GAAG,WAAW,IAAI;AAChC,QAAM,SAAS,MAAM,EAAE,KAAK,CAAC;AAC7B,SACE;AAAA,IAAC,MAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,WAAW,SAAS;AAAA;AAAA,EACjD;AAEJ;AAYO,SAAS,WAAW,OAAwB;AACjD,QAAM,EAAE,UAAU,GAAG,YAAY,IAAI;AACrC,QAAM,SAAS,MAAM;AACrB,SACE,qBAAC,MAAM,OAAN,EAAa,GAAG,aAAa,WAAW,GAAG,OAAO,OAAO,MAAM,SAAS,GACtE;AAAA;AAAA,IACD,oBAAC,MAAM,mBAAN,EAAwB,wBAAU;AAAA,KACrC;AAEJ;AAKO,SAAS,yBAAyB;AACvC,SAAO,oBAAC,MAAM,mBAAN,EAAwB,wBAAU;AAC5C;AAyBO,SAAS,WAAW,OAAwB;AACjD,QAAM,EAAE,MAAM,WAAW,SAAS,GAAG,WAAW,IAAI;AACpD,QAAM,SAAS,MAAM,EAAE,KAAK,CAAC;AAC7B,QAAM,eAAe,QAAQ,SAAS;AAEtC,SACE,qBAAC,SAAI,WAAW,OAAO,WACrB;AAAA,wBAAC,uBAAqB,qBAAU;AAAA,IAChC;AAAA,MAAC,MAAM;AAAA,MAAN;AAAA,QACE,GAAG;AAAA,QACH,GAAI,gBAAgB,EAAE,YAAY,kBAAkB;AAAA,QACrD,WAAW,GAAG,OAAO,OAAO,WAAW,SAAS;AAAA;AAAA,IAClD;AAAA,IACA,oBAAC,wBAAqB,UAAU,SAAS;AAAA,KAC3C;AAEJ;AAcO,SAAS,gBAAgB,OAA6B;AAC3D,QAAM,SAAS,MAAM;AAErB,MAAI,CAAC,MAAM,SAAU,QAAO;AAE5B,SACE;AAAA,IAAC,MAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,YAAY,MAAM,SAAS;AAAA;AAAA,EAClD;AAEJ;AAcO,SAAS,eAAe,OAA6B;AAC1D,QAAM,SAAS,MAAM;AAErB,MAAI,CAAC,MAAM,SAAU,QAAO;AAE5B,SACE;AAAA,IAAC,MAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,WAAW,MAAM,SAAS;AAAA;AAAA,EACjD;AAEJ;AAYO,SAAS,cAAc,OAA2B;AACvD,QAAM,SAAS,MAAM;AACrB,SACE;AAAA,IAAC,MAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,UAAU,MAAM,SAAS;AAAA;AAAA,EAChD;AAEJ;AAsBO,IAAM,QAAQ;AACd,IAAM,WAAW;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/rating/primitives.tsx"],"sourcesContent":["import {\n RatingGroup,\n type RatingGroupContextProps,\n type RatingGroupControlProps,\n type RatingGroupHiddenInputProps,\n type RatingGroupItemContextProps,\n type RatingGroupItemProps,\n type RatingGroupLabelProps,\n type RatingGroupRootProps,\n} from '@ark-ui/react/rating-group'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n ratingGroup,\n type RatingGroupVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the primitives of the Rating component.\n * @module 'rating/primitives'\n */\n\n/**\n * The root primitive of the Rating component.\n */\nexport function RatingRoot(\n props: RatingGroupRootProps & RatingGroupVariantProps,\n) {\n const { orientation, size, ...rootProps } = props\n const styles = ratingGroup({ orientation, size })\n return (\n <RatingGroup.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The label primitive of the Rating component.\n */\nexport function RatingLabel(props: RatingGroupLabelProps) {\n const styles = ratingGroup()\n return (\n <RatingGroup.Label\n {...props}\n className={cx(styles.label, props.className)}\n />\n )\n}\n\n/**\n * The control primitive of the Rating component.\n */\nexport function RatingControl(props: RatingGroupControlProps) {\n const styles = ratingGroup()\n return (\n <RatingGroup.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The context primitive of the Rating component.\n */\nexport function RatingContext(props: RatingGroupContextProps) {\n return <RatingGroup.Context {...props} />\n}\n\n/**\n * The item primitive of the Rating component.\n */\nexport function RatingItem(\n props: RatingGroupItemProps & RatingGroupVariantProps,\n) {\n const { palette, ...itemProps } = props\n const styles = ratingGroup({ palette })\n return (\n <RatingGroup.Item\n {...itemProps}\n className={cx(styles.item, itemProps.className)}\n />\n )\n}\n\n/**\n * The item context primitive of the Rating component.\n */\nexport function RatingItemContext(props: RatingGroupItemContextProps) {\n return <RatingGroup.ItemContext {...props} />\n}\n\n/**\n * The hidden input primitive of the Rating component.\n */\nexport function RatingHiddenInput(props: RatingGroupHiddenInputProps) {\n return <RatingGroup.HiddenInput {...props} />\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,OAQK;AACP,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAgBH;AANG,SAAS,WACd,OACA;AACA,QAAM,EAAE,aAAa,MAAM,GAAG,UAAU,IAAI;AAC5C,QAAM,SAAS,YAAY,EAAE,aAAa,KAAK,CAAC;AAChD,SACE;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,YAAY,OAA8B;AACxD,QAAM,SAAS,YAAY;AAC3B,SACE;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,OAAO,MAAM,SAAS;AAAA;AAAA,EAC7C;AAEJ;AAKO,SAAS,cAAc,OAAgC;AAC5D,QAAM,SAAS,YAAY;AAC3B,SACE;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,SAAS,MAAM,SAAS;AAAA;AAAA,EAC/C;AAEJ;AAKO,SAAS,cAAc,OAAgC;AAC5D,SAAO,oBAAC,YAAY,SAAZ,EAAqB,GAAG,OAAO;AACzC;AAKO,SAAS,WACd,OACA;AACA,QAAM,EAAE,SAAS,GAAG,UAAU,IAAI;AAClC,QAAM,SAAS,YAAY,EAAE,QAAQ,CAAC;AACtC,SACE;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,kBAAkB,OAAoC;AACpE,SAAO,oBAAC,YAAY,aAAZ,EAAyB,GAAG,OAAO;AAC7C;AAKO,SAAS,kBAAkB,OAAoC;AACpE,SAAO,oBAAC,YAAY,aAAZ,EAAyB,GAAG,OAAO;AAC7C;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/components/deprecated/ModalDescription.tsx
2
- import { cx } from "@cerberus/styled-system/css";
3
- import { modal } from "@cerberus/styled-system/recipes";
4
- import { jsx } from "react/jsx-runtime";
5
- function ModalDescription(props) {
6
- return /* @__PURE__ */ jsx("p", { ...props, className: cx(props.className, modal().description) });
7
- }
8
-
9
- export {
10
- ModalDescription
11
- };
12
- //# sourceMappingURL=chunk-WECB67DC.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/deprecated/ModalDescription.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { modal } from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\n/**\n * This module contains the ModalDescription component for a customizable modal.\n * @module\n */\n\nexport type ModalDescriptionProps = HTMLAttributes<HTMLParagraphElement>\n\n/**\n * @deprecated use `DialogDescription` instead\n */\nexport function ModalDescription(props: ModalDescriptionProps) {\n return <p {...props} className={cx(props.className, modal().description)} />\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAa;AAcb;AADF,SAAS,iBAAiB,OAA8B;AAC7D,SAAO,oBAAC,OAAG,GAAG,OAAO,WAAW,GAAG,MAAM,WAAW,MAAM,EAAE,WAAW,GAAG;AAC5E;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/FileUploader.tsx"],"sourcesContent":["'use client'\n\nimport { cx } from '@cerberus/styled-system/css'\nimport { vstack } from '@cerberus/styled-system/patterns'\nimport { type InputHTMLAttributes } from 'react'\nimport { Show } from './Show'\nimport { fileUploader } from '@cerberus/styled-system/recipes'\nimport { useCerberusContext } from '../context/cerberus'\nimport { Avatar } from './avatar/avatar'\n\nexport interface FileUploaderProps\n extends InputHTMLAttributes<HTMLInputElement> {\n /**\n * The optional heading to display in the FileUploader component.\n */\n heading?: string\n /**\n * The name of the file input element.\n */\n name: string\n /**\n * Disable the FileUploader component. Good for single-use file uploads.\n */\n disabled?: boolean\n}\n\n/**\n * A component that allows the user to upload files.\n * @see https://cerberus.digitalu.design/react/file-uploader\n */\nexport function FileUploader(props: FileUploaderProps) {\n const { icons } = useCerberusContext()\n const styles = fileUploader()\n const { waitingFileUploader: Icon } = icons\n\n return (\n <div\n {...(props.disabled ? { 'aria-disabled': true } : {})}\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.container,\n )}\n >\n <div className={styles.icon}>\n <Avatar gradient=\"charon-light\" fallback={<Icon />} />\n </div>\n\n <label\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.label,\n )}\n htmlFor={props.name}\n >\n <Show when={Boolean(props.heading)}>\n <p className={styles.heading}>{props.heading}</p>\n </Show>\n Import {props.accept?.replace(',', ', ')} files\n <p className={styles.description}>Click to select files</p>\n <input\n {...props}\n className={cx(props.className, styles.input)}\n type=\"file\"\n />\n </label>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAEA,SAAS,UAAU;AACnB,SAAS,cAAc;AAGvB,SAAS,oBAAoB;AAwCqB,cAG5C,YAH4C;AAhB3C,SAAS,aAAa,OAA0B;AACrD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,SAAS,aAAa;AAC5B,QAAM,EAAE,qBAAqB,KAAK,IAAI;AAEtC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAI,MAAM,WAAW,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAAA,MACnD,WAAW;AAAA,QACT,OAAO;AAAA,UACL,SAAS;AAAA,QACX,CAAC;AAAA,QACD,OAAO;AAAA,MACT;AAAA,MAEA;AAAA,4BAAC,SAAI,WAAW,OAAO,MACrB,8BAAC,UAAO,UAAS,gBAAe,UAAU,oBAAC,QAAK,GAAI,GACtD;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW;AAAA,cACT,OAAO;AAAA,gBACL,SAAS;AAAA,cACX,CAAC;AAAA,cACD,OAAO;AAAA,YACT;AAAA,YACA,SAAS,MAAM;AAAA,YAEf;AAAA,kCAAC,QAAK,MAAM,QAAQ,MAAM,OAAO,GAC/B,8BAAC,OAAE,WAAW,OAAO,SAAU,gBAAM,SAAQ,GAC/C;AAAA,cAAO;AAAA,cACC,MAAM,QAAQ,QAAQ,KAAK,IAAI;AAAA,cAAE;AAAA,cACzC,oBAAC,OAAE,WAAW,OAAO,aAAa,mCAAqB;AAAA,cACvD;AAAA,gBAAC;AAAA;AAAA,kBACE,GAAG;AAAA,kBACJ,WAAW,GAAG,MAAM,WAAW,OAAO,KAAK;AAAA,kBAC3C,MAAK;AAAA;AAAA,cACP;AAAA;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/deprecated/NavMenuLink.tsx"],"sourcesContent":["import type { AnchorHTMLAttributes, ElementType } from 'react'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { Show } from '../Show'\n\n/**\n * This module contains the NavMenuLink component.\n * @module\n */\n\nexport interface NavMenuLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement> {\n /**\n * The element type to render as. Recommended to use for Next apps with the\n * `Link` component.\n */\n as?: ElementType\n}\n\n/**\n * @deprecated use the {@link Menu} family instead\n */\nexport function NavMenuLink(props: NavMenuLinkProps): JSX.Element {\n const { as, ...nativeProps } = props\n const hasAs = Boolean(as)\n const AsSub: ElementType = as!\n\n return (\n <li\n className={css({\n w: 'full',\n })}\n >\n <Show\n when={hasAs}\n fallback={\n <a\n {...nativeProps}\n className={cx(\n nativeProps.className,\n css({\n color: 'action.navigation.initial',\n textStyle: 'link',\n _hover: {\n color: 'action.navigation.hover',\n },\n }),\n )}\n />\n }\n >\n {hasAs && <AsSub {...nativeProps} />}\n </Show>\n </li>\n )\n}\n"],"mappings":";;;;;AACA,SAAS,KAAK,UAAU;AAkCd;AAdH,SAAS,YAAY,OAAsC;AAChE,QAAM,EAAE,IAAI,GAAG,YAAY,IAAI;AAC/B,QAAM,QAAQ,QAAQ,EAAE;AACxB,QAAM,QAAqB;AAE3B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,IAAI;AAAA,QACb,GAAG;AAAA,MACL,CAAC;AAAA,MAED;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,UACE;AAAA,YAAC;AAAA;AAAA,cACE,GAAG;AAAA,cACJ,WAAW;AAAA,gBACT,YAAY;AAAA,gBACZ,IAAI;AAAA,kBACF,OAAO;AAAA,kBACP,WAAW;AAAA,kBACX,QAAQ;AAAA,oBACN,OAAO;AAAA,kBACT;AAAA,gBACF,CAAC;AAAA,cACH;AAAA;AAAA,UACF;AAAA,UAGD,mBAAS,oBAAC,SAAO,GAAG,aAAa;AAAA;AAAA,MACpC;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/fieldset/primitives.tsx"],"sourcesContent":["import {\n Fieldset,\n type FieldsetHelperTextProps,\n type FieldsetLegendProps,\n type FieldsetRootProps,\n} from '@ark-ui/react/fieldset'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n fieldset,\n type FieldsetVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains all the primitives of the Fieldset component.\n * @module 'react/fieldset'\n */\n\n/**\n * The context & container for the Fieldset components.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetRoot(props: FieldsetRootProps) {\n const styles = fieldset()\n return (\n <Fieldset.Root {...props} className={cx(styles.root, props.className)} />\n )\n}\n\n/**\n * The legend element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetLegend(\n props: FieldsetLegendProps & FieldsetVariantProps,\n) {\n const { usage, ...legendProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.Legend\n {...legendProps}\n className={cx(styles.legend, legendProps.className)}\n />\n )\n}\n\n/**\n * The description element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetHelperText(\n props: FieldsetHelperTextProps & FieldsetVariantProps,\n) {\n const { usage, ...helperTextProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.HelperText\n {...helperTextProps}\n className={cx(styles.helperText, helperTextProps.className)}\n />\n )\n}\n\n/**\n * The error text element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetErrorText(props: FieldsetHelperTextProps) {\n const styles = fieldset()\n return (\n <Fieldset.ErrorText\n {...props}\n className={cx(styles.errorText, props.className)}\n />\n )\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,OAIK;AACP,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAeH;AAHG,SAAS,aAAa,OAA0B;AACrD,QAAM,SAAS,SAAS;AACxB,SACE,oBAAC,SAAS,MAAT,EAAe,GAAG,OAAO,WAAW,GAAG,OAAO,MAAM,MAAM,SAAS,GAAG;AAE3E;AAOO,SAAS,eACd,OACA;AACA,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI;AAClC,QAAM,SAAS,SAAS,EAAE,MAAM,CAAC;AACjC,SACE;AAAA,IAAC,SAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,QAAQ,YAAY,SAAS;AAAA;AAAA,EACpD;AAEJ;AAOO,SAAS,mBACd,OACA;AACA,QAAM,EAAE,OAAO,GAAG,gBAAgB,IAAI;AACtC,QAAM,SAAS,SAAS,EAAE,MAAM,CAAC;AACjC,SACE;AAAA,IAAC,SAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,YAAY,gBAAgB,SAAS;AAAA;AAAA,EAC5D;AAEJ;AAOO,SAAS,kBAAkB,OAAgC;AAChE,QAAM,SAAS,SAAS;AACxB,SACE;AAAA,IAAC,SAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,WAAW,MAAM,SAAS;AAAA;AAAA,EACjD;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/field/start-indicator.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { field } from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\nexport type FieldIndicatorProps = HTMLAttributes<HTMLSpanElement>\n\n/**\n * The start indicator displays an indicator at the start of the Input.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n */\nexport function FieldStartIndicator(props: FieldIndicatorProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <span\n {...props}\n data-part=\"start-indicator\"\n className={cx(props.className, styles.startIndicator)}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAa;AAelB;AANG,SAAS,oBAAoB,OAA4B;AAC9D,QAAM,SAAS,MAAM;AAErB,MAAI,CAAC,MAAM,SAAU,QAAO;AAE5B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,aAAU;AAAA,MACV,WAAW,GAAG,MAAM,WAAW,OAAO,cAAc;AAAA;AAAA,EACtD;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/select/select.tsx"],"sourcesContent":["'use client'\n\nimport type { SelectItemProps, SelectRootProps } from '@ark-ui/react/select'\nimport { type SelectVariantProps } from '@cerberus/styled-system/recipes'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { SelectParts } from './parts'\n\n/**\n * This module contains the Select components.\n * @module 'react/select'\n */\n\nexport interface SelectCollectionItem {\n /**\n * What is displayed in the dropdown list.\n */\n label: string\n /**\n * The value of the selected item used in the form.\n */\n value: string\n /**\n * If the item is disabled.\n */\n disabled?: boolean\n}\n\nexport interface SelectCollection {\n /**\n * The items to be displayed in the dropdown list.\n */\n items: SelectCollectionItem[]\n}\n\nexport interface BaseSelectProps {\n /**\n * The placeholder text when no option is selected.\n */\n placeholder?: string\n}\n\nexport type SelectProps = SelectRootProps<SelectCollectionItem> &\n BaseSelectProps &\n SelectVariantProps\n\n/**\n * The Select component is a dropdown list that allows users to select an\n * option from a list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * import { Select, Option, createListCollection } from '@cerberus-design/react'\n *\n * export function SelectBasicPreview() {\n * const collection = createListCollection({\n * items: [\n * { label: 'Hades', value: 'hades' },\n * { label: 'Persephone', value: 'persephone' },\n * { label: 'Zeus', value: 'zeus', disabled: true },\n * ]\n * })\n *\n * return (\n * <Select\n * collection={collection}\n * label=\"Select Relative\"\n * placeholder=\"Choose option\"\n * >\n * {collection.items.map((item) => (\n * <Option key={item.value} item={item} />\n * ))}\n * </Select>\n * )\n * }\n */\nexport function Select(props: SelectProps) {\n const { collection, placeholder, ...rootProps } = props\n\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons\n\n return (\n <SelectParts.Root collection={collection} {...rootProps}>\n <SelectParts.Control>\n <SelectParts.Trigger>\n <SelectParts.ValueText placeholder={placeholder} />\n\n <HStack>\n <Show when={props.invalid}>\n <InvalidIcon data-part=\"invalid-icon\" />\n </Show>\n <SelectParts.Indicator>\n <SelectArrow />\n </SelectParts.Indicator>\n </HStack>\n </SelectParts.Trigger>\n </SelectParts.Control>\n\n <Portal>\n <SelectParts.Positioner>\n <SelectParts.Content size={rootProps.size}>\n {props.children}\n </SelectParts.Content>\n </SelectParts.Positioner>\n </Portal>\n\n <SelectParts.HiddenSelect />\n </SelectParts.Root>\n )\n}\n\nexport interface OptionProps extends SelectItemProps {\n /**\n * The CollectionListItem to be displayed in the dropdown list.\n */\n item: SelectCollectionItem\n}\n\nexport function Option(props: OptionProps) {\n const { item, ...itemProps } = props\n const { icons } = useCerberusContext()\n const { selectChecked: CheckedIcon } = icons\n\n return (\n <SelectParts.Item {...itemProps} item={item}>\n <SelectParts.ItemText>{item?.label}</SelectParts.ItemText>\n <SelectParts.ItemIndicator>\n <CheckedIcon />\n </SelectParts.ItemIndicator>\n </SelectParts.Item>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAIA,SAAS,cAAc;AAqFb,cAEA,YAFA;AAVH,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,YAAY,aAAa,GAAG,UAAU,IAAI;AAElD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,aAAa,aAAa,SAAS,YAAY,IAAI;AAE3D,SACE,qBAAC,YAAY,MAAZ,EAAiB,YAAyB,GAAG,WAC5C;AAAA,wBAAC,YAAY,SAAZ,EACC,+BAAC,YAAY,SAAZ,EACC;AAAA,0BAAC,YAAY,WAAZ,EAAsB,aAA0B;AAAA,MAEjD,qBAAC,UACC;AAAA,4BAAC,QAAK,MAAM,MAAM,SAChB,8BAAC,eAAY,aAAU,gBAAe,GACxC;AAAA,QACA,oBAAC,YAAY,WAAZ,EACC,8BAAC,eAAY,GACf;AAAA,SACF;AAAA,OACF,GACF;AAAA,IAEA,oBAAC,UACC,8BAAC,YAAY,YAAZ,EACC,8BAAC,YAAY,SAAZ,EAAoB,MAAM,UAAU,MAClC,gBAAM,UACT,GACF,GACF;AAAA,IAEA,oBAAC,YAAY,cAAZ,EAAyB;AAAA,KAC5B;AAEJ;AASO,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,eAAe,YAAY,IAAI;AAEvC,SACE,qBAAC,YAAY,MAAZ,EAAkB,GAAG,WAAW,MAC/B;AAAA,wBAAC,YAAY,UAAZ,EAAsB,gBAAM,OAAM;AAAA,IACnC,oBAAC,YAAY,eAAZ,EACC,8BAAC,eAAY,GACf;AAAA,KACF;AAEJ;","names":[]}
@@ -1,5 +0,0 @@
1
- export { notificationCenterReducer } from '../../_tsup-dts-rollup.js';
2
- export { addNotification } from '../../_tsup-dts-rollup.js';
3
- export { removeNotification } from '../../_tsup-dts-rollup.js';
4
- export { updateNotificationState } from '../../_tsup-dts-rollup.js';
5
- export { clearNotificationState } from '../../_tsup-dts-rollup.js';
@@ -1,15 +0,0 @@
1
- import {
2
- addNotification,
3
- clearNotificationState,
4
- notificationCenterReducer,
5
- removeNotification,
6
- updateNotificationState
7
- } from "../../chunk-V3M3ZOQI.js";
8
- export {
9
- addNotification,
10
- clearNotificationState,
11
- notificationCenterReducer,
12
- removeNotification,
13
- updateNotificationState
14
- };
15
- //# sourceMappingURL=store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,6 +0,0 @@
1
- export { NotificationsStore } from '../../_tsup-dts-rollup.js';
2
- export { NotificationOption } from '../../_tsup-dts-rollup.js';
3
- export { AddNotifyAction } from '../../_tsup-dts-rollup.js';
4
- export { RemoveNotifyAction } from '../../_tsup-dts-rollup.js';
5
- export { UpdateNotifyAction } from '../../_tsup-dts-rollup.js';
6
- export { ClearNotifyAction } from '../../_tsup-dts-rollup.js';
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,5 +0,0 @@
1
- export { NotificationCenter_deprecated } from '../_tsup-dts-rollup.js';
2
- export { useNotificationCenter_deprecated } from '../_tsup-dts-rollup.js';
3
- export { NotifyOptions_alias_3 as NotifyOptions } from '../_tsup-dts-rollup.js';
4
- export { NotificationsValue } from '../_tsup-dts-rollup.js';
5
- export { NotificationsProviderProps } from '../_tsup-dts-rollup.js';
@@ -1,183 +0,0 @@
1
- "use client";
2
- import {
3
- addNotification,
4
- clearNotificationState,
5
- notificationCenterReducer,
6
- removeNotification,
7
- updateNotificationState
8
- } from "../chunk-V3M3ZOQI.js";
9
- import {
10
- Notification
11
- } from "../chunk-EUYI7C2E.js";
12
- import {
13
- NotificationDescription
14
- } from "../chunk-QJ3CJ4CR.js";
15
- import {
16
- NotificationHeading
17
- } from "../chunk-V6LNXFJV.js";
18
- import {
19
- Button
20
- } from "../chunk-RD2YPFRA.js";
21
- import "../chunk-GITT5645.js";
22
- import {
23
- Portal
24
- } from "../chunk-IQJDVFPP.js";
25
- import "../chunk-7SYJFI5E.js";
26
- import "../chunk-JIZQFTW6.js";
27
- import {
28
- Show
29
- } from "../chunk-BUVVRQLZ.js";
30
-
31
- // src/context/notification-center.tsx
32
- import {
33
- createContext,
34
- useCallback,
35
- useContext,
36
- useMemo,
37
- useReducer
38
- } from "react";
39
- import { animateIn, vstack } from "@cerberus/styled-system/patterns";
40
- import { notification } from "@cerberus/styled-system/recipes";
41
- import { cx } from "@cerberus/styled-system/css";
42
- import { jsx, jsxs } from "react/jsx-runtime";
43
- var NotificationsContext = createContext(null);
44
- function NotificationCenter_deprecated(props) {
45
- const [state, dispatch] = useReducer(notificationCenterReducer, []);
46
- const styles = notification();
47
- const timeout = useMemo(
48
- () => props.duration || 6e3,
49
- [props.duration]
50
- );
51
- const closeNotification = useCallback(
52
- (id) => {
53
- updateNotificationState(dispatch, {
54
- id,
55
- state: "closed"
56
- });
57
- window.setTimeout(() => {
58
- removeNotification(dispatch, id);
59
- }, 150);
60
- },
61
- [dispatch]
62
- );
63
- const handleNotify = useCallback(
64
- (options) => {
65
- const id = `${options.palette}:${state.length + 1}`;
66
- addNotification(dispatch, {
67
- ...options,
68
- id,
69
- state: "open"
70
- });
71
- window.setTimeout(() => {
72
- closeNotification(id);
73
- }, timeout);
74
- },
75
- [dispatch, state, timeout, closeNotification]
76
- );
77
- const handleClose = useCallback(
78
- (e) => {
79
- const target = e.currentTarget;
80
- closeNotification(target.value);
81
- },
82
- [closeNotification]
83
- );
84
- const handleCloseAll = useCallback(() => {
85
- state.forEach((item) => {
86
- if (item.onClose) item.onClose();
87
- });
88
- clearNotificationState(dispatch);
89
- }, [state, dispatch]);
90
- const value = useMemo(
91
- () => ({
92
- notify: handleNotify
93
- }),
94
- [handleNotify]
95
- );
96
- return /* @__PURE__ */ jsxs(NotificationsContext.Provider, { value, children: [
97
- props.children,
98
- /* @__PURE__ */ jsx(Show, { when: state.length > 0, children: /* @__PURE__ */ jsx(Portal, { container: props.container, children: /* @__PURE__ */ jsxs("div", { className: styles.center, children: [
99
- /* @__PURE__ */ jsx(Show, { when: state.length >= 4, children: /* @__PURE__ */ jsx(
100
- Button,
101
- {
102
- className: cx(styles.closeAll, animateIn()),
103
- onClick: handleCloseAll,
104
- palette: "action",
105
- shape: "rounded",
106
- size: "sm",
107
- usage: "ghost",
108
- children: "Close all"
109
- }
110
- ) }),
111
- /* @__PURE__ */ jsx(
112
- "div",
113
- {
114
- className: vstack({
115
- alignItems: "flex-end",
116
- gap: "4"
117
- }),
118
- style: {
119
- alignItems: "flex-end"
120
- },
121
- children: state.map((option) => /* @__PURE__ */ jsx(
122
- MatchNotification,
123
- {
124
- ...option,
125
- onClose: handleClose,
126
- open: option.state
127
- },
128
- option.id
129
- ))
130
- }
131
- )
132
- ] }) }) })
133
- ] });
134
- }
135
- function MatchNotification(props) {
136
- const { palette, id, onClose, heading, description, open } = props;
137
- const sharedProps = useMemo(
138
- () => ({
139
- id,
140
- open: true,
141
- onClose,
142
- "data-state": open
143
- }),
144
- [id, open, onClose]
145
- );
146
- switch (palette) {
147
- case "success":
148
- return /* @__PURE__ */ jsxs(Notification, { ...sharedProps, palette: "success", children: [
149
- /* @__PURE__ */ jsx(NotificationHeading, { palette: "success", children: heading }),
150
- /* @__PURE__ */ jsx(NotificationDescription, { palette: "success", children: description })
151
- ] });
152
- case "warning":
153
- return /* @__PURE__ */ jsxs(Notification, { ...sharedProps, palette: "warning", children: [
154
- /* @__PURE__ */ jsx(NotificationHeading, { palette: "warning", children: heading }),
155
- /* @__PURE__ */ jsx(NotificationDescription, { palette: "warning", children: description })
156
- ] });
157
- case "danger":
158
- return /* @__PURE__ */ jsxs(Notification, { ...sharedProps, palette: "danger", children: [
159
- /* @__PURE__ */ jsx(NotificationHeading, { palette: "danger", children: heading }),
160
- /* @__PURE__ */ jsx(NotificationDescription, { palette: "danger", children: description })
161
- ] });
162
- case "info":
163
- default:
164
- return /* @__PURE__ */ jsxs(Notification, { ...sharedProps, palette: "info", children: [
165
- /* @__PURE__ */ jsx(NotificationHeading, { palette: "info", children: heading }),
166
- /* @__PURE__ */ jsx(NotificationDescription, { palette: "info", children: description })
167
- ] });
168
- }
169
- }
170
- function useNotificationCenter_deprecated() {
171
- const context = useContext(NotificationsContext);
172
- if (!context) {
173
- throw new Error(
174
- "useNotificationCenter must be used within a NotificationsProvider"
175
- );
176
- }
177
- return context;
178
- }
179
- export {
180
- NotificationCenter_deprecated,
181
- useNotificationCenter_deprecated
182
- };
183
- //# sourceMappingURL=notification-center.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/context/notification-center.tsx"],"sourcesContent":["'use client'\n\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useReducer,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n} from 'react'\nimport { animateIn, vstack } from '@cerberus/styled-system/patterns'\nimport { notification } from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport { Show } from '../components/Show'\nimport { NotificationHeading } from '../components/deprecated/NotificationHeading'\nimport { NotificationDescription } from '../components/deprecated/NotificationDescription'\nimport { Notification } from '../components/deprecated/Notification'\nimport { Portal, type PortalProps } from '../components/Portal'\nimport { Button } from '../components/button/button'\nimport {\n addNotification,\n clearNotificationState,\n notificationCenterReducer,\n removeNotification,\n updateNotificationState,\n} from './notification-center/store'\n\n/**\n * This module provides a context and hook for notifications.\n * @module\n */\n\nexport interface NotifyOptions {\n /**\n * The palette of the notification.\n * @default 'info'\n */\n palette: 'info' | 'success' | 'warning' | 'danger'\n /**\n * The heading of the notification.\n */\n heading: string\n /**\n * The unique id of the notification.\n */\n id?: string\n /**\n * The description of the notification.\n */\n description?: ReactNode\n /**\n * The action to take when the notification is closed\n */\n onClose?: () => void\n}\n\nexport interface NotificationsValue {\n notify: (options: NotifyOptions) => void\n}\n\nconst NotificationsContext = createContext<NotificationsValue | null>(null)\n\nexport type NotificationsProviderProps = PortalProps & {\n /**\n * The duration in milliseconds to show the notification.\n * @default 6000\n */\n duration?: number\n}\n\n/**\n * @deprecated\n */\nexport function NotificationCenter_deprecated(\n props: PropsWithChildren<NotificationsProviderProps>,\n) {\n const [state, dispatch] = useReducer(notificationCenterReducer, [])\n const styles = notification()\n\n const timeout = useMemo<number>(\n () => props.duration || 6000,\n [props.duration],\n )\n\n const closeNotification = useCallback(\n (id: string) => {\n updateNotificationState(dispatch, {\n id,\n state: 'closed',\n })\n window.setTimeout(() => {\n removeNotification(dispatch, id)\n }, 150)\n },\n [dispatch],\n )\n\n const handleNotify = useCallback(\n (options: NotifyOptions) => {\n const id = `${options.palette}:${state.length + 1}`\n addNotification(dispatch, {\n ...options,\n id,\n state: 'open',\n })\n\n window.setTimeout(() => {\n closeNotification(id)\n }, timeout)\n },\n [dispatch, state, timeout, closeNotification],\n )\n\n const handleClose = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => {\n const target = e.currentTarget as HTMLButtonElement\n closeNotification(target.value)\n },\n [closeNotification],\n )\n\n const handleCloseAll = useCallback(() => {\n state.forEach((item) => {\n if (item.onClose) item.onClose()\n })\n // we don't want to animate out for this one\n clearNotificationState(dispatch)\n }, [state, dispatch])\n\n const value = useMemo(\n () => ({\n notify: handleNotify,\n }),\n [handleNotify],\n )\n\n // For some reason, the vstack pattern alignItems is not registering here.\n // So we are forcing it with the style prop.\n\n return (\n <NotificationsContext.Provider value={value}>\n {props.children}\n\n <Show when={state.length > 0}>\n <Portal container={props.container}>\n <div className={styles.center}>\n <Show when={state.length >= 4}>\n <Button\n className={cx(styles.closeAll, animateIn())}\n onClick={handleCloseAll}\n palette=\"action\"\n shape=\"rounded\"\n size=\"sm\"\n usage=\"ghost\"\n >\n Close all\n </Button>\n </Show>\n\n <div\n className={vstack({\n alignItems: 'flex-end',\n gap: '4',\n })}\n style={{\n alignItems: 'flex-end',\n }}\n >\n {state.map((option) => (\n <MatchNotification\n key={option.id}\n {...option}\n onClose={handleClose}\n open={option.state}\n />\n ))}\n </div>\n </div>\n </Portal>\n </Show>\n </NotificationsContext.Provider>\n )\n}\n\ninterface MatchNotificationProps extends Omit<NotifyOptions, 'onClose'> {\n open: 'open' | 'closed'\n onClose: (e: MouseEvent<HTMLButtonElement>) => void\n key: string | undefined\n}\n\nfunction MatchNotification(props: MatchNotificationProps) {\n const { palette, id, onClose, heading, description, open } = props\n const sharedProps = useMemo(\n () => ({\n id: id!,\n open: true,\n onClose,\n 'data-state': open,\n }),\n [id, open, onClose],\n )\n\n switch (palette) {\n case 'success':\n return (\n <Notification {...sharedProps} palette=\"success\">\n <NotificationHeading palette=\"success\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"success\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n\n case 'warning':\n return (\n <Notification {...sharedProps} palette=\"warning\">\n <NotificationHeading palette=\"warning\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"warning\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n\n case 'danger':\n return (\n <Notification {...sharedProps} palette=\"danger\">\n <NotificationHeading palette=\"danger\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"danger\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n\n case 'info':\n default:\n return (\n <Notification {...sharedProps} palette=\"info\">\n <NotificationHeading palette=\"info\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"info\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n }\n}\n\nexport function useNotificationCenter_deprecated(): NotificationsValue {\n const context = useContext(NotificationsContext)\n if (!context) {\n throw new Error(\n 'useNotificationCenter must be used within a NotificationsProvider',\n )\n }\n return context\n}\n"],"mappings":"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","names":[]}