@cdx-ui/primitives 0.0.1-beta.1 → 0.0.1-beta.100

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 (985) hide show
  1. package/README.md +67 -32
  2. package/lib/commonjs/CLAUDE.md +86 -0
  3. package/lib/commonjs/avatar/AvatarRoot.js +38 -0
  4. package/lib/commonjs/avatar/AvatarRoot.js.map +1 -0
  5. package/lib/commonjs/avatar/index.js +14 -24
  6. package/lib/commonjs/avatar/index.js.map +1 -1
  7. package/lib/commonjs/button/ButtonRoot.js +85 -0
  8. package/lib/commonjs/button/ButtonRoot.js.map +1 -0
  9. package/lib/commonjs/button/index.js +7 -24
  10. package/lib/commonjs/button/index.js.map +1 -1
  11. package/lib/commonjs/checkbox/CheckboxGroup.js +52 -0
  12. package/lib/commonjs/checkbox/CheckboxGroup.js.map +1 -0
  13. package/lib/commonjs/checkbox/CheckboxRoot.js +103 -0
  14. package/lib/commonjs/checkbox/CheckboxRoot.js.map +1 -0
  15. package/lib/commonjs/checkbox/CheckboxRoot.web.js +94 -0
  16. package/lib/commonjs/checkbox/CheckboxRoot.web.js.map +1 -0
  17. package/lib/commonjs/checkbox/index.js +21 -24
  18. package/lib/commonjs/checkbox/index.js.map +1 -1
  19. package/lib/commonjs/chip/ChipRoot.js +147 -0
  20. package/lib/commonjs/chip/ChipRoot.js.map +1 -0
  21. package/lib/commonjs/chip/context.js +11 -0
  22. package/lib/commonjs/chip/context.js.map +1 -0
  23. package/lib/commonjs/chip/index.js +20 -0
  24. package/lib/commonjs/chip/index.js.map +1 -0
  25. package/lib/commonjs/chip/types.js.map +1 -0
  26. package/lib/commonjs/dialog/DialogClose.js +32 -0
  27. package/lib/commonjs/dialog/DialogClose.js.map +1 -0
  28. package/lib/commonjs/dialog/DialogPopup.js +161 -0
  29. package/lib/commonjs/dialog/DialogPopup.js.map +1 -0
  30. package/lib/commonjs/dialog/DialogRoot.js +57 -0
  31. package/lib/commonjs/dialog/DialogRoot.js.map +1 -0
  32. package/lib/commonjs/dialog/DialogTrigger.js +32 -0
  33. package/lib/commonjs/dialog/DialogTrigger.js.map +1 -0
  34. package/lib/commonjs/dialog/index.js +28 -41
  35. package/lib/commonjs/dialog/index.js.map +1 -1
  36. package/lib/commonjs/field/FieldLabel.js +48 -0
  37. package/lib/commonjs/field/FieldLabel.js.map +1 -0
  38. package/lib/commonjs/field/FieldLabel.web.js +60 -0
  39. package/lib/commonjs/field/FieldLabel.web.js.map +1 -0
  40. package/lib/commonjs/field/FieldRoot.js +38 -0
  41. package/lib/commonjs/field/FieldRoot.js.map +1 -0
  42. package/lib/commonjs/field/index.js +14 -40
  43. package/lib/commonjs/field/index.js.map +1 -1
  44. package/lib/commonjs/form/FormRoot.js +25 -0
  45. package/lib/commonjs/form/FormRoot.js.map +1 -0
  46. package/lib/commonjs/form/FormRoot.web.js +27 -0
  47. package/lib/commonjs/form/FormRoot.web.js.map +1 -0
  48. package/lib/commonjs/form/index.js +7 -9
  49. package/lib/commonjs/form/index.js.map +1 -1
  50. package/lib/commonjs/full-window-overlay/index.js +47 -0
  51. package/lib/commonjs/full-window-overlay/index.js.map +1 -0
  52. package/lib/commonjs/full-window-overlay/index.web.js +19 -0
  53. package/lib/commonjs/full-window-overlay/index.web.js.map +1 -0
  54. package/lib/commonjs/index.js +134 -5
  55. package/lib/commonjs/index.js.map +1 -1
  56. package/lib/commonjs/input/InputField.android.js +98 -0
  57. package/lib/commonjs/input/InputField.android.js.map +1 -0
  58. package/lib/commonjs/input/InputField.js +92 -0
  59. package/lib/commonjs/input/InputField.js.map +1 -0
  60. package/lib/commonjs/input/InputField.web.js +131 -0
  61. package/lib/commonjs/input/InputField.web.js.map +1 -0
  62. package/lib/commonjs/input/InputRoot.js +92 -0
  63. package/lib/commonjs/input/InputRoot.js.map +1 -0
  64. package/lib/commonjs/input/index.js +21 -16
  65. package/lib/commonjs/input/index.js.map +1 -1
  66. package/lib/commonjs/link/LinkRoot.js +88 -0
  67. package/lib/commonjs/link/LinkRoot.js.map +1 -0
  68. package/lib/commonjs/link/context.js +11 -0
  69. package/lib/commonjs/link/context.js.map +1 -0
  70. package/lib/commonjs/link/index.js +16 -3
  71. package/lib/commonjs/link/index.js.map +1 -1
  72. package/lib/commonjs/list-item/ListItemRoot.js +149 -0
  73. package/lib/commonjs/list-item/ListItemRoot.js.map +1 -0
  74. package/lib/commonjs/list-item/context.js +11 -0
  75. package/lib/commonjs/list-item/context.js.map +1 -0
  76. package/lib/commonjs/list-item/index.js +26 -0
  77. package/lib/commonjs/list-item/index.js.map +1 -0
  78. package/lib/commonjs/list-item/types.js +6 -0
  79. package/lib/commonjs/list-item/types.js.map +1 -0
  80. package/lib/commonjs/otp-input/OtpInputField.js +120 -0
  81. package/lib/commonjs/otp-input/OtpInputField.js.map +1 -0
  82. package/lib/commonjs/otp-input/index.js +39 -16
  83. package/lib/commonjs/otp-input/index.js.map +1 -1
  84. package/lib/commonjs/otp-input/useOtpInput.js +120 -0
  85. package/lib/commonjs/otp-input/useOtpInput.js.map +1 -0
  86. package/lib/commonjs/overlay/useDismissOverlay.js +0 -2
  87. package/lib/commonjs/overlay/useDismissOverlay.js.map +1 -1
  88. package/lib/commonjs/overlay/useEscapeKey.js +0 -2
  89. package/lib/commonjs/overlay/useEscapeKey.js.map +1 -1
  90. package/lib/commonjs/portal/index.js +17 -0
  91. package/lib/commonjs/portal/index.js.map +1 -0
  92. package/lib/commonjs/portal/portal.js +110 -0
  93. package/lib/commonjs/portal/portal.js.map +1 -0
  94. package/lib/commonjs/progress-bar/ProgressBarIndicator.js +45 -0
  95. package/lib/commonjs/progress-bar/ProgressBarIndicator.js.map +1 -0
  96. package/lib/commonjs/progress-bar/ProgressBarRoot.js +100 -0
  97. package/lib/commonjs/progress-bar/ProgressBarRoot.js.map +1 -0
  98. package/lib/commonjs/progress-bar/context.js.map +1 -0
  99. package/lib/commonjs/progress-bar/index.js +27 -0
  100. package/lib/commonjs/progress-bar/index.js.map +1 -0
  101. package/lib/commonjs/progress-bar/types.js +6 -0
  102. package/lib/commonjs/progress-bar/types.js.map +1 -0
  103. package/lib/commonjs/radio/RadioGroup.js +74 -0
  104. package/lib/commonjs/radio/RadioGroup.js.map +1 -0
  105. package/lib/commonjs/radio/RadioRoot.js +99 -0
  106. package/lib/commonjs/radio/RadioRoot.js.map +1 -0
  107. package/lib/commonjs/radio/RadioRoot.web.js +91 -0
  108. package/lib/commonjs/radio/RadioRoot.web.js.map +1 -0
  109. package/lib/commonjs/radio/context.js +14 -0
  110. package/lib/commonjs/radio/context.js.map +1 -0
  111. package/lib/commonjs/radio/index.js +27 -0
  112. package/lib/commonjs/radio/index.js.map +1 -0
  113. package/lib/commonjs/radio/types.js +6 -0
  114. package/lib/commonjs/radio/types.js.map +1 -0
  115. package/lib/commonjs/radio/useRadioRoot.js +64 -0
  116. package/lib/commonjs/radio/useRadioRoot.js.map +1 -0
  117. package/lib/commonjs/select/SelectContent.js +105 -0
  118. package/lib/commonjs/select/SelectContent.js.map +1 -0
  119. package/lib/commonjs/select/SelectItem.js +104 -0
  120. package/lib/commonjs/select/SelectItem.js.map +1 -0
  121. package/lib/commonjs/select/SelectRoot.js +105 -0
  122. package/lib/commonjs/select/SelectRoot.js.map +1 -0
  123. package/lib/commonjs/select/SelectTrigger.js +72 -0
  124. package/lib/commonjs/select/SelectTrigger.js.map +1 -0
  125. package/lib/commonjs/select/SelectTrigger.web.js +175 -0
  126. package/lib/commonjs/select/SelectTrigger.web.js.map +1 -0
  127. package/lib/commonjs/select/context.js +3 -12
  128. package/lib/commonjs/select/context.js.map +1 -1
  129. package/lib/commonjs/select/index.js +41 -32
  130. package/lib/commonjs/select/index.js.map +1 -1
  131. package/lib/commonjs/select/useContentFocus.js +1 -1
  132. package/lib/commonjs/select/useSelectTrigger.js +214 -0
  133. package/lib/commonjs/select/useSelectTrigger.js.map +1 -0
  134. package/lib/commonjs/select/useSelectTrigger.web.js +201 -0
  135. package/lib/commonjs/select/useSelectTrigger.web.js.map +1 -0
  136. package/lib/commonjs/slot/index.js +141 -0
  137. package/lib/commonjs/slot/index.js.map +1 -0
  138. package/lib/commonjs/switch/index.js +7 -9
  139. package/lib/commonjs/switch/index.js.map +1 -1
  140. package/lib/commonjs/switch/useSwitch.js +81 -0
  141. package/lib/commonjs/switch/useSwitch.js.map +1 -0
  142. package/lib/commonjs/tile/TileGroup.js +111 -0
  143. package/lib/commonjs/tile/TileGroup.js.map +1 -0
  144. package/lib/commonjs/tile/TileRoot.js +129 -0
  145. package/lib/commonjs/tile/TileRoot.js.map +1 -0
  146. package/lib/commonjs/tile/context.js +30 -0
  147. package/lib/commonjs/tile/context.js.map +1 -0
  148. package/lib/commonjs/tile/index.js +33 -0
  149. package/lib/commonjs/tile/index.js.map +1 -0
  150. package/lib/commonjs/tile/types.js +6 -0
  151. package/lib/commonjs/tile/types.js.map +1 -0
  152. package/lib/commonjs/toast/ToastRoot.js +41 -0
  153. package/lib/commonjs/toast/ToastRoot.js.map +1 -0
  154. package/lib/commonjs/toast/context.js +11 -0
  155. package/lib/commonjs/toast/context.js.map +1 -0
  156. package/lib/commonjs/toast/index.js +26 -0
  157. package/lib/commonjs/toast/index.js.map +1 -0
  158. package/lib/commonjs/toast/types.js +6 -0
  159. package/lib/commonjs/toast/types.js.map +1 -0
  160. package/lib/commonjs/utils/dataAttributes.js +12 -25
  161. package/lib/commonjs/utils/dataAttributes.js.map +1 -1
  162. package/lib/commonjs/utils/dataAttributes.web.js +25 -0
  163. package/lib/commonjs/utils/dataAttributes.web.js.map +1 -1
  164. package/lib/commonjs/utils/domDataAttributes.js +64 -0
  165. package/lib/commonjs/utils/domDataAttributes.js.map +1 -0
  166. package/lib/module/CLAUDE.md +86 -0
  167. package/lib/module/avatar/AvatarRoot.js +34 -0
  168. package/lib/module/avatar/AvatarRoot.js.map +1 -0
  169. package/lib/module/avatar/index.js +2 -23
  170. package/lib/module/avatar/index.js.map +1 -1
  171. package/lib/module/button/ButtonRoot.js +81 -0
  172. package/lib/module/button/ButtonRoot.js.map +1 -0
  173. package/lib/module/button/index.js +1 -23
  174. package/lib/module/button/index.js.map +1 -1
  175. package/lib/module/checkbox/CheckboxGroup.js +48 -0
  176. package/lib/module/checkbox/CheckboxGroup.js.map +1 -0
  177. package/lib/module/checkbox/CheckboxRoot.js +99 -0
  178. package/lib/module/checkbox/CheckboxRoot.js.map +1 -0
  179. package/lib/module/checkbox/CheckboxRoot.web.js +90 -0
  180. package/lib/module/checkbox/CheckboxRoot.web.js.map +1 -0
  181. package/lib/module/checkbox/index.js +3 -23
  182. package/lib/module/checkbox/index.js.map +1 -1
  183. package/lib/module/chip/ChipRoot.js +142 -0
  184. package/lib/module/chip/ChipRoot.js.map +1 -0
  185. package/lib/module/chip/context.js +5 -0
  186. package/lib/module/chip/context.js.map +1 -0
  187. package/lib/module/chip/index.js +5 -0
  188. package/lib/module/chip/index.js.map +1 -0
  189. package/lib/module/chip/types.js.map +1 -0
  190. package/lib/module/dialog/DialogClose.js +28 -0
  191. package/lib/module/dialog/DialogClose.js.map +1 -0
  192. package/lib/module/dialog/DialogPopup.js +157 -0
  193. package/lib/module/dialog/DialogPopup.js.map +1 -0
  194. package/lib/module/dialog/DialogRoot.js +53 -0
  195. package/lib/module/dialog/DialogRoot.js.map +1 -0
  196. package/lib/module/dialog/DialogTrigger.js +28 -0
  197. package/lib/module/dialog/DialogTrigger.js.map +1 -0
  198. package/lib/module/dialog/index.js +5 -42
  199. package/lib/module/dialog/index.js.map +1 -1
  200. package/lib/module/field/FieldLabel.js +44 -0
  201. package/lib/module/field/FieldLabel.js.map +1 -0
  202. package/lib/module/field/FieldLabel.web.js +55 -0
  203. package/lib/module/field/FieldLabel.web.js.map +1 -0
  204. package/lib/module/field/FieldRoot.js +34 -0
  205. package/lib/module/field/FieldRoot.js.map +1 -0
  206. package/lib/module/field/index.js +2 -39
  207. package/lib/module/field/index.js.map +1 -1
  208. package/lib/module/form/FormRoot.js +21 -0
  209. package/lib/module/form/FormRoot.js.map +1 -0
  210. package/lib/module/form/FormRoot.web.js +22 -0
  211. package/lib/module/form/FormRoot.web.js.map +1 -0
  212. package/lib/module/form/index.js +1 -8
  213. package/lib/module/form/index.js.map +1 -1
  214. package/lib/module/full-window-overlay/index.js +43 -0
  215. package/lib/module/full-window-overlay/index.js.map +1 -0
  216. package/lib/module/full-window-overlay/index.web.js +15 -0
  217. package/lib/module/full-window-overlay/index.web.js.map +1 -0
  218. package/lib/module/index.js +12 -2
  219. package/lib/module/index.js.map +1 -1
  220. package/lib/module/input/InputField.android.js +94 -0
  221. package/lib/module/input/InputField.android.js.map +1 -0
  222. package/lib/module/input/InputField.js +88 -0
  223. package/lib/module/input/InputField.js.map +1 -0
  224. package/lib/module/input/InputField.web.js +126 -0
  225. package/lib/module/input/InputField.web.js.map +1 -0
  226. package/lib/module/input/InputRoot.js +88 -0
  227. package/lib/module/input/InputRoot.js.map +1 -0
  228. package/lib/module/input/index.js +3 -15
  229. package/lib/module/input/index.js.map +1 -1
  230. package/lib/module/link/LinkRoot.js +84 -0
  231. package/lib/module/link/LinkRoot.js.map +1 -0
  232. package/lib/module/link/context.js +5 -0
  233. package/lib/module/link/context.js.map +1 -0
  234. package/lib/module/link/index.js +2 -1
  235. package/lib/module/link/index.js.map +1 -1
  236. package/lib/module/list-item/ListItemRoot.js +144 -0
  237. package/lib/module/list-item/ListItemRoot.js.map +1 -0
  238. package/lib/module/list-item/context.js +5 -0
  239. package/lib/module/list-item/context.js.map +1 -0
  240. package/lib/module/list-item/index.js +5 -0
  241. package/lib/module/list-item/index.js.map +1 -0
  242. package/lib/module/list-item/types.js +4 -0
  243. package/lib/module/list-item/types.js.map +1 -0
  244. package/lib/module/otp-input/OtpInputField.js +116 -0
  245. package/lib/module/otp-input/OtpInputField.js.map +1 -0
  246. package/lib/module/otp-input/index.js +3 -15
  247. package/lib/module/otp-input/index.js.map +1 -1
  248. package/lib/module/otp-input/useOtpInput.js +116 -0
  249. package/lib/module/otp-input/useOtpInput.js.map +1 -0
  250. package/lib/module/overlay/useDismissOverlay.js +0 -2
  251. package/lib/module/overlay/useDismissOverlay.js.map +1 -1
  252. package/lib/module/overlay/useEscapeKey.js +0 -2
  253. package/lib/module/overlay/useEscapeKey.js.map +1 -1
  254. package/lib/module/portal/index.js +4 -0
  255. package/lib/module/portal/index.js.map +1 -0
  256. package/lib/module/portal/portal.js +103 -0
  257. package/lib/module/portal/portal.js.map +1 -0
  258. package/lib/module/progress-bar/ProgressBarIndicator.js +41 -0
  259. package/lib/module/progress-bar/ProgressBarIndicator.js.map +1 -0
  260. package/lib/module/progress-bar/ProgressBarRoot.js +96 -0
  261. package/lib/module/progress-bar/ProgressBarRoot.js.map +1 -0
  262. package/lib/module/progress-bar/context.js.map +1 -0
  263. package/lib/module/progress-bar/index.js +6 -0
  264. package/lib/module/progress-bar/index.js.map +1 -0
  265. package/lib/module/progress-bar/types.js +4 -0
  266. package/lib/module/progress-bar/types.js.map +1 -0
  267. package/lib/module/radio/RadioGroup.js +70 -0
  268. package/lib/module/radio/RadioGroup.js.map +1 -0
  269. package/lib/module/radio/RadioRoot.js +95 -0
  270. package/lib/module/radio/RadioRoot.js.map +1 -0
  271. package/lib/module/radio/RadioRoot.web.js +87 -0
  272. package/lib/module/radio/RadioRoot.web.js.map +1 -0
  273. package/lib/module/radio/context.js +7 -0
  274. package/lib/module/radio/context.js.map +1 -0
  275. package/lib/module/radio/index.js +6 -0
  276. package/lib/module/radio/index.js.map +1 -0
  277. package/lib/module/radio/types.js +4 -0
  278. package/lib/module/radio/types.js.map +1 -0
  279. package/lib/module/radio/useRadioRoot.js +60 -0
  280. package/lib/module/radio/useRadioRoot.js.map +1 -0
  281. package/lib/module/select/SelectContent.js +100 -0
  282. package/lib/module/select/SelectContent.js.map +1 -0
  283. package/lib/module/select/SelectItem.js +100 -0
  284. package/lib/module/select/SelectItem.js.map +1 -0
  285. package/lib/module/select/SelectRoot.js +101 -0
  286. package/lib/module/select/SelectRoot.js.map +1 -0
  287. package/lib/module/select/SelectTrigger.js +67 -0
  288. package/lib/module/select/SelectTrigger.js.map +1 -0
  289. package/lib/module/select/SelectTrigger.web.js +170 -0
  290. package/lib/module/select/SelectTrigger.web.js.map +1 -0
  291. package/lib/module/select/context.js +1 -8
  292. package/lib/module/select/context.js.map +1 -1
  293. package/lib/module/select/index.js +5 -31
  294. package/lib/module/select/index.js.map +1 -1
  295. package/lib/module/select/useContentFocus.js +1 -1
  296. package/lib/module/select/useSelectTrigger.js +210 -0
  297. package/lib/module/select/useSelectTrigger.js.map +1 -0
  298. package/lib/module/select/useSelectTrigger.web.js +197 -0
  299. package/lib/module/select/useSelectTrigger.web.js.map +1 -0
  300. package/lib/module/slot/index.js +135 -0
  301. package/lib/module/slot/index.js.map +1 -0
  302. package/lib/module/switch/index.js +1 -8
  303. package/lib/module/switch/index.js.map +1 -1
  304. package/lib/module/switch/useSwitch.js +77 -0
  305. package/lib/module/switch/useSwitch.js.map +1 -0
  306. package/lib/module/tile/TileGroup.js +107 -0
  307. package/lib/module/tile/TileGroup.js.map +1 -0
  308. package/lib/module/tile/TileRoot.js +125 -0
  309. package/lib/module/tile/TileRoot.js.map +1 -0
  310. package/lib/module/tile/context.js +21 -0
  311. package/lib/module/tile/context.js.map +1 -0
  312. package/lib/module/tile/index.js +6 -0
  313. package/lib/module/tile/index.js.map +1 -0
  314. package/lib/module/tile/types.js +4 -0
  315. package/lib/module/tile/types.js.map +1 -0
  316. package/lib/module/toast/ToastRoot.js +37 -0
  317. package/lib/module/toast/ToastRoot.js.map +1 -0
  318. package/lib/module/toast/context.js +5 -0
  319. package/lib/module/toast/context.js.map +1 -0
  320. package/lib/module/toast/index.js +5 -0
  321. package/lib/module/toast/index.js.map +1 -0
  322. package/lib/module/toast/types.js +4 -0
  323. package/lib/module/toast/types.js.map +1 -0
  324. package/lib/module/utils/dataAttributes.js +4 -22
  325. package/lib/module/utils/dataAttributes.js.map +1 -1
  326. package/lib/module/utils/dataAttributes.web.js +24 -0
  327. package/lib/module/utils/dataAttributes.web.js.map +1 -1
  328. package/lib/module/utils/domDataAttributes.js +59 -0
  329. package/lib/module/utils/domDataAttributes.js.map +1 -0
  330. package/lib/typescript/avatar/AvatarRoot.d.ts +8 -0
  331. package/lib/typescript/avatar/AvatarRoot.d.ts.map +1 -0
  332. package/lib/typescript/avatar/index.d.ts +3 -10
  333. package/lib/typescript/avatar/index.d.ts.map +1 -1
  334. package/lib/typescript/avatar/types.d.ts +1 -17
  335. package/lib/typescript/avatar/types.d.ts.map +1 -1
  336. package/lib/typescript/button/ButtonRoot.d.ts +9 -0
  337. package/lib/typescript/button/ButtonRoot.d.ts.map +1 -0
  338. package/lib/typescript/button/index.d.ts +1 -9
  339. package/lib/typescript/button/index.d.ts.map +1 -1
  340. package/lib/typescript/button/types.d.ts +1 -34
  341. package/lib/typescript/button/types.d.ts.map +1 -1
  342. package/lib/typescript/checkbox/CheckboxGroup.d.ts +9 -0
  343. package/lib/typescript/checkbox/CheckboxGroup.d.ts.map +1 -0
  344. package/lib/typescript/checkbox/CheckboxRoot.d.ts +6 -0
  345. package/lib/typescript/checkbox/CheckboxRoot.d.ts.map +1 -0
  346. package/lib/typescript/checkbox/CheckboxRoot.web.d.ts +6 -0
  347. package/lib/typescript/checkbox/CheckboxRoot.web.d.ts.map +1 -0
  348. package/lib/typescript/checkbox/index.d.ts +4 -10
  349. package/lib/typescript/checkbox/index.d.ts.map +1 -1
  350. package/lib/typescript/checkbox/types.d.ts +0 -17
  351. package/lib/typescript/checkbox/types.d.ts.map +1 -1
  352. package/lib/typescript/checkbox/useCheckboxRoot.d.ts +3 -1
  353. package/lib/typescript/checkbox/useCheckboxRoot.d.ts.map +1 -1
  354. package/lib/typescript/chip/ChipRoot.d.ts +7 -0
  355. package/lib/typescript/chip/ChipRoot.d.ts.map +1 -0
  356. package/lib/typescript/chip/context.d.ts +6 -0
  357. package/lib/typescript/chip/context.d.ts.map +1 -0
  358. package/lib/typescript/chip/index.d.ts +4 -0
  359. package/lib/typescript/chip/index.d.ts.map +1 -0
  360. package/lib/typescript/chip/types.d.ts +16 -0
  361. package/lib/typescript/chip/types.d.ts.map +1 -0
  362. package/lib/typescript/dialog/DialogClose.d.ts +5 -0
  363. package/lib/typescript/dialog/DialogClose.d.ts.map +1 -0
  364. package/lib/typescript/dialog/DialogPopup.d.ts +14 -0
  365. package/lib/typescript/dialog/DialogPopup.d.ts.map +1 -0
  366. package/lib/typescript/dialog/DialogRoot.d.ts +7 -0
  367. package/lib/typescript/dialog/DialogRoot.d.ts.map +1 -0
  368. package/lib/typescript/dialog/DialogTrigger.d.ts +5 -0
  369. package/lib/typescript/dialog/DialogTrigger.d.ts.map +1 -0
  370. package/lib/typescript/dialog/index.d.ts +6 -17
  371. package/lib/typescript/dialog/index.d.ts.map +1 -1
  372. package/lib/typescript/dialog/types.d.ts +14 -25
  373. package/lib/typescript/dialog/types.d.ts.map +1 -1
  374. package/lib/typescript/field/FieldLabel.d.ts +12 -0
  375. package/lib/typescript/field/FieldLabel.d.ts.map +1 -0
  376. package/lib/typescript/field/FieldLabel.web.d.ts +24 -0
  377. package/lib/typescript/field/FieldLabel.web.d.ts.map +1 -0
  378. package/lib/typescript/field/FieldRoot.d.ts +8 -0
  379. package/lib/typescript/field/FieldRoot.d.ts.map +1 -0
  380. package/lib/typescript/field/index.d.ts +3 -12
  381. package/lib/typescript/field/index.d.ts.map +1 -1
  382. package/lib/typescript/field/types.d.ts +0 -20
  383. package/lib/typescript/field/types.d.ts.map +1 -1
  384. package/lib/typescript/form/FormRoot.d.ts +8 -0
  385. package/lib/typescript/form/FormRoot.d.ts.map +1 -0
  386. package/lib/typescript/form/FormRoot.web.d.ts +8 -0
  387. package/lib/typescript/form/FormRoot.web.d.ts.map +1 -0
  388. package/lib/typescript/form/index.d.ts +2 -5
  389. package/lib/typescript/form/index.d.ts.map +1 -1
  390. package/lib/typescript/form/types.d.ts +8 -9
  391. package/lib/typescript/form/types.d.ts.map +1 -1
  392. package/lib/typescript/full-window-overlay/index.d.ts +46 -0
  393. package/lib/typescript/full-window-overlay/index.d.ts.map +1 -0
  394. package/lib/typescript/full-window-overlay/index.web.d.ts +29 -0
  395. package/lib/typescript/full-window-overlay/index.web.d.ts.map +1 -0
  396. package/lib/typescript/index.d.ts +12 -2
  397. package/lib/typescript/index.d.ts.map +1 -1
  398. package/lib/typescript/input/InputField.android.d.ts +5 -0
  399. package/lib/typescript/input/InputField.android.d.ts.map +1 -0
  400. package/lib/typescript/input/InputField.d.ts +5 -0
  401. package/lib/typescript/input/InputField.d.ts.map +1 -0
  402. package/lib/typescript/input/InputField.web.d.ts +6 -0
  403. package/lib/typescript/input/InputField.web.d.ts.map +1 -0
  404. package/lib/typescript/input/InputRoot.d.ts +5 -0
  405. package/lib/typescript/input/InputRoot.d.ts.map +1 -0
  406. package/lib/typescript/input/index.d.ts +4 -8
  407. package/lib/typescript/input/index.d.ts.map +1 -1
  408. package/lib/typescript/input/types.d.ts +20 -39
  409. package/lib/typescript/input/types.d.ts.map +1 -1
  410. package/lib/typescript/link/LinkRoot.d.ts +9 -0
  411. package/lib/typescript/link/LinkRoot.d.ts.map +1 -0
  412. package/lib/typescript/link/context.d.ts +10 -0
  413. package/lib/typescript/link/context.d.ts.map +1 -0
  414. package/lib/typescript/link/index.d.ts +3 -1
  415. package/lib/typescript/link/index.d.ts.map +1 -1
  416. package/lib/typescript/link/types.d.ts +1 -0
  417. package/lib/typescript/link/types.d.ts.map +1 -1
  418. package/lib/typescript/list-item/ListItemRoot.d.ts +7 -0
  419. package/lib/typescript/list-item/ListItemRoot.d.ts.map +1 -0
  420. package/lib/typescript/list-item/context.d.ts +6 -0
  421. package/lib/typescript/list-item/context.d.ts.map +1 -0
  422. package/lib/typescript/list-item/index.d.ts +4 -0
  423. package/lib/typescript/list-item/index.d.ts.map +1 -0
  424. package/lib/typescript/list-item/types.d.ts +32 -0
  425. package/lib/typescript/list-item/types.d.ts.map +1 -0
  426. package/lib/typescript/otp-input/OtpInputField.d.ts +19 -0
  427. package/lib/typescript/otp-input/OtpInputField.d.ts.map +1 -0
  428. package/lib/typescript/otp-input/index.d.ts +4 -8
  429. package/lib/typescript/otp-input/index.d.ts.map +1 -1
  430. package/lib/typescript/otp-input/types.d.ts +0 -9
  431. package/lib/typescript/otp-input/types.d.ts.map +1 -1
  432. package/lib/typescript/otp-input/useOtpInput.d.ts +19 -0
  433. package/lib/typescript/otp-input/useOtpInput.d.ts.map +1 -0
  434. package/lib/typescript/overlay/useDismissOverlay.d.ts.map +1 -1
  435. package/lib/typescript/overlay/useEscapeKey.d.ts.map +1 -1
  436. package/lib/typescript/portal/index.d.ts +2 -0
  437. package/lib/typescript/portal/index.d.ts.map +1 -0
  438. package/lib/typescript/portal/portal.d.ts +25 -0
  439. package/lib/typescript/portal/portal.d.ts.map +1 -0
  440. package/lib/typescript/progress-bar/ProgressBarIndicator.d.ts +6 -0
  441. package/lib/typescript/progress-bar/ProgressBarIndicator.d.ts.map +1 -0
  442. package/lib/typescript/progress-bar/ProgressBarRoot.d.ts +6 -0
  443. package/lib/typescript/progress-bar/ProgressBarRoot.d.ts.map +1 -0
  444. package/lib/typescript/progress-bar/context.d.ts.map +1 -0
  445. package/lib/typescript/progress-bar/index.d.ts +6 -0
  446. package/lib/typescript/progress-bar/index.d.ts.map +1 -0
  447. package/lib/typescript/progress-bar/types.d.ts +22 -0
  448. package/lib/typescript/progress-bar/types.d.ts.map +1 -0
  449. package/lib/typescript/radio/RadioGroup.d.ts +9 -0
  450. package/lib/typescript/radio/RadioGroup.d.ts.map +1 -0
  451. package/lib/typescript/radio/RadioRoot.d.ts +6 -0
  452. package/lib/typescript/radio/RadioRoot.d.ts.map +1 -0
  453. package/lib/typescript/radio/RadioRoot.web.d.ts +6 -0
  454. package/lib/typescript/radio/RadioRoot.web.d.ts.map +1 -0
  455. package/lib/typescript/radio/context.d.ts +21 -0
  456. package/lib/typescript/radio/context.d.ts.map +1 -0
  457. package/lib/typescript/radio/index.d.ts +5 -0
  458. package/lib/typescript/radio/index.d.ts.map +1 -0
  459. package/lib/typescript/radio/types.d.ts +43 -0
  460. package/lib/typescript/radio/types.d.ts.map +1 -0
  461. package/lib/typescript/radio/useRadioRoot.d.ts +151 -0
  462. package/lib/typescript/radio/useRadioRoot.d.ts.map +1 -0
  463. package/lib/typescript/select/SelectContent.d.ts +9 -0
  464. package/lib/typescript/select/SelectContent.d.ts.map +1 -0
  465. package/lib/typescript/select/SelectItem.d.ts +8 -0
  466. package/lib/typescript/select/SelectItem.d.ts.map +1 -0
  467. package/lib/typescript/select/SelectRoot.d.ts +8 -0
  468. package/lib/typescript/select/SelectRoot.d.ts.map +1 -0
  469. package/lib/typescript/select/SelectTrigger.d.ts +9 -0
  470. package/lib/typescript/select/SelectTrigger.d.ts.map +1 -0
  471. package/lib/typescript/select/SelectTrigger.web.d.ts +13 -0
  472. package/lib/typescript/select/SelectTrigger.web.d.ts.map +1 -0
  473. package/lib/typescript/select/context.d.ts +1 -11
  474. package/lib/typescript/select/context.d.ts.map +1 -1
  475. package/lib/typescript/select/index.d.ts +6 -12
  476. package/lib/typescript/select/index.d.ts.map +1 -1
  477. package/lib/typescript/select/types.d.ts +1 -9
  478. package/lib/typescript/select/types.d.ts.map +1 -1
  479. package/lib/typescript/select/useContentFocus.d.ts +1 -1
  480. package/lib/typescript/select/useSelectTrigger.d.ts +78 -0
  481. package/lib/typescript/select/useSelectTrigger.d.ts.map +1 -0
  482. package/lib/typescript/select/useSelectTrigger.web.d.ts +16 -0
  483. package/lib/typescript/select/useSelectTrigger.web.d.ts.map +1 -0
  484. package/lib/typescript/slot/index.d.ts +8 -0
  485. package/lib/typescript/slot/index.d.ts.map +1 -0
  486. package/lib/typescript/switch/index.d.ts +2 -6
  487. package/lib/typescript/switch/index.d.ts.map +1 -1
  488. package/lib/typescript/switch/types.d.ts +35 -6
  489. package/lib/typescript/switch/types.d.ts.map +1 -1
  490. package/lib/typescript/switch/useSwitch.d.ts +20 -0
  491. package/lib/typescript/switch/useSwitch.d.ts.map +1 -0
  492. package/lib/typescript/tile/TileGroup.d.ts +5 -0
  493. package/lib/typescript/tile/TileGroup.d.ts.map +1 -0
  494. package/lib/typescript/tile/TileRoot.d.ts +5 -0
  495. package/lib/typescript/tile/TileRoot.d.ts.map +1 -0
  496. package/lib/typescript/tile/context.d.ts +9 -0
  497. package/lib/typescript/tile/context.d.ts.map +1 -0
  498. package/lib/typescript/tile/index.d.ts +5 -0
  499. package/lib/typescript/tile/index.d.ts.map +1 -0
  500. package/lib/typescript/tile/types.d.ts +108 -0
  501. package/lib/typescript/tile/types.d.ts.map +1 -0
  502. package/lib/typescript/toast/ToastRoot.d.ts +7 -0
  503. package/lib/typescript/toast/ToastRoot.d.ts.map +1 -0
  504. package/lib/typescript/toast/context.d.ts +6 -0
  505. package/lib/typescript/toast/context.d.ts.map +1 -0
  506. package/lib/typescript/toast/index.d.ts +3 -0
  507. package/lib/typescript/toast/index.d.ts.map +1 -0
  508. package/lib/typescript/toast/types.d.ts +16 -0
  509. package/lib/typescript/toast/types.d.ts.map +1 -0
  510. package/lib/typescript/utils/dataAttributes.d.ts +4 -10
  511. package/lib/typescript/utils/dataAttributes.d.ts.map +1 -1
  512. package/lib/typescript/utils/dataAttributes.web.d.ts +16 -0
  513. package/lib/typescript/utils/dataAttributes.web.d.ts.map +1 -1
  514. package/lib/typescript/utils/domDataAttributes.d.ts +28 -0
  515. package/lib/typescript/utils/domDataAttributes.d.ts.map +1 -0
  516. package/package.json +5 -2
  517. package/src/CLAUDE.md +86 -0
  518. package/src/avatar/AvatarRoot.tsx +39 -0
  519. package/src/avatar/index.ts +3 -43
  520. package/src/avatar/types.ts +1 -47
  521. package/src/button/ButtonRoot.tsx +115 -0
  522. package/src/button/index.ts +3 -0
  523. package/src/button/types.ts +1 -52
  524. package/src/checkbox/CheckboxGroup.tsx +50 -0
  525. package/src/checkbox/CheckboxRoot.tsx +102 -0
  526. package/src/checkbox/CheckboxRoot.web.tsx +92 -0
  527. package/src/checkbox/index.ts +4 -42
  528. package/src/checkbox/types.ts +1 -32
  529. package/src/chip/ChipRoot.tsx +168 -0
  530. package/src/chip/context.tsx +4 -0
  531. package/src/chip/index.ts +3 -0
  532. package/src/chip/types.ts +20 -0
  533. package/src/dialog/DialogClose.tsx +26 -0
  534. package/src/dialog/DialogPopup.tsx +162 -0
  535. package/src/dialog/DialogRoot.tsx +72 -0
  536. package/src/dialog/DialogTrigger.tsx +26 -0
  537. package/src/dialog/index.tsx +6 -87
  538. package/src/dialog/types.ts +14 -57
  539. package/src/field/FieldLabel.tsx +43 -0
  540. package/src/field/FieldLabel.web.tsx +71 -0
  541. package/src/field/FieldRoot.tsx +39 -0
  542. package/src/field/index.tsx +3 -68
  543. package/src/field/types.tsx +0 -34
  544. package/src/form/FormRoot.tsx +18 -0
  545. package/src/form/FormRoot.web.tsx +17 -0
  546. package/src/form/index.tsx +2 -12
  547. package/src/form/types.tsx +9 -11
  548. package/src/full-window-overlay/index.tsx +65 -0
  549. package/src/full-window-overlay/index.web.tsx +32 -0
  550. package/src/index.ts +16 -2
  551. package/src/input/InputField.android.tsx +107 -0
  552. package/src/input/InputField.tsx +100 -0
  553. package/src/input/InputField.web.tsx +141 -0
  554. package/src/input/InputRoot.tsx +115 -0
  555. package/src/input/index.tsx +4 -38
  556. package/src/input/types.ts +21 -53
  557. package/src/link/LinkRoot.tsx +108 -0
  558. package/src/link/context.tsx +10 -0
  559. package/src/link/index.tsx +3 -1
  560. package/src/link/types.ts +1 -0
  561. package/src/list-item/ListItemRoot.tsx +183 -0
  562. package/src/list-item/context.tsx +5 -0
  563. package/src/list-item/index.ts +9 -0
  564. package/src/list-item/types.ts +38 -0
  565. package/src/otp-input/OtpInputField.tsx +122 -0
  566. package/src/otp-input/index.ts +16 -0
  567. package/src/otp-input/types.ts +0 -23
  568. package/src/otp-input/useOtpInput.ts +156 -0
  569. package/src/overlay/useDismissOverlay.ts +0 -2
  570. package/src/overlay/useEscapeKey.ts +0 -2
  571. package/src/portal/index.ts +1 -0
  572. package/src/portal/portal.tsx +116 -0
  573. package/src/progress-bar/ProgressBarIndicator.tsx +34 -0
  574. package/src/progress-bar/ProgressBarRoot.tsx +117 -0
  575. package/src/progress-bar/index.ts +5 -0
  576. package/src/progress-bar/types.ts +24 -0
  577. package/src/radio/RadioGroup.tsx +85 -0
  578. package/src/radio/RadioRoot.tsx +98 -0
  579. package/src/radio/RadioRoot.web.tsx +90 -0
  580. package/src/radio/context.tsx +21 -0
  581. package/src/radio/index.ts +5 -0
  582. package/src/radio/types.ts +45 -0
  583. package/src/radio/useRadioRoot.ts +69 -0
  584. package/src/select/SelectContent.tsx +120 -0
  585. package/src/select/SelectItem.tsx +139 -0
  586. package/src/select/SelectRoot.tsx +154 -0
  587. package/src/select/SelectTrigger.tsx +82 -0
  588. package/src/select/SelectTrigger.web.tsx +238 -0
  589. package/src/select/context.tsx +1 -10
  590. package/src/select/index.ts +17 -0
  591. package/src/select/types.ts +1 -32
  592. package/src/select/useContentFocus.ts +1 -1
  593. package/src/select/useSelectTrigger.ts +359 -0
  594. package/src/select/useSelectTrigger.web.ts +280 -0
  595. package/src/slot/index.tsx +162 -0
  596. package/src/switch/index.ts +7 -16
  597. package/src/switch/types.ts +35 -10
  598. package/src/switch/useSwitch.ts +75 -0
  599. package/src/tile/TileGroup.tsx +137 -0
  600. package/src/tile/TileRoot.tsx +137 -0
  601. package/src/tile/context.tsx +23 -0
  602. package/src/tile/index.ts +18 -0
  603. package/src/tile/types.ts +121 -0
  604. package/src/toast/ToastRoot.tsx +39 -0
  605. package/src/toast/context.tsx +4 -0
  606. package/src/toast/index.ts +2 -0
  607. package/src/toast/types.ts +17 -0
  608. package/src/uniwind.d.ts +1 -0
  609. package/src/utils/dataAttributes.ts +7 -25
  610. package/src/utils/dataAttributes.web.ts +24 -0
  611. package/src/utils/domDataAttributes.ts +63 -0
  612. package/lib/commonjs/avatar/createAvatarBadge.js +0 -20
  613. package/lib/commonjs/avatar/createAvatarBadge.js.map +0 -1
  614. package/lib/commonjs/avatar/createAvatarIcon.js +0 -30
  615. package/lib/commonjs/avatar/createAvatarIcon.js.map +0 -1
  616. package/lib/commonjs/avatar/createAvatarImage.js +0 -51
  617. package/lib/commonjs/avatar/createAvatarImage.js.map +0 -1
  618. package/lib/commonjs/avatar/createAvatarRoot.js +0 -34
  619. package/lib/commonjs/avatar/createAvatarRoot.js.map +0 -1
  620. package/lib/commonjs/avatar/createAvatarText.js +0 -42
  621. package/lib/commonjs/avatar/createAvatarText.js.map +0 -1
  622. package/lib/commonjs/button/createButtonGroup.js +0 -80
  623. package/lib/commonjs/button/createButtonGroup.js.map +0 -1
  624. package/lib/commonjs/button/createButtonIcon.js +0 -18
  625. package/lib/commonjs/button/createButtonIcon.js.map +0 -1
  626. package/lib/commonjs/button/createButtonRoot.js +0 -81
  627. package/lib/commonjs/button/createButtonRoot.js.map +0 -1
  628. package/lib/commonjs/button/createButtonSpinner.js +0 -34
  629. package/lib/commonjs/button/createButtonSpinner.js.map +0 -1
  630. package/lib/commonjs/button/createButtonText.js +0 -38
  631. package/lib/commonjs/button/createButtonText.js.map +0 -1
  632. package/lib/commonjs/checkbox/createCheckboxGroup.js +0 -44
  633. package/lib/commonjs/checkbox/createCheckboxGroup.js.map +0 -1
  634. package/lib/commonjs/checkbox/createCheckboxIcon.js +0 -29
  635. package/lib/commonjs/checkbox/createCheckboxIcon.js.map +0 -1
  636. package/lib/commonjs/checkbox/createCheckboxIndicator.js +0 -47
  637. package/lib/commonjs/checkbox/createCheckboxIndicator.js.map +0 -1
  638. package/lib/commonjs/checkbox/createCheckboxLabel.js +0 -46
  639. package/lib/commonjs/checkbox/createCheckboxLabel.js.map +0 -1
  640. package/lib/commonjs/checkbox/createCheckboxRoot.js +0 -99
  641. package/lib/commonjs/checkbox/createCheckboxRoot.js.map +0 -1
  642. package/lib/commonjs/checkbox/createCheckboxRoot.web.js +0 -90
  643. package/lib/commonjs/checkbox/createCheckboxRoot.web.js.map +0 -1
  644. package/lib/commonjs/dialog/createDialogBody.js +0 -21
  645. package/lib/commonjs/dialog/createDialogBody.js.map +0 -1
  646. package/lib/commonjs/dialog/createDialogClose.js +0 -37
  647. package/lib/commonjs/dialog/createDialogClose.js.map +0 -1
  648. package/lib/commonjs/dialog/createDialogContent.js +0 -141
  649. package/lib/commonjs/dialog/createDialogContent.js.map +0 -1
  650. package/lib/commonjs/dialog/createDialogDescription.js +0 -30
  651. package/lib/commonjs/dialog/createDialogDescription.js.map +0 -1
  652. package/lib/commonjs/dialog/createDialogFooter.js +0 -21
  653. package/lib/commonjs/dialog/createDialogFooter.js.map +0 -1
  654. package/lib/commonjs/dialog/createDialogHeader.js +0 -21
  655. package/lib/commonjs/dialog/createDialogHeader.js.map +0 -1
  656. package/lib/commonjs/dialog/createDialogRoot.js +0 -54
  657. package/lib/commonjs/dialog/createDialogRoot.js.map +0 -1
  658. package/lib/commonjs/dialog/createDialogTitle.js +0 -21
  659. package/lib/commonjs/dialog/createDialogTitle.js.map +0 -1
  660. package/lib/commonjs/dialog/createDialogTrigger.js +0 -37
  661. package/lib/commonjs/dialog/createDialogTrigger.js.map +0 -1
  662. package/lib/commonjs/field/createFieldError.js +0 -41
  663. package/lib/commonjs/field/createFieldError.js.map +0 -1
  664. package/lib/commonjs/field/createFieldErrorIcon.js +0 -18
  665. package/lib/commonjs/field/createFieldErrorIcon.js.map +0 -1
  666. package/lib/commonjs/field/createFieldErrorText.js +0 -18
  667. package/lib/commonjs/field/createFieldErrorText.js.map +0 -1
  668. package/lib/commonjs/field/createFieldHelper.js +0 -41
  669. package/lib/commonjs/field/createFieldHelper.js.map +0 -1
  670. package/lib/commonjs/field/createFieldHelperText.js +0 -18
  671. package/lib/commonjs/field/createFieldHelperText.js.map +0 -1
  672. package/lib/commonjs/field/createFieldLabel.js +0 -36
  673. package/lib/commonjs/field/createFieldLabel.js.map +0 -1
  674. package/lib/commonjs/field/createFieldRoot.js +0 -35
  675. package/lib/commonjs/field/createFieldRoot.js.map +0 -1
  676. package/lib/commonjs/form/createFormRoot.js +0 -21
  677. package/lib/commonjs/form/createFormRoot.js.map +0 -1
  678. package/lib/commonjs/input/createInputField.js +0 -95
  679. package/lib/commonjs/input/createInputField.js.map +0 -1
  680. package/lib/commonjs/input/createInputRoot.js +0 -82
  681. package/lib/commonjs/input/createInputRoot.js.map +0 -1
  682. package/lib/commonjs/input/createInputSlot.js +0 -44
  683. package/lib/commonjs/input/createInputSlot.js.map +0 -1
  684. package/lib/commonjs/link/createLink.js +0 -74
  685. package/lib/commonjs/link/createLink.js.map +0 -1
  686. package/lib/commonjs/otp-input/createOtpInputCell.js +0 -29
  687. package/lib/commonjs/otp-input/createOtpInputCell.js.map +0 -1
  688. package/lib/commonjs/otp-input/createOtpInputField.js +0 -104
  689. package/lib/commonjs/otp-input/createOtpInputField.js.map +0 -1
  690. package/lib/commonjs/otp-input/createOtpInputRoot.js +0 -136
  691. package/lib/commonjs/otp-input/createOtpInputRoot.js.map +0 -1
  692. package/lib/commonjs/progress/context.js.map +0 -1
  693. package/lib/commonjs/progress/createProgressIndicator.js +0 -42
  694. package/lib/commonjs/progress/createProgressIndicator.js.map +0 -1
  695. package/lib/commonjs/progress/createProgressRoot.js +0 -96
  696. package/lib/commonjs/progress/createProgressRoot.js.map +0 -1
  697. package/lib/commonjs/progress/index.js +0 -25
  698. package/lib/commonjs/progress/index.js.map +0 -1
  699. package/lib/commonjs/progress/types.js.map +0 -1
  700. package/lib/commonjs/select/createSelectContent.js +0 -102
  701. package/lib/commonjs/select/createSelectContent.js.map +0 -1
  702. package/lib/commonjs/select/createSelectIcon.js +0 -41
  703. package/lib/commonjs/select/createSelectIcon.js.map +0 -1
  704. package/lib/commonjs/select/createSelectItem.js +0 -101
  705. package/lib/commonjs/select/createSelectItem.js.map +0 -1
  706. package/lib/commonjs/select/createSelectItemLabel.js +0 -41
  707. package/lib/commonjs/select/createSelectItemLabel.js.map +0 -1
  708. package/lib/commonjs/select/createSelectRoot.js +0 -102
  709. package/lib/commonjs/select/createSelectRoot.js.map +0 -1
  710. package/lib/commonjs/select/createSelectTrigger.js +0 -179
  711. package/lib/commonjs/select/createSelectTrigger.js.map +0 -1
  712. package/lib/commonjs/select/createSelectValue.js +0 -53
  713. package/lib/commonjs/select/createSelectValue.js.map +0 -1
  714. package/lib/commonjs/switch/createSwitchRoot.js +0 -73
  715. package/lib/commonjs/switch/createSwitchRoot.js.map +0 -1
  716. package/lib/module/avatar/createAvatarBadge.js +0 -15
  717. package/lib/module/avatar/createAvatarBadge.js.map +0 -1
  718. package/lib/module/avatar/createAvatarIcon.js +0 -25
  719. package/lib/module/avatar/createAvatarIcon.js.map +0 -1
  720. package/lib/module/avatar/createAvatarImage.js +0 -46
  721. package/lib/module/avatar/createAvatarImage.js.map +0 -1
  722. package/lib/module/avatar/createAvatarRoot.js +0 -29
  723. package/lib/module/avatar/createAvatarRoot.js.map +0 -1
  724. package/lib/module/avatar/createAvatarText.js +0 -37
  725. package/lib/module/avatar/createAvatarText.js.map +0 -1
  726. package/lib/module/button/createButtonGroup.js +0 -74
  727. package/lib/module/button/createButtonGroup.js.map +0 -1
  728. package/lib/module/button/createButtonIcon.js +0 -13
  729. package/lib/module/button/createButtonIcon.js.map +0 -1
  730. package/lib/module/button/createButtonRoot.js +0 -76
  731. package/lib/module/button/createButtonRoot.js.map +0 -1
  732. package/lib/module/button/createButtonSpinner.js +0 -29
  733. package/lib/module/button/createButtonSpinner.js.map +0 -1
  734. package/lib/module/button/createButtonText.js +0 -33
  735. package/lib/module/button/createButtonText.js.map +0 -1
  736. package/lib/module/checkbox/createCheckboxGroup.js +0 -39
  737. package/lib/module/checkbox/createCheckboxGroup.js.map +0 -1
  738. package/lib/module/checkbox/createCheckboxIcon.js +0 -24
  739. package/lib/module/checkbox/createCheckboxIcon.js.map +0 -1
  740. package/lib/module/checkbox/createCheckboxIndicator.js +0 -42
  741. package/lib/module/checkbox/createCheckboxIndicator.js.map +0 -1
  742. package/lib/module/checkbox/createCheckboxLabel.js +0 -41
  743. package/lib/module/checkbox/createCheckboxLabel.js.map +0 -1
  744. package/lib/module/checkbox/createCheckboxRoot.js +0 -94
  745. package/lib/module/checkbox/createCheckboxRoot.js.map +0 -1
  746. package/lib/module/checkbox/createCheckboxRoot.web.js +0 -85
  747. package/lib/module/checkbox/createCheckboxRoot.web.js.map +0 -1
  748. package/lib/module/dialog/createDialogBody.js +0 -15
  749. package/lib/module/dialog/createDialogBody.js.map +0 -1
  750. package/lib/module/dialog/createDialogClose.js +0 -31
  751. package/lib/module/dialog/createDialogClose.js.map +0 -1
  752. package/lib/module/dialog/createDialogContent.js +0 -136
  753. package/lib/module/dialog/createDialogContent.js.map +0 -1
  754. package/lib/module/dialog/createDialogDescription.js +0 -24
  755. package/lib/module/dialog/createDialogDescription.js.map +0 -1
  756. package/lib/module/dialog/createDialogFooter.js +0 -15
  757. package/lib/module/dialog/createDialogFooter.js.map +0 -1
  758. package/lib/module/dialog/createDialogHeader.js +0 -15
  759. package/lib/module/dialog/createDialogHeader.js.map +0 -1
  760. package/lib/module/dialog/createDialogRoot.js +0 -49
  761. package/lib/module/dialog/createDialogRoot.js.map +0 -1
  762. package/lib/module/dialog/createDialogTitle.js +0 -15
  763. package/lib/module/dialog/createDialogTitle.js.map +0 -1
  764. package/lib/module/dialog/createDialogTrigger.js +0 -31
  765. package/lib/module/dialog/createDialogTrigger.js.map +0 -1
  766. package/lib/module/field/createFieldError.js +0 -35
  767. package/lib/module/field/createFieldError.js.map +0 -1
  768. package/lib/module/field/createFieldErrorIcon.js +0 -13
  769. package/lib/module/field/createFieldErrorIcon.js.map +0 -1
  770. package/lib/module/field/createFieldErrorText.js +0 -13
  771. package/lib/module/field/createFieldErrorText.js.map +0 -1
  772. package/lib/module/field/createFieldHelper.js +0 -35
  773. package/lib/module/field/createFieldHelper.js.map +0 -1
  774. package/lib/module/field/createFieldHelperText.js +0 -13
  775. package/lib/module/field/createFieldHelperText.js.map +0 -1
  776. package/lib/module/field/createFieldLabel.js +0 -31
  777. package/lib/module/field/createFieldLabel.js.map +0 -1
  778. package/lib/module/field/createFieldRoot.js +0 -29
  779. package/lib/module/field/createFieldRoot.js.map +0 -1
  780. package/lib/module/form/createFormRoot.js +0 -15
  781. package/lib/module/form/createFormRoot.js.map +0 -1
  782. package/lib/module/input/createInputField.js +0 -90
  783. package/lib/module/input/createInputField.js.map +0 -1
  784. package/lib/module/input/createInputRoot.js +0 -76
  785. package/lib/module/input/createInputRoot.js.map +0 -1
  786. package/lib/module/input/createInputSlot.js +0 -39
  787. package/lib/module/input/createInputSlot.js.map +0 -1
  788. package/lib/module/link/createLink.js +0 -68
  789. package/lib/module/link/createLink.js.map +0 -1
  790. package/lib/module/otp-input/createOtpInputCell.js +0 -24
  791. package/lib/module/otp-input/createOtpInputCell.js.map +0 -1
  792. package/lib/module/otp-input/createOtpInputField.js +0 -99
  793. package/lib/module/otp-input/createOtpInputField.js.map +0 -1
  794. package/lib/module/otp-input/createOtpInputRoot.js +0 -131
  795. package/lib/module/otp-input/createOtpInputRoot.js.map +0 -1
  796. package/lib/module/progress/context.js.map +0 -1
  797. package/lib/module/progress/createProgressIndicator.js +0 -37
  798. package/lib/module/progress/createProgressIndicator.js.map +0 -1
  799. package/lib/module/progress/createProgressRoot.js +0 -91
  800. package/lib/module/progress/createProgressRoot.js.map +0 -1
  801. package/lib/module/progress/index.js +0 -15
  802. package/lib/module/progress/index.js.map +0 -1
  803. package/lib/module/progress/types.js.map +0 -1
  804. package/lib/module/select/createSelectContent.js +0 -97
  805. package/lib/module/select/createSelectContent.js.map +0 -1
  806. package/lib/module/select/createSelectIcon.js +0 -36
  807. package/lib/module/select/createSelectIcon.js.map +0 -1
  808. package/lib/module/select/createSelectItem.js +0 -96
  809. package/lib/module/select/createSelectItem.js.map +0 -1
  810. package/lib/module/select/createSelectItemLabel.js +0 -36
  811. package/lib/module/select/createSelectItemLabel.js.map +0 -1
  812. package/lib/module/select/createSelectRoot.js +0 -97
  813. package/lib/module/select/createSelectRoot.js.map +0 -1
  814. package/lib/module/select/createSelectTrigger.js +0 -174
  815. package/lib/module/select/createSelectTrigger.js.map +0 -1
  816. package/lib/module/select/createSelectValue.js +0 -48
  817. package/lib/module/select/createSelectValue.js.map +0 -1
  818. package/lib/module/switch/createSwitchRoot.js +0 -67
  819. package/lib/module/switch/createSwitchRoot.js.map +0 -1
  820. package/lib/typescript/avatar/createAvatarBadge.d.ts +0 -4
  821. package/lib/typescript/avatar/createAvatarBadge.d.ts.map +0 -1
  822. package/lib/typescript/avatar/createAvatarIcon.d.ts +0 -4
  823. package/lib/typescript/avatar/createAvatarIcon.d.ts.map +0 -1
  824. package/lib/typescript/avatar/createAvatarImage.d.ts +0 -4
  825. package/lib/typescript/avatar/createAvatarImage.d.ts.map +0 -1
  826. package/lib/typescript/avatar/createAvatarRoot.d.ts +0 -4
  827. package/lib/typescript/avatar/createAvatarRoot.d.ts.map +0 -1
  828. package/lib/typescript/avatar/createAvatarText.d.ts +0 -4
  829. package/lib/typescript/avatar/createAvatarText.d.ts.map +0 -1
  830. package/lib/typescript/button/createButtonGroup.d.ts +0 -4
  831. package/lib/typescript/button/createButtonGroup.d.ts.map +0 -1
  832. package/lib/typescript/button/createButtonIcon.d.ts +0 -2
  833. package/lib/typescript/button/createButtonIcon.d.ts.map +0 -1
  834. package/lib/typescript/button/createButtonRoot.d.ts +0 -6
  835. package/lib/typescript/button/createButtonRoot.d.ts.map +0 -1
  836. package/lib/typescript/button/createButtonSpinner.d.ts +0 -4
  837. package/lib/typescript/button/createButtonSpinner.d.ts.map +0 -1
  838. package/lib/typescript/button/createButtonText.d.ts +0 -4
  839. package/lib/typescript/button/createButtonText.d.ts.map +0 -1
  840. package/lib/typescript/checkbox/createCheckboxGroup.d.ts +0 -3
  841. package/lib/typescript/checkbox/createCheckboxGroup.d.ts.map +0 -1
  842. package/lib/typescript/checkbox/createCheckboxIcon.d.ts +0 -3
  843. package/lib/typescript/checkbox/createCheckboxIcon.d.ts.map +0 -1
  844. package/lib/typescript/checkbox/createCheckboxIndicator.d.ts +0 -5
  845. package/lib/typescript/checkbox/createCheckboxIndicator.d.ts.map +0 -1
  846. package/lib/typescript/checkbox/createCheckboxLabel.d.ts +0 -5
  847. package/lib/typescript/checkbox/createCheckboxLabel.d.ts.map +0 -1
  848. package/lib/typescript/checkbox/createCheckboxRoot.d.ts +0 -2
  849. package/lib/typescript/checkbox/createCheckboxRoot.d.ts.map +0 -1
  850. package/lib/typescript/checkbox/createCheckboxRoot.web.d.ts +0 -2
  851. package/lib/typescript/checkbox/createCheckboxRoot.web.d.ts.map +0 -1
  852. package/lib/typescript/dialog/createDialogBody.d.ts +0 -4
  853. package/lib/typescript/dialog/createDialogBody.d.ts.map +0 -1
  854. package/lib/typescript/dialog/createDialogClose.d.ts +0 -4
  855. package/lib/typescript/dialog/createDialogClose.d.ts.map +0 -1
  856. package/lib/typescript/dialog/createDialogContent.d.ts +0 -4
  857. package/lib/typescript/dialog/createDialogContent.d.ts.map +0 -1
  858. package/lib/typescript/dialog/createDialogDescription.d.ts +0 -4
  859. package/lib/typescript/dialog/createDialogDescription.d.ts.map +0 -1
  860. package/lib/typescript/dialog/createDialogFooter.d.ts +0 -4
  861. package/lib/typescript/dialog/createDialogFooter.d.ts.map +0 -1
  862. package/lib/typescript/dialog/createDialogHeader.d.ts +0 -4
  863. package/lib/typescript/dialog/createDialogHeader.d.ts.map +0 -1
  864. package/lib/typescript/dialog/createDialogRoot.d.ts +0 -4
  865. package/lib/typescript/dialog/createDialogRoot.d.ts.map +0 -1
  866. package/lib/typescript/dialog/createDialogTitle.d.ts +0 -4
  867. package/lib/typescript/dialog/createDialogTitle.d.ts.map +0 -1
  868. package/lib/typescript/dialog/createDialogTrigger.d.ts +0 -4
  869. package/lib/typescript/dialog/createDialogTrigger.d.ts.map +0 -1
  870. package/lib/typescript/field/createFieldError.d.ts +0 -5
  871. package/lib/typescript/field/createFieldError.d.ts.map +0 -1
  872. package/lib/typescript/field/createFieldErrorIcon.d.ts +0 -5
  873. package/lib/typescript/field/createFieldErrorIcon.d.ts.map +0 -1
  874. package/lib/typescript/field/createFieldErrorText.d.ts +0 -5
  875. package/lib/typescript/field/createFieldErrorText.d.ts.map +0 -1
  876. package/lib/typescript/field/createFieldHelper.d.ts +0 -5
  877. package/lib/typescript/field/createFieldHelper.d.ts.map +0 -1
  878. package/lib/typescript/field/createFieldHelperText.d.ts +0 -5
  879. package/lib/typescript/field/createFieldHelperText.d.ts.map +0 -1
  880. package/lib/typescript/field/createFieldLabel.d.ts +0 -6
  881. package/lib/typescript/field/createFieldLabel.d.ts.map +0 -1
  882. package/lib/typescript/field/createFieldRoot.d.ts +0 -6
  883. package/lib/typescript/field/createFieldRoot.d.ts.map +0 -1
  884. package/lib/typescript/form/createFormRoot.d.ts +0 -4
  885. package/lib/typescript/form/createFormRoot.d.ts.map +0 -1
  886. package/lib/typescript/input/createInputField.d.ts +0 -4
  887. package/lib/typescript/input/createInputField.d.ts.map +0 -1
  888. package/lib/typescript/input/createInputRoot.d.ts +0 -4
  889. package/lib/typescript/input/createInputRoot.d.ts.map +0 -1
  890. package/lib/typescript/input/createInputSlot.d.ts +0 -4
  891. package/lib/typescript/input/createInputSlot.d.ts.map +0 -1
  892. package/lib/typescript/link/createLink.d.ts +0 -6
  893. package/lib/typescript/link/createLink.d.ts.map +0 -1
  894. package/lib/typescript/otp-input/createOtpInputCell.d.ts +0 -4
  895. package/lib/typescript/otp-input/createOtpInputCell.d.ts.map +0 -1
  896. package/lib/typescript/otp-input/createOtpInputField.d.ts +0 -4
  897. package/lib/typescript/otp-input/createOtpInputField.d.ts.map +0 -1
  898. package/lib/typescript/otp-input/createOtpInputRoot.d.ts +0 -4
  899. package/lib/typescript/otp-input/createOtpInputRoot.d.ts.map +0 -1
  900. package/lib/typescript/progress/context.d.ts.map +0 -1
  901. package/lib/typescript/progress/createProgressIndicator.d.ts +0 -3
  902. package/lib/typescript/progress/createProgressIndicator.d.ts.map +0 -1
  903. package/lib/typescript/progress/createProgressRoot.d.ts +0 -4
  904. package/lib/typescript/progress/createProgressRoot.d.ts.map +0 -1
  905. package/lib/typescript/progress/index.d.ts +0 -10
  906. package/lib/typescript/progress/index.d.ts.map +0 -1
  907. package/lib/typescript/progress/types.d.ts +0 -25
  908. package/lib/typescript/progress/types.d.ts.map +0 -1
  909. package/lib/typescript/select/createSelectContent.d.ts +0 -4
  910. package/lib/typescript/select/createSelectContent.d.ts.map +0 -1
  911. package/lib/typescript/select/createSelectIcon.d.ts +0 -2
  912. package/lib/typescript/select/createSelectIcon.d.ts.map +0 -1
  913. package/lib/typescript/select/createSelectItem.d.ts +0 -6
  914. package/lib/typescript/select/createSelectItem.d.ts.map +0 -1
  915. package/lib/typescript/select/createSelectItemLabel.d.ts +0 -4
  916. package/lib/typescript/select/createSelectItemLabel.d.ts.map +0 -1
  917. package/lib/typescript/select/createSelectRoot.d.ts +0 -4
  918. package/lib/typescript/select/createSelectRoot.d.ts.map +0 -1
  919. package/lib/typescript/select/createSelectTrigger.d.ts +0 -7
  920. package/lib/typescript/select/createSelectTrigger.d.ts.map +0 -1
  921. package/lib/typescript/select/createSelectValue.d.ts +0 -4
  922. package/lib/typescript/select/createSelectValue.d.ts.map +0 -1
  923. package/lib/typescript/switch/createSwitchRoot.d.ts +0 -3
  924. package/lib/typescript/switch/createSwitchRoot.d.ts.map +0 -1
  925. package/src/avatar/createAvatarBadge.tsx +0 -12
  926. package/src/avatar/createAvatarIcon.tsx +0 -16
  927. package/src/avatar/createAvatarImage.tsx +0 -40
  928. package/src/avatar/createAvatarRoot.tsx +0 -23
  929. package/src/avatar/createAvatarText.tsx +0 -30
  930. package/src/button/createButtonGroup.tsx +0 -88
  931. package/src/button/createButtonIcon.tsx +0 -8
  932. package/src/button/createButtonRoot.tsx +0 -102
  933. package/src/button/createButtonSpinner.tsx +0 -20
  934. package/src/button/createButtonText.tsx +0 -22
  935. package/src/button/index.tsx +0 -53
  936. package/src/checkbox/createCheckboxGroup.tsx +0 -32
  937. package/src/checkbox/createCheckboxIcon.tsx +0 -18
  938. package/src/checkbox/createCheckboxIndicator.tsx +0 -43
  939. package/src/checkbox/createCheckboxLabel.tsx +0 -42
  940. package/src/checkbox/createCheckboxRoot.tsx +0 -100
  941. package/src/checkbox/createCheckboxRoot.web.tsx +0 -79
  942. package/src/dialog/createDialogBody.tsx +0 -11
  943. package/src/dialog/createDialogClose.tsx +0 -27
  944. package/src/dialog/createDialogContent.tsx +0 -122
  945. package/src/dialog/createDialogDescription.tsx +0 -20
  946. package/src/dialog/createDialogFooter.tsx +0 -11
  947. package/src/dialog/createDialogHeader.tsx +0 -11
  948. package/src/dialog/createDialogRoot.tsx +0 -66
  949. package/src/dialog/createDialogTitle.tsx +0 -11
  950. package/src/dialog/createDialogTrigger.tsx +0 -27
  951. package/src/field/createFieldError.tsx +0 -32
  952. package/src/field/createFieldErrorIcon.tsx +0 -9
  953. package/src/field/createFieldErrorText.tsx +0 -9
  954. package/src/field/createFieldHelper.tsx +0 -28
  955. package/src/field/createFieldHelperText.tsx +0 -9
  956. package/src/field/createFieldLabel.tsx +0 -30
  957. package/src/field/createFieldRoot.tsx +0 -27
  958. package/src/form/createFormRoot.tsx +0 -13
  959. package/src/input/createInputField.tsx +0 -114
  960. package/src/input/createInputRoot.tsx +0 -92
  961. package/src/input/createInputSlot.tsx +0 -39
  962. package/src/link/createLink.tsx +0 -71
  963. package/src/otp-input/createOtpInputCell.tsx +0 -22
  964. package/src/otp-input/createOtpInputField.tsx +0 -98
  965. package/src/otp-input/createOtpInputRoot.tsx +0 -179
  966. package/src/otp-input/index.tsx +0 -34
  967. package/src/progress/createProgressIndicator.tsx +0 -35
  968. package/src/progress/createProgressRoot.tsx +0 -109
  969. package/src/progress/index.ts +0 -28
  970. package/src/progress/types.ts +0 -37
  971. package/src/select/createSelectContent.tsx +0 -115
  972. package/src/select/createSelectIcon.tsx +0 -27
  973. package/src/select/createSelectItem.tsx +0 -121
  974. package/src/select/createSelectItemLabel.tsx +0 -30
  975. package/src/select/createSelectRoot.tsx +0 -134
  976. package/src/select/createSelectTrigger.tsx +0 -218
  977. package/src/select/createSelectValue.tsx +0 -38
  978. package/src/select/index.tsx +0 -73
  979. package/src/switch/createSwitchRoot.tsx +0 -72
  980. /package/lib/commonjs/{progress → chip}/types.js +0 -0
  981. /package/lib/commonjs/{progress → progress-bar}/context.js +0 -0
  982. /package/lib/module/{progress → chip}/types.js +0 -0
  983. /package/lib/module/{progress → progress-bar}/context.js +0 -0
  984. /package/lib/typescript/{progress → progress-bar}/context.d.ts +0 -0
  985. /package/src/{progress → progress-bar}/context.tsx +0 -0
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @cdx-ui/primitives
2
2
 
3
- Unstyled, accessible behavioral components (headless) for the Candescent Design System.
3
+ Unstyled, accessible behavioral components (headless) for the Forge Design System.
4
4
 
5
- Primitives provide interaction logic, focus management, and accessibility without imposing any visual styling. They serve as the foundation for [`@cdx-ui/components`](../components/).
5
+ Primitives provide interaction logic, focus management, and accessibility without imposing any visual styling. They serve as the foundation for `@cdx-ui/components`.
6
6
 
7
7
  ## Installation
8
8
 
@@ -12,41 +12,76 @@ pnpm add @cdx-ui/primitives
12
12
 
13
13
  ### Peer dependencies
14
14
 
15
- - `react` >= 18.0.0
16
- - `react-native` >= 0.74.0 _(optional)_
15
+ - `react` ^18.2.0 || ^19.0.0
16
+ - `react-native` >= 0.76.0 _(optional)_
17
+ - `react-native-reanimated` >= 3.0.0 _(optional)_
17
18
  - `react-native-web` >= 0.19.0 _(optional)_
18
19
 
19
- ## Factory functions
20
-
21
- Each `create*` factory accepts a map of base React Native components and returns a compound component with built-in interaction state tracking, accessibility (roles, ARIA props, keyboard handling), and context propagation.
22
-
23
- | Factory | Returns |
24
- | --- | --- |
25
- | `createButton` | `Button` + `.Text` `.Group` `.Spinner` `.Icon` |
26
- | `createInput` | `Input` + `.Slot` `.Field` |
27
- | `createSelect` | `Select` + `.Trigger` `.Value` `.Icon` `.Content` `.Item` `.ItemLabel` |
28
- | `createCheckbox` | `Checkbox` + `.Indicator` `.Icon` `.Label` `.Group` |
29
- | `createSwitch` | `Switch` |
30
- | `createLink` | `Link` |
31
- | `createAvatar` | `Avatar` + `.Image` `.Text` `.Icon` `.Badge` |
32
- | `createDialog` | `Dialog` + `.Root` `.Trigger` `.Content` `.Header` `.Title` `.Description` `.Body` `.Footer` `.Close` |
33
- | `createField` | `Field` + `.Label` `.Helper` `.HelperText` `.Error` `.ErrorText` `.ErrorIcon` |
34
- | `createForm` | `Form` |
35
- | `createOtpInput` | `OtpInput` + `.Cell` `.Field` |
36
- | `createProgress` | `Progress` + `.Indicator` |
20
+ ## Primitives
21
+
22
+ Concrete behavioral components with built-in interaction state tracking, accessibility (roles, ARIA props, keyboard handling), and context propagation. Each primitive owns behavior that the styled layer (`@cdx-ui/components`) cannot express with host elements alone.
23
+
24
+ | Export | Description |
25
+ | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
26
+ | `AvatarRoot` | Concrete root primitive (context provider for image load state; Image/Text/Icon/Badge live in `@cdx-ui/components`) |
27
+ | `ButtonRoot` | Concrete root primitive (no sub-slots — Label/Icon/Spinner/Group live in `@cdx-ui/components`) |
28
+ | `CheckboxRoot`, `CheckboxGroup` | Concrete checkbox primitives (Root owns controlled state + ARIA + `.web` split; Group owns group context. Indicator/Icon/Label live in `@cdx-ui/components`) |
29
+ | `ChipRoot` | Concrete root primitive (View/Pressable union with interaction state + context; Label/Icon/Avatar live in `@cdx-ui/components`) |
30
+ | `DialogRoot`, `DialogTrigger`, `DialogPopup`, `DialogClose` | Concrete dialog primitives (Root owns open state + context; Trigger/Close use `Slot` for `asChild`; Popup owns portal/focus-scope. Header/Title/Description/Content/Footer live in `@cdx-ui/components`) |
31
+ | `FieldRoot`, `FieldLabel` | Concrete field primitives (Root provides `FormControlContext`; Label is platform-split: `Text` + focus-bridge on native, `<label htmlFor>` on web; Helper/Error/ErrorIcon live in `@cdx-ui/components`) |
32
+ | `FormRoot` | Concrete form primitive (platform-split: `<form>` on web, `View` on native) |
33
+ | `InputRoot`, `InputField` | Concrete input primitives (Root owns input context; Field is platform-split: `.tsx`/`.web.tsx`/`.android.tsx`. Slot lives in `@cdx-ui/components`) |
34
+ | `LinkRoot` | Concrete link primitive (`useLink` press behavior + ARIA + cross-platform routing) |
35
+ | `ListItemRoot` | Concrete root primitive (View/Pressable union with bespoke `asChild` merging — interaction state + context; LeadingSlot/Content/Title/Description/Meta/TrailingSlot/SectionHeader live in `@cdx-ui/components`) |
36
+ | `useOtpInput`, `OtpInputField` | Headless hook for OTP state machine + concrete per-cell TextInput primitive (focus management, a11y, autofill; styled layer composes `Input`/`HStack` on top) |
37
+ | `ProgressBarRoot`, `ProgressBarIndicator` | Concrete progress primitives (Root owns percent context; Indicator maps percent to width) |
38
+ | `RadioRoot`, `RadioGroup` | Concrete radio primitives (Root owns interaction + checked state + `.web` split; Group owns selection contract + group context. Indicator/Label live in `@cdx-ui/components`) |
39
+ | `SelectRoot`, `SelectTrigger`, `SelectContent`, `SelectItem` | Concrete select primitives (Root owns controlled value/open state; Trigger is platform-split; Content owns FocusScope + keyboard nav; Item owns selection state. Value/Icon/ItemLabel live in `@cdx-ui/components`) |
40
+ | `useSwitch` | Headless hook for `Switch` (controlled state + ARIA + interaction tracking; styled layer renders the host element) |
41
+ | `TileRoot`, `TileGroup` | Concrete tile primitives (Root owns interaction + selection state + per-tile context; Group owns selection contract + group context. LeadingSlot/Content/Title/Description/Indicator/TrailingSlot live in `@cdx-ui/components`) |
37
42
 
38
43
  ### Utility exports
39
44
 
40
- | Export | Description |
41
- | --- | --- |
42
- | `dataAttributes` | Builds `data-hover`, `data-active`, `data-focus-visible`, etc. from an `InteractionState` object. |
43
- | `OverlayInsetsProvider` | Context provider for safe-area insets used by overlay/dialog positioning. |
44
- | `InteractionState` | Type: `{ hover, focus, active, disabled, focusVisible }`. |
45
- | `EdgeInsets` | Type: `{ top, right, bottom, left }`. |
45
+ | Export | Description |
46
+ | ------------------------ | ------------------------------------------------------------------------------------------------- |
47
+ | `dataAttributes` | Builds `data-hover`, `data-active`, `data-focus-visible`, etc. from an `InteractionState` object. |
48
+ | `mergeDataAttributes` | Combines multiple data-attribute sources into one spread (prevents overwrites on web). |
49
+ | `domDataAttributes` | Web-specific variant that converts data attributes to DOM-compatible format. |
50
+ | `mergeDomDataAttributes` | Web-specific merge variant for combining DOM data attribute sources. |
51
+ | `Slot` | Primitives-layer `asChild` implementation — merges props/ref onto the consumer's child element. |
52
+ | `FormControlContext` | Re-exported from `@cdx-ui/utils`; shared context for field/form control state. |
53
+ | `useFormControlContext` | Re-exported from `@cdx-ui/utils`; reads `FormControlContext` in descendant components. |
54
+ | `OverlayInsetsProvider` | Context provider for safe-area insets used by overlay/dialog positioning. |
55
+ | `InteractionState` | Type: `{ hover, focus, active, disabled, focusVisible }`. |
56
+ | `EdgeInsets` | Type: `{ top, right, bottom, left }`. |
57
+
58
+ ### OTP input utilities
59
+
60
+ Standalone helper functions re-exported from the otp-input module for custom OTP input implementations:
61
+
62
+ | Export | Description |
63
+ | ---------------------------------------------- | ---------------------------------------------------------------------------- |
64
+ | `applyOtpInputChange(value, change, position)` | Applies a character change (insert, delete, replace) to an OTP value string. |
65
+ | `filterDigits(text)` | Filters a string to digits only (0–9). |
66
+ | `filterAllowedCharacters(text, allowed)` | Filters a string to characters matching a provided set. |
67
+ | `filterByRegExp(text, pattern)` | Filters a string to characters matching a regular expression. |
46
68
 
47
- The dialog module also exports `DialogProvider` and `useDialog()` for imperative control, and the link module exports `LinkProvider` for router integration.
69
+ ### Context hooks and providers
48
70
 
49
- ## Further reading
71
+ Several modules export context providers and hooks for reading component state from descendant sub-components or for integrating with external systems (e.g., routing).
50
72
 
51
- - [Advanced Usage — Primitives](../../docs/advanced-usage.md) — full examples for every factory, Uniwind integration, type reference
52
- - [Definitions](../../docs/internal/practices/definitions.md) — artifact taxonomy (primitive vs component vs utility)
73
+ | Module | Provider(s) | Hook(s) | Context value type(s) |
74
+ | --------- | ------------------------------------------ | ---------------------------------------------- | ------------------------------------------------------- |
75
+ | avatar | — | `useAvatarContext` | `IAvatarContextValue` |
76
+ | button | — | `useButtonContext` | `InteractionState` |
77
+ | checkbox | — | `useCheckboxContext` | `ICheckboxContextValue` |
78
+ | chip | — | `useChipContext` | `InteractionState` |
79
+ | dialog | `DialogProvider` | `useDialog` | `IDialogContextType` |
80
+ | input | — | `useInputContext` | `IInputContextValue` |
81
+ | link | `LinkProvider`, `LinkInteractionProvider` | `useLink`, `useLinkInteractionContext` | `LinkConfig`, `LinkInteractionState` |
82
+ | list-item | `ListItemProvider` | `useListItemContext` | `InteractionState` |
83
+ | otp-input | `OtpInputProvider`, `OtpCellIndexProvider` | `useOtpInputContext`, `useOtpCellIndexContext` | `OtpInputContextValue`, `OtpInputCellIndexContextValue` |
84
+ | progress | — | `useProgressContext` | `ProgressContextValue` |
85
+ | radio | `RadioProvider` | `useRadioContext` | `IRadioContextValue` |
86
+ | select | — | `useSelectContext`, `useSelectItemContext` | `ISelectContextValue`, `ISelectItemContextValue` |
87
+ | tile | `TileProvider` | `useTileContext` | `ITileContextValue`, `ITileGroupContextValue` |
@@ -0,0 +1,86 @@
1
+ # Primitive Authoring
2
+
3
+ Auto-loaded when working in `packages/primitives/src/**`.
4
+
5
+ Primitives in `@cdx-ui/primitives` are unstyled behavioral components that handle accessibility and interactions. Read the full guides before making changes:
6
+
7
+ - `docs/internal/practices/composition.md` — compound component structure
8
+ - `docs/internal/practices/types.md` — `I*Props` convention, extending RN base types
9
+ - `docs/internal/practices/accessibility.md` — ARIA roles, keyboard nav, screen reader support
10
+ - `docs/internal/practices/as-child.md` — `asChild` prop pattern
11
+ - `docs/internal/practices/data-attributes.md` — `data-state` and `data-slot` conventions
12
+
13
+ ## Six standards
14
+
15
+ Forge UI primitives and their styled counterparts follow six standards. The first three govern primitive-layer authoring; the last three govern the styled layer (see `packages/components/src/components/CLAUDE.md`).
16
+
17
+ ### Standard 1 — Data attributes for interaction states
18
+
19
+ Root primitives emit `data-*` attributes for the interaction state they own and expose that state via context. Sub-slots **do not** subscribe to context and **do not** emit interaction `data-*` attributes — they opt in only when their own styling or behavior reacts to that state.
20
+
21
+ - **Root** — emits + provides context. Always.
22
+ - **Sub-slot** — does not subscribe, does not emit. Opt in only when the styled layer (or the slot's own behavior) demonstrably reacts to the state.
23
+ - **Native compound conditions** — when the styled layer needs two or more interaction states combined on native (Uniwind evaluates only the last `data-[]` condition in a chain), the primitive derives a single compound-state string via a module-scope lookup table and emits it through `dataAttributes({...})` **in parallel** with the individual booleans. Canonical example: `InputRoot.tsx`'s `FIELD_STATES` → `data-field-state` (`idle` / `invalid` / `focused` / `focused-invalid`). See `docs/internal/practices/data-attributes.md` § "Compound state on native".
24
+
25
+ Pointlessly emitting on every sub-slot multiplies bridge writes (native) and DOM attribute writes (web) for no consumer benefit. A sub-slot that calls `useButtonContext()` becomes a subscriber — every interaction re-renders it even when nothing visually changes.
26
+
27
+ `useButtonContext()` stays exported so styled-layer slots and external consumers can opt in when they actually need it.
28
+
29
+ ### Standard 2 — `asChild` support
30
+
31
+ Every public primitive supports `asChild` via `Slot` (re-exported from `packages/primitives/src/slot`). The runtime cost when `asChild` is `false` is a single boolean check; consumers who opt in pay the merge cost themselves.
32
+
33
+ ```tsx
34
+ const Comp = asChild ? Slot : DefaultElement;
35
+ ```
36
+
37
+ ### Standard 3 — When to create a primitive (the primitive-existence test)
38
+
39
+ Create a primitive **only** when the slot owns behavior. A slot earns a primitive if it has at least one of:
40
+
41
+ 1. **Behavioral state machinery** — interaction hooks (`useFocus`, `useFocusRing`, `useHover`, `usePress`), controlled/uncontrolled state, open/closed/checked/value management.
42
+ 2. **Non-host accessibility semantics** — ARIA role/state beyond what the host element provides natively, custom keyboard handling, screen-reader announcements, focus traps.
43
+ 3. **Cross-platform host abstraction** — different host element per platform (e.g., a `.web.tsx` / `.native.tsx` split).
44
+ 4. **Compound contract ownership** — defines the compound's state surface and is the context provider (i.e., the Root).
45
+
46
+ A slot does **not** earn a primitive if it only:
47
+
48
+ - Wraps a host element with `className`/`style`.
49
+ - Reads context for styling (the styled layer reads it directly via `useButtonContext`, `useStyleContext`, etc.).
50
+ - Wants `asChild` (the styled layer uses `Slot` directly — it is re-exported from `@cdx-ui/primitives`).
51
+
52
+ This eliminates the "factory pass-through" anti-pattern (e.g., a `ButtonIcon` primitive whose body is `<View {...props} ref={ref} />`). Such wrappers add nothing and force every consumer through a useless layer.
53
+
54
+ ## Canonical reference
55
+
56
+ `packages/primitives/src/button/ButtonRoot.tsx` is the canonical concrete primitive. It demonstrates every Standard 1–3 requirement: concrete `forwardRef` component over `Pressable`, `asChild` via `Slot`, `dataAttributes()` for interaction state, `ButtonProvider` for context, function-as-children, ARIA defaults, and composed event handlers.
57
+
58
+ `packages/primitives/src/button/` only ships `ButtonRoot` + `useButtonContext` + types. There is intentionally no `ButtonLabel`/`ButtonIcon`/`ButtonSpinner`/`ButtonGroup` primitive — those slots fail the primitive-existence test, so they live in `@cdx-ui/components` only.
59
+
60
+ The styled-layer Indicator inside `packages/components/src/components/QuickActionButton/index.tsx` is the canonical example of a sub-slot that legitimately opts into interaction state. When (and only when) its own styling reacts to hover/focus/press, it reads `useButtonContext()` and emits `data-*` via `mergeDataAttributes(props, dataAttributes({ ... }))` — the same pattern external consumers use.
61
+
62
+ ## Pattern summary
63
+
64
+ Each concrete primitive is a `forwardRef` component that hardcodes its default RN base element and supports `asChild` via `Slot`:
65
+
66
+ 1. **Concrete component** — `export const ComponentRoot = forwardRef<View, Props>(...)` hardcodes `View`/`Pressable`/`Text` as the default; uses `const Comp = asChild ? Slot : View` for the escape hatch
67
+ 2. **Interaction hooks** — `useFocus`, `useFocusRing`, `useHover`, `usePress` from `@react-native-aria/*`
68
+ 3. **Data attributes** — `dataAttributes({ hover, focus, active, disabled, focusVisible })` emitted on the rendered element for Uniwind `data-[state]` selectors
69
+ 4. **Context provider** — interaction state exposed via context so sub-slots and external consumers can opt in
70
+ 5. **Barrel export** — `index.ts` re-exports the concrete components, context, and types
71
+ 6. **`displayName`** — set on every exported component
72
+
73
+ ## Key rules
74
+
75
+ - **Unstyled** — no visual styling (no `className`, no color/spacing classes). Only behavioral and a11y concerns.
76
+ - **`asChild` via `Slot`** — import `Slot` from `../slot`; use `const Comp = asChild ? Slot : DefaultElement`.
77
+ - **`I*Props` convention** — public prop types are aliased with `I` prefix (e.g., `IButtonProps`), exported from `types.ts`.
78
+ - **`Interface*Props` pattern** — the full interface (e.g., `InterfaceButtonProps`) extends the appropriate RN base type (`PressableProps`, `ViewProps`, etc.) with interaction state booleans (`isHovered`, `isActive`, `isFocused`, `isFocusVisible`, `isDisabled`); re-exported as `I*Props`.
79
+ - **`dataAttributes()` helper** — always use the helper from `../utils/dataAttributes` to emit `data-*` props; it handles platform differences (native vs web).
80
+ - **Derived compound-state attributes** — when the styled layer needs a native compound condition, derive a single compound-state string via a module-scope lookup table and emit it via `dataAttributes({...})` alongside the individual booleans. `InputRoot.tsx`'s `FIELD_STATES` → `data-field-state` is the canonical example.
81
+ - **`mergeDataAttributes(...sources)` helper** — when a primitive Root receives data attrs through `props` from its styled layer (e.g. `data-slot`) AND emits its own data attrs (e.g. interaction state), combine them via `mergeDataAttributes(props, dataAttributes({...}))`. A plain `{...dataAttributes({...})} {...props}` spread chain wipes out one side on web — `dataAttributes` returns `{ dataSet }`, so back-to-back spreads replace each other. The merge helper preserves both. `ButtonRoot.tsx` shows the canonical pattern.
82
+ - **`composeEventHandlers`** from `@cdx-ui/utils` — merge consumer handlers with internal handlers; never silently override.
83
+ - **`forwardRef`** on every component — refs forwarded to the underlying host element.
84
+ - **ARIA roles** — set `role` with a sensible default (e.g., `role={props?.role || 'button'}`).
85
+ - **Render children as function** — support `children` as `(state: InteractionState) => ReactNode` for state-driven rendering where the Root exposes interaction state.
86
+ - **Consumable independently** of `@cdx-ui/components` — no imports from the styled layer.
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.AvatarRoot = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _slot = require("../slot");
10
+ var _context = require("./context");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ const AvatarRoot = exports.AvatarRoot = /*#__PURE__*/(0, _react.forwardRef)(({
13
+ asChild,
14
+ children,
15
+ ...props
16
+ }, ref) => {
17
+ const [imageLoaded, setImageLoaded] = (0, _react.useState)(false);
18
+ const [imageError, setImageError] = (0, _react.useState)(false);
19
+ const contextValue = (0, _react.useMemo)(() => ({
20
+ imageLoaded,
21
+ imageError,
22
+ setImageLoaded,
23
+ setImageError
24
+ }), [imageLoaded, imageError]);
25
+ const Comp = asChild ? _slot.Slot : _reactNative.View;
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.AvatarProvider, {
27
+ value: contextValue,
28
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
29
+ ref: ref,
30
+ role: props.role || 'img',
31
+ accessibilityRole: "image",
32
+ ...props,
33
+ children: children
34
+ })
35
+ });
36
+ });
37
+ AvatarRoot.displayName = 'AvatarRoot';
38
+ //# sourceMappingURL=AvatarRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_slot","_context","_jsxRuntime","AvatarRoot","exports","forwardRef","asChild","children","props","ref","imageLoaded","setImageLoaded","useState","imageError","setImageError","contextValue","useMemo","Comp","Slot","View","jsx","AvatarProvider","value","role","accessibilityRole","displayName"],"sourceRoot":"../../../src","sources":["avatar/AvatarRoot.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAA2C,IAAAI,WAAA,GAAAJ,OAAA;AAOpC,MAAMK,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAG,IAAAE,iBAAU,EAClC,CAAC;EAAEC,OAAO;EAAEC,QAAQ;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACxC,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EACrD,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAG,IAAAF,eAAQ,EAAC,KAAK,CAAC;EAEnD,MAAMG,YAAY,GAAG,IAAAC,cAAO,EAC1B,OAAO;IAAEN,WAAW;IAAEG,UAAU;IAAEF,cAAc;IAAEG;EAAc,CAAC,CAAC,EAClE,CAACJ,WAAW,EAAEG,UAAU,CAC1B,CAAC;EAED,MAAMI,IAAI,GAAGX,OAAO,GAAGY,UAAI,GAAGC,iBAAI;EAElC,oBACE,IAAAjB,WAAA,CAAAkB,GAAA,EAACnB,QAAA,CAAAoB,cAAc;IAACC,KAAK,EAAEP,YAAa;IAAAR,QAAA,eAClC,IAAAL,WAAA,CAAAkB,GAAA,EAACH,IAAI;MACHR,GAAG,EAAEA,GAAI;MACTc,IAAI,EAAEf,KAAK,CAACe,IAAI,IAAI,KAAM;MAC1BC,iBAAiB,EAAC,OAAO;MAAA,GACpBhB,KAAK;MAAAD,QAAA,EAETA;IAAQ,CACL;EAAC,CACO,CAAC;AAErB,CACF,CAAC;AAEDJ,UAAU,CAACsB,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -3,28 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.createAvatar = createAvatar;
7
- var _createAvatarBadge = require("./createAvatarBadge");
8
- var _createAvatarIcon = require("./createAvatarIcon");
9
- var _createAvatarText = require("./createAvatarText");
10
- var _createAvatarImage = require("./createAvatarImage");
11
- var _createAvatarRoot = require("./createAvatarRoot");
12
- function createAvatar(BaseComponents) {
13
- const Avatar = (0, _createAvatarRoot.createAvatarRoot)(BaseComponents.Root);
14
- const AvatarImage = (0, _createAvatarImage.createAvatarImage)(BaseComponents.Image);
15
- const Text = (0, _createAvatarText.createAvatarText)(BaseComponents.Text);
16
- const AvatarIcon = (0, _createAvatarIcon.createAvatarIcon)(BaseComponents.Icon);
17
- const Badge = (0, _createAvatarBadge.createAvatarBadge)(BaseComponents.Badge);
18
- Avatar.displayName = 'AvatarPrimitive';
19
- AvatarImage.displayName = 'AvatarPrimitive.Image';
20
- Text.displayName = 'AvatarPrimitive.Text';
21
- AvatarIcon.displayName = 'AvatarPrimitive.Icon';
22
- Badge.displayName = 'AvatarPrimitive.Badge';
23
- return Object.assign(Avatar, {
24
- Image: AvatarImage,
25
- Text,
26
- Icon: AvatarIcon,
27
- Badge
28
- });
29
- }
6
+ Object.defineProperty(exports, "AvatarRoot", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _AvatarRoot.AvatarRoot;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "useAvatarContext", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _context.useAvatarContext;
16
+ }
17
+ });
18
+ var _context = require("./context");
19
+ var _AvatarRoot = require("./AvatarRoot");
30
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_createAvatarBadge","require","_createAvatarIcon","_createAvatarText","_createAvatarImage","_createAvatarRoot","createAvatar","BaseComponents","Avatar","createAvatarRoot","Root","AvatarImage","createAvatarImage","Image","Text","createAvatarText","AvatarIcon","createAvatarIcon","Icon","Badge","createAvatarBadge","displayName","Object","assign"],"sourceRoot":"../../../src","sources":["avatar/index.ts"],"mappings":";;;;;;AACA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAYO,SAASK,YAAYA,CAAiCC,cAM5D,EAAE;EACD,MAAMC,MAAM,GAAG,IAAAC,kCAAgB,EAACF,cAAc,CAACG,IAAI,CAAC;EACpD,MAAMC,WAAW,GAAG,IAAAC,oCAAiB,EAACL,cAAc,CAACM,KAAK,CAAC;EAC3D,MAAMC,IAAI,GAAG,IAAAC,kCAAgB,EAACR,cAAc,CAACO,IAAI,CAAC;EAClD,MAAME,UAAU,GAAG,IAAAC,kCAAgB,EAACV,cAAc,CAACW,IAAI,CAAC;EACxD,MAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAACb,cAAc,CAACY,KAAK,CAAC;EAErDX,MAAM,CAACa,WAAW,GAAG,iBAAiB;EACtCV,WAAW,CAACU,WAAW,GAAG,uBAAuB;EACjDP,IAAI,CAACO,WAAW,GAAG,sBAAsB;EACzCL,UAAU,CAACK,WAAW,GAAG,sBAAsB;EAC/CF,KAAK,CAACE,WAAW,GAAG,uBAAuB;EAE3C,OAAOC,MAAM,CAACC,MAAM,CAACf,MAAM,EAAE;IAC3BK,KAAK,EAAEF,WAAW;IAClBG,IAAI;IACJI,IAAI,EAAEF,UAAU;IAChBG;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["_context","require","_AvatarRoot"],"sourceRoot":"../../../src","sources":["avatar/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA","ignoreList":[]}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ButtonRoot = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _utils = require("@cdx-ui/utils");
10
+ var _focus = require("@react-native-aria/focus");
11
+ var _interactions = require("@react-native-aria/interactions");
12
+ var _slot = require("../slot");
13
+ var _dataAttributes = require("../utils/dataAttributes");
14
+ var _context = require("./context");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ const ButtonRoot = exports.ButtonRoot = /*#__PURE__*/(0, _react.forwardRef)(({
17
+ asChild,
18
+ children,
19
+ isDisabled,
20
+ isHovered: isHoveredProp,
21
+ isActive: isActiveProp,
22
+ isFocused: isFocusedProp,
23
+ isFocusVisible: isFocusVisibleProp,
24
+ ...props
25
+ }, ref) => {
26
+ const {
27
+ isFocused,
28
+ focusProps
29
+ } = (0, _focus.useFocus)();
30
+ const {
31
+ isFocusVisible,
32
+ focusProps: focusRingProps
33
+ } = (0, _focus.useFocusRing)();
34
+ const {
35
+ pressProps: pressableProps,
36
+ isPressed: isActive
37
+ } = (0, _interactions.usePress)({
38
+ isDisabled
39
+ });
40
+ const {
41
+ isHovered,
42
+ hoverProps
43
+ } = (0, _interactions.useHover)();
44
+ const contextValue = (0, _react.useMemo)(() => {
45
+ return {
46
+ hover: isHoveredProp || isHovered,
47
+ focus: isFocusedProp || isFocused,
48
+ active: isActiveProp || isActive,
49
+ disabled: !!isDisabled,
50
+ focusVisible: isFocusVisibleProp || isFocusVisible
51
+ };
52
+ }, [isHovered, isHoveredProp, isFocused, isFocusedProp, isActive, isActiveProp, isDisabled, isFocusVisible, isFocusVisibleProp]);
53
+ const Comp = asChild ? _slot.Slot : _reactNative.Pressable;
54
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ButtonProvider, {
55
+ value: contextValue,
56
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
57
+ ref: ref,
58
+ role: props?.role || 'button',
59
+ disabled: isDisabled,
60
+ ...props,
61
+ ...(0, _dataAttributes.mergeDataAttributes)(props, (0, _dataAttributes.dataAttributes)({
62
+ hover: isHoveredProp || isHovered,
63
+ focus: isFocusedProp || isFocused,
64
+ active: isActiveProp || isActive,
65
+ disabled: !!isDisabled,
66
+ focusVisible: isFocusVisibleProp || isFocusVisible
67
+ })),
68
+ onPressIn: (0, _utils.composeEventHandlers)(props?.onPressIn, pressableProps.onPressIn),
69
+ onPressOut: (0, _utils.composeEventHandlers)(props?.onPressOut, pressableProps.onPressOut),
70
+ onHoverIn: (0, _utils.composeEventHandlers)(props?.onHoverIn, hoverProps.onHoverIn),
71
+ onHoverOut: (0, _utils.composeEventHandlers)(props?.onHoverOut, hoverProps.onHoverOut),
72
+ onFocus: (0, _utils.composeEventHandlers)((0, _utils.composeEventHandlers)(props?.onFocus, focusProps.onFocus), focusRingProps.onFocus),
73
+ onBlur: (0, _utils.composeEventHandlers)((0, _utils.composeEventHandlers)(props?.onBlur, focusProps.onBlur), focusRingProps.onBlur),
74
+ children: typeof children === 'function' ? children({
75
+ hover: isHoveredProp || isHovered,
76
+ focus: isFocusedProp || isFocused,
77
+ active: isActiveProp || isActive,
78
+ disabled: !!isDisabled,
79
+ focusVisible: isFocusVisibleProp || isFocusVisible
80
+ }) : children
81
+ })
82
+ });
83
+ });
84
+ ButtonRoot.displayName = 'ButtonRoot';
85
+ //# sourceMappingURL=ButtonRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_utils","_focus","_interactions","_slot","_dataAttributes","_context","_jsxRuntime","ButtonRoot","exports","forwardRef","asChild","children","isDisabled","isHovered","isHoveredProp","isActive","isActiveProp","isFocused","isFocusedProp","isFocusVisible","isFocusVisibleProp","props","ref","focusProps","useFocus","focusRingProps","useFocusRing","pressProps","pressableProps","isPressed","usePress","hoverProps","useHover","contextValue","useMemo","hover","focus","active","disabled","focusVisible","Comp","Slot","Pressable","jsx","ButtonProvider","value","role","mergeDataAttributes","dataAttributes","onPressIn","composeEventHandlers","onPressOut","onHoverIn","onHoverOut","onFocus","onBlur","displayName"],"sourceRoot":"../../../src","sources":["button/ButtonRoot.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AAA2C,IAAAQ,WAAA,GAAAR,OAAA;AAQpC,MAAMS,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAG,IAAAE,iBAAU,EAClC,CACE;EACEC,OAAO;EACPC,QAAQ;EACRC,UAAU;EACVC,SAAS,EAAEC,aAAa;EACxBC,QAAQ,EAAEC,YAAY;EACtBC,SAAS,EAAEC,aAAa;EACxBC,cAAc,EAAEC,kBAAkB;EAClC,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAM;IAAEL,SAAS;IAAEM;EAAW,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC;EAC5C,MAAM;IAAEL,cAAc;IAAEI,UAAU,EAAEE;EAAe,CAAC,GAAG,IAAAC,mBAAY,EAAC,CAGnE;EACD,MAAM;IAAEC,UAAU,EAAEC,cAAc;IAAEC,SAAS,EAAEd;EAAS,CAAC,GAAG,IAAAe,sBAAQ,EAAC;IACnElB;EACF,CAAC,CAAC;EACF,MAAM;IAAEC,SAAS;IAAEkB;EAAW,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EAE5C,MAAMC,YAAY,GAAG,IAAAC,cAAO,EAAC,MAAM;IACjC,OAAO;MACLC,KAAK,EAAErB,aAAa,IAAID,SAAS;MACjCuB,KAAK,EAAElB,aAAa,IAAID,SAAS;MACjCoB,MAAM,EAAErB,YAAY,IAAID,QAAQ;MAChCuB,QAAQ,EAAE,CAAC,CAAC1B,UAAU;MACtB2B,YAAY,EAAEnB,kBAAkB,IAAID;IACtC,CAAC;EACH,CAAC,EAAE,CACDN,SAAS,EACTC,aAAa,EACbG,SAAS,EACTC,aAAa,EACbH,QAAQ,EACRC,YAAY,EACZJ,UAAU,EACVO,cAAc,EACdC,kBAAkB,CACnB,CAAC;EAEF,MAAMoB,IAAI,GAAG9B,OAAO,GAAG+B,UAAI,GAAGC,sBAAS;EAEvC,oBACE,IAAApC,WAAA,CAAAqC,GAAA,EAACtC,QAAA,CAAAuC,cAAc;IAACC,KAAK,EAAEZ,YAAa;IAAAtB,QAAA,eAClC,IAAAL,WAAA,CAAAqC,GAAA,EAACH,IAAI;MACHlB,GAAG,EAAEA,GAAI;MACTwB,IAAI,EAAEzB,KAAK,EAAEyB,IAAI,IAAI,QAAS;MAC9BR,QAAQ,EAAE1B,UAAW;MAAA,GAChBS,KAAK;MAAA,GACN,IAAA0B,mCAAmB,EACrB1B,KAAK,EACL,IAAA2B,8BAAc,EAAC;QACbb,KAAK,EAAErB,aAAa,IAAID,SAAS;QACjCuB,KAAK,EAAElB,aAAa,IAAID,SAAS;QACjCoB,MAAM,EAAErB,YAAY,IAAID,QAAQ;QAChCuB,QAAQ,EAAE,CAAC,CAAC1B,UAAU;QACtB2B,YAAY,EAAEnB,kBAAkB,IAAID;MACtC,CAAC,CACH,CAAC;MACD8B,SAAS,EAAE,IAAAC,2BAAoB,EAAC7B,KAAK,EAAE4B,SAAS,EAAErB,cAAc,CAACqB,SAAS,CAAE;MAC5EE,UAAU,EAAE,IAAAD,2BAAoB,EAAC7B,KAAK,EAAE8B,UAAU,EAAEvB,cAAc,CAACuB,UAAU,CAAE;MAC/EC,SAAS,EAAE,IAAAF,2BAAoB,EAAC7B,KAAK,EAAE+B,SAAS,EAAErB,UAAU,CAACqB,SAAS,CAAE;MACxEC,UAAU,EAAE,IAAAH,2BAAoB,EAAC7B,KAAK,EAAEgC,UAAU,EAAEtB,UAAU,CAACsB,UAAU,CAAE;MAC3EC,OAAO,EAAE,IAAAJ,2BAAoB,EAC3B,IAAAA,2BAAoB,EAClB7B,KAAK,EAAEiC,OAAO,EACd/B,UAAU,CAAC+B,OACb,CAAC,EACD7B,cAAc,CAAC6B,OACjB,CAAE;MACFC,MAAM,EAAE,IAAAL,2BAAoB,EAC1B,IAAAA,2BAAoB,EAClB7B,KAAK,EAAEkC,MAAM,EACbhC,UAAU,CAACgC,MACb,CAAC,EACD9B,cAAc,CAAC8B,MACjB,CAAE;MAAA5C,QAAA,EAED,OAAOA,QAAQ,KAAK,UAAU,GAC3BA,QAAQ,CAAC;QACPwB,KAAK,EAAErB,aAAa,IAAID,SAAS;QACjCuB,KAAK,EAAElB,aAAa,IAAID,SAAS;QACjCoB,MAAM,EAAErB,YAAY,IAAID,QAAQ;QAChCuB,QAAQ,EAAE,CAAC,CAAC1B,UAAU;QACtB2B,YAAY,EAAEnB,kBAAkB,IAAID;MACtC,CAAC,CAAC,GACFR;IAAQ,CACR;EAAC,CACO,CAAC;AAErB,CACF,CAAC;AAEDJ,UAAU,CAACiD,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -3,35 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.createButton = createButton;
6
+ Object.defineProperty(exports, "ButtonRoot", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ButtonRoot.ButtonRoot;
10
+ }
11
+ });
7
12
  Object.defineProperty(exports, "useButtonContext", {
8
13
  enumerable: true,
9
14
  get: function () {
10
15
  return _context.useButtonContext;
11
16
  }
12
17
  });
13
- var _createButtonGroup = require("./createButtonGroup");
14
- var _createButtonIcon = require("./createButtonIcon");
15
- var _createButtonRoot = require("./createButtonRoot");
16
- var _createButtonSpinner = require("./createButtonSpinner");
17
- var _createButtonText = require("./createButtonText");
18
18
  var _context = require("./context");
19
- function createButton(BaseComponents) {
20
- const Button = (0, _createButtonRoot.createButtonRoot)(BaseComponents.Root);
21
- const Text = (0, _createButtonText.createButtonText)(BaseComponents.Text);
22
- const Group = (0, _createButtonGroup.createButtonGroup)(BaseComponents.Group);
23
- const Spinner = (0, _createButtonSpinner.createButtonSpinner)(BaseComponents.Spinner);
24
- const Icon = (0, _createButtonIcon.createButtonIcon)(BaseComponents.Icon);
25
- Button.displayName = 'ButtonPrimitive';
26
- Text.displayName = 'ButtonPrimitive.Text';
27
- Group.displayName = 'ButtonPrimitive.Group';
28
- Spinner.displayName = 'ButtonPrimitive.Spinner';
29
- Icon.displayName = 'ButtonPrimitive.Icon';
30
- return Object.assign(Button, {
31
- Text,
32
- Group,
33
- Spinner,
34
- Icon
35
- });
36
- }
19
+ var _ButtonRoot = require("./ButtonRoot");
37
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_createButtonGroup","require","_createButtonIcon","_createButtonRoot","_createButtonSpinner","_createButtonText","_context","createButton","BaseComponents","Button","createButtonRoot","Root","Text","createButtonText","Group","createButtonGroup","Spinner","createButtonSpinner","Icon","createButtonIcon","displayName","Object","assign"],"sourceRoot":"../../../src","sources":["button/index.tsx"],"mappings":";;;;;;;;;;;;AACA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAIA,IAAAK,QAAA,GAAAL,OAAA;AAEO,SAASM,YAAYA,CAQ1BC,cAMD,EAAE;EACD,MAAMC,MAAM,GAAG,IAAAC,kCAAgB,EAACF,cAAc,CAACG,IAAI,CAAC;EACpD,MAAMC,IAAI,GAAG,IAAAC,kCAAgB,EAACL,cAAc,CAACI,IAAI,CAAC;EAClD,MAAME,KAAK,GAAG,IAAAC,oCAAiB,EAACP,cAAc,CAACM,KAAK,CAAC;EACrD,MAAME,OAAO,GAAG,IAAAC,wCAAmB,EAACT,cAAc,CAACQ,OAAO,CAAC;EAC3D,MAAME,IAAI,GAAG,IAAAC,kCAAgB,EAACX,cAAc,CAACU,IAAI,CAAC;EAElDT,MAAM,CAACW,WAAW,GAAG,iBAAiB;EACtCR,IAAI,CAACQ,WAAW,GAAG,sBAAsB;EACzCN,KAAK,CAACM,WAAW,GAAG,uBAAuB;EAC3CJ,OAAO,CAACI,WAAW,GAAG,yBAAyB;EAC/CF,IAAI,CAACE,WAAW,GAAG,sBAAsB;EAEzC,OAAOC,MAAM,CAACC,MAAM,CAACb,MAAM,EAAE;IAC3BG,IAAI;IACJE,KAAK;IACLE,OAAO;IACPE;EACF,CAAC,CAAC;AASJ","ignoreList":[]}
1
+ {"version":3,"names":["_context","require","_ButtonRoot"],"sourceRoot":"../../../src","sources":["button/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA","ignoreList":[]}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CheckboxGroup = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _utils = require("@cdx-ui/utils");
10
+ var _checkbox = require("@react-native-aria/checkbox");
11
+ var _checkbox2 = require("@react-stately/checkbox");
12
+ var _slot = require("../slot");
13
+ var _context = require("./context");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ const CheckboxGroup = exports.CheckboxGroup = /*#__PURE__*/(0, _react.forwardRef)(({
16
+ asChild,
17
+ children,
18
+ className,
19
+ style,
20
+ ...props
21
+ }, ref) => {
22
+ const state = (0, _checkbox2.useCheckboxGroupState)({
23
+ ...props,
24
+ validationState: props.isInvalid ? 'invalid' : 'valid'
25
+ });
26
+ const {
27
+ groupProps
28
+ } = (0, _checkbox.useCheckboxGroup)({
29
+ ...props,
30
+ 'aria-label': props['aria-label']
31
+ }, state);
32
+ const formControlContext = (0, _utils.useFormControlContext)();
33
+ const contextValue = (0, _react.useMemo)(() => ({
34
+ state: {
35
+ ...formControlContext,
36
+ ...state
37
+ }
38
+ }), [formControlContext, state]);
39
+ const Comp = asChild ? _slot.Slot : _reactNative.View;
40
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.CheckboxGroupContext.Provider, {
41
+ value: contextValue,
42
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
43
+ ...groupProps,
44
+ className: className,
45
+ style: style,
46
+ ref: ref,
47
+ children: children
48
+ })
49
+ });
50
+ });
51
+ CheckboxGroup.displayName = 'CheckboxGroup';
52
+ //# sourceMappingURL=CheckboxGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_utils","_checkbox","_checkbox2","_slot","_context","_jsxRuntime","CheckboxGroup","exports","forwardRef","asChild","children","className","style","props","ref","state","useCheckboxGroupState","validationState","isInvalid","groupProps","useCheckboxGroup","formControlContext","useFormControlContext","contextValue","useMemo","Comp","Slot","View","jsx","CheckboxGroupContext","Provider","value","displayName"],"sourceRoot":"../../../src","sources":["checkbox/CheckboxGroup.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAAiD,IAAAO,WAAA,GAAAP,OAAA;AAS1C,MAAMQ,aAAa,GAAAC,OAAA,CAAAD,aAAA,gBAAG,IAAAE,iBAAU,EACrC,CAAC;EAAEC,OAAO;EAAEC,QAAQ;EAAEC,SAAS;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC1D,MAAMC,KAAK,GAAG,IAAAC,gCAAqB,EAAC;IAClC,GAAGH,KAAK;IACRI,eAAe,EAAEJ,KAAK,CAACK,SAAS,GAAG,SAAS,GAAG;EACjD,CAAC,CAAC;EAEF,MAAM;IAAEC;EAAW,CAAC,GAAG,IAAAC,0BAAgB,EACrC;IACE,GAAGP,KAAK;IACR,YAAY,EAAEA,KAAK,CAAC,YAAY;EAClC,CAAC,EACDE,KACF,CAAC;EAED,MAAMM,kBAAkB,GAAG,IAAAC,4BAAqB,EAAC,CAAC;EAElD,MAAMC,YAAY,GAAG,IAAAC,cAAO,EAC1B,OAAO;IAAET,KAAK,EAAE;MAAE,GAAGM,kBAAkB;MAAE,GAAGN;IAAM;EAAE,CAAC,CAAC,EACtD,CAACM,kBAAkB,EAAEN,KAAK,CAC5B,CAAC;EAED,MAAMU,IAAI,GAAGhB,OAAO,GAAGiB,UAAI,GAAGC,iBAAI;EAElC,oBACE,IAAAtB,WAAA,CAAAuB,GAAA,EAACxB,QAAA,CAAAyB,oBAAoB,CAACC,QAAQ;IAACC,KAAK,EAAER,YAAa;IAAAb,QAAA,eACjD,IAAAL,WAAA,CAAAuB,GAAA,EAACH,IAAI;MAAA,GAAKN,UAAU;MAAER,SAAS,EAAEA,SAAU;MAACC,KAAK,EAAEA,KAAM;MAACE,GAAG,EAAEA,GAAI;MAAAJ,QAAA,EAChEA;IAAQ,CACL;EAAC,CACsB,CAAC;AAEpC,CACF,CAAC;AAEDJ,aAAa,CAAC0B,WAAW,GAAG,eAAe","ignoreList":[]}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CheckboxRoot = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _utils = require("@cdx-ui/utils");
10
+ var _focus = require("@react-native-aria/focus");
11
+ var _interactions = require("@react-native-aria/interactions");
12
+ var _slot = require("../slot");
13
+ var _dataAttributes = require("../utils/dataAttributes");
14
+ var _context = require("./context");
15
+ var _useCheckboxRoot = require("./useCheckboxRoot");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ const CheckboxRoot = exports.CheckboxRoot = /*#__PURE__*/(0, _react.forwardRef)(({
18
+ asChild,
19
+ onPressIn,
20
+ onPressOut,
21
+ onHoverIn,
22
+ onHoverOut,
23
+ onFocus,
24
+ onBlur,
25
+ children,
26
+ ...props
27
+ }, ref) => {
28
+ const {
29
+ isHovered: isHoveredProp,
30
+ isChecked: isCheckedProp,
31
+ isDisabled: isDisabledProp,
32
+ isInvalid: isInvalidProp,
33
+ isReadOnly: isReadOnlyProp,
34
+ isPressed: isPressedProp,
35
+ isFocused: isFocusedProp,
36
+ isIndeterminate: isIndeterminateProp,
37
+ isFocusVisible: isFocusVisibleProp
38
+ } = props;
39
+ const {
40
+ combinedProps,
41
+ isInvalid,
42
+ isReadOnly,
43
+ isIndeterminate,
44
+ groupItemInputProps,
45
+ isChecked,
46
+ isDisabled,
47
+ isHovered,
48
+ hoverProps,
49
+ mergedRef
50
+ } = (0, _useCheckboxRoot.useCheckboxRoot)(props, ref);
51
+ const {
52
+ focusProps,
53
+ isFocused
54
+ } = (0, _focus.useFocus)();
55
+ const {
56
+ pressProps,
57
+ isPressed
58
+ } = (0, _interactions.usePress)({
59
+ isDisabled: isDisabled || isDisabledProp
60
+ });
61
+ const contextValue = {
62
+ isChecked: isChecked || isCheckedProp,
63
+ isDisabled: isDisabled || isDisabledProp,
64
+ isHovered: isHovered || isHoveredProp,
65
+ isInvalid: isInvalid || isInvalidProp,
66
+ isReadOnly: isReadOnly || isReadOnlyProp,
67
+ isPressed: isPressed || isPressedProp,
68
+ isFocused: isFocused || isFocusedProp,
69
+ isIndeterminate: isIndeterminate || isIndeterminateProp,
70
+ isFocusVisible: isFocusVisibleProp
71
+ };
72
+ const Comp = asChild ? _slot.Slot : _reactNative.Pressable;
73
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.CheckboxProvider, {
74
+ value: contextValue,
75
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
76
+ disabled: isDisabled || isDisabledProp,
77
+ ...combinedProps,
78
+ ...groupItemInputProps,
79
+ ref: mergedRef,
80
+ role: "checkbox",
81
+ ...(0, _dataAttributes.mergeDataAttributes)(props, (0, _dataAttributes.dataAttributes)({
82
+ checked: isChecked || isCheckedProp,
83
+ disabled: isDisabled || isDisabledProp,
84
+ hover: isHovered || isHoveredProp,
85
+ invalid: isInvalid || isInvalidProp,
86
+ readonly: isReadOnly || isReadOnlyProp,
87
+ active: isPressed,
88
+ focus: isFocused,
89
+ indeterminate: isIndeterminate || isIndeterminateProp,
90
+ focusVisible: isFocusVisibleProp
91
+ })),
92
+ onPressIn: (0, _utils.composeEventHandlers)(onPressIn, pressProps.onPressIn),
93
+ onPressOut: (0, _utils.composeEventHandlers)(onPressOut, pressProps.onPressOut),
94
+ onHoverIn: (0, _utils.composeEventHandlers)(onHoverIn, hoverProps.onHoverIn),
95
+ onHoverOut: (0, _utils.composeEventHandlers)(onHoverOut, hoverProps.onHoverOut),
96
+ onFocus: (0, _utils.composeEventHandlers)((0, _utils.composeEventHandlers)(onFocus, focusProps.onFocus)),
97
+ onBlur: (0, _utils.composeEventHandlers)((0, _utils.composeEventHandlers)(onBlur, focusProps.onBlur)),
98
+ children: children
99
+ })
100
+ });
101
+ });
102
+ CheckboxRoot.displayName = 'CheckboxRoot';
103
+ //# sourceMappingURL=CheckboxRoot.js.map