@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
@@ -1,14 +1,3 @@
1
- import {
2
- NavMenuList,
3
- getPosition
4
- } from "./chunk-AIJ75ENY.js";
5
- import {
6
- NavMenuTrigger
7
- } from "./chunk-245SMQ45.js";
8
- import {
9
- ThemeProvider,
10
- useThemeContext
11
- } from "./chunk-EB37HRCN.js";
12
1
  import {
13
2
  Modal
14
3
  } from "./chunk-Q3I4H6EC.js";
@@ -24,14 +13,31 @@ import {
24
13
  import {
25
14
  NavMenuLink
26
15
  } from "./chunk-YOTXFCCC.js";
16
+ import {
17
+ NavMenuList,
18
+ getPosition
19
+ } from "./chunk-AIJ75ENY.js";
20
+ import {
21
+ NavMenuTrigger
22
+ } from "./chunk-245SMQ45.js";
23
+ import {
24
+ ThemeProvider,
25
+ useThemeContext
26
+ } from "./chunk-EB37HRCN.js";
27
+ import {
28
+ FieldMessage
29
+ } from "./chunk-L7N24B6B.js";
30
+ import {
31
+ Label
32
+ } from "./chunk-LT62577B.js";
27
33
  import {
28
34
  ConfirmModal,
29
35
  useConfirmModal
30
- } from "./chunk-7S47NSGR.js";
36
+ } from "./chunk-H54FR7IP.js";
31
37
  import {
32
38
  CTAModal,
33
39
  useCTAModal
34
- } from "./chunk-3RGRHMJQ.js";
40
+ } from "./chunk-ZDANBCM3.js";
35
41
  import {
36
42
  NavMenu,
37
43
  useNavMenuContext
@@ -39,20 +45,17 @@ import {
39
45
  import {
40
46
  NotificationCenter,
41
47
  useNotificationCenter
42
- } from "./chunk-Z7FGXAND.js";
48
+ } from "./chunk-FMRWRVUS.js";
43
49
  import {
44
50
  PromptModal,
45
51
  usePromptModal
46
- } from "./chunk-Q4IV5NUT.js";
52
+ } from "./chunk-CMYD5KWA.js";
47
53
  import {
48
54
  Tbody
49
55
  } from "./chunk-ZR37P4NZ.js";
50
56
  import {
51
57
  Td
52
58
  } from "./chunk-3R4TIF2X.js";
53
- import {
54
- Textarea
55
- } from "./chunk-JIJM6JFJ.js";
56
59
  import {
57
60
  Th
58
61
  } from "./chunk-SGKHA4EB.js";
@@ -61,23 +64,23 @@ import {
61
64
  } from "./chunk-Y6QQCRQV.js";
62
65
  import {
63
66
  Toggle
64
- } from "./chunk-XQICKZH4.js";
67
+ } from "./chunk-GENS32QO.js";
65
68
  import {
66
69
  Tooltip
67
70
  } from "./chunk-LPALHB6R.js";
71
+ import {
72
+ For
73
+ } from "./chunk-77FJSNGD.js";
68
74
  import {
69
75
  Radio
70
- } from "./chunk-FTPZHG6J.js";
76
+ } from "./chunk-6WOJAMZV.js";
71
77
  import {
72
78
  Option,
73
79
  OptionGroup,
74
80
  OptionGroupLabel,
75
81
  Select,
76
82
  createSelectCollection
77
- } from "./chunk-5QONP7GT.js";
78
- import {
79
- Text
80
- } from "./chunk-RU5LOXWI.js";
83
+ } from "./chunk-S2X5OEPK.js";
81
84
  import {
82
85
  SelectClearTrigger,
83
86
  SelectContent,
@@ -113,12 +116,9 @@ import {
113
116
  import {
114
117
  Tag
115
118
  } from "./chunk-MISIUX63.js";
116
- import {
117
- Label
118
- } from "./chunk-NMF2HYWO.js";
119
119
  import {
120
120
  Legend
121
- } from "./chunk-ILQW5VZT.js";
121
+ } from "./chunk-RBNOEAWJ.js";
122
122
  import {
123
123
  Menu,
124
124
  MenuContent,
@@ -137,6 +137,23 @@ import {
137
137
  import {
138
138
  NotificationHeading
139
139
  } from "./chunk-SLHYBPJ5.js";
140
+ import {
141
+ DialogCloseIconTrigger
142
+ } from "./chunk-6BN3XKQF.js";
143
+ import {
144
+ Dialog,
145
+ DialogBackdrop,
146
+ DialogCloseTrigger,
147
+ DialogContent,
148
+ DialogDescription,
149
+ DialogHeading,
150
+ DialogPositioner,
151
+ DialogProvider,
152
+ DialogTrigger
153
+ } from "./chunk-TFL56AYR.js";
154
+ import {
155
+ Droppable
156
+ } from "./chunk-TKI2CKHH.js";
140
157
  import {
141
158
  FeatureFlag
142
159
  } from "./chunk-BIDE4IJG.js";
@@ -146,29 +163,32 @@ import {
146
163
  } from "./chunk-CJFW36DZ.js";
147
164
  import {
148
165
  Fieldset
149
- } from "./chunk-3ZDFQO25.js";
166
+ } from "./chunk-6EUC3SUI.js";
150
167
  import {
151
168
  FieldsetLabel
152
- } from "./chunk-PZAZKQMO.js";
169
+ } from "./chunk-OYT7RGC7.js";
153
170
  import {
154
171
  FileStatus,
155
172
  processStatus
156
- } from "./chunk-7P7OWBGV.js";
173
+ } from "./chunk-CF3EHG42.js";
157
174
  import {
158
175
  ProgressBar
159
176
  } from "./chunk-WZJ5UQNM.js";
160
- import {
161
- FieldMessage
162
- } from "./chunk-JWIJHSI6.js";
163
177
  import {
164
178
  FileUploader
165
179
  } from "./chunk-7SU6FCTJ.js";
166
180
  import {
167
- Input
168
- } from "./chunk-VYCU7I4J.js";
181
+ AccordionItemGroup
182
+ } from "./chunk-WN7TJX6J.js";
169
183
  import {
170
- Checkbox
171
- } from "./chunk-NGOLRISW.js";
184
+ Admonition,
185
+ AdmonitionDescription,
186
+ AdmonitionHeading
187
+ } from "./chunk-DXBZ3HMY.js";
188
+ import "./chunk-2HOUQ2DX.js";
189
+ import {
190
+ Avatar
191
+ } from "./chunk-SXLPDPOZ.js";
172
192
  import {
173
193
  CircularProgress
174
194
  } from "./chunk-6QHOKCV3.js";
@@ -183,11 +203,13 @@ import {
183
203
  DatePickerViewControlGroup,
184
204
  DatePickerYearView,
185
205
  RangePickerInput
186
- } from "./chunk-KU2AWAK3.js";
206
+ } from "./chunk-FK52US7K.js";
187
207
  import {
188
- Field,
189
- useFieldContext
190
- } from "./chunk-UZDVOIW5.js";
208
+ Portal
209
+ } from "./chunk-IQJDVFPP.js";
210
+ import {
211
+ IconButton
212
+ } from "./chunk-APD6IX5R.js";
191
213
  import {
192
214
  DatePickerContext,
193
215
  DatePickerLabel,
@@ -198,55 +220,63 @@ import {
198
220
  DatePickerView,
199
221
  DatePickerViewControl
200
222
  } from "./chunk-5EWCH7AI.js";
223
+ import "./chunk-TIJAFPHQ.js";
201
224
  import {
202
- DialogCloseIconTrigger
203
- } from "./chunk-6BN3XKQF.js";
225
+ Checkbox
226
+ } from "./chunk-UNN4LHRS.js";
227
+ import "./chunk-EL4MX2PG.js";
204
228
  import {
205
- IconButton
206
- } from "./chunk-APD6IX5R.js";
229
+ Text
230
+ } from "./chunk-RU5LOXWI.js";
207
231
  import {
208
- Dialog,
209
- DialogBackdrop,
210
- DialogCloseTrigger,
211
- DialogContent,
212
- DialogDescription,
213
- DialogHeading,
214
- DialogPositioner,
215
- DialogProvider,
216
- DialogTrigger
217
- } from "./chunk-TFL56AYR.js";
232
+ CheckboxParts
233
+ } from "./chunk-KWZ3CEG6.js";
234
+ import {
235
+ CheckboxControl,
236
+ CheckboxGroup,
237
+ CheckboxHiddenInput,
238
+ CheckboxIndicator,
239
+ CheckboxLabel,
240
+ CheckboxRoot
241
+ } from "./chunk-BPRF34DU.js";
242
+ import "./chunk-TYPULJMJ.js";
243
+ import {
244
+ Field
245
+ } from "./chunk-FBS7AX76.js";
246
+ import {
247
+ FieldParts
248
+ } from "./chunk-6I2FW4WI.js";
249
+ import {
250
+ FieldErrorText,
251
+ FieldHelperText,
252
+ FieldInput,
253
+ FieldLabel,
254
+ FieldRequiredIndicator,
255
+ FieldRoot,
256
+ FieldTextarea,
257
+ Input,
258
+ Textarea
259
+ } from "./chunk-VSTOSLFS.js";
218
260
  import {
219
- Portal
220
- } from "./chunk-IQJDVFPP.js";
261
+ FieldStartIndicator
262
+ } from "./chunk-Z52R6ABJ.js";
221
263
  import {
222
- Droppable
223
- } from "./chunk-TKI2CKHH.js";
264
+ FieldStatusIndicator
265
+ } from "./chunk-CNA2VKAH.js";
224
266
  import "./chunk-V3M3ZOQI.js";
225
- import {
226
- AccordionItemGroup
227
- } from "./chunk-WN7TJX6J.js";
228
267
  import {
229
268
  AccordionItemIndicator
230
269
  } from "./chunk-XZGXRRSQ.js";
270
+ import {
271
+ CerberusProvider,
272
+ useCerberusContext
273
+ } from "./chunk-GITT5645.js";
231
274
  import {
232
275
  Accordion,
233
276
  AccordionItem,
234
277
  AccordionItemContent,
235
278
  AccordionItemTrigger
236
279
  } from "./chunk-AZRFYQO7.js";
237
- import {
238
- Admonition,
239
- AdmonitionDescription,
240
- AdmonitionHeading
241
- } from "./chunk-DXBZ3HMY.js";
242
- import "./chunk-2HOUQ2DX.js";
243
- import {
244
- Avatar
245
- } from "./chunk-SXLPDPOZ.js";
246
- import {
247
- CerberusProvider,
248
- useCerberusContext
249
- } from "./chunk-GITT5645.js";
250
280
  import {
251
281
  useModal
252
282
  } from "./chunk-KGQG5JGW.js";
@@ -262,8 +292,9 @@ import {
262
292
  useToggle
263
293
  } from "./chunk-REO5GUNC.js";
264
294
  import {
265
- formatNotifyCount
266
- } from "./chunk-C5EHJUS5.js";
295
+ formatNotifyCount,
296
+ splitProps
297
+ } from "./chunk-BL7G3577.js";
267
298
  import {
268
299
  getLocalStorage,
269
300
  setLocalStorage
@@ -271,11 +302,11 @@ import {
271
302
  import "./chunk-CYC2YUKU.js";
272
303
  import {
273
304
  ButtonParts
274
- } from "./chunk-2JX27W6Y.js";
305
+ } from "./chunk-2BIHLH4V.js";
275
306
  import {
276
307
  Button,
277
308
  ButtonIcon
278
- } from "./chunk-MER66QUY.js";
309
+ } from "./chunk-6KZVE4HC.js";
279
310
  import {
280
311
  Spinner
281
312
  } from "./chunk-7SYJFI5E.js";
@@ -304,7 +335,7 @@ import {
304
335
  formatMilitaryDate,
305
336
  formatMilitaryToISO,
306
337
  useDate
307
- } from "./chunk-3BM6MZ4A.js";
338
+ } from "./chunk-MWRO5QYD.js";
308
339
 
309
340
  // src/index.ts
310
341
  export * from "@dnd-kit/core";
@@ -325,6 +356,13 @@ export {
325
356
  CTAModal,
326
357
  CerberusProvider,
327
358
  Checkbox,
359
+ CheckboxControl,
360
+ CheckboxGroup,
361
+ CheckboxHiddenInput,
362
+ CheckboxIndicator,
363
+ CheckboxLabel,
364
+ CheckboxParts,
365
+ CheckboxRoot,
328
366
  CircularProgress,
329
367
  ConfirmModal,
330
368
  DateFormats,
@@ -359,11 +397,22 @@ export {
359
397
  FeatureFlag,
360
398
  FeatureFlags,
361
399
  Field,
400
+ FieldErrorText,
401
+ FieldHelperText,
402
+ FieldInput,
403
+ FieldLabel,
362
404
  FieldMessage,
405
+ FieldParts,
406
+ FieldRequiredIndicator,
407
+ FieldRoot,
408
+ FieldStartIndicator,
409
+ FieldStatusIndicator,
410
+ FieldTextarea,
363
411
  Fieldset,
364
412
  FieldsetLabel,
365
413
  FileStatus,
366
414
  FileUploader,
415
+ For,
367
416
  IconButton,
368
417
  Input,
369
418
  Label,
@@ -445,13 +494,13 @@ export {
445
494
  makeSystemConfig,
446
495
  processStatus,
447
496
  setLocalStorage,
497
+ splitProps,
448
498
  trapFocus,
449
499
  useCTAModal,
450
500
  useCerberusContext,
451
501
  useConfirmModal,
452
502
  useDate,
453
503
  useFeatureFlags,
454
- useFieldContext,
455
504
  useModal,
456
505
  useNavMenuContext,
457
506
  useNotificationCenter,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/button/index'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Spinner'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Select'\nexport * from './components/Select.server'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/FieldMessage'\nexport * from './components/deprecated/Label'\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\nexport * from './hooks/useDate'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/button/index'\nexport * from './components/checkbox/index'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\nexport * from './components/Droppable'\nexport * from './components/FeatureFlag'\nexport * from './components/field/index'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/for'\nexport * from './components/IconButton'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Spinner'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Select'\nexport * from './components/Select.server'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmGA,cAAc;","names":[]}
@@ -1,6 +1,7 @@
1
1
  import {
2
- formatNotifyCount
3
- } from "../chunk-C5EHJUS5.js";
2
+ formatNotifyCount,
3
+ splitProps
4
+ } from "../chunk-BL7G3577.js";
4
5
  import {
5
6
  getLocalStorage,
6
7
  setLocalStorage
@@ -8,6 +9,7 @@ import {
8
9
  export {
9
10
  formatNotifyCount,
10
11
  getLocalStorage,
11
- setLocalStorage
12
+ setLocalStorage,
13
+ splitProps
12
14
  };
13
15
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerberus-design/react",
3
- "version": "0.15.0-next-e0ce56e",
3
+ "version": "0.15.0-next-5d7dc1e",
4
4
  "description": "The Cerberus Design React component library.",
5
5
  "browserslist": "> 0.25%, not dead",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  "react-dom": "^18",
27
27
  "tsup": "^8.1.0",
28
28
  "@cerberus-design/configs": "0.0.0",
29
- "@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.15.0-next-e0ce56e"
29
+ "@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.15.0-next-5d7dc1e"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
@@ -12,7 +12,6 @@ import {
12
12
  import { Portal } from './Portal'
13
13
  import { datePicker, iconButton } from '@cerberus/styled-system/recipes'
14
14
  import { css, cx } from '@cerberus/styled-system/css'
15
- import { useFieldContext } from '../context/field'
16
15
  import {
17
16
  DatePickerView,
18
17
  DatePickerContext,
@@ -50,12 +49,10 @@ const datePickerStyles = datePicker()
50
49
  * ```
51
50
  */
52
51
  export function DatePicker(props: DatePickerRootProps) {
53
- const states = useFieldContext()
54
-
55
- // TODO: Remove this once the bug is fixed: https://github.com/chakra-ui/ark/issues/3112
56
-
57
52
  // There is a bug with the Root component that causes random date selection
58
53
  // onBlur after the first selection if the format prop is used.
54
+ // ref: https://github.com/chakra-ui/ark/issues/3112#event-16047829195
55
+
59
56
  // const handleFormat = useCallback((value: DateValue) => {
60
57
  // return formatISOToMilitary(value.toString())
61
58
  // }, [])
@@ -63,7 +60,6 @@ export function DatePicker(props: DatePickerRootProps) {
63
60
  return (
64
61
  <ArkDP.Root
65
62
  {...props}
66
- {...states}
67
63
  positioning={{
68
64
  placement: 'bottom-start',
69
65
  }}
@@ -157,14 +153,11 @@ export function DatePickerTrigger(props: DatePickerTriggerProps) {
157
153
  * ```
158
154
  */
159
155
  export function DatePickerInput(props: DatePickerInputProps) {
160
- const { invalid, ...fieldStates } = useFieldContext()
161
156
  return (
162
157
  <ArkDP.Control className={datePickerStyles.control}>
163
158
  <DatePickerTrigger />
164
159
  <ArkDP.Input
165
160
  {...props}
166
- {...fieldStates}
167
- {...(invalid && { 'aria-invalid': true })}
168
161
  className={cx(props.className, datePickerStyles.input)}
169
162
  placeholder={props.placeholder ?? 'DD MMM YYYY'}
170
163
  maxLength={11}
@@ -200,7 +193,6 @@ export interface RangePickerInputProps
200
193
  * ```
201
194
  */
202
195
  export function RangePickerInput(props: RangePickerInputProps) {
203
- const { invalid, ...fieldStates } = useFieldContext()
204
196
  const { defaultValue, ...nativeProps } = props
205
197
 
206
198
  const startDate = useMemo(() => defaultValue?.[0], [defaultValue])
@@ -211,8 +203,6 @@ export function RangePickerInput(props: RangePickerInputProps) {
211
203
  <DatePickerTrigger />
212
204
  <ArkDP.Input
213
205
  {...nativeProps}
214
- {...fieldStates}
215
- {...(invalid && { 'aria-invalid': true })}
216
206
  data-range-input
217
207
  defaultValue={startDate}
218
208
  className={cx(props.className, datePickerStyles.input)}
@@ -222,8 +212,6 @@ export function RangePickerInput(props: RangePickerInputProps) {
222
212
  />
223
213
  <ArkDP.Input
224
214
  {...nativeProps}
225
- {...fieldStates}
226
- {...(invalid && { 'aria-invalid': true })}
227
215
  data-range-input
228
216
  defaultValue={endDate}
229
217
  data-range-end-input
@@ -1,8 +1,8 @@
1
1
  'use client'
2
2
 
3
+ import { useFieldContext } from '@ark-ui/react/field'
3
4
  import { css, cx } from '@cerberus/styled-system/css'
4
5
  import type { FieldsetHTMLAttributes } from 'react'
5
- import { useFieldContext } from '../context/field'
6
6
 
7
7
  /**
8
8
  * This module contains the Fieldset component.
@@ -45,12 +45,12 @@ export type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>
45
45
  * }
46
46
  */
47
47
  export function Fieldset(props: FieldsetProps) {
48
- const { invalid, ...formState } = useFieldContext()
48
+ const { invalid, disabled } = useFieldContext()
49
49
 
50
50
  return (
51
51
  <fieldset
52
52
  {...props}
53
- {...formState}
53
+ disabled={disabled}
54
54
  {...(invalid && { 'aria-invalid': true })}
55
55
  className={cx(
56
56
  props.className,
@@ -1,13 +1,16 @@
1
1
  import { cx } from '@cerberus/styled-system/css'
2
2
  import { label, type LabelVariantProps } from '@cerberus/styled-system/recipes'
3
- import type { LabelProps } from './Label'
3
+ import type { LabelProps } from './deprecated/Label'
4
4
 
5
5
  /**
6
6
  * This module contains the FieldsetLabel component.
7
7
  * @module FieldsetLabel
8
8
  */
9
9
 
10
- export type FieldsetLabelProps = LabelProps & LabelVariantProps
10
+ export type FieldsetLabelProps = LabelProps &
11
+ LabelVariantProps & {
12
+ htmlFor?: string
13
+ }
11
14
 
12
15
  /**
13
16
  * Used for labeling inputs that are children of a Fieldset group.
@@ -12,12 +12,11 @@ import {
12
12
  } from '@cerberus/styled-system/recipes'
13
13
  import { css, cx } from '@cerberus/styled-system/css'
14
14
  import { hstack, vstack } from '@cerberus/styled-system/patterns'
15
- import { Field } from '../context/field'
16
15
  import { useCerberusContext } from '../context/cerberus'
17
- import { FieldMessage } from './FieldMessage'
18
16
  import { ProgressBar, type ProgressBarProps } from './ProgressBar'
19
17
  import { IconButton } from './IconButton'
20
18
  import { Avatar } from './Avatar'
19
+ import { Field, FieldHelperText } from './field/index'
21
20
 
22
21
  /**
23
22
  * This module contains the FileStatus component.
@@ -157,15 +156,15 @@ export function FileStatus(props: FileStatusProps) {
157
156
  now={now}
158
157
  size="sm"
159
158
  />
160
- <Field invalid={modalIconPalette === 'hades-dark'}>
161
- <FieldMessage
159
+ <Field label="" invalid={modalIconPalette === 'hades-dark'}>
160
+ <FieldHelperText
162
161
  className={css({
163
162
  color: 'page.text.100',
164
163
  })}
165
164
  id={`help:${file}`}
166
165
  >
167
166
  <MatchFileStatusText status={status} now={now} />
168
- </FieldMessage>
167
+ </FieldHelperText>
169
168
  </Field>
170
169
  </div>
171
170
 
@@ -1,11 +1,11 @@
1
1
  'use client'
2
2
 
3
3
  import { css, cx } from '@cerberus/styled-system/css'
4
- import { type HTMLAttributes } from 'react'
5
- import { useFieldContext } from '../context/field'
6
- import { Show } from './Show'
7
4
  import { label, type LabelVariantProps } from '@cerberus/styled-system/recipes'
8
5
  import { hstack } from '@cerberus/styled-system/patterns'
6
+ import { type HTMLAttributes } from 'react'
7
+ import { Show } from './Show'
8
+ import { useFieldContext } from '@ark-ui/react/field'
9
9
 
10
10
  /**
11
11
  * This module contains the Fieldset component.
@@ -50,12 +50,11 @@ export type LegendProps = HTMLAttributes<HTMLLegendElement> & LabelVariantProps
50
50
  */
51
51
  export function Legend(props: LegendProps) {
52
52
  const { size, ...nativeProps } = props
53
- const { invalid, ...formState } = useFieldContext()
53
+ const { invalid, required } = useFieldContext()
54
54
 
55
55
  return (
56
56
  <legend
57
57
  {...nativeProps}
58
- {...formState}
59
58
  {...(invalid && { 'aria-invalid': true })}
60
59
  className={cx(
61
60
  nativeProps.className,
@@ -69,7 +68,7 @@ export function Legend(props: LegendProps) {
69
68
  )}
70
69
  >
71
70
  {nativeProps.children}
72
- <Show when={formState.required}>
71
+ <Show when={required}>
73
72
  <span
74
73
  className={css({
75
74
  color: 'page.text.100',
@@ -1,11 +1,9 @@
1
- 'use client'
2
-
1
+ import { Field } from '@ark-ui/react/field'
3
2
  import { cx } from '@cerberus/styled-system/css'
4
3
  import { hstack } from '@cerberus/styled-system/patterns'
5
4
  import { radio } from '@cerberus/styled-system/recipes'
6
5
  import type { RecipeVariantProps } from '@cerberus/styled-system/types'
7
6
  import type { InputHTMLAttributes, PropsWithChildren } from 'react'
8
- import { useFieldContext } from '../context/field'
9
7
 
10
8
  /**
11
9
  * This module contains the Radio component.
@@ -45,7 +43,6 @@ export type RadioProps = RadioBaseProps & RadioRecipe
45
43
  */
46
44
  export function Radio(props: PropsWithChildren<RadioProps>) {
47
45
  const { children, size, ...nativeProps } = props
48
- const { invalid, ...state } = useFieldContext()
49
46
  const styles = radio({ size })
50
47
 
51
48
  return (
@@ -59,10 +56,8 @@ export function Radio(props: PropsWithChildren<RadioProps>) {
59
56
  )}
60
57
  tabIndex={0}
61
58
  >
62
- <input
59
+ <Field.Input
63
60
  {...nativeProps}
64
- {...state}
65
- {...(invalid && { 'aria-invalid': true })}
66
61
  className={cx(nativeProps.className, styles.input)}
67
62
  tabIndex={-1}
68
63
  type="radio"