@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 +1 @@
1
- {"version":3,"sources":["../../../../src/components/dialog/dialog.tsx","../../../../src/components/Portal.tsx","../../../../src/components/dialog/primitives.tsx"],"sourcesContent":["import type { DialogContentProps } from '@ark-ui/react/dialog'\nimport type { DialogVariantProps } from '@cerberus/styled-system/recipes'\nimport { Portal } from '../Portal'\nimport { DialogBackdrop, DialogContent, DialogPositioner } from './primitives'\n\n/**\n * This module contains and abstraction of the Dialog primitives.\n * @module 'dialog'\n */\n\nexport interface DialogProps\n extends Omit<DialogContentProps, 'size'>,\n DialogVariantProps {}\n\n/**\n * An abstraction of the Dialog primitives that controls the content of the\n * dialog. Must be used within the `DialogProvider` component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @definition [Ark Dialog docs](https://ark-ui.com/react/docs/components/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <Text>Dialog Content</Text>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function Dialog(props: DialogProps) {\n return (\n <Portal>\n <DialogBackdrop />\n <DialogPositioner>\n <DialogContent {...props} />\n </DialogPositioner>\n </Portal>\n )\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n dialog,\n type DialogVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;;;ACAA,mBAGO;AA2BA,IAAM,SAAS,aAAAC;;;AC9BtB,oBASO;AACP,iBAAmB;AACnB,qBAGO;AAWE;AAmBF,SAAS,eAAe,OAA4B;AACzD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,UAAU,MAAM,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,iBAAiB,OAA8B;AAC7D,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,YAAY,MAAM,SAAS;AAAA;AAAA,EAClD;AAEJ;AAKO,SAAS,cAAc,OAAgD;AAC5E,QAAM,EAAE,MAAM,GAAG,aAAa,IAAI;AAClC,QAAM,aAAS,uBAAO,EAAE,KAAK,CAAC;AAC9B,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,aAAa,SAAS;AAAA;AAAA,EACtD;AAEJ;;;AF9CI,IAAAC,sBAAA;AAFG,SAASC,QAAO,OAAoB;AACzC,SACE,8CAAC,UACC;AAAA,iDAAC,kBAAe;AAAA,IAChB,6CAAC,oBACC,uDAAC,iBAAe,GAAG,OAAO,GAC5B;AAAA,KACF;AAEJ;","names":["Dialog","ArkPortal","import_jsx_runtime","Dialog"]}
1
+ {"version":3,"sources":["../../../../src/components/dialog/dialog.tsx","../../../../src/components/Portal.tsx","../../../../src/components/dialog/primitives.tsx"],"sourcesContent":["import type { DialogContentProps } from '@ark-ui/react/dialog'\nimport type { DialogVariantProps } from 'styled-system/recipes'\nimport { Portal } from '../Portal'\nimport { DialogBackdrop, DialogContent, DialogPositioner } from './primitives'\n\n/**\n * This module contains and abstraction of the Dialog primitives.\n * @module 'dialog'\n */\n\nexport interface DialogProps\n extends Omit<DialogContentProps, 'size'>,\n DialogVariantProps {}\n\n/**\n * An abstraction of the Dialog primitives that controls the content of the\n * dialog. Must be used within the `DialogProvider` component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @definition [Ark Dialog docs](https://ark-ui.com/react/docs/components/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <Text>Dialog Content</Text>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function Dialog(props: DialogProps) {\n return (\n <Portal>\n <DialogBackdrop />\n <DialogPositioner>\n <DialogContent {...props} />\n </DialogPositioner>\n </Portal>\n )\n}\n","import { Portal as ArkPortal, type PortalProps } from '@ark-ui/react'\nimport type { PropsWithChildren } from 'react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type { PortalProps }\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport function Portal(props: PropsWithChildren<PortalProps>) {\n return <ArkPortal {...props} />\n}\n","import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from 'styled-system/css'\nimport { dialog, type DialogVariantProps } from 'styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;;;ACAA,mBAAsD;AA6B7C;AADF,SAAS,OAAO,OAAuC;AAC5D,SAAO,4CAAC,aAAAC,QAAA,EAAW,GAAG,OAAO;AAC/B;;;AC9BA,oBASO;AACP,iBAAmB;AACnB,qBAAgD;AAWvC,IAAAC,sBAAA;AAmBF,SAAS,eAAe,OAA4B;AACzD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,UAAU,MAAM,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,iBAAiB,OAA8B;AAC7D,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,YAAY,MAAM,SAAS;AAAA;AAAA,EAClD;AAEJ;AAKO,SAAS,cAAc,OAAgD;AAC5E,QAAM,EAAE,MAAM,GAAG,aAAa,IAAI;AAClC,QAAM,aAAS,uBAAO,EAAE,KAAK,CAAC;AAC9B,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,aAAa,SAAS;AAAA;AAAA,EACtD;AAEJ;;;AF3CI,IAAAC,sBAAA;AAFG,SAASC,QAAO,OAAoB;AACzC,SACE,8CAAC,UACC;AAAA,iDAAC,kBAAe;AAAA,IAChB,6CAAC,oBACC,uDAAC,iBAAe,GAAG,OAAO,GAC5B;AAAA,KACF;AAEJ;","names":["Dialog","ArkPortal","import_jsx_runtime","import_jsx_runtime","Dialog"]}
@@ -37,8 +37,8 @@ module.exports = __toCommonJS(dialog_exports);
37
37
 
38
38
  // src/components/dialog/primitives.tsx
39
39
  var import_dialog = require("@ark-ui/react/dialog");
40
- var import_css = require("@cerberus/styled-system/css");
41
- var import_recipes = require("@cerberus/styled-system/recipes");
40
+ var import_css = require("styled-system/css");
41
+ var import_recipes = require("styled-system/recipes");
42
42
  var import_jsx_runtime = require("react/jsx-runtime");
43
43
  function DialogRoot(props) {
44
44
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Root, { ...props });
@@ -129,8 +129,8 @@ function useCerberusContext() {
129
129
 
130
130
  // src/components/IconButton.tsx
131
131
  var import_factory = require("@ark-ui/react/factory");
132
- var import_css2 = require("@cerberus/styled-system/css");
133
- var import_recipes2 = require("@cerberus/styled-system/recipes");
132
+ var import_css2 = require("styled-system/css");
133
+ var import_recipes2 = require("styled-system/recipes");
134
134
  var import_jsx_runtime3 = require("react/jsx-runtime");
135
135
  function IconButton(props) {
136
136
  const { ariaLabel, palette, usage, size, ...nativeProps } = props;
@@ -152,8 +152,8 @@ function IconButton(props) {
152
152
  }
153
153
 
154
154
  // src/components/dialog/close-icon-trigger.tsx
155
- var import_recipes3 = require("@cerberus/styled-system/recipes");
156
- var import_css3 = require("@cerberus/styled-system/css");
155
+ var import_recipes3 = require("styled-system/recipes");
156
+ var import_css3 = require("styled-system/css");
157
157
  var import_jsx_runtime4 = require("react/jsx-runtime");
158
158
  function DialogCloseIconTrigger(props) {
159
159
  const styles = (0, import_recipes3.dialog)();
@@ -181,14 +181,17 @@ function DialogCloseIconTrigger(props) {
181
181
 
182
182
  // src/components/Portal.tsx
183
183
  var import_react2 = require("@ark-ui/react");
184
- var Portal = import_react2.Portal;
184
+ var import_jsx_runtime5 = require("react/jsx-runtime");
185
+ function Portal(props) {
186
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react2.Portal, { ...props });
187
+ }
185
188
 
186
189
  // src/components/dialog/dialog.tsx
187
- var import_jsx_runtime5 = require("react/jsx-runtime");
190
+ var import_jsx_runtime6 = require("react/jsx-runtime");
188
191
  function Dialog2(props) {
189
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Portal, { children: [
190
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogBackdrop, {}),
191
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogContent, { ...props }) })
192
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Portal, { children: [
193
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogBackdrop, {}),
194
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContent, { ...props }) })
192
195
  ] });
193
196
  }
194
197
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/dialog/index.ts","../../../../src/components/dialog/primitives.tsx","../../../../src/components/dialog/parts.ts","../../../../src/context/cerberus.tsx","../../../../src/components/IconButton.tsx","../../../../src/components/dialog/close-icon-trigger.tsx","../../../../src/components/Portal.tsx","../../../../src/components/dialog/dialog.tsx"],"sourcesContent":["export * from './parts'\nexport * from './primitives'\nexport * from './close-icon-trigger'\nexport * from './dialog'\n","import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n dialog,\n type DialogVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n","import type { ElementType } from 'react'\nimport {\n DialogBackdrop,\n DialogCloseTrigger,\n DialogContent,\n DialogDescription,\n DialogHeading,\n DialogPositioner,\n DialogRoot,\n DialogTrigger,\n} from './primitives'\n\n/**\n * This module contains the parts of the Dialog component.\n * @module 'dialog/parts'\n */\n\ninterface DialogPartsValue {\n /**\n * The context provider of the dialog.\n */\n Root: ElementType\n /**\n * The trigger that opens the dialog.\n */\n Trigger: ElementType\n /**\n * The overlay of the dialog.\n */\n Backdrop: ElementType\n /**\n * The container that positions the dialog.\n */\n Positioner: ElementType\n /**\n * The visible content of the dialog.\n */\n Content: ElementType\n /**\n * The heading of the dialog.\n */\n Heading: ElementType\n /**\n * The description of the dialog.\n */\n Description: ElementType\n /**\n * The trigger that closes the dialog.\n */\n CloseTrigger: ElementType\n}\n\n/**\n * An Object containing the parts of the dialog component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the DialogParts object and\n * the entire family of components vs. only what you use.\n */\nexport const DialogParts: DialogPartsValue = {\n Root: DialogRoot,\n Trigger: DialogTrigger,\n Backdrop: DialogBackdrop,\n Positioner: DialogPositioner,\n Content: DialogContent,\n Heading: DialogHeading,\n Description: DialogDescription,\n CloseTrigger: DialogCloseTrigger,\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","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","'use client'\n\nimport { type DialogCloseTriggerProps } from '@ark-ui/react/dialog'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { IconButton } from '../IconButton'\nimport { DialogCloseTrigger } from './primitives'\nimport { dialog } from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\n\n/**\n * This module contains the close trigger for the dialog.\n * @module react/dialog\n */\n\nexport function DialogCloseIconTrigger(props: DialogCloseTriggerProps) {\n const styles = dialog()\n\n const { icons } = useCerberusContext()\n const { close: CloseIcon } = icons\n\n return (\n <DialogCloseTrigger\n {...props}\n className={cx(styles.closeTrigger, props.className)}\n asChild\n >\n <IconButton\n ariaLabel=\"Close dialog\"\n palette=\"action\"\n size=\"lg\"\n usage=\"ghost\"\n >\n <CloseIcon />\n </IconButton>\n </DialogCloseTrigger>\n )\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","import type { DialogContentProps } from '@ark-ui/react/dialog'\nimport type { DialogVariantProps } from '@cerberus/styled-system/recipes'\nimport { Portal } from '../Portal'\nimport { DialogBackdrop, DialogContent, DialogPositioner } from './primitives'\n\n/**\n * This module contains and abstraction of the Dialog primitives.\n * @module 'dialog'\n */\n\nexport interface DialogProps\n extends Omit<DialogContentProps, 'size'>,\n DialogVariantProps {}\n\n/**\n * An abstraction of the Dialog primitives that controls the content of the\n * dialog. Must be used within the `DialogProvider` component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @definition [Ark Dialog docs](https://ark-ui.com/react/docs/components/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <Text>Dialog Content</Text>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function Dialog(props: DialogProps) {\n return (\n <Portal>\n <DialogBackdrop />\n <DialogPositioner>\n <DialogContent {...props} />\n </DialogPositioner>\n </Portal>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBASO;AACP,iBAAmB;AACnB,qBAGO;AAWE;AADF,SAAS,WAAW,OAAwB;AACjD,SAAO,4CAAC,qBAAO,MAAP,EAAa,GAAG,OAAO;AACjC;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,uBAAO;AACtB,SAC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,IAAM,SAAS,cAAAC;;;ACGlB,IAAAC,sBAAA;AAFG,SAASC,QAAO,OAAoB;AACzC,SACE,8CAAC,UACC;AAAA,iDAAC,kBAAe;AAAA,IAChB,6CAAC,oBACC,uDAAC,iBAAe,GAAG,OAAO,GAC5B;AAAA,KACF;AAEJ;","names":["Dialog","import_jsx_runtime","import_css","import_recipes","import_jsx_runtime","import_recipes","import_css","import_jsx_runtime","import_react","ArkPortal","import_jsx_runtime","Dialog"]}
1
+ {"version":3,"sources":["../../../../src/components/dialog/index.ts","../../../../src/components/dialog/primitives.tsx","../../../../src/components/dialog/parts.ts","../../../../src/context/cerberus.tsx","../../../../src/components/IconButton.tsx","../../../../src/components/dialog/close-icon-trigger.tsx","../../../../src/components/Portal.tsx","../../../../src/components/dialog/dialog.tsx"],"sourcesContent":["export * from './parts'\nexport * from './primitives'\nexport * from './close-icon-trigger'\nexport * from './dialog'\n","import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from 'styled-system/css'\nimport { dialog, type DialogVariantProps } from 'styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n","import type { ElementType } from 'react'\nimport {\n DialogBackdrop,\n DialogCloseTrigger,\n DialogContent,\n DialogDescription,\n DialogHeading,\n DialogPositioner,\n DialogRoot,\n DialogTrigger,\n} from './primitives'\n\n/**\n * This module contains the parts of the Dialog component.\n * @module 'dialog/parts'\n */\n\ninterface DialogPartsValue {\n /**\n * The context provider of the dialog.\n */\n Root: ElementType\n /**\n * The trigger that opens the dialog.\n */\n Trigger: ElementType\n /**\n * The overlay of the dialog.\n */\n Backdrop: ElementType\n /**\n * The container that positions the dialog.\n */\n Positioner: ElementType\n /**\n * The visible content of the dialog.\n */\n Content: ElementType\n /**\n * The heading of the dialog.\n */\n Heading: ElementType\n /**\n * The description of the dialog.\n */\n Description: ElementType\n /**\n * The trigger that closes the dialog.\n */\n CloseTrigger: ElementType\n}\n\n/**\n * An Object containing the parts of the dialog component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the DialogParts object and\n * the entire family of components vs. only what you use.\n */\nexport const DialogParts: DialogPartsValue = {\n Root: DialogRoot,\n Trigger: DialogTrigger,\n Backdrop: DialogBackdrop,\n Positioner: DialogPositioner,\n Content: DialogContent,\n Heading: DialogHeading,\n Description: DialogDescription,\n CloseTrigger: DialogCloseTrigger,\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","import { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport { cx } from 'styled-system/css'\nimport { iconButton, type IconButtonVariantProps } from '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) {\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","'use client'\n\nimport { type DialogCloseTriggerProps } from '@ark-ui/react/dialog'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { IconButton } from '../IconButton'\nimport { DialogCloseTrigger } from './primitives'\nimport { dialog } from 'styled-system/recipes'\nimport { cx } from 'styled-system/css'\n\n/**\n * This module contains the close trigger for the dialog.\n * @module react/dialog\n */\n\nexport function DialogCloseIconTrigger(props: DialogCloseTriggerProps) {\n const styles = dialog()\n\n const { icons } = useCerberusContext()\n const { close: CloseIcon } = icons\n\n return (\n <DialogCloseTrigger\n {...props}\n className={cx(styles.closeTrigger, props.className)}\n asChild\n >\n <IconButton\n ariaLabel=\"Close dialog\"\n palette=\"action\"\n size=\"lg\"\n usage=\"ghost\"\n >\n <CloseIcon />\n </IconButton>\n </DialogCloseTrigger>\n )\n}\n","import { Portal as ArkPortal, type PortalProps } from '@ark-ui/react'\nimport type { PropsWithChildren } from 'react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type { PortalProps }\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport function Portal(props: PropsWithChildren<PortalProps>) {\n return <ArkPortal {...props} />\n}\n","import type { DialogContentProps } from '@ark-ui/react/dialog'\nimport type { DialogVariantProps } from 'styled-system/recipes'\nimport { Portal } from '../Portal'\nimport { DialogBackdrop, DialogContent, DialogPositioner } from './primitives'\n\n/**\n * This module contains and abstraction of the Dialog primitives.\n * @module 'dialog'\n */\n\nexport interface DialogProps\n extends Omit<DialogContentProps, 'size'>,\n DialogVariantProps {}\n\n/**\n * An abstraction of the Dialog primitives that controls the content of the\n * dialog. Must be used within the `DialogProvider` component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @definition [Ark Dialog docs](https://ark-ui.com/react/docs/components/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <Text>Dialog Content</Text>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function Dialog(props: DialogProps) {\n return (\n <Portal>\n <DialogBackdrop />\n <DialogPositioner>\n <DialogContent {...props} />\n </DialogPositioner>\n </Portal>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBASO;AACP,iBAAmB;AACnB,qBAAgD;AAWvC;AADF,SAAS,WAAW,OAAwB;AACjD,SAAO,4CAAC,qBAAO,MAAP,EAAa,GAAG,OAAO;AACjC;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,MAAM,SAAS;AAAA;AAAA,EAC/C;AAEJ;AAKO,SAAS,eAAe,OAA4B;AACzD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,UAAU,MAAM,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,iBAAiB,OAA8B;AAC7D,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,YAAY,MAAM,SAAS;AAAA;AAAA,EAClD;AAEJ;AAKO,SAAS,cAAc,OAAgD;AAC5E,QAAM,EAAE,MAAM,GAAG,aAAa,IAAI;AAClC,Q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,MACJ,cAAY,aAAa;AAAA,MACzB,eAAW;AAAA,QACT,YAAY;AAAA,YACZ,4BAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;;;AC/BA,IAAAC,kBAAuB;AACvB,IAAAC,cAAmB;AAyBX,IAAAC,sBAAA;AAlBD,SAAS,uBAAuB,OAAgC;AACrE,QAAM,aAAS,wBAAO;AAEtB,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,OAAO,UAAU,IAAI;AAE7B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,gBAAG,OAAO,cAAc,MAAM,SAAS;AAAA,MAClD,SAAO;AAAA,MAEP;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,OAAM;AAAA,UAEN,uDAAC,aAAU;AAAA;AAAA,MACb;AAAA;AAAA,EACF;AAEJ;;;ACpCA,IAAAC,gBAAsD;AA6B7C,IAAAC,sBAAA;AADF,SAAS,OAAO,OAAuC;AAC5D,SAAO,6CAAC,cAAAC,QAAA,EAAW,GAAG,OAAO;AAC/B;;;ACGI,IAAAC,sBAAA;AAFG,SAASC,QAAO,OAAoB;AACzC,SACE,8CAAC,UACC;AAAA,iDAAC,kBAAe;AAAA,IAChB,6CAAC,oBACC,uDAAC,iBAAe,GAAG,OAAO,GAC5B;AAAA,KACF;AAEJ;","names":["Dialog","import_jsx_runtime","import_css","import_recipes","import_jsx_runtime","import_recipes","import_css","import_jsx_runtime","import_react","import_jsx_runtime","ArkPortal","import_jsx_runtime","Dialog"]}
@@ -26,8 +26,8 @@ module.exports = __toCommonJS(parts_exports);
26
26
 
27
27
  // src/components/dialog/primitives.tsx
28
28
  var import_dialog = require("@ark-ui/react/dialog");
29
- var import_css = require("@cerberus/styled-system/css");
30
- var import_recipes = require("@cerberus/styled-system/recipes");
29
+ var import_css = require("styled-system/css");
30
+ var import_recipes = require("styled-system/recipes");
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
32
  function DialogRoot(props) {
33
33
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Root, { ...props });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/dialog/parts.ts","../../../../src/components/dialog/primitives.tsx"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n DialogBackdrop,\n DialogCloseTrigger,\n DialogContent,\n DialogDescription,\n DialogHeading,\n DialogPositioner,\n DialogRoot,\n DialogTrigger,\n} from './primitives'\n\n/**\n * This module contains the parts of the Dialog component.\n * @module 'dialog/parts'\n */\n\ninterface DialogPartsValue {\n /**\n * The context provider of the dialog.\n */\n Root: ElementType\n /**\n * The trigger that opens the dialog.\n */\n Trigger: ElementType\n /**\n * The overlay of the dialog.\n */\n Backdrop: ElementType\n /**\n * The container that positions the dialog.\n */\n Positioner: ElementType\n /**\n * The visible content of the dialog.\n */\n Content: ElementType\n /**\n * The heading of the dialog.\n */\n Heading: ElementType\n /**\n * The description of the dialog.\n */\n Description: ElementType\n /**\n * The trigger that closes the dialog.\n */\n CloseTrigger: ElementType\n}\n\n/**\n * An Object containing the parts of the dialog component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the DialogParts object and\n * the entire family of components vs. only what you use.\n */\nexport const DialogParts: DialogPartsValue = {\n Root: DialogRoot,\n Trigger: DialogTrigger,\n Backdrop: DialogBackdrop,\n Positioner: DialogPositioner,\n Content: DialogContent,\n Heading: DialogHeading,\n Description: DialogDescription,\n CloseTrigger: DialogCloseTrigger,\n}\n","import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n dialog,\n type DialogVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBASO;AACP,iBAAmB;AACnB,qBAGO;AAWE;AADF,SAAS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;AAC5D,SAAO,4CAAC,qBAAO,cAAP,EAAqB,GAAG,OAAO;AACzC;;;ADhDO,IAAM,cAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAChB;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/dialog/parts.ts","../../../../src/components/dialog/primitives.tsx"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n DialogBackdrop,\n DialogCloseTrigger,\n DialogContent,\n DialogDescription,\n DialogHeading,\n DialogPositioner,\n DialogRoot,\n DialogTrigger,\n} from './primitives'\n\n/**\n * This module contains the parts of the Dialog component.\n * @module 'dialog/parts'\n */\n\ninterface DialogPartsValue {\n /**\n * The context provider of the dialog.\n */\n Root: ElementType\n /**\n * The trigger that opens the dialog.\n */\n Trigger: ElementType\n /**\n * The overlay of the dialog.\n */\n Backdrop: ElementType\n /**\n * The container that positions the dialog.\n */\n Positioner: ElementType\n /**\n * The visible content of the dialog.\n */\n Content: ElementType\n /**\n * The heading of the dialog.\n */\n Heading: ElementType\n /**\n * The description of the dialog.\n */\n Description: ElementType\n /**\n * The trigger that closes the dialog.\n */\n CloseTrigger: ElementType\n}\n\n/**\n * An Object containing the parts of the dialog component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the DialogParts object and\n * the entire family of components vs. only what you use.\n */\nexport const DialogParts: DialogPartsValue = {\n Root: DialogRoot,\n Trigger: DialogTrigger,\n Backdrop: DialogBackdrop,\n Positioner: DialogPositioner,\n Content: DialogContent,\n Heading: DialogHeading,\n Description: DialogDescription,\n CloseTrigger: DialogCloseTrigger,\n}\n","import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from 'styled-system/css'\nimport { dialog, type DialogVariantProps } from 'styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBASO;AACP,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EACnD;AAEJ;AAKO,SAAS,mBAAmB,OAA2B;AAC5D,SAAO,4CAAC,qBAAO,cAAP,EAAqB,GAAG,OAAO;AACzC;;;AD7CO,IAAM,cAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAChB;","names":[]}
@@ -32,8 +32,8 @@ __export(primitives_exports, {
32
32
  });
33
33
  module.exports = __toCommonJS(primitives_exports);
34
34
  var import_dialog = require("@ark-ui/react/dialog");
35
- var import_css = require("@cerberus/styled-system/css");
36
- var import_recipes = require("@cerberus/styled-system/recipes");
35
+ var import_css = require("styled-system/css");
36
+ var import_recipes = require("styled-system/recipes");
37
37
  var import_jsx_runtime = require("react/jsx-runtime");
38
38
  function DialogRoot(props) {
39
39
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Root, { ...props });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/dialog/primitives.tsx"],"sourcesContent":["import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n dialog,\n type DialogVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBASO;AACP,iBAAmB;AACnB,qBAGO;AAWE;AADF,SAAS,WAAW,OAAwB;AACjD,SAAO,4CAAC,qBAAO,MAAP,EAAa,GAAG,OAAO;AACjC;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,MAAM,SAAS;AAAA;AAAA,EAC/C;AAEJ;AAKO,SAAS,eAAe,OAA4B;AACzD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,UAAU,MAAM,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,iBAAiB,OAA8B;AAC7D,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,YAAY,MAAM,SAAS;AAAA;AAAA,EAClD;AAEJ;AAKO,SAAS,cAAc,OAAgD;AAC5E,QAAM,EAAE,MAAM,GAAG,aAAa,IAAI;AAClC,QAAM,aAAS,uBAAO,EAAE,KAAK,CAAC;AAC9B,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,aAAa,SAAS;AAAA;AAAA,EACtD;AAEJ;AAKO,SAAS,cAAc,OAAyB;AACrD,QAAM,aAAS,uBAAO;AACtB,SACE,4CAAC,qBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,SAAS,kBAAkB,OAA+B;AAC/D,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,aAAa,MAAM,SAAS;AAAA;AAAA,EACnD;AAEJ;AAKO,SAAS,mBAAmB,OAA2B;AAC5D,SAAO,4CAAC,qBAAO,cAAP,EAAqB,GAAG,OAAO;AACzC;AAMO,IAAM,iBAAiB;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/dialog/primitives.tsx"],"sourcesContent":["import {\n Dialog,\n type DialogBackdropProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogPositionerProps,\n type DialogRootProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n} from '@ark-ui/react/dialog'\nimport { cx } from 'styled-system/css'\nimport { dialog, type DialogVariantProps } from 'styled-system/recipes'\n\n/**\n * This module contains the primitives of the Dialog component.\n * @module 'dialog/primitives'\n */\n\n/**\n * The provider that controls the dialog components.\n */\nexport function DialogRoot(props: DialogRootProps) {\n return <Dialog.Root {...props} />\n}\n\n/**\n * The trigger that opens the dialog.\n */\nexport function DialogTrigger(props: DialogTriggerProps) {\n const styles = dialog()\n return (\n <Dialog.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The overlay of the dialog.\n */\nexport function DialogBackdrop(props: DialogBackdropProps) {\n const styles = dialog()\n return (\n <Dialog.Backdrop\n {...props}\n className={cx(styles.backdrop, props.className)}\n />\n )\n}\n\n/**\n * The container that positions the dialog.\n */\nexport function DialogPositioner(props: DialogPositionerProps) {\n const styles = dialog()\n return (\n <Dialog.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The visible content of the dialog.\n */\nexport function DialogContent(props: DialogContentProps & DialogVariantProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Dialog.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The heading of the dialog.\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <Dialog.Title {...props} className={cx(styles.title, props.className)} />\n )\n}\n\n/**\n * The description of the dialog.\n */\nexport function DialogDescription(props: DialogDescriptionProps) {\n const styles = dialog()\n return (\n <Dialog.Description\n {...props}\n className={cx(styles.description, props.className)}\n />\n )\n}\n\n/**\n * The trigger that closes the dialog.\n */\nexport function DialogCloseTrigger(props: DialogTriggerProps) {\n return <Dialog.CloseTrigger {...props} />\n}\n\n/**\n * The provider that controls the dialog components. This is a named export of\n * the DialogRoot primitive.\n */\nexport const DialogProvider = DialogRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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MAAM,SAAS;AAAA;AAAA,EACnD;AAEJ;AAKO,SAAS,mBAAmB,OAA2B;AAC5D,SAAO,4CAAC,qBAAO,cAAP,EAAqB,GAAG,OAAO;AACzC;AAMO,IAAM,iBAAiB;","names":[]}
@@ -46,8 +46,8 @@ function splitProps(props, ...keyGroups) {
46
46
 
47
47
  // src/components/field/primitives.tsx
48
48
  var import_field = require("@ark-ui/react/field");
49
- var import_css = require("@cerberus/styled-system/css");
50
- var import_recipes = require("@cerberus/styled-system/recipes");
49
+ var import_css = require("styled-system/css");
50
+ var import_recipes = require("styled-system/recipes");
51
51
  var import_jsx_runtime = require("react/jsx-runtime");
52
52
  function FieldRoot(props) {
53
53
  const { size, ...fieldProps } = props;
@@ -92,35 +92,37 @@ function FieldErrorText(props) {
92
92
  }
93
93
 
94
94
  // src/components/field/field.tsx
95
- var import_jsx = require("@cerberus/styled-system/jsx");
95
+ var import_jsx = require("styled-system/jsx");
96
96
 
97
97
  // src/components/Show.tsx
98
- var import_react = require("react");
98
+ var import_jsx_runtime2 = require("react/jsx-runtime");
99
99
  function Show(props) {
100
100
  const { when, children, fallback } = props;
101
- const condition = (0, import_react.useMemo)(() => when ?? false, [when]);
102
- return (0, import_react.useMemo)(() => {
103
- if (condition) return children;
104
- return fallback ?? null;
105
- }, [condition, children, fallback]);
101
+ if (when) {
102
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children });
103
+ }
104
+ if (fallback) {
105
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: fallback });
106
+ }
107
+ return null;
106
108
  }
107
109
 
108
110
  // src/components/field/field.tsx
109
- var import_jsx_runtime2 = require("react/jsx-runtime");
111
+ var import_jsx_runtime3 = require("react/jsx-runtime");
110
112
  function Field2(props) {
111
113
  const [statusProps, fieldProps, rootProps] = splitProps(
112
114
  props,
113
115
  ["disabled", "required", "readOnly", "invalid"],
114
116
  ["label", "helperText", "secondaryHelperText", "errorText", "children"]
115
117
  );
116
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(FieldRoot, { ...statusProps, ...rootProps, children: [
117
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Show, { when: Boolean(fieldProps.label), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(FieldLabel, { children: fieldProps.label }) }),
118
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(FieldRoot, { ...statusProps, ...rootProps, children: [
119
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Show, { when: fieldProps.label, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FieldLabel, { children: fieldProps.label }) }),
118
120
  fieldProps.children,
119
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Show, { when: Boolean(fieldProps.helperText && !statusProps.invalid), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx.HStack, { justifyContent: "space-between", w: "full", children: [
120
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(FieldHelperText, { children: fieldProps.helperText }),
121
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Show, { when: Boolean(fieldProps.secondaryHelperText), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(FieldHelperText, { children: fieldProps.secondaryHelperText }) })
121
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Show, { when: fieldProps.helperText && !statusProps.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx.HStack, { justifyContent: "space-between", w: "full", children: [
122
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FieldHelperText, { children: fieldProps.helperText }),
123
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Show, { when: fieldProps.secondaryHelperText, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FieldHelperText, { children: fieldProps.secondaryHelperText }) })
122
124
  ] }) }),
123
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(FieldErrorText, { children: fieldProps.errorText })
125
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FieldErrorText, { children: fieldProps.errorText })
124
126
  ] });
125
127
  }
126
128
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/field/field.tsx","../../../../src/utils/index.ts","../../../../src/components/field/primitives.tsx","../../../../src/components/Show.tsx"],"sourcesContent":["import { type FieldRootProps } from '@ark-ui/react/field'\nimport { splitProps } from '../../utils/index'\nimport {\n FieldErrorText,\n FieldHelperText,\n FieldLabel,\n FieldRoot,\n} from './primitives'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { Show } from '../Show'\n\nexport interface FieldProps extends FieldRootProps {\n /**\n * The label of the field.\n */\n label?: string\n /**\n * The helper text of the field.\n */\n helperText?: string\n /**\n * A helper text positioned at the end of the field. Good for Textarea fields.\n */\n secondaryHelperText?: string\n /**\n * The error text of the field. Shown when the field is invalid.\n */\n errorText?: string\n}\n\n/**\n * The Field component is the context provider for all FieldParts and displays\n * the label, helperText, and ErrorText.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <Field\n * ids={{\n * control: 'firstName',\n * }}\n * label=\"Label\"\n * helperText=\"This is what people will see on your profile.\"\n * errorText=\"A first name is required to create an account.\"\n * required\n * >\n * <Input name=\"firstName\" type=\"text\" />\n * </Field>\n * ```\n */\nexport function Field(props: FieldProps) {\n const [statusProps, fieldProps, rootProps] = splitProps(\n props,\n ['disabled', 'required', 'readOnly', 'invalid'],\n ['label', 'helperText', 'secondaryHelperText', 'errorText', 'children'],\n )\n\n return (\n <FieldRoot {...statusProps} {...rootProps}>\n <Show when={Boolean(fieldProps.label)}>\n <FieldLabel>{fieldProps.label}</FieldLabel>\n </Show>\n\n {fieldProps.children}\n\n <Show when={Boolean(fieldProps.helperText && !statusProps.invalid)}>\n <HStack justifyContent=\"space-between\" w=\"full\">\n <FieldHelperText>{fieldProps.helperText}</FieldHelperText>\n <Show when={Boolean(fieldProps.secondaryHelperText)}>\n <FieldHelperText>{fieldProps.secondaryHelperText}</FieldHelperText>\n </Show>\n </HStack>\n </Show>\n\n <FieldErrorText>{fieldProps.errorText}</FieldErrorText>\n </FieldRoot>\n )\n}\n","/**\n * This module contains utility functions that are used across your app.\n * @module Utils\n */\n\n/**\n * Formats the count of notifications to be displayed in the notification badge.\n * @param count - The number of notifications.\n * @returns The formatted count of notifications.\n * @example\n * ```tsx\n * const count = formatNotifyCount(100)\n * console.log(count) // '99+'\n * ```\n */\nexport function formatNotifyCount(count: number): string {\n if (count > 99) return '99+'\n return count.toString()\n}\n\n/**\n * Splits the properties of an object into multiple groups based on lists of keys.\n * @param props - The object to split.\n * @param keyGroups - The lists of keys to include in each group.\n * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.\n */\nexport function splitProps<T extends object>(\n props: T,\n ...keyGroups: (keyof T)[][]\n): { [K in keyof T]?: T[K] }[] {\n const result = keyGroups.map(() => ({}) as { [K in keyof T]?: T[K] })\n const rest = {} as { [K in keyof T]?: T[K] }\n\n for (const key in props) {\n let assigned = false\n for (let i = 0; i < keyGroups.length; i++) {\n if (keyGroups[i].includes(key as keyof T)) {\n result[i][key as keyof T] = props[key]\n assigned = true\n break\n }\n }\n if (!assigned) {\n rest[key as keyof T] = props[key]\n }\n }\n\n return [...result, rest]\n}\n\nexport * from './localStorage'\n","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","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,eAAAA;AAAA;AAAA;;;AC0BO,SAAS,WACd,UACG,WAC0B;AAC7B,QAAM,SAAS,UAAU,IAAI,OAAO,CAAC,EAA+B;AACpE,QAAM,OAAO,CAAC;AAEd,aAAW,OAAO,OAAO;AACvB,QAAI,WAAW;AACf,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,UAAI,UAAU,CAAC,EAAE,SAAS,GAAc,GAAG;AACzC,eAAO,CAAC,EAAE,GAAc,IAAI,MAAM,GAAG;AACrC,mBAAW;AACX;AAAA,MACF;AAAA,IACF;AACA,QAAI,CAAC,UAAU;AACb,WAAK,GAAc,IAAI,MAAM,GAAG;AAAA,IAClC;AAAA,EACF;AAEA,SAAO,CAAC,GAAG,QAAQ,IAAI;AACzB;;;AChDA,mBAOO;AAEP,iBAAmB;AACnB,qBAA8C;AA0B1C;AAJG,SAAS,UAAU,OAAuB;AAC/C,QAAM,EAAE,MAAM,GAAG,WAAW,IAAI;AAChC,QAAM,aAAS,sBAAM,EAAE,KAAK,CAAC;AAC7B,SACE;AAAA,IAAC,mBAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,WAAW,SAAS;AAAA;AAAA,EACjD;AAEJ;AAYO,SAAS,WAAW,OAAwB;AACjD,QAAM,EAAE,UAAU,GAAG,YAAY,IAAI;AACrC,QAAM,aAA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cAAY,qBAAW,OAAM,GAChC;AAAA,IAEC,WAAW;AAAA,IAEZ,6CAAC,QAAK,MAAM,QAAQ,WAAW,cAAc,CAAC,YAAY,OAAO,GAC/D,wDAAC,qBAAO,gBAAe,iBAAgB,GAAE,QACvC;AAAA,mDAAC,mBAAiB,qBAAW,YAAW;AAAA,MACxC,6CAAC,QAAK,MAAM,QAAQ,WAAW,mBAAmB,GAChD,uDAAC,mBAAiB,qBAAW,qBAAoB,GACnD;AAAA,OACF,GACF;AAAA,IAEA,6CAAC,kBAAgB,qBAAW,WAAU;AAAA,KACxC;AAEJ;","names":["Field","import_jsx_runtime","Field"]}
1
+ {"version":3,"sources":["../../../../src/components/field/field.tsx","../../../../src/utils/index.ts","../../../../src/components/field/primitives.tsx","../../../../src/components/Show.tsx"],"sourcesContent":["import { type FieldRootProps } from '@ark-ui/react/field'\nimport { splitProps } from '../../utils/index'\nimport {\n FieldErrorText,\n FieldHelperText,\n FieldLabel,\n FieldRoot,\n} from './primitives'\nimport { HStack } from 'styled-system/jsx'\nimport { Show } from '../Show'\n\nexport interface FieldProps extends FieldRootProps {\n /**\n * The label of the field.\n */\n label?: string\n /**\n * The helper text of the field.\n */\n helperText?: string\n /**\n * A helper text positioned at the end of the field. Good for Textarea fields.\n */\n secondaryHelperText?: string\n /**\n * The error text of the field. Shown when the field is invalid.\n */\n errorText?: string\n}\n\n/**\n * The Field component is the context provider for all FieldParts and displays\n * the label, helperText, and ErrorText.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <Field\n * ids={{\n * control: 'firstName',\n * }}\n * label=\"Label\"\n * helperText=\"This is what people will see on your profile.\"\n * errorText=\"A first name is required to create an account.\"\n * required\n * >\n * <Input name=\"firstName\" type=\"text\" />\n * </Field>\n * ```\n */\nexport function Field(props: FieldProps) {\n const [statusProps, fieldProps, rootProps] = splitProps(\n props,\n ['disabled', 'required', 'readOnly', 'invalid'],\n ['label', 'helperText', 'secondaryHelperText', 'errorText', 'children'],\n )\n\n return (\n <FieldRoot {...statusProps} {...rootProps}>\n <Show when={fieldProps.label}>\n <FieldLabel>{fieldProps.label}</FieldLabel>\n </Show>\n\n {fieldProps.children}\n\n <Show when={fieldProps.helperText && !statusProps.invalid}>\n <HStack justifyContent=\"space-between\" w=\"full\">\n <FieldHelperText>{fieldProps.helperText}</FieldHelperText>\n <Show when={fieldProps.secondaryHelperText}>\n <FieldHelperText>{fieldProps.secondaryHelperText}</FieldHelperText>\n </Show>\n </HStack>\n </Show>\n\n <FieldErrorText>{fieldProps.errorText}</FieldErrorText>\n </FieldRoot>\n )\n}\n","/**\n * This module contains utility functions that are used across your app.\n * @module Utils\n */\n\n/**\n * Formats the count of notifications to be displayed in the notification badge.\n * @param count - The number of notifications.\n * @returns The formatted count of notifications.\n * @example\n * ```tsx\n * const count = formatNotifyCount(100)\n * console.log(count) // '99+'\n * ```\n */\nexport function formatNotifyCount(count: number): string {\n if (count > 99) return '99+'\n return count.toString()\n}\n\n/**\n * Splits the properties of an object into multiple groups based on lists of keys.\n * @param props - The object to split.\n * @param keyGroups - The lists of keys to include in each group.\n * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.\n */\nexport function splitProps<T extends object>(\n props: T,\n ...keyGroups: (keyof T)[][]\n): { [K in keyof T]?: T[K] }[] {\n const result = keyGroups.map(() => ({}) as { [K in keyof T]?: T[K] })\n const rest = {} as { [K in keyof T]?: T[K] }\n\n for (const key in props) {\n let assigned = false\n for (let i = 0; i < keyGroups.length; i++) {\n if (keyGroups[i].includes(key as keyof T)) {\n result[i][key as keyof T] = props[key]\n assigned = true\n break\n }\n }\n if (!assigned) {\n rest[key as keyof T] = props[key]\n }\n }\n\n return [...result, rest]\n}\n\nexport * from './localStorage'\n","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 'styled-system/css'\nimport { field, type FieldVariantProps } from '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","import { type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps<T> {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: T | boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show<T>(props: PropsWithChildren<ShowProps<T>>) {\n const { when, children, fallback } = props\n\n if (when) {\n return <>{children}</>\n }\n\n if (fallback) {\n return <>{fallback}</>\n }\n\n return null\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,eAAAA;AAAA;AAAA;;;AC0BO,SAAS,WACd,UACG,WAC0B;AAC7B,QAAM,SAAS,UAAU,IAAI,OAAO,CAAC,EAA+B;AACpE,QAAM,OAAO,CAAC;AAEd,aAAW,OAAO,OAAO;AACvB,QAAI,WAAW;AACf,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,UAAI,UAAU,CAAC,EAAE,SAAS,GAAc,GAAG;AACzC,eAAO,CAAC,EAAE,GAAc,IAAI,MAAM,GAAG;AACrC,mBAAW;AACX;AAAA,MACF;AAAA,IACF;AACA,QAAI,CAAC,UAAU;AACb,WAAK,GAAc,IAAI,MAAM,GAAG;AAAA,IAClC;AAAA,EACF;AAEA,SAAO,CAAC,GAAG,QAAQ,IAAI;AACzB;;;AChDA,mBAOO;AAEP,iBAAmB;AACnB,qBAA8C;AA0B1C;AAJG,SAAS,UAAU,OAAuB;AAC/C,QAAM,EAAE,MAAM,GAAG,WAAW,IAAI;AAChC,QAAM,aAAS,sBAAM,EAAE,KAAK,CAAC;AAC7B,SACE;AAAA,IAAC,mBA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AuB,aAAa,UAAU;AAAA,EACxE;AAEA,SACE,8CAAC,aAAW,GAAG,aAAc,GAAG,WAC9B;AAAA,iDAAC,QAAK,MAAM,WAAW,OACrB,uDAAC,cAAY,qBAAW,OAAM,GAChC;AAAA,IAEC,WAAW;AAAA,IAEZ,6CAAC,QAAK,MAAM,WAAW,cAAc,CAAC,YAAY,SAChD,wDAAC,qBAAO,gBAAe,iBAAgB,GAAE,QACvC;AAAA,mDAAC,mBAAiB,qBAAW,YAAW;AAAA,MACxC,6CAAC,QAAK,MAAM,WAAW,qBACrB,uDAAC,mBAAiB,qBAAW,qBAAoB,GACnD;AAAA,OACF,GACF;AAAA,IAEA,6CAAC,kBAAgB,qBAAW,WAAU;AAAA,KACxC;AAEJ;","names":["Field","import_jsx_runtime","import_jsx_runtime","Field"]}
@@ -58,13 +58,13 @@ function splitProps(props, ...keyGroups) {
58
58
 
59
59
  // src/components/field/primitives.tsx
60
60
  var import_field = require("@ark-ui/react/field");
61
- var import_css3 = require("@cerberus/styled-system/css");
62
- var import_recipes3 = require("@cerberus/styled-system/recipes");
61
+ var import_css3 = require("styled-system/css");
62
+ var import_recipes3 = require("styled-system/recipes");
63
63
 
64
64
  // src/components/field/status-indicator.tsx
65
65
  var import_react2 = require("@ark-ui/react");
66
- var import_css = require("@cerberus/styled-system/css");
67
- var import_recipes = require("@cerberus/styled-system/recipes");
66
+ var import_css = require("styled-system/css");
67
+ var import_recipes = require("styled-system/recipes");
68
68
 
69
69
  // src/context/cerberus.tsx
70
70
  var import_react = require("react");
@@ -111,8 +111,8 @@ function FieldStatusIndicator(props) {
111
111
  }
112
112
 
113
113
  // src/components/field/start-indicator.tsx
114
- var import_css2 = require("@cerberus/styled-system/css");
115
- var import_recipes2 = require("@cerberus/styled-system/recipes");
114
+ var import_css2 = require("styled-system/css");
115
+ var import_recipes2 = require("styled-system/recipes");
116
116
  var import_jsx_runtime3 = require("react/jsx-runtime");
117
117
  function FieldStartIndicator(props) {
118
118
  const styles = (0, import_recipes2.field)();
@@ -204,35 +204,37 @@ var Input = FieldInput;
204
204
  var Textarea = FieldTextarea;
205
205
 
206
206
  // src/components/field/field.tsx
207
- var import_jsx = require("@cerberus/styled-system/jsx");
207
+ var import_jsx = require("styled-system/jsx");
208
208
 
209
209
  // src/components/Show.tsx
210
- var import_react3 = require("react");
210
+ var import_jsx_runtime5 = require("react/jsx-runtime");
211
211
  function Show(props) {
212
212
  const { when, children, fallback } = props;
213
- const condition = (0, import_react3.useMemo)(() => when ?? false, [when]);
214
- return (0, import_react3.useMemo)(() => {
215
- if (condition) return children;
216
- return fallback ?? null;
217
- }, [condition, children, fallback]);
213
+ if (when) {
214
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children });
215
+ }
216
+ if (fallback) {
217
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: fallback });
218
+ }
219
+ return null;
218
220
  }
219
221
 
220
222
  // src/components/field/field.tsx
221
- var import_jsx_runtime5 = require("react/jsx-runtime");
223
+ var import_jsx_runtime6 = require("react/jsx-runtime");
222
224
  function Field2(props) {
223
225
  const [statusProps, fieldProps, rootProps] = splitProps(
224
226
  props,
225
227
  ["disabled", "required", "readOnly", "invalid"],
226
228
  ["label", "helperText", "secondaryHelperText", "errorText", "children"]
227
229
  );
228
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(FieldRoot, { ...statusProps, ...rootProps, children: [
229
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Show, { when: Boolean(fieldProps.label), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FieldLabel, { children: fieldProps.label }) }),
230
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(FieldRoot, { ...statusProps, ...rootProps, children: [
231
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Show, { when: fieldProps.label, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldLabel, { children: fieldProps.label }) }),
230
232
  fieldProps.children,
231
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Show, { when: Boolean(fieldProps.helperText && !statusProps.invalid), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx.HStack, { justifyContent: "space-between", w: "full", children: [
232
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FieldHelperText, { children: fieldProps.helperText }),
233
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Show, { when: Boolean(fieldProps.secondaryHelperText), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FieldHelperText, { children: fieldProps.secondaryHelperText }) })
233
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Show, { when: fieldProps.helperText && !statusProps.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx.HStack, { justifyContent: "space-between", w: "full", children: [
234
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldHelperText, { children: fieldProps.helperText }),
235
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Show, { when: fieldProps.secondaryHelperText, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldHelperText, { children: fieldProps.secondaryHelperText }) })
234
236
  ] }) }),
235
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FieldErrorText, { children: fieldProps.errorText })
237
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldErrorText, { children: fieldProps.errorText })
236
238
  ] });
237
239
  }
238
240
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/field/index.ts","../../../../src/utils/index.ts","../../../../src/components/field/primitives.tsx","../../../../src/components/field/status-indicator.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/field/start-indicator.tsx","../../../../src/components/field/field.tsx","../../../../src/components/Show.tsx","../../../../src/components/field/parts.ts"],"sourcesContent":["export * from './field'\nexport * from './primitives'\nexport * from './start-indicator'\nexport * from './status-indicator'\nexport * from './parts'\n","/**\n * This module contains utility functions that are used across your app.\n * @module Utils\n */\n\n/**\n * Formats the count of notifications to be displayed in the notification badge.\n * @param count - The number of notifications.\n * @returns The formatted count of notifications.\n * @example\n * ```tsx\n * const count = formatNotifyCount(100)\n * console.log(count) // '99+'\n * ```\n */\nexport function formatNotifyCount(count: number): string {\n if (count > 99) return '99+'\n return count.toString()\n}\n\n/**\n * Splits the properties of an object into multiple groups based on lists of keys.\n * @param props - The object to split.\n * @param keyGroups - The lists of keys to include in each group.\n * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.\n */\nexport function splitProps<T extends object>(\n props: T,\n ...keyGroups: (keyof T)[][]\n): { [K in keyof T]?: T[K] }[] {\n const result = keyGroups.map(() => ({}) as { [K in keyof T]?: T[K] })\n const rest = {} as { [K in keyof T]?: T[K] }\n\n for (const key in props) {\n let assigned = false\n for (let i = 0; i < keyGroups.length; i++) {\n if (keyGroups[i].includes(key as keyof T)) {\n result[i][key as keyof T] = props[key]\n assigned = true\n break\n }\n }\n if (!assigned) {\n rest[key as keyof T] = props[key]\n }\n }\n\n return [...result, rest]\n}\n\nexport * from './localStorage'\n","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","'use client'\n\nimport { useFieldContext } from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport { field } from '@cerberus/styled-system/recipes'\nimport { useCerberusContext } from '../../context/cerberus'\nimport type { HTMLAttributes, ReactNode } from 'react'\n\nexport interface FieldStatusIndicatorProps\n extends HTMLAttributes<HTMLSpanElement> {\n /**\n * The fallback content to display when the field is valid.\n */\n fallback?: ReactNode\n}\n\n/**\n * The invalid status indicator for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldStatusIndicator />\n * </FieldRoot>\n * ```\n */\nexport function FieldStatusIndicator(props: FieldStatusIndicatorProps) {\n const { fallback, ...nativeProps } = props\n const styles = field()\n const fieldContext = useFieldContext()\n\n const { icons } = useCerberusContext()\n const { invalid: InvalidIcon } = icons\n\n if (fieldContext.invalid) {\n return (\n <span\n {...nativeProps}\n aria-hidden=\"true\"\n data-invalid\n className={cx(nativeProps.className, styles.statusIndicator)}\n >\n <InvalidIcon />\n </span>\n )\n }\n\n return (\n <span\n {...nativeProps}\n aria-hidden=\"true\"\n data-part=\"end-indicator\"\n className={cx(nativeProps.className, styles.endIndicator)}\n >\n {fallback}\n </span>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","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","import { type FieldRootProps } from '@ark-ui/react/field'\nimport { splitProps } from '../../utils/index'\nimport {\n FieldErrorText,\n FieldHelperText,\n FieldLabel,\n FieldRoot,\n} from './primitives'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { Show } from '../Show'\n\nexport interface FieldProps extends FieldRootProps {\n /**\n * The label of the field.\n */\n label?: string\n /**\n * The helper text of the field.\n */\n helperText?: string\n /**\n * A helper text positioned at the end of the field. Good for Textarea fields.\n */\n secondaryHelperText?: string\n /**\n * The error text of the field. Shown when the field is invalid.\n */\n errorText?: string\n}\n\n/**\n * The Field component is the context provider for all FieldParts and displays\n * the label, helperText, and ErrorText.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <Field\n * ids={{\n * control: 'firstName',\n * }}\n * label=\"Label\"\n * helperText=\"This is what people will see on your profile.\"\n * errorText=\"A first name is required to create an account.\"\n * required\n * >\n * <Input name=\"firstName\" type=\"text\" />\n * </Field>\n * ```\n */\nexport function Field(props: FieldProps) {\n const [statusProps, fieldProps, rootProps] = splitProps(\n props,\n ['disabled', 'required', 'readOnly', 'invalid'],\n ['label', 'helperText', 'secondaryHelperText', 'errorText', 'children'],\n )\n\n return (\n <FieldRoot {...statusProps} {...rootProps}>\n <Show when={Boolean(fieldProps.label)}>\n <FieldLabel>{fieldProps.label}</FieldLabel>\n </Show>\n\n {fieldProps.children}\n\n <Show when={Boolean(fieldProps.helperText && !statusProps.invalid)}>\n <HStack justifyContent=\"space-between\" w=\"full\">\n <FieldHelperText>{fieldProps.helperText}</FieldHelperText>\n <Show when={Boolean(fieldProps.secondaryHelperText)}>\n <FieldHelperText>{fieldProps.secondaryHelperText}</FieldHelperText>\n </Show>\n </HStack>\n </Show>\n\n <FieldErrorText>{fieldProps.errorText}</FieldErrorText>\n </FieldRoot>\n )\n}\n","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n","import type { ElementType } from 'react'\nimport {\n FieldErrorText,\n FieldHelperText,\n FieldInput,\n FieldLabel,\n FieldRequiredIndicator,\n FieldRoot,\n FieldTextarea,\n} from './primitives'\nimport { FieldStatusIndicator } from './status-indicator'\nimport { FieldStartIndicator } from './start-indicator'\n\n/**\n * This module contains the parts of the Field component.\n * @module 'field/parts'\n */\n\ninterface FieldPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The input of the field.\n */\n Input: ElementType\n /**\n * The textarea of the field.\n */\n Textarea: ElementType\n /**\n * The text that displays when the field is valid.\n */\n HelperText: ElementType\n /**\n * The text that displays when the field is invalid.\n */\n ErrorText: ElementType\n /**\n * The indicator that appears at the start of the field.\n */\n StartIndicator: ElementType\n /**\n * The status indicator of the field.\n */\n StatusIndicator: ElementType\n /**\n * The indicator that appears at the end of the field.\n */\n RequiredIndicator: ElementType\n}\n\n/**\n * An Object containing the parts of the Field component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the FieldParts object and\n * the entire family of components vs. only what you use.\n */\nexport const FieldParts: FieldPartsValue = {\n Root: FieldRoot,\n Label: FieldLabel,\n Input: FieldInput,\n Textarea: FieldTextarea,\n HelperText: FieldHelperText,\n ErrorText: FieldErrorText,\n StartIndicator: FieldStartIndicator,\n StatusIndicator: FieldStatusIndicator,\n RequiredIndicator: FieldRequiredIndicator,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,eAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC0BO,SAAS,WACd,UACG,WAC0B;AAC7B,QAAM,SAAS,UAAU,IAAI,OAAO,CAAC,EAA+B;AACpE,QAAM,OAAO,CAAC;AAEd,aAAW,OAAO,OAAO;AACvB,QAAI,WAAW;AACf,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,UAAI,UAAU,CAAC,EAAE,SAAS,GAAc,GAAG;AACzC,eAAO,CAAC,EAAE,GAAc,IAAI,MAAM,GAAG;AACrC,mBAAW;AACX;AAAA,MACF;AAAA,IACF;AACA,QAAI,CAAC,UAAU;AACb,WAAK,GAAc,IAAI,MAAM,GAAG;AAAA,IAClC;AAAA,EACF;AAEA,SAAO,CAAC,GAAG,QAAQ,IAAI;AACzB;;;AChDA,mBAOO;AAEP,IAAAC,cAAmB;AACnB,IAAAC,kBAA8C;;;ACR9C,IAAAC,gBAAgC;AAChC,iBAAmB;AACnB,qBAAsB;;;ACFtB,mBAAkE;AAyB9D;AAfJ,IAAM,sBAAkB,4BAA2C,IAAI;AAyBhE,SAAS,qBAAqB;AACnC,QAAM,cAAU,yBAAW,eAAe;AAC1C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AACA,SAAO;AACT;;;ADDQ,IAAAC,sBAAA;AAhBD,SAAS,qBAAqB,OAAkC;AACrE,QAAM,EAAE,UAAU,GAAG,YAAY,IAAI;AACrC,QAAM,aAAS,sBAAM;AACrB,QAAM,mBAAe,+BAAgB;AAErC,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC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IAAAC,gBAAgE;AA4BzD,SAAS,KAAK,OAAgD;AACnE,QAAM,EAAE,MAAM,UAAU,SAAS,IAAI;AACrC,QAAM,gBAAY,uBAAQ,MAAM,QAAQ,OAAO,CAAC,IAAI,CAAC;AAErD,aAAO,uBAAQ,MAAM;AACnB,QAAI,UAAW,QAAO;AACtB,WAAO,YAAY;AAAA,EACrB,GAAG,CAAC,WAAW,UAAU,QAAQ,CAAC;AACpC;;;ADqBQ,IAAAC,sBAAA;AAVD,SAASC,OAAM,OAAmB;AACvC,QAAM,CAAC,aAAa,YAAY,SAAS,IAAI;AAAA,IAC3C;AAAA,IACA,CAAC,YAAY,YAAY,YAAY,SAAS;AAAA,IAC9C,CAAC,SAAS,cAAc,uBAAuB,aAAa,UAAU;AAAA,EACxE;AAEA,SACE,8CAAC,aAAW,GAAG,aAAc,GAAG,WAC9B;AAAA,iDAAC,QAAK,MAAM,QAAQ,WAAW,KAAK,GAClC,uDAAC,cAAY,qBAAW,OAAM,GAChC;AAAA,IAEC,WAAW;AAAA,IAEZ,6CAAC,QAAK,MAAM,QAAQ,WAAW,cAAc,CAAC,YAAY,OAAO,GAC/D,wDAAC,qBAAO,gBAAe,iBAAgB,GAAE,QACvC;AAAA,mDAAC,mBAAiB,qBAAW,YAAW;AAAA,MACxC,6CAAC,QAAK,MAAM,QAAQ,WAAW,mBAAmB,GAChD,uDAAC,mBAAiB,qBAAW,qBAAoB,GACnD;AAAA,OACF,GACF;AAAA,IAEA,6CAAC,kBAAgB,qBAAW,WAAU;AAAA,KACxC;AAEJ;;;AEVO,IAAM,aAA8B;AAAA,EACzC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,mBAAmB;AACrB;","names":["Field","import_css","import_recipes","import_react","import_jsx_runtime","import_css","import_recipes","import_jsx_runtime","import_jsx_runtime","import_react","import_jsx_runtime","Field"]}
1
+ {"version":3,"sources":["../../../../src/components/field/index.ts","../../../../src/utils/index.ts","../../../../src/components/field/primitives.tsx","../../../../src/components/field/status-indicator.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/field/start-indicator.tsx","../../../../src/components/field/field.tsx","../../../../src/components/Show.tsx","../../../../src/components/field/parts.ts"],"sourcesContent":["export * from './field'\nexport * from './primitives'\nexport * from './start-indicator'\nexport * from './status-indicator'\nexport * from './parts'\n","/**\n * This module contains utility functions that are used across your app.\n * @module Utils\n */\n\n/**\n * Formats the count of notifications to be displayed in the notification badge.\n * @param count - The number of notifications.\n * @returns The formatted count of notifications.\n * @example\n * ```tsx\n * const count = formatNotifyCount(100)\n * console.log(count) // '99+'\n * ```\n */\nexport function formatNotifyCount(count: number): string {\n if (count > 99) return '99+'\n return count.toString()\n}\n\n/**\n * Splits the properties of an object into multiple groups based on lists of keys.\n * @param props - The object to split.\n * @param keyGroups - The lists of keys to include in each group.\n * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.\n */\nexport function splitProps<T extends object>(\n props: T,\n ...keyGroups: (keyof T)[][]\n): { [K in keyof T]?: T[K] }[] {\n const result = keyGroups.map(() => ({}) as { [K in keyof T]?: T[K] })\n const rest = {} as { [K in keyof T]?: T[K] }\n\n for (const key in props) {\n let assigned = false\n for (let i = 0; i < keyGroups.length; i++) {\n if (keyGroups[i].includes(key as keyof T)) {\n result[i][key as keyof T] = props[key]\n assigned = true\n break\n }\n }\n if (!assigned) {\n rest[key as keyof T] = props[key]\n }\n }\n\n return [...result, rest]\n}\n\nexport * from './localStorage'\n","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 'styled-system/css'\nimport { field, type FieldVariantProps } from '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","'use client'\n\nimport { useFieldContext } from '@ark-ui/react'\nimport { cx } from 'styled-system/css'\nimport { field } from 'styled-system/recipes'\nimport { useCerberusContext } from '../../context/cerberus'\nimport type { HTMLAttributes, ReactNode } from 'react'\n\nexport interface FieldStatusIndicatorProps\n extends HTMLAttributes<HTMLSpanElement> {\n /**\n * The fallback content to display when the field is valid.\n */\n fallback?: ReactNode\n}\n\n/**\n * The invalid status indicator for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldStatusIndicator />\n * </FieldRoot>\n * ```\n */\nexport function FieldStatusIndicator(props: FieldStatusIndicatorProps) {\n const { fallback, ...nativeProps } = props\n const styles = field()\n const fieldContext = useFieldContext()\n\n const { icons } = useCerberusContext()\n const { invalid: InvalidIcon } = icons\n\n if (fieldContext.invalid) {\n return (\n <span\n {...nativeProps}\n aria-hidden=\"true\"\n data-invalid\n className={cx(nativeProps.className, styles.statusIndicator)}\n >\n <InvalidIcon />\n </span>\n )\n }\n\n return (\n <span\n {...nativeProps}\n aria-hidden=\"true\"\n data-part=\"end-indicator\"\n className={cx(nativeProps.className, styles.endIndicator)}\n >\n {fallback}\n </span>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","import { cx } from 'styled-system/css'\nimport { field } from '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","import { type FieldRootProps } from '@ark-ui/react/field'\nimport { splitProps } from '../../utils/index'\nimport {\n FieldErrorText,\n FieldHelperText,\n FieldLabel,\n FieldRoot,\n} from './primitives'\nimport { HStack } from 'styled-system/jsx'\nimport { Show } from '../Show'\n\nexport interface FieldProps extends FieldRootProps {\n /**\n * The label of the field.\n */\n label?: string\n /**\n * The helper text of the field.\n */\n helperText?: string\n /**\n * A helper text positioned at the end of the field. Good for Textarea fields.\n */\n secondaryHelperText?: string\n /**\n * The error text of the field. Shown when the field is invalid.\n */\n errorText?: string\n}\n\n/**\n * The Field component is the context provider for all FieldParts and displays\n * the label, helperText, and ErrorText.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <Field\n * ids={{\n * control: 'firstName',\n * }}\n * label=\"Label\"\n * helperText=\"This is what people will see on your profile.\"\n * errorText=\"A first name is required to create an account.\"\n * required\n * >\n * <Input name=\"firstName\" type=\"text\" />\n * </Field>\n * ```\n */\nexport function Field(props: FieldProps) {\n const [statusProps, fieldProps, rootProps] = splitProps(\n props,\n ['disabled', 'required', 'readOnly', 'invalid'],\n ['label', 'helperText', 'secondaryHelperText', 'errorText', 'children'],\n )\n\n return (\n <FieldRoot {...statusProps} {...rootProps}>\n <Show when={fieldProps.label}>\n <FieldLabel>{fieldProps.label}</FieldLabel>\n </Show>\n\n {fieldProps.children}\n\n <Show when={fieldProps.helperText && !statusProps.invalid}>\n <HStack justifyContent=\"space-between\" w=\"full\">\n <FieldHelperText>{fieldProps.helperText}</FieldHelperText>\n <Show when={fieldProps.secondaryHelperText}>\n <FieldHelperText>{fieldProps.secondaryHelperText}</FieldHelperText>\n </Show>\n </HStack>\n </Show>\n\n <FieldErrorText>{fieldProps.errorText}</FieldErrorText>\n </FieldRoot>\n )\n}\n","import { type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps<T> {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: T | boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show<T>(props: PropsWithChildren<ShowProps<T>>) {\n const { when, children, fallback } = props\n\n if (when) {\n return <>{children}</>\n }\n\n if (fallback) {\n return <>{fallback}</>\n }\n\n return null\n}\n","import type { ElementType } from 'react'\nimport {\n FieldErrorText,\n FieldHelperText,\n FieldInput,\n FieldLabel,\n FieldRequiredIndicator,\n FieldRoot,\n FieldTextarea,\n} from './primitives'\nimport { FieldStatusIndicator } from './status-indicator'\nimport { FieldStartIndicator } from './start-indicator'\n\n/**\n * This module contains the parts of the Field component.\n * @module 'field/parts'\n */\n\ninterface FieldPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The input of the field.\n */\n Input: ElementType\n /**\n * The textarea of the field.\n */\n Textarea: ElementType\n /**\n * The text that displays when the field is valid.\n */\n HelperText: ElementType\n /**\n * The text that displays when the field is invalid.\n */\n ErrorText: ElementType\n /**\n * The indicator that appears at the start of the field.\n */\n StartIndicator: ElementType\n /**\n * The status indicator of the field.\n */\n StatusIndicator: ElementType\n /**\n * The indicator that appears at the end of the field.\n */\n RequiredIndicator: ElementType\n}\n\n/**\n * An Object containing the parts of the Field component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the FieldParts object and\n * the entire family of components vs. only what you use.\n */\nexport const FieldParts: FieldPartsValue = {\n Root: FieldRoot,\n Label: FieldLabel,\n Input: FieldInput,\n Textarea: FieldTextarea,\n HelperText: FieldHelperText,\n ErrorText: FieldErrorText,\n StartIndicator: FieldStartIndicator,\n StatusIndicator: FieldStatusIndicator,\n RequiredIndicator: FieldRequiredIndicator,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,eAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC0BO,SAAS,WACd,UACG,WAC0B;AAC7B,QAAM,SAAS,UAAU,IAAI,OAAO,CAAC,EAA+B;AACpE,QAAM,OAAO,CAAC;AAEd,aAAW,OAAO,OAAO;AACvB,QAAI,WAAW;AACf,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,UAAI,UAAU,CAAC,EAAE,SAAS,GAAc,GAAG;AACzC,eAAO,CAAC,EAAE,GAAc,IAAI,MAAM,GAAG;AACrC,mBAAW;AACX;AAAA,MACF;AAAA,IACF;AACA,QAAI,CAAC,UAAU;AACb,WAAK,GAAc,IAAI,MAAM,GAAG;AAAA,IAClC;AAAA,EACF;AAEA,SAAO,CAAC,GAAG,QAAQ,IAAI;AACzB;;;AChDA,mBAOO;AAEP,IAAAC,cAAmB;AACnB,IAAAC,kBAA8C;;;ACR9C,IAAAC,gBAAgC;AAChC,iBAAmB;AACnB,qBAAsB;;;ACFtB,mBAAkE;AAyB9D;AAfJ,IAAM,sBAAkB,4BAA2C,IAAI;AAyBhE,SAAS,qBAAqB;AACnC,QAAM,cAAU,yBAAW,eAAe;AAC1C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAA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;AAAA,EAChB,iBAAiB;AAAA,EACjB,mBAAmB;AACrB;","names":["Field","import_css","import_recipes","import_react","import_jsx_runtime","import_css","import_recipes","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","Field"]}
@@ -26,13 +26,13 @@ module.exports = __toCommonJS(parts_exports);
26
26
 
27
27
  // src/components/field/primitives.tsx
28
28
  var import_field = require("@ark-ui/react/field");
29
- var import_css3 = require("@cerberus/styled-system/css");
30
- var import_recipes3 = require("@cerberus/styled-system/recipes");
29
+ var import_css3 = require("styled-system/css");
30
+ var import_recipes3 = require("styled-system/recipes");
31
31
 
32
32
  // src/components/field/status-indicator.tsx
33
33
  var import_react2 = require("@ark-ui/react");
34
- var import_css = require("@cerberus/styled-system/css");
35
- var import_recipes = require("@cerberus/styled-system/recipes");
34
+ var import_css = require("styled-system/css");
35
+ var import_recipes = require("styled-system/recipes");
36
36
 
37
37
  // src/context/cerberus.tsx
38
38
  var import_react = require("react");
@@ -79,8 +79,8 @@ function FieldStatusIndicator(props) {
79
79
  }
80
80
 
81
81
  // src/components/field/start-indicator.tsx
82
- var import_css2 = require("@cerberus/styled-system/css");
83
- var import_recipes2 = require("@cerberus/styled-system/recipes");
82
+ var import_css2 = require("styled-system/css");
83
+ var import_recipes2 = require("styled-system/recipes");
84
84
  var import_jsx_runtime3 = require("react/jsx-runtime");
85
85
  function FieldStartIndicator(props) {
86
86
  const styles = (0, import_recipes2.field)();