@ariakit/react-core 0.3.0 → 0.3.2

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 (286) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/cjs/__chunks/{E36HQN5U.cjs → 27A4YAUB.cjs} +4 -4
  3. package/cjs/__chunks/{DEXAWU62.cjs → 3ULNMLN7.cjs} +7 -6
  4. package/cjs/__chunks/{E4NNK5Z5.cjs → 4HKELPDA.cjs} +4 -4
  5. package/cjs/__chunks/{HRC6DHTD.cjs → 4ULJINEP.cjs} +8 -8
  6. package/cjs/__chunks/{UTBZV2K2.cjs → 6UXB6PRK.cjs} +7 -7
  7. package/cjs/__chunks/{4BQNJE73.cjs → B3TGB2C3.cjs} +7 -7
  8. package/cjs/__chunks/{UIP5UBUP.cjs → BPPAZUXP.cjs} +2 -2
  9. package/cjs/__chunks/{CTVZBMX2.cjs → DMTOMUIM.cjs} +7 -7
  10. package/cjs/__chunks/{PKAT32ES.cjs → DNFCOHE4.cjs} +2 -2
  11. package/cjs/__chunks/{MMJ2ISJ4.cjs → E4C2KZA5.cjs} +5 -5
  12. package/cjs/__chunks/{IULFNS7Y.cjs → EQEXTQQ6.cjs} +5 -5
  13. package/cjs/__chunks/{RE3KB52D.cjs → FWCQCCG3.cjs} +12 -12
  14. package/cjs/__chunks/{EGFAX26U.cjs → G33PRHOG.cjs} +8 -8
  15. package/cjs/__chunks/{MYVMDX23.cjs → GBOZYA5C.cjs} +2 -2
  16. package/cjs/__chunks/{KAZTJBAF.cjs → GCTYF2Y6.cjs} +3 -3
  17. package/cjs/__chunks/{O5YI3KG3.cjs → HCQYEOCO.cjs} +2 -2
  18. package/cjs/__chunks/{CFO65DTJ.cjs → HDYD5S2P.cjs} +3 -3
  19. package/cjs/__chunks/{KHZEFVUV.cjs → HFISYIKE.cjs} +7 -7
  20. package/cjs/__chunks/{42FA4OOB.cjs → I63PYP2U.cjs} +12 -9
  21. package/cjs/__chunks/{F36WTYFH.cjs → J77SNKFZ.cjs} +4 -4
  22. package/cjs/__chunks/{TZRDNPSE.cjs → LJBXMHCD.cjs} +6 -6
  23. package/cjs/__chunks/{VRJL6LRK.cjs → NATUYKIW.cjs} +4 -4
  24. package/cjs/__chunks/{OPL3VHF2.cjs → QEG5AJH6.cjs} +3 -3
  25. package/cjs/__chunks/{5PKWXKV7.cjs → SKVJLFWS.cjs} +7 -7
  26. package/cjs/__chunks/{73FY4ZGD.cjs → V37GXOUJ.cjs} +4 -4
  27. package/cjs/__chunks/{W2C6EME3.cjs → WBPFHFAX.cjs} +2 -2
  28. package/cjs/__chunks/{E5YTMXPM.cjs → X3UARAKT.cjs} +2 -2
  29. package/cjs/__chunks/{3XB4P6CY.cjs → XOHN6PER.cjs} +2 -2
  30. package/cjs/__chunks/{7J4QLCVO.cjs → ZJ4ICN62.cjs} +4 -4
  31. package/cjs/__chunks/{BCUHPRBR.cjs → ZPTFLDSU.cjs} +7 -7
  32. package/cjs/checkbox/checkbox-provider.cjs +3 -3
  33. package/cjs/checkbox/checkbox-store.cjs +3 -3
  34. package/cjs/checkbox/checkbox.cjs +3 -3
  35. package/cjs/checkbox/checkbox.d.ts +12 -9
  36. package/cjs/collection/collection-provider.cjs +3 -3
  37. package/cjs/collection/collection-renderer.cjs +3 -3
  38. package/cjs/collection/collection-store.cjs +3 -3
  39. package/cjs/collection/collection.d.ts +5 -1
  40. package/cjs/combobox/combobox-cancel.d.ts +14 -9
  41. package/cjs/combobox/combobox-disclosure.d.ts +14 -9
  42. package/cjs/combobox/combobox-group-label.d.ts +16 -11
  43. package/cjs/combobox/combobox-group.d.ts +16 -11
  44. package/cjs/combobox/combobox-item-value.d.ts +14 -10
  45. package/cjs/combobox/combobox-item.cjs +3 -3
  46. package/cjs/combobox/combobox-item.d.ts +45 -20
  47. package/cjs/combobox/combobox-list.d.ts +17 -10
  48. package/cjs/combobox/combobox-popover.cjs +6 -6
  49. package/cjs/combobox/combobox-popover.d.ts +8 -7
  50. package/cjs/combobox/combobox-provider.cjs +8 -8
  51. package/cjs/combobox/combobox-row.d.ts +21 -16
  52. package/cjs/combobox/combobox-separator.d.ts +15 -10
  53. package/cjs/combobox/combobox-store.cjs +8 -8
  54. package/cjs/combobox/combobox-store.d.ts +9 -4
  55. package/cjs/combobox/combobox.d.ts +55 -36
  56. package/cjs/composite/composite-container.cjs +3 -3
  57. package/cjs/composite/composite-item.cjs +3 -3
  58. package/cjs/composite/composite-overflow-disclosure.cjs +3 -3
  59. package/cjs/composite/composite-overflow-store.cjs +6 -6
  60. package/cjs/composite/composite-overflow.cjs +6 -6
  61. package/cjs/composite/composite-provider.cjs +4 -4
  62. package/cjs/composite/composite-renderer.cjs +4 -4
  63. package/cjs/composite/composite-store.cjs +4 -4
  64. package/cjs/dialog/dialog-backdrop.cjs +4 -4
  65. package/cjs/dialog/dialog-provider.cjs +4 -4
  66. package/cjs/dialog/dialog-store.cjs +4 -4
  67. package/cjs/dialog/dialog.cjs +5 -5
  68. package/cjs/disclosure/disclosure-content.d.ts +9 -4
  69. package/cjs/disclosure/disclosure-provider.cjs +3 -3
  70. package/cjs/disclosure/disclosure-store.cjs +3 -3
  71. package/cjs/disclosure/disclosure-store.d.ts +9 -2
  72. package/cjs/disclosure/disclosure.d.ts +13 -6
  73. package/cjs/form/form-checkbox.cjs +5 -5
  74. package/cjs/form/form-checkbox.d.ts +5 -1
  75. package/cjs/form/form-description.d.ts +10 -3
  76. package/cjs/form/form-error.d.ts +10 -3
  77. package/cjs/form/form-field.d.ts +17 -9
  78. package/cjs/form/form-group-label.d.ts +7 -4
  79. package/cjs/form/form-group.d.ts +5 -2
  80. package/cjs/form/form-input.d.ts +9 -4
  81. package/cjs/form/form-label.d.ts +10 -3
  82. package/cjs/form/form-provider.cjs +4 -4
  83. package/cjs/form/form-push.d.ts +5 -2
  84. package/cjs/form/form-radio-group.d.ts +5 -1
  85. package/cjs/form/form-radio.cjs +4 -4
  86. package/cjs/form/form-radio.d.ts +5 -1
  87. package/cjs/form/form-remove.d.ts +5 -2
  88. package/cjs/form/form-reset.d.ts +6 -2
  89. package/cjs/form/form-store.cjs +4 -4
  90. package/cjs/form/form-store.d.ts +5 -1
  91. package/cjs/form/form-submit.d.ts +5 -2
  92. package/cjs/form/form.d.ts +5 -1
  93. package/cjs/hovercard/hovercard-anchor.d.ts +11 -5
  94. package/cjs/hovercard/hovercard-arrow.d.ts +13 -8
  95. package/cjs/hovercard/hovercard-description.d.ts +14 -9
  96. package/cjs/hovercard/hovercard-disclosure.d.ts +14 -8
  97. package/cjs/hovercard/hovercard-dismiss.d.ts +11 -6
  98. package/cjs/hovercard/hovercard-heading.d.ts +14 -9
  99. package/cjs/hovercard/hovercard-provider.cjs +6 -6
  100. package/cjs/hovercard/hovercard-store.cjs +6 -6
  101. package/cjs/hovercard/hovercard-store.d.ts +1 -0
  102. package/cjs/hovercard/hovercard.cjs +7 -7
  103. package/cjs/hovercard/hovercard.d.ts +11 -5
  104. package/cjs/menu/menu-bar-provider.cjs +5 -5
  105. package/cjs/menu/menu-bar-store.cjs +5 -5
  106. package/cjs/menu/menu-button.cjs +5 -3
  107. package/cjs/menu/menu-item-checkbox.cjs +8 -8
  108. package/cjs/menu/menu-item-radio.cjs +6 -6
  109. package/cjs/menu/menu-item.cjs +4 -4
  110. package/cjs/menu/menu-list.cjs +3 -3
  111. package/cjs/menu/menu-provider.cjs +9 -9
  112. package/cjs/menu/menu-store.cjs +9 -9
  113. package/cjs/menu/menu-store.d.ts +6 -6
  114. package/cjs/menu/menu.cjs +9 -9
  115. package/cjs/popover/popover-provider.cjs +5 -5
  116. package/cjs/popover/popover-store.cjs +5 -5
  117. package/cjs/popover/popover.cjs +6 -6
  118. package/cjs/radio/radio-provider.cjs +5 -5
  119. package/cjs/radio/radio-store.cjs +5 -5
  120. package/cjs/radio/radio.cjs +4 -4
  121. package/cjs/select/select-item.cjs +3 -3
  122. package/cjs/select/select-popover.cjs +6 -6
  123. package/cjs/select/select-provider.cjs +8 -8
  124. package/cjs/select/select-renderer.cjs +7 -7
  125. package/cjs/select/select-store.cjs +8 -8
  126. package/cjs/select/select-store.d.ts +2 -2
  127. package/cjs/tab/tab-panel.cjs +3 -3
  128. package/cjs/tab/tab-provider.cjs +5 -5
  129. package/cjs/tab/tab-store.cjs +5 -5
  130. package/cjs/tab/tab.cjs +3 -3
  131. package/cjs/toolbar/toolbar-container.cjs +6 -6
  132. package/cjs/toolbar/toolbar-input.cjs +4 -4
  133. package/cjs/toolbar/toolbar-item.cjs +4 -4
  134. package/cjs/toolbar/toolbar-provider.cjs +5 -5
  135. package/cjs/toolbar/toolbar-store.cjs +5 -5
  136. package/cjs/toolbar/toolbar.cjs +46 -24
  137. package/cjs/toolbar/toolbar.d.ts +2 -2
  138. package/cjs/tooltip/tooltip-provider.cjs +7 -7
  139. package/cjs/tooltip/tooltip-store.cjs +7 -7
  140. package/cjs/tooltip/tooltip.cjs +7 -7
  141. package/cjs/tsconfig.build.tsbuildinfo +1 -1
  142. package/cjs/utils/store.cjs +2 -2
  143. package/cjs/utils/store.d.ts +1 -1
  144. package/esm/__chunks/{VJZYCNOA.js → 34JEM52B.js} +1 -1
  145. package/esm/__chunks/{B7CSN7VQ.js → 35WVCYXU.js} +2 -2
  146. package/esm/__chunks/{XIRNSMZD.js → 3HFOFZP4.js} +1 -1
  147. package/esm/__chunks/{D4PXCBCI.js → 4RP654JS.js} +2 -2
  148. package/esm/__chunks/{42I26D5Z.js → 4SB2BYFE.js} +3 -3
  149. package/esm/__chunks/{XXOVOOT3.js → 4WK6LN27.js} +2 -2
  150. package/esm/__chunks/{6TWF32ML.js → 72OJKUSZ.js} +1 -1
  151. package/esm/__chunks/{UHPQRTV4.js → A2ONBKVT.js} +4 -3
  152. package/esm/__chunks/{43SODXOT.js → C5JX5C3O.js} +2 -2
  153. package/esm/__chunks/{QOBIUWMN.js → EKIHOHWR.js} +2 -2
  154. package/esm/__chunks/{HVG5WXKX.js → FBTQUSIH.js} +2 -2
  155. package/esm/__chunks/{XWFU333Y.js → GP4UGJIZ.js} +1 -1
  156. package/esm/__chunks/{DORFNB2S.js → H2BG4QDT.js} +2 -2
  157. package/esm/__chunks/{665VBEVH.js → HGW6FZYU.js} +1 -1
  158. package/esm/__chunks/{KFYG52K5.js → HZPJPDJY.js} +2 -2
  159. package/esm/__chunks/{JJMBJNG5.js → IFNQMENS.js} +3 -3
  160. package/esm/__chunks/{U47NFJA3.js → IZ6ZARCP.js} +1 -1
  161. package/esm/__chunks/{3CKB7HAW.js → K6BB6DTS.js} +2 -2
  162. package/esm/__chunks/{TUPK6PWU.js → KZMKUBQH.js} +1 -1
  163. package/esm/__chunks/{JEQRR7AL.js → NWDF5QDV.js} +1 -1
  164. package/esm/__chunks/{NVEAMD2G.js → R4FKKQYI.js} +2 -2
  165. package/esm/__chunks/{552DU7SQ.js → RJEKIG5Y.js} +1 -1
  166. package/esm/__chunks/{SNU4EYPS.js → UQFOL5I6.js} +2 -2
  167. package/esm/__chunks/{6X2TPJLY.js → UY3UQ4QI.js} +2 -2
  168. package/esm/__chunks/{2JWPGQQP.js → V5EW3YHP.js} +3 -3
  169. package/esm/__chunks/{O5UELQLV.js → VDTDCNMP.js} +1 -1
  170. package/esm/__chunks/{AAS6MDEM.js → VPTWELSR.js} +2 -2
  171. package/esm/__chunks/{HJPDTCDL.js → W575AF63.js} +1 -1
  172. package/esm/__chunks/{FGP6QO3O.js → WGAKICTY.js} +2 -2
  173. package/esm/__chunks/{L3AX6U5E.js → XXO3VVQU.js} +12 -9
  174. package/esm/checkbox/checkbox-provider.js +2 -2
  175. package/esm/checkbox/checkbox-store.js +2 -2
  176. package/esm/checkbox/checkbox.d.ts +12 -9
  177. package/esm/checkbox/checkbox.js +2 -2
  178. package/esm/collection/collection-provider.js +2 -2
  179. package/esm/collection/collection-renderer.js +2 -2
  180. package/esm/collection/collection-store.js +2 -2
  181. package/esm/collection/collection.d.ts +5 -1
  182. package/esm/combobox/combobox-cancel.d.ts +14 -9
  183. package/esm/combobox/combobox-disclosure.d.ts +14 -9
  184. package/esm/combobox/combobox-group-label.d.ts +16 -11
  185. package/esm/combobox/combobox-group.d.ts +16 -11
  186. package/esm/combobox/combobox-item-value.d.ts +14 -10
  187. package/esm/combobox/combobox-item.d.ts +45 -20
  188. package/esm/combobox/combobox-item.js +2 -2
  189. package/esm/combobox/combobox-list.d.ts +17 -10
  190. package/esm/combobox/combobox-popover.d.ts +8 -7
  191. package/esm/combobox/combobox-popover.js +5 -5
  192. package/esm/combobox/combobox-provider.js +7 -7
  193. package/esm/combobox/combobox-row.d.ts +21 -16
  194. package/esm/combobox/combobox-separator.d.ts +15 -10
  195. package/esm/combobox/combobox-store.d.ts +9 -4
  196. package/esm/combobox/combobox-store.js +7 -7
  197. package/esm/combobox/combobox.d.ts +55 -36
  198. package/esm/composite/composite-container.js +2 -2
  199. package/esm/composite/composite-item.js +2 -2
  200. package/esm/composite/composite-overflow-disclosure.js +2 -2
  201. package/esm/composite/composite-overflow-store.js +4 -4
  202. package/esm/composite/composite-overflow.js +5 -5
  203. package/esm/composite/composite-provider.js +3 -3
  204. package/esm/composite/composite-renderer.js +3 -3
  205. package/esm/composite/composite-store.js +3 -3
  206. package/esm/dialog/dialog-backdrop.js +3 -3
  207. package/esm/dialog/dialog-provider.js +3 -3
  208. package/esm/dialog/dialog-store.js +3 -3
  209. package/esm/dialog/dialog.js +4 -4
  210. package/esm/disclosure/disclosure-content.d.ts +9 -4
  211. package/esm/disclosure/disclosure-provider.js +2 -2
  212. package/esm/disclosure/disclosure-store.d.ts +9 -2
  213. package/esm/disclosure/disclosure-store.js +2 -2
  214. package/esm/disclosure/disclosure.d.ts +13 -6
  215. package/esm/form/form-checkbox.d.ts +5 -1
  216. package/esm/form/form-checkbox.js +3 -3
  217. package/esm/form/form-description.d.ts +10 -3
  218. package/esm/form/form-error.d.ts +10 -3
  219. package/esm/form/form-field.d.ts +17 -9
  220. package/esm/form/form-group-label.d.ts +7 -4
  221. package/esm/form/form-group.d.ts +5 -2
  222. package/esm/form/form-input.d.ts +9 -4
  223. package/esm/form/form-label.d.ts +10 -3
  224. package/esm/form/form-provider.js +3 -3
  225. package/esm/form/form-push.d.ts +5 -2
  226. package/esm/form/form-radio-group.d.ts +5 -1
  227. package/esm/form/form-radio.d.ts +5 -1
  228. package/esm/form/form-radio.js +3 -3
  229. package/esm/form/form-remove.d.ts +5 -2
  230. package/esm/form/form-reset.d.ts +6 -2
  231. package/esm/form/form-store.d.ts +5 -1
  232. package/esm/form/form-store.js +3 -3
  233. package/esm/form/form-submit.d.ts +5 -2
  234. package/esm/form/form.d.ts +5 -1
  235. package/esm/hovercard/hovercard-anchor.d.ts +11 -5
  236. package/esm/hovercard/hovercard-arrow.d.ts +13 -8
  237. package/esm/hovercard/hovercard-description.d.ts +14 -9
  238. package/esm/hovercard/hovercard-disclosure.d.ts +14 -8
  239. package/esm/hovercard/hovercard-dismiss.d.ts +11 -6
  240. package/esm/hovercard/hovercard-heading.d.ts +14 -9
  241. package/esm/hovercard/hovercard-provider.js +5 -5
  242. package/esm/hovercard/hovercard-store.d.ts +1 -0
  243. package/esm/hovercard/hovercard-store.js +5 -5
  244. package/esm/hovercard/hovercard.d.ts +11 -5
  245. package/esm/hovercard/hovercard.js +6 -6
  246. package/esm/menu/menu-bar-provider.js +4 -4
  247. package/esm/menu/menu-bar-store.js +4 -4
  248. package/esm/menu/menu-button.js +4 -2
  249. package/esm/menu/menu-item-checkbox.js +5 -5
  250. package/esm/menu/menu-item-radio.js +4 -4
  251. package/esm/menu/menu-item.js +3 -3
  252. package/esm/menu/menu-list.js +2 -2
  253. package/esm/menu/menu-provider.js +8 -8
  254. package/esm/menu/menu-store.d.ts +6 -6
  255. package/esm/menu/menu-store.js +8 -8
  256. package/esm/menu/menu.js +7 -7
  257. package/esm/popover/popover-provider.js +4 -4
  258. package/esm/popover/popover-store.js +4 -4
  259. package/esm/popover/popover.js +5 -5
  260. package/esm/radio/radio-provider.js +4 -4
  261. package/esm/radio/radio-store.js +4 -4
  262. package/esm/radio/radio.js +3 -3
  263. package/esm/select/select-item.js +2 -2
  264. package/esm/select/select-popover.js +5 -5
  265. package/esm/select/select-provider.js +7 -7
  266. package/esm/select/select-renderer.js +3 -3
  267. package/esm/select/select-store.d.ts +2 -2
  268. package/esm/select/select-store.js +7 -7
  269. package/esm/tab/tab-panel.js +2 -2
  270. package/esm/tab/tab-provider.js +4 -4
  271. package/esm/tab/tab-store.js +4 -4
  272. package/esm/tab/tab.js +2 -2
  273. package/esm/toolbar/toolbar-container.js +4 -4
  274. package/esm/toolbar/toolbar-input.js +3 -3
  275. package/esm/toolbar/toolbar-item.js +3 -3
  276. package/esm/toolbar/toolbar-provider.js +4 -4
  277. package/esm/toolbar/toolbar-store.js +4 -4
  278. package/esm/toolbar/toolbar.d.ts +2 -2
  279. package/esm/toolbar/toolbar.js +47 -25
  280. package/esm/tooltip/tooltip-provider.js +6 -6
  281. package/esm/tooltip/tooltip-store.js +6 -6
  282. package/esm/tooltip/tooltip.js +6 -6
  283. package/esm/tsconfig.build.tsbuildinfo +1 -1
  284. package/esm/utils/store.d.ts +1 -1
  285. package/esm/utils/store.js +1 -1
  286. package/package.json +2 -2
@@ -25,31 +25,38 @@ export declare const useCombobox: import("../utils/types.js").Hook<ComboboxOptio
25
25
  * @see https://ariakit.org/components/combobox
26
26
  * @example
27
27
  * ```jsx
28
- * const combobox = useComboboxStore();
29
- * <Combobox store={combobox} />
30
- * <ComboboxPopover store={combobox}>
31
- * <ComboboxItem value="Apple" />
32
- * <ComboboxItem value="Banana" />
33
- * <ComboboxItem value="Orange" />
34
- * </ComboboxPopover>
28
+ * <ComboboxProvider>
29
+ * <Combobox />
30
+ * <ComboboxPopover>
31
+ * <ComboboxItem value="Apple" />
32
+ * <ComboboxItem value="Banana" />
33
+ * <ComboboxItem value="Orange" />
34
+ * </ComboboxPopover>
35
+ * </ComboboxProvider>
35
36
  * ```
36
37
  */
37
38
  export declare const Combobox: import("../utils/types.js").Component<ComboboxOptions<"input">>;
38
39
  export interface ComboboxOptions<T extends As = "input"> extends CompositeOptions<T>, PopoverAnchorOptions<T> {
39
40
  /**
40
- * Object returned by the `useComboboxStore` hook.
41
+ * Object returned by the
42
+ * [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
43
+ * hook. If not provided, the closest
44
+ * [`ComboboxProvider`](https://ariakit.org/reference/combobox-provider)
45
+ * component's context will be used.
41
46
  */
42
47
  store?: ComboboxStore;
43
48
  /**
44
49
  * Whether the first item will be automatically selected when the combobox
45
50
  * input value changes. When it's set to `true`, the exact behavior will
46
- * depend on the value of `autoComplete` prop:
47
- * - If `autoComplete` is `both` or `inline`, the first item is automatically
48
- * focused when the popup opens, and the input value changes to reflect
49
- * this. The inline completion string will be highlighted and will have a
50
- * selected state.
51
- * - If `autoComplete` is `list` or `none`, the first item is automatically
52
- * focused when the popup opens, but the input value doesn't change.
51
+ * depend on the value of
52
+ * [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete) prop:
53
+ * - If [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete)
54
+ * is `both` or `inline`, the first item is automatically focused when the
55
+ * popup opens, and the input value changes to reflect this. The inline
56
+ * completion string will be highlighted and will have a selected state.
57
+ * - If [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete)
58
+ * is `list` or `none`, the first item is automatically focused when the
59
+ * popup opens, but the input value doesn't change.
53
60
  *
54
61
  * Live examples:
55
62
  * - [ComboboxCancel](https://ariakit.org/examples/combobox-cancel)
@@ -57,26 +64,39 @@ export interface ComboboxOptions<T extends As = "input"> extends CompositeOption
57
64
  * - [Combobox with links](https://ariakit.org/examples/combobox-links)
58
65
  * - [Textarea with inline
59
66
  * Combobox](https://ariakit.org/examples/combobox-textarea)
67
+ * - [Menu with Combobox](https://ariakit.org/examples/menu-combobox)
68
+ * - [Select with Combobox](https://ariakit.org/examples/select-combobox)
60
69
  * @default false
61
70
  */
62
71
  autoSelect?: boolean;
63
72
  /**
64
- * Whether the items will be filtered based on `value` and whether the input
65
- * value will temporarily change based on the active item. If `defaultList` or
66
- * `list` are provided, this will be set to `list` by default, otherwise it'll
67
- * default to `none`.
68
- * - `both`: the items will be filtered based on `value` and the input value
69
- * will temporarily change based on the active item.
70
- * - `list`: the items will be filtered based on `value` and the input value
71
- * will NOT change based on the active item.
72
- * - `inline`: the items are static, that is, they won't be filtered based on
73
- * `value`, but the input value will temporarily change based on the active
74
- * item.
73
+ * Whether the items will be filtered based on
74
+ * [`value`](https://ariakit.org/reference/combobox-provider#value) and
75
+ * whether the input value will temporarily change based on the active item.
76
+ *
77
+ * This prop is based on the standard
78
+ * [`aria-autocomplete`](https://w3c.github.io/aria/#aria-autocomplete)
79
+ * attribute, accepting the same values:
80
+ * - `both`: indicates that the items will be filtered based on
81
+ * [`value`](https://ariakit.org/reference/combobox-provider#value) and the
82
+ * input value will temporarily change based on the active item. The
83
+ * filtering logic must be implemented by the consumer of this component,
84
+ * whereas Ariakit will automatically provide the inline autocompletion
85
+ * behavior.
86
+ * - `list` (default): indicates that the items will be filtered based on
87
+ * [`value`](https://ariakit.org/reference/combobox-provider#value) and the
88
+ * input value will NOT change based on the active item. The filtering logic
89
+ * must be implemented by the consumer of this component.
90
+ * - `inline`: indicates that the items are static, that is, they won't be
91
+ * filtered, but the input value will temporarily change based on the active
92
+ * item. Ariakit will automatically provide the inline autocompletion
93
+ * behavior
75
94
  * - `none`: the items are static and the input value will NOT change based on
76
95
  * the active item.
77
96
  *
78
97
  * Live examples:
79
98
  * - [ComboboxGroup](https://ariakit.org/examples/combobox-group)
99
+ * @default "list"
80
100
  */
81
101
  autoComplete?: StringWithValue<Required<AriaAttributes>["aria-autocomplete"]>;
82
102
  /**
@@ -105,8 +125,9 @@ export interface ComboboxOptions<T extends As = "input"> extends CompositeOption
105
125
  */
106
126
  setValueOnChange?: BooleanOrCallback<ChangeEvent<HTMLElement>>;
107
127
  /**
108
- * Whether the combobox list/popover should be shown when the input is
109
- * clicked.
128
+ * Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
129
+ * or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
130
+ * components should be shown when the input is clicked.
110
131
  *
111
132
  * Live examples:
112
133
  * - [Textarea with inline
@@ -114,15 +135,15 @@ export interface ComboboxOptions<T extends As = "input"> extends CompositeOption
114
135
  * @default true
115
136
  * @example
116
137
  * ```jsx
117
- * const combobox = useComboboxStore();
118
- * const canShow = combobox.useState((state) => state.value.length > 1);
119
- * <Combobox store={combobox} showOnMouseDown={canShow} />
138
+ * <Combobox showOnMouseDown={value.length > 1} />
120
139
  * ```
121
140
  */
122
141
  showOnMouseDown?: BooleanOrCallback<MouseEvent<HTMLElement>>;
123
142
  /**
124
- * Whether the combobox list/popover should be shown when the user presses
125
- * the arrow up or down keys while focusing on the combobox input element.
143
+ * Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
144
+ * or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
145
+ * components should be shown when the user presses the arrow up or down keys
146
+ * while focusing on the combobox input element.
126
147
  *
127
148
  * Live examples:
128
149
  * - [Textarea with inline
@@ -130,9 +151,7 @@ export interface ComboboxOptions<T extends As = "input"> extends CompositeOption
130
151
  * @default true
131
152
  * @example
132
153
  * ```jsx
133
- * const combobox = useComboboxStore();
134
- * const canShow = combobox.useState((state) => state.value.length > 1);
135
- * <Combobox store={combobox} showOnKeyDown={canShow} />
154
+ * <Combobox showOnKeyDown={value.length > 1} />
136
155
  * ```
137
156
  */
138
157
  showOnKeyDown?: BooleanOrCallback<ReactKeyboardEvent<HTMLElement>>;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CompositeContainer,
3
3
  useCompositeContainer
4
- } from "../__chunks/U47NFJA3.js";
4
+ } from "../__chunks/IZ6ZARCP.js";
5
5
  import "../__chunks/OXPV2NBK.js";
6
6
  import "../__chunks/5C7J4IAS.js";
7
7
  import "../__chunks/74KKBFVP.js";
8
8
  import "../__chunks/CFEUKV6C.js";
9
- import "../__chunks/L3AX6U5E.js";
9
+ import "../__chunks/XXO3VVQU.js";
10
10
  import "../__chunks/J7Q2EO23.js";
11
11
  import "../__chunks/CP3U4HPL.js";
12
12
  import "../__chunks/PNRLI7OV.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CompositeItem,
3
3
  useCompositeItem
4
- } from "../__chunks/6TWF32ML.js";
4
+ } from "../__chunks/72OJKUSZ.js";
5
5
  import "../__chunks/LND6SMHN.js";
6
6
  import "../__chunks/XIA3HAXM.js";
7
7
  import "../__chunks/OXPV2NBK.js";
@@ -10,7 +10,7 @@ import "../__chunks/74KKBFVP.js";
10
10
  import "../__chunks/M4OAD5XF.js";
11
11
  import "../__chunks/BMLNRUFQ.js";
12
12
  import "../__chunks/CFEUKV6C.js";
13
- import "../__chunks/L3AX6U5E.js";
13
+ import "../__chunks/XXO3VVQU.js";
14
14
  import "../__chunks/J7Q2EO23.js";
15
15
  import "../__chunks/CP3U4HPL.js";
16
16
  import "../__chunks/PNRLI7OV.js";
@@ -7,7 +7,7 @@ import "../__chunks/4FNI7F6H.js";
7
7
  import "../__chunks/QPWEKAWF.js";
8
8
  import {
9
9
  useCompositeItem
10
- } from "../__chunks/6TWF32ML.js";
10
+ } from "../__chunks/72OJKUSZ.js";
11
11
  import "../__chunks/LND6SMHN.js";
12
12
  import "../__chunks/XIA3HAXM.js";
13
13
  import "../__chunks/OXPV2NBK.js";
@@ -23,7 +23,7 @@ import {
23
23
  createElement,
24
24
  createHook
25
25
  } from "../__chunks/CFEUKV6C.js";
26
- import "../__chunks/L3AX6U5E.js";
26
+ import "../__chunks/XXO3VVQU.js";
27
27
  import {
28
28
  useEvent,
29
29
  useMergeRefs
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  usePopoverStoreProps
3
- } from "../__chunks/DORFNB2S.js";
4
- import "../__chunks/6X2TPJLY.js";
5
- import "../__chunks/UHPQRTV4.js";
3
+ } from "../__chunks/H2BG4QDT.js";
4
+ import "../__chunks/UY3UQ4QI.js";
5
+ import "../__chunks/A2ONBKVT.js";
6
6
  import {
7
7
  useStore
8
- } from "../__chunks/L3AX6U5E.js";
8
+ } from "../__chunks/XXO3VVQU.js";
9
9
  import "../__chunks/J7Q2EO23.js";
10
10
  import "../__chunks/CP3U4HPL.js";
11
11
  import "../__chunks/PNRLI7OV.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  usePopover
3
- } from "../__chunks/XWFU333Y.js";
4
- import "../__chunks/D4PXCBCI.js";
5
- import "../__chunks/HJPDTCDL.js";
3
+ } from "../__chunks/GP4UGJIZ.js";
4
+ import "../__chunks/4RP654JS.js";
5
+ import "../__chunks/W575AF63.js";
6
6
  import "../__chunks/PLOINBVB.js";
7
7
  import "../__chunks/HAVCR65N.js";
8
8
  import "../__chunks/62DFK33R.js";
@@ -35,8 +35,8 @@ import {
35
35
  createElement,
36
36
  createHook
37
37
  } from "../__chunks/CFEUKV6C.js";
38
- import "../__chunks/UHPQRTV4.js";
39
- import "../__chunks/L3AX6U5E.js";
38
+ import "../__chunks/A2ONBKVT.js";
39
+ import "../__chunks/XXO3VVQU.js";
40
40
  import {
41
41
  useEvent
42
42
  } from "../__chunks/J7Q2EO23.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useCompositeStore
3
- } from "../__chunks/FGP6QO3O.js";
4
- import "../__chunks/JEQRR7AL.js";
3
+ } from "../__chunks/WGAKICTY.js";
4
+ import "../__chunks/NWDF5QDV.js";
5
5
  import {
6
6
  CompositeContextProvider
7
7
  } from "../__chunks/5C7J4IAS.js";
8
8
  import "../__chunks/74KKBFVP.js";
9
9
  import "../__chunks/CFEUKV6C.js";
10
- import "../__chunks/L3AX6U5E.js";
10
+ import "../__chunks/XXO3VVQU.js";
11
11
  import "../__chunks/J7Q2EO23.js";
12
12
  import "../__chunks/CP3U4HPL.js";
13
13
  import "../__chunks/PNRLI7OV.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  CompositeRenderer,
3
3
  useCompositeRenderer
4
- } from "../__chunks/43SODXOT.js";
4
+ } from "../__chunks/C5JX5C3O.js";
5
5
  import {
6
6
  getCollectionRendererItem,
7
7
  getCollectionRendererItemId
8
- } from "../__chunks/XIRNSMZD.js";
8
+ } from "../__chunks/3HFOFZP4.js";
9
9
  import "../__chunks/5C7J4IAS.js";
10
10
  import "../__chunks/74KKBFVP.js";
11
11
  import "../__chunks/CFEUKV6C.js";
12
- import "../__chunks/L3AX6U5E.js";
12
+ import "../__chunks/XXO3VVQU.js";
13
13
  import "../__chunks/J7Q2EO23.js";
14
14
  import "../__chunks/CP3U4HPL.js";
15
15
  import "../__chunks/PNRLI7OV.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useCompositeStore,
3
3
  useCompositeStoreProps
4
- } from "../__chunks/FGP6QO3O.js";
5
- import "../__chunks/JEQRR7AL.js";
6
- import "../__chunks/L3AX6U5E.js";
4
+ } from "../__chunks/WGAKICTY.js";
5
+ import "../__chunks/NWDF5QDV.js";
6
+ import "../__chunks/XXO3VVQU.js";
7
7
  import "../__chunks/J7Q2EO23.js";
8
8
  import "../__chunks/CP3U4HPL.js";
9
9
  import "../__chunks/PNRLI7OV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DialogBackdrop
3
- } from "../__chunks/HJPDTCDL.js";
3
+ } from "../__chunks/W575AF63.js";
4
4
  import "../__chunks/KGDYSCOM.js";
5
5
  import "../__chunks/IXXFVVA2.js";
6
6
  import "../__chunks/5M4ITSXL.js";
@@ -10,8 +10,8 @@ import "../__chunks/3D7ZB3CS.js";
10
10
  import "../__chunks/5YYGDU4E.js";
11
11
  import "../__chunks/56KWVYDN.js";
12
12
  import "../__chunks/CFEUKV6C.js";
13
- import "../__chunks/UHPQRTV4.js";
14
- import "../__chunks/L3AX6U5E.js";
13
+ import "../__chunks/A2ONBKVT.js";
14
+ import "../__chunks/XXO3VVQU.js";
15
15
  import "../__chunks/J7Q2EO23.js";
16
16
  import "../__chunks/CP3U4HPL.js";
17
17
  import "../__chunks/PNRLI7OV.js";
@@ -5,9 +5,9 @@ import "../__chunks/56KWVYDN.js";
5
5
  import "../__chunks/CFEUKV6C.js";
6
6
  import {
7
7
  useDialogStore
8
- } from "../__chunks/6X2TPJLY.js";
9
- import "../__chunks/UHPQRTV4.js";
10
- import "../__chunks/L3AX6U5E.js";
8
+ } from "../__chunks/UY3UQ4QI.js";
9
+ import "../__chunks/A2ONBKVT.js";
10
+ import "../__chunks/XXO3VVQU.js";
11
11
  import "../__chunks/J7Q2EO23.js";
12
12
  import "../__chunks/CP3U4HPL.js";
13
13
  import "../__chunks/PNRLI7OV.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useDialogStore,
3
3
  useDialogStoreProps
4
- } from "../__chunks/6X2TPJLY.js";
5
- import "../__chunks/UHPQRTV4.js";
6
- import "../__chunks/L3AX6U5E.js";
4
+ } from "../__chunks/UY3UQ4QI.js";
5
+ import "../__chunks/A2ONBKVT.js";
6
+ import "../__chunks/XXO3VVQU.js";
7
7
  import "../__chunks/J7Q2EO23.js";
8
8
  import "../__chunks/CP3U4HPL.js";
9
9
  import "../__chunks/PNRLI7OV.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Dialog,
3
3
  useDialog
4
- } from "../__chunks/D4PXCBCI.js";
5
- import "../__chunks/HJPDTCDL.js";
4
+ } from "../__chunks/4RP654JS.js";
5
+ import "../__chunks/W575AF63.js";
6
6
  import "../__chunks/PLOINBVB.js";
7
7
  import "../__chunks/HAVCR65N.js";
8
8
  import "../__chunks/62DFK33R.js";
@@ -30,8 +30,8 @@ import "../__chunks/M4OAD5XF.js";
30
30
  import "../__chunks/BMLNRUFQ.js";
31
31
  import "../__chunks/6XXSNRNX.js";
32
32
  import "../__chunks/CFEUKV6C.js";
33
- import "../__chunks/UHPQRTV4.js";
34
- import "../__chunks/L3AX6U5E.js";
33
+ import "../__chunks/A2ONBKVT.js";
34
+ import "../__chunks/XXO3VVQU.js";
35
35
  import "../__chunks/J7Q2EO23.js";
36
36
  import "../__chunks/CP3U4HPL.js";
37
37
  import "../__chunks/PNRLI7OV.js";
@@ -18,15 +18,20 @@ export declare const useDisclosureContent: import("../utils/types.js").Hook<Disc
18
18
  * @see https://ariakit.org/components/disclosure
19
19
  * @example
20
20
  * ```jsx
21
- * const disclosure = useDisclosureStore();
22
- * <Disclosure store={disclosure}>Disclosure</Disclosure>
23
- * <DisclosureContent store={disclosure}>Content</DisclosureContent>
21
+ * <DisclosureProvider>
22
+ * <Disclosure>Disclosure</Disclosure>
23
+ * <DisclosureContent>Content</DisclosureContent>
24
+ * </DisclosureProvider>
24
25
  * ```
25
26
  */
26
27
  export declare const DisclosureContent: import("../utils/types.js").Component<DisclosureContentOptions<"div">>;
27
28
  export interface DisclosureContentOptions<T extends As = "div"> extends Options<T> {
28
29
  /**
29
- * Object returned by the `useDisclosureStore` hook.
30
+ * Object returned by the
31
+ * [`useDisclosureStore`](https://ariakit.org/reference/use-disclosure-store)
32
+ * hook. If not provided, the closest
33
+ * [`DisclosureProvider`](https://ariakit.org/reference/disclosure-provider)
34
+ * component's context will be used.
30
35
  */
31
36
  store?: DisclosureStore;
32
37
  /**
@@ -4,8 +4,8 @@ import {
4
4
  import "../__chunks/CFEUKV6C.js";
5
5
  import {
6
6
  useDisclosureStore
7
- } from "../__chunks/UHPQRTV4.js";
8
- import "../__chunks/L3AX6U5E.js";
7
+ } from "../__chunks/A2ONBKVT.js";
8
+ import "../__chunks/XXO3VVQU.js";
9
9
  import "../__chunks/J7Q2EO23.js";
10
10
  import "../__chunks/CP3U4HPL.js";
11
11
  import "../__chunks/PNRLI7OV.js";
@@ -1,7 +1,6 @@
1
- import type { DependencyList } from "react";
2
1
  import * as Core from "@ariakit/core/disclosure/disclosure-store";
3
2
  import type { Store } from "../utils/store.js";
4
- export declare function useDisclosureStoreProps<T extends Core.DisclosureStore>(store: T, update: () => void, props: DisclosureStoreProps, deps?: DependencyList): T;
3
+ export declare function useDisclosureStoreProps<T extends Core.DisclosureStore>(store: T, update: () => void, props: DisclosureStoreProps): T;
5
4
  /**
6
5
  * Creates a disclosure store.
7
6
  * @see https://ariakit.org/components/disclosure
@@ -24,6 +23,14 @@ export interface DisclosureStoreOptions extends Core.DisclosureStoreOptions {
24
23
  * const disclosure = useDisclosureStore({ open, setOpen });
25
24
  */
26
25
  setOpen?: (open: DisclosureStoreState["open"]) => void;
26
+ /**
27
+ * A callback that gets called when the `mounted` state changes.
28
+ * @param mounted The new mounted value.
29
+ * @example
30
+ * const [mounted, setMounted] = useState(false);
31
+ * const disclosure = useDisclosureStore({ setMounted });
32
+ */
33
+ setMounted?: (mounted: DisclosureStoreState["mounted"]) => void;
27
34
  }
28
35
  export type DisclosureStoreProps = DisclosureStoreOptions & Core.DisclosureStoreProps;
29
36
  export type DisclosureStore = DisclosureStoreFunctions & Store<Core.DisclosureStore>;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  useDisclosureStore,
3
3
  useDisclosureStoreProps
4
- } from "../__chunks/UHPQRTV4.js";
5
- import "../__chunks/L3AX6U5E.js";
4
+ } from "../__chunks/A2ONBKVT.js";
5
+ import "../__chunks/XXO3VVQU.js";
6
6
  import "../__chunks/J7Q2EO23.js";
7
7
  import "../__chunks/CP3U4HPL.js";
8
8
  import "../__chunks/PNRLI7OV.js";
@@ -21,20 +21,27 @@ export declare const useDisclosure: import("../utils/types.js").Hook<DisclosureO
21
21
  * @see https://ariakit.org/components/disclosure
22
22
  * @example
23
23
  * ```jsx
24
- * const disclosure = useDisclosureStore();
25
- * <Disclosure store={disclosure}>Disclosure</Disclosure>
26
- * <DisclosureContent store={disclosure}>Content</DisclosureContent>
24
+ * <DisclosureProvider>
25
+ * <Disclosure>Disclosure</Disclosure>
26
+ * <DisclosureContent>Content</DisclosureContent>
27
+ * </DisclosureProvider>
27
28
  * ```
28
29
  */
29
30
  export declare const Disclosure: import("../utils/types.js").Component<DisclosureOptions<"button">>;
30
31
  export interface DisclosureOptions<T extends As = "button"> extends ButtonOptions<T> {
31
32
  /**
32
- * Object returned by the `useDisclosureStore` hook.
33
+ * Object returned by the
34
+ * [`useDisclosureStore`](https://ariakit.org/reference/use-disclosure-store)
35
+ * hook. If not provided, the closest
36
+ * [`DisclosureProvider`](https://ariakit.org/reference/disclosure-provider)
37
+ * component's context will be used.
33
38
  */
34
39
  store?: DisclosureStore;
35
40
  /**
36
- * Determines whether `store.toggle()` will be called on click. This is useful
37
- * if you want to handle the toggle logic yourself.
41
+ * Determines whether
42
+ * [`toggle`](https://ariakit.org/reference/use-disclosure-store#toggle) will
43
+ * be called on click. This is useful if you want to handle the toggle logic
44
+ * yourself.
38
45
  * @default true
39
46
  */
40
47
  toggleOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
@@ -22,7 +22,11 @@ export declare const useFormCheckbox: import("../utils/types.js").Hook<FormCheck
22
22
  * @see https://ariakit.org/components/form
23
23
  * @example
24
24
  * ```jsx
25
- * const form = useFormStore({ defaultValues: { acceptTerms: false } });
25
+ * const form = useFormStore({
26
+ * defaultValues: {
27
+ * acceptTerms: false,
28
+ * },
29
+ * });
26
30
  * <Form store={form}>
27
31
  * <label>
28
32
  * <FormCheckbox name={form.names.acceptTerms} />
@@ -6,10 +6,10 @@ import {
6
6
  } from "../__chunks/NJS632IW.js";
7
7
  import {
8
8
  useCheckbox
9
- } from "../__chunks/665VBEVH.js";
9
+ } from "../__chunks/HGW6FZYU.js";
10
10
  import {
11
11
  useCheckboxStore
12
- } from "../__chunks/TUPK6PWU.js";
12
+ } from "../__chunks/KZMKUBQH.js";
13
13
  import "../__chunks/ICL2YIES.js";
14
14
  import "../__chunks/M5KYRTQG.js";
15
15
  import "../__chunks/LND6SMHN.js";
@@ -22,7 +22,7 @@ import {
22
22
  createHook,
23
23
  createMemoComponent
24
24
  } from "../__chunks/CFEUKV6C.js";
25
- import "../__chunks/L3AX6U5E.js";
25
+ import "../__chunks/XXO3VVQU.js";
26
26
  import "../__chunks/J7Q2EO23.js";
27
27
  import "../__chunks/CP3U4HPL.js";
28
28
  import {
@@ -22,7 +22,11 @@ export declare const useFormDescription: import("../utils/types.js").Hook<FormDe
22
22
  * @see https://ariakit.org/components/form
23
23
  * @example
24
24
  * ```jsx
25
- * const form = useFormStore({ defaultValues: { password: "" } });
25
+ * const form = useFormStore({
26
+ * defaultValues: {
27
+ * password: "",
28
+ * },
29
+ * });
26
30
  * <Form store={form}>
27
31
  * <FormLabel name={form.names.password}>Password</FormLabel>
28
32
  * <FormInput name={form.names.password} type="password" />
@@ -35,8 +39,11 @@ export declare const useFormDescription: import("../utils/types.js").Hook<FormDe
35
39
  export declare const FormDescription: import("../utils/types.js").Component<FormDescriptionOptions<"div">>;
36
40
  export interface FormDescriptionOptions<T extends As = "div"> extends CollectionItemOptions<T> {
37
41
  /**
38
- * Object returned by the `useFormStore` hook. If not provided, the parent
39
- * `Form` component's context will be used.
42
+ * Object returned by the
43
+ * [`useFormStore`](https://ariakit.org/reference/use-form-store) hook. If not
44
+ * provided, the closest [`Form`](https://ariakit.org/reference/form) or
45
+ * [`FormProvider`](https://ariakit.org/reference/form-provider) components'
46
+ * context will be used.
40
47
  */
41
48
  store?: FormStore;
42
49
  /**
@@ -30,7 +30,11 @@ export declare const useFormError: import("../utils/types.js").Hook<FormErrorOpt
30
30
  * @see https://ariakit.org/components/form
31
31
  * @example
32
32
  * ```jsx
33
- * const form = useFormStore({ defaultValues: { email: "" } });
33
+ * const form = useFormStore({
34
+ * defaultValues: {
35
+ * email: "",
36
+ * },
37
+ * });
34
38
  *
35
39
  * form.useValidate(() => {
36
40
  * if (!form.values.email) {
@@ -48,8 +52,11 @@ export declare const useFormError: import("../utils/types.js").Hook<FormErrorOpt
48
52
  export declare const FormError: import("../utils/types.js").Component<FormErrorOptions<"div">>;
49
53
  export interface FormErrorOptions<T extends As = "div"> extends CollectionItemOptions<T> {
50
54
  /**
51
- * Object returned by the `useFormStore` hook. If not provided, the parent
52
- * `Form` component's context will be used.
55
+ * Object returned by the
56
+ * [`useFormStore`](https://ariakit.org/reference/use-form-store) hook. If not
57
+ * provided, the closest [`Form`](https://ariakit.org/reference/form) or
58
+ * [`FormProvider`](https://ariakit.org/reference/form-provider) components'
59
+ * context will be used.
53
60
  */
54
61
  store?: FormStore;
55
62
  /**
@@ -30,21 +30,26 @@ import type { FormStore } from "./form-store.js";
30
30
  */
31
31
  export declare const useFormField: import("../utils/types.js").Hook<FormFieldOptions<"input">>;
32
32
  /**
33
- * Renders a form field. Unlike `FormInput`, this component doesn't
34
- * automatically pass the `value` and `onChange` props down to the underlying
35
- * element. This is so we can use it not only for native form elements but also
36
- * for custom components whose value is not controlled by the native `value` and
37
- * `onChange` props.
33
+ * Renders a form field. Unlike
34
+ * [`FormInput`](https://ariakit.org/reference/form-input), this component
35
+ * doesn't automatically pass the `value` and `onChange` props down to the
36
+ * underlying element. This is so we can use it not only for native form
37
+ * elements but also for custom components whose value is not controlled by the
38
+ * native `value` and `onChange` props.
38
39
  * @see https://ariakit.org/components/form
39
40
  * @example
40
41
  * ```jsx
41
- * const form = useFormStore({ defaultValues: { content: "" } });
42
+ * const form = useFormStore({
43
+ * defaultValues: {
44
+ * content: "",
45
+ * },
46
+ * });
47
+ *
42
48
  * const value = form.useValue(form.names.content);
43
49
  *
44
50
  * <Form store={form}>
45
51
  * <FormLabel name={form.names.content}>Content</FormLabel>
46
52
  * <FormField
47
- * {...props}
48
53
  * value={value}
49
54
  * onChange={(value) => form.setValue(form.names.content, value)}
50
55
  * render={<Editor />}
@@ -55,8 +60,11 @@ export declare const useFormField: import("../utils/types.js").Hook<FormFieldOpt
55
60
  export declare const FormField: import("../utils/types.js").Component<FormFieldOptions<"input">>;
56
61
  export interface FormFieldOptions<T extends As = "input"> extends CollectionItemOptions<T> {
57
62
  /**
58
- * Object returned by the `useFormStore` hook. If not provided, the parent
59
- * `Form` component's context will be used.
63
+ * Object returned by the
64
+ * [`useFormStore`](https://ariakit.org/reference/use-form-store) hook. If not
65
+ * provided, the closest [`Form`](https://ariakit.org/reference/form) or
66
+ * [`FormProvider`](https://ariakit.org/reference/form-provider) components'
67
+ * context will be used.
60
68
  */
61
69
  store?: FormStore;
62
70
  /**