@cerberus-design/react 0.15.0-next-e0ce56e → 0.15.0-next-5d7dc1e

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 (246) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +491 -119
  2. package/build/legacy/components/DatePicker.client.cjs +67 -89
  3. package/build/legacy/components/DatePicker.client.cjs.map +1 -1
  4. package/build/legacy/components/Fieldset.cjs +4 -17
  5. package/build/legacy/components/Fieldset.cjs.map +1 -1
  6. package/build/legacy/components/FieldsetLabel.cjs.map +1 -1
  7. package/build/legacy/components/FileStatus.cjs +126 -79
  8. package/build/legacy/components/FileStatus.cjs.map +1 -1
  9. package/build/legacy/components/Legend.cjs +10 -22
  10. package/build/legacy/components/Legend.cjs.map +1 -1
  11. package/build/legacy/components/Radio.cjs +4 -21
  12. package/build/legacy/components/Radio.cjs.map +1 -1
  13. package/build/legacy/components/Select.cjs +19 -54
  14. package/build/legacy/components/Select.cjs.map +1 -1
  15. package/build/legacy/components/Toggle.cjs +17 -24
  16. package/build/legacy/components/Toggle.cjs.map +1 -1
  17. package/build/legacy/components/button/button.cjs +1 -1
  18. package/build/legacy/components/button/button.cjs.map +1 -1
  19. package/build/legacy/components/button/index.cjs +1 -1
  20. package/build/legacy/components/button/index.cjs.map +1 -1
  21. package/build/legacy/components/button/parts.cjs +1 -1
  22. package/build/legacy/components/button/parts.cjs.map +1 -1
  23. package/build/legacy/components/checkbox/checkbox-icon.cjs +121 -0
  24. package/build/legacy/components/checkbox/checkbox-icon.cjs.map +1 -0
  25. package/build/legacy/components/checkbox/checkbox.cjs +165 -0
  26. package/build/legacy/components/checkbox/checkbox.cjs.map +1 -0
  27. package/build/legacy/components/checkbox/index.cjs +179 -0
  28. package/build/legacy/components/checkbox/index.cjs.map +1 -0
  29. package/build/legacy/components/checkbox/parts.cjs +89 -0
  30. package/build/legacy/components/checkbox/parts.cjs.map +1 -0
  31. package/build/legacy/components/checkbox/primitives.cjs +87 -0
  32. package/build/legacy/components/checkbox/primitives.cjs.map +1 -0
  33. package/build/legacy/components/{FieldMessage.cjs → deprecated/FieldMessage.cjs} +4 -17
  34. package/build/legacy/components/deprecated/FieldMessage.cjs.map +1 -0
  35. package/build/legacy/components/{Textarea.cjs → deprecated/Label.cjs} +24 -36
  36. package/build/legacy/components/deprecated/Label.cjs.map +1 -0
  37. package/build/legacy/components/field/field.cjs +130 -0
  38. package/build/legacy/components/field/field.cjs.map +1 -0
  39. package/build/legacy/components/field/index.cjs +267 -0
  40. package/build/legacy/components/field/index.cjs.map +1 -0
  41. package/build/legacy/components/field/parts.cjs +188 -0
  42. package/build/legacy/components/field/parts.cjs.map +1 -0
  43. package/build/legacy/components/field/primitives.cjs +191 -0
  44. package/build/legacy/components/field/primitives.cjs.map +1 -0
  45. package/build/legacy/components/field/start-indicator.cjs +45 -0
  46. package/build/legacy/components/field/start-indicator.cjs.map +1 -0
  47. package/build/legacy/components/field/status-indicator.cjs +78 -0
  48. package/build/legacy/components/field/status-indicator.cjs.map +1 -0
  49. package/build/legacy/components/for.cjs +38 -0
  50. package/build/legacy/components/for.cjs.map +1 -0
  51. package/build/legacy/context/confirm-modal.cjs +1 -1
  52. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  53. package/build/legacy/context/cta-modal.cjs +1 -1
  54. package/build/legacy/context/cta-modal.cjs.map +1 -1
  55. package/build/legacy/context/field.cjs +23 -4
  56. package/build/legacy/context/field.cjs.map +1 -1
  57. package/build/legacy/context/notification-center.cjs.map +1 -1
  58. package/build/legacy/context/prompt-modal.cjs +168 -166
  59. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  60. package/build/legacy/hooks/useDate.cjs.map +1 -1
  61. package/build/legacy/index.cjs +1274 -1123
  62. package/build/legacy/index.cjs.map +1 -1
  63. package/build/legacy/utils/index.cjs +22 -2
  64. package/build/legacy/utils/index.cjs.map +1 -1
  65. package/build/modern/_tsup-dts-rollup.d.ts +491 -119
  66. package/build/modern/{chunk-2JX27W6Y.js → chunk-2BIHLH4V.js} +2 -2
  67. package/build/modern/chunk-2BIHLH4V.js.map +1 -0
  68. package/build/modern/{chunk-3ZDFQO25.js → chunk-6EUC3SUI.js} +4 -7
  69. package/build/modern/chunk-6EUC3SUI.js.map +1 -0
  70. package/build/modern/chunk-6I2FW4WI.js +33 -0
  71. package/build/modern/chunk-6I2FW4WI.js.map +1 -0
  72. package/build/modern/{chunk-MER66QUY.js → chunk-6KZVE4HC.js} +1 -1
  73. package/build/modern/{chunk-MER66QUY.js.map → chunk-6KZVE4HC.js.map} +1 -1
  74. package/build/modern/{chunk-FTPZHG6J.js → chunk-6WOJAMZV.js} +3 -9
  75. package/build/modern/chunk-6WOJAMZV.js.map +1 -0
  76. package/build/modern/chunk-77FJSNGD.js +13 -0
  77. package/build/modern/chunk-77FJSNGD.js.map +1 -0
  78. package/build/modern/chunk-BL7G3577.js +29 -0
  79. package/build/modern/chunk-BL7G3577.js.map +1 -0
  80. package/build/modern/chunk-BPRF34DU.js +62 -0
  81. package/build/modern/chunk-BPRF34DU.js.map +1 -0
  82. package/build/modern/{chunk-7P7OWBGV.js → chunk-CF3EHG42.js} +10 -10
  83. package/build/modern/chunk-CF3EHG42.js.map +1 -0
  84. package/build/modern/{chunk-Q4IV5NUT.js → chunk-CMYD5KWA.js} +40 -43
  85. package/build/modern/chunk-CMYD5KWA.js.map +1 -0
  86. package/build/modern/chunk-CNA2VKAH.js +43 -0
  87. package/build/modern/chunk-CNA2VKAH.js.map +1 -0
  88. package/build/modern/chunk-EL4MX2PG.js +22 -0
  89. package/build/modern/chunk-EL4MX2PG.js.map +1 -0
  90. package/build/modern/chunk-FBS7AX76.js +37 -0
  91. package/build/modern/chunk-FBS7AX76.js.map +1 -0
  92. package/build/modern/{chunk-KU2AWAK3.js → chunk-FK52US7K.js} +7 -20
  93. package/build/modern/chunk-FK52US7K.js.map +1 -0
  94. package/build/modern/{chunk-Z7FGXAND.js → chunk-FMRWRVUS.js} +2 -2
  95. package/build/modern/{chunk-XQICKZH4.js → chunk-GENS32QO.js} +10 -8
  96. package/build/modern/chunk-GENS32QO.js.map +1 -0
  97. package/build/modern/{chunk-7S47NSGR.js → chunk-H54FR7IP.js} +2 -2
  98. package/build/modern/chunk-KWZ3CEG6.js +23 -0
  99. package/build/modern/chunk-KWZ3CEG6.js.map +1 -0
  100. package/build/modern/{chunk-JWIJHSI6.js → chunk-L7N24B6B.js} +3 -6
  101. package/build/modern/chunk-L7N24B6B.js.map +1 -0
  102. package/build/modern/chunk-LT62577B.js +23 -0
  103. package/build/modern/chunk-LT62577B.js.map +1 -0
  104. package/build/modern/{chunk-3BM6MZ4A.js → chunk-MWRO5QYD.js} +1 -1
  105. package/build/modern/chunk-MWRO5QYD.js.map +1 -0
  106. package/build/modern/{chunk-PZAZKQMO.js → chunk-OYT7RGC7.js} +1 -1
  107. package/build/modern/chunk-OYT7RGC7.js.map +1 -0
  108. package/build/modern/{chunk-ILQW5VZT.js → chunk-RBNOEAWJ.js} +4 -7
  109. package/build/modern/chunk-RBNOEAWJ.js.map +1 -0
  110. package/build/modern/{chunk-5QONP7GT.js → chunk-S2X5OEPK.js} +2 -10
  111. package/build/modern/chunk-S2X5OEPK.js.map +1 -0
  112. package/build/modern/chunk-TIJAFPHQ.js +1 -0
  113. package/build/modern/chunk-TYPULJMJ.js +1 -0
  114. package/build/modern/chunk-UNN4LHRS.js +31 -0
  115. package/build/modern/chunk-UNN4LHRS.js.map +1 -0
  116. package/build/modern/chunk-VSTOSLFS.js +100 -0
  117. package/build/modern/chunk-VSTOSLFS.js.map +1 -0
  118. package/build/modern/chunk-Z52R6ABJ.js +21 -0
  119. package/build/modern/chunk-Z52R6ABJ.js.map +1 -0
  120. package/build/modern/{chunk-3RGRHMJQ.js → chunk-ZDANBCM3.js} +2 -2
  121. package/build/modern/components/AccordionItemGroup.js +1 -1
  122. package/build/modern/components/DatePicker.client.js +4 -5
  123. package/build/modern/components/Fieldset.js +1 -2
  124. package/build/modern/components/FieldsetLabel.js +1 -1
  125. package/build/modern/components/FileStatus.js +10 -4
  126. package/build/modern/components/Legend.js +1 -2
  127. package/build/modern/components/Radio.js +1 -3
  128. package/build/modern/components/Select.js +1 -2
  129. package/build/modern/components/Toggle.js +1 -2
  130. package/build/modern/components/button/button.js +1 -1
  131. package/build/modern/components/button/index.js +2 -2
  132. package/build/modern/components/button/parts.js +2 -2
  133. package/build/modern/components/checkbox/checkbox-icon.js +12 -0
  134. package/build/modern/components/checkbox/checkbox.js +13 -0
  135. package/build/modern/components/checkbox/index.js +30 -0
  136. package/build/modern/components/checkbox/parts.js +8 -0
  137. package/build/modern/components/checkbox/parts.js.map +1 -0
  138. package/build/modern/components/checkbox/primitives.js +17 -0
  139. package/build/modern/components/checkbox/primitives.js.map +1 -0
  140. package/build/modern/components/deprecated/FieldMessage.js +8 -0
  141. package/build/modern/components/deprecated/FieldMessage.js.map +1 -0
  142. package/build/modern/components/deprecated/Label.js +17 -0
  143. package/build/modern/components/deprecated/Label.js.map +1 -0
  144. package/build/modern/components/field/field.js +14 -0
  145. package/build/modern/components/field/field.js.map +1 -0
  146. package/build/modern/components/field/index.js +44 -0
  147. package/build/modern/components/field/index.js.map +1 -0
  148. package/build/modern/components/field/parts.js +11 -0
  149. package/build/modern/components/field/parts.js.map +1 -0
  150. package/build/modern/components/field/primitives.js +26 -0
  151. package/build/modern/components/field/primitives.js.map +1 -0
  152. package/build/modern/components/field/start-indicator.js +7 -0
  153. package/build/modern/components/field/start-indicator.js.map +1 -0
  154. package/build/modern/components/field/status-indicator.js +9 -0
  155. package/build/modern/components/field/status-indicator.js.map +1 -0
  156. package/build/modern/components/for.js +7 -0
  157. package/build/modern/components/for.js.map +1 -0
  158. package/build/modern/context/confirm-modal.js +3 -3
  159. package/build/modern/context/cta-modal.js +4 -4
  160. package/build/modern/context/field.js +34 -4
  161. package/build/modern/context/field.js.map +1 -1
  162. package/build/modern/context/notification-center.js +2 -2
  163. package/build/modern/context/prompt-modal.js +12 -7
  164. package/build/modern/hooks/useDate.js +1 -1
  165. package/build/modern/index.js +131 -82
  166. package/build/modern/index.js.map +1 -1
  167. package/build/modern/utils/index.js +5 -3
  168. package/package.json +2 -2
  169. package/src/components/DatePicker.client.tsx +2 -14
  170. package/src/components/Fieldset.tsx +3 -3
  171. package/src/components/FieldsetLabel.tsx +5 -2
  172. package/src/components/FileStatus.tsx +4 -5
  173. package/src/components/Legend.tsx +5 -6
  174. package/src/components/Radio.tsx +2 -7
  175. package/src/components/Select.tsx +1 -16
  176. package/src/components/Toggle.tsx +14 -7
  177. package/src/components/button/button.tsx +1 -1
  178. package/src/components/button/parts.ts +6 -0
  179. package/src/components/checkbox/checkbox-icon.tsx +39 -0
  180. package/src/components/checkbox/checkbox.tsx +48 -0
  181. package/src/components/checkbox/index.ts +3 -0
  182. package/src/components/checkbox/parts.ts +59 -0
  183. package/src/components/checkbox/primitives.tsx +104 -0
  184. package/src/components/{FieldMessage.tsx → deprecated/FieldMessage.tsx} +2 -13
  185. package/src/components/deprecated/Label.tsx +24 -0
  186. package/src/components/field/field.tsx +77 -0
  187. package/src/components/field/index.ts +5 -0
  188. package/src/components/field/parts.ts +77 -0
  189. package/src/components/field/primitives.tsx +204 -0
  190. package/src/components/field/start-indicator.tsx +23 -0
  191. package/src/components/field/status-indicator.tsx +58 -0
  192. package/src/components/for.tsx +43 -0
  193. package/src/context/field.tsx +6 -5
  194. package/src/context/prompt-modal.tsx +16 -18
  195. package/src/hooks/useDate.ts +1 -7
  196. package/src/index.ts +6 -7
  197. package/src/utils/index.ts +30 -0
  198. package/build/legacy/components/Checkbox.cjs +0 -113
  199. package/build/legacy/components/Checkbox.cjs.map +0 -1
  200. package/build/legacy/components/FieldMessage.cjs.map +0 -1
  201. package/build/legacy/components/Input.cjs +0 -95
  202. package/build/legacy/components/Input.cjs.map +0 -1
  203. package/build/legacy/components/Label.cjs +0 -93
  204. package/build/legacy/components/Label.cjs.map +0 -1
  205. package/build/legacy/components/Textarea.cjs.map +0 -1
  206. package/build/modern/chunk-2JX27W6Y.js.map +0 -1
  207. package/build/modern/chunk-3BM6MZ4A.js.map +0 -1
  208. package/build/modern/chunk-3ZDFQO25.js.map +0 -1
  209. package/build/modern/chunk-5QONP7GT.js.map +0 -1
  210. package/build/modern/chunk-7P7OWBGV.js.map +0 -1
  211. package/build/modern/chunk-C5EHJUS5.js +0 -10
  212. package/build/modern/chunk-C5EHJUS5.js.map +0 -1
  213. package/build/modern/chunk-FTPZHG6J.js.map +0 -1
  214. package/build/modern/chunk-ILQW5VZT.js.map +0 -1
  215. package/build/modern/chunk-JIJM6JFJ.js +0 -36
  216. package/build/modern/chunk-JIJM6JFJ.js.map +0 -1
  217. package/build/modern/chunk-JWIJHSI6.js.map +0 -1
  218. package/build/modern/chunk-KU2AWAK3.js.map +0 -1
  219. package/build/modern/chunk-NGOLRISW.js +0 -63
  220. package/build/modern/chunk-NGOLRISW.js.map +0 -1
  221. package/build/modern/chunk-NMF2HYWO.js +0 -50
  222. package/build/modern/chunk-NMF2HYWO.js.map +0 -1
  223. package/build/modern/chunk-PZAZKQMO.js.map +0 -1
  224. package/build/modern/chunk-Q4IV5NUT.js.map +0 -1
  225. package/build/modern/chunk-UZDVOIW5.js +0 -33
  226. package/build/modern/chunk-UZDVOIW5.js.map +0 -1
  227. package/build/modern/chunk-VYCU7I4J.js +0 -43
  228. package/build/modern/chunk-VYCU7I4J.js.map +0 -1
  229. package/build/modern/chunk-XQICKZH4.js.map +0 -1
  230. package/build/modern/components/Checkbox.js +0 -11
  231. package/build/modern/components/FieldMessage.js +0 -9
  232. package/build/modern/components/Input.js +0 -11
  233. package/build/modern/components/Label.js +0 -10
  234. package/build/modern/components/Textarea.js +0 -9
  235. package/src/components/Checkbox.tsx +0 -93
  236. package/src/components/Input.tsx +0 -69
  237. package/src/components/Label.tsx +0 -69
  238. package/src/components/Textarea.tsx +0 -52
  239. /package/build/modern/{chunk-Z7FGXAND.js.map → chunk-FMRWRVUS.js.map} +0 -0
  240. /package/build/modern/{chunk-7S47NSGR.js.map → chunk-H54FR7IP.js.map} +0 -0
  241. /package/build/modern/{components/Checkbox.js.map → chunk-TIJAFPHQ.js.map} +0 -0
  242. /package/build/modern/{components/FieldMessage.js.map → chunk-TYPULJMJ.js.map} +0 -0
  243. /package/build/modern/{chunk-3RGRHMJQ.js.map → chunk-ZDANBCM3.js.map} +0 -0
  244. /package/build/modern/components/{Input.js.map → checkbox/checkbox-icon.js.map} +0 -0
  245. /package/build/modern/components/{Label.js.map → checkbox/checkbox.js.map} +0 -0
  246. /package/build/modern/components/{Textarea.js.map → checkbox/index.js.map} +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,15 @@ 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';
87
+ import { FieldRootProps as FieldRootProps_2 } from '@ark-ui/react/field';
88
+ import type { FieldRootProps as FieldRootProps_3 } from '@ark-ui/react';
79
89
  import type { FieldsetHTMLAttributes } from 'react';
90
+ import { FieldTextareaProps } from '@ark-ui/react/field';
91
+ import { FieldVariantProps } from '@cerberus/styled-system/recipes';
80
92
  import { FileStatusVariantProps } from '@cerberus/styled-system/recipes';
81
93
  import { ForwardRefExoticComponent } from 'react';
82
94
  import { getClientRect } from '@dnd-kit/core';
@@ -86,7 +98,6 @@ import { HTMLAttributes } from 'react';
86
98
  import { HtmlHTMLAttributes } from 'react';
87
99
  import { IconButtonVariantProps } from '@cerberus/styled-system/recipes';
88
100
  import { InputHTMLAttributes } from 'react';
89
- import { InputVariantProps } from '@cerberus/styled-system/recipes';
90
101
  import { JSX as JSX_2 } from 'react/jsx-runtime';
91
102
  import { KeyboardCode } from '@dnd-kit/core';
92
103
  import { KeyboardCodes } from '@dnd-kit/core';
@@ -150,7 +161,6 @@ import { TabsVariantProps } from '@cerberus/styled-system/recipes';
150
161
  import { TagVariantProps } from '@cerberus/styled-system/recipes';
151
162
  import { TbodyVariantProps } from '@cerberus/styled-system/recipes';
152
163
  import { TdVariantProps } from '@cerberus/styled-system/recipes';
153
- import type { TextareaHTMLAttributes } from 'react';
154
164
  import { ThVariantProps } from '@cerberus/styled-system/recipes';
155
165
  import { ToggleVariantProps } from '@cerberus/styled-system/recipes';
156
166
  import { TooltipContentProps } from '@ark-ui/react/tooltip';
@@ -530,10 +540,6 @@ declare interface BaseSelectProps {
530
540
  * The placeholder text when no option is selected.
531
541
  */
532
542
  placeholder?: string;
533
- /**
534
- * The label of the select.
535
- */
536
- label: string;
537
543
  }
538
544
  export { BaseSelectProps }
539
545
  export { BaseSelectProps as BaseSelectProps_alias_1 }
@@ -575,7 +581,13 @@ export { ButtonParts as ButtonParts_alias_2 }
575
581
  * @module 'button/parts'
576
582
  */
577
583
  declare interface ButtonPartsValue {
584
+ /**
585
+ * The context provider of the button.
586
+ */
578
587
  Root: ElementType;
588
+ /**
589
+ * The icon of the button.
590
+ */
579
591
  Icon: ElementType;
580
592
  }
581
593
 
@@ -616,6 +628,52 @@ declare interface CerberusProviderProps {
616
628
  declare function Checkbox(props: CheckboxProps): JSX_2.Element;
617
629
  export { Checkbox }
618
630
  export { Checkbox as Checkbox_alias_1 }
631
+ export { Checkbox as Checkbox_alias_2 }
632
+
633
+ /**
634
+ * Checkbox Control component used to display the control of the checkbox.
635
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
636
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
637
+ */
638
+ declare function CheckboxControl(props: CheckboxControlProps & CheckboxVariantProps): JSX_2.Element;
639
+ export { CheckboxControl }
640
+ export { CheckboxControl as CheckboxControl_alias_1 }
641
+ export { CheckboxControl as CheckboxControl_alias_2 }
642
+
643
+ /**
644
+ * Checkbox Group is used to group checkboxes together in a consistently styled
645
+ * way.
646
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
647
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
648
+ */
649
+ declare function CheckboxGroup(props: CheckboxGroupProps): JSX_2.Element;
650
+ export { CheckboxGroup }
651
+ export { CheckboxGroup as CheckboxGroup_alias_1 }
652
+ export { CheckboxGroup as CheckboxGroup_alias_2 }
653
+
654
+ /**
655
+ * Checkbox HiddenInput component used to provide the native checkbox input.
656
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
657
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
658
+ */
659
+ declare function CheckboxHiddenInput(props: CheckboxControlProps): JSX_2.Element;
660
+ export { CheckboxHiddenInput }
661
+ export { CheckboxHiddenInput as CheckboxHiddenInput_alias_1 }
662
+ export { CheckboxHiddenInput as CheckboxHiddenInput_alias_2 }
663
+
664
+ /**
665
+ * Checkbox component
666
+ * @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)
667
+ * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
668
+ * @see https://cerberus.digitalu.design/react/checkbox
669
+ * @example
670
+ * ```tsx
671
+ * <Field>
672
+ * <Checkbox id="legal" checked={checked.legal} onChange={handleChange} />
673
+ * </Field>
674
+ * ```
675
+ */
676
+ export declare function CheckboxIcon(props: CheckboxIconProps_2): JSX_2.Element;
619
677
 
620
678
  /**
621
679
  * This module contains substitute icons for the Checkbox component.
@@ -624,26 +682,101 @@ export { Checkbox as Checkbox_alias_1 }
624
682
  export declare type CheckboxIconProps = SVGProps<SVGSVGElement>;
625
683
 
626
684
  /**
627
- * This module contains the Checkbox component.
685
+ * This module contains the Checkbox Icon component.
628
686
  * @module
629
687
  */
630
- declare type CheckboxProps = CheckboxVariantProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {
688
+ declare interface CheckboxIconProps_2 {
689
+ indeterminate?: boolean;
690
+ }
691
+
692
+ /**
693
+ * Checkbox Indicator component used to display the indicator of the checkbox.
694
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
695
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
696
+ */
697
+ declare function CheckboxIndicator(props: CheckboxIndicatorProps): JSX_2.Element;
698
+ export { CheckboxIndicator }
699
+ export { CheckboxIndicator as CheckboxIndicator_alias_1 }
700
+ export { CheckboxIndicator as CheckboxIndicator_alias_2 }
701
+
702
+ /**
703
+ * Checkbox Label component used to display the label of the checkbox.
704
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
705
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
706
+ */
707
+ declare function CheckboxLabel(props: CheckboxLabelProps & CheckboxVariantProps): JSX_2.Element;
708
+ export { CheckboxLabel }
709
+ export { CheckboxLabel as CheckboxLabel_alias_1 }
710
+ export { CheckboxLabel as CheckboxLabel_alias_2 }
711
+
712
+ /**
713
+ * An Object containing the parts of the Checkbox component. For users that
714
+ * prefer Object component syntax.
715
+ *
716
+ * @remarks
717
+ *
718
+ * When using object component syntax, you import the CheckboxParts object and
719
+ * the entire family of components vs. only what you use.
720
+ */
721
+ declare const CheckboxParts: CheckboxPartsValue;
722
+ export { CheckboxParts }
723
+ export { CheckboxParts as CheckboxParts_alias_1 }
724
+ export { CheckboxParts as CheckboxParts_alias_2 }
725
+
726
+ /**
727
+ * This module contains the parts of the Field component.
728
+ * @module 'field/parts'
729
+ */
730
+ declare interface CheckboxPartsValue {
631
731
  /**
632
- * The id of the FieldMessage element describing the Checkbox.
732
+ * The container of the field.
633
733
  */
634
- describedBy?: string;
734
+ Root: ElementType;
635
735
  /**
636
- * The unique identifier for the checkbox. Required for accessibility.
736
+ * The label of the field.
637
737
  */
638
- id: string;
738
+ Label: ElementType;
639
739
  /**
640
- * Used to display a mixed checked state.
641
- * @description [ARIA Mixed State](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/examples/checkbox-mixed/)
740
+ * The control of the field.
642
741
  */
643
- mixed?: boolean;
644
- };
742
+ Control: ElementType;
743
+ /**
744
+ * The indicator of the field.
745
+ */
746
+ Indicator: ElementType;
747
+ /**
748
+ * The hidden input of the field.
749
+ */
750
+ HiddenInput: ElementType;
751
+ /**
752
+ * The checkbox group component.
753
+ */
754
+ Group: ElementType;
755
+ }
756
+
757
+ /**
758
+ * This module contains the Checkbox component.
759
+ * @module
760
+ */
761
+ declare type CheckboxProps = CheckboxVariantProps & CheckboxRootProps;
645
762
  export { CheckboxProps }
646
763
  export { CheckboxProps as CheckboxProps_alias_1 }
764
+ export { CheckboxProps as CheckboxProps_alias_2 }
765
+
766
+ /**
767
+ * This module contains the Checkbox primitives.
768
+ * @module 'react/checkbox'
769
+ */
770
+ /**
771
+ * Checkbox Root component used to provide the context to all other checkbox
772
+ * primitives.
773
+ * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)
774
+ * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)
775
+ */
776
+ declare function CheckboxRoot(props: CheckboxRootProps): JSX_2.Element;
777
+ export { CheckboxRoot }
778
+ export { CheckboxRoot as CheckboxRoot_alias_1 }
779
+ export { CheckboxRoot as CheckboxRoot_alias_2 }
647
780
 
648
781
  /**
649
782
  * Checkmark icon for Checkbox component
@@ -1506,18 +1639,34 @@ export { FeatureFlagValue }
1506
1639
  export { FeatureFlagValue as FeatureFlagValue_alias_1 }
1507
1640
 
1508
1641
  /**
1509
- * Provides the field state for a all related components used within a group.
1510
- * @see https://cerberus.digitalu.design/react/input
1642
+ * The Field component is the context provider for all FieldParts and displays
1643
+ * the label, helperText, and ErrorText.
1644
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1645
+ * @example
1646
+ * ```tsx
1647
+ * <Field
1648
+ * ids={{
1649
+ * control: 'firstName',
1650
+ * }}
1651
+ * label="Label"
1652
+ * helperText="This is what people will see on your profile."
1653
+ * errorText="A first name is required to create an account."
1654
+ * required
1655
+ * >
1656
+ * <Input name="firstName" type="text" />
1657
+ * </Field>
1658
+ * ```
1511
1659
  */
1512
- declare function Field(props: PropsWithChildren<FieldContextValue>): JSX.Element;
1660
+ declare function Field(props: FieldProps): JSX_2.Element;
1513
1661
  export { Field }
1514
1662
  export { Field as Field_alias_1 }
1663
+ export { Field as Field_alias_2 }
1515
1664
 
1516
1665
  /**
1517
1666
  * This module provides a context and hook for the field.
1518
1667
  * @module Field
1519
1668
  */
1520
- declare interface FieldContextValue {
1669
+ export declare interface FieldContextValue {
1521
1670
  /**
1522
1671
  * Whether the field is disabled.
1523
1672
  * @description [Moz Input Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes)
@@ -1536,23 +1685,93 @@ declare interface FieldContextValue {
1536
1685
  */
1537
1686
  invalid?: boolean;
1538
1687
  }
1539
- export { FieldContextValue }
1540
- export { FieldContextValue as FieldContextValue_alias_1 }
1541
1688
 
1542
1689
  /**
1543
- * A component that provides feedback about the field.
1544
- * @see https://cerberus.digitalu.design/react/field-message
1690
+ * The error text for the Field component that is shown when the field is
1691
+ * invalid.
1692
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1545
1693
  * @example
1546
1694
  * ```tsx
1547
- * <Field>
1548
- * <Label htmlFor="first_name">First Name</Label>
1549
- * <Input aria-describedBy="help:first_name" id="first_name" type="text" />
1550
- * <FieldMessage id="help:first_name">
1551
- * This will only be used in your account information.
1552
- * </FieldMessage>
1553
- * </Field>
1695
+ * <FieldRoot>
1696
+ * <FieldInput />
1697
+ * <FieldErrorText>Error text</FieldErrorText>
1698
+ * </FieldRoot>
1699
+ * ```
1700
+ */
1701
+ declare function FieldErrorText(props: FieldHelperTextProps): JSX_2.Element | null;
1702
+ export { FieldErrorText }
1703
+ export { FieldErrorText as FieldErrorText_alias_1 }
1704
+ export { FieldErrorText as FieldErrorText_alias_2 }
1705
+
1706
+ /**
1707
+ * The helper text for the Field component that is shown when the field is
1708
+ * valid.
1709
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1710
+ * @example
1711
+ * ```tsx
1712
+ * <FieldRoot>
1713
+ * <FieldInput />
1714
+ * <FieldHelperText>Helper text</FieldHelperText>
1715
+ * </FieldRoot>
1716
+ * ```
1717
+ */
1718
+ declare function FieldHelperText(props: FieldHelperTextProps): JSX_2.Element | null;
1719
+ export { FieldHelperText }
1720
+ export { FieldHelperText as FieldHelperText_alias_1 }
1721
+ export { FieldHelperText as FieldHelperText_alias_2 }
1722
+
1723
+ declare type FieldIndicatorProps = HTMLAttributes<HTMLSpanElement>;
1724
+ export { FieldIndicatorProps }
1725
+ export { FieldIndicatorProps as FieldIndicatorProps_alias_1 }
1726
+ export { FieldIndicatorProps as FieldIndicatorProps_alias_2 }
1727
+
1728
+ /**
1729
+ * The input for the Field component.
1730
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1731
+ * @example
1732
+ * ```tsx
1733
+ * <FieldRoot>
1734
+ * <FieldInput />
1735
+ * </FieldRoot>
1554
1736
  * ```
1555
1737
  */
1738
+ declare function FieldInput(props: FieldInputProps): JSX_2.Element;
1739
+ export { FieldInput }
1740
+ export { FieldInput as FieldInput_alias_1 }
1741
+ export { FieldInput as FieldInput_alias_2 }
1742
+
1743
+ declare interface FieldInputProps extends Omit<FieldInputProps_2, 'size'>, FieldVariantProps {
1744
+ /**
1745
+ * An optional icon to display at the start of the input.
1746
+ */
1747
+ startIcon?: ReactNode;
1748
+ /**
1749
+ * An optional icon to display at the end of the input.
1750
+ */
1751
+ endIcon?: ReactNode;
1752
+ }
1753
+ export { FieldInputProps }
1754
+ export { FieldInputProps as FieldInputProps_alias_1 }
1755
+ export { FieldInputProps as FieldInputProps_alias_2 }
1756
+
1757
+ /**
1758
+ * The label for the Field component.
1759
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1760
+ * @example
1761
+ * ```tsx
1762
+ * <FieldRoot>
1763
+ * <FieldLabel>Label</FieldLabel>
1764
+ * </FieldRoot>
1765
+ * ```
1766
+ */
1767
+ declare function FieldLabel(props: FieldLabelProps): JSX_2.Element;
1768
+ export { FieldLabel }
1769
+ export { FieldLabel as FieldLabel_alias_1 }
1770
+ export { FieldLabel as FieldLabel_alias_2 }
1771
+
1772
+ /**
1773
+ * @deprecated use FieldHelperText, FieldErrorText, or FieldParts instead
1774
+ */
1556
1775
  declare function FieldMessage(props: FieldMessageProps): JSX_2.Element;
1557
1776
  export { FieldMessage }
1558
1777
  export { FieldMessage as FieldMessage_alias_1 }
@@ -1577,6 +1796,123 @@ declare type FieldMessageProps = FieldMessageBaseProps & FieldMessageVariantProp
1577
1796
  export { FieldMessageProps }
1578
1797
  export { FieldMessageProps as FieldMessageProps_alias_1 }
1579
1798
 
1799
+ /**
1800
+ * An Object containing the parts of the Field component. For users that
1801
+ * prefer Object component syntax.
1802
+ *
1803
+ * @remarks
1804
+ *
1805
+ * When using object component syntax, you import the FieldParts object and
1806
+ * the entire family of components vs. only what you use.
1807
+ */
1808
+ declare const FieldParts: FieldPartsValue;
1809
+ export { FieldParts }
1810
+ export { FieldParts as FieldParts_alias_1 }
1811
+ export { FieldParts as FieldParts_alias_2 }
1812
+
1813
+ /**
1814
+ * This module contains the parts of the Field component.
1815
+ * @module 'field/parts'
1816
+ */
1817
+ declare interface FieldPartsValue {
1818
+ /**
1819
+ * The container of the field.
1820
+ */
1821
+ Root: ElementType;
1822
+ /**
1823
+ * The label of the field.
1824
+ */
1825
+ Label: ElementType;
1826
+ /**
1827
+ * The input of the field.
1828
+ */
1829
+ Input: ElementType;
1830
+ /**
1831
+ * The textarea of the field.
1832
+ */
1833
+ Textarea: ElementType;
1834
+ /**
1835
+ * The text that displays when the field is valid.
1836
+ */
1837
+ HelperText: ElementType;
1838
+ /**
1839
+ * The text that displays when the field is invalid.
1840
+ */
1841
+ ErrorText: ElementType;
1842
+ /**
1843
+ * The indicator that appears at the start of the field.
1844
+ */
1845
+ StartIndicator: ElementType;
1846
+ /**
1847
+ * The status indicator of the field.
1848
+ */
1849
+ StatusIndicator: ElementType;
1850
+ /**
1851
+ * The indicator that appears at the end of the field.
1852
+ */
1853
+ RequiredIndicator: ElementType;
1854
+ }
1855
+
1856
+ declare interface FieldProps extends FieldRootProps_2 {
1857
+ /**
1858
+ * The label of the field.
1859
+ */
1860
+ label?: string;
1861
+ /**
1862
+ * The helper text of the field.
1863
+ */
1864
+ helperText?: string;
1865
+ /**
1866
+ * A helper text positioned at the end of the field. Good for Textarea fields.
1867
+ */
1868
+ secondaryHelperText?: string;
1869
+ /**
1870
+ * The error text of the field. Shown when the field is invalid.
1871
+ */
1872
+ errorText?: string;
1873
+ }
1874
+ export { FieldProps }
1875
+ export { FieldProps as FieldProps_alias_1 }
1876
+ export { FieldProps as FieldProps_alias_2 }
1877
+
1878
+ /**
1879
+ * @deprecated use FieldRoot or FieldParts instead
1880
+ */
1881
+ export declare function FieldProvider(props: PropsWithChildren<FieldRootProps_3>): JSX.Element;
1882
+
1883
+ /**
1884
+ * The required indicator for the Field component.
1885
+ */
1886
+ declare function FieldRequiredIndicator(): JSX_2.Element;
1887
+ export { FieldRequiredIndicator }
1888
+ export { FieldRequiredIndicator as FieldRequiredIndicator_alias_1 }
1889
+ export { FieldRequiredIndicator as FieldRequiredIndicator_alias_2 }
1890
+
1891
+ /**
1892
+ * The context & container for the Field components.
1893
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
1894
+ * @example
1895
+ * ```tsx
1896
+ * <FieldRoot required ids={{ input: 'exampleId' }}>
1897
+ * <FieldLabel>Label</FieldLabel>
1898
+ * <FieldInput />
1899
+ * </FieldRoot>
1900
+ * ```
1901
+ */
1902
+ declare function FieldRoot(props: FieldRootProps): JSX_2.Element;
1903
+ export { FieldRoot }
1904
+ export { FieldRoot as FieldRoot_alias_1 }
1905
+ export { FieldRoot as FieldRoot_alias_2 }
1906
+
1907
+ /**
1908
+ * This module contains all the primitives of the Field component.
1909
+ * @module 'field'
1910
+ */
1911
+ declare type FieldRootProps = FieldRootProps_2 & FieldVariantProps;
1912
+ export { FieldRootProps }
1913
+ export { FieldRootProps as FieldRootProps_alias_1 }
1914
+ export { FieldRootProps as FieldRootProps_alias_2 }
1915
+
1580
1916
  /**
1581
1917
  * A component to group related elements in a form for accessibility.
1582
1918
  * @memberof Field
@@ -1655,7 +1991,9 @@ export { FieldsetLabel as FieldsetLabel_alias_1 }
1655
1991
  * This module contains the FieldsetLabel component.
1656
1992
  * @module FieldsetLabel
1657
1993
  */
1658
- declare type FieldsetLabelProps = LabelProps & LabelVariantProps;
1994
+ declare type FieldsetLabelProps = LabelProps & LabelVariantProps & {
1995
+ htmlFor?: string;
1996
+ };
1659
1997
  export { FieldsetLabelProps }
1660
1998
  export { FieldsetLabelProps as FieldsetLabelProps_alias_1 }
1661
1999
 
@@ -1667,6 +2005,55 @@ declare type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>;
1667
2005
  export { FieldsetProps }
1668
2006
  export { FieldsetProps as FieldsetProps_alias_1 }
1669
2007
 
2008
+ /**
2009
+ * The start indicator displays an indicator at the start of the Input.
2010
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2011
+ */
2012
+ declare function FieldStartIndicator(props: FieldIndicatorProps): JSX_2.Element | null;
2013
+ export { FieldStartIndicator }
2014
+ export { FieldStartIndicator as FieldStartIndicator_alias_1 }
2015
+ export { FieldStartIndicator as FieldStartIndicator_alias_2 }
2016
+
2017
+ /**
2018
+ * The invalid status indicator for the Field component.
2019
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2020
+ * @example
2021
+ * ```tsx
2022
+ * <FieldRoot>
2023
+ * <FieldStatusIndicator />
2024
+ * </FieldRoot>
2025
+ * ```
2026
+ */
2027
+ declare function FieldStatusIndicator(props: FieldStatusIndicatorProps): JSX_2.Element;
2028
+ export { FieldStatusIndicator }
2029
+ export { FieldStatusIndicator as FieldStatusIndicator_alias_1 }
2030
+ export { FieldStatusIndicator as FieldStatusIndicator_alias_2 }
2031
+
2032
+ declare interface FieldStatusIndicatorProps extends HTMLAttributes<HTMLSpanElement> {
2033
+ /**
2034
+ * The fallback content to display when the field is valid.
2035
+ */
2036
+ fallback?: ReactNode;
2037
+ }
2038
+ export { FieldStatusIndicatorProps }
2039
+ export { FieldStatusIndicatorProps as FieldStatusIndicatorProps_alias_1 }
2040
+ export { FieldStatusIndicatorProps as FieldStatusIndicatorProps_alias_2 }
2041
+
2042
+ /**
2043
+ * The textarea for the Field component.
2044
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2045
+ * @example
2046
+ * ```tsx
2047
+ * <FieldRoot>
2048
+ * <FieldTextarea />
2049
+ * </FieldRoot>
2050
+ * ```
2051
+ */
2052
+ declare function FieldTextarea(props: FieldTextareaProps): JSX_2.Element;
2053
+ export { FieldTextarea }
2054
+ export { FieldTextarea as FieldTextarea_alias_1 }
2055
+ export { FieldTextarea as FieldTextarea_alias_2 }
2056
+
1670
2057
  declare interface FileBaseStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
1671
2058
  /**
1672
2059
  * A unique identifier for the file status. Required for accessibility.
@@ -1764,6 +2151,22 @@ declare interface FileUploaderProps extends InputHTMLAttributes<HTMLInputElement
1764
2151
  export { FileUploaderProps }
1765
2152
  export { FileUploaderProps as FileUploaderProps_alias_1 }
1766
2153
 
2154
+ /**
2155
+ * The For component is used to iterate over an array and render a list of
2156
+ * components or display a fallback when the array is empty.
2157
+ * Inspired by the `<For>` component from SolidJS.
2158
+ *
2159
+ * @example
2160
+ * ```tsx
2161
+ * <For each={['a', 'b', 'c']}>
2162
+ * {(item, index) => <div key={index}>{item}</div>}
2163
+ * </For>
2164
+ * ```
2165
+ */
2166
+ declare function For<T extends string | number | Record<string, unknown> | undefined>(props: ForProps<T>): ReactNode;
2167
+ export { For }
2168
+ export { For as For_alias_1 }
2169
+
1767
2170
  /**
1768
2171
  * Formats a date string to US Military format.
1769
2172
  * @param date The date string to format (i.e., '2024-01-01')
@@ -1809,6 +2212,23 @@ declare function formatNotifyCount(count: number): string;
1809
2212
  export { formatNotifyCount }
1810
2213
  export { formatNotifyCount as formatNotifyCount_alias_1 }
1811
2214
 
2215
+ declare interface ForProps<T> {
2216
+ /**
2217
+ * The array to iterate over
2218
+ */
2219
+ each: T[];
2220
+ /**
2221
+ * The fallback content to render when the array is empty
2222
+ */
2223
+ fallback?: ReactNode;
2224
+ /**
2225
+ * The render function to render each item in the array
2226
+ */
2227
+ children: (item: Exclude<T, undefined>, index: number) => ReactNode;
2228
+ }
2229
+ export { ForProps }
2230
+ export { ForProps as ForProps_alias_1 }
2231
+
1812
2232
  export { getClientRect }
1813
2233
 
1814
2234
  export { getFirstCollision }
@@ -1923,39 +2343,29 @@ export { IndeterminateProgressBarProps }
1923
2343
  export { IndeterminateProgressBarProps as IndeterminateProgressBarProps_alias_1 }
1924
2344
 
1925
2345
  /**
1926
- * A component that allows the user to input text. Must be wrapped in a Field
1927
- * component to keep track of the state for entire group of elements related to
1928
- * the field.
1929
- * @see https://cerberus.digitalu.design/react/input
2346
+ * A named export for the FieldInput component.
2347
+ * @description [Field Docs](https://cerberus.digitalu.design/react/field)
2348
+ * @example
2349
+ * ```tsx
2350
+ * import { Input } from '@cerberus/react'
2351
+ *
2352
+ * <Field
2353
+ * ids={{
2354
+ * control: 'email',
2355
+ * }}
2356
+ * label="Enter your email"
2357
+ * helperText="We'll never share your email with anyone else."
2358
+ * errorText="Email is required."
2359
+ * required
2360
+ * >
2361
+ * <Input type="email" />
2362
+ * </Field>
2363
+ * ```
1930
2364
  */
1931
- declare function Input(props: InputProps): JSX_2.Element;
2365
+ declare const Input: typeof FieldInput;
1932
2366
  export { Input }
1933
2367
  export { Input as Input_alias_1 }
1934
-
1935
- declare interface InputBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'size'> {
1936
- /**
1937
- * The id of the FieldMessage component used to describe the input. Required for accessibility.
1938
- */
1939
- describedBy?: string;
1940
- /**
1941
- * The unique identifier for the input element. Required for accessibility.
1942
- */
1943
- id: string;
1944
- /**
1945
- * An optional icon to display at the start of the input.
1946
- */
1947
- startIcon?: ReactNode;
1948
- /**
1949
- * An optional icon to display at the end of the input.
1950
- */
1951
- endIcon?: ReactNode;
1952
- }
1953
- export { InputBaseProps }
1954
- export { InputBaseProps as InputBaseProps_alias_1 }
1955
-
1956
- declare type InputProps = InputBaseProps & InputVariantProps;
1957
- export { InputProps }
1958
- export { InputProps as InputProps_alias_1 }
2368
+ export { Input as Input_alias_2 }
1959
2369
 
1960
2370
  export { KeyboardCode }
1961
2371
 
@@ -1970,16 +2380,7 @@ export { KeyboardSensorOptions }
1970
2380
  export { KeyboardSensorProps }
1971
2381
 
1972
2382
  /**
1973
- * A a11y compliant label component.
1974
- * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
1975
- * @see https://cerberus.digitalu.design/react/label
1976
- * @example
1977
- * ```tsx
1978
- * <Field required>
1979
- * <Label htmlFor="search" hidden>Search everything</Label>
1980
- * <Input id="search" startIcon={Search} type="text" />
1981
- * </Field>
1982
- * ```
2383
+ * @deprecated Use FieldLabel or FieldParts.Label instead.
1983
2384
  */
1984
2385
  declare function Label(props: PropsWithChildren<LabelProps>): JSX_2.Element;
1985
2386
  export { Label }
@@ -1989,16 +2390,7 @@ export { Label as Label_alias_1 }
1989
2390
  * This module contains the Label component.
1990
2391
  * @module
1991
2392
  */
1992
- declare interface LabelBaseProps extends HTMLAttributes<HTMLLabelElement> {
1993
- /**
1994
- * The unique identifier for the input element. Required for accessibility.
1995
- */
1996
- htmlFor: string;
1997
- /**
1998
- * 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.
1999
- */
2000
- hidden?: boolean;
2001
- }
2393
+ declare type LabelBaseProps = HTMLAttributes<HTMLLabelElement>;
2002
2394
  export { LabelBaseProps }
2003
2395
  export { LabelBaseProps as LabelBaseProps_alias_1 }
2004
2396
 
@@ -3272,6 +3664,18 @@ declare type SpinnerProps = SVGProps<SVGSVGElement> & {
3272
3664
  export { SpinnerProps }
3273
3665
  export { SpinnerProps as SpinnerProps_alias_1 }
3274
3666
 
3667
+ /**
3668
+ * Splits the properties of an object into multiple groups based on lists of keys.
3669
+ * @param props - The object to split.
3670
+ * @param keyGroups - The lists of keys to include in each group.
3671
+ * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.
3672
+ */
3673
+ declare function splitProps<T extends object>(props: T, ...keyGroups: (keyof T)[][]): {
3674
+ [K in keyof T]?: T[K];
3675
+ }[];
3676
+ export { splitProps }
3677
+ export { splitProps as splitProps_alias_1 }
3678
+
3275
3679
  /**
3276
3680
  * This module contains the tag component.
3277
3681
  * @module
@@ -3556,34 +3960,10 @@ declare function Text_2(props: PropsWithChildren<TextProps>): JSX_2.Element;
3556
3960
  export { Text_2 as Text }
3557
3961
  export { Text_2 as Text_alias_1 }
3558
3962
 
3559
- /**
3560
- * A component that allows the user to input large blocks of text.
3561
- * @see https://cerberus.digitalu.design/react/textarea
3562
- */
3563
- declare function Textarea(props: TextareaProps): JSX.Element;
3963
+ declare const Textarea: typeof FieldTextarea;
3564
3964
  export { Textarea }
3565
3965
  export { Textarea as Textarea_alias_1 }
3566
-
3567
- /**
3568
- * This module contains the Textarea component.
3569
- * @module
3570
- */
3571
- declare interface TextareaBaseProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'id'> {
3572
- /**
3573
- * The ID of the FieldMessage that describes the textarea.
3574
- */
3575
- describedBy?: string;
3576
- /**
3577
- * The unique id of the textarea.
3578
- */
3579
- id: string;
3580
- }
3581
- export { TextareaBaseProps }
3582
- export { TextareaBaseProps as TextareaBaseProps_alias_1 }
3583
-
3584
- declare type TextareaProps = InputVariantProps & TextareaBaseProps;
3585
- export { TextareaProps }
3586
- export { TextareaProps as TextareaProps_alias_1 }
3966
+ export { Textarea as Textarea_alias_2 }
3587
3967
 
3588
3968
  declare type TextElements = 'p' | 'strong' | 'em' | 'small' | 'span';
3589
3969
  export { TextElements }
@@ -3747,7 +4127,7 @@ export { Toggle as Toggle_alias_1 }
3747
4127
  */
3748
4128
  declare type ToggleBase = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id' | 'value'> & {
3749
4129
  /**
3750
- * The FieldMessage providing context for the Toggle.
4130
+ * @deprecated
3751
4131
  */
3752
4132
  describedBy?: string;
3753
4133
  /**
@@ -3872,13 +4252,7 @@ export { useCTAModal }
3872
4252
  export { useCTAModal as useCTAModal_alias_1 }
3873
4253
 
3874
4254
  /**
3875
- * A hook for formatting and validating date inputs. The date format defaults to US Military format.
3876
- * @example
3877
- * ```tsx
3878
- * const MyComponent = () => {
3879
- * const date = useDate({ initialValue: '01 JAN 2024' })
3880
- * return <input onChange={date.onChange} type="text" value={date.value} />
3881
- * }
4255
+ * @deprecated use the DatePicker family instead
3882
4256
  */
3883
4257
  declare function useDate(options?: UseDateOptions): UseDateReturn;
3884
4258
  export { useDate }
@@ -3944,9 +4318,7 @@ export { useFeatureFlags as useFeatureFlags_alias_1 }
3944
4318
  * Used to access the field context.
3945
4319
  * @returns The field context.
3946
4320
  */
3947
- declare function useFieldContext(): FieldContextValue;
3948
- export { useFieldContext }
3949
- export { useFieldContext as useFieldContext_alias_1 }
4321
+ export declare function useFieldContext(): FieldContextValue;
3950
4322
 
3951
4323
  /**
3952
4324
  * Provides a hook for using a custom modal via the native dialog element