@cerberus-design/react 0.15.0 → 0.16.0-next-feeb186

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 (550) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +1345 -319
  2. package/build/legacy/components/Accordion.cjs.map +1 -1
  3. package/build/legacy/components/AccordionItemGroup.cjs.map +1 -1
  4. package/build/legacy/components/DatePicker.client.cjs +63 -77
  5. package/build/legacy/components/DatePicker.client.cjs.map +1 -1
  6. package/build/legacy/components/FileStatus.cjs +126 -79
  7. package/build/legacy/components/FileStatus.cjs.map +1 -1
  8. package/build/legacy/components/Legend.cjs +10 -22
  9. package/build/legacy/components/Legend.cjs.map +1 -1
  10. package/build/legacy/components/button/button.cjs +154 -0
  11. package/build/legacy/components/button/button.cjs.map +1 -0
  12. package/build/legacy/components/button/index.cjs +163 -0
  13. package/build/legacy/components/button/index.cjs.map +1 -0
  14. package/build/legacy/components/button/parts.cjs +159 -0
  15. package/build/legacy/components/button/parts.cjs.map +1 -0
  16. package/build/legacy/components/checkbox/checkbox-icon.cjs +121 -0
  17. package/build/legacy/components/checkbox/checkbox-icon.cjs.map +1 -0
  18. package/build/legacy/components/checkbox/checkbox.cjs +165 -0
  19. package/build/legacy/components/checkbox/checkbox.cjs.map +1 -0
  20. package/build/legacy/components/checkbox/index.cjs +179 -0
  21. package/build/legacy/components/checkbox/index.cjs.map +1 -0
  22. package/build/legacy/components/checkbox/parts.cjs +89 -0
  23. package/build/legacy/components/checkbox/parts.cjs.map +1 -0
  24. package/build/legacy/components/checkbox/primitives.cjs +87 -0
  25. package/build/legacy/components/checkbox/primitives.cjs.map +1 -0
  26. package/build/legacy/components/cta-dialog/context.cjs +33 -0
  27. package/build/legacy/components/cta-dialog/context.cjs.map +1 -0
  28. package/build/legacy/components/cta-dialog/index.cjs +433 -0
  29. package/build/legacy/components/cta-dialog/index.cjs.map +1 -0
  30. package/build/legacy/{context/cta-modal.cjs → components/cta-dialog/provider.cjs} +175 -128
  31. package/build/legacy/components/cta-dialog/provider.cjs.map +1 -0
  32. package/build/legacy/components/cta-dialog/trigger-item.cjs +99 -0
  33. package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -0
  34. package/build/legacy/components/cta-dialog/utils.cjs +47 -0
  35. package/build/legacy/components/cta-dialog/utils.cjs.map +1 -0
  36. package/build/legacy/components/{FieldMessage.cjs → deprecated/FieldMessage.cjs} +4 -17
  37. package/build/legacy/components/deprecated/FieldMessage.cjs.map +1 -0
  38. package/build/legacy/components/{FieldsetLabel.cjs → deprecated/FieldsetLabel.cjs} +1 -1
  39. package/build/legacy/components/deprecated/FieldsetLabel.cjs.map +1 -0
  40. package/build/legacy/components/{Textarea.cjs → deprecated/Label.cjs} +24 -36
  41. package/build/legacy/components/deprecated/Label.cjs.map +1 -0
  42. package/build/legacy/components/{Modal.cjs → deprecated/Modal.cjs} +1 -1
  43. package/build/legacy/components/deprecated/Modal.cjs.map +1 -0
  44. package/build/legacy/components/{ModalDescription.cjs → deprecated/ModalDescription.cjs} +1 -1
  45. package/build/legacy/components/deprecated/ModalDescription.cjs.map +1 -0
  46. package/build/legacy/components/{ModalHeader.cjs → deprecated/ModalHeader.cjs} +1 -1
  47. package/build/legacy/components/deprecated/ModalHeader.cjs.map +1 -0
  48. package/build/legacy/components/{ModalHeading.cjs → deprecated/ModalHeading.cjs} +1 -1
  49. package/build/legacy/components/deprecated/ModalHeading.cjs.map +1 -0
  50. package/build/legacy/components/{NavMenuLink.cjs → deprecated/NavMenuLink.cjs} +2 -2
  51. package/build/legacy/components/deprecated/NavMenuLink.cjs.map +1 -0
  52. package/build/legacy/components/{NavMenuList.cjs → deprecated/NavMenuList.cjs} +2 -2
  53. package/build/legacy/components/deprecated/NavMenuList.cjs.map +1 -0
  54. package/build/legacy/components/{NavMenuTrigger.cjs → deprecated/NavMenuTrigger.cjs} +2 -2
  55. package/build/legacy/components/deprecated/NavMenuTrigger.cjs.map +1 -0
  56. package/build/legacy/components/field/field.cjs +130 -0
  57. package/build/legacy/components/field/field.cjs.map +1 -0
  58. package/build/legacy/components/field/index.cjs +267 -0
  59. package/build/legacy/components/field/index.cjs.map +1 -0
  60. package/build/legacy/components/field/parts.cjs +188 -0
  61. package/build/legacy/components/field/parts.cjs.map +1 -0
  62. package/build/legacy/components/field/primitives.cjs +191 -0
  63. package/build/legacy/components/field/primitives.cjs.map +1 -0
  64. package/build/legacy/components/{Button.cjs → field/start-indicator.cjs} +14 -19
  65. package/build/legacy/components/field/start-indicator.cjs.map +1 -0
  66. package/build/legacy/components/field/status-indicator.cjs +78 -0
  67. package/build/legacy/components/field/status-indicator.cjs.map +1 -0
  68. package/build/legacy/components/fieldset/fieldset.cjs +116 -0
  69. package/build/legacy/components/fieldset/fieldset.cjs.map +1 -0
  70. package/build/legacy/components/fieldset/index.cjs +126 -0
  71. package/build/legacy/components/fieldset/index.cjs.map +1 -0
  72. package/build/legacy/components/fieldset/parts.cjs +80 -0
  73. package/build/legacy/components/fieldset/parts.cjs.map +1 -0
  74. package/build/legacy/components/fieldset/primitives.cjs +76 -0
  75. package/build/legacy/components/fieldset/primitives.cjs.map +1 -0
  76. package/build/legacy/components/for.cjs +37 -0
  77. package/build/legacy/components/for.cjs.map +1 -0
  78. package/build/legacy/components/radio/index.cjs +143 -0
  79. package/build/legacy/components/radio/index.cjs.map +1 -0
  80. package/build/legacy/components/radio/parts.cjs +113 -0
  81. package/build/legacy/components/radio/parts.cjs.map +1 -0
  82. package/build/legacy/components/radio/primitives.cjs +115 -0
  83. package/build/legacy/components/radio/primitives.cjs.map +1 -0
  84. package/build/legacy/components/radio/radio.cjs +82 -0
  85. package/build/legacy/components/radio/radio.cjs.map +1 -0
  86. package/build/legacy/components/select/index.cjs +265 -0
  87. package/build/legacy/components/select/index.cjs.map +1 -0
  88. package/build/legacy/components/select/option-group.cjs +60 -0
  89. package/build/legacy/components/select/option-group.cjs.map +1 -0
  90. package/build/legacy/components/select/parts.cjs +153 -0
  91. package/build/legacy/components/select/parts.cjs.map +1 -0
  92. package/build/legacy/components/select/primitives.cjs +167 -0
  93. package/build/legacy/components/select/primitives.cjs.map +1 -0
  94. package/build/legacy/components/select/select.cjs +212 -0
  95. package/build/legacy/components/select/select.cjs.map +1 -0
  96. package/build/legacy/components/switch/index.cjs +118 -0
  97. package/build/legacy/components/switch/index.cjs.map +1 -0
  98. package/build/legacy/components/switch/parts.cjs +75 -0
  99. package/build/legacy/components/switch/parts.cjs.map +1 -0
  100. package/build/legacy/components/switch/primitives.cjs +72 -0
  101. package/build/legacy/components/switch/primitives.cjs.map +1 -0
  102. package/build/legacy/components/{Fieldset.cjs → switch/switch-indicator.cjs} +17 -32
  103. package/build/legacy/components/switch/switch-indicator.cjs.map +1 -0
  104. package/build/legacy/components/switch/switch.cjs +106 -0
  105. package/build/legacy/components/switch/switch.cjs.map +1 -0
  106. package/build/legacy/components/toggle/index.cjs +45 -0
  107. package/build/legacy/components/toggle/index.cjs.map +1 -0
  108. package/build/legacy/components/toggle/parts.cjs +41 -0
  109. package/build/legacy/components/toggle/parts.cjs.map +1 -0
  110. package/build/legacy/components/toggle/primitives.cjs +35 -0
  111. package/build/legacy/components/toggle/primitives.cjs.map +1 -0
  112. package/build/legacy/config/types.cjs.map +1 -1
  113. package/build/legacy/context/confirm-modal.cjs +55 -45
  114. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  115. package/build/legacy/context/field.cjs +23 -4
  116. package/build/legacy/context/field.cjs.map +1 -1
  117. package/build/legacy/context/notification-center.cjs +24 -16
  118. package/build/legacy/context/notification-center.cjs.map +1 -1
  119. package/build/legacy/context/prompt-modal.cjs +206 -194
  120. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  121. package/build/legacy/hooks/useDate.cjs.map +1 -1
  122. package/build/legacy/hooks/useRootColors.cjs +0 -1
  123. package/build/legacy/hooks/useRootColors.cjs.map +1 -1
  124. package/build/legacy/hooks/useToggle.cjs.map +1 -1
  125. package/build/legacy/index.cjs +2023 -1466
  126. package/build/legacy/index.cjs.map +1 -1
  127. package/build/legacy/utils/index.cjs +22 -2
  128. package/build/legacy/utils/index.cjs.map +1 -1
  129. package/build/modern/_tsup-dts-rollup.d.ts +1345 -319
  130. package/build/modern/{chunk-PM7CWT3N.js → chunk-245SMQ45.js} +2 -2
  131. package/build/modern/chunk-245SMQ45.js.map +1 -0
  132. package/build/modern/chunk-2BIHLH4V.js +15 -0
  133. package/build/modern/chunk-2BIHLH4V.js.map +1 -0
  134. package/build/modern/chunk-2CVGNLIM.js +15 -0
  135. package/build/modern/chunk-2CVGNLIM.js.map +1 -0
  136. package/build/modern/{chunk-ISCJ542I.js → chunk-2HOUQ2DX.js} +2 -2
  137. package/build/modern/chunk-2LF3HPNA.js +1 -0
  138. package/build/modern/chunk-4LSTU6WU.js +8 -0
  139. package/build/modern/chunk-4LSTU6WU.js.map +1 -0
  140. package/build/modern/chunk-5RTNSVYU.js +88 -0
  141. package/build/modern/chunk-5RTNSVYU.js.map +1 -0
  142. package/build/modern/chunk-6I2FW4WI.js +33 -0
  143. package/build/modern/chunk-6I2FW4WI.js.map +1 -0
  144. package/build/modern/chunk-6ICNCCPD.js +47 -0
  145. package/build/modern/chunk-6ICNCCPD.js.map +1 -0
  146. package/build/modern/chunk-6KZVE4HC.js +52 -0
  147. package/build/modern/chunk-6KZVE4HC.js.map +1 -0
  148. package/build/modern/{chunk-25HMVHLT.js → chunk-7SU6FCTJ.js} +5 -5
  149. package/build/modern/chunk-7TQRTBUP.js +19 -0
  150. package/build/modern/chunk-7TQRTBUP.js.map +1 -0
  151. package/build/modern/{chunk-UZVQ4INR.js → chunk-AIJ75ENY.js} +2 -2
  152. package/build/modern/chunk-AIJ75ENY.js.map +1 -0
  153. package/build/modern/chunk-AO3GB72J.js +27 -0
  154. package/build/modern/chunk-AO3GB72J.js.map +1 -0
  155. package/build/modern/{chunk-NUMM4TNC.js → chunk-AUALRL3U.js} +2 -2
  156. package/build/modern/chunk-AUALRL3U.js.map +1 -0
  157. package/build/modern/{chunk-IGHMP4WA.js → chunk-AZRFYQO7.js} +1 -1
  158. package/build/modern/chunk-AZRFYQO7.js.map +1 -0
  159. package/build/modern/chunk-BL7G3577.js +29 -0
  160. package/build/modern/chunk-BL7G3577.js.map +1 -0
  161. package/build/modern/chunk-BPRF34DU.js +62 -0
  162. package/build/modern/chunk-BPRF34DU.js.map +1 -0
  163. package/build/modern/chunk-CAZ3EICD.js +16 -0
  164. package/build/modern/chunk-CAZ3EICD.js.map +1 -0
  165. package/build/modern/chunk-CIMY2U22.js +10 -0
  166. package/build/modern/chunk-CIMY2U22.js.map +1 -0
  167. package/build/modern/chunk-CNA2VKAH.js +43 -0
  168. package/build/modern/chunk-CNA2VKAH.js.map +1 -0
  169. package/build/modern/chunk-CYC2YUKU.js +1 -0
  170. package/build/modern/{chunk-PZAZKQMO.js → chunk-DRDNNRU3.js} +2 -2
  171. package/build/modern/chunk-DRDNNRU3.js.map +1 -0
  172. package/build/modern/{chunk-NJSETNRL.js → chunk-DXBZ3HMY.js} +2 -2
  173. package/build/modern/chunk-DXOKSZVQ.js +12 -0
  174. package/build/modern/chunk-DXOKSZVQ.js.map +1 -0
  175. package/build/modern/chunk-EL4MX2PG.js +22 -0
  176. package/build/modern/chunk-EL4MX2PG.js.map +1 -0
  177. package/build/modern/chunk-FBS7AX76.js +37 -0
  178. package/build/modern/chunk-FBS7AX76.js.map +1 -0
  179. package/build/modern/chunk-FUL2VRDU.js +25 -0
  180. package/build/modern/chunk-FUL2VRDU.js.map +1 -0
  181. package/build/modern/{chunk-BHB56M7S.js → chunk-H54FR7IP.js} +6 -6
  182. package/build/modern/chunk-H54FR7IP.js.map +1 -0
  183. package/build/modern/chunk-IASVL7CW.js +19 -0
  184. package/build/modern/chunk-IASVL7CW.js.map +1 -0
  185. package/build/modern/{chunk-REO5GUNC.js → chunk-ICTISECN.js} +1 -1
  186. package/build/modern/chunk-ICTISECN.js.map +1 -0
  187. package/build/modern/chunk-IDTAB2UJ.js +1 -0
  188. package/build/modern/chunk-IKDXADLX.js +1 -0
  189. package/build/modern/chunk-KQQPZJEI.js +21 -0
  190. package/build/modern/chunk-KQQPZJEI.js.map +1 -0
  191. package/build/modern/chunk-KWZ3CEG6.js +23 -0
  192. package/build/modern/chunk-KWZ3CEG6.js.map +1 -0
  193. package/build/modern/{chunk-JWIJHSI6.js → chunk-L7N24B6B.js} +3 -6
  194. package/build/modern/chunk-L7N24B6B.js.map +1 -0
  195. package/build/modern/chunk-LT62577B.js +23 -0
  196. package/build/modern/chunk-LT62577B.js.map +1 -0
  197. package/build/modern/chunk-LZWNHXRP.js +48 -0
  198. package/build/modern/chunk-LZWNHXRP.js.map +1 -0
  199. package/build/modern/{chunk-EDARV2EI.js → chunk-MISIUX63.js} +4 -4
  200. package/build/modern/chunk-MVO2GNUA.js +47 -0
  201. package/build/modern/chunk-MVO2GNUA.js.map +1 -0
  202. package/build/modern/{chunk-3BM6MZ4A.js → chunk-MWRO5QYD.js} +1 -1
  203. package/build/modern/chunk-MWRO5QYD.js.map +1 -0
  204. package/build/modern/{chunk-SD3OVTHT.js → chunk-O542MPR7.js} +40 -43
  205. package/build/modern/chunk-O542MPR7.js.map +1 -0
  206. package/build/modern/chunk-OGYMMATX.js +1 -0
  207. package/build/modern/chunk-OVHCXBBI.js +22 -0
  208. package/build/modern/chunk-OVHCXBBI.js.map +1 -0
  209. package/build/modern/chunk-PLHYOCY3.js +23 -0
  210. package/build/modern/chunk-PLHYOCY3.js.map +1 -0
  211. package/build/modern/{chunk-JIRW4XOJ.js → chunk-Q3I4H6EC.js} +2 -2
  212. package/build/modern/chunk-Q3I4H6EC.js.map +1 -0
  213. package/build/modern/chunk-QCBLRACK.js +133 -0
  214. package/build/modern/chunk-QCBLRACK.js.map +1 -0
  215. package/build/modern/{chunk-FGCO27TC.js → chunk-QEM3M4N3.js} +25 -34
  216. package/build/modern/chunk-QEM3M4N3.js.map +1 -0
  217. package/build/modern/{chunk-ILQW5VZT.js → chunk-RBNOEAWJ.js} +4 -7
  218. package/build/modern/chunk-RBNOEAWJ.js.map +1 -0
  219. package/build/modern/{chunk-YKKNWILF.js → chunk-RHCTPSKT.js} +2 -15
  220. package/build/modern/chunk-RHCTPSKT.js.map +1 -0
  221. package/build/modern/chunk-STLN7BMJ.js +22 -0
  222. package/build/modern/chunk-STLN7BMJ.js.map +1 -0
  223. package/build/modern/{chunk-7NN3SJ7W.js → chunk-SWX5JWZR.js} +2 -2
  224. package/build/modern/chunk-SWX5JWZR.js.map +1 -0
  225. package/build/modern/{chunk-GCQMH4QA.js → chunk-SXLPDPOZ.js} +4 -4
  226. package/build/modern/chunk-TIJAFPHQ.js +1 -0
  227. package/build/modern/chunk-TYPULJMJ.js +1 -0
  228. package/build/modern/chunk-UDY6USHW.js +1 -0
  229. package/build/modern/chunk-V4YYGGMH.js +1 -0
  230. package/build/modern/chunk-VSTOSLFS.js +100 -0
  231. package/build/modern/chunk-VSTOSLFS.js.map +1 -0
  232. package/build/modern/{chunk-ZL6ZITLA.js → chunk-WECB67DC.js} +2 -2
  233. package/build/modern/chunk-WECB67DC.js.map +1 -0
  234. package/build/modern/{chunk-BAWZBF5Q.js → chunk-WN7TJX6J.js} +2 -2
  235. package/build/modern/{chunk-RMVJK26W.js → chunk-XJQXHSH7.js} +1 -2
  236. package/build/modern/chunk-XJQXHSH7.js.map +1 -0
  237. package/build/modern/chunk-XTNGF4D6.js +41 -0
  238. package/build/modern/chunk-XTNGF4D6.js.map +1 -0
  239. package/build/modern/chunk-Y4ZEJ2EF.js +31 -0
  240. package/build/modern/chunk-Y4ZEJ2EF.js.map +1 -0
  241. package/build/modern/{chunk-WPVDQRRF.js → chunk-YOTXFCCC.js} +2 -2
  242. package/build/modern/chunk-YOTXFCCC.js.map +1 -0
  243. package/build/modern/chunk-Z3FDG263.js +53 -0
  244. package/build/modern/chunk-Z3FDG263.js.map +1 -0
  245. package/build/modern/{chunk-JAROS4Q3.js → chunk-Z4342DRO.js} +10 -10
  246. package/build/modern/chunk-Z4342DRO.js.map +1 -0
  247. package/build/modern/chunk-Z52R6ABJ.js +21 -0
  248. package/build/modern/chunk-Z52R6ABJ.js.map +1 -0
  249. package/build/modern/{chunk-O6LFWUHI.js → chunk-ZFFW5ELD.js} +10 -10
  250. package/build/modern/chunk-ZFFW5ELD.js.map +1 -0
  251. package/build/modern/components/Accordion.js +1 -1
  252. package/build/modern/components/AccordionItemGroup.js +3 -3
  253. package/build/modern/components/Admonition.client.js +3 -3
  254. package/build/modern/components/Admonition.js +4 -4
  255. package/build/modern/components/Avatar.js +2 -2
  256. package/build/modern/components/DatePicker.client.js +4 -3
  257. package/build/modern/components/FileStatus.js +11 -5
  258. package/build/modern/components/FileUploader.js +3 -3
  259. package/build/modern/components/Legend.js +1 -2
  260. package/build/modern/components/Tag.js +2 -2
  261. package/build/modern/components/button/button.js +12 -0
  262. package/build/modern/components/button/index.js +16 -0
  263. package/build/modern/components/button/parts.js +10 -0
  264. package/build/modern/components/checkbox/checkbox-icon.js +12 -0
  265. package/build/modern/components/checkbox/checkbox.js +13 -0
  266. package/build/modern/components/checkbox/index.js +30 -0
  267. package/build/modern/components/checkbox/parts.js +8 -0
  268. package/build/modern/components/checkbox/primitives.js +17 -0
  269. package/build/modern/components/cta-dialog/context.js +8 -0
  270. package/build/modern/components/cta-dialog/index.js +26 -0
  271. package/build/modern/components/cta-dialog/provider.js +22 -0
  272. package/build/modern/components/cta-dialog/provider.js.map +1 -0
  273. package/build/modern/components/cta-dialog/trigger-item.js +10 -0
  274. package/build/modern/components/cta-dialog/trigger-item.js.map +1 -0
  275. package/build/modern/components/cta-dialog/utils.js +7 -0
  276. package/build/modern/components/cta-dialog/utils.js.map +1 -0
  277. package/build/modern/components/deprecated/FieldMessage.js +8 -0
  278. package/build/modern/components/deprecated/FieldMessage.js.map +1 -0
  279. package/build/modern/components/deprecated/FieldsetLabel.js +7 -0
  280. package/build/modern/components/deprecated/FieldsetLabel.js.map +1 -0
  281. package/build/modern/components/deprecated/Label.js +17 -0
  282. package/build/modern/components/deprecated/Label.js.map +1 -0
  283. package/build/modern/components/deprecated/Modal.js +7 -0
  284. package/build/modern/components/deprecated/Modal.js.map +1 -0
  285. package/build/modern/components/deprecated/ModalDescription.js +7 -0
  286. package/build/modern/components/deprecated/ModalDescription.js.map +1 -0
  287. package/build/modern/components/deprecated/ModalHeader.js +7 -0
  288. package/build/modern/components/deprecated/ModalHeader.js.map +1 -0
  289. package/build/modern/components/deprecated/ModalHeading.js +7 -0
  290. package/build/modern/components/deprecated/ModalHeading.js.map +1 -0
  291. package/build/modern/components/deprecated/NavMenuLink.js +8 -0
  292. package/build/modern/components/deprecated/NavMenuLink.js.map +1 -0
  293. package/build/modern/components/deprecated/NavMenuList.js +12 -0
  294. package/build/modern/components/deprecated/NavMenuList.js.map +1 -0
  295. package/build/modern/components/deprecated/NavMenuTrigger.js +11 -0
  296. package/build/modern/components/deprecated/NavMenuTrigger.js.map +1 -0
  297. package/build/modern/components/field/field.js +14 -0
  298. package/build/modern/components/field/field.js.map +1 -0
  299. package/build/modern/components/field/index.js +44 -0
  300. package/build/modern/components/field/index.js.map +1 -0
  301. package/build/modern/components/field/parts.js +11 -0
  302. package/build/modern/components/field/parts.js.map +1 -0
  303. package/build/modern/components/field/primitives.js +26 -0
  304. package/build/modern/components/field/primitives.js.map +1 -0
  305. package/build/modern/components/field/start-indicator.js +7 -0
  306. package/build/modern/components/field/start-indicator.js.map +1 -0
  307. package/build/modern/components/field/status-indicator.js +9 -0
  308. package/build/modern/components/field/status-indicator.js.map +1 -0
  309. package/build/modern/components/fieldset/fieldset.js +11 -0
  310. package/build/modern/components/fieldset/fieldset.js.map +1 -0
  311. package/build/modern/components/fieldset/index.js +24 -0
  312. package/build/modern/components/fieldset/index.js.map +1 -0
  313. package/build/modern/components/fieldset/parts.js +8 -0
  314. package/build/modern/components/fieldset/parts.js.map +1 -0
  315. package/build/modern/components/fieldset/primitives.js +13 -0
  316. package/build/modern/components/fieldset/primitives.js.map +1 -0
  317. package/build/modern/components/for.js +7 -0
  318. package/build/modern/components/for.js.map +1 -0
  319. package/build/modern/components/radio/index.js +30 -0
  320. package/build/modern/components/radio/index.js.map +1 -0
  321. package/build/modern/components/radio/parts.js +8 -0
  322. package/build/modern/components/radio/parts.js.map +1 -0
  323. package/build/modern/components/radio/primitives.js +21 -0
  324. package/build/modern/components/radio/primitives.js.map +1 -0
  325. package/build/modern/components/radio/radio.js +8 -0
  326. package/build/modern/components/radio/radio.js.map +1 -0
  327. package/build/modern/components/select/index.js +57 -0
  328. package/build/modern/components/select/index.js.map +1 -0
  329. package/build/modern/components/select/option-group.js +10 -0
  330. package/build/modern/components/select/option-group.js.map +1 -0
  331. package/build/modern/components/select/parts.js +8 -0
  332. package/build/modern/components/select/parts.js.map +1 -0
  333. package/build/modern/components/select/primitives.js +37 -0
  334. package/build/modern/components/select/primitives.js.map +1 -0
  335. package/build/modern/components/select/select.js +15 -0
  336. package/build/modern/components/select/select.js.map +1 -0
  337. package/build/modern/components/switch/index.js +26 -0
  338. package/build/modern/components/switch/index.js.map +1 -0
  339. package/build/modern/components/switch/parts.js +8 -0
  340. package/build/modern/components/switch/parts.js.map +1 -0
  341. package/build/modern/components/switch/primitives.js +15 -0
  342. package/build/modern/components/switch/primitives.js.map +1 -0
  343. package/build/modern/components/switch/switch-indicator.js +9 -0
  344. package/build/modern/components/switch/switch-indicator.js.map +1 -0
  345. package/build/modern/components/switch/switch.js +11 -0
  346. package/build/modern/components/switch/switch.js.map +1 -0
  347. package/build/modern/components/toggle/index.js +14 -0
  348. package/build/modern/components/toggle/index.js.map +1 -0
  349. package/build/modern/components/toggle/parts.js +8 -0
  350. package/build/modern/components/toggle/parts.js.map +1 -0
  351. package/build/modern/components/toggle/primitives.js +9 -0
  352. package/build/modern/components/toggle/primitives.js.map +1 -0
  353. package/build/modern/context/confirm-modal.js +5 -4
  354. package/build/modern/context/field.js +34 -4
  355. package/build/modern/context/field.js.map +1 -1
  356. package/build/modern/context/notification-center.js +5 -4
  357. package/build/modern/context/prompt-modal.js +13 -7
  358. package/build/modern/hooks/useDate.js +1 -1
  359. package/build/modern/hooks/useRootColors.js +1 -1
  360. package/build/modern/hooks/useToggle.js +1 -1
  361. package/build/modern/index.js +304 -129
  362. package/build/modern/index.js.map +1 -1
  363. package/build/modern/utils/index.js +5 -3
  364. package/package.json +2 -2
  365. package/src/components/Accordion.tsx +1 -0
  366. package/src/components/DatePicker.client.tsx +3 -15
  367. package/src/components/FileStatus.tsx +4 -5
  368. package/src/components/Legend.tsx +5 -6
  369. package/src/components/button/button.tsx +77 -0
  370. package/src/components/button/index.ts +2 -0
  371. package/src/components/button/parts.ts +32 -0
  372. package/src/components/checkbox/checkbox-icon.tsx +39 -0
  373. package/src/components/checkbox/checkbox.tsx +42 -0
  374. package/src/components/checkbox/index.ts +3 -0
  375. package/src/components/checkbox/parts.ts +59 -0
  376. package/src/components/checkbox/primitives.tsx +104 -0
  377. package/src/components/cta-dialog/context.tsx +34 -0
  378. package/src/components/cta-dialog/index.ts +2 -0
  379. package/src/{context/cta-modal.tsx → components/cta-dialog/provider.tsx} +34 -68
  380. package/src/components/cta-dialog/trigger-item.tsx +53 -0
  381. package/src/components/cta-dialog/utils.ts +57 -0
  382. package/src/components/{FieldMessage.tsx → deprecated/FieldMessage.tsx} +2 -13
  383. package/src/components/deprecated/FieldsetLabel.tsx +32 -0
  384. package/src/components/deprecated/Label.tsx +24 -0
  385. package/src/components/{NavMenuLink.tsx → deprecated/NavMenuLink.tsx} +1 -1
  386. package/src/components/{NavMenuList.tsx → deprecated/NavMenuList.tsx} +3 -3
  387. package/src/components/{NavMenuTrigger.tsx → deprecated/NavMenuTrigger.tsx} +4 -4
  388. package/src/components/field/field.tsx +77 -0
  389. package/src/components/field/index.ts +5 -0
  390. package/src/components/field/parts.ts +77 -0
  391. package/src/components/field/primitives.tsx +204 -0
  392. package/src/components/field/start-indicator.tsx +23 -0
  393. package/src/components/field/status-indicator.tsx +58 -0
  394. package/src/components/fieldset/fieldset.tsx +55 -0
  395. package/src/components/fieldset/index.ts +3 -0
  396. package/src/components/fieldset/parts.ts +47 -0
  397. package/src/components/fieldset/primitives.tsx +79 -0
  398. package/src/components/for.tsx +38 -0
  399. package/src/components/radio/index.ts +3 -0
  400. package/src/components/radio/parts.ts +65 -0
  401. package/src/components/radio/primitives.tsx +123 -0
  402. package/src/components/radio/radio.tsx +35 -0
  403. package/src/components/select/index.ts +4 -0
  404. package/src/components/select/option-group.tsx +34 -0
  405. package/src/components/select/parts.ts +113 -0
  406. package/src/components/select/primitives.tsx +205 -0
  407. package/src/components/select/select.tsx +135 -0
  408. package/src/components/switch/index.ts +3 -0
  409. package/src/components/switch/parts.ts +53 -0
  410. package/src/components/switch/primitives.tsx +69 -0
  411. package/src/components/switch/switch-indicator.tsx +9 -0
  412. package/src/components/switch/switch.tsx +30 -0
  413. package/src/components/toggle/index.ts +2 -0
  414. package/src/components/toggle/parts.ts +32 -0
  415. package/src/components/toggle/primitives.tsx +17 -0
  416. package/src/config/types.ts +1 -0
  417. package/src/context/confirm-modal.tsx +1 -1
  418. package/src/context/field.tsx +6 -5
  419. package/src/context/notification-center.tsx +1 -1
  420. package/src/context/prompt-modal.tsx +16 -18
  421. package/src/hooks/useDate.ts +1 -7
  422. package/src/hooks/useRootColors.ts +0 -1
  423. package/src/hooks/useToggle.ts +1 -3
  424. package/src/index.ts +24 -24
  425. package/src/utils/index.ts +30 -0
  426. package/build/legacy/components/Button.cjs.map +0 -1
  427. package/build/legacy/components/Checkbox.cjs +0 -113
  428. package/build/legacy/components/Checkbox.cjs.map +0 -1
  429. package/build/legacy/components/FieldMessage.cjs.map +0 -1
  430. package/build/legacy/components/Fieldset.cjs.map +0 -1
  431. package/build/legacy/components/FieldsetLabel.cjs.map +0 -1
  432. package/build/legacy/components/Input.cjs +0 -95
  433. package/build/legacy/components/Input.cjs.map +0 -1
  434. package/build/legacy/components/Label.cjs +0 -93
  435. package/build/legacy/components/Label.cjs.map +0 -1
  436. package/build/legacy/components/Modal.cjs.map +0 -1
  437. package/build/legacy/components/ModalDescription.cjs.map +0 -1
  438. package/build/legacy/components/ModalHeader.cjs.map +0 -1
  439. package/build/legacy/components/ModalHeading.cjs.map +0 -1
  440. package/build/legacy/components/NavMenuLink.cjs.map +0 -1
  441. package/build/legacy/components/NavMenuList.cjs.map +0 -1
  442. package/build/legacy/components/NavMenuTrigger.cjs.map +0 -1
  443. package/build/legacy/components/Radio.cjs +0 -81
  444. package/build/legacy/components/Radio.cjs.map +0 -1
  445. package/build/legacy/components/Select.cjs +0 -120
  446. package/build/legacy/components/Select.cjs.map +0 -1
  447. package/build/legacy/components/Textarea.cjs.map +0 -1
  448. package/build/legacy/components/Toggle.cjs +0 -101
  449. package/build/legacy/components/Toggle.cjs.map +0 -1
  450. package/build/legacy/context/cta-modal.cjs.map +0 -1
  451. package/build/modern/chunk-3BM6MZ4A.js.map +0 -1
  452. package/build/modern/chunk-3ZDFQO25.js +0 -31
  453. package/build/modern/chunk-3ZDFQO25.js.map +0 -1
  454. package/build/modern/chunk-7NN3SJ7W.js.map +0 -1
  455. package/build/modern/chunk-BHB56M7S.js.map +0 -1
  456. package/build/modern/chunk-C5EHJUS5.js +0 -10
  457. package/build/modern/chunk-C5EHJUS5.js.map +0 -1
  458. package/build/modern/chunk-EXGKZGML.js +0 -28
  459. package/build/modern/chunk-EXGKZGML.js.map +0 -1
  460. package/build/modern/chunk-FGCO27TC.js.map +0 -1
  461. package/build/modern/chunk-FTPZHG6J.js +0 -46
  462. package/build/modern/chunk-FTPZHG6J.js.map +0 -1
  463. package/build/modern/chunk-IGHMP4WA.js.map +0 -1
  464. package/build/modern/chunk-ILQW5VZT.js.map +0 -1
  465. package/build/modern/chunk-JAROS4Q3.js.map +0 -1
  466. package/build/modern/chunk-JIJM6JFJ.js +0 -36
  467. package/build/modern/chunk-JIJM6JFJ.js.map +0 -1
  468. package/build/modern/chunk-JIRW4XOJ.js.map +0 -1
  469. package/build/modern/chunk-JWIJHSI6.js.map +0 -1
  470. package/build/modern/chunk-KKHL3ZO4.js +0 -69
  471. package/build/modern/chunk-KKHL3ZO4.js.map +0 -1
  472. package/build/modern/chunk-MZ3UCDUL.js +0 -43
  473. package/build/modern/chunk-MZ3UCDUL.js.map +0 -1
  474. package/build/modern/chunk-N24COMHJ.js +0 -63
  475. package/build/modern/chunk-N24COMHJ.js.map +0 -1
  476. package/build/modern/chunk-NMF2HYWO.js +0 -50
  477. package/build/modern/chunk-NMF2HYWO.js.map +0 -1
  478. package/build/modern/chunk-NUMM4TNC.js.map +0 -1
  479. package/build/modern/chunk-O6LFWUHI.js.map +0 -1
  480. package/build/modern/chunk-PM7CWT3N.js.map +0 -1
  481. package/build/modern/chunk-PZAZKQMO.js.map +0 -1
  482. package/build/modern/chunk-REO5GUNC.js.map +0 -1
  483. package/build/modern/chunk-RMVJK26W.js.map +0 -1
  484. package/build/modern/chunk-SD3OVTHT.js.map +0 -1
  485. package/build/modern/chunk-UZDVOIW5.js +0 -33
  486. package/build/modern/chunk-UZDVOIW5.js.map +0 -1
  487. package/build/modern/chunk-UZVQ4INR.js.map +0 -1
  488. package/build/modern/chunk-WPVDQRRF.js.map +0 -1
  489. package/build/modern/chunk-XQICKZH4.js +0 -59
  490. package/build/modern/chunk-XQICKZH4.js.map +0 -1
  491. package/build/modern/chunk-YKKNWILF.js.map +0 -1
  492. package/build/modern/chunk-ZL6ZITLA.js.map +0 -1
  493. package/build/modern/components/Button.js +0 -7
  494. package/build/modern/components/Checkbox.js +0 -11
  495. package/build/modern/components/FieldMessage.js +0 -9
  496. package/build/modern/components/Fieldset.js +0 -9
  497. package/build/modern/components/FieldsetLabel.js +0 -7
  498. package/build/modern/components/Input.js +0 -11
  499. package/build/modern/components/Label.js +0 -10
  500. package/build/modern/components/Modal.js +0 -7
  501. package/build/modern/components/ModalDescription.js +0 -7
  502. package/build/modern/components/ModalHeader.js +0 -7
  503. package/build/modern/components/ModalHeading.js +0 -7
  504. package/build/modern/components/NavMenuLink.js +0 -8
  505. package/build/modern/components/NavMenuList.js +0 -12
  506. package/build/modern/components/NavMenuTrigger.js +0 -11
  507. package/build/modern/components/Radio.js +0 -9
  508. package/build/modern/components/Select.js +0 -13
  509. package/build/modern/components/Textarea.js +0 -9
  510. package/build/modern/components/Toggle.js +0 -10
  511. package/build/modern/context/cta-modal.js +0 -18
  512. package/src/components/Button.tsx +0 -35
  513. package/src/components/Checkbox.tsx +0 -93
  514. package/src/components/Fieldset.tsx +0 -65
  515. package/src/components/FieldsetLabel.tsx +0 -59
  516. package/src/components/Input.tsx +0 -69
  517. package/src/components/Label.tsx +0 -69
  518. package/src/components/Radio.tsx +0 -73
  519. package/src/components/Select.tsx +0 -108
  520. package/src/components/Textarea.tsx +0 -52
  521. package/src/components/Toggle.tsx +0 -91
  522. /package/build/modern/{chunk-ISCJ542I.js.map → chunk-2HOUQ2DX.js.map} +0 -0
  523. /package/build/modern/{components/Button.js.map → chunk-2LF3HPNA.js.map} +0 -0
  524. /package/build/modern/{chunk-25HMVHLT.js.map → chunk-7SU6FCTJ.js.map} +0 -0
  525. /package/build/modern/{components/Checkbox.js.map → chunk-CYC2YUKU.js.map} +0 -0
  526. /package/build/modern/{chunk-NJSETNRL.js.map → chunk-DXBZ3HMY.js.map} +0 -0
  527. /package/build/modern/{components/FieldMessage.js.map → chunk-IDTAB2UJ.js.map} +0 -0
  528. /package/build/modern/{components/Fieldset.js.map → chunk-IKDXADLX.js.map} +0 -0
  529. /package/build/modern/{chunk-EDARV2EI.js.map → chunk-MISIUX63.js.map} +0 -0
  530. /package/build/modern/{components/FieldsetLabel.js.map → chunk-OGYMMATX.js.map} +0 -0
  531. /package/build/modern/{chunk-GCQMH4QA.js.map → chunk-SXLPDPOZ.js.map} +0 -0
  532. /package/build/modern/{components/Input.js.map → chunk-TIJAFPHQ.js.map} +0 -0
  533. /package/build/modern/{components/Label.js.map → chunk-TYPULJMJ.js.map} +0 -0
  534. /package/build/modern/{components/Modal.js.map → chunk-UDY6USHW.js.map} +0 -0
  535. /package/build/modern/{components/ModalDescription.js.map → chunk-V4YYGGMH.js.map} +0 -0
  536. /package/build/modern/{chunk-BAWZBF5Q.js.map → chunk-WN7TJX6J.js.map} +0 -0
  537. /package/build/modern/components/{ModalHeader.js.map → button/button.js.map} +0 -0
  538. /package/build/modern/components/{ModalHeading.js.map → button/index.js.map} +0 -0
  539. /package/build/modern/components/{NavMenuLink.js.map → button/parts.js.map} +0 -0
  540. /package/build/modern/components/{NavMenuList.js.map → checkbox/checkbox-icon.js.map} +0 -0
  541. /package/build/modern/components/{NavMenuTrigger.js.map → checkbox/checkbox.js.map} +0 -0
  542. /package/build/modern/components/{Radio.js.map → checkbox/index.js.map} +0 -0
  543. /package/build/modern/components/{Select.js.map → checkbox/parts.js.map} +0 -0
  544. /package/build/modern/components/{Textarea.js.map → checkbox/primitives.js.map} +0 -0
  545. /package/build/modern/components/{Toggle.js.map → cta-dialog/context.js.map} +0 -0
  546. /package/build/modern/{context/cta-modal.js.map → components/cta-dialog/index.js.map} +0 -0
  547. /package/src/components/{Modal.tsx → deprecated/Modal.tsx} +0 -0
  548. /package/src/components/{ModalDescription.tsx → deprecated/ModalDescription.tsx} +0 -0
  549. /package/src/components/{ModalHeader.tsx → deprecated/ModalHeader.tsx} +0 -0
  550. /package/src/components/{ModalHeading.tsx → deprecated/ModalHeading.tsx} +0 -0
@@ -14,6 +14,11 @@ import { ButtonHTMLAttributes } from 'react';
14
14
  import { ButtonVariantProps } from '@cerberus/styled-system/recipes';
15
15
  import { CancelDrop } from '@dnd-kit/core';
16
16
  import { ChangeEvent } from 'react';
17
+ import { CheckboxControlProps } from '@ark-ui/react';
18
+ import { CheckboxGroupProps } from '@ark-ui/react';
19
+ import { CheckboxIndicatorProps } from '@ark-ui/react';
20
+ import { CheckboxLabelProps } from '@ark-ui/react';
21
+ import { CheckboxRootProps } from '@ark-ui/react';
17
22
  import { CheckboxVariantProps } from '@cerberus/styled-system/recipes';
18
23
  import { ClientRect as ClientRect_2 } from '@dnd-kit/core';
19
24
  import { closestCenter } from '@dnd-kit/core';
@@ -75,8 +80,19 @@ import { DroppableContainer } from '@dnd-kit/core';
75
80
  import { DroppableContainers } from '@dnd-kit/core';
76
81
  import { DroppableMeasuring } from '@dnd-kit/core';
77
82
  import { ElementType } from 'react';
83
+ import { FieldHelperTextProps } from '@ark-ui/react/field';
84
+ import { FieldInputProps as FieldInputProps_2 } from '@ark-ui/react/field';
85
+ import { FieldLabelProps } from '@ark-ui/react/field';
78
86
  import { FieldMessageVariantProps } from '@cerberus/styled-system/recipes';
79
- import type { FieldsetHTMLAttributes } from 'react';
87
+ import { FieldRootProps as FieldRootProps_2 } from '@ark-ui/react/field';
88
+ import type { FieldRootProps as FieldRootProps_3 } from '@ark-ui/react';
89
+ import { FieldsetHelperTextProps } from '@ark-ui/react/fieldset';
90
+ import { FieldsetLegendProps } from '@ark-ui/react/fieldset';
91
+ import type { FieldsetRootProps } from '@ark-ui/react';
92
+ import { FieldsetRootProps as FieldsetRootProps_2 } from '@ark-ui/react/fieldset';
93
+ import { FieldsetVariantProps } from '@cerberus/styled-system/recipes';
94
+ import { FieldTextareaProps } from '@ark-ui/react/field';
95
+ import { FieldVariantProps } from '@cerberus/styled-system/recipes';
80
96
  import { FileStatusVariantProps } from '@cerberus/styled-system/recipes';
81
97
  import { ForwardRefExoticComponent } from 'react';
82
98
  import { getClientRect } from '@dnd-kit/core';
@@ -86,8 +102,8 @@ import { HTMLAttributes } from 'react';
86
102
  import { HtmlHTMLAttributes } from 'react';
87
103
  import { IconButtonVariantProps } from '@cerberus/styled-system/recipes';
88
104
  import { InputHTMLAttributes } from 'react';
89
- import { InputVariantProps } from '@cerberus/styled-system/recipes';
90
105
  import { JSX as JSX_2 } from 'react/jsx-runtime';
106
+ import type { JSX as JSX_3 } from 'react';
91
107
  import { KeyboardCode } from '@dnd-kit/core';
92
108
  import { KeyboardCodes } from '@dnd-kit/core';
93
109
  import { KeyboardCoordinateGetter } from '@dnd-kit/core';
@@ -96,6 +112,7 @@ import { KeyboardSensor } from '@dnd-kit/core';
96
112
  import { KeyboardSensorOptions } from '@dnd-kit/core';
97
113
  import { KeyboardSensorProps } from '@dnd-kit/core';
98
114
  import { LabelVariantProps } from '@cerberus/styled-system/recipes';
115
+ import { ListCollection } from '@ark-ui/react/select';
99
116
  import { MeasuringConfiguration } from '@dnd-kit/core';
100
117
  import { MeasuringFrequency } from '@dnd-kit/core';
101
118
  import { MeasuringStrategy } from '@dnd-kit/core';
@@ -103,11 +120,10 @@ import { Menu as Menu_2 } from '@ark-ui/react';
103
120
  import { Modifier } from '@dnd-kit/core';
104
121
  import { Modifiers } from '@dnd-kit/core';
105
122
  import { MouseEvent as MouseEvent_2 } from 'react';
106
- import { MouseEventHandler } from 'react';
123
+ import type { MouseEventHandler } from 'react';
107
124
  import { MouseSensor } from '@dnd-kit/core';
108
125
  import { MouseSensorOptions } from '@dnd-kit/core';
109
126
  import { NotificationVariantProps } from '@cerberus/styled-system/recipes';
110
- import type { OptionHTMLAttributes } from 'react';
111
127
  import { Over } from '@dnd-kit/core';
112
128
  import { PointerActivationConstraint } from '@dnd-kit/core';
113
129
  import { PointerEventHandlers } from '@dnd-kit/core';
@@ -120,14 +136,36 @@ import { PProps } from '@cerberus/styled-system/jsx';
120
136
  import type { Pretty } from '@cerberus/styled-system/types';
121
137
  import { ProgressBarVariantProps } from '@cerberus/styled-system/recipes';
122
138
  import { PropsWithChildren } from 'react';
123
- import { radio } from '@cerberus/styled-system/recipes';
139
+ import { RadioGroupIndicatorProps } from '@ark-ui/react/radio-group';
140
+ import { RadioGroupItemControlProps } from '@ark-ui/react/radio-group';
141
+ import { RadioGroupItemHiddenInputProps } from '@ark-ui/react/radio-group';
142
+ import { RadioGroupItemProps } from '@ark-ui/react/radio-group';
143
+ import type { RadioGroupItemProps as RadioGroupItemProps_2 } from '@ark-ui/react';
144
+ import { RadioGroupItemTextProps } from '@ark-ui/react/radio-group';
145
+ import { RadioGroupLabelProps } from '@ark-ui/react/radio-group';
146
+ import { RadioGroupRootProps } from '@ark-ui/react/radio-group';
147
+ import { RadioGroupVariantProps } from '@cerberus/styled-system/recipes';
124
148
  import { ReactNode } from 'react';
125
- import type { RecipeVariantProps } from '@cerberus/styled-system/types';
126
149
  import { rectIntersection } from '@dnd-kit/core';
127
150
  import { RefAttributes } from 'react';
128
151
  import { RefObject } from 'react';
129
152
  import { ScreenReaderInstructions } from '@dnd-kit/core';
130
- import type { SelectHTMLAttributes } from 'react';
153
+ import { SelectClearTriggerProps } from '@ark-ui/react/select';
154
+ import { SelectContentProps } from '@ark-ui/react/select';
155
+ import { SelectControlProps } from '@ark-ui/react/select';
156
+ import { SelectHiddenSelectProps } from '@ark-ui/react/select';
157
+ import { SelectIndicatorProps } from '@ark-ui/react/select';
158
+ import { SelectItemGroupLabelProps } from '@ark-ui/react/select';
159
+ import { SelectItemGroupProps } from '@ark-ui/react/select';
160
+ import { SelectItemIndicatorProps } from '@ark-ui/react/select';
161
+ import { SelectItemProps } from '@ark-ui/react/select';
162
+ import { SelectItemTextProps } from '@ark-ui/react/select';
163
+ import { SelectLabelProps } from '@ark-ui/react/select';
164
+ import { SelectPositionerProps } from '@ark-ui/react/select';
165
+ import { SelectRootProps } from '@ark-ui/react/select';
166
+ import { SelectTriggerProps } from '@ark-ui/react/select';
167
+ import { SelectValueChangeDetails } from '@ark-ui/react/select';
168
+ import { SelectValueTextProps } from '@ark-ui/react/select';
131
169
  import { SelectVariantProps } from '@cerberus/styled-system/recipes';
132
170
  import { Sensor } from '@dnd-kit/core';
133
171
  import { SensorContext } from '@dnd-kit/core';
@@ -139,15 +177,20 @@ import { SensorProps } from '@dnd-kit/core';
139
177
  import { SensorResponse } from '@dnd-kit/core';
140
178
  import { Sensors } from '@dnd-kit/core';
141
179
  import type { SVGProps } from 'react';
180
+ import { Switch as Switch_2 } from '@ark-ui/react';
181
+ import { SwitchControlProps } from '@ark-ui/react';
182
+ import { SwitchLabelProps } from '@ark-ui/react';
183
+ import { SwitchRecipeVariantProps } from '@cerberus/styled-system/recipes';
184
+ import { SwitchRootProps } from '@ark-ui/react';
185
+ import { SwitchThumbProps } from '@ark-ui/react';
142
186
  import type { TableHTMLAttributes } from 'react';
143
187
  import { Tabs as Tabs_2 } from '@ark-ui/react/tabs';
144
188
  import { TabsVariantProps } from '@cerberus/styled-system/recipes';
145
189
  import { TagVariantProps } from '@cerberus/styled-system/recipes';
146
190
  import { TbodyVariantProps } from '@cerberus/styled-system/recipes';
147
191
  import { TdVariantProps } from '@cerberus/styled-system/recipes';
148
- import type { TextareaHTMLAttributes } from 'react';
149
192
  import { ThVariantProps } from '@cerberus/styled-system/recipes';
150
- import { ToggleVariantProps } from '@cerberus/styled-system/recipes';
193
+ import { Toggle } from '@ark-ui/react/toggle';
151
194
  import { TooltipContentProps } from '@ark-ui/react/tooltip';
152
195
  import { TouchSensor } from '@dnd-kit/core';
153
196
  import { TouchSensorOptions } from '@dnd-kit/core';
@@ -520,6 +563,16 @@ declare type BaseNotificationHeadingProps = HTMLAttributes<HTMLParagraphElement>
520
563
  export { BaseNotificationHeadingProps }
521
564
  export { BaseNotificationHeadingProps as BaseNotificationHeadingProps_alias_1 }
522
565
 
566
+ declare interface BaseSelectProps {
567
+ /**
568
+ * The placeholder text when no option is selected.
569
+ */
570
+ placeholder?: string;
571
+ }
572
+ export { BaseSelectProps }
573
+ export { BaseSelectProps as BaseSelectProps_alias_1 }
574
+ export { BaseSelectProps as BaseSelectProps_alias_2 }
575
+
523
576
  /**
524
577
  * A component that allows the user to perform actions
525
578
  * @see https://cerberus.digitalu.design/react/button
@@ -527,14 +580,52 @@ export { BaseNotificationHeadingProps as BaseNotificationHeadingProps_alias_1 }
527
580
  declare function Button(props: ButtonProps): JSX.Element;
528
581
  export { Button }
529
582
  export { Button as Button_alias_1 }
583
+ export { Button as Button_alias_2 }
530
584
 
531
585
  /**
532
- * This module contains the Button component.
533
- * @module
586
+ * An icon to display in a button that utilizes the pending state to display
587
+ * a loading spinner.
588
+ */
589
+ declare function ButtonIcon(props: PropsWithChildren<object>): JSX_2.Element;
590
+ export { ButtonIcon }
591
+ export { ButtonIcon as ButtonIcon_alias_1 }
592
+ export { ButtonIcon as ButtonIcon_alias_2 }
593
+
594
+ /**
595
+ * An Object containing the parts of the Button component. For users that
596
+ * prefer Object component syntax.
597
+ *
598
+ * @remarks
599
+ *
600
+ * When using object component syntax, you import the ButtonParts object and
601
+ * the entire family of components vs. only what you use.
602
+ */
603
+ declare const ButtonParts: ButtonPartsValue;
604
+ export { ButtonParts }
605
+ export { ButtonParts as ButtonParts_alias_1 }
606
+ export { ButtonParts as ButtonParts_alias_2 }
607
+
608
+ /**
609
+ * This module contains the parts of the Button component.
610
+ * @module 'button/parts'
534
611
  */
535
- declare type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & ButtonVariantProps;
612
+ declare interface ButtonPartsValue {
613
+ /**
614
+ * The context provider of the button.
615
+ */
616
+ Root: ElementType;
617
+ /**
618
+ * The icon of the button.
619
+ */
620
+ Icon: ElementType;
621
+ }
622
+
623
+ declare type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & ButtonVariantProps & {
624
+ pending?: boolean;
625
+ };
536
626
  export { ButtonProps }
537
627
  export { ButtonProps as ButtonProps_alias_1 }
628
+ export { ButtonProps as ButtonProps_alias_2 }
538
629
 
539
630
  export { CancelDrop }
540
631
 
@@ -551,6 +642,48 @@ declare interface CerberusProviderProps {
551
642
  config: SystemConfig;
552
643
  }
553
644
 
645
+ /**
646
+ * Checkbox component is an abstraction of the primitives that displays a
647
+ * controlled checkbox with a label.
648
+ * @description [Cerberus Docs] https://cerberus.digitalu.design/react/checkbox
649
+ * @description [Ark Docs] https://ark-ui.com/docs/components/checkbox
650
+ */
651
+ declare function Checkbox(props: CheckboxProps): JSX_2.Element;
652
+ export { Checkbox }
653
+ export { Checkbox as Checkbox_alias_1 }
654
+ export { Checkbox as Checkbox_alias_2 }
655
+
656
+ /**
657
+ * Checkbox Control component used to display the control of the checkbox.
658
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
659
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
660
+ */
661
+ declare function CheckboxControl(props: CheckboxControlProps & CheckboxVariantProps): JSX_2.Element;
662
+ export { CheckboxControl }
663
+ export { CheckboxControl as CheckboxControl_alias_1 }
664
+ export { CheckboxControl as CheckboxControl_alias_2 }
665
+
666
+ /**
667
+ * Checkbox Group is used to group checkboxes together in a consistently styled
668
+ * way.
669
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
670
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
671
+ */
672
+ declare function CheckboxGroup(props: CheckboxGroupProps): JSX_2.Element;
673
+ export { CheckboxGroup }
674
+ export { CheckboxGroup as CheckboxGroup_alias_1 }
675
+ export { CheckboxGroup as CheckboxGroup_alias_2 }
676
+
677
+ /**
678
+ * Checkbox HiddenInput component used to provide the native checkbox input.
679
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
680
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
681
+ */
682
+ declare function CheckboxHiddenInput(props: CheckboxControlProps): JSX_2.Element;
683
+ export { CheckboxHiddenInput }
684
+ export { CheckboxHiddenInput as CheckboxHiddenInput_alias_1 }
685
+ export { CheckboxHiddenInput as CheckboxHiddenInput_alias_2 }
686
+
554
687
  /**
555
688
  * Checkbox component
556
689
  * @definition [ARIA Target Size](https://www.w3.org/WAI/WCAG21/Understanding/target-size.html#:~:text=Understanding%20SC%202.5.,%3ATarget%20Size%20(Level%20AAA)&text=The%20size%20of%20the%20target,Equivalent)
@@ -563,9 +696,7 @@ declare interface CerberusProviderProps {
563
696
  * </Field>
564
697
  * ```
565
698
  */
566
- declare function Checkbox(props: CheckboxProps): JSX_2.Element;
567
- export { Checkbox }
568
- export { Checkbox as Checkbox_alias_1 }
699
+ export declare function CheckboxIcon(props: CheckboxIconProps_2): JSX_2.Element;
569
700
 
570
701
  /**
571
702
  * This module contains substitute icons for the Checkbox component.
@@ -574,26 +705,101 @@ export { Checkbox as Checkbox_alias_1 }
574
705
  export declare type CheckboxIconProps = SVGProps<SVGSVGElement>;
575
706
 
576
707
  /**
577
- * This module contains the Checkbox component.
708
+ * This module contains the Checkbox Icon component.
578
709
  * @module
579
710
  */
580
- declare type CheckboxProps = CheckboxVariantProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {
711
+ declare interface CheckboxIconProps_2 {
712
+ indeterminate?: boolean;
713
+ }
714
+
715
+ /**
716
+ * Checkbox Indicator component used to display the indicator of the checkbox.
717
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
718
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
719
+ */
720
+ declare function CheckboxIndicator(props: CheckboxIndicatorProps): JSX_2.Element;
721
+ export { CheckboxIndicator }
722
+ export { CheckboxIndicator as CheckboxIndicator_alias_1 }
723
+ export { CheckboxIndicator as CheckboxIndicator_alias_2 }
724
+
725
+ /**
726
+ * Checkbox Label component used to display the label of the checkbox.
727
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
728
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
729
+ */
730
+ declare function CheckboxLabel(props: CheckboxLabelProps & CheckboxVariantProps): JSX_2.Element;
731
+ export { CheckboxLabel }
732
+ export { CheckboxLabel as CheckboxLabel_alias_1 }
733
+ export { CheckboxLabel as CheckboxLabel_alias_2 }
734
+
735
+ /**
736
+ * An Object containing the parts of the Checkbox component. For users that
737
+ * prefer Object component syntax.
738
+ *
739
+ * @remarks
740
+ *
741
+ * When using object component syntax, you import the CheckboxParts object and
742
+ * the entire family of components vs. only what you use.
743
+ */
744
+ declare const CheckboxParts: CheckboxPartsValue;
745
+ export { CheckboxParts }
746
+ export { CheckboxParts as CheckboxParts_alias_1 }
747
+ export { CheckboxParts as CheckboxParts_alias_2 }
748
+
749
+ /**
750
+ * This module contains the parts of the Field component.
751
+ * @module 'field/parts'
752
+ */
753
+ declare interface CheckboxPartsValue {
581
754
  /**
582
- * The id of the FieldMessage element describing the Checkbox.
755
+ * The container of the field.
583
756
  */
584
- describedBy?: string;
757
+ Root: ElementType;
585
758
  /**
586
- * The unique identifier for the checkbox. Required for accessibility.
759
+ * The label of the field.
587
760
  */
588
- id: string;
761
+ Label: ElementType;
589
762
  /**
590
- * Used to display a mixed checked state.
591
- * @description [ARIA Mixed State](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/examples/checkbox-mixed/)
763
+ * The control of the field.
592
764
  */
593
- mixed?: boolean;
594
- };
765
+ Control: ElementType;
766
+ /**
767
+ * The indicator of the field.
768
+ */
769
+ Indicator: ElementType;
770
+ /**
771
+ * The hidden input of the field.
772
+ */
773
+ HiddenInput: ElementType;
774
+ /**
775
+ * The checkbox group component.
776
+ */
777
+ Group: ElementType;
778
+ }
779
+
780
+ /**
781
+ * This module contains the Checkbox component.
782
+ * @module
783
+ */
784
+ declare type CheckboxProps = CheckboxVariantProps & CheckboxRootProps;
595
785
  export { CheckboxProps }
596
786
  export { CheckboxProps as CheckboxProps_alias_1 }
787
+ export { CheckboxProps as CheckboxProps_alias_2 }
788
+
789
+ /**
790
+ * This module contains the Checkbox primitives.
791
+ * @module 'react/checkbox'
792
+ */
793
+ /**
794
+ * Checkbox Root component used to provide the context to all other checkbox
795
+ * primitives.
796
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
797
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
798
+ */
799
+ declare function CheckboxRoot(props: CheckboxRootProps): JSX_2.Element;
800
+ export { CheckboxRoot }
801
+ export { CheckboxRoot as CheckboxRoot_alias_1 }
802
+ export { CheckboxRoot as CheckboxRoot_alias_2 }
597
803
 
598
804
  /**
599
805
  * Checkmark icon for Checkbox component
@@ -745,10 +951,53 @@ declare interface ConfirmModalValue {
745
951
  export { ConfirmModalValue }
746
952
  export { ConfirmModalValue as ConfirmModalValue_alias_1 }
747
953
 
954
+ /**
955
+ * Creates the action data to pass to the cta modal `show` method.
956
+ */
957
+ declare function createCTAModalActions(providedActions: CTAModalAction): CTAModalActionReturn;
958
+ export { createCTAModalActions }
959
+ export { createCTAModalActions as createCTAModalActions_alias_1 }
960
+ export { createCTAModalActions as createCTAModalActions_alias_2 }
961
+
748
962
  declare function createNavTriggerProps(values: NavTriggerAriaValues): NavTriggerAriaReturn;
749
963
  export { createNavTriggerProps }
750
964
  export { createNavTriggerProps as createNavTriggerProps_alias_1 }
751
965
 
966
+ /**
967
+ * A helper function to create a SelectCollection object.
968
+ * @param collection - An array of SelectCollectionItem objects that matches
969
+ * the following shape:
970
+ * ```ts
971
+ * [{ label: 'Hades', value: 'hades', disabled?: true }]
972
+ * ```
973
+ */
974
+ declare function createSelectCollection(collection: SelectCollectionItem[]): ListCollection<SelectCollectionItem>;
975
+ export { createSelectCollection }
976
+ export { createSelectCollection as createSelectCollection_alias_1 }
977
+ export { createSelectCollection as createSelectCollection_alias_2 }
978
+
979
+ /**
980
+ * This module provide utility functions for the cta modal.
981
+ * @module 'react/cta-modal/utils'
982
+ */
983
+ declare type CTAButtonAction = {
984
+ /**
985
+ * The text of the button.
986
+ */
987
+ text: string;
988
+ /**
989
+ * The onClick handler for the button.
990
+ */
991
+ handleClick: MouseEventHandler<HTMLButtonElement>;
992
+ };
993
+ export { CTAButtonAction }
994
+ export { CTAButtonAction as CTAButtonAction_alias_1 }
995
+ export { CTAButtonAction as CTAButtonAction_alias_2 }
996
+
997
+ /**
998
+ * This module provides the provider and hook for the cta modal.
999
+ * @module 'react/cta-modal/provider'
1000
+ */
752
1001
  /**
753
1002
  * Provides a CTA modal to the app.
754
1003
  * @see https://cerberus.digitalu.design/react/cta-modal
@@ -781,19 +1030,35 @@ export { createNavTriggerProps as createNavTriggerProps_alias_1 }
781
1030
  * }, [cta])
782
1031
  * ```
783
1032
  */
784
- declare function CTAModal(props: PropsWithChildren<CTAModalProviderProps>): JSX_2.Element;
1033
+ declare function CTAModal(props: PropsWithChildren<object>): JSX_2.Element;
785
1034
  export { CTAModal }
786
1035
  export { CTAModal as CTAModal_alias_1 }
1036
+ export { CTAModal as CTAModal_alias_2 }
1037
+
1038
+ declare type CTAModalAction = (CTAButtonAction | ReactNode)[];
1039
+ export { CTAModalAction }
1040
+ export { CTAModalAction as CTAModalAction_alias_1 }
1041
+ export { CTAModalAction as CTAModalAction_alias_2 }
1042
+
1043
+ declare interface CTAModalActionReturn {
1044
+ /**
1045
+ * The type of the action content.
1046
+ */
1047
+ type: 'reactNode' | 'btnAction';
1048
+ /**
1049
+ * The actions for the cta modal. Max of 2 actions.
1050
+ */
1051
+ _actions: CTAModalAction;
1052
+ }
1053
+ export { CTAModalActionReturn }
1054
+ export { CTAModalActionReturn as CTAModalActionReturn_alias_1 }
1055
+ export { CTAModalActionReturn as CTAModalActionReturn_alias_2 }
787
1056
 
788
- declare type CTAModalProviderProps = PropsWithChildren<unknown>;
789
- export { CTAModalProviderProps }
790
- export { CTAModalProviderProps as CTAModalProviderProps_alias_1 }
1057
+ export declare const CTAModalContext: Context<CTAModalValue | null>;
791
1058
 
792
- declare interface CTAModalValue {
1059
+ export declare interface CTAModalValue {
793
1060
  show: (options: ShowCTAModalOptions) => void;
794
1061
  }
795
- export { CTAModalValue }
796
- export { CTAModalValue as CTAModalValue_alias_1 }
797
1062
 
798
1063
  declare type CustomThemes<K extends string = DefaultThemes> = 'cerberus' | K;
799
1064
  export { CustomThemes }
@@ -1117,6 +1382,7 @@ declare interface DefinedIcons<T extends IconType = IconType> {
1117
1382
  invalidAlt: T;
1118
1383
  redo: T;
1119
1384
  selectArrow: T;
1385
+ selectChecked: T;
1120
1386
  toggleChecked: T;
1121
1387
  }
1122
1388
  export { DefinedIcons }
@@ -1443,18 +1709,34 @@ export { FeatureFlagValue }
1443
1709
  export { FeatureFlagValue as FeatureFlagValue_alias_1 }
1444
1710
 
1445
1711
  /**
1446
- * Provides the field state for a all related components used within a group.
1447
- * @see https://cerberus.digitalu.design/react/input
1712
+ * The Field component is the context provider for all FieldParts and displays
1713
+ * the label, helperText, and ErrorText.
1714
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1715
+ * @example
1716
+ * ```tsx
1717
+ * <Field
1718
+ * ids={{
1719
+ * control: 'firstName',
1720
+ * }}
1721
+ * label="Label"
1722
+ * helperText="This is what people will see on your profile."
1723
+ * errorText="A first name is required to create an account."
1724
+ * required
1725
+ * >
1726
+ * <Input name="firstName" type="text" />
1727
+ * </Field>
1728
+ * ```
1448
1729
  */
1449
- declare function Field(props: PropsWithChildren<FieldContextValue>): JSX.Element;
1730
+ declare function Field(props: FieldProps): JSX_2.Element;
1450
1731
  export { Field }
1451
1732
  export { Field as Field_alias_1 }
1733
+ export { Field as Field_alias_2 }
1452
1734
 
1453
1735
  /**
1454
1736
  * This module provides a context and hook for the field.
1455
1737
  * @module Field
1456
1738
  */
1457
- declare interface FieldContextValue {
1739
+ export declare interface FieldContextValue {
1458
1740
  /**
1459
1741
  * Whether the field is disabled.
1460
1742
  * @description [Moz Input Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes)
@@ -1473,23 +1755,93 @@ declare interface FieldContextValue {
1473
1755
  */
1474
1756
  invalid?: boolean;
1475
1757
  }
1476
- export { FieldContextValue }
1477
- export { FieldContextValue as FieldContextValue_alias_1 }
1478
1758
 
1479
1759
  /**
1480
- * A component that provides feedback about the field.
1481
- * @see https://cerberus.digitalu.design/react/field-message
1760
+ * The error text for the Field component that is shown when the field is
1761
+ * invalid.
1762
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1482
1763
  * @example
1483
1764
  * ```tsx
1484
- * <Field>
1485
- * <Label htmlFor="first_name">First Name</Label>
1486
- * <Input aria-describedBy="help:first_name" id="first_name" type="text" />
1487
- * <FieldMessage id="help:first_name">
1488
- * This will only be used in your account information.
1489
- * </FieldMessage>
1490
- * </Field>
1765
+ * <FieldRoot>
1766
+ * <FieldInput />
1767
+ * <FieldErrorText>Error text</FieldErrorText>
1768
+ * </FieldRoot>
1769
+ * ```
1770
+ */
1771
+ declare function FieldErrorText(props: FieldHelperTextProps): JSX_2.Element | null;
1772
+ export { FieldErrorText }
1773
+ export { FieldErrorText as FieldErrorText_alias_1 }
1774
+ export { FieldErrorText as FieldErrorText_alias_2 }
1775
+
1776
+ /**
1777
+ * The helper text for the Field component that is shown when the field is
1778
+ * valid.
1779
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1780
+ * @example
1781
+ * ```tsx
1782
+ * <FieldRoot>
1783
+ * <FieldInput />
1784
+ * <FieldHelperText>Helper text</FieldHelperText>
1785
+ * </FieldRoot>
1786
+ * ```
1787
+ */
1788
+ declare function FieldHelperText(props: FieldHelperTextProps): JSX_2.Element | null;
1789
+ export { FieldHelperText }
1790
+ export { FieldHelperText as FieldHelperText_alias_1 }
1791
+ export { FieldHelperText as FieldHelperText_alias_2 }
1792
+
1793
+ declare type FieldIndicatorProps = HTMLAttributes<HTMLSpanElement>;
1794
+ export { FieldIndicatorProps }
1795
+ export { FieldIndicatorProps as FieldIndicatorProps_alias_1 }
1796
+ export { FieldIndicatorProps as FieldIndicatorProps_alias_2 }
1797
+
1798
+ /**
1799
+ * The input for the Field component.
1800
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1801
+ * @example
1802
+ * ```tsx
1803
+ * <FieldRoot>
1804
+ * <FieldInput />
1805
+ * </FieldRoot>
1806
+ * ```
1807
+ */
1808
+ declare function FieldInput(props: FieldInputProps): JSX_2.Element;
1809
+ export { FieldInput }
1810
+ export { FieldInput as FieldInput_alias_1 }
1811
+ export { FieldInput as FieldInput_alias_2 }
1812
+
1813
+ declare interface FieldInputProps extends Omit<FieldInputProps_2, 'size'>, FieldVariantProps {
1814
+ /**
1815
+ * An optional icon to display at the start of the input.
1816
+ */
1817
+ startIcon?: ReactNode;
1818
+ /**
1819
+ * An optional icon to display at the end of the input.
1820
+ */
1821
+ endIcon?: ReactNode;
1822
+ }
1823
+ export { FieldInputProps }
1824
+ export { FieldInputProps as FieldInputProps_alias_1 }
1825
+ export { FieldInputProps as FieldInputProps_alias_2 }
1826
+
1827
+ /**
1828
+ * The label for the Field component.
1829
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1830
+ * @example
1831
+ * ```tsx
1832
+ * <FieldRoot>
1833
+ * <FieldLabel>Label</FieldLabel>
1834
+ * </FieldRoot>
1491
1835
  * ```
1492
1836
  */
1837
+ declare function FieldLabel(props: FieldLabelProps): JSX_2.Element;
1838
+ export { FieldLabel }
1839
+ export { FieldLabel as FieldLabel_alias_1 }
1840
+ export { FieldLabel as FieldLabel_alias_2 }
1841
+
1842
+ /**
1843
+ * @deprecated use FieldHelperText, FieldErrorText, or FieldParts instead
1844
+ */
1493
1845
  declare function FieldMessage(props: FieldMessageProps): JSX_2.Element;
1494
1846
  export { FieldMessage }
1495
1847
  export { FieldMessage as FieldMessage_alias_1 }
@@ -1515,74 +1867,155 @@ export { FieldMessageProps }
1515
1867
  export { FieldMessageProps as FieldMessageProps_alias_1 }
1516
1868
 
1517
1869
  /**
1518
- * A component to group related elements in a form for accessibility.
1519
- * @memberof Field
1520
- * @see https://cerberus.digitalu.com/react/fieldset
1521
- * @description [A11y Form Checklist](https://www.a11yproject.com/checklist/#forms)
1522
- * @description [MDN Web Docs: Fieldset](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset)
1870
+ * An Object containing the parts of the Field component. For users that
1871
+ * prefer Object component syntax.
1872
+ *
1873
+ * @remarks
1874
+ *
1875
+ * When using object component syntax, you import the FieldParts object and
1876
+ * the entire family of components vs. only what you use.
1877
+ */
1878
+ declare const FieldParts: FieldPartsValue;
1879
+ export { FieldParts }
1880
+ export { FieldParts as FieldParts_alias_1 }
1881
+ export { FieldParts as FieldParts_alias_2 }
1882
+
1883
+ /**
1884
+ * This module contains the parts of the Field component.
1885
+ * @module 'field/parts'
1886
+ */
1887
+ declare interface FieldPartsValue {
1888
+ /**
1889
+ * The container of the field.
1890
+ */
1891
+ Root: ElementType;
1892
+ /**
1893
+ * The label of the field.
1894
+ */
1895
+ Label: ElementType;
1896
+ /**
1897
+ * The input of the field.
1898
+ */
1899
+ Input: ElementType;
1900
+ /**
1901
+ * The textarea of the field.
1902
+ */
1903
+ Textarea: ElementType;
1904
+ /**
1905
+ * The text that displays when the field is valid.
1906
+ */
1907
+ HelperText: ElementType;
1908
+ /**
1909
+ * The text that displays when the field is invalid.
1910
+ */
1911
+ ErrorText: ElementType;
1912
+ /**
1913
+ * The indicator that appears at the start of the field.
1914
+ */
1915
+ StartIndicator: ElementType;
1916
+ /**
1917
+ * The status indicator of the field.
1918
+ */
1919
+ StatusIndicator: ElementType;
1920
+ /**
1921
+ * The indicator that appears at the end of the field.
1922
+ */
1923
+ RequiredIndicator: ElementType;
1924
+ }
1925
+
1926
+ declare interface FieldProps extends FieldRootProps_2 {
1927
+ /**
1928
+ * The label of the field.
1929
+ */
1930
+ label?: string;
1931
+ /**
1932
+ * The helper text of the field.
1933
+ */
1934
+ helperText?: string;
1935
+ /**
1936
+ * A helper text positioned at the end of the field. Good for Textarea fields.
1937
+ */
1938
+ secondaryHelperText?: string;
1939
+ /**
1940
+ * The error text of the field. Shown when the field is invalid.
1941
+ */
1942
+ errorText?: string;
1943
+ }
1944
+ export { FieldProps }
1945
+ export { FieldProps as FieldProps_alias_1 }
1946
+ export { FieldProps as FieldProps_alias_2 }
1947
+
1948
+ /**
1949
+ * @deprecated use FieldRoot or FieldParts instead
1950
+ */
1951
+ export declare function FieldProvider(props: PropsWithChildren<FieldRootProps_3>): JSX.Element;
1952
+
1953
+ /**
1954
+ * The required indicator for the Field component.
1955
+ */
1956
+ declare function FieldRequiredIndicator(): JSX_2.Element;
1957
+ export { FieldRequiredIndicator }
1958
+ export { FieldRequiredIndicator as FieldRequiredIndicator_alias_1 }
1959
+ export { FieldRequiredIndicator as FieldRequiredIndicator_alias_2 }
1960
+
1961
+ /**
1962
+ * The context & container for the Field components.
1963
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1523
1964
  * @example
1524
1965
  * ```tsx
1525
- * import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'
1526
- * import { Hstack } from '@cerberus/styled-system/jsx'
1527
- *
1528
- * function SomeForm() {
1529
- * return (
1530
- * <form>
1531
- * <Fieldset>
1532
- * <Legend>Do you like cats?</Legend>
1533
- * <Hstack>
1534
- * <Field>
1535
- * <Radio id="yes" name="cats" value="yes" />
1536
- * <Label htmlFor="yes">Yes</Label>
1537
- * </Field>
1538
- * </Hstack>
1539
- * <Hstack>
1540
- * <Field>
1541
- * <Radio id="no" name="cats" value="no" />
1542
- * <Label htmlFor="no">No</Label>
1543
- * </Field>
1544
- * </Hstack>
1545
- * </Fieldset>
1546
- * </form>
1547
- * )
1548
- * }
1966
+ * <FieldRoot required ids={{ input: 'exampleId' }}>
1967
+ * <FieldLabel>Label</FieldLabel>
1968
+ * <FieldInput />
1969
+ * </FieldRoot>
1970
+ * ```
1971
+ */
1972
+ declare function FieldRoot(props: FieldRootProps): JSX_2.Element;
1973
+ export { FieldRoot }
1974
+ export { FieldRoot as FieldRoot_alias_1 }
1975
+ export { FieldRoot as FieldRoot_alias_2 }
1976
+
1977
+ /**
1978
+ * This module contains all the primitives of the Field component.
1979
+ * @module 'field'
1980
+ */
1981
+ declare type FieldRootProps = FieldRootProps_2 & FieldVariantProps;
1982
+ export { FieldRootProps }
1983
+ export { FieldRootProps as FieldRootProps_alias_1 }
1984
+ export { FieldRootProps as FieldRootProps_alias_2 }
1985
+
1986
+ /**
1987
+ * A component used for grouping related fields in a form that is an
1988
+ * abstraction of the Fieldset primitives.
1989
+ * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
1990
+ * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
1549
1991
  */
1550
1992
  declare function Fieldset(props: FieldsetProps): JSX_2.Element;
1551
1993
  export { Fieldset }
1552
1994
  export { Fieldset as Fieldset_alias_1 }
1995
+ export { Fieldset as Fieldset_alias_2 }
1553
1996
 
1554
1997
  /**
1555
- * Used for labeling inputs that are children of a Fieldset group.
1556
- * @memberof Fieldset
1557
- * @see https://cerberus.digitalu.design/react/fieldset
1558
- * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
1559
- * @example
1560
- * ```tsx
1561
- * import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'
1562
- * import { Hstack } from '@cerberus/styled-system/jsx'
1563
- *
1564
- * function SomeForm() {
1565
- * return (
1566
- * <form>
1567
- * <Fieldset>
1568
- * <Legend>Do you like cats?</Legend>
1569
- * <Hstack>
1570
- * <Field>
1571
- * <Radio id="yes" name="cats" value="yes" />
1572
- * <FieldsetLabel htmlFor="yes">Yes</FieldsetLabel>
1573
- * </Field>
1574
- * </Hstack>
1575
- * <Hstack>
1576
- * <Field>
1577
- * <Radio id="no" name="cats" value="no" />
1578
- * <FieldsetLabel htmlFor="no">No</FieldsetLabel>
1579
- * </Field>
1580
- * </Hstack>
1581
- * </Fieldset>
1582
- * </form>
1583
- * )
1584
- * }
1585
- * ```
1998
+ * The error text element for the Fieldset group.
1999
+ * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
2000
+ * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
2001
+ */
2002
+ declare function FieldsetErrorText(props: FieldsetHelperTextProps): JSX_2.Element;
2003
+ export { FieldsetErrorText }
2004
+ export { FieldsetErrorText as FieldsetErrorText_alias_1 }
2005
+ export { FieldsetErrorText as FieldsetErrorText_alias_2 }
2006
+
2007
+ /**
2008
+ * The description element for the Fieldset group.
2009
+ * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
2010
+ * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
2011
+ */
2012
+ declare function FieldsetHelperText(props: FieldsetHelperTextProps & FieldsetVariantProps): JSX_2.Element;
2013
+ export { FieldsetHelperText }
2014
+ export { FieldsetHelperText as FieldsetHelperText_alias_1 }
2015
+ export { FieldsetHelperText as FieldsetHelperText_alias_2 }
2016
+
2017
+ /**
2018
+ * @deprecated
1586
2019
  */
1587
2020
  declare function FieldsetLabel(props: FieldsetLabelProps): JSX_2.Element;
1588
2021
  export { FieldsetLabel }
@@ -1592,24 +2025,150 @@ export { FieldsetLabel as FieldsetLabel_alias_1 }
1592
2025
  * This module contains the FieldsetLabel component.
1593
2026
  * @module FieldsetLabel
1594
2027
  */
1595
- declare type FieldsetLabelProps = LabelProps & LabelVariantProps;
2028
+ declare type FieldsetLabelProps = LabelProps & LabelVariantProps & {
2029
+ htmlFor?: string;
2030
+ };
1596
2031
  export { FieldsetLabelProps }
1597
2032
  export { FieldsetLabelProps as FieldsetLabelProps_alias_1 }
1598
2033
 
1599
2034
  /**
1600
- * This module contains the Fieldset component.
1601
- * @module Fieldset
2035
+ * The legend element for the Fieldset group.
2036
+ * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
2037
+ * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
1602
2038
  */
1603
- declare type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>;
1604
- export { FieldsetProps }
1605
- export { FieldsetProps as FieldsetProps_alias_1 }
2039
+ declare function FieldsetLegend(props: FieldsetLegendProps & FieldsetVariantProps): JSX_2.Element;
2040
+ export { FieldsetLegend }
2041
+ export { FieldsetLegend as FieldsetLegend_alias_1 }
2042
+ export { FieldsetLegend as FieldsetLegend_alias_2 }
1606
2043
 
1607
- declare interface FileBaseStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
1608
- /**
1609
- * A unique identifier for the file status. Required for accessibility.
1610
- */
1611
- id: string;
1612
- /**
2044
+ /**
2045
+ * An Object containing the parts of the Field component. For users that
2046
+ * prefer Object component syntax.
2047
+ *
2048
+ * @remarks
2049
+ *
2050
+ * When using object component syntax, you import the FieldParts object and
2051
+ * the entire family of components vs. only what you use.
2052
+ */
2053
+ declare const FieldsetParts: FieldsetPartsValue;
2054
+ export { FieldsetParts }
2055
+ export { FieldsetParts as FieldsetParts_alias_1 }
2056
+ export { FieldsetParts as FieldsetParts_alias_2 }
2057
+
2058
+ /**
2059
+ * This module contains the parts of the Field component.
2060
+ * @module 'field/parts'
2061
+ */
2062
+ declare interface FieldsetPartsValue {
2063
+ /**
2064
+ * The container of the field.
2065
+ */
2066
+ Root: ElementType;
2067
+ /**
2068
+ * The label of the field.
2069
+ */
2070
+ Legend: ElementType;
2071
+ /**
2072
+ * The text that displays when the field is valid.
2073
+ */
2074
+ HelperText: ElementType;
2075
+ /**
2076
+ * The text that displays when the field is invalid.
2077
+ */
2078
+ ErrorText: ElementType;
2079
+ }
2080
+
2081
+ /**
2082
+ * This module contains the Fieldset component.
2083
+ * @module Fieldset
2084
+ */
2085
+ declare interface FieldsetProps extends FieldsetRootProps, FieldsetVariantProps {
2086
+ /**
2087
+ * The legend/title/label of the fieldset group.
2088
+ */
2089
+ legend?: string;
2090
+ /**
2091
+ * The description text for the fieldset group.
2092
+ */
2093
+ helperText?: string;
2094
+ /**
2095
+ * The error text for the fieldset group shown when the field is invalid.
2096
+ */
2097
+ errorText?: string;
2098
+ }
2099
+ export { FieldsetProps }
2100
+ export { FieldsetProps as FieldsetProps_alias_1 }
2101
+ export { FieldsetProps as FieldsetProps_alias_2 }
2102
+
2103
+ /**
2104
+ * This module contains all the primitives of the Fieldset component.
2105
+ * @module 'react/fieldset'
2106
+ */
2107
+ /**
2108
+ * The context & container for the Fieldset components.
2109
+ * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
2110
+ * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
2111
+ */
2112
+ declare function FieldsetRoot(props: FieldsetRootProps_2): JSX_2.Element;
2113
+ export { FieldsetRoot }
2114
+ export { FieldsetRoot as FieldsetRoot_alias_1 }
2115
+ export { FieldsetRoot as FieldsetRoot_alias_2 }
2116
+
2117
+ /**
2118
+ * The start indicator displays an indicator at the start of the Input.
2119
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2120
+ */
2121
+ declare function FieldStartIndicator(props: FieldIndicatorProps): JSX_2.Element | null;
2122
+ export { FieldStartIndicator }
2123
+ export { FieldStartIndicator as FieldStartIndicator_alias_1 }
2124
+ export { FieldStartIndicator as FieldStartIndicator_alias_2 }
2125
+
2126
+ /**
2127
+ * The invalid status indicator for the Field component.
2128
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2129
+ * @example
2130
+ * ```tsx
2131
+ * <FieldRoot>
2132
+ * <FieldStatusIndicator />
2133
+ * </FieldRoot>
2134
+ * ```
2135
+ */
2136
+ declare function FieldStatusIndicator(props: FieldStatusIndicatorProps): JSX_2.Element;
2137
+ export { FieldStatusIndicator }
2138
+ export { FieldStatusIndicator as FieldStatusIndicator_alias_1 }
2139
+ export { FieldStatusIndicator as FieldStatusIndicator_alias_2 }
2140
+
2141
+ declare interface FieldStatusIndicatorProps extends HTMLAttributes<HTMLSpanElement> {
2142
+ /**
2143
+ * The fallback content to display when the field is valid.
2144
+ */
2145
+ fallback?: ReactNode;
2146
+ }
2147
+ export { FieldStatusIndicatorProps }
2148
+ export { FieldStatusIndicatorProps as FieldStatusIndicatorProps_alias_1 }
2149
+ export { FieldStatusIndicatorProps as FieldStatusIndicatorProps_alias_2 }
2150
+
2151
+ /**
2152
+ * The textarea for the Field component.
2153
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2154
+ * @example
2155
+ * ```tsx
2156
+ * <FieldRoot>
2157
+ * <FieldTextarea />
2158
+ * </FieldRoot>
2159
+ * ```
2160
+ */
2161
+ declare function FieldTextarea(props: FieldTextareaProps): JSX_2.Element;
2162
+ export { FieldTextarea }
2163
+ export { FieldTextarea as FieldTextarea_alias_1 }
2164
+ export { FieldTextarea as FieldTextarea_alias_2 }
2165
+
2166
+ declare interface FileBaseStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
2167
+ /**
2168
+ * A unique identifier for the file status. Required for accessibility.
2169
+ */
2170
+ id: string;
2171
+ /**
1613
2172
  * The name of the file.
1614
2173
  */
1615
2174
  file: string;
@@ -1701,6 +2260,22 @@ declare interface FileUploaderProps extends InputHTMLAttributes<HTMLInputElement
1701
2260
  export { FileUploaderProps }
1702
2261
  export { FileUploaderProps as FileUploaderProps_alias_1 }
1703
2262
 
2263
+ /**
2264
+ * The For component is used to iterate over an array and render a list of
2265
+ * components or display a fallback when the array is empty.
2266
+ * Inspired by the `<For>` component from SolidJS.
2267
+ *
2268
+ * @example
2269
+ * ```tsx
2270
+ * <For each={['a', 'b', 'c']}>
2271
+ * {(item, index) => <div key={index}>{item}</div>}
2272
+ * </For>
2273
+ * ```
2274
+ */
2275
+ declare function For<T extends readonly unknown[], U extends JSX_3.Element>(props: ForProps<T, U>): string | number | boolean | JSX_3.Element | Iterable<ReactNode> | null | undefined;
2276
+ export { For }
2277
+ export { For as For_alias_1 }
2278
+
1704
2279
  /**
1705
2280
  * Formats a date string to US Military format.
1706
2281
  * @param date The date string to format (i.e., '2024-01-01')
@@ -1746,6 +2321,23 @@ declare function formatNotifyCount(count: number): string;
1746
2321
  export { formatNotifyCount }
1747
2322
  export { formatNotifyCount as formatNotifyCount_alias_1 }
1748
2323
 
2324
+ declare interface ForProps<T extends readonly unknown[], U extends JSX_3.Element> {
2325
+ /**
2326
+ * The array to iterate over.
2327
+ */
2328
+ each: T | undefined | null | false;
2329
+ /**
2330
+ * The fallback to render when the array is empty.
2331
+ */
2332
+ fallback?: JSX_3.Element;
2333
+ /**
2334
+ * The children to render for each item in the array.
2335
+ */
2336
+ children: (item: T[number], index: number) => U;
2337
+ }
2338
+ export { ForProps }
2339
+ export { ForProps as ForProps_alias_1 }
2340
+
1749
2341
  export { getClientRect }
1750
2342
 
1751
2343
  export { getFirstCollision }
@@ -1860,39 +2452,29 @@ export { IndeterminateProgressBarProps }
1860
2452
  export { IndeterminateProgressBarProps as IndeterminateProgressBarProps_alias_1 }
1861
2453
 
1862
2454
  /**
1863
- * A component that allows the user to input text. Must be wrapped in a Field
1864
- * component to keep track of the state for entire group of elements related to
1865
- * the field.
1866
- * @see https://cerberus.digitalu.design/react/input
2455
+ * A named export for the FieldInput component.
2456
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2457
+ * @example
2458
+ * ```tsx
2459
+ * import { Input } from '@cerberus/react'
2460
+ *
2461
+ * <Field
2462
+ * ids={{
2463
+ * control: 'email',
2464
+ * }}
2465
+ * label="Enter your email"
2466
+ * helperText="We'll never share your email with anyone else."
2467
+ * errorText="Email is required."
2468
+ * required
2469
+ * >
2470
+ * <Input type="email" />
2471
+ * </Field>
2472
+ * ```
1867
2473
  */
1868
- declare function Input(props: InputProps): JSX_2.Element;
2474
+ declare const Input: typeof FieldInput;
1869
2475
  export { Input }
1870
2476
  export { Input as Input_alias_1 }
1871
-
1872
- declare interface InputBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'size'> {
1873
- /**
1874
- * The id of the FieldMessage component used to describe the input. Required for accessibility.
1875
- */
1876
- describedBy?: string;
1877
- /**
1878
- * The unique identifier for the input element. Required for accessibility.
1879
- */
1880
- id: string;
1881
- /**
1882
- * An optional icon to display at the start of the input.
1883
- */
1884
- startIcon?: ReactNode;
1885
- /**
1886
- * An optional icon to display at the end of the input.
1887
- */
1888
- endIcon?: ReactNode;
1889
- }
1890
- export { InputBaseProps }
1891
- export { InputBaseProps as InputBaseProps_alias_1 }
1892
-
1893
- declare type InputProps = InputBaseProps & InputVariantProps;
1894
- export { InputProps }
1895
- export { InputProps as InputProps_alias_1 }
2477
+ export { Input as Input_alias_2 }
1896
2478
 
1897
2479
  export { KeyboardCode }
1898
2480
 
@@ -1907,16 +2489,7 @@ export { KeyboardSensorOptions }
1907
2489
  export { KeyboardSensorProps }
1908
2490
 
1909
2491
  /**
1910
- * A a11y compliant label component.
1911
- * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
1912
- * @see https://cerberus.digitalu.design/react/label
1913
- * @example
1914
- * ```tsx
1915
- * <Field required>
1916
- * <Label htmlFor="search" hidden>Search everything</Label>
1917
- * <Input id="search" startIcon={Search} type="text" />
1918
- * </Field>
1919
- * ```
2492
+ * @deprecated Use FieldLabel or FieldParts.Label instead.
1920
2493
  */
1921
2494
  declare function Label(props: PropsWithChildren<LabelProps>): JSX_2.Element;
1922
2495
  export { Label }
@@ -1926,16 +2499,7 @@ export { Label as Label_alias_1 }
1926
2499
  * This module contains the Label component.
1927
2500
  * @module
1928
2501
  */
1929
- declare interface LabelBaseProps extends HTMLAttributes<HTMLLabelElement> {
1930
- /**
1931
- * The unique identifier for the input element. Required for accessibility.
1932
- */
1933
- htmlFor: string;
1934
- /**
1935
- * Used to hide the label from the UI while keeping it accessible to screen readers. Typically used for global search inputs that have no visible label.
1936
- */
1937
- hidden?: boolean;
1938
- }
2502
+ declare type LabelBaseProps = HTMLAttributes<HTMLLabelElement>;
1939
2503
  export { LabelBaseProps }
1940
2504
  export { LabelBaseProps as LabelBaseProps_alias_1 }
1941
2505
 
@@ -1989,6 +2553,10 @@ declare type LegendProps = HTMLAttributes<HTMLLegendElement> & LabelVariantProps
1989
2553
  export { LegendProps }
1990
2554
  export { LegendProps as LegendProps_alias_1 }
1991
2555
 
2556
+ export { ListCollection }
2557
+ export { ListCollection as ListCollection_alias_1 }
2558
+ export { ListCollection as ListCollection_alias_2 }
2559
+
1992
2560
  /**
1993
2561
  * Create a system configuration object to be used on the CerberusProvider.
1994
2562
  * @param options The system configuration options you want to customize.
@@ -2552,21 +3120,51 @@ declare interface NotifyOptions {
2552
3120
  export { NotifyOptions }
2553
3121
  export { NotifyOptions as NotifyOptions_alias_1 }
2554
3122
 
3123
+ declare function Option_2(props: OptionProps): JSX_2.Element;
3124
+ export { Option_2 as Option }
3125
+ export { Option_2 as Option_alias_1 }
3126
+ export { Option_2 as Option_alias_2 }
3127
+
2555
3128
  /**
2556
- * Option component
2557
- * props: OptionHTMLAttributes<HTMLOptionElement>
3129
+ * The OptionGroup component is a group of options in the dropdown list.
3130
+ * @definition [Select docs](https://cerberus.digitalu.design/react/select)
3131
+ * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
2558
3132
  * @example
2559
3133
  * ```tsx
2560
- * <Option value="one">Option 1</Option>
3134
+ * <OptionGroup>
3135
+ * <OptionGroupLabel>Greek gods</OptionGroupLabel>
3136
+ * ...
3137
+ * </OptionGroup>
2561
3138
  * ```
2562
3139
  */
2563
- declare function Option_2(props: OptionProps): JSX_2.Element;
2564
- export { Option_2 as Option }
2565
- export { Option_2 as Option_alias_1 }
3140
+ declare function OptionGroup(props: SelectItemGroupProps): JSX_2.Element;
3141
+ export { OptionGroup }
3142
+ export { OptionGroup as OptionGroup_alias_1 }
3143
+ export { OptionGroup as OptionGroup_alias_2 }
3144
+
3145
+ /**
3146
+ * The OptionGroupLabel component is the label of the OptionGroup.
3147
+ * @definition [Select docs](https://cerberus.digitalu.design/react/select)
3148
+ * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
3149
+ * @example
3150
+ * ```tsx
3151
+ * <OptionGroupLabel>Greek gods</OptionGroupLabel>
3152
+ * ```
3153
+ */
3154
+ declare function OptionGroupLabel(props: SelectItemGroupLabelProps): JSX_2.Element;
3155
+ export { OptionGroupLabel }
3156
+ export { OptionGroupLabel as OptionGroupLabel_alias_1 }
3157
+ export { OptionGroupLabel as OptionGroupLabel_alias_2 }
2566
3158
 
2567
- declare type OptionProps = OptionHTMLAttributes<HTMLOptionElement>;
3159
+ declare interface OptionProps extends SelectItemProps {
3160
+ /**
3161
+ * The CollectionListItem to be displayed in the dropdown list.
3162
+ */
3163
+ item: SelectCollectionItem;
3164
+ }
2568
3165
  export { OptionProps }
2569
3166
  export { OptionProps as OptionProps_alias_1 }
3167
+ export { OptionProps as OptionProps_alias_2 }
2570
3168
 
2571
3169
  export { Over }
2572
3170
 
@@ -2723,45 +3321,141 @@ export { PromptShowResult as PromptShowResult_alias_1 }
2723
3321
  * @memberof module:Field
2724
3322
  * @example
2725
3323
  * ```tsx
2726
- * <Field>
2727
- * <fieldset name="fruit">
2728
- * <Radio id="radio-1" name="fruit" value="1">
2729
- * Option 1
2730
- * </Radio>
2731
- * <Radio id="radio-2" name="fruit" value="2">
2732
- * Option 2
2733
- * </Radio>
2734
- * <Radio id="radio-3" name="fruit" value="3">
2735
- * Option 3
2736
- * </Radio>
2737
- * </fieldset>
2738
- * </Field>
3324
+ * <Radio value="option1">Option 1</Radio>
2739
3325
  * ```
2740
3326
  */
2741
- declare function Radio(props: PropsWithChildren<RadioProps>): JSX_2.Element;
3327
+ declare function Radio(props: RadioProps): JSX_2.Element;
2742
3328
  export { Radio }
2743
3329
  export { Radio as Radio_alias_1 }
3330
+ export { Radio as Radio_alias_2 }
3331
+
3332
+ declare const RadioGroup: typeof RadioGroupRoot;
3333
+ export { RadioGroup }
3334
+ export { RadioGroup as RadioGroup_alias_1 }
3335
+ export { RadioGroup as RadioGroup_alias_2 }
3336
+
3337
+ /**
3338
+ * The RadioGroupIndicator component is used to indicate the selected radio
3339
+ * button in a group.
3340
+ */
3341
+ declare function RadioGroupIndicator(props: RadioGroupIndicatorProps): JSX_2.Element;
3342
+ export { RadioGroupIndicator }
3343
+ export { RadioGroupIndicator as RadioGroupIndicator_alias_1 }
3344
+ export { RadioGroupIndicator as RadioGroupIndicator_alias_2 }
3345
+
3346
+ /**
3347
+ * The RadioGroupItem component is used to render a single radio button in a
3348
+ * group.
3349
+ */
3350
+ declare function RadioGroupItem(props: RadioGroupItemProps): JSX_2.Element;
3351
+ export { RadioGroupItem }
3352
+ export { RadioGroupItem as RadioGroupItem_alias_1 }
3353
+ export { RadioGroupItem as RadioGroupItem_alias_2 }
3354
+
3355
+ /**
3356
+ * The RadioGroupItemControl component is used to render the control for a
3357
+ * single radio button in a group.
3358
+ */
3359
+ declare function RadioGroupItemControl(props: RadioGroupItemControlProps & RadioGroupVariantProps): JSX_2.Element;
3360
+ export { RadioGroupItemControl }
3361
+ export { RadioGroupItemControl as RadioGroupItemControl_alias_1 }
3362
+ export { RadioGroupItemControl as RadioGroupItemControl_alias_2 }
3363
+
3364
+ /**
3365
+ * The RadioGroupItemHiddenInput component is used to render the hidden input
3366
+ * for a single radio button in a group.
3367
+ */
3368
+ declare function RadioGroupItemHiddenInput(props: RadioGroupItemHiddenInputProps): JSX_2.Element;
3369
+ export { RadioGroupItemHiddenInput }
3370
+ export { RadioGroupItemHiddenInput as RadioGroupItemHiddenInput_alias_1 }
3371
+ export { RadioGroupItemHiddenInput as RadioGroupItemHiddenInput_alias_2 }
3372
+
3373
+ /**
3374
+ * The RadioGroupItemText component is used to render the text label for a
3375
+ * single radio button in a group.
3376
+ */
3377
+ declare function RadioGroupItemText(props: RadioGroupItemTextProps & RadioGroupVariantProps): JSX_2.Element;
3378
+ export { RadioGroupItemText }
3379
+ export { RadioGroupItemText as RadioGroupItemText_alias_1 }
3380
+ export { RadioGroupItemText as RadioGroupItemText_alias_2 }
3381
+
3382
+ /**
3383
+ * The RadioGroupLabel component is used to label a group of radio buttons.
3384
+ */
3385
+ declare function RadioGroupLabel(props: RadioGroupLabelProps): JSX_2.Element;
3386
+ export { RadioGroupLabel }
3387
+ export { RadioGroupLabel as RadioGroupLabel_alias_1 }
3388
+ export { RadioGroupLabel as RadioGroupLabel_alias_2 }
2744
3389
 
2745
- declare interface RadioBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
3390
+ /**
3391
+ * This module contains the Radio primitives
3392
+ * @module 'react/radio'
3393
+ */
3394
+ /**
3395
+ * The RadioGroupRoot component is used to group radio buttons together.
3396
+ */
3397
+ declare function RadioGroupRoot(props: RadioGroupRootProps & RadioGroupVariantProps): JSX_2.Element;
3398
+ export { RadioGroupRoot }
3399
+ export { RadioGroupRoot as RadioGroupRoot_alias_1 }
3400
+ export { RadioGroupRoot as RadioGroupRoot_alias_2 }
3401
+
3402
+ /**
3403
+ * An Object containing the parts of the Radio component. For users that
3404
+ * prefer Object component syntax.
3405
+ *
3406
+ * @remarks
3407
+ *
3408
+ * When using object component syntax, you import the RadioParts object and
3409
+ * the entire family of components vs. only what you use.
3410
+ */
3411
+ declare const RadioParts: RadioPartsValue;
3412
+ export { RadioParts }
3413
+ export { RadioParts as RadioParts_alias_1 }
3414
+ export { RadioParts as RadioParts_alias_2 }
3415
+
3416
+ /**
3417
+ * This module contains the parts of the Radio parts.
3418
+ * @module 'radio/parts'
3419
+ */
3420
+ declare interface RadioPartsValue {
2746
3421
  /**
2747
- * A unique identifier for the radio button. Required for accessibility.
3422
+ * The container of the field.
2748
3423
  */
2749
- id: string;
3424
+ Root: ElementType;
3425
+ /**
3426
+ * The label of the field.
3427
+ */
3428
+ Label: ElementType;
3429
+ /**
3430
+ * The indicator that appears when a radio is checked.
3431
+ */
3432
+ Indicator: ElementType;
3433
+ /**
3434
+ * An individual radio item of the field.
3435
+ */
3436
+ Item: ElementType;
3437
+ /**
3438
+ * The text that labels a single radio of the field.
3439
+ */
3440
+ ItemText: ElementType;
3441
+ /**
3442
+ * The visual radio control of the field.
3443
+ */
3444
+ ItemControl: ElementType;
3445
+ /**
3446
+ * The native input for a radio item in the field.
3447
+ */
3448
+ ItemHiddenInput: ElementType;
2750
3449
  }
2751
- export { RadioBaseProps }
2752
- export { RadioBaseProps as RadioBaseProps_alias_1 }
2753
-
2754
- declare type RadioProps = RadioBaseProps & RadioRecipe;
2755
- export { RadioProps }
2756
- export { RadioProps as RadioProps_alias_1 }
2757
3450
 
2758
3451
  /**
2759
3452
  * This module contains the Radio component.
2760
3453
  * @module
2761
3454
  */
2762
- declare type RadioRecipe = RecipeVariantProps<typeof radio>;
2763
- export { RadioRecipe }
2764
- export { RadioRecipe as RadioRecipe_alias_1 }
3455
+ declare type RadioProps = RadioGroupVariantProps & RadioGroupItemProps_2;
3456
+ export { RadioProps }
3457
+ export { RadioProps as RadioProps_alias_1 }
3458
+ export { RadioProps as RadioProps_alias_2 }
2765
3459
 
2766
3460
  /**
2767
3461
  * The input component for the DatePicker that uses ranges.
@@ -2830,41 +3524,286 @@ export { RootColorsResult as RootColorsResult_alias_1 }
2830
3524
  export { ScreenReaderInstructions }
2831
3525
 
2832
3526
  /**
2833
- * Used to allow users to select a single option from a list of options.
2834
- * @see https://cerberus.digitalu.design/react/select
2835
- * @memberof module:Field
3527
+ * The Select component is a dropdown list that allows users to select an
3528
+ * option from a list.
3529
+ * @definition [Select docs](https://cerberus.digitalu.design/react/select)
3530
+ * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
2836
3531
  * @example
2837
3532
  * ```tsx
2838
- * <Field>
2839
- * <Select describedby="help:fruit" id="fruit">
2840
- * <Option value="">Choose option</Option>
2841
- * <Option value="one">Option 1</Option>
2842
- * <Option value="two">Option 2</Option>
2843
- * <Option value="three">Option 3</Option>
2844
- * </Select>
2845
- * </Field>
2846
- * ```
3533
+ * import { Select, Option, createListCollection } from '@cerberus-design/react'
3534
+ *
3535
+ * export function SelectBasicPreview() {
3536
+ * const collection = createListCollection({
3537
+ * items: [
3538
+ * { label: 'Hades', value: 'hades' },
3539
+ * { label: 'Persephone', value: 'persephone' },
3540
+ * { label: 'Zeus', value: 'zeus', disabled: true },
3541
+ * ]
3542
+ * })
3543
+ *
3544
+ * return (
3545
+ * <Select
3546
+ * collection={collection}
3547
+ * label="Select Relative"
3548
+ * placeholder="Choose option"
3549
+ * >
3550
+ * {collection.items.map((item) => (
3551
+ * <Option key={item.value} item={item} />
3552
+ * ))}
3553
+ * </Select>
3554
+ * )
3555
+ * }
2847
3556
  */
2848
3557
  declare function Select(props: SelectProps): JSX_2.Element;
2849
3558
  export { Select }
2850
3559
  export { Select as Select_alias_1 }
3560
+ export { Select as Select_alias_2 }
2851
3561
 
2852
3562
  /**
2853
- * This module contains the select components.
2854
- * @module
3563
+ * The trigger that clears the selected value.
2855
3564
  */
2856
- declare type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> & SelectVariantProps & {
3565
+ declare function SelectClearTrigger(props: SelectClearTriggerProps): JSX_2.Element;
3566
+ export { SelectClearTrigger }
3567
+ export { SelectClearTrigger as SelectClearTrigger_alias_1 }
3568
+ export { SelectClearTrigger as SelectClearTrigger_alias_2 }
3569
+
3570
+ declare interface SelectCollection {
2857
3571
  /**
2858
- * The unique id of the select element. Required for accessibility.
3572
+ * The items to be displayed in the dropdown list.
2859
3573
  */
2860
- id: string;
3574
+ items: SelectCollectionItem[];
3575
+ }
3576
+ export { SelectCollection }
3577
+ export { SelectCollection as SelectCollection_alias_1 }
3578
+ export { SelectCollection as SelectCollection_alias_2 }
3579
+
3580
+ /**
3581
+ * This module contains the Select components.
3582
+ * @module 'react/select'
3583
+ */
3584
+ declare interface SelectCollectionItem {
2861
3585
  /**
2862
- * The id of the FieldMessage that describes the select element.
3586
+ * What is displayed in the dropdown list.
2863
3587
  */
2864
- describedBy?: string;
2865
- };
3588
+ label: string;
3589
+ /**
3590
+ * The value of the selected item used in the form.
3591
+ */
3592
+ value: string;
3593
+ /**
3594
+ * If the item is disabled.
3595
+ */
3596
+ disabled?: boolean;
3597
+ }
3598
+ export { SelectCollectionItem }
3599
+ export { SelectCollectionItem as SelectCollectionItem_alias_1 }
3600
+ export { SelectCollectionItem as SelectCollectionItem_alias_2 }
3601
+
3602
+ /**
3603
+ * The content of the dropdown (i.e. the container itself).
3604
+ */
3605
+ declare function SelectContent(props: SelectContentProps & SelectVariantProps): JSX_2.Element;
3606
+ export { SelectContent }
3607
+ export { SelectContent as SelectContent_alias_1 }
3608
+ export { SelectContent as SelectContent_alias_2 }
3609
+
3610
+ /**
3611
+ * The control that wraps the select trigger.
3612
+ */
3613
+ declare function SelectControl(props: SelectControlProps): JSX_2.Element;
3614
+ export { SelectControl }
3615
+ export { SelectControl as SelectControl_alias_1 }
3616
+ export { SelectControl as SelectControl_alias_2 }
3617
+
3618
+ /**
3619
+ * The native input for a select item.
3620
+ */
3621
+ declare function SelectHiddenSelect(props: SelectHiddenSelectProps): JSX_2.Element;
3622
+ export { SelectHiddenSelect }
3623
+ export { SelectHiddenSelect as SelectHiddenSelect_alias_1 }
3624
+ export { SelectHiddenSelect as SelectHiddenSelect_alias_2 }
3625
+
3626
+ /**
3627
+ * The indicator that appears in the trigger.
3628
+ */
3629
+ declare function SelectIndicator(props: SelectIndicatorProps): JSX_2.Element;
3630
+ export { SelectIndicator }
3631
+ export { SelectIndicator as SelectIndicator_alias_1 }
3632
+ export { SelectIndicator as SelectIndicator_alias_2 }
3633
+
3634
+ /**
3635
+ * The container for an item in the select content.
3636
+ */
3637
+ declare function SelectItem(props: SelectItemProps): JSX_2.Element;
3638
+ export { SelectItem }
3639
+ export { SelectItem as SelectItem_alias_1 }
3640
+ export { SelectItem as SelectItem_alias_2 }
3641
+
3642
+ /**
3643
+ * The container for a group of item options.
3644
+ */
3645
+ declare function SelectItemGroup(props: SelectItemGroupProps): JSX_2.Element;
3646
+ export { SelectItemGroup }
3647
+ export { SelectItemGroup as SelectItemGroup_alias_1 }
3648
+ export { SelectItemGroup as SelectItemGroup_alias_2 }
3649
+
3650
+ /**
3651
+ * The label for a group of item options.
3652
+ */
3653
+ declare function SelectItemGroupLabel(props: SelectItemGroupLabelProps): JSX_2.Element;
3654
+ export { SelectItemGroupLabel }
3655
+ export { SelectItemGroupLabel as SelectItemGroupLabel_alias_1 }
3656
+ export { SelectItemGroupLabel as SelectItemGroupLabel_alias_2 }
3657
+
3658
+ /**
3659
+ * The indicator for an item option shown when it is selected.
3660
+ */
3661
+ declare function SelectItemIndicator(props: SelectItemIndicatorProps): JSX_2.Element;
3662
+ export { SelectItemIndicator }
3663
+ export { SelectItemIndicator as SelectItemIndicator_alias_1 }
3664
+ export { SelectItemIndicator as SelectItemIndicator_alias_2 }
3665
+
3666
+ /**
3667
+ * The text for an item option.
3668
+ */
3669
+ declare function SelectItemText(props: SelectItemTextProps): JSX_2.Element;
3670
+ export { SelectItemText }
3671
+ export { SelectItemText as SelectItemText_alias_1 }
3672
+ export { SelectItemText as SelectItemText_alias_2 }
3673
+
3674
+ /**
3675
+ * The label that appears above the select input.
3676
+ */
3677
+ declare function SelectLabel(props: SelectLabelProps): JSX_2.Element;
3678
+ export { SelectLabel }
3679
+ export { SelectLabel as SelectLabel_alias_1 }
3680
+ export { SelectLabel as SelectLabel_alias_2 }
3681
+
3682
+ /**
3683
+ * An Object containing the parts of the Radio component. For users that
3684
+ * prefer Object component syntax.
3685
+ *
3686
+ * @remarks
3687
+ *
3688
+ * When using object component syntax, you import the SelectParts object and
3689
+ * the entire family of components vs. only what you use.
3690
+ */
3691
+ declare const SelectParts: SelectPartsValue;
3692
+ export { SelectParts }
3693
+ export { SelectParts as SelectParts_alias_1 }
3694
+ export { SelectParts as SelectParts_alias_2 }
3695
+
3696
+ /**
3697
+ * This module contains the parts of the Select parts.
3698
+ * @module 'select/parts'
3699
+ */
3700
+ declare interface SelectPartsValue {
3701
+ /**
3702
+ * The context provider for the Select component.
3703
+ */
3704
+ Root: ElementType;
3705
+ /**
3706
+ * The label that appears above the select input.
3707
+ */
3708
+ Label: ElementType;
3709
+ /**
3710
+ * The control that wraps the select trigger.
3711
+ */
3712
+ Control: ElementType;
3713
+ /**
3714
+ * The trigger that opens the dropdown.
3715
+ */
3716
+ Trigger: ElementType;
3717
+ /**
3718
+ * The trigger to clear the select input.
3719
+ */
3720
+ ClearTrigger: ElementType;
3721
+ /**
3722
+ * The text that appears in the trigger.
3723
+ */
3724
+ ValueText: ElementType;
3725
+ /**
3726
+ * The indicator that appears in the trigger.
3727
+ */
3728
+ Indicator: ElementType;
3729
+ /**
3730
+ * The positioner that wraps the content.
3731
+ */
3732
+ Positioner: ElementType;
3733
+ /**
3734
+ * The content of the select component.
3735
+ */
3736
+ Content: ElementType;
3737
+ /**
3738
+ * A group of items in the select component.
3739
+ */
3740
+ ItemGroup: ElementType;
3741
+ /**
3742
+ * The label for a group of items in the select component.
3743
+ */
3744
+ ItemGroupLabel: ElementType;
3745
+ /**
3746
+ * An individual item in the select component.
3747
+ */
3748
+ Item: ElementType;
3749
+ /**
3750
+ * The text that labels a single radio of the field.
3751
+ */
3752
+ ItemText: ElementType;
3753
+ /**
3754
+ * The indicator that appears when the item has been selected.
3755
+ */
3756
+ ItemIndicator: ElementType;
3757
+ /**
3758
+ * The native select for use within a field.
3759
+ */
3760
+ HiddenSelect: ElementType;
3761
+ }
3762
+
3763
+ /**
3764
+ * The positioner that contains the dropdown.
3765
+ */
3766
+ declare function SelectPositioner(props: SelectPositionerProps): JSX_2.Element;
3767
+ export { SelectPositioner }
3768
+ export { SelectPositioner as SelectPositioner_alias_1 }
3769
+ export { SelectPositioner as SelectPositioner_alias_2 }
3770
+
3771
+ declare type SelectProps = SelectRootProps<SelectCollectionItem> & BaseSelectProps & SelectVariantProps;
2866
3772
  export { SelectProps }
2867
3773
  export { SelectProps as SelectProps_alias_1 }
3774
+ export { SelectProps as SelectProps_alias_2 }
3775
+
3776
+ /**
3777
+ * This module contains the Select primitives
3778
+ * @module 'react/select'
3779
+ */
3780
+ /**
3781
+ * The SelectRoot component is the context provider for the Select component.
3782
+ */
3783
+ declare function SelectRoot(props: SelectRootProps<SelectCollectionItem> & SelectVariantProps): JSX_2.Element;
3784
+ export { SelectRoot }
3785
+ export { SelectRoot as SelectRoot_alias_1 }
3786
+ export { SelectRoot as SelectRoot_alias_2 }
3787
+
3788
+ /**
3789
+ * The trigger that opens the dropdown.
3790
+ */
3791
+ declare function SelectTrigger(props: SelectTriggerProps): JSX_2.Element;
3792
+ export { SelectTrigger }
3793
+ export { SelectTrigger as SelectTrigger_alias_1 }
3794
+ export { SelectTrigger as SelectTrigger_alias_2 }
3795
+
3796
+ export { SelectValueChangeDetails }
3797
+ export { SelectValueChangeDetails as SelectValueChangeDetails_alias_1 }
3798
+ export { SelectValueChangeDetails as SelectValueChangeDetails_alias_2 }
3799
+
3800
+ /**
3801
+ * The text that appears in the trigger.
3802
+ */
3803
+ declare function SelectValueText(props: SelectValueTextProps): JSX_2.Element;
3804
+ export { SelectValueText }
3805
+ export { SelectValueText as SelectValueText_alias_1 }
3806
+ export { SelectValueText as SelectValueText_alias_2 }
2868
3807
 
2869
3808
  export { Sensor }
2870
3809
 
@@ -2934,10 +3873,10 @@ export { ShowConfirmModalOptions }
2934
3873
  export { ShowConfirmModalOptions as ShowConfirmModalOptions_alias_1 }
2935
3874
 
2936
3875
  /**
2937
- * This module provides a context and hook for the cta modal.
3876
+ * This module provides the context for the cta modal.
2938
3877
  * @module
2939
3878
  */
2940
- declare interface ShowCTAModalOptions {
3879
+ export declare interface ShowCTAModalOptions {
2941
3880
  /**
2942
3881
  * The heading of the cta modal.
2943
3882
  */
@@ -2951,15 +3890,10 @@ declare interface ShowCTAModalOptions {
2951
3890
  */
2952
3891
  icon?: ReactNode;
2953
3892
  /**
2954
- * The actions for the cta modal. Max of 2 actions.
3893
+ * The actions for the cta modal. Requires 2 actions.
2955
3894
  */
2956
- actions: {
2957
- text: string;
2958
- onClick: MouseEventHandler<HTMLButtonElement>;
2959
- }[];
3895
+ actions: CTAModalActionReturn;
2960
3896
  }
2961
- export { ShowCTAModalOptions }
2962
- export { ShowCTAModalOptions as ShowCTAModalOptions_alias_1 }
2963
3897
 
2964
3898
  /**
2965
3899
  * This module provides a context and hook for the prompt modal.
@@ -3047,6 +3981,18 @@ declare type SpinnerProps = SVGProps<SVGSVGElement> & {
3047
3981
  export { SpinnerProps }
3048
3982
  export { SpinnerProps as SpinnerProps_alias_1 }
3049
3983
 
3984
+ /**
3985
+ * Splits the properties of an object into multiple groups based on lists of keys.
3986
+ * @param props - The object to split.
3987
+ * @param keyGroups - The lists of keys to include in each group.
3988
+ * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.
3989
+ */
3990
+ declare function splitProps<T extends object>(props: T, ...keyGroups: (keyof T)[][]): {
3991
+ [K in keyof T]?: T[K];
3992
+ }[];
3993
+ export { splitProps }
3994
+ export { splitProps as splitProps_alias_1 }
3995
+
3050
3996
  /**
3051
3997
  * This module contains the tag component.
3052
3998
  * @module
@@ -3061,6 +4007,109 @@ declare type StaticTagProps = HTMLAttributes<HTMLSpanElement> & TagVariantProps
3061
4007
  export { StaticTagProps }
3062
4008
  export { StaticTagProps as StaticTagProps_alias_1 }
3063
4009
 
4010
+ /**
4011
+ * The Switch component is a and abstraction of the primitives that displays a
4012
+ * controlled Switch with a label.
4013
+ * @description [Cerberus Docs] https://cerberus.digitalu.design/react/switch
4014
+ * @description [Ark Docs] https://ark-ui.com/docs/components/switch
4015
+ */
4016
+ declare function Switch(props: SwitchProps): JSX_2.Element;
4017
+ export { Switch }
4018
+ export { Switch as Switch_alias_1 }
4019
+ export { Switch as Switch_alias_2 }
4020
+
4021
+ /**
4022
+ * The SwitchControl component is the visual input for the Switch.
4023
+ */
4024
+ declare function SwitchControl(props: SwitchControlProps): JSX_2.Element;
4025
+ export { SwitchControl }
4026
+ export { SwitchControl as SwitchControl_alias_1 }
4027
+ export { SwitchControl as SwitchControl_alias_2 }
4028
+
4029
+ /**
4030
+ * The SwitchHiddenInput component is the native input for the Switch.
4031
+ */
4032
+ declare const SwitchHiddenInput: ForwardRefExoticComponent<Switch_2.HiddenInputProps & RefAttributes<HTMLInputElement>>;
4033
+ export { SwitchHiddenInput }
4034
+ export { SwitchHiddenInput as SwitchHiddenInput_alias_1 }
4035
+ export { SwitchHiddenInput as SwitchHiddenInput_alias_2 }
4036
+
4037
+ export declare function SwitchIndicator(): JSX_2.Element;
4038
+
4039
+ /**
4040
+ * The SwitchLabel component is the label for the Switch.
4041
+ */
4042
+ declare function SwitchLabel(props: SwitchLabelProps): JSX_2.Element;
4043
+ export { SwitchLabel }
4044
+ export { SwitchLabel as SwitchLabel_alias_1 }
4045
+ export { SwitchLabel as SwitchLabel_alias_2 }
4046
+
4047
+ /**
4048
+ * An Object containing the parts of the Radio component. For users that
4049
+ * prefer Object component syntax.
4050
+ *
4051
+ * @remarks
4052
+ *
4053
+ * When using object component syntax, you import the SwitchParts object and
4054
+ * the entire family of components vs. only what you use.
4055
+ */
4056
+ declare const SwitchParts: SwitchPartsValue;
4057
+ export { SwitchParts }
4058
+ export { SwitchParts as SwitchParts_alias_1 }
4059
+ export { SwitchParts as SwitchParts_alias_2 }
4060
+
4061
+ /**
4062
+ * This module contains the parts of the Radio parts.
4063
+ * @module 'radio/parts'
4064
+ */
4065
+ declare interface SwitchPartsValue {
4066
+ /**
4067
+ * The container of the field.
4068
+ */
4069
+ Root: ElementType;
4070
+ /**
4071
+ * The label of the field.
4072
+ */
4073
+ Label: ElementType;
4074
+ /**
4075
+ * The visual input of the switch.
4076
+ */
4077
+ Control: ElementType;
4078
+ /**
4079
+ * The thumb item of the switch.
4080
+ */
4081
+ Thumb: ElementType;
4082
+ /**
4083
+ * The native input for the switch.
4084
+ */
4085
+ HiddenInput: ElementType;
4086
+ }
4087
+
4088
+ declare type SwitchProps = SwitchRootProps & SwitchRecipeVariantProps;
4089
+ export { SwitchProps }
4090
+ export { SwitchProps as SwitchProps_alias_1 }
4091
+ export { SwitchProps as SwitchProps_alias_2 }
4092
+
4093
+ /**
4094
+ * This module contains the Switch primitives
4095
+ * @module 'react/switch'
4096
+ */
4097
+ /**
4098
+ * The SwitchRoot component is the context provider for the Switch components.
4099
+ */
4100
+ declare function SwitchRoot(props: SwitchRootProps & SwitchRecipeVariantProps): JSX_2.Element;
4101
+ export { SwitchRoot }
4102
+ export { SwitchRoot as SwitchRoot_alias_1 }
4103
+ export { SwitchRoot as SwitchRoot_alias_2 }
4104
+
4105
+ /**
4106
+ * The SwitchThumb component is the thumb for the Switch.
4107
+ */
4108
+ declare function SwitchThumb(props: SwitchThumbProps): JSX_2.Element;
4109
+ export { SwitchThumb }
4110
+ export { SwitchThumb as SwitchThumb_alias_1 }
4111
+ export { SwitchThumb as SwitchThumb_alias_2 }
4112
+
3064
4113
  /**
3065
4114
  * This module contains the types for the Cerberus React configuration.
3066
4115
  * @module config.types
@@ -3331,34 +4380,10 @@ declare function Text_2(props: PropsWithChildren<TextProps>): JSX_2.Element;
3331
4380
  export { Text_2 as Text }
3332
4381
  export { Text_2 as Text_alias_1 }
3333
4382
 
3334
- /**
3335
- * A component that allows the user to input large blocks of text.
3336
- * @see https://cerberus.digitalu.design/react/textarea
3337
- */
3338
- declare function Textarea(props: TextareaProps): JSX.Element;
4383
+ declare const Textarea: typeof FieldTextarea;
3339
4384
  export { Textarea }
3340
4385
  export { Textarea as Textarea_alias_1 }
3341
-
3342
- /**
3343
- * This module contains the Textarea component.
3344
- * @module
3345
- */
3346
- declare interface TextareaBaseProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'id'> {
3347
- /**
3348
- * The ID of the FieldMessage that describes the textarea.
3349
- */
3350
- describedBy?: string;
3351
- /**
3352
- * The unique id of the textarea.
3353
- */
3354
- id: string;
3355
- }
3356
- export { TextareaBaseProps }
3357
- export { TextareaBaseProps as TextareaBaseProps_alias_1 }
3358
-
3359
- declare type TextareaProps = InputVariantProps & TextareaBaseProps;
3360
- export { TextareaProps }
3361
- export { TextareaProps as TextareaProps_alias_1 }
4386
+ export { Textarea as Textarea_alias_2 }
3362
4387
 
3363
4388
  declare type TextElements = 'p' | 'strong' | 'em' | 'small' | 'span';
3364
4389
  export { TextElements }
@@ -3491,52 +4516,6 @@ declare type ThProps = ThBaseProps & ThVariantProps;
3491
4516
  export { ThProps }
3492
4517
  export { ThProps as ThProps_alias_1 }
3493
4518
 
3494
- /**
3495
- * The Toggle component is used to switch between two states. Optionally
3496
- * combine with the `useToggle` hook.
3497
- * @see https://cerberus.digitalu.design/react/toggle
3498
- * @example
3499
- * ```tsx
3500
- * const { checked, handleChange } = useToggle({ checked: 'toggle' })
3501
- *
3502
- * <Hstack justify="space-between" w="full">
3503
- * <Field>
3504
- * <Label htmlFor="toggle">Show notifications</Label>
3505
- * <Toggle
3506
- * checked={checked === 'toggle'}
3507
- * id="toggle"
3508
- * onChange={handleChange}
3509
- * value="toggle"
3510
- * />
3511
- * </Field>
3512
- * </Hstack>
3513
- * ```
3514
- */
3515
- declare function Toggle(props: ToggleProps): JSX_2.Element;
3516
- export { Toggle }
3517
- export { Toggle as Toggle_alias_1 }
3518
-
3519
- /**
3520
- * This module provides a toggle component.
3521
- * @module
3522
- */
3523
- declare type ToggleBase = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id' | 'value'> & {
3524
- /**
3525
- * The FieldMessage providing context for the Toggle.
3526
- */
3527
- describedBy?: string;
3528
- /**
3529
- * A unique identifier for the Toggle. Required for accessibility.
3530
- */
3531
- id: string;
3532
- /**
3533
- * The value of the Toggle.
3534
- */
3535
- value: string;
3536
- };
3537
- export { ToggleBase }
3538
- export { ToggleBase as ToggleBase_alias_1 }
3539
-
3540
4519
  declare interface ToggleHookReturn {
3541
4520
  /**
3542
4521
  * The checked state.
@@ -3550,9 +4529,51 @@ declare interface ToggleHookReturn {
3550
4529
  export { ToggleHookReturn }
3551
4530
  export { ToggleHookReturn as ToggleHookReturn_alias_1 }
3552
4531
 
3553
- declare type ToggleProps = ToggleBase & ToggleVariantProps;
3554
- export { ToggleProps }
3555
- export { ToggleProps as ToggleProps_alias_1 }
4532
+ /**
4533
+ * The ToggleIndicator is used to render the indicator of the Toggle component
4534
+ * based on the pressed state.
4535
+ */
4536
+ declare const ToggleIndicator: ForwardRefExoticComponent<Toggle.IndicatorProps & RefAttributes<HTMLDivElement>>;
4537
+ export { ToggleIndicator }
4538
+ export { ToggleIndicator as ToggleIndicator_alias_1 }
4539
+ export { ToggleIndicator as ToggleIndicator_alias_2 }
4540
+
4541
+ /**
4542
+ * An Object containing the parts of the Radio component. For users that
4543
+ * prefer Object component syntax.
4544
+ *
4545
+ * @remarks
4546
+ *
4547
+ * When using object component syntax, you import the RadioParts object and
4548
+ * the entire family of components vs. only what you use.
4549
+ */
4550
+ declare const ToggleParts: TogglePartsValue;
4551
+ export { ToggleParts }
4552
+ export { ToggleParts as ToggleParts_alias_1 }
4553
+ export { ToggleParts as ToggleParts_alias_2 }
4554
+
4555
+ /**
4556
+ * This module contains the parts of the Toggle parts.
4557
+ * @module 'toggle/parts'
4558
+ */
4559
+ declare interface TogglePartsValue {
4560
+ /**
4561
+ * The container of the toggle.
4562
+ */
4563
+ Root: ElementType;
4564
+ /**
4565
+ * The indicator that appears when a toggle is pressed.
4566
+ */
4567
+ Indicator: ElementType;
4568
+ }
4569
+
4570
+ /**
4571
+ * The ToggleRoot is used to manage the state of the Toggle component.
4572
+ */
4573
+ declare const ToggleRoot: ForwardRefExoticComponent<Toggle.RootProps & RefAttributes<HTMLButtonElement>>;
4574
+ export { ToggleRoot }
4575
+ export { ToggleRoot as ToggleRoot_alias_1 }
4576
+ export { ToggleRoot as ToggleRoot_alias_2 }
3556
4577
 
3557
4578
  /**
3558
4579
  * The Tooltip component is used to provide additional information about an element when it is hovered over.
@@ -3610,6 +4631,20 @@ export { trapFocus as trapFocus_alias_1 }
3610
4631
 
3611
4632
  export { TraversalOrder }
3612
4633
 
4634
+ /**
4635
+ * Trigger item for the cta modal which renders content based on the actions.
4636
+ * type.
4637
+ */
4638
+ export declare function TriggerItem(props: TriggerItemProps): JSX_2.Element;
4639
+
4640
+ /**
4641
+ * This module provides the trigger item for the cta modal.
4642
+ * @module 'react/cta-modal/trigger-item'
4643
+ */
4644
+ export declare interface TriggerItemProps extends ButtonProps {
4645
+ asChild?: boolean;
4646
+ }
4647
+
3613
4648
  declare type TrProps = TableHTMLAttributes<HTMLTableRowElement>;
3614
4649
  export { TrProps }
3615
4650
  export { TrProps as TrProps_alias_1 }
@@ -3645,15 +4680,10 @@ export { useConfirmModal as useConfirmModal_alias_1 }
3645
4680
  declare function useCTAModal(): CTAModalValue;
3646
4681
  export { useCTAModal }
3647
4682
  export { useCTAModal as useCTAModal_alias_1 }
4683
+ export { useCTAModal as useCTAModal_alias_2 }
3648
4684
 
3649
4685
  /**
3650
- * A hook for formatting and validating date inputs. The date format defaults to US Military format.
3651
- * @example
3652
- * ```tsx
3653
- * const MyComponent = () => {
3654
- * const date = useDate({ initialValue: '01 JAN 2024' })
3655
- * return <input onChange={date.onChange} type="text" value={date.value} />
3656
- * }
4686
+ * @deprecated use the DatePicker family instead
3657
4687
  */
3658
4688
  declare function useDate(options?: UseDateOptions): UseDateReturn;
3659
4689
  export { useDate }
@@ -3719,9 +4749,7 @@ export { useFeatureFlags as useFeatureFlags_alias_1 }
3719
4749
  * Used to access the field context.
3720
4750
  * @returns The field context.
3721
4751
  */
3722
- declare function useFieldContext(): FieldContextValue;
3723
- export { useFieldContext }
3724
- export { useFieldContext as useFieldContext_alias_1 }
4752
+ export declare function useFieldContext(): FieldContextValue;
3725
4753
 
3726
4754
  /**
3727
4755
  * Provides a hook for using a custom modal via the native dialog element
@@ -3855,9 +4883,7 @@ export { UseThemeOptions }
3855
4883
  export { UseThemeOptions as UseThemeOptions_alias_1 }
3856
4884
 
3857
4885
  /**
3858
- * Provides a hook for using a toggle.
3859
- * @see https://cerberus.digitalu.design/react/use-toggle
3860
- * @memberof module:Toggle
4886
+ * @deprecated Will be removed in v1. Use ToggleParts instead.
3861
4887
  */
3862
4888
  declare function useToggle(options?: UseToggleOptions): ToggleHookReturn;
3863
4889
  export { useToggle }