@funstack/ui 0.1.0-alpha.21 → 0.1.0-alpha.23

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 (767) hide show
  1. package/dist/accordion/accordion-context.mjs +1 -2
  2. package/dist/accordion/accordion-item.d.mts +1 -3
  3. package/dist/accordion/accordion-item.d.mts.map +1 -1
  4. package/dist/accordion/accordion-item.mjs +14 -8
  5. package/dist/accordion/accordion-item.mjs.map +1 -1
  6. package/dist/accordion/accordion-panel.d.mts +1 -3
  7. package/dist/accordion/accordion-panel.d.mts.map +1 -1
  8. package/dist/accordion/accordion-panel.mjs +3 -4
  9. package/dist/accordion/accordion-root.d.mts +1 -3
  10. package/dist/accordion/accordion-root.d.mts.map +1 -1
  11. package/dist/accordion/accordion-root.mjs +12 -15
  12. package/dist/accordion/accordion-root.mjs.map +1 -1
  13. package/dist/accordion/accordion-trigger.d.mts +1 -3
  14. package/dist/accordion/accordion-trigger.d.mts.map +1 -1
  15. package/dist/accordion/accordion-trigger.mjs +4 -5
  16. package/dist/accordion/index.d.mts +0 -2
  17. package/dist/accordion/index.d.mts.map +1 -1
  18. package/dist/accordion/index.mjs +1 -2
  19. package/dist/alert-dialog/alert-dialog-action.d.mts +5 -5
  20. package/dist/alert-dialog/alert-dialog-action.d.mts.map +1 -1
  21. package/dist/alert-dialog/alert-dialog-action.mjs +1 -2
  22. package/dist/alert-dialog/alert-dialog-action.mjs.map +1 -1
  23. package/dist/alert-dialog/alert-dialog-cancel.d.mts +0 -2
  24. package/dist/alert-dialog/alert-dialog-cancel.d.mts.map +1 -1
  25. package/dist/alert-dialog/alert-dialog-cancel.mjs +4 -5
  26. package/dist/alert-dialog/alert-dialog-context.mjs +2 -3
  27. package/dist/alert-dialog/alert-dialog-description.d.mts +0 -2
  28. package/dist/alert-dialog/alert-dialog-description.d.mts.map +1 -1
  29. package/dist/alert-dialog/alert-dialog-description.mjs +1 -2
  30. package/dist/alert-dialog/alert-dialog-form.d.mts +0 -2
  31. package/dist/alert-dialog/alert-dialog-form.d.mts.map +1 -1
  32. package/dist/alert-dialog/alert-dialog-form.mjs +1 -2
  33. package/dist/alert-dialog/alert-dialog-popup.d.mts +1 -3
  34. package/dist/alert-dialog/alert-dialog-popup.d.mts.map +1 -1
  35. package/dist/alert-dialog/alert-dialog-popup.mjs +3 -4
  36. package/dist/alert-dialog/alert-dialog-root.d.mts +0 -2
  37. package/dist/alert-dialog/alert-dialog-root.d.mts.map +1 -1
  38. package/dist/alert-dialog/alert-dialog-root.mjs +1 -2
  39. package/dist/alert-dialog/alert-dialog-title.d.mts +0 -2
  40. package/dist/alert-dialog/alert-dialog-title.d.mts.map +1 -1
  41. package/dist/alert-dialog/alert-dialog-title.mjs +1 -2
  42. package/dist/alert-dialog/alert-dialog-trigger.d.mts +0 -2
  43. package/dist/alert-dialog/alert-dialog-trigger.d.mts.map +1 -1
  44. package/dist/alert-dialog/alert-dialog-trigger.mjs +1 -2
  45. package/dist/alert-dialog/index.d.mts +0 -2
  46. package/dist/alert-dialog/index.d.mts.map +1 -1
  47. package/dist/alert-dialog/index.mjs +1 -2
  48. package/dist/avatar/avatar-context.mjs +1 -2
  49. package/dist/avatar/avatar-fallback.d.mts +1 -3
  50. package/dist/avatar/avatar-fallback.d.mts.map +1 -1
  51. package/dist/avatar/avatar-fallback.mjs +1 -2
  52. package/dist/avatar/avatar-image.d.mts +1 -3
  53. package/dist/avatar/avatar-image.d.mts.map +1 -1
  54. package/dist/avatar/avatar-image.mjs +2 -3
  55. package/dist/avatar/avatar-root.d.mts +1 -3
  56. package/dist/avatar/avatar-root.d.mts.map +1 -1
  57. package/dist/avatar/avatar-root.mjs +2 -3
  58. package/dist/avatar/index.d.mts +1 -3
  59. package/dist/avatar/index.d.mts.map +1 -1
  60. package/dist/avatar/index.mjs +1 -2
  61. package/dist/bin/skill-installer.mjs +1 -2
  62. package/dist/button/button.d.mts +1 -3
  63. package/dist/button/button.d.mts.map +1 -1
  64. package/dist/button/button.mjs +4 -5
  65. package/dist/checkbox/checkbox.d.mts +1 -3
  66. package/dist/checkbox/checkbox.d.mts.map +1 -1
  67. package/dist/checkbox/checkbox.mjs +2 -3
  68. package/dist/checkbox-group/checkbox-group-context.mjs +1 -2
  69. package/dist/checkbox-group/checkbox-group-item.d.mts +1 -3
  70. package/dist/checkbox-group/checkbox-group-item.d.mts.map +1 -1
  71. package/dist/checkbox-group/checkbox-group-item.mjs +5 -6
  72. package/dist/checkbox-group/checkbox-group-label.d.mts +1 -3
  73. package/dist/checkbox-group/checkbox-group-label.d.mts.map +1 -1
  74. package/dist/checkbox-group/checkbox-group-label.mjs +1 -2
  75. package/dist/checkbox-group/checkbox-group-parent.d.mts +1 -3
  76. package/dist/checkbox-group/checkbox-group-parent.d.mts.map +1 -1
  77. package/dist/checkbox-group/checkbox-group-parent.mjs +7 -8
  78. package/dist/checkbox-group/checkbox-group-parent.mjs.map +1 -1
  79. package/dist/checkbox-group/checkbox-group-root.d.mts +1 -3
  80. package/dist/checkbox-group/checkbox-group-root.d.mts.map +1 -1
  81. package/dist/checkbox-group/checkbox-group-root.mjs +7 -8
  82. package/dist/checkbox-group/index.d.mts +1 -3
  83. package/dist/checkbox-group/index.d.mts.map +1 -1
  84. package/dist/checkbox-group/index.mjs +1 -2
  85. package/dist/collapsible/collapsible-context.mjs +1 -2
  86. package/dist/collapsible/collapsible-panel.d.mts +1 -3
  87. package/dist/collapsible/collapsible-panel.d.mts.map +1 -1
  88. package/dist/collapsible/collapsible-panel.mjs +3 -4
  89. package/dist/collapsible/collapsible-root.d.mts +1 -3
  90. package/dist/collapsible/collapsible-root.d.mts.map +1 -1
  91. package/dist/collapsible/collapsible-root.mjs +18 -18
  92. package/dist/collapsible/collapsible-root.mjs.map +1 -1
  93. package/dist/collapsible/collapsible-trigger.d.mts +1 -3
  94. package/dist/collapsible/collapsible-trigger.d.mts.map +1 -1
  95. package/dist/collapsible/collapsible-trigger.mjs +4 -5
  96. package/dist/collapsible/index.d.mts +0 -2
  97. package/dist/collapsible/index.d.mts.map +1 -1
  98. package/dist/collapsible/index.mjs +1 -2
  99. package/dist/combobox/chip-text.mjs +1 -2
  100. package/dist/combobox/combobox-chips.d.mts +1 -3
  101. package/dist/combobox/combobox-chips.d.mts.map +1 -1
  102. package/dist/combobox/combobox-chips.mjs +3 -4
  103. package/dist/combobox/combobox-clear.d.mts +1 -3
  104. package/dist/combobox/combobox-clear.d.mts.map +1 -1
  105. package/dist/combobox/combobox-clear.mjs +2 -3
  106. package/dist/combobox/combobox-context.mjs +1 -2
  107. package/dist/combobox/combobox-group.d.mts +1 -3
  108. package/dist/combobox/combobox-group.d.mts.map +1 -1
  109. package/dist/combobox/combobox-group.mjs +2 -3
  110. package/dist/combobox/combobox-input.d.mts +1 -3
  111. package/dist/combobox/combobox-input.d.mts.map +1 -1
  112. package/dist/combobox/combobox-input.mjs +5 -6
  113. package/dist/combobox/combobox-keyboard.mjs +2 -3
  114. package/dist/combobox/combobox-label.d.mts +1 -3
  115. package/dist/combobox/combobox-label.d.mts.map +1 -1
  116. package/dist/combobox/combobox-label.mjs +2 -3
  117. package/dist/combobox/combobox-list.d.mts +1 -3
  118. package/dist/combobox/combobox-list.d.mts.map +1 -1
  119. package/dist/combobox/combobox-list.mjs +3 -4
  120. package/dist/combobox/combobox-option.d.mts +1 -3
  121. package/dist/combobox/combobox-option.d.mts.map +1 -1
  122. package/dist/combobox/combobox-option.mjs +2 -3
  123. package/dist/combobox/combobox-popup.d.mts +1 -3
  124. package/dist/combobox/combobox-popup.d.mts.map +1 -1
  125. package/dist/combobox/combobox-popup.mjs +4 -5
  126. package/dist/combobox/combobox-root.d.mts +1 -3
  127. package/dist/combobox/combobox-root.d.mts.map +1 -1
  128. package/dist/combobox/combobox-root.mjs +14 -15
  129. package/dist/combobox/combobox-trigger.d.mts +1 -3
  130. package/dist/combobox/combobox-trigger.d.mts.map +1 -1
  131. package/dist/combobox/combobox-trigger.mjs +5 -6
  132. package/dist/combobox/index.d.mts +1 -3
  133. package/dist/combobox/index.d.mts.map +1 -1
  134. package/dist/combobox/index.mjs +1 -2
  135. package/dist/combobox/use-combobox-form.mjs +3 -5
  136. package/dist/combobox/use-combobox-form.mjs.map +1 -1
  137. package/dist/combobox/use-combobox-text.mjs +3 -4
  138. package/dist/csp/csp-provider.d.mts +0 -2
  139. package/dist/csp/csp-provider.d.mts.map +1 -1
  140. package/dist/csp/csp-provider.mjs +2 -3
  141. package/dist/csp/style-hashes.d.mts +0 -2
  142. package/dist/csp/style-hashes.d.mts.map +1 -1
  143. package/dist/csp/style-hashes.mjs +1 -2
  144. package/dist/dialog/dialog-close.d.mts +10 -6
  145. package/dist/dialog/dialog-close.d.mts.map +1 -1
  146. package/dist/dialog/dialog-close.mjs +5 -5
  147. package/dist/dialog/dialog-close.mjs.map +1 -1
  148. package/dist/dialog/dialog-context.mjs +1 -2
  149. package/dist/dialog/dialog-description.d.mts +1 -3
  150. package/dist/dialog/dialog-description.d.mts.map +1 -1
  151. package/dist/dialog/dialog-description.mjs +1 -2
  152. package/dist/dialog/dialog-dismiss.mjs +51 -21
  153. package/dist/dialog/dialog-dismiss.mjs.map +1 -1
  154. package/dist/dialog/dialog-form.d.mts +1 -3
  155. package/dist/dialog/dialog-form.d.mts.map +1 -1
  156. package/dist/dialog/dialog-form.mjs +6 -7
  157. package/dist/dialog/dialog-popup.d.mts +2 -4
  158. package/dist/dialog/dialog-popup.d.mts.map +1 -1
  159. package/dist/dialog/dialog-popup.mjs +10 -11
  160. package/dist/dialog/dialog-root.d.mts +1 -3
  161. package/dist/dialog/dialog-root.d.mts.map +1 -1
  162. package/dist/dialog/dialog-root.mjs +3 -4
  163. package/dist/dialog/dialog-title.d.mts +1 -3
  164. package/dist/dialog/dialog-title.d.mts.map +1 -1
  165. package/dist/dialog/dialog-title.mjs +1 -2
  166. package/dist/dialog/dialog-trigger.d.mts +1 -3
  167. package/dist/dialog/dialog-trigger.d.mts.map +1 -1
  168. package/dist/dialog/dialog-trigger.mjs +4 -5
  169. package/dist/dialog/index.d.mts +1 -3
  170. package/dist/dialog/index.d.mts.map +1 -1
  171. package/dist/dialog/index.mjs +1 -2
  172. package/dist/docs/components/accordion.md +1 -1
  173. package/dist/docs/components/alert-dialog.md +15 -7
  174. package/dist/docs/components/collapsible.md +1 -1
  175. package/dist/docs/components/dialog.md +14 -6
  176. package/dist/docs/components/drawer.md +3 -3
  177. package/dist/docs/components/menu.md +4 -4
  178. package/dist/docs/components/menubar.md +309 -0
  179. package/dist/docs/components/meter.md +1 -1
  180. package/dist/docs/components/navigation-menu.md +501 -0
  181. package/dist/docs/components/number-field.md +2 -2
  182. package/dist/docs/components/otp-field.md +8 -1
  183. package/dist/docs/components/popover.md +6 -6
  184. package/dist/docs/components/progress.md +1 -1
  185. package/dist/docs/components/radio-group.md +1 -1
  186. package/dist/docs/components/slider.md +1 -1
  187. package/dist/docs/concepts/direction-and-locales.md +106 -0
  188. package/dist/docs/concepts/pending-and-optimistic.md +1 -0
  189. package/dist/docs/index.md +4 -1
  190. package/dist/docs/roadmap.md +11 -0
  191. package/dist/drawer/drawer-close.d.mts +0 -2
  192. package/dist/drawer/drawer-close.d.mts.map +1 -1
  193. package/dist/drawer/drawer-close.mjs +1 -2
  194. package/dist/drawer/drawer-description.d.mts +0 -2
  195. package/dist/drawer/drawer-description.d.mts.map +1 -1
  196. package/dist/drawer/drawer-description.mjs +1 -2
  197. package/dist/drawer/drawer-form.d.mts +0 -2
  198. package/dist/drawer/drawer-form.d.mts.map +1 -1
  199. package/dist/drawer/drawer-form.mjs +1 -2
  200. package/dist/drawer/drawer-popup.d.mts +2 -4
  201. package/dist/drawer/drawer-popup.d.mts.map +1 -1
  202. package/dist/drawer/drawer-popup.mjs +3 -4
  203. package/dist/drawer/drawer-root.d.mts +0 -2
  204. package/dist/drawer/drawer-root.d.mts.map +1 -1
  205. package/dist/drawer/drawer-root.mjs +1 -2
  206. package/dist/drawer/drawer-swipe.d.mts +0 -2
  207. package/dist/drawer/drawer-swipe.d.mts.map +1 -1
  208. package/dist/drawer/drawer-swipe.mjs +1 -2
  209. package/dist/drawer/drawer-swipe.mjs.map +1 -1
  210. package/dist/drawer/drawer-title.d.mts +0 -2
  211. package/dist/drawer/drawer-title.d.mts.map +1 -1
  212. package/dist/drawer/drawer-title.mjs +1 -2
  213. package/dist/drawer/drawer-trigger.d.mts +0 -2
  214. package/dist/drawer/drawer-trigger.d.mts.map +1 -1
  215. package/dist/drawer/drawer-trigger.mjs +1 -2
  216. package/dist/drawer/index.d.mts +0 -2
  217. package/dist/drawer/index.d.mts.map +1 -1
  218. package/dist/drawer/index.mjs +1 -2
  219. package/dist/field/field-control.d.mts +2 -4
  220. package/dist/field/field-control.d.mts.map +1 -1
  221. package/dist/field/field-control.mjs +6 -7
  222. package/dist/field/field-description.d.mts +2 -4
  223. package/dist/field/field-description.d.mts.map +1 -1
  224. package/dist/field/field-description.mjs +2 -3
  225. package/dist/field/field-error.d.mts +2 -4
  226. package/dist/field/field-error.d.mts.map +1 -1
  227. package/dist/field/field-error.mjs +3 -4
  228. package/dist/field/field-label.d.mts +2 -4
  229. package/dist/field/field-label.d.mts.map +1 -1
  230. package/dist/field/field-label.mjs +3 -4
  231. package/dist/field/field-root.d.mts +2 -4
  232. package/dist/field/field-root.d.mts.map +1 -1
  233. package/dist/field/field-root.mjs +11 -16
  234. package/dist/field/field-root.mjs.map +1 -1
  235. package/dist/field/index.d.mts +0 -2
  236. package/dist/field/index.d.mts.map +1 -1
  237. package/dist/field/index.mjs +1 -2
  238. package/dist/field/use-server-error-visibility.mjs +1 -2
  239. package/dist/form/form-root.d.mts +1 -3
  240. package/dist/form/form-root.d.mts.map +1 -1
  241. package/dist/form/form-root.mjs +8 -9
  242. package/dist/form/form-submit.d.mts +1 -3
  243. package/dist/form/form-submit.d.mts.map +1 -1
  244. package/dist/form/form-submit.mjs +3 -4
  245. package/dist/form/index.d.mts +0 -2
  246. package/dist/form/index.d.mts.map +1 -1
  247. package/dist/form/index.mjs +1 -2
  248. package/dist/hover-card/hover-card-context.mjs +1 -2
  249. package/dist/hover-card/hover-card-popup.d.mts +2 -4
  250. package/dist/hover-card/hover-card-popup.d.mts.map +1 -1
  251. package/dist/hover-card/hover-card-popup.mjs +6 -7
  252. package/dist/hover-card/hover-card-root.d.mts +1 -3
  253. package/dist/hover-card/hover-card-root.d.mts.map +1 -1
  254. package/dist/hover-card/hover-card-root.mjs +3 -4
  255. package/dist/hover-card/hover-card-trigger.d.mts +1 -3
  256. package/dist/hover-card/hover-card-trigger.d.mts.map +1 -1
  257. package/dist/hover-card/hover-card-trigger.mjs +5 -6
  258. package/dist/hover-card/index.d.mts +0 -2
  259. package/dist/hover-card/index.d.mts.map +1 -1
  260. package/dist/hover-card/index.mjs +1 -2
  261. package/dist/hover-card/use-hover-card-interest.mjs +14 -8
  262. package/dist/hover-card/use-hover-card-interest.mjs.map +1 -1
  263. package/dist/index.d.mts +50 -35
  264. package/dist/index.mjs +3 -1
  265. package/dist/internal/action/action-details.mjs +1 -2
  266. package/dist/internal/action/call-urgent-handler.mjs +1 -2
  267. package/dist/internal/action/report-dropped.mjs +1 -2
  268. package/dist/internal/action/use-action-trigger.mjs +2 -3
  269. package/dist/internal/action/use-connected.mjs +1 -2
  270. package/dist/internal/action/use-controllable-action.mjs +4 -5
  271. package/dist/internal/action/use-multiple-selection.mjs +4 -5
  272. package/dist/internal/action/use-pure-trigger.mjs +1 -2
  273. package/dist/internal/action/use-pure-trigger.mjs.map +1 -1
  274. package/dist/internal/action/use-step-commit.mjs +3 -4
  275. package/dist/internal/after-dispatch.mjs +23 -0
  276. package/dist/internal/after-dispatch.mjs.map +1 -0
  277. package/dist/internal/announce.mjs +1 -2
  278. package/dist/internal/arrow-keys.mjs +1 -2
  279. package/dist/internal/csp-context.mjs +1 -2
  280. package/dist/internal/data-attr.mjs +1 -2
  281. package/dist/internal/decimal.mjs +1 -2
  282. package/dist/internal/details-summary.mjs +51 -3
  283. package/dist/internal/details-summary.mjs.map +1 -1
  284. package/dist/internal/dev-warn.mjs +1 -2
  285. package/dist/internal/dom-order.mjs +1 -2
  286. package/dist/internal/form/field-context.d.mts +0 -2
  287. package/dist/internal/form/field-context.d.mts.map +1 -1
  288. package/dist/internal/form/field-context.mjs +2 -3
  289. package/dist/internal/form/focus-first-invalid.mjs +2 -3
  290. package/dist/internal/form/form-status-watcher.mjs +1 -2
  291. package/dist/internal/form/group-member.mjs +1 -2
  292. package/dist/internal/form/hidden-values.mjs +1 -2
  293. package/dist/internal/form/sync-presence.mjs +1 -2
  294. package/dist/internal/form/use-checkable-input.mjs +2 -3
  295. package/dist/internal/form/use-field-control.mjs +3 -4
  296. package/dist/internal/form/use-fieldset-group.mjs +3 -4
  297. package/dist/internal/form/use-form-owner-event.mjs +1 -2
  298. package/dist/internal/form/use-form-reset.mjs +10 -8
  299. package/dist/internal/form/use-form-reset.mjs.map +1 -1
  300. package/dist/internal/form/use-native-checked.mjs +2 -3
  301. package/dist/internal/form/use-native-group-reconciliation.mjs +3 -4
  302. package/dist/internal/form/use-native-select-value.mjs +2 -3
  303. package/dist/internal/form/validity.d.mts +0 -2
  304. package/dist/internal/form/validity.d.mts.map +1 -1
  305. package/dist/internal/form/validity.mjs +1 -2
  306. package/dist/internal/menubar-context.mjs +11 -0
  307. package/dist/internal/menubar-context.mjs.map +1 -0
  308. package/dist/internal/merge-props.mjs +1 -2
  309. package/dist/internal/overlay/anchor-position.d.mts +0 -2
  310. package/dist/internal/overlay/anchor-position.d.mts.map +1 -1
  311. package/dist/internal/overlay/anchor-position.mjs +1 -2
  312. package/dist/internal/overlay/content-focus-probe.mjs +1 -2
  313. package/dist/internal/overlay/css-transition-cut.mjs +1 -2
  314. package/dist/internal/overlay/css-transition-cut.mjs.map +1 -1
  315. package/dist/internal/overlay/focus-visible.mjs +1 -2
  316. package/dist/internal/overlay/invokers.mjs +1 -2
  317. package/dist/internal/overlay/modal-registry.mjs +1 -2
  318. package/dist/internal/overlay/overlay-popup.mjs +2 -3
  319. package/dist/internal/overlay/overlay-show.mjs +1 -2
  320. package/dist/internal/overlay/popover-open.mjs +1 -2
  321. package/dist/internal/overlay/trigger-ref.mjs +2 -3
  322. package/dist/internal/overlay/trigger-ref.mjs.map +1 -1
  323. package/dist/internal/overlay/use-apply-open-state.mjs +1 -2
  324. package/dist/internal/overlay/use-exit-animation.mjs +1 -2
  325. package/dist/internal/overlay/use-exit-animation.mjs.map +1 -1
  326. package/dist/internal/overlay/use-interest-dismiss.mjs +3 -4
  327. package/dist/internal/overlay/use-modal-registration.mjs +2 -3
  328. package/dist/internal/overlay/use-overlay-close.mjs +11 -9
  329. package/dist/internal/overlay/use-overlay-close.mjs.map +1 -1
  330. package/dist/internal/overlay/use-overlay-root.d.mts +2 -2
  331. package/dist/internal/overlay/use-overlay-root.mjs +9 -9
  332. package/dist/internal/overlay/use-overlay-root.mjs.map +1 -1
  333. package/dist/internal/overlay/use-popover-popup.mjs +6 -7
  334. package/dist/internal/overlay/use-popover-trigger.d.mts +2 -4
  335. package/dist/internal/overlay/use-popover-trigger.d.mts.map +1 -1
  336. package/dist/internal/overlay/use-popover-trigger.mjs +6 -7
  337. package/dist/internal/overlay/use-popover-trigger.mjs.map +1 -1
  338. package/dist/internal/overlay/use-resolved-placement.mjs +4 -5
  339. package/dist/internal/platform-attributes.d.mts +0 -2
  340. package/dist/internal/platform-attributes.d.mts.map +1 -1
  341. package/dist/internal/pointer-capture.mjs +1 -2
  342. package/dist/internal/range-value.mjs +6 -5
  343. package/dist/internal/range-value.mjs.map +1 -1
  344. package/dist/internal/render-element.d.mts +2 -2
  345. package/dist/internal/render-element.mjs +2 -3
  346. package/dist/internal/shipped-styles.mjs +1 -2
  347. package/dist/internal/swipe-arithmetic.mjs +0 -1
  348. package/dist/internal/swipe.mjs +2 -3
  349. package/dist/internal/toolbar-context.mjs +1 -2
  350. package/dist/internal/transition-boundary.mjs +2 -3
  351. package/dist/internal/transition-types.mjs +1 -2
  352. package/dist/internal/typeahead.mjs +0 -1
  353. package/dist/internal/types.d.mts +0 -2
  354. package/dist/internal/types.d.mts.map +1 -1
  355. package/dist/internal/use-active-option.mjs +1 -2
  356. package/dist/internal/use-deferred-leave.mjs +2 -3
  357. package/dist/internal/use-delayed-pair.mjs +1 -2
  358. package/dist/internal/use-dev-warning.mjs +0 -1
  359. package/dist/internal/use-element-check.mjs +1 -2
  360. package/dist/internal/use-hydrated-mount.mjs +1 -2
  361. package/dist/internal/use-item-order.mjs +2 -3
  362. package/dist/internal/use-latest.mjs +1 -2
  363. package/dist/internal/use-merged-refs.mjs +2 -3
  364. package/dist/internal/use-mount-fixed.mjs +2 -3
  365. package/dist/internal/use-name-warning.mjs +1 -2
  366. package/dist/internal/use-native-focusgroup.mjs +1 -2
  367. package/dist/internal/use-option-registry.mjs +3 -4
  368. package/dist/internal/use-register-count.mjs +1 -2
  369. package/dist/internal/use-render.d.mts +2 -2
  370. package/dist/internal/use-render.mjs +2 -3
  371. package/dist/internal/use-roving-focus.mjs +2 -3
  372. package/dist/internal/use-value-set.mjs +2 -3
  373. package/dist/internal/value-set.mjs +1 -2
  374. package/dist/menu/index.d.mts +2 -4
  375. package/dist/menu/index.d.mts.map +1 -1
  376. package/dist/menu/index.mjs +2 -3
  377. package/dist/menu/menu-checkbox-item.d.mts +1 -3
  378. package/dist/menu/menu-checkbox-item.d.mts.map +1 -1
  379. package/dist/menu/menu-checkbox-item.mjs +3 -4
  380. package/dist/menu/menu-context-trigger.d.mts +1 -3
  381. package/dist/menu/menu-context-trigger.d.mts.map +1 -1
  382. package/dist/menu/menu-context-trigger.mjs +4 -5
  383. package/dist/menu/menu-context.mjs +1 -2
  384. package/dist/menu/menu-dom.mjs +1 -2
  385. package/dist/menu/menu-gestures.mjs +1 -2
  386. package/dist/menu/menu-group.d.mts +1 -3
  387. package/dist/menu/menu-group.d.mts.map +1 -1
  388. package/dist/menu/menu-group.mjs +2 -3
  389. package/dist/menu/menu-hover.mjs +1 -2
  390. package/dist/menu/menu-item.d.mts +3 -4
  391. package/dist/menu/menu-item.d.mts.map +1 -1
  392. package/dist/menu/menu-item.mjs +6 -3
  393. package/dist/menu/menu-item.mjs.map +1 -1
  394. package/dist/menu/menu-outside.mjs +1 -2
  395. package/dist/menu/menu-point.mjs +1 -2
  396. package/dist/menu/menu-popup.d.mts +2 -4
  397. package/dist/menu/menu-popup.d.mts.map +1 -1
  398. package/dist/menu/menu-popup.mjs +45 -19
  399. package/dist/menu/menu-popup.mjs.map +1 -1
  400. package/dist/menu/menu-radio-group.d.mts +1 -3
  401. package/dist/menu/menu-radio-group.d.mts.map +1 -1
  402. package/dist/menu/menu-radio-group.mjs +3 -4
  403. package/dist/menu/menu-radio-item.d.mts +1 -3
  404. package/dist/menu/menu-radio-item.d.mts.map +1 -1
  405. package/dist/menu/menu-radio-item.mjs +2 -3
  406. package/dist/menu/menu-root.d.mts +1 -3
  407. package/dist/menu/menu-root.d.mts.map +1 -1
  408. package/dist/menu/menu-root.mjs +4 -5
  409. package/dist/menu/menu-submenu-trigger.d.mts +1 -3
  410. package/dist/menu/menu-submenu-trigger.d.mts.map +1 -1
  411. package/dist/menu/menu-submenu-trigger.mjs +5 -6
  412. package/dist/menu/menu-trigger.d.mts +11 -6
  413. package/dist/menu/menu-trigger.d.mts.map +1 -1
  414. package/dist/menu/menu-trigger.mjs +56 -9
  415. package/dist/menu/menu-trigger.mjs.map +1 -1
  416. package/dist/menu/use-menu-item.mjs +2 -3
  417. package/dist/menu/use-menu-keyboard.mjs +2 -3
  418. package/dist/menubar/index.d.mts +3 -0
  419. package/dist/menubar/index.mjs +1 -0
  420. package/dist/menubar/menubar.d.mts +47 -0
  421. package/dist/menubar/menubar.d.mts.map +1 -0
  422. package/dist/menubar/menubar.mjs +146 -0
  423. package/dist/menubar/menubar.mjs.map +1 -0
  424. package/dist/meter/index.d.mts +1 -3
  425. package/dist/meter/index.d.mts.map +1 -1
  426. package/dist/meter/index.mjs +1 -2
  427. package/dist/meter/meter-context.mjs +1 -2
  428. package/dist/meter/meter-indicator.d.mts +1 -3
  429. package/dist/meter/meter-indicator.d.mts.map +1 -1
  430. package/dist/meter/meter-indicator.mjs +1 -2
  431. package/dist/meter/meter-label.d.mts +1 -3
  432. package/dist/meter/meter-label.d.mts.map +1 -1
  433. package/dist/meter/meter-label.mjs +1 -2
  434. package/dist/meter/meter-region.d.mts +0 -2
  435. package/dist/meter/meter-region.d.mts.map +1 -1
  436. package/dist/meter/meter-region.mjs +1 -2
  437. package/dist/meter/meter-root.d.mts +4 -5
  438. package/dist/meter/meter-root.d.mts.map +1 -1
  439. package/dist/meter/meter-root.mjs +4 -5
  440. package/dist/meter/meter-root.mjs.map +1 -1
  441. package/dist/meter/meter-track.d.mts +1 -3
  442. package/dist/meter/meter-track.d.mts.map +1 -1
  443. package/dist/meter/meter-track.mjs +1 -2
  444. package/dist/meter/meter-value.d.mts +1 -3
  445. package/dist/meter/meter-value.d.mts.map +1 -1
  446. package/dist/meter/meter-value.mjs +1 -2
  447. package/dist/multi-select/index.d.mts +1 -3
  448. package/dist/multi-select/index.d.mts.map +1 -1
  449. package/dist/multi-select/index.mjs +1 -2
  450. package/dist/multi-select/multi-select-context.mjs +1 -2
  451. package/dist/multi-select/multi-select-group.d.mts +1 -3
  452. package/dist/multi-select/multi-select-group.d.mts.map +1 -1
  453. package/dist/multi-select/multi-select-group.mjs +2 -3
  454. package/dist/multi-select/multi-select-keyboard.mjs +1 -2
  455. package/dist/multi-select/multi-select-label.d.mts +1 -3
  456. package/dist/multi-select/multi-select-label.d.mts.map +1 -1
  457. package/dist/multi-select/multi-select-label.mjs +2 -3
  458. package/dist/multi-select/multi-select-list.d.mts +1 -3
  459. package/dist/multi-select/multi-select-list.d.mts.map +1 -1
  460. package/dist/multi-select/multi-select-list.mjs +3 -4
  461. package/dist/multi-select/multi-select-option.d.mts +1 -3
  462. package/dist/multi-select/multi-select-option.d.mts.map +1 -1
  463. package/dist/multi-select/multi-select-option.mjs +3 -4
  464. package/dist/multi-select/multi-select-popup.d.mts +1 -3
  465. package/dist/multi-select/multi-select-popup.d.mts.map +1 -1
  466. package/dist/multi-select/multi-select-popup.mjs +5 -6
  467. package/dist/multi-select/multi-select-root.d.mts +1 -3
  468. package/dist/multi-select/multi-select-root.d.mts.map +1 -1
  469. package/dist/multi-select/multi-select-root.mjs +11 -12
  470. package/dist/multi-select/multi-select-trigger.d.mts +1 -3
  471. package/dist/multi-select/multi-select-trigger.d.mts.map +1 -1
  472. package/dist/multi-select/multi-select-trigger.mjs +7 -8
  473. package/dist/multi-select/multi-select-value.d.mts +1 -3
  474. package/dist/multi-select/multi-select-value.d.mts.map +1 -1
  475. package/dist/multi-select/multi-select-value.mjs +1 -2
  476. package/dist/navigation-menu/index.d.mts +30 -0
  477. package/dist/navigation-menu/index.d.mts.map +1 -0
  478. package/dist/navigation-menu/index.mjs +31 -0
  479. package/dist/navigation-menu/index.mjs.map +1 -0
  480. package/dist/navigation-menu/navigation-menu-context.mjs +18 -0
  481. package/dist/navigation-menu/navigation-menu-context.mjs.map +1 -0
  482. package/dist/navigation-menu/navigation-menu-item.d.mts +77 -0
  483. package/dist/navigation-menu/navigation-menu-item.d.mts.map +1 -0
  484. package/dist/navigation-menu/navigation-menu-item.mjs +79 -0
  485. package/dist/navigation-menu/navigation-menu-item.mjs.map +1 -0
  486. package/dist/navigation-menu/navigation-menu-link.d.mts +46 -0
  487. package/dist/navigation-menu/navigation-menu-link.d.mts.map +1 -0
  488. package/dist/navigation-menu/navigation-menu-link.mjs +65 -0
  489. package/dist/navigation-menu/navigation-menu-link.mjs.map +1 -0
  490. package/dist/navigation-menu/navigation-menu-list.d.mts +31 -0
  491. package/dist/navigation-menu/navigation-menu-list.d.mts.map +1 -0
  492. package/dist/navigation-menu/navigation-menu-list.mjs +29 -0
  493. package/dist/navigation-menu/navigation-menu-list.mjs.map +1 -0
  494. package/dist/navigation-menu/navigation-menu-popup.d.mts +100 -0
  495. package/dist/navigation-menu/navigation-menu-popup.d.mts.map +1 -0
  496. package/dist/navigation-menu/navigation-menu-popup.mjs +92 -0
  497. package/dist/navigation-menu/navigation-menu-popup.mjs.map +1 -0
  498. package/dist/navigation-menu/navigation-menu-root.d.mts +31 -0
  499. package/dist/navigation-menu/navigation-menu-root.d.mts.map +1 -0
  500. package/dist/navigation-menu/navigation-menu-root.mjs +26 -0
  501. package/dist/navigation-menu/navigation-menu-root.mjs.map +1 -0
  502. package/dist/navigation-menu/navigation-menu-trigger.d.mts +30 -0
  503. package/dist/navigation-menu/navigation-menu-trigger.d.mts.map +1 -0
  504. package/dist/navigation-menu/navigation-menu-trigger.mjs +41 -0
  505. package/dist/navigation-menu/navigation-menu-trigger.mjs.map +1 -0
  506. package/dist/number-field/index.d.mts +2 -4
  507. package/dist/number-field/index.d.mts.map +1 -1
  508. package/dist/number-field/index.mjs +1 -2
  509. package/dist/number-field/number-field-arithmetic.mjs +1 -2
  510. package/dist/number-field/number-field-context.d.mts +1 -3
  511. package/dist/number-field/number-field-context.d.mts.map +1 -1
  512. package/dist/number-field/number-field-context.mjs +1 -2
  513. package/dist/number-field/number-field-decrement.d.mts +0 -2
  514. package/dist/number-field/number-field-decrement.d.mts.map +1 -1
  515. package/dist/number-field/number-field-decrement.mjs +1 -2
  516. package/dist/number-field/number-field-format.mjs +1 -2
  517. package/dist/number-field/number-field-increment.d.mts +0 -2
  518. package/dist/number-field/number-field-increment.d.mts.map +1 -1
  519. package/dist/number-field/number-field-increment.mjs +1 -2
  520. package/dist/number-field/number-field-input.d.mts +1 -3
  521. package/dist/number-field/number-field-input.d.mts.map +1 -1
  522. package/dist/number-field/number-field-input.mjs +4 -5
  523. package/dist/number-field/number-field-label.d.mts +1 -3
  524. package/dist/number-field/number-field-label.d.mts.map +1 -1
  525. package/dist/number-field/number-field-label.mjs +3 -4
  526. package/dist/number-field/number-field-root.d.mts +1 -3
  527. package/dist/number-field/number-field-root.d.mts.map +1 -1
  528. package/dist/number-field/number-field-root.mjs +7 -8
  529. package/dist/number-field/number-field-root.mjs.map +1 -1
  530. package/dist/number-field/use-number-field-dev-warnings.mjs +2 -3
  531. package/dist/number-field/use-step-button.d.mts +1 -3
  532. package/dist/number-field/use-step-button.d.mts.map +1 -1
  533. package/dist/number-field/use-step-button.mjs +2 -3
  534. package/dist/otp-field/index.d.mts +2 -4
  535. package/dist/otp-field/index.d.mts.map +1 -1
  536. package/dist/otp-field/index.mjs +1 -2
  537. package/dist/otp-field/otp-field-context.mjs +1 -2
  538. package/dist/otp-field/otp-field-filter.d.mts +0 -2
  539. package/dist/otp-field/otp-field-filter.d.mts.map +1 -1
  540. package/dist/otp-field/otp-field-filter.mjs +1 -2
  541. package/dist/otp-field/otp-field-input.d.mts +1 -3
  542. package/dist/otp-field/otp-field-input.d.mts.map +1 -1
  543. package/dist/otp-field/otp-field-input.mjs +6 -7
  544. package/dist/otp-field/otp-field-root.d.mts +10 -3
  545. package/dist/otp-field/otp-field-root.d.mts.map +1 -1
  546. package/dist/otp-field/otp-field-root.mjs +15 -13
  547. package/dist/otp-field/otp-field-root.mjs.map +1 -1
  548. package/dist/otp-field/otp-field-slot.d.mts +1 -3
  549. package/dist/otp-field/otp-field-slot.d.mts.map +1 -1
  550. package/dist/otp-field/otp-field-slot.mjs +2 -3
  551. package/dist/popover/index.d.mts +1 -3
  552. package/dist/popover/index.d.mts.map +1 -1
  553. package/dist/popover/index.mjs +1 -2
  554. package/dist/popover/popover-close.d.mts +10 -6
  555. package/dist/popover/popover-close.d.mts.map +1 -1
  556. package/dist/popover/popover-close.mjs +3 -3
  557. package/dist/popover/popover-close.mjs.map +1 -1
  558. package/dist/popover/popover-context.mjs +1 -2
  559. package/dist/popover/popover-description.d.mts +1 -3
  560. package/dist/popover/popover-description.d.mts.map +1 -1
  561. package/dist/popover/popover-description.mjs +1 -2
  562. package/dist/popover/popover-popup.d.mts +2 -4
  563. package/dist/popover/popover-popup.d.mts.map +1 -1
  564. package/dist/popover/popover-popup.mjs +4 -5
  565. package/dist/popover/popover-root.d.mts +1 -3
  566. package/dist/popover/popover-root.d.mts.map +1 -1
  567. package/dist/popover/popover-root.mjs +2 -3
  568. package/dist/popover/popover-title.d.mts +1 -3
  569. package/dist/popover/popover-title.d.mts.map +1 -1
  570. package/dist/popover/popover-title.mjs +1 -2
  571. package/dist/popover/popover-trigger.d.mts +1 -3
  572. package/dist/popover/popover-trigger.d.mts.map +1 -1
  573. package/dist/popover/popover-trigger.mjs +2 -3
  574. package/dist/progress/index.d.mts +1 -3
  575. package/dist/progress/index.d.mts.map +1 -1
  576. package/dist/progress/index.mjs +1 -2
  577. package/dist/progress/progress-context.mjs +1 -2
  578. package/dist/progress/progress-indicator.d.mts +1 -3
  579. package/dist/progress/progress-indicator.d.mts.map +1 -1
  580. package/dist/progress/progress-indicator.mjs +1 -2
  581. package/dist/progress/progress-label.d.mts +1 -3
  582. package/dist/progress/progress-label.d.mts.map +1 -1
  583. package/dist/progress/progress-label.mjs +1 -2
  584. package/dist/progress/progress-root.d.mts +4 -5
  585. package/dist/progress/progress-root.d.mts.map +1 -1
  586. package/dist/progress/progress-root.mjs +4 -5
  587. package/dist/progress/progress-root.mjs.map +1 -1
  588. package/dist/progress/progress-track.d.mts +1 -3
  589. package/dist/progress/progress-track.d.mts.map +1 -1
  590. package/dist/progress/progress-track.mjs +1 -2
  591. package/dist/progress/progress-value.d.mts +1 -3
  592. package/dist/progress/progress-value.d.mts.map +1 -1
  593. package/dist/progress/progress-value.mjs +1 -2
  594. package/dist/radio-group/index.d.mts +1 -3
  595. package/dist/radio-group/index.d.mts.map +1 -1
  596. package/dist/radio-group/index.mjs +1 -2
  597. package/dist/radio-group/radio-group-context.mjs +1 -2
  598. package/dist/radio-group/radio-group-item.d.mts +1 -3
  599. package/dist/radio-group/radio-group-item.d.mts.map +1 -1
  600. package/dist/radio-group/radio-group-item.mjs +3 -4
  601. package/dist/radio-group/radio-group-label.d.mts +1 -3
  602. package/dist/radio-group/radio-group-label.d.mts.map +1 -1
  603. package/dist/radio-group/radio-group-label.mjs +1 -2
  604. package/dist/radio-group/radio-group-root.d.mts +1 -3
  605. package/dist/radio-group/radio-group-root.d.mts.map +1 -1
  606. package/dist/radio-group/radio-group-root.mjs +4 -5
  607. package/dist/select/index.d.mts +1 -3
  608. package/dist/select/index.d.mts.map +1 -1
  609. package/dist/select/index.mjs +1 -2
  610. package/dist/select/select-context.mjs +1 -2
  611. package/dist/select/select-dom.mjs +2 -3
  612. package/dist/select/select-group-label.d.mts +1 -3
  613. package/dist/select/select-group-label.d.mts.map +1 -1
  614. package/dist/select/select-group-label.mjs +1 -2
  615. package/dist/select/select-group.d.mts +1 -3
  616. package/dist/select/select-group.d.mts.map +1 -1
  617. package/dist/select/select-group.mjs +2 -3
  618. package/dist/select/select-option.d.mts +1 -3
  619. package/dist/select/select-option.d.mts.map +1 -1
  620. package/dist/select/select-option.mjs +3 -4
  621. package/dist/select/select-root.d.mts +1 -3
  622. package/dist/select/select-root.d.mts.map +1 -1
  623. package/dist/select/select-root.mjs +6 -7
  624. package/dist/select/select-separator.d.mts +1 -3
  625. package/dist/select/select-separator.d.mts.map +1 -1
  626. package/dist/select/select-separator.mjs +1 -2
  627. package/dist/select/select-trigger.d.mts +1 -3
  628. package/dist/select/select-trigger.d.mts.map +1 -1
  629. package/dist/select/select-trigger.mjs +1 -2
  630. package/dist/select/select-value.d.mts +1 -3
  631. package/dist/select/select-value.d.mts.map +1 -1
  632. package/dist/select/select-value.mjs +3 -4
  633. package/dist/select/select-value.mjs.map +1 -1
  634. package/dist/separator/separator.d.mts +1 -3
  635. package/dist/separator/separator.d.mts.map +1 -1
  636. package/dist/separator/separator.mjs +1 -2
  637. package/dist/slider/index.d.mts +2 -4
  638. package/dist/slider/index.d.mts.map +1 -1
  639. package/dist/slider/index.mjs +1 -2
  640. package/dist/slider/slider-arithmetic.mjs +1 -2
  641. package/dist/slider/slider-context.mjs +1 -2
  642. package/dist/slider/slider-indicator.d.mts +1 -3
  643. package/dist/slider/slider-indicator.d.mts.map +1 -1
  644. package/dist/slider/slider-indicator.mjs +1 -2
  645. package/dist/slider/slider-label.d.mts +1 -3
  646. package/dist/slider/slider-label.d.mts.map +1 -1
  647. package/dist/slider/slider-label.mjs +3 -4
  648. package/dist/slider/slider-root.d.mts +1 -3
  649. package/dist/slider/slider-root.d.mts.map +1 -1
  650. package/dist/slider/slider-root.mjs +8 -9
  651. package/dist/slider/slider-thumb.d.mts +1 -3
  652. package/dist/slider/slider-thumb.d.mts.map +1 -1
  653. package/dist/slider/slider-thumb.mjs +5 -6
  654. package/dist/slider/slider-track.d.mts +1 -3
  655. package/dist/slider/slider-track.d.mts.map +1 -1
  656. package/dist/slider/slider-track.mjs +2 -3
  657. package/dist/slider/slider-value.d.mts +1 -3
  658. package/dist/slider/slider-value.d.mts.map +1 -1
  659. package/dist/slider/slider-value.mjs +1 -2
  660. package/dist/slider/use-slider-dev-warnings.mjs +2 -3
  661. package/dist/slider/use-thumb-registry.mjs +1 -2
  662. package/dist/switch/switch.d.mts +1 -3
  663. package/dist/switch/switch.d.mts.map +1 -1
  664. package/dist/switch/switch.mjs +2 -3
  665. package/dist/tabs/index.d.mts +0 -2
  666. package/dist/tabs/index.d.mts.map +1 -1
  667. package/dist/tabs/index.mjs +1 -2
  668. package/dist/tabs/tabs-context.d.mts +0 -2
  669. package/dist/tabs/tabs-context.d.mts.map +1 -1
  670. package/dist/tabs/tabs-context.mjs +1 -2
  671. package/dist/tabs/tabs-ids.mjs +1 -2
  672. package/dist/tabs/tabs-indicator.d.mts +1 -3
  673. package/dist/tabs/tabs-indicator.d.mts.map +1 -1
  674. package/dist/tabs/tabs-indicator.mjs +1 -2
  675. package/dist/tabs/tabs-list.d.mts +1 -3
  676. package/dist/tabs/tabs-list.d.mts.map +1 -1
  677. package/dist/tabs/tabs-list.mjs +4 -5
  678. package/dist/tabs/tabs-panel.d.mts +1 -3
  679. package/dist/tabs/tabs-panel.d.mts.map +1 -1
  680. package/dist/tabs/tabs-panel.mjs +4 -5
  681. package/dist/tabs/tabs-root.d.mts +1 -3
  682. package/dist/tabs/tabs-root.d.mts.map +1 -1
  683. package/dist/tabs/tabs-root.mjs +5 -6
  684. package/dist/tabs/tabs-tab.d.mts +1 -3
  685. package/dist/tabs/tabs-tab.d.mts.map +1 -1
  686. package/dist/tabs/tabs-tab.mjs +3 -4
  687. package/dist/tabs/use-until-found.mjs +1 -2
  688. package/dist/toast/index.d.mts +2 -4
  689. package/dist/toast/index.d.mts.map +1 -1
  690. package/dist/toast/index.mjs +2 -3
  691. package/dist/toast/toast-action.d.mts +1 -3
  692. package/dist/toast/toast-action.d.mts.map +1 -1
  693. package/dist/toast/toast-action.mjs +2 -3
  694. package/dist/toast/toast-close.d.mts +1 -3
  695. package/dist/toast/toast-close.d.mts.map +1 -1
  696. package/dist/toast/toast-close.mjs +2 -3
  697. package/dist/toast/toast-context.mjs +1 -2
  698. package/dist/toast/toast-description.d.mts +1 -3
  699. package/dist/toast/toast-description.d.mts.map +1 -1
  700. package/dist/toast/toast-description.mjs +2 -3
  701. package/dist/toast/toast-hotkey.mjs +1 -2
  702. package/dist/toast/toast-queue.mjs +1 -2
  703. package/dist/toast/toast-root.d.mts +1 -3
  704. package/dist/toast/toast-root.d.mts.map +1 -1
  705. package/dist/toast/toast-root.mjs +4 -5
  706. package/dist/toast/toast-root.mjs.map +1 -1
  707. package/dist/toast/toast-timers.mjs +1 -2
  708. package/dist/toast/toast-title.d.mts +1 -3
  709. package/dist/toast/toast-title.d.mts.map +1 -1
  710. package/dist/toast/toast-title.mjs +2 -3
  711. package/dist/toast/toast-viewport.d.mts +1 -3
  712. package/dist/toast/toast-viewport.d.mts.map +1 -1
  713. package/dist/toast/toast-viewport.mjs +9 -10
  714. package/dist/toast/toast.d.mts +1 -3
  715. package/dist/toast/toast.d.mts.map +1 -1
  716. package/dist/toast/toast.mjs +1 -2
  717. package/dist/toast/use-modal-portal-host.mjs +2 -3
  718. package/dist/toast/use-toast-announcements.mjs +2 -3
  719. package/dist/toast/use-toast-announcements.mjs.map +1 -1
  720. package/dist/toast/use-toast-focus.mjs +2 -3
  721. package/dist/toast/use-toast-pauses.mjs +2 -3
  722. package/dist/toggle/toggle.d.mts +1 -3
  723. package/dist/toggle/toggle.d.mts.map +1 -1
  724. package/dist/toggle/toggle.mjs +3 -4
  725. package/dist/toggle-group/index.d.mts +0 -2
  726. package/dist/toggle-group/index.d.mts.map +1 -1
  727. package/dist/toggle-group/index.mjs +1 -2
  728. package/dist/toggle-group/toggle-group-context.d.mts +0 -2
  729. package/dist/toggle-group/toggle-group-context.d.mts.map +1 -1
  730. package/dist/toggle-group/toggle-group-context.mjs +1 -2
  731. package/dist/toggle-group/toggle-group-item.d.mts +1 -3
  732. package/dist/toggle-group/toggle-group-item.d.mts.map +1 -1
  733. package/dist/toggle-group/toggle-group-item.mjs +2 -3
  734. package/dist/toggle-group/toggle-group-root.d.mts +1 -3
  735. package/dist/toggle-group/toggle-group-root.d.mts.map +1 -1
  736. package/dist/toggle-group/toggle-group-root.mjs +8 -9
  737. package/dist/toolbar/index.d.mts +0 -2
  738. package/dist/toolbar/index.d.mts.map +1 -1
  739. package/dist/toolbar/index.mjs +1 -2
  740. package/dist/toolbar/toolbar-root.d.mts +1 -3
  741. package/dist/toolbar/toolbar-root.d.mts.map +1 -1
  742. package/dist/toolbar/toolbar-root.mjs +3 -4
  743. package/dist/toolbar/toolbar-separator.d.mts +1 -3
  744. package/dist/toolbar/toolbar-separator.d.mts.map +1 -1
  745. package/dist/toolbar/toolbar-separator.mjs +1 -2
  746. package/dist/tooltip/index.d.mts +0 -2
  747. package/dist/tooltip/index.d.mts.map +1 -1
  748. package/dist/tooltip/index.mjs +1 -2
  749. package/dist/tooltip/tooltip-arrow.d.mts +1 -3
  750. package/dist/tooltip/tooltip-arrow.d.mts.map +1 -1
  751. package/dist/tooltip/tooltip-arrow.mjs +2 -3
  752. package/dist/tooltip/tooltip-context.d.mts +0 -2
  753. package/dist/tooltip/tooltip-context.d.mts.map +1 -1
  754. package/dist/tooltip/tooltip-context.mjs +1 -2
  755. package/dist/tooltip/tooltip-popup.d.mts +1 -3
  756. package/dist/tooltip/tooltip-popup.d.mts.map +1 -1
  757. package/dist/tooltip/tooltip-popup.mjs +4 -5
  758. package/dist/tooltip/tooltip-root.d.mts +1 -3
  759. package/dist/tooltip/tooltip-root.d.mts.map +1 -1
  760. package/dist/tooltip/tooltip-root.mjs +2 -3
  761. package/dist/tooltip/tooltip-trigger.d.mts +1 -3
  762. package/dist/tooltip/tooltip-trigger.d.mts.map +1 -1
  763. package/dist/tooltip/tooltip-trigger.mjs +6 -7
  764. package/dist/tooltip/tooltip-warm.mjs +1 -2
  765. package/dist/tooltip/use-tooltip-interaction.mjs +2 -3
  766. package/package.json +11 -8
  767. package/skills/funstack-ui-knowledge/SKILL.md +5 -2
@@ -0,0 +1,501 @@
1
+ # NavigationMenu
2
+
3
+ A site header: a row of links, some of which are buttons that open a panel of more links. It is the **disclosure** pattern, not a menu: no `menu` roles, no arrow keys, Tab moves through everything. Each panel is a `<div popover>` next to its `<button popovertarget>`, so the browser gives the toggle, the expanded state, Escape, light dismiss and one open panel at a time with **no JavaScript**: the default NavigationMenu works before and without hydration, and its links are in the server HTML. After hydration the library closes a panel when focus leaves it and when one of its links is followed. A panel whose content is worth loading late opts into library mode, where opening is a transition.
4
+
5
+ ```tsx title="NavigationMenuSite.tsx"
6
+ // No "use client": this file is a Server Component. No Item has an open-state prop, so every
7
+ // panel runs in JS-free mode: the browser toggles it through `popovertarget`, keeps one open at a
8
+ // time, closes it on Escape and a click outside, and the links are in the server HTML. After
9
+ // hydration the library adds two closes: focus leaving an Item, and a followed link.
10
+ //
11
+ // The links point at sections of this page, so following one keeps you here.
12
+ import { NavigationMenu } from "@funstack/ui/navigation-menu";
13
+
14
+ const sections = {
15
+ Reference: [
16
+ { href: "#anatomy", label: "Anatomy" },
17
+ { href: "#props", label: "Props" },
18
+ { href: "#data-attributes", label: "Data attributes" },
19
+ ],
20
+ Behaviour: [
21
+ { href: "#how-it-works", label: "How it works" },
22
+ { href: "#keyboard-and-aria", label: "Keyboard and ARIA" },
23
+ { href: "#suspense", label: "Suspense" },
24
+ ],
25
+ };
26
+
27
+ export function NavigationMenuSite() {
28
+ return (
29
+ <NavigationMenu.Root aria-label="This page" className="demo-nav">
30
+ <NavigationMenu.List className="demo-nav-list">
31
+ {Object.entries(sections).map(([title, links]) => (
32
+ <NavigationMenu.Item key={title}>
33
+ <NavigationMenu.Trigger className="demo-nav-trigger">{title}</NavigationMenu.Trigger>
34
+ <NavigationMenu.Popup className="demo-nav-panel">
35
+ <ul className="demo-nav-links">
36
+ {links.map((link) => (
37
+ <li key={link.href}>
38
+ <NavigationMenu.Link href={link.href}>{link.label}</NavigationMenu.Link>
39
+ </li>
40
+ ))}
41
+ </ul>
42
+ </NavigationMenu.Popup>
43
+ </NavigationMenu.Item>
44
+ ))}
45
+ <NavigationMenu.Item>
46
+ <NavigationMenu.Link href="#recipes" className="demo-nav-trigger">
47
+ Recipes
48
+ </NavigationMenu.Link>
49
+ </NavigationMenu.Item>
50
+ </NavigationMenu.List>
51
+ </NavigationMenu.Root>
52
+ );
53
+ }
54
+ ```
55
+
56
+ ```css title="navigation-menu.css"
57
+ /* NavigationMenu: a row of Triggers (button[popovertarget]) and links; each panel is an auto
58
+ popover right after its Trigger. Open state is `:popover-open`; `data-open` on the Trigger
59
+ after hydration, `:has(+ :popover-open)` before it. */
60
+
61
+ .demo-nav-list {
62
+ display: flex;
63
+ flex-wrap: wrap;
64
+ gap: 4px;
65
+ margin: 0;
66
+ padding: 0;
67
+ list-style: none;
68
+ }
69
+
70
+ .demo-nav-trigger {
71
+ display: inline-flex;
72
+ align-items: center;
73
+ gap: 0.4em;
74
+ padding: 0.35em 0.8em;
75
+ border: 0;
76
+ border-radius: 6px;
77
+ background: transparent;
78
+ color: var(--color-text);
79
+ font: inherit;
80
+ text-decoration: none;
81
+ cursor: pointer;
82
+ }
83
+
84
+ .demo-nav-trigger:hover {
85
+ background: var(--color-bg-secondary);
86
+ }
87
+
88
+ .demo-nav-trigger[data-open],
89
+ .demo-nav-trigger:has(+ :popover-open) {
90
+ background: var(--color-bg-secondary);
91
+ color: var(--color-link);
92
+ }
93
+
94
+ .demo-nav-trigger[data-pending] {
95
+ cursor: progress;
96
+ }
97
+
98
+ .demo-nav-panel {
99
+ /* The popover UA stylesheet sets `inset: 0; margin: auto`: reset both for anchored placement. */
100
+ inset: auto;
101
+ margin: 4px 0;
102
+ min-inline-size: 12rem;
103
+ padding: 6px;
104
+ border: 1px solid var(--color-border);
105
+ border-radius: 10px;
106
+ background: var(--color-bg);
107
+ color: var(--color-text);
108
+ box-shadow: 0 12px 40px rgb(0 0 0 / 0.2);
109
+ opacity: 0;
110
+ translate: 0 -4px;
111
+ transition:
112
+ opacity 0.15s,
113
+ translate 0.15s,
114
+ display 0.15s allow-discrete,
115
+ overlay 0.15s allow-discrete;
116
+ }
117
+
118
+ .demo-nav-panel:popover-open {
119
+ opacity: 1;
120
+ translate: 0;
121
+ }
122
+
123
+ @starting-style {
124
+ .demo-nav-panel:popover-open {
125
+ opacity: 0;
126
+ translate: 0 -4px;
127
+ }
128
+ }
129
+
130
+ ::view-transition-group(.demo-nav-panel) {
131
+ animation-duration: 0.2s;
132
+ }
133
+
134
+ .demo-nav-links {
135
+ margin: 0;
136
+ padding: 0;
137
+ list-style: none;
138
+ }
139
+
140
+ .demo-nav-links a {
141
+ display: block;
142
+ padding: 0.35em 0.6em;
143
+ border-radius: 6px;
144
+ color: inherit;
145
+ text-decoration: none;
146
+ }
147
+
148
+ .demo-nav-links a:hover,
149
+ .demo-nav-links a:focus-visible {
150
+ background: var(--color-bg-secondary);
151
+ }
152
+
153
+ .demo-nav [aria-current="page"] {
154
+ font-weight: 600;
155
+ }
156
+ ```
157
+
158
+ This example is a Server Component. Open a panel and press Tab: focus enters the panel's links, and leaving the last one closes it. Opening the other panel closes the first one; Escape and a click outside close it too. The links point at sections of this page.
159
+
160
+ ## Anatomy
161
+
162
+ ```tsx
163
+ import { NavigationMenu } from "@funstack/ui/navigation-menu";
164
+
165
+ <NavigationMenu.Root aria-label="Main"> {/* nav */}
166
+ <NavigationMenu.List> {/* ul[role=list] */}
167
+ <NavigationMenu.Item> {/* li; owns one panel */}
168
+ <NavigationMenu.Trigger>Products</NavigationMenu.Trigger> {/* button[popovertarget] */}
169
+ <NavigationMenu.Popup> {/* div[popover=auto] */}
170
+ <ul>
171
+ <li><NavigationMenu.Link href="/analytics">Analytics</NavigationMenu.Link></li>
172
+ <li><NavigationMenu.Link href="/billing">Billing</NavigationMenu.Link></li>
173
+ </ul>
174
+ </NavigationMenu.Popup>
175
+ </NavigationMenu.Item>
176
+ <NavigationMenu.Item>
177
+ <NavigationMenu.Link href="/pricing" aria-current="page">Pricing</NavigationMenu.Link>
178
+ </NavigationMenu.Item>
179
+ </NavigationMenu.List>
180
+ </NavigationMenu.Root>
181
+ ```
182
+
183
+ - **Render the Popup immediately after its Trigger**, in the same Item. Every engine then puts the panel's links right after the Trigger in the Tab order (Safari only when the two are adjacent). Development warns otherwise. One Trigger and one Popup per Item.
184
+ - **The Item owns the open state**, with the props of a [Popover.Root](popover.md). There is no state on the Root: the platform keeps the panels exclusive, because sibling `auto` popovers close each other.
185
+ - **Root and List are structure**: the `nav` landmark (name it when the page has more than one) and a list with an explicit `role="list"`, which keeps its list semantics in Safari under `list-style: none`. Both are directive-free; Item, Trigger, Popup and Link are client components with serialisable props, so the whole navigation can be written in a Server Component.
186
+ - An Item with only a Link in it is a plain `li`: a top-level entry.
187
+
188
+ ## How it works
189
+
190
+ An Item with none of `open`, `defaultOpen`, `openChangeAction` and `onOpenChange` runs in **JS-free mode**: the browser toggles the panel and the content is always mounted. Any of them selects **library mode**: the Trigger's click is a request awaited in the Item's transition, the content mounts on open, and the closes the browser performs are facts. The mode is fixed at mount, and the two can be mixed in one navigation.
191
+
192
+ | Close | Who | Library mode channel | \`reason\` |
193
+ | - | - | - | - |
194
+ | Trigger click while open | the browser (JS-free); the library (library mode) | `openChangeAction(false)`, awaited with the panel still shown | `"activate"` |
195
+ | A followed Link inside the panel | the library, after hydration | `openChangeAction(false)`, awaited | `"activate"` |
196
+ | Escape (focus returns to the Trigger) | the browser | `onOpenChange(false)` | `"dismiss"` |
197
+ | A press outside | the browser | `onOpenChange(false)` | `"dismiss"` |
198
+ | Another panel (or any other `auto` popover) opening | the browser | `onOpenChange(false)` | `"dismiss"` |
199
+ | Focus leaving the Item (Tab past the last link) | the library, after hydration | `onOpenChange(false)`; while the open is still pending, `openChangeAction(false)` | `"dismiss"` |
200
+ | Controlled `open={false}` | the library | none | – |
201
+
202
+ - **Opens on a click only** (Enter and Space are the native click), never on hover: touch has no hover, and a button that opens on hover and toggles on click closes the panel under a user who hovers and then clicks. A hover preview is a [HoverCard](hover-card.md).
203
+ - **Focus leaving the Item** to an element outside it closes the panel at once (a null `relatedTarget`, such as a window blur, closes nothing). Without it, a keyboard user who tabs past a panel would leave it open over the page. It needs the hydrated component; before hydration a panel stays open until Escape, a click outside or another panel.
204
+ - **Use JS-free mode for a site's navigation.** Library mode is for a panel whose content is worth loading late (recently viewed pages, an account panel) or whose open state the app needs to know.
205
+
206
+ ## Links
207
+
208
+ ```tsx
209
+ <NavigationMenu.Link href="/pricing" aria-current="page">Pricing</NavigationMenu.Link>
210
+ <NavigationMenu.Link render={<RouterLink to="/analytics" />}>Analytics</NavigationMenu.Link>
211
+ ```
212
+
213
+ - **Following a Link inside a panel closes the panel**: a click with the primary button and no modifier key. With a client-side router the navigation keeps the `nav` mounted, and a click inside a popover is not a light dismiss, so the panel would otherwise stay over the new page. A Ctrl-, Cmd-, Shift- or Alt-click (new tab, new window, download) and a middle click leave it open, so several links can be opened from one panel. The link's own attributes are not read: a plain click on a `target="_blank"` or a `download` link closes the panel too. `closeOnActivate={false}` opts a link out.
214
+ - **The panel closes right away, not with the new page.** In library mode the close is a request that settles as soon as `openChangeAction(false)` does; with a router that renders the next page in a transition (FUNSTACK Router, for one), the panel is gone before a page that loads its data commits, in a commit (and, with `transition`, a view transition) of its own. In JS-free mode it is a `hidePopover()` in the click.
215
+ - The close listener is attached to the element, so `onClick` stays yours and a router link's own click handling runs untouched (also when it prevents the default). When the panel closes, the browser returns focus from the link to the Trigger; where focus goes after the navigation is the router's business.
216
+ - **The current page** is the native `aria-current="page"`, which you set (the library does not know the URL) and style with `[aria-current="page"]`. A router link that sets it itself works through `render`.
217
+ - A Link outside a panel renders an `<a>` and nothing else.
218
+
219
+ ## Props
220
+
221
+ ### `NavigationMenu.Root`
222
+
223
+ | Prop | Type | Default | Description |
224
+ | - | - | - | - |
225
+ | `className` | `string \| ((state: NavigationMenuRootState) => string \| undefined)` | – | A class name, or a function of the part's state. |
226
+ | `style` | `CSSProperties \| ((state: NavigationMenuRootState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
227
+ | `children` | `ReactNode \| ((state: NavigationMenuRootState) => ReactNode)` | – | Content, or a function of the part's state. |
228
+ | `render` | `ReactElement \| ((props, state: NavigationMenuRootState) => ReactNode)` | – | Replace the default \<nav> (element form) or take over rendering (function form). |
229
+
230
+ - **State**: `NavigationMenuRootState` is empty.
231
+ - **Owned**: nothing: every `<nav>` prop passes through. Name it with `aria-label` or `aria-labelledby`.
232
+
233
+ Directive-free: it reads no context and calls no hook.
234
+
235
+ ### `NavigationMenu.List`
236
+
237
+ | Prop | Type | Default | Description |
238
+ | - | - | - | - |
239
+ | `className` | `string \| ((state: NavigationMenuListState) => string \| undefined)` | – | A class name, or a function of the part's state. |
240
+ | `style` | `CSSProperties \| ((state: NavigationMenuListState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
241
+ | `children` | `ReactNode \| ((state: NavigationMenuListState) => ReactNode)` | – | Content, or a function of the part's state. |
242
+ | `render` | `ReactElement \| ((props, state: NavigationMenuListState) => ReactNode)` | – | Replace the default \<ul> (element form) or take over rendering (function form). |
243
+
244
+ - **State**: `NavigationMenuListState` is empty.
245
+ - **Owned**: nothing. `role="list"` is a default you can override.
246
+
247
+ Directive-free.
248
+
249
+ ### `NavigationMenu.Item`
250
+
251
+ | Prop | Type | Default | Description |
252
+ | - | - | - | - |
253
+ | `open` | `boolean` | – | Controlled open state of this Item's panel. Pass `onOpenChange` too: the browser closes the panel without asking (development warns). |
254
+ | `defaultOpen` | `boolean` | – | Initial open state in uncontrolled library mode. Shown after hydration, never in the server HTML. `defaultOpen={false}` alone selects library mode. |
255
+ | `openChangeAction` | `ChangeAction<boolean, NavigationMenuOpenChangeDetails>` | – | Requests only: the Trigger's toggle and a followed Link's close. Awaited in the Item's transition: the panel opens when it resolves and the content has rendered, and closes when a close resolves. May be a Server Function. A rejection reaches the nearest Error Boundary above the Item and the panel keeps its previous state. |
256
+ | `onOpenChange` | `UrgentChangeHandler<boolean, NavigationMenuOpenChangeDetails>` | – | Facts only: the panel was dismissed (Escape, a click outside, another panel opening, focus leaving the Item). Always `false`, with `reason: "dismiss"`. Called synchronously, outside any transition, not awaited. Controlled: set state directly here (`onOpenChange={setOpen}`). |
257
+ | `className` | `string \| ((state: NavigationMenuItemState) => string \| undefined)` | – | A class name, or a function of the part's state. |
258
+ | `style` | `CSSProperties \| ((state: NavigationMenuItemState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
259
+ | `children` | `ReactNode \| ((state: NavigationMenuItemState) => ReactNode)` | – | A Trigger and its Popup, or a Link. The function form receives the optimistic state. |
260
+ | `render` | `ReactElement \| ((props, state: NavigationMenuItemState) => ReactNode)` | – | Replace the default \<li> (element form) or take over rendering (function form). |
261
+
262
+ - **State**: `NavigationMenuItemState` is `{ open, pending }`; `open` is optimistic, both are `false` in JS-free mode. `NavigationMenuOpenChangeDetails` is `{ reason }` plus the virtual `event`: `"activate"` for the Trigger and a followed Link, `"dismiss"` for everything else, `"platform"` for a panel found open at hydration.
263
+ - **Owned**: nothing rendered: no attributes on the `<li>`.
264
+
265
+ The focus-leave listener is attached through the `ref`, so `onBlur` stays yours. Every `li` prop passes through.
266
+
267
+ ### `NavigationMenu.Trigger`
268
+
269
+ | Prop | Type | Default | Description |
270
+ | - | - | - | - |
271
+ | `disabled` | `boolean` | `false` | Never opens. Native `disabled` on a `<button>`; with a link or component `render` in library mode, `aria-disabled` (still focusable). |
272
+ | `className` | `string \| ((state: NavigationMenuTriggerState) => string \| undefined)` | – | A class name, or a function of the part's state. |
273
+ | `style` | `CSSProperties \| ((state: NavigationMenuTriggerState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
274
+ | `children` | `ReactNode \| ((state: NavigationMenuTriggerState) => ReactNode)` | – | Rendered from optimistic state; must not suspend. |
275
+ | `render` | `ReactElement \| ((props, state: NavigationMenuTriggerState) => ReactNode)` | – | Should render a `<button>`: only a button is a `popovertarget` invoker (another element works only in library mode). |
276
+
277
+ - **State**: `NavigationMenuTriggerState` is `{ open, pending, disabled }` (Popover.Trigger's).
278
+ - **Owned**: `type`, `disabled`, `popoverTarget`, `aria-expanded` (never rendered on a button: the browser exposes the panel's state on its invoker), `onClick` in library mode, `data-open`, `data-pending`, `data-disabled`; `commandfor`, `command` and `popoverTargetAction` are not accepted.
279
+
280
+ ### `NavigationMenu.Popup`
281
+
282
+ | Prop | Type | Default | Description |
283
+ | - | - | - | - |
284
+ | `side` | `"top" \| "bottom" \| "left" \| "right" \| "inline-start" \| "inline-end" \| null` | `"bottom"` | Placement against the Trigger through inline `position-area`, with `position-try-fallbacks` flipping it when it does not fit. `null` renders no placement (and no `data-side` / `data-align`), for a full-width panel your stylesheet places. |
285
+ | `align` | `"start" \| "center" \| "end"` | `"start"` | Alignment along the side; `start` / `end` are inline-relative on a top or bottom side (mirrored in RTL). |
286
+ | `keepMounted` | `boolean` | `false` | Library mode: keep the children rendered inside a hidden `<Activity>` while the panel is closed. Ignored in JS-free mode, where they are always mounted. |
287
+ | `transition` | `ViewTransitionClass` | – | Library mode only: a `<ViewTransition>` around the panel animates library-driven opens and closes (the Trigger, a followed Link, a controlled change). Dismissals animate with CSS. Static: changing it remounts the panel. |
288
+ | `className` | `string \| ((state: NavigationMenuPopupState) => string \| undefined)` | – | A class name, or a function of the part's state. |
289
+ | `style` | `CSSProperties \| ((state: NavigationMenuPopupState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
290
+ | `children` | `ReactNode \| ((state: NavigationMenuPopupState) => ReactNode)` | – | The panel's links. In library mode they render from committed state and may suspend. |
291
+ | `render` | `ReactElement \| ((props, state: NavigationMenuPopupState) => ReactNode)` | – | Replace the default \<div> (element form) or take over rendering (function form). |
292
+
293
+ - **State**: `NavigationMenuPopupState` is `{ open, side, align }`; `open` is committed (`false` in JS-free mode; `:popover-open` is the DOM truth); `side` / `align` are where the browser placed the panel while it is shown, your props otherwise.
294
+ - **Owned**: `id`, `popover` (`"auto"`), `data-side` / `data-align` (unless `side` is `null`).
295
+
296
+ No role: the disclosure pattern's panel is a plain region, and a `<div popover>` moves no focus when it opens. Pass `aria-label` and a `role` for a named region. `onToggle` and `onBeforeToggle` are not accepted; use a `ref`.
297
+
298
+ ### `NavigationMenu.Link`
299
+
300
+ | Prop | Type | Default | Description |
301
+ | - | - | - | - |
302
+ | `closeOnActivate` | `boolean` | `true` | Inside a Popup: following the link (primary button, no modifier key) closes the panel. Ignored outside a Popup. |
303
+ | `className` | `string \| ((state: NavigationMenuLinkState) => string \| undefined)` | – | A class name, or a function of the part's state. |
304
+ | `style` | `CSSProperties \| ((state: NavigationMenuLinkState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
305
+ | `children` | `ReactNode \| ((state: NavigationMenuLinkState) => ReactNode)` | – | Content, or a function of the part's state. |
306
+ | `render` | `ReactElement \| ((props, state: NavigationMenuLinkState) => ReactNode)` | – | Replace the `<a>`: a router's link component (`render={<Link to="/" />}`). |
307
+
308
+ - **State**: `NavigationMenuLinkState` is empty.
309
+ - **Owned**: nothing: every anchor prop passes through, `onClick` and `aria-current` included.
310
+
311
+ ## Data attributes
312
+
313
+ | Hook | On | Meaning |
314
+ | - | - | - |
315
+ | `:popover-open` | Popup | The panel is shown (DOM truth, every mode). |
316
+ | `data-open` | Trigger | Library mode: optimistic open state. JS-free mode: kept from the panel's `toggle` after hydration (use `:has(+ :popover-open)` before it). |
317
+ | `data-pending` | Trigger | Library mode: an open or a close is in flight. |
318
+ | `data-disabled` | Trigger | The `disabled` prop. |
319
+ | `data-side`, `data-align` | Popup | While shown: where the browser placed the panel (after any flip). Otherwise the requested placement. Absent with `side={null}`. |
320
+ | `[aria-current="page"]` | Link | Yours: the current page's link. |
321
+
322
+ ## Keyboard and ARIA
323
+
324
+ | Key | Where | Behaviour |
325
+ | - | - | - |
326
+ | Tab / Shift+Tab | anywhere | The document's order: a Trigger, then its open panel's links, then the next entry. Tab past the last link closes the panel behind |
327
+ | Enter, Space | Trigger | Toggle the panel; focus stays on the Trigger |
328
+ | Enter | Link | Follow it; the panel closes |
329
+ | Escape | Trigger or panel, panel open | Close; focus returns to the Trigger |
330
+
331
+ - **Opening moves no focus**: the user who pressed Enter on "Products" is still on it, and Tab enters the panel. There is no `initialFocus`.
332
+ - **No arrow keys**, so the keyboard works the same before and after hydration. The Trigger has no `aria-expanded` and no `aria-controls`: every engine exposes the popover's expanded state on its `popovertarget` invoker.
333
+ - **Not a menu**: no `menu` / `menuitem` roles. The WAI ARIA Authoring Practices recommend the disclosure pattern for site navigation; an application menu of commands is a [Menu](menu.md).
334
+
335
+ ## Transition types
336
+
337
+ Concept: [Transitions & ViewTransition](../concepts/transitions.md#transition-types)
338
+
339
+ Library mode: `fsui-navigation-menu` plus `fsui-navigation-menu-open` or `fsui-navigation-menu-close` for the Trigger's toggle and a followed Link's close. Dismissals are facts and start no transition. JS-free mode starts none.
340
+
341
+ > **With a router's view transitions**
342
+ >
343
+ > A Link's close and a router's navigation are two transitions that commit separately. Where the router adds its own transition type (FUNSTACK Router's `navigation`) before it awaits the navigation, React may attach that type to the panel's close commit, the next transition to commit, and the page's commit then has none. If your page animation matches on that type, give the panel no `transition`. The router side is tracked in [#189](https://github.com/uhyo/funstack-ui/issues/189).
344
+
345
+ ## Optimistic and pending
346
+
347
+ Concept: [Pending & optimistic state](../concepts/pending-and-optimistic.md)
348
+
349
+ Library mode: from the click the Trigger has `data-open` (optimistic) and `data-pending`; the panel is hidden until `openChangeAction(true)` resolves and its content has rendered. A close through the Trigger or a Link keeps the panel shown until `openChangeAction(false)` settles. Dismissals pend nothing.
350
+
351
+ ```tsx title="NavigationMenuRecent.tsx"
352
+ "use client";
353
+ import { use, useState } from "react";
354
+ import { NavigationMenu } from "@funstack/ui/navigation-menu";
355
+ import type { NavigationMenuOpenChangeDetails } from "@funstack/ui/navigation-menu";
356
+ import { sleep } from "./fake-api.js";
357
+
358
+ // A library-mode Item: `openChangeAction` selects it. The panel's content reads a promise with
359
+ // `use()`, so the first open suspends: the Trigger shows data-open and data-pending, the panel
360
+ // appears when the pages have loaded, with a view transition (`transition`). Tab away while it
361
+ // loads and the open is cancelled. The first panel is JS-free; opening one closes the other.
362
+ let recent: Promise<readonly string[]> | null = null;
363
+ function loadRecent(): Promise<readonly string[]> {
364
+ recent ??= sleep(1500).then(() => ["Quarterly report", "Invoices", "Team settings"]);
365
+ return recent;
366
+ }
367
+
368
+ function RecentPages() {
369
+ const pages = use(loadRecent());
370
+ return (
371
+ <ul className="demo-nav-links">
372
+ {pages.map((page) => (
373
+ <li key={page}>
374
+ <NavigationMenu.Link href="#suspense">{page}</NavigationMenu.Link>
375
+ </li>
376
+ ))}
377
+ </ul>
378
+ );
379
+ }
380
+
381
+ export function NavigationMenuRecent() {
382
+ const [log, setLog] = useState("(none yet)");
383
+ const request = (open: boolean, { reason }: NavigationMenuOpenChangeDetails) => {
384
+ setLog(`openChangeAction(${open}, "${reason}")`);
385
+ };
386
+ // A fact: Escape, a click outside, another panel opening, focus leaving the Item.
387
+ const dismissed = (open: boolean, { reason }: NavigationMenuOpenChangeDetails) => {
388
+ setLog(`onOpenChange(${open}, "${reason}")`);
389
+ };
390
+ return (
391
+ <div className="demo-stack">
392
+ <NavigationMenu.Root aria-label="Workspace" className="demo-nav">
393
+ <NavigationMenu.List className="demo-nav-list">
394
+ <NavigationMenu.Item>
395
+ <NavigationMenu.Trigger className="demo-nav-trigger">Products</NavigationMenu.Trigger>
396
+ <NavigationMenu.Popup className="demo-nav-panel">
397
+ <ul className="demo-nav-links">
398
+ <li>
399
+ <NavigationMenu.Link href="#suspense">Analytics</NavigationMenu.Link>
400
+ </li>
401
+ <li>
402
+ <NavigationMenu.Link href="#suspense">Billing</NavigationMenu.Link>
403
+ </li>
404
+ </ul>
405
+ </NavigationMenu.Popup>
406
+ </NavigationMenu.Item>
407
+ <NavigationMenu.Item openChangeAction={request} onOpenChange={dismissed}>
408
+ <NavigationMenu.Trigger className="demo-nav-trigger">
409
+ {({ pending }) => (
410
+ <>Recent{pending && <span className="demo-spinner" aria-hidden />}</>
411
+ )}
412
+ </NavigationMenu.Trigger>
413
+ <NavigationMenu.Popup className="demo-nav-panel" transition="demo-nav-panel">
414
+ <RecentPages />
415
+ </NavigationMenu.Popup>
416
+ </NavigationMenu.Item>
417
+ </NavigationMenu.List>
418
+ </NavigationMenu.Root>
419
+ <p className="demo-readout">
420
+ Last: <code>{log}</code>
421
+ </p>
422
+ </div>
423
+ );
424
+ }
425
+ ```
426
+
427
+ `navigation-menu.css`: the same file as above.
428
+
429
+ The first open of "Recent" waits 1.5 s for its pages: the Trigger shows a spinner, and the other panel stays open meanwhile. Tab away before it appears and the open is cancelled.
430
+
431
+ ## Suspense
432
+
433
+ Concept: [Suspense](../concepts/suspense.md)
434
+
435
+ Library mode: the Popup's children render from committed state, so content that suspends holds the open, with `data-pending` on the Trigger, and the panel appears complete. In JS-free mode nothing suspends on open: the content is part of the page and streams with it.
436
+
437
+ ```tsx
438
+ <NavigationMenu.Item openChangeAction={(open) => { if (open) preloadRecent(); }}>
439
+ <NavigationMenu.Trigger>Recent</NavigationMenu.Trigger>
440
+ <NavigationMenu.Popup transition="nav-panel">
441
+ <RecentPages /> {/* use(recent): the Trigger is data-pending until it resolves */}
442
+ </NavigationMenu.Popup>
443
+ </NavigationMenu.Item>
444
+ ```
445
+
446
+ ## Browser-owned state
447
+
448
+ Concept: [Browser-owned state](../concepts/browser-owned-state.md)
449
+
450
+ Each panel is an `auto` popover: the browser owns Escape, light dismiss and one panel at a time, and in JS-free mode the whole open state. In library mode a close the browser performs is a fact for `onOpenChange`; the focus-leave close is shaped the same way.
451
+
452
+ ## Before hydration
453
+
454
+ Concept: [Server Components](../concepts/server-components.md#before-hydration)
455
+
456
+ JS-free mode works completely before hydration and without JavaScript: open, close, Escape, light dismiss, one panel at a time, the Tab order, placement and CSS animation. Missing until hydration: the focus-leave close and the Link close. A library-mode Trigger pressed before hydration opens an empty panel, which fills when the page hydrates.
457
+
458
+ ## Recipes
459
+
460
+ ### Animation, with and without JavaScript
461
+
462
+ ```css
463
+ .nav-panel { opacity: 0; translate: 0 -4px; transition: opacity .15s, translate .15s, display .15s allow-discrete, overlay .15s allow-discrete; }
464
+ .nav-panel:popover-open { opacity: 1; translate: 0; }
465
+ @starting-style { .nav-panel:popover-open { opacity: 0; translate: 0 -4px; } }
466
+ .nav-trigger[data-open] { color: var(--accent); } /* after hydration */
467
+ .nav-trigger:has(+ :popover-open) { color: var(--accent); } /* without JavaScript */
468
+ [aria-current="page"] { font-weight: 600; }
469
+ ```
470
+
471
+ ### A full-width panel
472
+
473
+ ```tsx
474
+ <NavigationMenu.Popup side={null} className="mega-panel">…</NavigationMenu.Popup>
475
+ ```
476
+
477
+ ```css
478
+ .mega-panel { position: fixed; inset-inline: 0; top: anchor(bottom); margin: 0; }
479
+ ```
480
+
481
+ The implicit anchor (the Trigger) still applies. On small screens, put the same links in a different component, such as a [Drawer](drawer.md) or a [Collapsible](collapsible.md).
482
+
483
+ ### With a router
484
+
485
+ ```tsx
486
+ function NavLink({ to, children }) {
487
+ const { pathname } = useLocation();
488
+ return (
489
+ <NavigationMenu.Link href={to} aria-current={pathname === to ? "page" : undefined}>
490
+ {children}
491
+ </NavigationMenu.Link>
492
+ );
493
+ }
494
+ ```
495
+
496
+ ## Not included
497
+
498
+ - Opening on hover; arrow keys, Home and End between the top-level entries.
499
+ - A shared viewport that resizes between panels, an indicator under the active Trigger, an arrow, and a Root-level `value` naming the open Item: all need a Root-level owner. Moving from one panel to another is a dismissal and an open on two Items, so no single commit morphs one into the other.
500
+ - Nested flyouts (a panel inside a panel).
501
+ - A `current` prop on Link: use `aria-current="page"`.
@@ -265,7 +265,7 @@ export function NumberFieldFormats() {
265
265
  `number-field.css`: the same file as above.
266
266
 
267
267
  - `format` is `Intl.NumberFormatOptions`: `style` `"decimal"` (default), `"percent"` (the value is a fraction, `0.25` shows `25%`; default `step` `0.01`), `"currency"` and `"unit"`, plus fraction digits, grouping, sign display and numbering system.
268
- - **Pass `locale`**. The default is the runtime's locale (on the server and in the browser alike); a development warning fires when the page's `lang` disagrees and no `locale` was given.
268
+ - **Pass `locale`**. The default is the runtime's locale (on the server and in the browser alike); a development warning fires when the page's `lang` disagrees and no `locale` was given. There is no locale provider: [Direction and locales](../concepts/direction-and-locales.md#locale) shows how to pass your i18n library's locale once.
269
269
  - The parser accepts what the formatter produces: the locale's decimal and group separators and digits (Arabic-Indic, Devanagari, full-width), the currency or unit in any spelling (`€`, `EUR`, `euros`), a leading or trailing minus, U+2212 and accounting parentheses. **Grouping is strict**: a group separator must sit before the decimal separator and be followed by a whole group, so `1,5` in English is not 15 and `1.5` in German is not 15; the text reverts instead of silently becoming ten times larger.
270
270
  - The committed value is **rounded to what the text shows** (the format's maximum fraction digits): `1.999` in a euro field commits `2` and shows `2,00 €`, so what the user sees is what the form posts. Stepped values are rounded the same way (a `step` finer than the format cannot post a digit the text hides). Set `maximumFractionDigits` higher for more precision. `notation: "compact"` cannot be parsed back and logs a development warning.
271
271
 
@@ -370,7 +370,7 @@ Must stay a `<label>`: it names the visible input through `for` and, through its
370
370
  .number-field:has(.input:focus-visible) { outline: 2px solid var(--accent); }
371
371
  ```
372
372
 
373
- The buttons' order is your markup's: an RTL page places `Decrement` first in source if it wants it at the inline start.
373
+ The buttons' order is your markup's: an RTL page places `Decrement` first in source if it wants it at the inline start. Direction never changes the keys (ArrowUp / ArrowDown only) and the locale never sets the direction; see [Direction and locales](../concepts/direction-and-locales.md).
374
374
 
375
375
  ## Keyboard and ARIA
376
376
 
@@ -265,6 +265,7 @@ The browser performs every edit; in each `input` event the library reads the res
265
265
  | `required` | `boolean` | `false` | On the Input: an empty field is `valueMissing`. Or the Field's. |
266
266
  | `disabled` | `boolean` | `false` | On the Input (not submitted). Or the Field's. |
267
267
  | `readOnly` | `boolean` | `false` | Native `readonly` on the Input: no edits and no completion. |
268
+ | `dir` | `string` | `"ltr"` | The native attribute, with a library default: a code is read left to right in every locale, so the Slots, the text and the caret keys stay left to right inside an RTL page. Your value (`rtl`, `auto`) wins, on the Root or on a `render` element. See [Right-to-left pages](#right-to-left-pages). |
268
269
  | `experimental_webOTP` | `boolean` | `false` | Ask the browser for the code of an origin-bound SMS while the Input is mounted ([WebOTP](#webotp)). Chromium and Safari; does nothing in Firefox. |
269
270
  | `className` | `string \| ((state: OTPFieldState) => string \| undefined)` | – | A class name, or a function of the part's state. |
270
271
  | `style` | `CSSProperties \| ((state: OTPFieldState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
@@ -272,7 +273,7 @@ The browser performs every edit; in each `input` event the library reads the res
272
273
  | `render` | `ReactElement \| ((props, state: OTPFieldState) => ReactNode)` | – | Replace the default \<div> (element form) or take over rendering (function form). |
273
274
 
274
275
  - **State**: `OTPFieldState` is `{ value, length, complete, pending, disabled, readOnly, invalid }`: `value` is the filtered text, `complete` is `value.length === length`, `pending` is a `completeAction` in flight, `invalid` an error shown by an enclosing Field (`false` outside one).
275
- - **Owned**: `data-complete`, `data-pending`, `data-disabled`, `data-invalid` (inside a Field), and `position` in `style` (`relative`) unless your style sets it.
276
+ - **Owned**: `data-complete`, `data-pending`, `data-disabled`, `data-invalid` (inside a Field), and `position` in `style` (`relative`) unless your style sets it. `dir` defaults to `"ltr"`; yours wins.
276
277
 
277
278
  Both details objects are `{ reason, event }`. `onValueChange`: `"activate"` for an edit (`event` is the `input` event, or the `compositionend` that ended a composition), `"platform"` for a form reset (the `reset` event), text found at hydration and a WebOTP fill (`undefined`). `completeAction`: `"activate"` for an edit, `"platform"` for a WebOTP fill. Serialisable: a Server Function receives `{ reason }`.
278
279
 
@@ -354,6 +355,12 @@ Both details objects are `{ reason, event }`. `onValueChange`: `"activate"` for
354
355
  - Pending is visual (`data-pending`). The answer is your content: a Field error through `aria-describedby` and the Form's focus move, or your own `role="status"` message, as in the example.
355
356
  - A programmatic write clears the browser's undo history for the input.
356
357
 
358
+ ### Right-to-left pages
359
+
360
+ A one-time code is read left to right in Arabic and Hebrew too, so `OTPField.Root` renders `dir="ltr"` unless you pass `dir`. Inside a `dir="rtl"` page Slot 0 stays the leftmost box, ArrowLeft moves to the previous character, and your logical CSS (`margin-inline-start`, a separator between groups) inside the Root resolves as left to right. The label, the description and the error message are outside the Root and follow the page. The attribute is in the server HTML, so it holds before hydration.
361
+
362
+ Without it the boxes would mirror (Slot 0 at the right) while the one input's text stays a left-to-right run, and the engines disagree on which way the arrow keys then move the caret. Pass `dir="rtl"` only for a code that really is read right to left; there is no value meaning "follow the page". More in [Direction and locales](../concepts/direction-and-locales.md).
363
+
357
364
  ## Transition types
358
365
 
359
366
  Concept: [Transitions & ViewTransition](../concepts/transitions.md#transition-types)
@@ -279,15 +279,15 @@ A click on a `<button>` Trigger while open is a part's close; a second click dur
279
279
 
280
280
  | Prop | Type | Default | Description |
281
281
  | - | - | - | - |
282
- | `action` | `Action<[details: ActionDetails]>` | – | Runs in this button's own transition (`data-pending` on it), then closes the popover: in library mode through the Root (`openChangeAction(false)` awaited, view transition if set), in JS-free mode with `hidePopover()`. A rejection reaches the nearest Error Boundary above the button and leaves the popover open. A second click while it is pending is ignored, and the button is `aria-disabled="true"` meanwhile, unless `whilePending` is `"run"`. With `action` the button renders no `commandfor` / `command`, so a click before hydration does nothing (rather than hiding the popover without running the action). Without `action` in JS-free mode the button is a native `command="hide-popover"` invoker. |
283
- | `whilePending` | `"run" \| "ignore"` | `"ignore"` | What a click, Enter or Space does while this part's `action` is pending. `"ignore"`: nothing (the click is cancelled, `aria-disabled="true"` meanwhile). `"run"`: the action runs again (`data-pending` until every run has settled, no `aria-disabled`); the popover closes once the last run has settled, and only if the latest run resolved: a rejection leaves it open in both modes. No effect without `action`. See [A second click while pending](../concepts/pending-and-optimistic.md#second-click). |
282
+ | `action` | `Action<[details: ActionDetails]>` | – | Runs in this button's own transition (`data-pending` on it), then closes the popover: in library mode through the Root (`openChangeAction(false)` awaited, view transition if set), in JS-free mode with `hidePopover()`. A rejection reaches the nearest Error Boundary above the button and leaves the popover open. A second click while it is pending is ignored, and the button is `aria-disabled="true"` meanwhile, unless `whilePending` is `"run"`. With `action` the button renders no `commandfor` / `command`, so a click before hydration does nothing (rather than hiding the popover without running the action). Without `action` in JS-free mode the button is a native `command="hide-popover"` invoker; in library mode it asks the Root and is pending until that close has committed. |
283
+ | `whilePending` | `"run" \| "ignore"` | `"ignore"` | What a click, Enter or Space does while this part's `action` is pending. `"ignore"`: nothing (the click is cancelled, `aria-disabled="true"` meanwhile). `"run"`: the action runs again (`data-pending` until every run has settled, no `aria-disabled`); the popover closes once the last run has settled, and only if the latest run resolved: a rejection leaves it open in both modes. No effect without `action`: the part then shows `data-pending` while the Root's close waits, never `aria-disabled`. See [A second click while pending](../concepts/pending-and-optimistic.md#second-click). |
284
284
  | `disabled` | `boolean` | `false` | Native `disabled`; owned, so a `render` element cannot re-enable it. With a link or component `render` where the Close handles the click (library mode, or with `action`), `aria-disabled="true"` instead (the element stays focusable). A host link is `aria-disabled` in every mode (it cannot be natively disabled), and its click is cancelled. |
285
285
  | `className` | `string \| ((state: PopoverCloseState) => string \| undefined)` | – | A class name, or a function of the part's state. |
286
286
  | `style` | `CSSProperties \| ((state: PopoverCloseState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
287
287
  | `children` | `ReactNode \| ((state: PopoverCloseState) => ReactNode)` | – | Content, or a function of the part's state. |
288
288
  | `render` | `ReactElement \| ((props, state: PopoverCloseState) => ReactNode)` | – | Replace the default \<button> (element form) or take over rendering (function form). |
289
289
 
290
- - **State**: `PopoverCloseState` is `{ pending, disabled }`.
290
+ - **State**: `PopoverCloseState` is `{ pending, disabled }`; `pending` runs from the click until the close this part asked for has committed, with or without `action` (library mode).
291
291
  - **Owned**: `type` (on a `<button>` only), `disabled`, `aria-disabled`, `commandfor`, `command` (not with `action`, and not on a link or other non-button host element), `onClick` (library mode, or with `action`), `data-pending`, `data-disabled`; a `render` element cannot re-enable a disabled Close.
292
292
 
293
293
  In library mode the click is always intercepted, so every Close goes through the Root. By default (`whilePending="ignore"`) a second click while the action is pending is ignored (and cancelled), and the button is `aria-disabled="true"` for as long as it shows `data-pending` (the action and the hide); never natively disabled, so it keeps focus. To hide at once and finish the work in the background, do not return the promise: `action={() => { void apply(); }}`. If the user dismisses the popover and opens it again while the action runs, the action's close is dropped: it belonged to the earlier open. Popovers have no return value.
@@ -315,8 +315,8 @@ A dialog-role Popup with neither a Title nor an `aria-label` is a development wa
315
315
  | `aria-expanded` | Trigger, only when it is no [invoker](../concepts/browser-owned-state.md#popup-triggers): a link or other non-button element, or a disabled component `render` | Whether the popup is shown (library mode). A `<button>` Trigger has none: the browser exposes the state. |
316
316
  | `data-open` | Trigger | Library mode: optimistic open state. JS-free mode: whether the popup is shown, written from its `toggle` event. |
317
317
  | `data-pending` | Trigger | An open or a part-initiated close is in flight (library mode only). A dismissal never pends, but a request still running when a dismissal superseded it keeps it until that request settles. |
318
- | `data-pending` | Close | Its `action` is in flight. |
319
- | `aria-disabled` | Close | `"true"` while `data-pending` with `whilePending="ignore"` (the default): a second click is ignored meanwhile. |
318
+ | `data-pending` | Close | From the click until the close it asked for has committed: its `action`, then the Root's close (library mode, also without `action`). |
319
+ | `aria-disabled` | Close | `"true"` with `action`, while `data-pending` with `whilePending="ignore"` (the default): a second click is ignored meanwhile. |
320
320
  | `data-disabled` | Trigger, Close | The `disabled` prop (both modes). |
321
321
 
322
322
  ## Keyboard and ARIA
@@ -363,7 +363,7 @@ With `transition`, the Popup renders `<ViewTransition>` around the popover eleme
363
363
 
364
364
  Concept: [Pending & optimistic state](../concepts/pending-and-optimistic.md)
365
365
 
366
- Library mode: the Trigger shows the optimistic open state (`data-open`) and `data-pending` while an open or a part's close is in flight. A dismissal is a fact: the popup, `data-open`, the committed `open` and the expanded state assistive technology hears all change at once, and nothing is pending. The Popup's content renders from the committed `open`. A Close with an `action` is a [pure trigger](../concepts/pending-and-optimistic.md#pure-trigger).
366
+ Library mode: the Trigger shows the optimistic open state (`data-open`) and `data-pending` while an open or a part's close is in flight. A dismissal is a fact: the popup, `data-open`, the committed `open` and the expanded state assistive technology hears all change at once, and nothing is pending. The Popup's content renders from the committed `open`. A Close with an `action` is a [pure trigger](../concepts/pending-and-optimistic.md#pure-trigger). Every Close shows `data-pending` from the click until the close it asked for has committed; without `action` it is never `aria-disabled`.
367
367
 
368
368
  ### Walkthrough (library mode)
369
369
 
@@ -214,7 +214,7 @@ import { Progress } from "@funstack/ui/progress";
214
214
  | `min` | `number` | `0` | The start of the range. |
215
215
  | `max` | `number` | `100` | The end of the range (the platform's default is 1). `max <= min` warns in development and renders 0%, never complete. |
216
216
  | `format` | `Intl.NumberFormatOptions` | `{ style: "percent" }` | Formats `aria-valuetext` and `Progress.Value`. A `percent` style formats the **fraction** of the range; any other style formats the **value** (`{ style: "unit", unit: "megabyte" }` → "3.2 MB"). Serialisable: a Server Component may pass it. |
217
- | `locale` | `string` | `the runtime's` | BCP 47 tag for `Intl.NumberFormat`. Pass it when a client component is server-rendered, so the server's and the browser's text agree at hydration. Under React Server Components the Root runs once and there is nothing to mismatch. |
217
+ | `locale` | `string \| readonly string[]` | `the runtime's` | BCP 47 tag, or a preference list of tags, for `Intl.NumberFormat` (the type every Root that formats takes; see [Direction and locales](../concepts/direction-and-locales.md)). Pass it when a client component is server-rendered, so the server's and the browser's text agree at hydration. Under React Server Components the Root runs once and there is nothing to mismatch. |
218
218
  | `getAriaValueText` | `(value: number \| null, state: ProgressState) => string \| null \| undefined` | – | The `aria-valuetext` to render instead of `formattedValue`. Called with the clamped value (`null` while indeterminate) and the state as it would be without this prop; `null` or `undefined` renders no attribute. From a Server Component it works when that Server Component renders the Root. |
219
219
  | `className` | `string \| ((state: ProgressState) => string \| undefined)` | – | A class name, or a function of the part's state. |
220
220
  | `style` | `CSSProperties \| ((state: ProgressState) => CSSProperties \| undefined)` | – | Inline style, or a function of the part's state. |
@@ -243,7 +243,7 @@ Everything here is the browser's; the library installs no key handler.
243
243
  | Enter | Submits the form (implicit submission). | no |
244
244
 
245
245
  - No Home/End (not in the APG Radio Group pattern) and no `orientation` prop: native radios honour all four arrows whatever the layout.
246
- - Safari (WebKit) neither wraps at the ends of the group nor mirrors ArrowLeft / ArrowRight under RTL: Right and Down always go to the next radio in document order, Left and Up to the previous one, and a press past the end does nothing (and dispatches nothing). This is the platform's behaviour; the library deliberately adds no key handler to change it.
246
+ - Safari (WebKit) neither wraps at the ends of the group nor mirrors ArrowLeft / ArrowRight under RTL: Right and Down always go to the next radio in document order, Left and Up to the previous one, and a press past the end does nothing (and dispatches nothing). This is the platform's behaviour; the library deliberately adds no key handler to change it (see [Direction and locales](../concepts/direction-and-locales.md)).
247
247
  - The checked state assistive technology reads is the optimistic one, so a new choice is announced at once. A rollback is silent; add an `aria-live` region if a slow action may fail.
248
248
  - The library never moves focus, not even on rollback: focus stays on the radio the user reached, and the checked radio is the group's tab stop again.
249
249
  - No `aria-checked` (forbidden on native inputs) and no `tabindex` (the browser does the roving).
@@ -344,7 +344,7 @@ Every key is the browser's, except ArrowLeft / ArrowRight on vertical and on RTL
344
344
  | Home / End | the thumb's min / max (its neighbour with several thumbs) | same |
345
345
  | Tab / Shift+Tab | between thumbs | same |
346
346
 
347
- - Each key press is one step and one commit. Firefox decreases a vertical range on ArrowRight; the library handles ArrowLeft / ArrowRight on vertical sliders so every engine follows the APG (Right increases). Under RTL (the input's computed `direction`) the track is mirrored, so ArrowLeft increases; Chromium and Firefox mirror a native range, Safari does not, so the library handles these two keys there as well. Left-to-right horizontal keys stay native.
347
+ - Each key press is one step and one commit. Firefox decreases a vertical range on ArrowRight; the library handles ArrowLeft / ArrowRight on vertical sliders so every engine follows the APG (Right increases). Under RTL (the input's computed `direction`) the track is mirrored, so ArrowLeft increases; Chromium and Firefox mirror a native range, Safari does not, so the library handles these two keys there as well. Left-to-right horizontal keys stay native. Set the direction with `dir` on the page, a container or the Root; there is no provider ([Direction and locales](../concepts/direction-and-locales.md)).
348
348
  - No `aria-valuemin`, `aria-valuemax`, `aria-valuenow` or `aria-orientation`: the native `min`, `max`, value and writing mode provide them (Chromium even lets the ARIA ones override the real values).
349
349
  - A pointer press focuses the input without a focus ring, as on a native range; the page still scrolls along the other axis (`touch-action`).
350
350