@base-ui/react 1.2.0 → 1.4.0

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 (1702) hide show
  1. package/CHANGELOG.md +279 -1
  2. package/accordion/header/AccordionHeader.d.ts +4 -2
  3. package/accordion/header/AccordionHeader.js +1 -0
  4. package/accordion/item/AccordionItem.d.ts +10 -4
  5. package/accordion/item/AccordionItem.js +1 -0
  6. package/accordion/item/AccordionItemContext.d.ts +2 -2
  7. package/accordion/item/stateAttributesMapping.d.ts +2 -2
  8. package/accordion/panel/AccordionPanel.d.ts +6 -3
  9. package/accordion/panel/AccordionPanel.js +2 -1
  10. package/accordion/root/AccordionRoot.d.ts +20 -11
  11. package/accordion/root/AccordionRoot.js +1 -0
  12. package/accordion/root/AccordionRootContext.d.ts +7 -7
  13. package/accordion/trigger/AccordionTrigger.d.ts +4 -2
  14. package/accordion/trigger/AccordionTrigger.js +5 -2
  15. package/alert-dialog/index.d.ts +9 -1
  16. package/alert-dialog/root/AlertDialogRoot.d.ts +3 -1
  17. package/alert-dialog/root/AlertDialogRoot.js +22 -20
  18. package/autocomplete/clear/AutocompleteClearDataAttributes.d.ts +1 -0
  19. package/autocomplete/clear/AutocompleteClearDataAttributes.js +12 -0
  20. package/autocomplete/index.d.ts +8 -4
  21. package/autocomplete/index.parts.d.ts +3 -2
  22. package/autocomplete/index.parts.js +11 -4
  23. package/autocomplete/input-group/AutocompleteInputGroup.d.ts +41 -0
  24. package/autocomplete/input-group/AutocompleteInputGroup.js +15 -0
  25. package/autocomplete/input-group/AutocompleteInputGroupDataAttributes.d.ts +51 -0
  26. package/autocomplete/input-group/AutocompleteInputGroupDataAttributes.js +58 -0
  27. package/autocomplete/item/AutocompleteItem.d.ts +48 -0
  28. package/autocomplete/item/AutocompleteItem.js +15 -0
  29. package/autocomplete/item/AutocompleteItemDataAttributes.d.ts +10 -0
  30. package/autocomplete/item/AutocompleteItemDataAttributes.js +18 -0
  31. package/autocomplete/root/AutocompleteRoot.d.ts +4 -4
  32. package/autocomplete/root/AutocompleteRoot.js +4 -1
  33. package/autocomplete/trigger/AutocompleteTrigger.d.ts +43 -0
  34. package/autocomplete/trigger/AutocompleteTrigger.js +15 -0
  35. package/autocomplete/trigger/AutocompleteTriggerDataAttributes.d.ts +55 -0
  36. package/autocomplete/trigger/AutocompleteTriggerDataAttributes.js +63 -0
  37. package/avatar/fallback/AvatarFallback.d.ts +3 -6
  38. package/avatar/fallback/AvatarFallback.js +5 -32
  39. package/avatar/image/AvatarImage.d.ts +6 -3
  40. package/avatar/image/AvatarImage.js +3 -3
  41. package/avatar/image/AvatarImageDataAttributes.d.ts +10 -0
  42. package/avatar/image/AvatarImageDataAttributes.js +18 -0
  43. package/avatar/image/useImageLoadingStatus.js +5 -0
  44. package/avatar/root/AvatarRoot.d.ts +4 -1
  45. package/avatar/root/AvatarRoot.js +1 -0
  46. package/button/Button.js +1 -0
  47. package/calendar/day-button/CalendarDayButton.d.ts +47 -0
  48. package/calendar/day-button/CalendarDayButton.js +130 -0
  49. package/calendar/day-button/CalendarDayButtonDataAttributes.d.ts +22 -0
  50. package/calendar/day-button/CalendarDayButtonDataAttributes.js +29 -0
  51. package/calendar/day-grid/CalendarDayGrid.d.ts +15 -0
  52. package/calendar/day-grid/CalendarDayGrid.js +32 -0
  53. package/calendar/day-grid-body/CalendarDayGridBody.d.ts +16 -0
  54. package/calendar/day-grid-body/CalendarDayGridBody.js +53 -0
  55. package/calendar/day-grid-body/SharedCalendarDayGridBodyContext.d.ts +14 -0
  56. package/calendar/day-grid-body/SharedCalendarDayGridBodyContext.js +21 -0
  57. package/calendar/day-grid-body/useSharedCalendarDayGridBody.d.ts +45 -0
  58. package/calendar/day-grid-body/useSharedCalendarDayGridBody.js +285 -0
  59. package/calendar/day-grid-cell/CalendarDayGridCell.d.ts +16 -0
  60. package/calendar/day-grid-cell/CalendarDayGridCell.js +46 -0
  61. package/calendar/day-grid-cell/SharedCalendarDayGridCellContext.d.ts +22 -0
  62. package/calendar/day-grid-cell/SharedCalendarDayGridCellContext.js +21 -0
  63. package/calendar/day-grid-cell/useSharedCalendarDayGridCell.d.ts +17 -0
  64. package/calendar/day-grid-cell/useSharedCalendarDayGridCell.js +40 -0
  65. package/calendar/day-grid-header/CalendarDayGridHeader.d.ts +15 -0
  66. package/calendar/day-grid-header/CalendarDayGridHeader.js +32 -0
  67. package/calendar/day-grid-header-cell/CalendarDayGridHeaderCell.d.ts +25 -0
  68. package/calendar/day-grid-header-cell/CalendarDayGridHeaderCell.js +41 -0
  69. package/calendar/day-grid-header-row/CalendarDayGridHeaderRow.d.ts +22 -0
  70. package/calendar/day-grid-header-row/CalendarDayGridHeaderRow.js +47 -0
  71. package/calendar/day-grid-row/CalendarDayGridRow.d.ts +26 -0
  72. package/calendar/day-grid-row/CalendarDayGridRow.js +46 -0
  73. package/calendar/decrement-month/CalendarDecrementMonth.d.ts +20 -0
  74. package/calendar/decrement-month/CalendarDecrementMonth.js +80 -0
  75. package/calendar/decrement-month/CalendarDecrementMonthDataAttributes.d.ts +6 -0
  76. package/calendar/decrement-month/CalendarDecrementMonthDataAttributes.js +13 -0
  77. package/calendar/increment-month/CalendarIncrementMonth.d.ts +20 -0
  78. package/calendar/increment-month/CalendarIncrementMonth.js +79 -0
  79. package/calendar/increment-month/CalendarIncrementMonthDataAttributes.d.ts +6 -0
  80. package/calendar/increment-month/CalendarIncrementMonthDataAttributes.js +13 -0
  81. package/calendar/index.d.ts +14 -0
  82. package/calendar/index.js +9 -0
  83. package/calendar/index.parts.d.ts +15 -0
  84. package/calendar/index.parts.js +110 -0
  85. package/calendar/root/CalendarRoot.d.ts +36 -0
  86. package/calendar/root/CalendarRoot.js +147 -0
  87. package/calendar/root/CalendarRootDataAttributes.d.ts +23 -0
  88. package/calendar/root/CalendarRootDataAttributes.js +30 -0
  89. package/calendar/root/SharedCalendarRootContext.d.ts +5 -0
  90. package/calendar/root/SharedCalendarRootContext.js +21 -0
  91. package/calendar/store/SharedCalendarState.d.ts +78 -0
  92. package/calendar/store/SharedCalendarState.js +5 -0
  93. package/calendar/store/SharedCalendarStore.d.ts +144 -0
  94. package/calendar/store/SharedCalendarStore.js +144 -0
  95. package/calendar/store/index.d.ts +3 -0
  96. package/calendar/store/index.js +38 -0
  97. package/calendar/store/selectors.d.ts +104 -0
  98. package/calendar/store/selectors.js +198 -0
  99. package/calendar/use-context/CalendarContext.d.ts +6 -0
  100. package/calendar/use-context/CalendarContext.js +20 -0
  101. package/calendar/use-day-list/getDayList.d.ts +9 -0
  102. package/calendar/use-day-list/getDayList.js +40 -0
  103. package/calendar/use-day-list/useCalendarDayList.d.ts +12 -0
  104. package/calendar/use-day-list/useCalendarDayList.js +14 -0
  105. package/calendar/use-week-list/getWeekList.d.ts +9 -0
  106. package/calendar/use-week-list/getWeekList.js +40 -0
  107. package/calendar/use-week-list/useCalendarWeekList.d.ts +17 -0
  108. package/calendar/use-week-list/useCalendarWeekList.js +14 -0
  109. package/calendar/utils/computeMonthDayGrid.d.ts +6 -0
  110. package/calendar/utils/computeMonthDayGrid.js +22 -0
  111. package/calendar/utils/useCalendarMonthButton.d.ts +31 -0
  112. package/calendar/utils/useCalendarMonthButton.js +53 -0
  113. package/calendar/viewport/CalendarViewport.d.ts +30 -0
  114. package/calendar/viewport/CalendarViewport.js +171 -0
  115. package/calendar/viewport/CalendarViewportDataAttributes.d.ts +23 -0
  116. package/calendar/viewport/CalendarViewportDataAttributes.js +31 -0
  117. package/checkbox/indicator/CheckboxIndicator.d.ts +6 -3
  118. package/checkbox/indicator/CheckboxIndicator.js +1 -0
  119. package/checkbox/root/CheckboxRoot.d.ts +8 -3
  120. package/checkbox/root/CheckboxRoot.js +19 -11
  121. package/checkbox/root/CheckboxRootContext.d.ts +4 -4
  122. package/checkbox/utils/useStateAttributesMapping.d.ts +2 -2
  123. package/checkbox-group/CheckboxGroup.d.ts +3 -3
  124. package/checkbox-group/CheckboxGroup.js +13 -10
  125. package/checkbox-group/CheckboxGroupContext.d.ts +2 -2
  126. package/checkbox-group/useCheckboxGroupParent.d.ts +2 -5
  127. package/collapsible/panel/CollapsiblePanel.d.ts +7 -4
  128. package/collapsible/panel/CollapsiblePanel.js +2 -1
  129. package/collapsible/panel/useCollapsiblePanel.d.ts +6 -7
  130. package/collapsible/panel/useCollapsiblePanel.js +2 -4
  131. package/collapsible/root/CollapsibleRoot.d.ts +3 -3
  132. package/collapsible/root/CollapsibleRoot.js +1 -0
  133. package/collapsible/root/CollapsibleRootContext.d.ts +4 -4
  134. package/collapsible/root/stateAttributesMapping.d.ts +2 -2
  135. package/collapsible/root/useCollapsibleRoot.d.ts +6 -7
  136. package/collapsible/root/useCollapsibleRoot.js +5 -4
  137. package/collapsible/trigger/CollapsibleTrigger.d.ts +4 -2
  138. package/collapsible/trigger/CollapsibleTrigger.js +1 -0
  139. package/combobox/arrow/ComboboxArrow.d.ts +12 -1
  140. package/combobox/arrow/ComboboxArrow.js +3 -0
  141. package/combobox/backdrop/ComboboxBackdrop.d.ts +6 -1
  142. package/combobox/backdrop/ComboboxBackdrop.js +3 -0
  143. package/combobox/chip/ComboboxChip.d.ts +3 -1
  144. package/combobox/chip/ComboboxChip.js +4 -11
  145. package/combobox/chip-remove/ComboboxChipRemove.d.ts +3 -1
  146. package/combobox/chip-remove/ComboboxChipRemove.js +6 -0
  147. package/combobox/chips/ComboboxChips.d.ts +4 -2
  148. package/combobox/chips/ComboboxChips.js +9 -1
  149. package/combobox/clear/ComboboxClear.d.ts +6 -1
  150. package/combobox/clear/ComboboxClear.js +3 -0
  151. package/combobox/collection/ComboboxCollection.d.ts +4 -0
  152. package/combobox/collection/ComboboxCollection.js +2 -0
  153. package/combobox/empty/ComboboxEmpty.d.ts +7 -1
  154. package/combobox/empty/ComboboxEmpty.js +10 -1
  155. package/combobox/group/ComboboxGroup.d.ts +3 -1
  156. package/combobox/group/ComboboxGroup.js +3 -0
  157. package/combobox/group-label/ComboboxGroupLabel.d.ts +3 -1
  158. package/combobox/group-label/ComboboxGroupLabel.js +3 -0
  159. package/combobox/icon/ComboboxIcon.d.ts +3 -1
  160. package/combobox/icon/ComboboxIcon.js +3 -0
  161. package/combobox/index.d.ts +2 -0
  162. package/combobox/index.parts.d.ts +2 -0
  163. package/combobox/index.parts.js +14 -0
  164. package/combobox/input/ComboboxInput.d.ts +5 -3
  165. package/combobox/input/ComboboxInput.js +33 -9
  166. package/combobox/input-group/ComboboxInputGroup.d.ts +42 -0
  167. package/combobox/input-group/ComboboxInputGroup.js +77 -0
  168. package/combobox/input-group/ComboboxInputGroupDataAttributes.d.ts +55 -0
  169. package/combobox/input-group/ComboboxInputGroupDataAttributes.js +62 -0
  170. package/combobox/item/ComboboxItem.d.ts +3 -1
  171. package/combobox/item/ComboboxItem.js +10 -1
  172. package/combobox/item-indicator/ComboboxItemIndicator.d.ts +9 -1
  173. package/combobox/item-indicator/ComboboxItemIndicator.js +3 -0
  174. package/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.d.ts +10 -0
  175. package/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.js +18 -0
  176. package/combobox/label/ComboboxLabel.d.ts +16 -0
  177. package/combobox/label/ComboboxLabel.js +69 -0
  178. package/combobox/list/ComboboxList.d.ts +3 -1
  179. package/combobox/list/ComboboxList.js +8 -9
  180. package/combobox/popup/ComboboxPopup.d.ts +23 -3
  181. package/combobox/popup/ComboboxPopup.js +13 -2
  182. package/combobox/portal/ComboboxPortal.d.ts +5 -4
  183. package/combobox/portal/ComboboxPortal.js +2 -0
  184. package/combobox/positioner/ComboboxPositioner.d.ts +16 -2
  185. package/combobox/positioner/ComboboxPositioner.js +18 -35
  186. package/combobox/positioner/ComboboxPositionerContext.d.ts +2 -10
  187. package/combobox/root/AriaCombobox.d.ts +14 -8
  188. package/combobox/root/AriaCombobox.js +47 -26
  189. package/combobox/root/ComboboxRoot.d.ts +4 -4
  190. package/combobox/root/utils/useFilter.d.ts +9 -0
  191. package/combobox/row/ComboboxRow.d.ts +3 -1
  192. package/combobox/row/ComboboxRow.js +3 -0
  193. package/combobox/status/ComboboxStatus.d.ts +7 -1
  194. package/combobox/status/ComboboxStatus.js +12 -1
  195. package/combobox/store.d.ts +12 -18
  196. package/combobox/store.js +3 -14
  197. package/combobox/trigger/ComboboxTrigger.d.ts +5 -3
  198. package/combobox/trigger/ComboboxTrigger.js +9 -3
  199. package/combobox/utils/ComboboxInternalDismissButton.d.ts +5 -0
  200. package/combobox/utils/ComboboxInternalDismissButton.js +44 -0
  201. package/combobox/utils/handleInputPress.d.ts +5 -0
  202. package/combobox/utils/handleInputPress.js +28 -0
  203. package/combobox/utils/useInitialLiveRegionTextMutation.d.ts +3 -0
  204. package/combobox/utils/useInitialLiveRegionTextMutation.js +61 -0
  205. package/composite/composite.d.ts +2 -0
  206. package/composite/composite.js +3 -1
  207. package/composite/item/CompositeItem.d.ts +4 -2
  208. package/composite/item/CompositeItem.js +1 -0
  209. package/composite/list/CompositeList.d.ts +3 -1
  210. package/composite/list/useCompositeListItem.d.ts +1 -1
  211. package/composite/root/CompositeRoot.d.ts +8 -4
  212. package/composite/root/CompositeRoot.js +3 -0
  213. package/composite/root/useCompositeRoot.d.ts +2 -1
  214. package/composite/root/useCompositeRoot.js +30 -15
  215. package/context-menu/index.d.ts +1 -1
  216. package/context-menu/root/ContextMenuRoot.d.ts +3 -1
  217. package/context-menu/root/ContextMenuRoot.js +1 -1
  218. package/context-menu/trigger/ContextMenuTrigger.d.ts +3 -3
  219. package/context-menu/trigger/ContextMenuTrigger.js +4 -5
  220. package/dialog/backdrop/DialogBackdrop.d.ts +4 -1
  221. package/dialog/backdrop/DialogBackdrop.js +1 -0
  222. package/dialog/close/DialogClose.d.ts +1 -1
  223. package/dialog/close/DialogClose.js +1 -0
  224. package/dialog/description/DialogDescription.d.ts +1 -1
  225. package/dialog/description/DialogDescription.js +1 -0
  226. package/dialog/popup/DialogPopup.d.ts +6 -3
  227. package/dialog/popup/DialogPopup.js +1 -0
  228. package/dialog/portal/DialogPortal.d.ts +4 -5
  229. package/dialog/root/DialogRoot.d.ts +11 -5
  230. package/dialog/root/DialogRoot.js +24 -18
  231. package/dialog/root/useDialogRoot.d.ts +4 -7
  232. package/dialog/root/useDialogRoot.js +15 -14
  233. package/dialog/store/DialogStore.d.ts +4 -1
  234. package/dialog/store/DialogStore.js +11 -7
  235. package/dialog/title/DialogTitle.d.ts +1 -1
  236. package/dialog/title/DialogTitle.js +1 -0
  237. package/dialog/trigger/DialogTrigger.d.ts +1 -1
  238. package/dialog/trigger/DialogTrigger.js +1 -0
  239. package/dialog/viewport/DialogViewport.d.ts +3 -0
  240. package/dialog/viewport/DialogViewport.js +1 -0
  241. package/direction-provider/DirectionProvider.d.ts +2 -0
  242. package/drawer/backdrop/DrawerBackdrop.d.ts +4 -1
  243. package/drawer/backdrop/DrawerBackdrop.js +1 -0
  244. package/drawer/backdrop/DrawerBackdropDataAttributes.d.ts +18 -0
  245. package/drawer/backdrop/DrawerBackdropDataAttributes.js +26 -0
  246. package/drawer/close/DrawerClose.d.ts +1 -1
  247. package/drawer/content/DrawerContent.d.ts +1 -1
  248. package/drawer/content/DrawerContent.js +3 -1
  249. package/drawer/content/DrawerContentDataAttributes.d.ts +1 -0
  250. package/drawer/content/DrawerContentDataAttributes.js +7 -0
  251. package/drawer/description/DrawerDescription.d.ts +1 -1
  252. package/drawer/indent/DrawerIndent.d.ts +3 -2
  253. package/drawer/indent/DrawerIndent.js +3 -1
  254. package/drawer/indent-background/DrawerIndentBackground.d.ts +5 -3
  255. package/drawer/indent-background/DrawerIndentBackground.js +5 -2
  256. package/drawer/index.d.ts +2 -1
  257. package/drawer/index.js +3 -3
  258. package/drawer/index.parts.d.ts +1 -0
  259. package/drawer/index.parts.js +7 -0
  260. package/drawer/popup/DrawerPopup.d.ts +6 -3
  261. package/drawer/popup/DrawerPopup.js +76 -5
  262. package/drawer/popup/DrawerPopupDataAttributes.d.ts +16 -0
  263. package/drawer/popup/DrawerPopupDataAttributes.js +18 -1
  264. package/drawer/portal/DrawerPortal.d.ts +2 -2
  265. package/drawer/provider/DrawerProvider.d.ts +2 -2
  266. package/drawer/provider/DrawerProvider.js +2 -2
  267. package/drawer/root/DrawerRoot.d.ts +6 -4
  268. package/drawer/root/DrawerRoot.js +25 -16
  269. package/drawer/root/DrawerRootContext.d.ts +4 -4
  270. package/drawer/swipe-area/DrawerSwipeArea.d.ts +1 -1
  271. package/drawer/swipe-area/DrawerSwipeArea.js +29 -22
  272. package/drawer/swipe-area/DrawerSwipeAreaDataAttributes.d.ts +23 -0
  273. package/drawer/swipe-area/DrawerSwipeAreaDataAttributes.js +31 -0
  274. package/drawer/title/DrawerTitle.d.ts +1 -1
  275. package/drawer/trigger/DrawerTrigger.d.ts +1 -1
  276. package/drawer/viewport/DrawerViewport.d.ts +4 -1
  277. package/drawer/viewport/DrawerViewport.js +194 -60
  278. package/drawer/viewport/DrawerViewportDataAttributes.d.ts +22 -0
  279. package/drawer/viewport/DrawerViewportDataAttributes.js +30 -0
  280. package/esm/accordion/header/AccordionHeader.d.ts +4 -2
  281. package/esm/accordion/header/AccordionHeader.js +1 -0
  282. package/esm/accordion/item/AccordionItem.d.ts +10 -4
  283. package/esm/accordion/item/AccordionItem.js +1 -0
  284. package/esm/accordion/item/AccordionItemContext.d.ts +2 -2
  285. package/esm/accordion/item/stateAttributesMapping.d.ts +2 -2
  286. package/esm/accordion/panel/AccordionPanel.d.ts +6 -3
  287. package/esm/accordion/panel/AccordionPanel.js +2 -1
  288. package/esm/accordion/root/AccordionRoot.d.ts +20 -11
  289. package/esm/accordion/root/AccordionRoot.js +1 -0
  290. package/esm/accordion/root/AccordionRootContext.d.ts +7 -7
  291. package/esm/accordion/trigger/AccordionTrigger.d.ts +4 -2
  292. package/esm/accordion/trigger/AccordionTrigger.js +5 -2
  293. package/esm/alert-dialog/index.d.ts +9 -1
  294. package/esm/alert-dialog/root/AlertDialogRoot.d.ts +3 -1
  295. package/esm/alert-dialog/root/AlertDialogRoot.js +22 -20
  296. package/esm/autocomplete/clear/AutocompleteClearDataAttributes.d.ts +1 -0
  297. package/esm/autocomplete/clear/AutocompleteClearDataAttributes.js +1 -0
  298. package/esm/autocomplete/index.d.ts +8 -4
  299. package/esm/autocomplete/index.parts.d.ts +3 -2
  300. package/esm/autocomplete/index.parts.js +3 -2
  301. package/esm/autocomplete/input-group/AutocompleteInputGroup.d.ts +41 -0
  302. package/esm/autocomplete/input-group/AutocompleteInputGroup.js +10 -0
  303. package/esm/autocomplete/input-group/AutocompleteInputGroupDataAttributes.d.ts +51 -0
  304. package/esm/autocomplete/input-group/AutocompleteInputGroupDataAttributes.js +52 -0
  305. package/esm/autocomplete/item/AutocompleteItem.d.ts +48 -0
  306. package/esm/autocomplete/item/AutocompleteItem.js +10 -0
  307. package/esm/autocomplete/item/AutocompleteItemDataAttributes.d.ts +10 -0
  308. package/esm/autocomplete/item/AutocompleteItemDataAttributes.js +12 -0
  309. package/esm/autocomplete/root/AutocompleteRoot.d.ts +4 -4
  310. package/esm/autocomplete/root/AutocompleteRoot.js +4 -1
  311. package/esm/autocomplete/trigger/AutocompleteTrigger.d.ts +43 -0
  312. package/esm/autocomplete/trigger/AutocompleteTrigger.js +10 -0
  313. package/esm/autocomplete/trigger/AutocompleteTriggerDataAttributes.d.ts +55 -0
  314. package/esm/autocomplete/trigger/AutocompleteTriggerDataAttributes.js +57 -0
  315. package/esm/avatar/fallback/AvatarFallback.d.ts +3 -6
  316. package/esm/avatar/fallback/AvatarFallback.js +5 -31
  317. package/esm/avatar/image/AvatarImage.d.ts +6 -3
  318. package/esm/avatar/image/AvatarImage.js +3 -3
  319. package/esm/avatar/image/AvatarImageDataAttributes.d.ts +10 -0
  320. package/esm/avatar/image/AvatarImageDataAttributes.js +12 -0
  321. package/esm/avatar/image/useImageLoadingStatus.js +5 -0
  322. package/esm/avatar/root/AvatarRoot.d.ts +4 -1
  323. package/esm/avatar/root/AvatarRoot.js +1 -0
  324. package/esm/button/Button.js +1 -0
  325. package/esm/calendar/day-button/CalendarDayButton.d.ts +47 -0
  326. package/esm/calendar/day-button/CalendarDayButton.js +124 -0
  327. package/esm/calendar/day-button/CalendarDayButtonDataAttributes.d.ts +22 -0
  328. package/esm/calendar/day-button/CalendarDayButtonDataAttributes.js +23 -0
  329. package/esm/calendar/day-grid/CalendarDayGrid.d.ts +15 -0
  330. package/esm/calendar/day-grid/CalendarDayGrid.js +27 -0
  331. package/esm/calendar/day-grid-body/CalendarDayGridBody.d.ts +16 -0
  332. package/esm/calendar/day-grid-body/CalendarDayGridBody.js +48 -0
  333. package/esm/calendar/day-grid-body/SharedCalendarDayGridBodyContext.d.ts +14 -0
  334. package/esm/calendar/day-grid-body/SharedCalendarDayGridBodyContext.js +13 -0
  335. package/esm/calendar/day-grid-body/useSharedCalendarDayGridBody.d.ts +45 -0
  336. package/esm/calendar/day-grid-body/useSharedCalendarDayGridBody.js +279 -0
  337. package/esm/calendar/day-grid-cell/CalendarDayGridCell.d.ts +16 -0
  338. package/esm/calendar/day-grid-cell/CalendarDayGridCell.js +40 -0
  339. package/esm/calendar/day-grid-cell/SharedCalendarDayGridCellContext.d.ts +22 -0
  340. package/esm/calendar/day-grid-cell/SharedCalendarDayGridCellContext.js +13 -0
  341. package/esm/calendar/day-grid-cell/useSharedCalendarDayGridCell.d.ts +17 -0
  342. package/esm/calendar/day-grid-cell/useSharedCalendarDayGridCell.js +33 -0
  343. package/esm/calendar/day-grid-header/CalendarDayGridHeader.d.ts +15 -0
  344. package/esm/calendar/day-grid-header/CalendarDayGridHeader.js +27 -0
  345. package/esm/calendar/day-grid-header-cell/CalendarDayGridHeaderCell.d.ts +25 -0
  346. package/esm/calendar/day-grid-header-cell/CalendarDayGridHeaderCell.js +35 -0
  347. package/esm/calendar/day-grid-header-row/CalendarDayGridHeaderRow.d.ts +22 -0
  348. package/esm/calendar/day-grid-header-row/CalendarDayGridHeaderRow.js +42 -0
  349. package/esm/calendar/day-grid-row/CalendarDayGridRow.d.ts +26 -0
  350. package/esm/calendar/day-grid-row/CalendarDayGridRow.js +41 -0
  351. package/esm/calendar/decrement-month/CalendarDecrementMonth.d.ts +20 -0
  352. package/esm/calendar/decrement-month/CalendarDecrementMonth.js +75 -0
  353. package/esm/calendar/decrement-month/CalendarDecrementMonthDataAttributes.d.ts +6 -0
  354. package/esm/calendar/decrement-month/CalendarDecrementMonthDataAttributes.js +7 -0
  355. package/esm/calendar/increment-month/CalendarIncrementMonth.d.ts +20 -0
  356. package/esm/calendar/increment-month/CalendarIncrementMonth.js +74 -0
  357. package/esm/calendar/increment-month/CalendarIncrementMonthDataAttributes.d.ts +6 -0
  358. package/esm/calendar/increment-month/CalendarIncrementMonthDataAttributes.js +7 -0
  359. package/esm/calendar/index.d.ts +14 -0
  360. package/esm/calendar/index.js +1 -0
  361. package/esm/calendar/index.parts.d.ts +15 -0
  362. package/esm/calendar/index.parts.js +21 -0
  363. package/esm/calendar/root/CalendarRoot.d.ts +36 -0
  364. package/esm/calendar/root/CalendarRoot.js +141 -0
  365. package/esm/calendar/root/CalendarRootDataAttributes.d.ts +23 -0
  366. package/esm/calendar/root/CalendarRootDataAttributes.js +24 -0
  367. package/esm/calendar/root/SharedCalendarRootContext.d.ts +5 -0
  368. package/esm/calendar/root/SharedCalendarRootContext.js +13 -0
  369. package/esm/calendar/store/SharedCalendarState.d.ts +78 -0
  370. package/esm/calendar/store/SharedCalendarState.js +1 -0
  371. package/esm/calendar/store/SharedCalendarStore.d.ts +144 -0
  372. package/esm/calendar/store/SharedCalendarStore.js +137 -0
  373. package/esm/calendar/store/index.d.ts +3 -0
  374. package/esm/calendar/store/index.js +3 -0
  375. package/esm/calendar/store/selectors.d.ts +104 -0
  376. package/esm/calendar/store/selectors.js +192 -0
  377. package/esm/calendar/use-context/CalendarContext.d.ts +6 -0
  378. package/esm/calendar/use-context/CalendarContext.js +14 -0
  379. package/esm/calendar/use-day-list/getDayList.d.ts +9 -0
  380. package/esm/calendar/use-day-list/getDayList.js +34 -0
  381. package/esm/calendar/use-day-list/useCalendarDayList.d.ts +12 -0
  382. package/esm/calendar/use-day-list/useCalendarDayList.js +7 -0
  383. package/esm/calendar/use-week-list/getWeekList.d.ts +9 -0
  384. package/esm/calendar/use-week-list/getWeekList.js +34 -0
  385. package/esm/calendar/use-week-list/useCalendarWeekList.d.ts +17 -0
  386. package/esm/calendar/use-week-list/useCalendarWeekList.js +7 -0
  387. package/esm/calendar/utils/computeMonthDayGrid.d.ts +6 -0
  388. package/esm/calendar/utils/computeMonthDayGrid.js +17 -0
  389. package/esm/calendar/utils/useCalendarMonthButton.d.ts +31 -0
  390. package/esm/calendar/utils/useCalendarMonthButton.js +47 -0
  391. package/esm/calendar/viewport/CalendarViewport.d.ts +30 -0
  392. package/esm/calendar/viewport/CalendarViewport.js +165 -0
  393. package/esm/calendar/viewport/CalendarViewportDataAttributes.d.ts +23 -0
  394. package/esm/calendar/viewport/CalendarViewportDataAttributes.js +25 -0
  395. package/esm/checkbox/indicator/CheckboxIndicator.d.ts +6 -3
  396. package/esm/checkbox/indicator/CheckboxIndicator.js +1 -0
  397. package/esm/checkbox/root/CheckboxRoot.d.ts +8 -3
  398. package/esm/checkbox/root/CheckboxRoot.js +19 -11
  399. package/esm/checkbox/root/CheckboxRootContext.d.ts +4 -4
  400. package/esm/checkbox/utils/useStateAttributesMapping.d.ts +2 -2
  401. package/esm/checkbox-group/CheckboxGroup.d.ts +3 -3
  402. package/esm/checkbox-group/CheckboxGroup.js +13 -10
  403. package/esm/checkbox-group/CheckboxGroupContext.d.ts +2 -2
  404. package/esm/checkbox-group/useCheckboxGroupParent.d.ts +2 -5
  405. package/esm/collapsible/panel/CollapsiblePanel.d.ts +7 -4
  406. package/esm/collapsible/panel/CollapsiblePanel.js +2 -1
  407. package/esm/collapsible/panel/useCollapsiblePanel.d.ts +6 -7
  408. package/esm/collapsible/panel/useCollapsiblePanel.js +2 -4
  409. package/esm/collapsible/root/CollapsibleRoot.d.ts +3 -3
  410. package/esm/collapsible/root/CollapsibleRoot.js +1 -0
  411. package/esm/collapsible/root/CollapsibleRootContext.d.ts +4 -4
  412. package/esm/collapsible/root/stateAttributesMapping.d.ts +2 -2
  413. package/esm/collapsible/root/useCollapsibleRoot.d.ts +6 -7
  414. package/esm/collapsible/root/useCollapsibleRoot.js +5 -4
  415. package/esm/collapsible/trigger/CollapsibleTrigger.d.ts +4 -2
  416. package/esm/collapsible/trigger/CollapsibleTrigger.js +1 -0
  417. package/esm/combobox/arrow/ComboboxArrow.d.ts +12 -1
  418. package/esm/combobox/arrow/ComboboxArrow.js +3 -0
  419. package/esm/combobox/backdrop/ComboboxBackdrop.d.ts +6 -1
  420. package/esm/combobox/backdrop/ComboboxBackdrop.js +3 -0
  421. package/esm/combobox/chip/ComboboxChip.d.ts +3 -1
  422. package/esm/combobox/chip/ComboboxChip.js +4 -11
  423. package/esm/combobox/chip-remove/ComboboxChipRemove.d.ts +3 -1
  424. package/esm/combobox/chip-remove/ComboboxChipRemove.js +6 -0
  425. package/esm/combobox/chips/ComboboxChips.d.ts +4 -2
  426. package/esm/combobox/chips/ComboboxChips.js +9 -1
  427. package/esm/combobox/clear/ComboboxClear.d.ts +6 -1
  428. package/esm/combobox/clear/ComboboxClear.js +3 -0
  429. package/esm/combobox/collection/ComboboxCollection.d.ts +4 -0
  430. package/esm/combobox/collection/ComboboxCollection.js +2 -0
  431. package/esm/combobox/empty/ComboboxEmpty.d.ts +7 -1
  432. package/esm/combobox/empty/ComboboxEmpty.js +10 -1
  433. package/esm/combobox/group/ComboboxGroup.d.ts +3 -1
  434. package/esm/combobox/group/ComboboxGroup.js +3 -0
  435. package/esm/combobox/group-label/ComboboxGroupLabel.d.ts +3 -1
  436. package/esm/combobox/group-label/ComboboxGroupLabel.js +3 -0
  437. package/esm/combobox/icon/ComboboxIcon.d.ts +3 -1
  438. package/esm/combobox/icon/ComboboxIcon.js +3 -0
  439. package/esm/combobox/index.d.ts +2 -0
  440. package/esm/combobox/index.parts.d.ts +2 -0
  441. package/esm/combobox/index.parts.js +2 -0
  442. package/esm/combobox/input/ComboboxInput.d.ts +5 -3
  443. package/esm/combobox/input/ComboboxInput.js +33 -9
  444. package/esm/combobox/input-group/ComboboxInputGroup.d.ts +42 -0
  445. package/esm/combobox/input-group/ComboboxInputGroup.js +72 -0
  446. package/esm/combobox/input-group/ComboboxInputGroupDataAttributes.d.ts +55 -0
  447. package/esm/combobox/input-group/ComboboxInputGroupDataAttributes.js +56 -0
  448. package/esm/combobox/item/ComboboxItem.d.ts +3 -1
  449. package/esm/combobox/item/ComboboxItem.js +10 -1
  450. package/esm/combobox/item-indicator/ComboboxItemIndicator.d.ts +9 -1
  451. package/esm/combobox/item-indicator/ComboboxItemIndicator.js +3 -0
  452. package/esm/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.d.ts +10 -0
  453. package/esm/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.js +12 -0
  454. package/esm/combobox/label/ComboboxLabel.d.ts +16 -0
  455. package/esm/combobox/label/ComboboxLabel.js +64 -0
  456. package/esm/combobox/list/ComboboxList.d.ts +3 -1
  457. package/esm/combobox/list/ComboboxList.js +8 -9
  458. package/esm/combobox/popup/ComboboxPopup.d.ts +23 -3
  459. package/esm/combobox/popup/ComboboxPopup.js +14 -3
  460. package/esm/combobox/portal/ComboboxPortal.d.ts +5 -4
  461. package/esm/combobox/portal/ComboboxPortal.js +2 -0
  462. package/esm/combobox/positioner/ComboboxPositioner.d.ts +16 -2
  463. package/esm/combobox/positioner/ComboboxPositioner.js +18 -35
  464. package/esm/combobox/positioner/ComboboxPositionerContext.d.ts +2 -10
  465. package/esm/combobox/root/AriaCombobox.d.ts +14 -8
  466. package/esm/combobox/root/AriaCombobox.js +47 -26
  467. package/esm/combobox/root/ComboboxRoot.d.ts +4 -4
  468. package/esm/combobox/root/utils/useFilter.d.ts +9 -0
  469. package/esm/combobox/row/ComboboxRow.d.ts +3 -1
  470. package/esm/combobox/row/ComboboxRow.js +3 -0
  471. package/esm/combobox/status/ComboboxStatus.d.ts +7 -1
  472. package/esm/combobox/status/ComboboxStatus.js +12 -1
  473. package/esm/combobox/store.d.ts +12 -18
  474. package/esm/combobox/store.js +3 -14
  475. package/esm/combobox/trigger/ComboboxTrigger.d.ts +5 -3
  476. package/esm/combobox/trigger/ComboboxTrigger.js +9 -3
  477. package/esm/combobox/utils/ComboboxInternalDismissButton.d.ts +5 -0
  478. package/esm/combobox/utils/ComboboxInternalDismissButton.js +38 -0
  479. package/esm/combobox/utils/handleInputPress.d.ts +5 -0
  480. package/esm/combobox/utils/handleInputPress.js +22 -0
  481. package/esm/combobox/utils/useInitialLiveRegionTextMutation.d.ts +3 -0
  482. package/esm/combobox/utils/useInitialLiveRegionTextMutation.js +55 -0
  483. package/esm/composite/composite.d.ts +2 -0
  484. package/esm/composite/composite.js +2 -0
  485. package/esm/composite/item/CompositeItem.d.ts +4 -2
  486. package/esm/composite/item/CompositeItem.js +1 -0
  487. package/esm/composite/list/CompositeList.d.ts +3 -1
  488. package/esm/composite/list/useCompositeListItem.d.ts +1 -1
  489. package/esm/composite/root/CompositeRoot.d.ts +8 -4
  490. package/esm/composite/root/CompositeRoot.js +3 -0
  491. package/esm/composite/root/useCompositeRoot.d.ts +2 -1
  492. package/esm/composite/root/useCompositeRoot.js +30 -15
  493. package/esm/context-menu/index.d.ts +1 -1
  494. package/esm/context-menu/root/ContextMenuRoot.d.ts +3 -1
  495. package/esm/context-menu/root/ContextMenuRoot.js +1 -1
  496. package/esm/context-menu/trigger/ContextMenuTrigger.d.ts +3 -3
  497. package/esm/context-menu/trigger/ContextMenuTrigger.js +4 -5
  498. package/esm/dialog/backdrop/DialogBackdrop.d.ts +4 -1
  499. package/esm/dialog/backdrop/DialogBackdrop.js +1 -0
  500. package/esm/dialog/close/DialogClose.d.ts +1 -1
  501. package/esm/dialog/close/DialogClose.js +1 -0
  502. package/esm/dialog/description/DialogDescription.d.ts +1 -1
  503. package/esm/dialog/description/DialogDescription.js +1 -0
  504. package/esm/dialog/popup/DialogPopup.d.ts +6 -3
  505. package/esm/dialog/popup/DialogPopup.js +1 -0
  506. package/esm/dialog/portal/DialogPortal.d.ts +4 -5
  507. package/esm/dialog/root/DialogRoot.d.ts +11 -5
  508. package/esm/dialog/root/DialogRoot.js +23 -18
  509. package/esm/dialog/root/useDialogRoot.d.ts +4 -7
  510. package/esm/dialog/root/useDialogRoot.js +15 -14
  511. package/esm/dialog/store/DialogStore.d.ts +4 -1
  512. package/esm/dialog/store/DialogStore.js +11 -7
  513. package/esm/dialog/title/DialogTitle.d.ts +1 -1
  514. package/esm/dialog/title/DialogTitle.js +1 -0
  515. package/esm/dialog/trigger/DialogTrigger.d.ts +1 -1
  516. package/esm/dialog/trigger/DialogTrigger.js +1 -0
  517. package/esm/dialog/viewport/DialogViewport.d.ts +3 -0
  518. package/esm/dialog/viewport/DialogViewport.js +1 -0
  519. package/esm/direction-provider/DirectionProvider.d.ts +2 -0
  520. package/esm/drawer/backdrop/DrawerBackdrop.d.ts +4 -1
  521. package/esm/drawer/backdrop/DrawerBackdrop.js +1 -0
  522. package/esm/drawer/backdrop/DrawerBackdropDataAttributes.d.ts +18 -0
  523. package/esm/drawer/backdrop/DrawerBackdropDataAttributes.js +20 -0
  524. package/esm/drawer/close/DrawerClose.d.ts +1 -1
  525. package/esm/drawer/content/DrawerContent.d.ts +1 -1
  526. package/esm/drawer/content/DrawerContent.js +3 -1
  527. package/esm/drawer/content/DrawerContentDataAttributes.d.ts +1 -0
  528. package/esm/drawer/content/DrawerContentDataAttributes.js +1 -0
  529. package/esm/drawer/description/DrawerDescription.d.ts +1 -1
  530. package/esm/drawer/indent/DrawerIndent.d.ts +3 -2
  531. package/esm/drawer/indent/DrawerIndent.js +3 -1
  532. package/esm/drawer/indent-background/DrawerIndentBackground.d.ts +5 -3
  533. package/esm/drawer/indent-background/DrawerIndentBackground.js +5 -2
  534. package/esm/drawer/index.d.ts +2 -1
  535. package/esm/drawer/index.js +1 -1
  536. package/esm/drawer/index.parts.d.ts +1 -0
  537. package/esm/drawer/index.parts.js +1 -0
  538. package/esm/drawer/popup/DrawerPopup.d.ts +6 -3
  539. package/esm/drawer/popup/DrawerPopup.js +76 -5
  540. package/esm/drawer/popup/DrawerPopupDataAttributes.d.ts +16 -0
  541. package/esm/drawer/popup/DrawerPopupDataAttributes.js +18 -1
  542. package/esm/drawer/portal/DrawerPortal.d.ts +2 -2
  543. package/esm/drawer/provider/DrawerProvider.d.ts +2 -2
  544. package/esm/drawer/provider/DrawerProvider.js +2 -2
  545. package/esm/drawer/root/DrawerRoot.d.ts +6 -4
  546. package/esm/drawer/root/DrawerRoot.js +25 -16
  547. package/esm/drawer/root/DrawerRootContext.d.ts +4 -4
  548. package/esm/drawer/swipe-area/DrawerSwipeArea.d.ts +1 -1
  549. package/esm/drawer/swipe-area/DrawerSwipeArea.js +29 -22
  550. package/esm/drawer/swipe-area/DrawerSwipeAreaDataAttributes.d.ts +23 -0
  551. package/esm/drawer/swipe-area/DrawerSwipeAreaDataAttributes.js +25 -0
  552. package/esm/drawer/title/DrawerTitle.d.ts +1 -1
  553. package/esm/drawer/trigger/DrawerTrigger.d.ts +1 -1
  554. package/esm/drawer/viewport/DrawerViewport.d.ts +4 -1
  555. package/esm/drawer/viewport/DrawerViewport.js +195 -61
  556. package/esm/drawer/viewport/DrawerViewportDataAttributes.d.ts +22 -0
  557. package/esm/drawer/viewport/DrawerViewportDataAttributes.js +24 -0
  558. package/esm/field/control/FieldControl.d.ts +3 -3
  559. package/esm/field/control/FieldControl.js +6 -6
  560. package/esm/field/description/FieldDescription.d.ts +3 -3
  561. package/esm/field/description/FieldDescription.js +1 -0
  562. package/esm/field/error/FieldError.d.ts +8 -5
  563. package/esm/field/error/FieldError.js +8 -5
  564. package/esm/field/error/FieldErrorDataAttributes.d.ts +8 -0
  565. package/esm/field/error/FieldErrorDataAttributes.js +10 -1
  566. package/esm/field/item/FieldItem.d.ts +4 -3
  567. package/esm/field/item/FieldItem.js +3 -2
  568. package/esm/field/label/FieldLabel.d.ts +4 -4
  569. package/esm/field/label/FieldLabel.js +7 -51
  570. package/esm/field/root/FieldRoot.d.ts +19 -2
  571. package/esm/field/root/FieldRoot.js +14 -2
  572. package/esm/field/root/FieldRootContext.d.ts +4 -2
  573. package/esm/field/root/FieldRootContext.js +7 -13
  574. package/esm/field/root/useFieldControlRegistration.d.ts +17 -0
  575. package/esm/field/root/useFieldControlRegistration.js +125 -0
  576. package/esm/field/root/useFieldValidation.js +5 -4
  577. package/esm/field/root/useRegisterFieldControl.d.ts +5 -0
  578. package/esm/field/root/useRegisterFieldControl.js +35 -0
  579. package/esm/field/utils/constants.d.ts +3 -0
  580. package/esm/field/utils/constants.js +11 -0
  581. package/esm/field/validity/FieldValidity.d.ts +8 -2
  582. package/esm/field/validity/FieldValidity.js +1 -1
  583. package/esm/fieldset/legend/FieldsetLegend.d.ts +1 -1
  584. package/esm/fieldset/legend/FieldsetLegend.js +1 -0
  585. package/esm/fieldset/root/FieldsetRoot.d.ts +1 -1
  586. package/esm/fieldset/root/FieldsetRoot.js +1 -0
  587. package/esm/floating-ui-react/components/FloatingDelayGroup.js +1 -1
  588. package/esm/floating-ui-react/components/FloatingFocusManager.d.ts +12 -7
  589. package/esm/floating-ui-react/components/FloatingFocusManager.js +77 -105
  590. package/esm/floating-ui-react/components/FloatingPortal.d.ts +6 -4
  591. package/esm/floating-ui-react/components/FloatingPortal.js +17 -11
  592. package/esm/floating-ui-react/components/FloatingRootStore.d.ts +18 -2
  593. package/esm/floating-ui-react/components/FloatingRootStore.js +34 -17
  594. package/esm/floating-ui-react/hooks/useClick.d.ts +2 -2
  595. package/esm/floating-ui-react/hooks/useClick.js +5 -3
  596. package/esm/floating-ui-react/hooks/useClientPoint.d.ts +1 -1
  597. package/esm/floating-ui-react/hooks/useClientPoint.js +6 -5
  598. package/esm/floating-ui-react/hooks/useDismiss.d.ts +8 -12
  599. package/esm/floating-ui-react/hooks/useDismiss.js +304 -282
  600. package/esm/floating-ui-react/hooks/useFloating.js +4 -3
  601. package/esm/floating-ui-react/hooks/useFloatingRootContext.d.ts +2 -2
  602. package/esm/floating-ui-react/hooks/useFloatingRootContext.js +3 -3
  603. package/esm/floating-ui-react/hooks/useFocus.d.ts +1 -1
  604. package/esm/floating-ui-react/hooks/useFocus.js +5 -14
  605. package/esm/floating-ui-react/hooks/useHover.d.ts +7 -15
  606. package/esm/floating-ui-react/hooks/useHover.js +9 -72
  607. package/esm/floating-ui-react/hooks/useHoverFloatingInteraction.d.ts +7 -3
  608. package/esm/floating-ui-react/hooks/useHoverFloatingInteraction.js +68 -84
  609. package/esm/floating-ui-react/hooks/useHoverInteractionSharedState.d.ts +12 -3
  610. package/esm/floating-ui-react/hooks/useHoverInteractionSharedState.js +42 -8
  611. package/esm/floating-ui-react/hooks/useHoverReferenceInteraction.d.ts +9 -3
  612. package/esm/floating-ui-react/hooks/useHoverReferenceInteraction.js +114 -98
  613. package/esm/floating-ui-react/hooks/useHoverShared.d.ts +28 -0
  614. package/esm/floating-ui-react/hooks/useHoverShared.js +26 -0
  615. package/esm/floating-ui-react/hooks/useListNavigation.d.ts +8 -8
  616. package/esm/floating-ui-react/hooks/useListNavigation.js +39 -31
  617. package/esm/floating-ui-react/hooks/useRole.d.ts +1 -1
  618. package/esm/floating-ui-react/hooks/useRole.js +1 -1
  619. package/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.d.ts +0 -4
  620. package/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js +3 -4
  621. package/esm/floating-ui-react/hooks/useTypeahead.d.ts +7 -1
  622. package/esm/floating-ui-react/hooks/useTypeahead.js +32 -14
  623. package/esm/floating-ui-react/safePolygon.d.ts +2 -6
  624. package/esm/floating-ui-react/safePolygon.js +150 -119
  625. package/esm/floating-ui-react/types.d.ts +5 -4
  626. package/esm/floating-ui-react/utils/composite.d.ts +7 -4
  627. package/esm/floating-ui-react/utils/composite.js +177 -147
  628. package/esm/floating-ui-react/utils/element.d.ts +3 -3
  629. package/esm/floating-ui-react/utils/element.js +6 -42
  630. package/esm/floating-ui-react/utils/enqueueFocus.d.ts +3 -2
  631. package/esm/floating-ui-react/utils/enqueueFocus.js +10 -2
  632. package/esm/floating-ui-react/utils/getEmptyRootContext.js +2 -1
  633. package/esm/floating-ui-react/utils/markOthers.d.ts +7 -1
  634. package/esm/floating-ui-react/utils/markOthers.js +119 -81
  635. package/esm/floating-ui-react/utils/nodes.js +2 -2
  636. package/esm/floating-ui-react/utils/shadowDom.d.ts +3 -0
  637. package/esm/floating-ui-react/utils/shadowDom.js +40 -0
  638. package/esm/floating-ui-react/utils/tabbable.d.ts +4 -5
  639. package/esm/floating-ui-react/utils/tabbable.js +126 -13
  640. package/esm/form/Form.d.ts +1 -1
  641. package/esm/form/Form.js +1 -0
  642. package/esm/global.d.ts +1 -1
  643. package/esm/index.d.ts +1 -0
  644. package/esm/index.js +6 -1
  645. package/esm/input/Input.d.ts +11 -4
  646. package/esm/labelable-provider/LabelableProvider.d.ts +4 -1
  647. package/esm/labelable-provider/LabelableProvider.js +3 -2
  648. package/esm/labelable-provider/useAriaLabelledBy.d.ts +9 -0
  649. package/esm/labelable-provider/useAriaLabelledBy.js +56 -0
  650. package/esm/labelable-provider/useLabel.d.ts +25 -0
  651. package/esm/labelable-provider/useLabel.js +73 -0
  652. package/esm/labelable-provider/useLabelableId.d.ts +2 -5
  653. package/esm/localization-provider/LocalizationContext.d.ts +10 -0
  654. package/esm/localization-provider/LocalizationContext.js +16 -0
  655. package/esm/localization-provider/LocalizationProvider.d.ts +20 -0
  656. package/esm/localization-provider/LocalizationProvider.js +37 -0
  657. package/esm/localization-provider/index.d.ts +2 -0
  658. package/esm/localization-provider/index.js +2 -0
  659. package/esm/menu/arrow/MenuArrow.d.ts +10 -1
  660. package/esm/menu/arrow/MenuArrow.js +1 -0
  661. package/esm/menu/backdrop/MenuBackdrop.d.ts +4 -1
  662. package/esm/menu/backdrop/MenuBackdrop.js +1 -0
  663. package/esm/menu/checkbox-item/MenuCheckboxItem.d.ts +3 -3
  664. package/esm/menu/checkbox-item/MenuCheckboxItem.js +2 -1
  665. package/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.d.ts +7 -1
  666. package/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +1 -0
  667. package/esm/menu/group/MenuGroup.d.ts +1 -1
  668. package/esm/menu/group/MenuGroup.js +1 -0
  669. package/esm/menu/group-label/MenuGroupLabel.d.ts +1 -1
  670. package/esm/menu/group-label/MenuGroupLabel.js +1 -0
  671. package/esm/menu/index.d.ts +2 -1
  672. package/esm/menu/index.parts.d.ts +1 -0
  673. package/esm/menu/index.parts.js +1 -0
  674. package/esm/menu/item/MenuItem.d.ts +1 -1
  675. package/esm/menu/item/MenuItem.js +2 -1
  676. package/esm/menu/item/useMenuItem.d.ts +9 -8
  677. package/esm/menu/item/useMenuItem.js +5 -7
  678. package/esm/menu/item/useMenuItemCommonProps.d.ts +7 -4
  679. package/esm/menu/item/useMenuItemCommonProps.js +16 -2
  680. package/esm/menu/link-item/MenuLinkItem.d.ts +1 -1
  681. package/esm/menu/link-item/MenuLinkItem.js +18 -3
  682. package/esm/menu/popup/MenuPopup.d.ts +20 -5
  683. package/esm/menu/popup/MenuPopup.js +5 -1
  684. package/esm/menu/popup/MenuPopupDataAttributes.d.ts +1 -1
  685. package/esm/menu/popup/MenuPopupDataAttributes.js +1 -1
  686. package/esm/menu/portal/MenuPortal.d.ts +3 -4
  687. package/esm/menu/positioner/MenuPositioner.d.ts +18 -2
  688. package/esm/menu/positioner/MenuPositioner.js +73 -36
  689. package/esm/menu/positioner/MenuPositionerContext.d.ts +2 -15
  690. package/esm/menu/radio-group/MenuRadioGroup.d.ts +6 -3
  691. package/esm/menu/radio-group/MenuRadioGroup.js +1 -0
  692. package/esm/menu/radio-item/MenuRadioItem.d.ts +3 -3
  693. package/esm/menu/radio-item/MenuRadioItem.js +2 -1
  694. package/esm/menu/radio-item-indicator/MenuRadioItemIndicator.d.ts +7 -1
  695. package/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js +1 -0
  696. package/esm/menu/root/MenuRoot.d.ts +6 -4
  697. package/esm/menu/root/MenuRoot.js +9 -19
  698. package/esm/menu/store/MenuStore.d.ts +7 -2
  699. package/esm/menu/store/MenuStore.js +17 -1
  700. package/esm/menu/submenu-root/MenuSubmenuRoot.d.ts +1 -1
  701. package/esm/menu/submenu-root/MenuSubmenuRoot.js +1 -1
  702. package/esm/menu/submenu-trigger/MenuSubmenuTrigger.js +19 -2
  703. package/esm/menu/trigger/MenuTrigger.d.ts +3 -3
  704. package/esm/menu/trigger/MenuTrigger.js +11 -31
  705. package/esm/menu/viewport/MenuViewport.d.ts +30 -0
  706. package/esm/menu/viewport/MenuViewport.js +61 -0
  707. package/esm/menu/viewport/MenuViewportCssVars.d.ts +14 -0
  708. package/esm/menu/viewport/MenuViewportCssVars.js +15 -0
  709. package/esm/menu/viewport/MenuViewportDataAttributes.d.ts +26 -0
  710. package/esm/menu/viewport/MenuViewportDataAttributes.js +27 -0
  711. package/esm/menubar/Menubar.d.ts +1 -1
  712. package/esm/menubar/Menubar.js +7 -17
  713. package/esm/menubar/MenubarDataAttributes.d.ts +6 -3
  714. package/esm/menubar/MenubarDataAttributes.js +9 -6
  715. package/esm/merge-props/mergeProps.d.ts +1 -1
  716. package/esm/merge-props/mergeProps.js +53 -18
  717. package/esm/meter/indicator/MeterIndicator.d.ts +4 -2
  718. package/esm/meter/indicator/MeterIndicator.js +1 -0
  719. package/esm/meter/label/MeterLabel.d.ts +4 -2
  720. package/esm/meter/label/MeterLabel.js +5 -8
  721. package/esm/meter/root/MeterRoot.d.ts +1 -1
  722. package/esm/meter/root/MeterRoot.js +12 -2
  723. package/esm/meter/track/MeterTrack.d.ts +4 -2
  724. package/esm/meter/track/MeterTrack.js +1 -0
  725. package/esm/meter/value/MeterValue.d.ts +5 -3
  726. package/esm/meter/value/MeterValue.js +1 -0
  727. package/esm/navigation-menu/arrow/NavigationMenuArrow.d.ts +10 -1
  728. package/esm/navigation-menu/arrow/NavigationMenuArrow.js +1 -0
  729. package/esm/navigation-menu/backdrop/NavigationMenuBackdrop.d.ts +1 -1
  730. package/esm/navigation-menu/backdrop/NavigationMenuBackdrop.js +1 -0
  731. package/esm/navigation-menu/content/NavigationMenuContent.d.ts +1 -1
  732. package/esm/navigation-menu/content/NavigationMenuContent.js +14 -0
  733. package/esm/navigation-menu/icon/NavigationMenuIcon.d.ts +1 -1
  734. package/esm/navigation-menu/icon/NavigationMenuIcon.js +1 -0
  735. package/esm/navigation-menu/item/NavigationMenuItem.d.ts +1 -1
  736. package/esm/navigation-menu/item/NavigationMenuItem.js +1 -0
  737. package/esm/navigation-menu/link/NavigationMenuLink.d.ts +1 -1
  738. package/esm/navigation-menu/link/NavigationMenuLink.js +2 -0
  739. package/esm/navigation-menu/list/NavigationMenuList.d.ts +1 -1
  740. package/esm/navigation-menu/list/NavigationMenuList.js +17 -4
  741. package/esm/navigation-menu/popup/NavigationMenuPopup.d.ts +1 -1
  742. package/esm/navigation-menu/popup/NavigationMenuPopup.js +1 -0
  743. package/esm/navigation-menu/portal/NavigationMenuPortal.d.ts +4 -5
  744. package/esm/navigation-menu/positioner/NavigationMenuPositioner.d.ts +11 -2
  745. package/esm/navigation-menu/positioner/NavigationMenuPositioner.js +13 -32
  746. package/esm/navigation-menu/root/NavigationMenuRoot.d.ts +12 -9
  747. package/esm/navigation-menu/root/NavigationMenuRoot.js +35 -8
  748. package/esm/navigation-menu/root/NavigationMenuRootContext.d.ts +11 -6
  749. package/esm/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -1
  750. package/esm/navigation-menu/trigger/NavigationMenuTrigger.js +402 -23
  751. package/esm/navigation-menu/utils/isOutsideMenuEvent.d.ts +1 -1
  752. package/esm/navigation-menu/viewport/NavigationMenuViewport.d.ts +1 -1
  753. package/esm/navigation-menu/viewport/NavigationMenuViewport.js +1 -19
  754. package/esm/number-field/decrement/NumberFieldDecrement.d.ts +3 -3
  755. package/esm/number-field/decrement/NumberFieldDecrement.js +1 -10
  756. package/esm/number-field/group/NumberFieldGroup.d.ts +3 -3
  757. package/esm/number-field/group/NumberFieldGroup.js +1 -0
  758. package/esm/number-field/increment/NumberFieldIncrement.d.ts +3 -3
  759. package/esm/number-field/increment/NumberFieldIncrement.js +1 -10
  760. package/esm/number-field/input/NumberFieldInput.d.ts +3 -3
  761. package/esm/number-field/input/NumberFieldInput.js +6 -10
  762. package/esm/number-field/root/NumberFieldRoot.d.ts +10 -5
  763. package/esm/number-field/root/NumberFieldRoot.js +13 -78
  764. package/esm/number-field/root/NumberFieldRootContext.d.ts +2 -8
  765. package/esm/number-field/root/useNumberFieldButton.d.ts +2 -11
  766. package/esm/number-field/root/useNumberFieldButton.js +34 -101
  767. package/esm/number-field/scrub-area/NumberFieldScrubArea.d.ts +4 -4
  768. package/esm/number-field/scrub-area/NumberFieldScrubArea.js +8 -9
  769. package/esm/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.d.ts +3 -3
  770. package/esm/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.js +1 -0
  771. package/esm/number-field/utils/constants.d.ts +0 -2
  772. package/esm/number-field/utils/constants.js +0 -2
  773. package/esm/number-field/utils/stateAttributesMapping.d.ts +2 -2
  774. package/esm/number-field/utils/subscribeToVisualViewportResize.js +2 -4
  775. package/esm/number-field/utils/types.d.ts +2 -2
  776. package/esm/otp-field/index.d.ts +3 -0
  777. package/esm/otp-field/index.js +1 -0
  778. package/esm/otp-field/index.parts.d.ts +3 -0
  779. package/esm/otp-field/index.parts.js +3 -0
  780. package/esm/otp-field/input/OTPFieldInput.d.ts +29 -0
  781. package/esm/otp-field/input/OTPFieldInput.js +237 -0
  782. package/esm/otp-field/input/OTPFieldInputDataAttributes.d.ts +42 -0
  783. package/esm/otp-field/input/OTPFieldInputDataAttributes.js +43 -0
  784. package/esm/otp-field/root/OTPFieldRoot.d.ts +159 -0
  785. package/esm/otp-field/root/OTPFieldRoot.js +408 -0
  786. package/esm/otp-field/root/OTPFieldRootContext.d.ts +31 -0
  787. package/esm/otp-field/root/OTPFieldRootContext.js +21 -0
  788. package/esm/otp-field/root/OTPFieldRootDataAttributes.d.ts +42 -0
  789. package/esm/otp-field/root/OTPFieldRootDataAttributes.js +43 -0
  790. package/esm/otp-field/utils/otp.d.ts +21 -0
  791. package/esm/otp-field/utils/otp.js +66 -0
  792. package/esm/otp-field/utils/stateAttributesMapping.d.ts +5 -0
  793. package/esm/otp-field/utils/stateAttributesMapping.js +11 -0
  794. package/esm/popover/arrow/PopoverArrow.d.ts +10 -1
  795. package/esm/popover/arrow/PopoverArrow.js +1 -0
  796. package/esm/popover/backdrop/PopoverBackdrop.d.ts +4 -1
  797. package/esm/popover/backdrop/PopoverBackdrop.js +1 -0
  798. package/esm/popover/close/PopoverClose.d.ts +1 -1
  799. package/esm/popover/close/PopoverClose.js +6 -3
  800. package/esm/popover/description/PopoverDescription.d.ts +1 -1
  801. package/esm/popover/description/PopoverDescription.js +1 -0
  802. package/esm/popover/popup/PopoverPopup.d.ts +15 -3
  803. package/esm/popover/popup/PopoverPopup.js +13 -2
  804. package/esm/popover/portal/PopoverPortal.d.ts +3 -4
  805. package/esm/popover/positioner/PopoverPositioner.d.ts +11 -2
  806. package/esm/popover/positioner/PopoverPositioner.js +16 -30
  807. package/esm/popover/root/PopoverRoot.d.ts +12 -5
  808. package/esm/popover/root/PopoverRoot.js +2 -8
  809. package/esm/popover/store/PopoverStore.d.ts +2 -0
  810. package/esm/popover/store/PopoverStore.js +3 -9
  811. package/esm/popover/title/PopoverTitle.d.ts +1 -1
  812. package/esm/popover/title/PopoverTitle.js +1 -0
  813. package/esm/popover/trigger/PopoverTrigger.js +11 -33
  814. package/esm/popover/viewport/PopoverViewport.d.ts +16 -12
  815. package/esm/popover/viewport/PopoverViewport.js +1 -0
  816. package/esm/preview-card/arrow/PreviewCardArrow.d.ts +10 -1
  817. package/esm/preview-card/arrow/PreviewCardArrow.js +1 -0
  818. package/esm/preview-card/backdrop/PreviewCardBackdrop.d.ts +4 -1
  819. package/esm/preview-card/backdrop/PreviewCardBackdrop.js +1 -0
  820. package/esm/preview-card/index.d.ts +1 -0
  821. package/esm/preview-card/popup/PreviewCardPopup.d.ts +13 -1
  822. package/esm/preview-card/popup/PreviewCardPopup.js +1 -0
  823. package/esm/preview-card/portal/PreviewCardPortal.d.ts +3 -4
  824. package/esm/preview-card/positioner/PreviewCardPositioner.d.ts +14 -2
  825. package/esm/preview-card/positioner/PreviewCardPositioner.js +17 -31
  826. package/esm/preview-card/positioner/PreviewCardPositionerContext.d.ts +2 -8
  827. package/esm/preview-card/root/PreviewCardRoot.d.ts +5 -5
  828. package/esm/preview-card/root/PreviewCardRoot.js +23 -10
  829. package/esm/preview-card/store/PreviewCardStore.js +1 -0
  830. package/esm/preview-card/trigger/PreviewCardTrigger.d.ts +1 -1
  831. package/esm/preview-card/trigger/PreviewCardTrigger.js +3 -1
  832. package/esm/preview-card/viewport/PreviewCardViewport.d.ts +16 -9
  833. package/esm/preview-card/viewport/PreviewCardViewport.js +1 -0
  834. package/esm/progress/indicator/ProgressIndicator.d.ts +4 -2
  835. package/esm/progress/indicator/ProgressIndicator.js +1 -0
  836. package/esm/progress/indicator/ProgressIndicatorDataAttributes.d.ts +1 -1
  837. package/esm/progress/indicator/ProgressIndicatorDataAttributes.js +1 -1
  838. package/esm/progress/label/ProgressLabel.d.ts +4 -2
  839. package/esm/progress/label/ProgressLabel.js +5 -8
  840. package/esm/progress/label/ProgressLabelDataAttributes.d.ts +1 -1
  841. package/esm/progress/label/ProgressLabelDataAttributes.js +1 -1
  842. package/esm/progress/root/ProgressRoot.d.ts +4 -1
  843. package/esm/progress/root/ProgressRoot.js +12 -2
  844. package/esm/progress/root/ProgressRootContext.d.ts +2 -2
  845. package/esm/progress/root/ProgressRootDataAttributes.d.ts +1 -1
  846. package/esm/progress/root/ProgressRootDataAttributes.js +1 -1
  847. package/esm/progress/root/stateAttributesMapping.d.ts +2 -2
  848. package/esm/progress/track/ProgressTrack.d.ts +4 -2
  849. package/esm/progress/track/ProgressTrack.js +1 -0
  850. package/esm/progress/track/ProgressTrackDataAttributes.d.ts +1 -1
  851. package/esm/progress/track/ProgressTrackDataAttributes.js +1 -1
  852. package/esm/progress/value/ProgressValue.d.ts +5 -3
  853. package/esm/progress/value/ProgressValue.js +1 -0
  854. package/esm/progress/value/ProgressValueDataAttributes.d.ts +1 -1
  855. package/esm/progress/value/ProgressValueDataAttributes.js +1 -1
  856. package/esm/radio/indicator/RadioIndicator.d.ts +4 -1
  857. package/esm/radio/indicator/RadioIndicator.js +1 -0
  858. package/esm/radio/indicator/RadioIndicatorDataAttributes.d.ts +8 -0
  859. package/esm/radio/indicator/RadioIndicatorDataAttributes.js +10 -1
  860. package/esm/radio/root/RadioRoot.d.ts +3 -3
  861. package/esm/radio/root/RadioRoot.js +11 -2
  862. package/esm/radio-group/RadioGroup.d.ts +8 -3
  863. package/esm/radio-group/RadioGroup.js +9 -7
  864. package/esm/radio-group/RadioGroupContext.d.ts +1 -0
  865. package/esm/scroll-area/content/ScrollAreaContent.d.ts +3 -3
  866. package/esm/scroll-area/content/ScrollAreaContent.js +1 -0
  867. package/esm/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
  868. package/esm/scroll-area/corner/ScrollAreaCorner.js +1 -0
  869. package/esm/scroll-area/root/ScrollAreaRoot.d.ts +27 -11
  870. package/esm/scroll-area/root/ScrollAreaRoot.js +8 -4
  871. package/esm/scroll-area/root/ScrollAreaRootContext.d.ts +4 -2
  872. package/esm/scroll-area/root/stateAttributes.d.ts +2 -2
  873. package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +14 -8
  874. package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.js +13 -7
  875. package/esm/scroll-area/thumb/ScrollAreaThumb.d.ts +5 -2
  876. package/esm/scroll-area/thumb/ScrollAreaThumb.js +4 -1
  877. package/esm/scroll-area/viewport/ScrollAreaViewport.d.ts +3 -3
  878. package/esm/scroll-area/viewport/ScrollAreaViewport.js +45 -34
  879. package/esm/select/arrow/SelectArrow.d.ts +10 -1
  880. package/esm/select/arrow/SelectArrow.js +1 -0
  881. package/esm/select/backdrop/SelectBackdrop.d.ts +7 -1
  882. package/esm/select/backdrop/SelectBackdrop.js +1 -0
  883. package/esm/select/group/SelectGroup.d.ts +1 -1
  884. package/esm/select/group/SelectGroup.js +1 -0
  885. package/esm/select/group-label/SelectGroupLabel.d.ts +1 -1
  886. package/esm/select/group-label/SelectGroupLabel.js +1 -0
  887. package/esm/select/icon/SelectIcon.d.ts +1 -1
  888. package/esm/select/icon/SelectIcon.js +1 -0
  889. package/esm/select/index.d.ts +1 -0
  890. package/esm/select/index.parts.d.ts +1 -0
  891. package/esm/select/index.parts.js +1 -0
  892. package/esm/select/item/SelectItem.d.ts +1 -1
  893. package/esm/select/item/SelectItem.js +19 -38
  894. package/esm/select/item-indicator/SelectItemIndicator.d.ts +10 -2
  895. package/esm/select/item-indicator/SelectItemIndicator.js +1 -0
  896. package/esm/select/item-indicator/SelectItemIndicatorDataAttributes.d.ts +10 -0
  897. package/esm/select/item-indicator/SelectItemIndicatorDataAttributes.js +12 -0
  898. package/esm/select/item-text/SelectItemText.d.ts +1 -1
  899. package/esm/select/item-text/SelectItemText.js +1 -0
  900. package/esm/select/label/SelectLabel.d.ts +16 -0
  901. package/esm/select/label/SelectLabel.js +50 -0
  902. package/esm/select/list/SelectList.d.ts +1 -1
  903. package/esm/select/list/SelectList.js +1 -0
  904. package/esm/select/popup/SelectPopup.d.ts +14 -2
  905. package/esm/select/popup/SelectPopup.js +150 -164
  906. package/esm/select/portal/SelectPortal.d.ts +3 -4
  907. package/esm/select/positioner/SelectPositioner.d.ts +14 -2
  908. package/esm/select/positioner/SelectPositioner.js +11 -24
  909. package/esm/select/positioner/SelectPositionerContext.d.ts +2 -2
  910. package/esm/select/root/SelectRoot.d.ts +12 -6
  911. package/esm/select/root/SelectRoot.js +42 -30
  912. package/esm/select/scroll-arrow/SelectScrollArrow.d.ts +13 -1
  913. package/esm/select/scroll-arrow/SelectScrollArrow.js +47 -63
  914. package/esm/select/scroll-down-arrow/SelectScrollDownArrow.d.ts +1 -1
  915. package/esm/select/scroll-up-arrow/SelectScrollUpArrow.d.ts +1 -1
  916. package/esm/select/store.d.ts +5 -2
  917. package/esm/select/store.js +1 -0
  918. package/esm/select/trigger/SelectTrigger.d.ts +6 -4
  919. package/esm/select/trigger/SelectTrigger.js +6 -2
  920. package/esm/select/value/SelectValue.d.ts +1 -1
  921. package/esm/select/value/SelectValue.js +1 -0
  922. package/esm/separator/Separator.d.ts +1 -1
  923. package/esm/separator/Separator.js +1 -0
  924. package/esm/separator/SeparatorDataAttributes.d.ts +7 -0
  925. package/esm/separator/SeparatorDataAttributes.js +8 -0
  926. package/esm/slider/control/SliderControl.d.ts +4 -3
  927. package/esm/slider/control/SliderControl.js +17 -10
  928. package/esm/slider/index.d.ts +1 -0
  929. package/esm/slider/index.parts.d.ts +1 -0
  930. package/esm/slider/index.parts.js +1 -0
  931. package/esm/slider/indicator/SliderIndicator.d.ts +4 -2
  932. package/esm/slider/indicator/SliderIndicator.js +6 -6
  933. package/esm/slider/label/SliderLabel.d.ts +16 -0
  934. package/esm/slider/label/SliderLabel.js +59 -0
  935. package/esm/slider/root/SliderRoot.d.ts +17 -6
  936. package/esm/slider/root/SliderRoot.js +16 -12
  937. package/esm/slider/root/SliderRootContext.d.ts +5 -2
  938. package/esm/slider/root/stateAttributesMapping.d.ts +2 -2
  939. package/esm/slider/thumb/SliderThumb.d.ts +5 -5
  940. package/esm/slider/thumb/SliderThumb.js +67 -24
  941. package/esm/slider/track/SliderTrack.d.ts +4 -2
  942. package/esm/slider/track/SliderTrack.js +1 -0
  943. package/esm/slider/utils/resolveThumbCollision.d.ts +2 -2
  944. package/esm/slider/utils/roundValueToStep.d.ts +1 -0
  945. package/esm/slider/utils/roundValueToStep.js +6 -2
  946. package/esm/slider/value/SliderValue.d.ts +5 -3
  947. package/esm/slider/value/SliderValue.js +1 -0
  948. package/esm/switch/root/SwitchRoot.d.ts +8 -3
  949. package/esm/switch/root/SwitchRoot.js +19 -11
  950. package/esm/switch/root/SwitchRootContext.d.ts +4 -4
  951. package/esm/switch/stateAttributesMapping.d.ts +2 -2
  952. package/esm/switch/thumb/SwitchThumb.d.ts +3 -3
  953. package/esm/switch/thumb/SwitchThumb.js +1 -0
  954. package/esm/tabs/indicator/TabsIndicator.d.ts +13 -4
  955. package/esm/tabs/indicator/TabsIndicator.js +9 -18
  956. package/esm/tabs/indicator/TabsIndicatorCssVars.d.ts +1 -1
  957. package/esm/tabs/indicator/TabsIndicatorCssVars.js +1 -1
  958. package/esm/tabs/list/TabsList.d.ts +3 -3
  959. package/esm/tabs/list/TabsList.js +51 -88
  960. package/esm/tabs/list/TabsListContext.d.ts +2 -0
  961. package/esm/tabs/panel/TabsPanel.d.ts +9 -3
  962. package/esm/tabs/panel/TabsPanel.js +1 -0
  963. package/esm/tabs/panel/TabsPanelDataAttributes.d.ts +8 -0
  964. package/esm/tabs/panel/TabsPanelDataAttributes.js +10 -1
  965. package/esm/tabs/root/TabsRoot.d.ts +7 -1
  966. package/esm/tabs/root/TabsRoot.js +115 -22
  967. package/esm/tabs/root/TabsRootContext.d.ts +1 -1
  968. package/esm/tabs/root/stateAttributesMapping.d.ts +2 -2
  969. package/esm/tabs/tab/TabsTab.d.ts +7 -1
  970. package/esm/tabs/tab/TabsTab.js +11 -1
  971. package/esm/temporal-adapter-date-fns/TemporalAdapterDateFns.d.ts +93 -0
  972. package/esm/temporal-adapter-date-fns/TemporalAdapterDateFns.js +352 -0
  973. package/esm/temporal-adapter-date-fns/index.d.ts +1 -0
  974. package/esm/temporal-adapter-date-fns/index.js +1 -0
  975. package/esm/temporal-adapter-luxon/TemporalAdapterLuxon.d.ts +89 -0
  976. package/esm/temporal-adapter-luxon/TemporalAdapterLuxon.js +327 -0
  977. package/esm/temporal-adapter-luxon/index.d.ts +1 -0
  978. package/esm/temporal-adapter-luxon/index.js +1 -0
  979. package/esm/temporal-adapter-provider/TemporalAdapterContext.d.ts +10 -0
  980. package/esm/temporal-adapter-provider/TemporalAdapterContext.js +19 -0
  981. package/esm/temporal-adapter-provider/TemporalAdapterProvider.d.ts +15 -0
  982. package/esm/temporal-adapter-provider/TemporalAdapterProvider.js +23 -0
  983. package/esm/temporal-adapter-provider/index.d.ts +1 -0
  984. package/esm/temporal-adapter-provider/index.js +1 -0
  985. package/esm/toast/action/ToastAction.d.ts +1 -1
  986. package/esm/toast/action/ToastAction.js +1 -0
  987. package/esm/toast/arrow/ToastArrow.d.ts +10 -1
  988. package/esm/toast/arrow/ToastArrow.js +1 -0
  989. package/esm/toast/close/ToastClose.d.ts +1 -1
  990. package/esm/toast/close/ToastClose.js +1 -0
  991. package/esm/toast/content/ToastContent.d.ts +1 -1
  992. package/esm/toast/content/ToastContent.js +1 -0
  993. package/esm/toast/createToastManager.d.ts +1 -1
  994. package/esm/toast/description/ToastDescription.d.ts +1 -1
  995. package/esm/toast/description/ToastDescription.js +1 -0
  996. package/esm/toast/portal/ToastPortal.d.ts +3 -4
  997. package/esm/toast/positioner/ToastPositioner.d.ts +12 -3
  998. package/esm/toast/positioner/ToastPositioner.js +11 -26
  999. package/esm/toast/positioner/ToastPositionerContext.d.ts +2 -8
  1000. package/esm/toast/provider/ToastProvider.d.ts +2 -0
  1001. package/esm/toast/provider/ToastProvider.js +1 -1
  1002. package/esm/toast/root/ToastRoot.d.ts +20 -7
  1003. package/esm/toast/root/ToastRoot.js +23 -8
  1004. package/esm/toast/root/ToastRootDataAttributes.js +4 -3
  1005. package/esm/toast/store.d.ts +10 -3
  1006. package/esm/toast/store.js +74 -20
  1007. package/esm/toast/title/ToastTitle.d.ts +1 -1
  1008. package/esm/toast/title/ToastTitle.js +1 -0
  1009. package/esm/toast/useToastManager.d.ts +13 -5
  1010. package/esm/toast/viewport/ToastViewport.d.ts +1 -1
  1011. package/esm/toast/viewport/ToastViewport.js +36 -26
  1012. package/esm/toggle/Toggle.d.ts +1 -1
  1013. package/esm/toggle/Toggle.js +2 -0
  1014. package/esm/toggle-group/ToggleGroup.d.ts +1 -1
  1015. package/esm/toggle-group/ToggleGroup.js +4 -1
  1016. package/esm/toolbar/button/ToolbarButton.d.ts +10 -4
  1017. package/esm/toolbar/button/ToolbarButton.js +2 -0
  1018. package/esm/toolbar/group/ToolbarGroup.d.ts +4 -2
  1019. package/esm/toolbar/group/ToolbarGroup.js +1 -0
  1020. package/esm/toolbar/input/ToolbarInput.d.ts +10 -4
  1021. package/esm/toolbar/input/ToolbarInput.js +2 -0
  1022. package/esm/toolbar/link/ToolbarLink.d.ts +4 -1
  1023. package/esm/toolbar/link/ToolbarLink.js +2 -0
  1024. package/esm/toolbar/root/ToolbarRoot.d.ts +7 -1
  1025. package/esm/toolbar/root/ToolbarRoot.js +2 -0
  1026. package/esm/toolbar/separator/ToolbarSeparator.d.ts +4 -2
  1027. package/esm/tooltip/arrow/TooltipArrow.d.ts +13 -1
  1028. package/esm/tooltip/arrow/TooltipArrow.js +2 -1
  1029. package/esm/tooltip/index.d.ts +1 -0
  1030. package/esm/tooltip/popup/TooltipPopup.d.ts +13 -1
  1031. package/esm/tooltip/popup/TooltipPopup.js +1 -0
  1032. package/esm/tooltip/portal/TooltipPortal.d.ts +3 -4
  1033. package/esm/tooltip/positioner/TooltipPositioner.d.ts +11 -2
  1034. package/esm/tooltip/positioner/TooltipPositioner.js +10 -29
  1035. package/esm/tooltip/positioner/TooltipPositionerContext.d.ts +2 -9
  1036. package/esm/tooltip/provider/TooltipProvider.d.ts +2 -0
  1037. package/esm/tooltip/root/TooltipRoot.d.ts +5 -5
  1038. package/esm/tooltip/root/TooltipRoot.js +3 -3
  1039. package/esm/tooltip/store/TooltipStore.d.ts +2 -0
  1040. package/esm/tooltip/store/TooltipStore.js +3 -0
  1041. package/esm/tooltip/trigger/TooltipTrigger.d.ts +6 -1
  1042. package/esm/tooltip/trigger/TooltipTrigger.js +8 -1
  1043. package/esm/tooltip/viewport/TooltipViewport.d.ts +16 -12
  1044. package/esm/tooltip/viewport/TooltipViewport.js +1 -0
  1045. package/esm/types/index.d.ts +16 -1
  1046. package/esm/types/temporal/index.d.ts +2 -0
  1047. package/esm/types/temporal/index.js +2 -0
  1048. package/esm/types/temporal/temporal-adapter.d.ts +371 -0
  1049. package/esm/types/temporal/temporal-adapter.js +1 -0
  1050. package/esm/types/temporal/temporal.d.ts +35 -0
  1051. package/esm/types/temporal/temporal.js +1 -0
  1052. package/esm/unstable-use-media-query/index.d.ts +2 -0
  1053. package/esm/unstable-use-media-query/index.js +2 -6
  1054. package/esm/use-button/useButton.d.ts +8 -5
  1055. package/esm/use-button/useButton.js +49 -20
  1056. package/esm/use-render/useRender.d.ts +8 -6
  1057. package/esm/utils/FloatingPortalLite.d.ts +4 -2
  1058. package/esm/utils/FloatingPortalLite.js +1 -0
  1059. package/esm/utils/InternalBackdrop.d.ts +3 -1
  1060. package/esm/utils/InternalBackdrop.js +2 -13
  1061. package/esm/utils/closePart.d.ts +16 -0
  1062. package/esm/utils/closePart.js +40 -0
  1063. package/esm/utils/constants.d.ts +4 -0
  1064. package/esm/utils/constants.js +4 -0
  1065. package/esm/utils/createBaseUIEventDetails.d.ts +3 -3
  1066. package/esm/utils/getElementAtPoint.d.ts +1 -0
  1067. package/esm/utils/getElementAtPoint.js +3 -0
  1068. package/esm/utils/getPseudoElementBounds.js +4 -2
  1069. package/esm/utils/popups/store.js +1 -1
  1070. package/esm/utils/popups/useTriggerFocusGuards.d.ts +28 -0
  1071. package/esm/utils/popups/useTriggerFocusGuards.js +55 -0
  1072. package/esm/utils/reason-parts.d.ts +4 -1
  1073. package/esm/utils/reason-parts.js +4 -1
  1074. package/esm/utils/resolveAriaLabelledBy.d.ts +2 -0
  1075. package/esm/utils/resolveAriaLabelledBy.js +8 -0
  1076. package/esm/utils/resolveValueLabel.d.ts +4 -4
  1077. package/esm/utils/resolveValueLabel.js +7 -5
  1078. package/esm/{scroll-area/utils → utils}/scrollEdges.d.ts +1 -0
  1079. package/esm/{scroll-area/utils → utils}/scrollEdges.js +4 -1
  1080. package/esm/utils/temporal/date-helpers.d.ts +15 -0
  1081. package/esm/utils/temporal/date-helpers.js +43 -0
  1082. package/esm/utils/temporal/getDateManager.d.ts +5 -0
  1083. package/esm/utils/temporal/getDateManager.js +19 -0
  1084. package/esm/utils/temporal/getInitialReferenceDate.d.ts +27 -0
  1085. package/esm/utils/temporal/getInitialReferenceDate.js +28 -0
  1086. package/esm/utils/temporal/types.d.ts +65 -0
  1087. package/esm/utils/temporal/types.js +1 -0
  1088. package/esm/utils/temporal/validateDate.d.ts +27 -0
  1089. package/esm/utils/temporal/validateDate.js +25 -0
  1090. package/esm/utils/types.d.ts +18 -25
  1091. package/esm/utils/useAnchorPositioning.d.ts +53 -18
  1092. package/esm/utils/useAnchorPositioning.js +24 -9
  1093. package/esm/utils/useAnchoredPopupScrollLock.d.ts +6 -0
  1094. package/esm/utils/useAnchoredPopupScrollLock.js +31 -0
  1095. package/esm/utils/useAnimationsFinished.js +48 -51
  1096. package/esm/utils/useFocusableWhenDisabled.d.ts +2 -5
  1097. package/esm/utils/useIsHydrating.d.ts +5 -0
  1098. package/esm/utils/useIsHydrating.js +19 -0
  1099. package/esm/utils/useMixedToggleClickHandler.d.ts +2 -4
  1100. package/esm/utils/useOpenChangeComplete.d.ts +2 -4
  1101. package/esm/utils/useOpenInteractionType.d.ts +0 -1
  1102. package/esm/utils/useOpenInteractionType.js +7 -5
  1103. package/esm/utils/usePopupAutoResize.js +1 -2
  1104. package/esm/utils/usePopupViewport.js +13 -9
  1105. package/esm/utils/usePositioner.d.ts +23 -0
  1106. package/esm/utils/usePositioner.js +34 -0
  1107. package/esm/utils/usePressAndHold.d.ts +58 -0
  1108. package/esm/utils/usePressAndHold.js +192 -0
  1109. package/esm/utils/useRegisteredLabelId.d.ts +1 -0
  1110. package/esm/utils/useRegisteredLabelId.js +14 -0
  1111. package/esm/utils/useRenderElement.d.ts +6 -9
  1112. package/esm/utils/useRenderElement.js +31 -1
  1113. package/esm/utils/useSwipeDismiss.d.ts +92 -92
  1114. package/esm/utils/useSwipeDismiss.js +6 -3
  1115. package/esm/utils/useTransitionStatus.js +3 -3
  1116. package/field/control/FieldControl.d.ts +3 -3
  1117. package/field/control/FieldControl.js +6 -6
  1118. package/field/description/FieldDescription.d.ts +3 -3
  1119. package/field/description/FieldDescription.js +1 -0
  1120. package/field/error/FieldError.d.ts +8 -5
  1121. package/field/error/FieldError.js +8 -5
  1122. package/field/error/FieldErrorDataAttributes.d.ts +8 -0
  1123. package/field/error/FieldErrorDataAttributes.js +10 -1
  1124. package/field/item/FieldItem.d.ts +4 -3
  1125. package/field/item/FieldItem.js +3 -2
  1126. package/field/label/FieldLabel.d.ts +4 -4
  1127. package/field/label/FieldLabel.js +7 -51
  1128. package/field/root/FieldRoot.d.ts +19 -2
  1129. package/field/root/FieldRoot.js +14 -2
  1130. package/field/root/FieldRootContext.d.ts +4 -2
  1131. package/field/root/FieldRootContext.js +6 -12
  1132. package/field/root/useFieldControlRegistration.d.ts +17 -0
  1133. package/field/root/useFieldControlRegistration.js +131 -0
  1134. package/field/root/useFieldValidation.js +5 -4
  1135. package/field/root/useRegisterFieldControl.d.ts +5 -0
  1136. package/field/root/useRegisterFieldControl.js +41 -0
  1137. package/field/utils/constants.d.ts +3 -0
  1138. package/field/utils/constants.js +12 -1
  1139. package/field/validity/FieldValidity.d.ts +8 -2
  1140. package/field/validity/FieldValidity.js +1 -1
  1141. package/fieldset/legend/FieldsetLegend.d.ts +1 -1
  1142. package/fieldset/legend/FieldsetLegend.js +1 -0
  1143. package/fieldset/root/FieldsetRoot.d.ts +1 -1
  1144. package/fieldset/root/FieldsetRoot.js +1 -0
  1145. package/floating-ui-react/components/FloatingDelayGroup.js +2 -2
  1146. package/floating-ui-react/components/FloatingFocusManager.d.ts +12 -7
  1147. package/floating-ui-react/components/FloatingFocusManager.js +97 -125
  1148. package/floating-ui-react/components/FloatingPortal.d.ts +6 -4
  1149. package/floating-ui-react/components/FloatingPortal.js +23 -17
  1150. package/floating-ui-react/components/FloatingRootStore.d.ts +18 -2
  1151. package/floating-ui-react/components/FloatingRootStore.js +34 -17
  1152. package/floating-ui-react/hooks/useClick.d.ts +2 -2
  1153. package/floating-ui-react/hooks/useClick.js +8 -6
  1154. package/floating-ui-react/hooks/useClientPoint.d.ts +1 -1
  1155. package/floating-ui-react/hooks/useClientPoint.js +9 -8
  1156. package/floating-ui-react/hooks/useDismiss.d.ts +8 -12
  1157. package/floating-ui-react/hooks/useDismiss.js +306 -284
  1158. package/floating-ui-react/hooks/useFloating.js +4 -3
  1159. package/floating-ui-react/hooks/useFloatingRootContext.d.ts +2 -2
  1160. package/floating-ui-react/hooks/useFloatingRootContext.js +3 -3
  1161. package/floating-ui-react/hooks/useFocus.d.ts +1 -1
  1162. package/floating-ui-react/hooks/useFocus.js +12 -21
  1163. package/floating-ui-react/hooks/useHover.d.ts +7 -15
  1164. package/floating-ui-react/hooks/useHover.js +14 -78
  1165. package/floating-ui-react/hooks/useHoverFloatingInteraction.d.ts +7 -3
  1166. package/floating-ui-react/hooks/useHoverFloatingInteraction.js +69 -86
  1167. package/floating-ui-react/hooks/useHoverInteractionSharedState.d.ts +12 -3
  1168. package/floating-ui-react/hooks/useHoverInteractionSharedState.js +49 -10
  1169. package/floating-ui-react/hooks/useHoverReferenceInteraction.d.ts +9 -3
  1170. package/floating-ui-react/hooks/useHoverReferenceInteraction.js +119 -103
  1171. package/floating-ui-react/hooks/useHoverShared.d.ts +28 -0
  1172. package/floating-ui-react/hooks/useHoverShared.js +34 -0
  1173. package/floating-ui-react/hooks/useListNavigation.d.ts +8 -8
  1174. package/floating-ui-react/hooks/useListNavigation.js +61 -53
  1175. package/floating-ui-react/hooks/useRole.d.ts +1 -1
  1176. package/floating-ui-react/hooks/useRole.js +2 -2
  1177. package/floating-ui-react/hooks/useSyncedFloatingRootContext.d.ts +0 -4
  1178. package/floating-ui-react/hooks/useSyncedFloatingRootContext.js +3 -4
  1179. package/floating-ui-react/hooks/useTypeahead.d.ts +7 -1
  1180. package/floating-ui-react/hooks/useTypeahead.js +35 -17
  1181. package/floating-ui-react/safePolygon.d.ts +2 -6
  1182. package/floating-ui-react/safePolygon.js +150 -119
  1183. package/floating-ui-react/types.d.ts +5 -4
  1184. package/floating-ui-react/utils/composite.d.ts +7 -4
  1185. package/floating-ui-react/utils/composite.js +178 -147
  1186. package/floating-ui-react/utils/element.d.ts +3 -3
  1187. package/floating-ui-react/utils/element.js +24 -45
  1188. package/floating-ui-react/utils/enqueueFocus.d.ts +3 -2
  1189. package/floating-ui-react/utils/enqueueFocus.js +10 -2
  1190. package/floating-ui-react/utils/getEmptyRootContext.js +2 -1
  1191. package/floating-ui-react/utils/markOthers.d.ts +7 -1
  1192. package/floating-ui-react/utils/markOthers.js +118 -80
  1193. package/floating-ui-react/utils/nodes.js +2 -2
  1194. package/floating-ui-react/utils/shadowDom.d.ts +3 -0
  1195. package/floating-ui-react/utils/shadowDom.js +48 -0
  1196. package/floating-ui-react/utils/tabbable.d.ts +4 -5
  1197. package/floating-ui-react/utils/tabbable.js +129 -15
  1198. package/form/Form.d.ts +1 -1
  1199. package/form/Form.js +1 -0
  1200. package/global.d.ts +1 -1
  1201. package/index.d.ts +1 -0
  1202. package/index.js +12 -1
  1203. package/input/Input.d.ts +11 -4
  1204. package/labelable-provider/LabelableProvider.d.ts +4 -1
  1205. package/labelable-provider/LabelableProvider.js +3 -2
  1206. package/labelable-provider/useAriaLabelledBy.d.ts +9 -0
  1207. package/labelable-provider/useAriaLabelledBy.js +61 -0
  1208. package/labelable-provider/useLabel.d.ts +25 -0
  1209. package/labelable-provider/useLabel.js +79 -0
  1210. package/labelable-provider/useLabelableId.d.ts +2 -5
  1211. package/localization-provider/LocalizationContext.d.ts +10 -0
  1212. package/localization-provider/LocalizationContext.js +24 -0
  1213. package/localization-provider/LocalizationProvider.d.ts +20 -0
  1214. package/localization-provider/LocalizationProvider.js +42 -0
  1215. package/localization-provider/index.d.ts +2 -0
  1216. package/localization-provider/index.js +19 -0
  1217. package/menu/arrow/MenuArrow.d.ts +10 -1
  1218. package/menu/arrow/MenuArrow.js +1 -0
  1219. package/menu/backdrop/MenuBackdrop.d.ts +4 -1
  1220. package/menu/backdrop/MenuBackdrop.js +1 -0
  1221. package/menu/checkbox-item/MenuCheckboxItem.d.ts +3 -3
  1222. package/menu/checkbox-item/MenuCheckboxItem.js +2 -1
  1223. package/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.d.ts +7 -1
  1224. package/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +1 -0
  1225. package/menu/group/MenuGroup.d.ts +1 -1
  1226. package/menu/group/MenuGroup.js +1 -0
  1227. package/menu/group-label/MenuGroupLabel.d.ts +1 -1
  1228. package/menu/group-label/MenuGroupLabel.js +1 -0
  1229. package/menu/index.d.ts +2 -1
  1230. package/menu/index.parts.d.ts +1 -0
  1231. package/menu/index.parts.js +7 -0
  1232. package/menu/item/MenuItem.d.ts +1 -1
  1233. package/menu/item/MenuItem.js +2 -1
  1234. package/menu/item/useMenuItem.d.ts +9 -8
  1235. package/menu/item/useMenuItem.js +5 -7
  1236. package/menu/item/useMenuItemCommonProps.d.ts +7 -4
  1237. package/menu/item/useMenuItemCommonProps.js +16 -2
  1238. package/menu/link-item/MenuLinkItem.d.ts +1 -1
  1239. package/menu/link-item/MenuLinkItem.js +18 -3
  1240. package/menu/popup/MenuPopup.d.ts +20 -5
  1241. package/menu/popup/MenuPopup.js +5 -1
  1242. package/menu/popup/MenuPopupDataAttributes.d.ts +1 -1
  1243. package/menu/popup/MenuPopupDataAttributes.js +1 -1
  1244. package/menu/portal/MenuPortal.d.ts +3 -4
  1245. package/menu/positioner/MenuPositioner.d.ts +18 -2
  1246. package/menu/positioner/MenuPositioner.js +71 -35
  1247. package/menu/positioner/MenuPositionerContext.d.ts +2 -15
  1248. package/menu/radio-group/MenuRadioGroup.d.ts +6 -3
  1249. package/menu/radio-group/MenuRadioGroup.js +1 -0
  1250. package/menu/radio-item/MenuRadioItem.d.ts +3 -3
  1251. package/menu/radio-item/MenuRadioItem.js +2 -1
  1252. package/menu/radio-item-indicator/MenuRadioItemIndicator.d.ts +7 -1
  1253. package/menu/radio-item-indicator/MenuRadioItemIndicator.js +1 -0
  1254. package/menu/root/MenuRoot.d.ts +6 -4
  1255. package/menu/root/MenuRoot.js +9 -19
  1256. package/menu/store/MenuStore.d.ts +7 -2
  1257. package/menu/store/MenuStore.js +17 -1
  1258. package/menu/submenu-root/MenuSubmenuRoot.d.ts +1 -1
  1259. package/menu/submenu-root/MenuSubmenuRoot.js +1 -1
  1260. package/menu/submenu-trigger/MenuSubmenuTrigger.js +19 -2
  1261. package/menu/trigger/MenuTrigger.d.ts +3 -3
  1262. package/menu/trigger/MenuTrigger.js +10 -30
  1263. package/menu/viewport/MenuViewport.d.ts +30 -0
  1264. package/menu/viewport/MenuViewport.js +67 -0
  1265. package/menu/viewport/MenuViewportCssVars.d.ts +14 -0
  1266. package/menu/viewport/MenuViewportCssVars.js +21 -0
  1267. package/menu/viewport/MenuViewportDataAttributes.d.ts +26 -0
  1268. package/menu/viewport/MenuViewportDataAttributes.js +33 -0
  1269. package/menubar/Menubar.d.ts +1 -1
  1270. package/menubar/Menubar.js +7 -17
  1271. package/menubar/MenubarDataAttributes.d.ts +6 -3
  1272. package/menubar/MenubarDataAttributes.js +10 -7
  1273. package/merge-props/mergeProps.d.ts +1 -1
  1274. package/merge-props/mergeProps.js +53 -18
  1275. package/meter/indicator/MeterIndicator.d.ts +4 -2
  1276. package/meter/indicator/MeterIndicator.js +1 -0
  1277. package/meter/label/MeterLabel.d.ts +4 -2
  1278. package/meter/label/MeterLabel.js +5 -8
  1279. package/meter/root/MeterRoot.d.ts +1 -1
  1280. package/meter/root/MeterRoot.js +11 -1
  1281. package/meter/track/MeterTrack.d.ts +4 -2
  1282. package/meter/track/MeterTrack.js +1 -0
  1283. package/meter/value/MeterValue.d.ts +5 -3
  1284. package/meter/value/MeterValue.js +1 -0
  1285. package/navigation-menu/arrow/NavigationMenuArrow.d.ts +10 -1
  1286. package/navigation-menu/arrow/NavigationMenuArrow.js +1 -0
  1287. package/navigation-menu/backdrop/NavigationMenuBackdrop.d.ts +1 -1
  1288. package/navigation-menu/backdrop/NavigationMenuBackdrop.js +1 -0
  1289. package/navigation-menu/content/NavigationMenuContent.d.ts +1 -1
  1290. package/navigation-menu/content/NavigationMenuContent.js +14 -0
  1291. package/navigation-menu/icon/NavigationMenuIcon.d.ts +1 -1
  1292. package/navigation-menu/icon/NavigationMenuIcon.js +1 -0
  1293. package/navigation-menu/item/NavigationMenuItem.d.ts +1 -1
  1294. package/navigation-menu/item/NavigationMenuItem.js +1 -0
  1295. package/navigation-menu/link/NavigationMenuLink.d.ts +1 -1
  1296. package/navigation-menu/link/NavigationMenuLink.js +2 -0
  1297. package/navigation-menu/list/NavigationMenuList.d.ts +1 -1
  1298. package/navigation-menu/list/NavigationMenuList.js +15 -2
  1299. package/navigation-menu/popup/NavigationMenuPopup.d.ts +1 -1
  1300. package/navigation-menu/popup/NavigationMenuPopup.js +1 -0
  1301. package/navigation-menu/portal/NavigationMenuPortal.d.ts +4 -5
  1302. package/navigation-menu/positioner/NavigationMenuPositioner.d.ts +11 -2
  1303. package/navigation-menu/positioner/NavigationMenuPositioner.js +13 -32
  1304. package/navigation-menu/root/NavigationMenuRoot.d.ts +12 -9
  1305. package/navigation-menu/root/NavigationMenuRoot.js +34 -7
  1306. package/navigation-menu/root/NavigationMenuRootContext.d.ts +11 -6
  1307. package/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -1
  1308. package/navigation-menu/trigger/NavigationMenuTrigger.js +400 -20
  1309. package/navigation-menu/utils/isOutsideMenuEvent.d.ts +1 -1
  1310. package/navigation-menu/viewport/NavigationMenuViewport.d.ts +1 -1
  1311. package/navigation-menu/viewport/NavigationMenuViewport.js +1 -19
  1312. package/number-field/decrement/NumberFieldDecrement.d.ts +3 -3
  1313. package/number-field/decrement/NumberFieldDecrement.js +1 -10
  1314. package/number-field/group/NumberFieldGroup.d.ts +3 -3
  1315. package/number-field/group/NumberFieldGroup.js +1 -0
  1316. package/number-field/increment/NumberFieldIncrement.d.ts +3 -3
  1317. package/number-field/increment/NumberFieldIncrement.js +1 -10
  1318. package/number-field/input/NumberFieldInput.d.ts +3 -3
  1319. package/number-field/input/NumberFieldInput.js +6 -10
  1320. package/number-field/root/NumberFieldRoot.d.ts +10 -5
  1321. package/number-field/root/NumberFieldRoot.js +10 -75
  1322. package/number-field/root/NumberFieldRootContext.d.ts +2 -8
  1323. package/number-field/root/useNumberFieldButton.d.ts +2 -11
  1324. package/number-field/root/useNumberFieldButton.js +32 -101
  1325. package/number-field/scrub-area/NumberFieldScrubArea.d.ts +4 -4
  1326. package/number-field/scrub-area/NumberFieldScrubArea.js +8 -9
  1327. package/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.d.ts +3 -3
  1328. package/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.js +1 -0
  1329. package/number-field/utils/constants.d.ts +0 -2
  1330. package/number-field/utils/constants.js +1 -3
  1331. package/number-field/utils/stateAttributesMapping.d.ts +2 -2
  1332. package/number-field/utils/subscribeToVisualViewportResize.js +2 -4
  1333. package/number-field/utils/types.d.ts +2 -2
  1334. package/otp-field/index.d.ts +3 -0
  1335. package/otp-field/index.js +9 -0
  1336. package/otp-field/index.parts.d.ts +3 -0
  1337. package/otp-field/index.parts.js +26 -0
  1338. package/otp-field/input/OTPFieldInput.d.ts +29 -0
  1339. package/otp-field/input/OTPFieldInput.js +242 -0
  1340. package/otp-field/input/OTPFieldInputDataAttributes.d.ts +42 -0
  1341. package/otp-field/input/OTPFieldInputDataAttributes.js +49 -0
  1342. package/otp-field/root/OTPFieldRoot.d.ts +159 -0
  1343. package/otp-field/root/OTPFieldRoot.js +413 -0
  1344. package/otp-field/root/OTPFieldRootContext.d.ts +31 -0
  1345. package/otp-field/root/OTPFieldRootContext.js +30 -0
  1346. package/otp-field/root/OTPFieldRootDataAttributes.d.ts +42 -0
  1347. package/otp-field/root/OTPFieldRootDataAttributes.js +49 -0
  1348. package/otp-field/utils/otp.d.ts +21 -0
  1349. package/otp-field/utils/otp.js +76 -0
  1350. package/otp-field/utils/stateAttributesMapping.d.ts +5 -0
  1351. package/otp-field/utils/stateAttributesMapping.js +17 -0
  1352. package/package.json +202 -10
  1353. package/popover/arrow/PopoverArrow.d.ts +10 -1
  1354. package/popover/arrow/PopoverArrow.js +1 -0
  1355. package/popover/backdrop/PopoverBackdrop.d.ts +4 -1
  1356. package/popover/backdrop/PopoverBackdrop.js +1 -0
  1357. package/popover/close/PopoverClose.d.ts +1 -1
  1358. package/popover/close/PopoverClose.js +6 -3
  1359. package/popover/description/PopoverDescription.d.ts +1 -1
  1360. package/popover/description/PopoverDescription.js +1 -0
  1361. package/popover/popup/PopoverPopup.d.ts +15 -3
  1362. package/popover/popup/PopoverPopup.js +13 -2
  1363. package/popover/portal/PopoverPortal.d.ts +3 -4
  1364. package/popover/positioner/PopoverPositioner.d.ts +11 -2
  1365. package/popover/positioner/PopoverPositioner.js +16 -30
  1366. package/popover/root/PopoverRoot.d.ts +12 -5
  1367. package/popover/root/PopoverRoot.js +2 -8
  1368. package/popover/store/PopoverStore.d.ts +2 -0
  1369. package/popover/store/PopoverStore.js +3 -9
  1370. package/popover/title/PopoverTitle.d.ts +1 -1
  1371. package/popover/title/PopoverTitle.js +1 -0
  1372. package/popover/trigger/PopoverTrigger.js +11 -33
  1373. package/popover/viewport/PopoverViewport.d.ts +16 -12
  1374. package/popover/viewport/PopoverViewport.js +1 -0
  1375. package/preview-card/arrow/PreviewCardArrow.d.ts +10 -1
  1376. package/preview-card/arrow/PreviewCardArrow.js +1 -0
  1377. package/preview-card/backdrop/PreviewCardBackdrop.d.ts +4 -1
  1378. package/preview-card/backdrop/PreviewCardBackdrop.js +1 -0
  1379. package/preview-card/index.d.ts +1 -0
  1380. package/preview-card/popup/PreviewCardPopup.d.ts +13 -1
  1381. package/preview-card/popup/PreviewCardPopup.js +1 -0
  1382. package/preview-card/portal/PreviewCardPortal.d.ts +3 -4
  1383. package/preview-card/positioner/PreviewCardPositioner.d.ts +14 -2
  1384. package/preview-card/positioner/PreviewCardPositioner.js +17 -31
  1385. package/preview-card/positioner/PreviewCardPositionerContext.d.ts +2 -8
  1386. package/preview-card/root/PreviewCardRoot.d.ts +5 -5
  1387. package/preview-card/root/PreviewCardRoot.js +21 -8
  1388. package/preview-card/store/PreviewCardStore.js +1 -0
  1389. package/preview-card/trigger/PreviewCardTrigger.d.ts +1 -1
  1390. package/preview-card/trigger/PreviewCardTrigger.js +3 -1
  1391. package/preview-card/viewport/PreviewCardViewport.d.ts +16 -9
  1392. package/preview-card/viewport/PreviewCardViewport.js +1 -0
  1393. package/progress/indicator/ProgressIndicator.d.ts +4 -2
  1394. package/progress/indicator/ProgressIndicator.js +1 -0
  1395. package/progress/indicator/ProgressIndicatorDataAttributes.d.ts +1 -1
  1396. package/progress/indicator/ProgressIndicatorDataAttributes.js +1 -1
  1397. package/progress/label/ProgressLabel.d.ts +4 -2
  1398. package/progress/label/ProgressLabel.js +5 -8
  1399. package/progress/label/ProgressLabelDataAttributes.d.ts +1 -1
  1400. package/progress/label/ProgressLabelDataAttributes.js +1 -1
  1401. package/progress/root/ProgressRoot.d.ts +4 -1
  1402. package/progress/root/ProgressRoot.js +11 -1
  1403. package/progress/root/ProgressRootContext.d.ts +2 -2
  1404. package/progress/root/ProgressRootDataAttributes.d.ts +1 -1
  1405. package/progress/root/ProgressRootDataAttributes.js +1 -1
  1406. package/progress/root/stateAttributesMapping.d.ts +2 -2
  1407. package/progress/track/ProgressTrack.d.ts +4 -2
  1408. package/progress/track/ProgressTrack.js +1 -0
  1409. package/progress/track/ProgressTrackDataAttributes.d.ts +1 -1
  1410. package/progress/track/ProgressTrackDataAttributes.js +1 -1
  1411. package/progress/value/ProgressValue.d.ts +5 -3
  1412. package/progress/value/ProgressValue.js +1 -0
  1413. package/progress/value/ProgressValueDataAttributes.d.ts +1 -1
  1414. package/progress/value/ProgressValueDataAttributes.js +1 -1
  1415. package/radio/indicator/RadioIndicator.d.ts +4 -1
  1416. package/radio/indicator/RadioIndicator.js +1 -0
  1417. package/radio/indicator/RadioIndicatorDataAttributes.d.ts +8 -0
  1418. package/radio/indicator/RadioIndicatorDataAttributes.js +10 -1
  1419. package/radio/root/RadioRoot.d.ts +3 -3
  1420. package/radio/root/RadioRoot.js +11 -2
  1421. package/radio-group/RadioGroup.d.ts +8 -3
  1422. package/radio-group/RadioGroup.js +9 -7
  1423. package/radio-group/RadioGroupContext.d.ts +1 -0
  1424. package/scroll-area/content/ScrollAreaContent.d.ts +3 -3
  1425. package/scroll-area/content/ScrollAreaContent.js +1 -0
  1426. package/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
  1427. package/scroll-area/corner/ScrollAreaCorner.js +1 -0
  1428. package/scroll-area/root/ScrollAreaRoot.d.ts +27 -11
  1429. package/scroll-area/root/ScrollAreaRoot.js +8 -4
  1430. package/scroll-area/root/ScrollAreaRootContext.d.ts +4 -2
  1431. package/scroll-area/root/stateAttributes.d.ts +2 -2
  1432. package/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +14 -8
  1433. package/scroll-area/scrollbar/ScrollAreaScrollbar.js +13 -7
  1434. package/scroll-area/thumb/ScrollAreaThumb.d.ts +5 -2
  1435. package/scroll-area/thumb/ScrollAreaThumb.js +4 -1
  1436. package/scroll-area/viewport/ScrollAreaViewport.d.ts +3 -3
  1437. package/scroll-area/viewport/ScrollAreaViewport.js +45 -34
  1438. package/select/arrow/SelectArrow.d.ts +10 -1
  1439. package/select/arrow/SelectArrow.js +1 -0
  1440. package/select/backdrop/SelectBackdrop.d.ts +7 -1
  1441. package/select/backdrop/SelectBackdrop.js +1 -0
  1442. package/select/group/SelectGroup.d.ts +1 -1
  1443. package/select/group/SelectGroup.js +1 -0
  1444. package/select/group-label/SelectGroupLabel.d.ts +1 -1
  1445. package/select/group-label/SelectGroupLabel.js +1 -0
  1446. package/select/icon/SelectIcon.d.ts +1 -1
  1447. package/select/icon/SelectIcon.js +1 -0
  1448. package/select/index.d.ts +1 -0
  1449. package/select/index.parts.d.ts +1 -0
  1450. package/select/index.parts.js +7 -0
  1451. package/select/item/SelectItem.d.ts +1 -1
  1452. package/select/item/SelectItem.js +19 -38
  1453. package/select/item-indicator/SelectItemIndicator.d.ts +10 -2
  1454. package/select/item-indicator/SelectItemIndicator.js +1 -0
  1455. package/select/item-indicator/SelectItemIndicatorDataAttributes.d.ts +10 -0
  1456. package/select/item-indicator/SelectItemIndicatorDataAttributes.js +18 -0
  1457. package/select/item-text/SelectItemText.d.ts +1 -1
  1458. package/select/item-text/SelectItemText.js +1 -0
  1459. package/select/label/SelectLabel.d.ts +16 -0
  1460. package/select/label/SelectLabel.js +55 -0
  1461. package/select/list/SelectList.d.ts +1 -1
  1462. package/select/list/SelectList.js +1 -0
  1463. package/select/popup/SelectPopup.d.ts +14 -2
  1464. package/select/popup/SelectPopup.js +152 -166
  1465. package/select/portal/SelectPortal.d.ts +3 -4
  1466. package/select/positioner/SelectPositioner.d.ts +14 -2
  1467. package/select/positioner/SelectPositioner.js +11 -24
  1468. package/select/positioner/SelectPositionerContext.d.ts +2 -2
  1469. package/select/root/SelectRoot.d.ts +12 -6
  1470. package/select/root/SelectRoot.js +41 -29
  1471. package/select/scroll-arrow/SelectScrollArrow.d.ts +13 -1
  1472. package/select/scroll-arrow/SelectScrollArrow.js +47 -63
  1473. package/select/scroll-down-arrow/SelectScrollDownArrow.d.ts +1 -1
  1474. package/select/scroll-up-arrow/SelectScrollUpArrow.d.ts +1 -1
  1475. package/select/store.d.ts +5 -2
  1476. package/select/store.js +1 -0
  1477. package/select/trigger/SelectTrigger.d.ts +6 -4
  1478. package/select/trigger/SelectTrigger.js +6 -2
  1479. package/select/value/SelectValue.d.ts +1 -1
  1480. package/select/value/SelectValue.js +1 -0
  1481. package/separator/Separator.d.ts +1 -1
  1482. package/separator/Separator.js +1 -0
  1483. package/separator/SeparatorDataAttributes.d.ts +7 -0
  1484. package/separator/SeparatorDataAttributes.js +14 -0
  1485. package/slider/control/SliderControl.d.ts +4 -3
  1486. package/slider/control/SliderControl.js +16 -9
  1487. package/slider/index.d.ts +1 -0
  1488. package/slider/index.parts.d.ts +1 -0
  1489. package/slider/index.parts.js +7 -0
  1490. package/slider/indicator/SliderIndicator.d.ts +4 -2
  1491. package/slider/indicator/SliderIndicator.js +6 -6
  1492. package/slider/label/SliderLabel.d.ts +16 -0
  1493. package/slider/label/SliderLabel.js +64 -0
  1494. package/slider/root/SliderRoot.d.ts +17 -6
  1495. package/slider/root/SliderRoot.js +15 -11
  1496. package/slider/root/SliderRootContext.d.ts +5 -2
  1497. package/slider/root/stateAttributesMapping.d.ts +2 -2
  1498. package/slider/thumb/SliderThumb.d.ts +5 -5
  1499. package/slider/thumb/SliderThumb.js +68 -25
  1500. package/slider/track/SliderTrack.d.ts +4 -2
  1501. package/slider/track/SliderTrack.js +1 -0
  1502. package/slider/utils/resolveThumbCollision.d.ts +2 -2
  1503. package/slider/utils/roundValueToStep.d.ts +1 -0
  1504. package/slider/utils/roundValueToStep.js +6 -1
  1505. package/slider/value/SliderValue.d.ts +5 -3
  1506. package/slider/value/SliderValue.js +1 -0
  1507. package/switch/root/SwitchRoot.d.ts +8 -3
  1508. package/switch/root/SwitchRoot.js +19 -11
  1509. package/switch/root/SwitchRootContext.d.ts +4 -4
  1510. package/switch/stateAttributesMapping.d.ts +2 -2
  1511. package/switch/thumb/SwitchThumb.d.ts +3 -3
  1512. package/switch/thumb/SwitchThumb.js +1 -0
  1513. package/tabs/indicator/TabsIndicator.d.ts +13 -4
  1514. package/tabs/indicator/TabsIndicator.js +9 -18
  1515. package/tabs/indicator/TabsIndicatorCssVars.d.ts +1 -1
  1516. package/tabs/indicator/TabsIndicatorCssVars.js +1 -1
  1517. package/tabs/list/TabsList.d.ts +3 -3
  1518. package/tabs/list/TabsList.js +51 -88
  1519. package/tabs/list/TabsListContext.d.ts +2 -0
  1520. package/tabs/panel/TabsPanel.d.ts +9 -3
  1521. package/tabs/panel/TabsPanel.js +1 -0
  1522. package/tabs/panel/TabsPanelDataAttributes.d.ts +8 -0
  1523. package/tabs/panel/TabsPanelDataAttributes.js +10 -1
  1524. package/tabs/root/TabsRoot.d.ts +7 -1
  1525. package/tabs/root/TabsRoot.js +115 -22
  1526. package/tabs/root/TabsRootContext.d.ts +1 -1
  1527. package/tabs/root/stateAttributesMapping.d.ts +2 -2
  1528. package/tabs/tab/TabsTab.d.ts +7 -1
  1529. package/tabs/tab/TabsTab.js +11 -1
  1530. package/temporal-adapter-date-fns/TemporalAdapterDateFns.d.ts +93 -0
  1531. package/temporal-adapter-date-fns/TemporalAdapterDateFns.js +358 -0
  1532. package/temporal-adapter-date-fns/index.d.ts +1 -0
  1533. package/temporal-adapter-date-fns/index.js +12 -0
  1534. package/temporal-adapter-luxon/TemporalAdapterLuxon.d.ts +89 -0
  1535. package/temporal-adapter-luxon/TemporalAdapterLuxon.js +333 -0
  1536. package/temporal-adapter-luxon/index.d.ts +1 -0
  1537. package/temporal-adapter-luxon/index.js +12 -0
  1538. package/temporal-adapter-provider/TemporalAdapterContext.d.ts +10 -0
  1539. package/temporal-adapter-provider/TemporalAdapterContext.js +27 -0
  1540. package/temporal-adapter-provider/TemporalAdapterProvider.d.ts +15 -0
  1541. package/temporal-adapter-provider/TemporalAdapterProvider.js +28 -0
  1542. package/temporal-adapter-provider/index.d.ts +1 -0
  1543. package/temporal-adapter-provider/index.js +12 -0
  1544. package/toast/action/ToastAction.d.ts +1 -1
  1545. package/toast/action/ToastAction.js +1 -0
  1546. package/toast/arrow/ToastArrow.d.ts +10 -1
  1547. package/toast/arrow/ToastArrow.js +1 -0
  1548. package/toast/close/ToastClose.d.ts +1 -1
  1549. package/toast/close/ToastClose.js +1 -0
  1550. package/toast/content/ToastContent.d.ts +1 -1
  1551. package/toast/content/ToastContent.js +1 -0
  1552. package/toast/createToastManager.d.ts +1 -1
  1553. package/toast/description/ToastDescription.d.ts +1 -1
  1554. package/toast/description/ToastDescription.js +1 -0
  1555. package/toast/portal/ToastPortal.d.ts +3 -4
  1556. package/toast/positioner/ToastPositioner.d.ts +12 -3
  1557. package/toast/positioner/ToastPositioner.js +11 -26
  1558. package/toast/positioner/ToastPositionerContext.d.ts +2 -8
  1559. package/toast/provider/ToastProvider.d.ts +2 -0
  1560. package/toast/provider/ToastProvider.js +1 -1
  1561. package/toast/root/ToastRoot.d.ts +20 -7
  1562. package/toast/root/ToastRoot.js +22 -7
  1563. package/toast/root/ToastRootDataAttributes.js +4 -3
  1564. package/toast/store.d.ts +10 -3
  1565. package/toast/store.js +74 -20
  1566. package/toast/title/ToastTitle.d.ts +1 -1
  1567. package/toast/title/ToastTitle.js +1 -0
  1568. package/toast/useToastManager.d.ts +13 -5
  1569. package/toast/viewport/ToastViewport.d.ts +1 -1
  1570. package/toast/viewport/ToastViewport.js +36 -26
  1571. package/toggle/Toggle.d.ts +1 -1
  1572. package/toggle/Toggle.js +2 -0
  1573. package/toggle-group/ToggleGroup.d.ts +1 -1
  1574. package/toggle-group/ToggleGroup.js +4 -1
  1575. package/toolbar/button/ToolbarButton.d.ts +10 -4
  1576. package/toolbar/button/ToolbarButton.js +2 -0
  1577. package/toolbar/group/ToolbarGroup.d.ts +4 -2
  1578. package/toolbar/group/ToolbarGroup.js +1 -0
  1579. package/toolbar/input/ToolbarInput.d.ts +10 -4
  1580. package/toolbar/input/ToolbarInput.js +2 -0
  1581. package/toolbar/link/ToolbarLink.d.ts +4 -1
  1582. package/toolbar/link/ToolbarLink.js +2 -0
  1583. package/toolbar/root/ToolbarRoot.d.ts +7 -1
  1584. package/toolbar/root/ToolbarRoot.js +2 -0
  1585. package/toolbar/separator/ToolbarSeparator.d.ts +4 -2
  1586. package/tooltip/arrow/TooltipArrow.d.ts +13 -1
  1587. package/tooltip/arrow/TooltipArrow.js +2 -1
  1588. package/tooltip/index.d.ts +1 -0
  1589. package/tooltip/popup/TooltipPopup.d.ts +13 -1
  1590. package/tooltip/popup/TooltipPopup.js +1 -0
  1591. package/tooltip/portal/TooltipPortal.d.ts +3 -4
  1592. package/tooltip/positioner/TooltipPositioner.d.ts +11 -2
  1593. package/tooltip/positioner/TooltipPositioner.js +10 -29
  1594. package/tooltip/positioner/TooltipPositionerContext.d.ts +2 -9
  1595. package/tooltip/provider/TooltipProvider.d.ts +2 -0
  1596. package/tooltip/root/TooltipRoot.d.ts +5 -5
  1597. package/tooltip/root/TooltipRoot.js +3 -3
  1598. package/tooltip/store/TooltipStore.d.ts +2 -0
  1599. package/tooltip/store/TooltipStore.js +3 -0
  1600. package/tooltip/trigger/TooltipTrigger.d.ts +6 -1
  1601. package/tooltip/trigger/TooltipTrigger.js +8 -1
  1602. package/tooltip/viewport/TooltipViewport.d.ts +16 -12
  1603. package/tooltip/viewport/TooltipViewport.js +1 -0
  1604. package/types/index.d.ts +16 -1
  1605. package/types/temporal/index.d.ts +2 -0
  1606. package/types/temporal/index.js +27 -0
  1607. package/types/temporal/temporal-adapter.d.ts +371 -0
  1608. package/types/temporal/temporal-adapter.js +5 -0
  1609. package/types/temporal/temporal.d.ts +35 -0
  1610. package/types/temporal/temporal.js +5 -0
  1611. package/unstable-use-media-query/index.d.ts +2 -0
  1612. package/unstable-use-media-query/index.js +2 -6
  1613. package/use-button/useButton.d.ts +8 -5
  1614. package/use-button/useButton.js +49 -20
  1615. package/use-render/useRender.d.ts +8 -6
  1616. package/utils/FloatingPortalLite.d.ts +4 -2
  1617. package/utils/FloatingPortalLite.js +1 -0
  1618. package/utils/InternalBackdrop.d.ts +3 -1
  1619. package/utils/InternalBackdrop.js +2 -13
  1620. package/utils/closePart.d.ts +16 -0
  1621. package/utils/closePart.js +48 -0
  1622. package/utils/constants.d.ts +4 -0
  1623. package/utils/constants.js +6 -2
  1624. package/utils/createBaseUIEventDetails.d.ts +3 -3
  1625. package/utils/getElementAtPoint.d.ts +1 -0
  1626. package/utils/getElementAtPoint.js +9 -0
  1627. package/utils/getPseudoElementBounds.js +4 -2
  1628. package/utils/popups/store.js +1 -1
  1629. package/utils/popups/useTriggerFocusGuards.d.ts +28 -0
  1630. package/utils/popups/useTriggerFocusGuards.js +60 -0
  1631. package/utils/reason-parts.d.ts +4 -1
  1632. package/utils/reason-parts.js +5 -2
  1633. package/utils/resolveAriaLabelledBy.d.ts +2 -0
  1634. package/utils/resolveAriaLabelledBy.js +14 -0
  1635. package/utils/resolveValueLabel.d.ts +4 -4
  1636. package/utils/resolveValueLabel.js +7 -5
  1637. package/{scroll-area/utils → utils}/scrollEdges.d.ts +1 -0
  1638. package/{scroll-area/utils → utils}/scrollEdges.js +5 -1
  1639. package/utils/temporal/date-helpers.d.ts +15 -0
  1640. package/utils/temporal/date-helpers.js +54 -0
  1641. package/utils/temporal/getDateManager.d.ts +5 -0
  1642. package/utils/temporal/getDateManager.js +25 -0
  1643. package/utils/temporal/getInitialReferenceDate.d.ts +27 -0
  1644. package/utils/temporal/getInitialReferenceDate.js +34 -0
  1645. package/utils/temporal/types.d.ts +65 -0
  1646. package/utils/temporal/types.js +5 -0
  1647. package/utils/temporal/validateDate.d.ts +27 -0
  1648. package/utils/temporal/validateDate.js +31 -0
  1649. package/utils/types.d.ts +18 -25
  1650. package/utils/useAnchorPositioning.d.ts +53 -18
  1651. package/utils/useAnchorPositioning.js +23 -8
  1652. package/utils/useAnchoredPopupScrollLock.d.ts +6 -0
  1653. package/utils/useAnchoredPopupScrollLock.js +36 -0
  1654. package/utils/useAnimationsFinished.js +48 -51
  1655. package/utils/useFocusableWhenDisabled.d.ts +2 -5
  1656. package/utils/useIsHydrating.d.ts +5 -0
  1657. package/utils/useIsHydrating.js +25 -0
  1658. package/utils/useMixedToggleClickHandler.d.ts +2 -4
  1659. package/utils/useOpenChangeComplete.d.ts +2 -4
  1660. package/utils/useOpenInteractionType.d.ts +0 -1
  1661. package/utils/useOpenInteractionType.js +7 -5
  1662. package/utils/usePopupAutoResize.js +1 -2
  1663. package/utils/usePopupViewport.js +13 -9
  1664. package/utils/usePositioner.d.ts +23 -0
  1665. package/utils/usePositioner.js +39 -0
  1666. package/utils/usePressAndHold.d.ts +58 -0
  1667. package/utils/usePressAndHold.js +198 -0
  1668. package/utils/useRegisteredLabelId.d.ts +1 -0
  1669. package/utils/useRegisteredLabelId.js +19 -0
  1670. package/utils/useRenderElement.d.ts +6 -9
  1671. package/utils/useRenderElement.js +31 -1
  1672. package/utils/useSwipeDismiss.d.ts +92 -92
  1673. package/utils/useSwipeDismiss.js +5 -2
  1674. package/utils/useTransitionStatus.js +3 -3
  1675. package/esm/field/useField.d.ts +0 -14
  1676. package/esm/field/useField.js +0 -75
  1677. package/esm/navigation-menu/utils/setFixedSize.d.ts +0 -1
  1678. package/esm/navigation-menu/utils/setFixedSize.js +0 -11
  1679. package/esm/scroll-area/utils/onVisible.d.ts +0 -4
  1680. package/esm/scroll-area/utils/onVisible.js +0 -20
  1681. package/field/useField.d.ts +0 -14
  1682. package/field/useField.js +0 -81
  1683. package/navigation-menu/utils/setFixedSize.d.ts +0 -1
  1684. package/navigation-menu/utils/setFixedSize.js +0 -17
  1685. package/scroll-area/utils/onVisible.d.ts +0 -4
  1686. package/scroll-area/utils/onVisible.js +0 -26
  1687. /package/combobox/clear/{ComboboxClearDataAtributes.d.ts → ComboboxClearDataAttributes.d.ts} +0 -0
  1688. /package/combobox/clear/{ComboboxClearDataAtributes.js → ComboboxClearDataAttributes.js} +0 -0
  1689. /package/combobox/item/{ComboboxtemDataAttributes.d.ts → ComboboxItemDataAttributes.d.ts} +0 -0
  1690. /package/combobox/item/{ComboboxtemDataAttributes.js → ComboboxItemDataAttributes.js} +0 -0
  1691. /package/esm/combobox/clear/{ComboboxClearDataAtributes.d.ts → ComboboxClearDataAttributes.d.ts} +0 -0
  1692. /package/esm/combobox/clear/{ComboboxClearDataAtributes.js → ComboboxClearDataAttributes.js} +0 -0
  1693. /package/esm/combobox/item/{ComboboxtemDataAttributes.d.ts → ComboboxItemDataAttributes.d.ts} +0 -0
  1694. /package/esm/combobox/item/{ComboboxtemDataAttributes.js → ComboboxItemDataAttributes.js} +0 -0
  1695. /package/esm/navigation-menu/link/{NavigationMenuLinikDataAttributes.d.ts → NavigationMenuLinkDataAttributes.d.ts} +0 -0
  1696. /package/esm/navigation-menu/link/{NavigationMenuLinikDataAttributes.js → NavigationMenuLinkDataAttributes.js} +0 -0
  1697. /package/esm/navigation-menu/positioner/{NavigationPositionerDataAttributes.d.ts → NavigationMenuPositionerDataAttributes.d.ts} +0 -0
  1698. /package/esm/navigation-menu/positioner/{NavigationPositionerDataAttributes.js → NavigationMenuPositionerDataAttributes.js} +0 -0
  1699. /package/navigation-menu/link/{NavigationMenuLinikDataAttributes.d.ts → NavigationMenuLinkDataAttributes.d.ts} +0 -0
  1700. /package/navigation-menu/link/{NavigationMenuLinikDataAttributes.js → NavigationMenuLinkDataAttributes.js} +0 -0
  1701. /package/navigation-menu/positioner/{NavigationPositionerDataAttributes.d.ts → NavigationMenuPositionerDataAttributes.d.ts} +0 -0
  1702. /package/navigation-menu/positioner/{NavigationPositionerDataAttributes.js → NavigationMenuPositionerDataAttributes.js} +0 -0
@@ -2,14 +2,20 @@ import * as React from 'react';
2
2
  import { FieldValidityData } from "../root/FieldRoot.js";
3
3
  import { type TransitionStatus } from "../../utils/useTransitionStatus.js";
4
4
  /**
5
- * Used to display a custom message based on the fields validity.
5
+ * Used to display a custom message based on the field's validity.
6
6
  * Requires `children` to be a function that accepts field validity state as an argument.
7
7
  *
8
8
  * Documentation: [Base UI Field](https://base-ui.com/react/components/field)
9
9
  */
10
10
  export declare const FieldValidity: React.FC<FieldValidity.Props>;
11
11
  export interface FieldValidityState extends Omit<FieldValidityData, 'state'> {
12
+ /**
13
+ * The validity state.
14
+ */
12
15
  validity: FieldValidityData['state'];
16
+ /**
17
+ * The transition status of the component.
18
+ */
13
19
  transitionStatus: TransitionStatus;
14
20
  }
15
21
  export interface FieldValidityProps {
@@ -24,7 +30,7 @@ export interface FieldValidityProps {
24
30
  * </Field.Validity>
25
31
  * ```
26
32
  */
27
- children: (state: FieldValidity.State) => React.ReactNode;
33
+ children: (state: FieldValidityState) => React.ReactNode;
28
34
  }
29
35
  export declare namespace FieldValidity {
30
36
  type State = FieldValidityState;
@@ -6,7 +6,7 @@ import { getCombinedFieldValidityData } from "../utils/getCombinedFieldValidityD
6
6
  import { useTransitionStatus } from "../../utils/useTransitionStatus.js";
7
7
 
8
8
  /**
9
- * Used to display a custom message based on the fields validity.
9
+ * Used to display a custom message based on the field's validity.
10
10
  * Requires `children` to be a function that accepts field validity state as an argument.
11
11
  *
12
12
  * Documentation: [Base UI Field](https://base-ui.com/react/components/field)
@@ -13,7 +13,7 @@ export interface FieldsetLegendState {
13
13
  */
14
14
  disabled: boolean;
15
15
  }
16
- export interface FieldsetLegendProps extends BaseUIComponentProps<'div', FieldsetLegend.State> {}
16
+ export interface FieldsetLegendProps extends BaseUIComponentProps<'div', FieldsetLegendState> {}
17
17
  export declare namespace FieldsetLegend {
18
18
  type State = FieldsetLegendState;
19
19
  type Props = FieldsetLegendProps;
@@ -15,6 +15,7 @@ export const FieldsetLegend = /*#__PURE__*/React.forwardRef(function FieldsetLeg
15
15
  const {
16
16
  render,
17
17
  className,
18
+ style,
18
19
  id: idProp,
19
20
  ...elementProps
20
21
  } = componentProps;
@@ -13,7 +13,7 @@ export interface FieldsetRootState {
13
13
  */
14
14
  disabled: boolean;
15
15
  }
16
- export interface FieldsetRootProps extends BaseUIComponentProps<'fieldset', FieldsetRoot.State> {}
16
+ export interface FieldsetRootProps extends BaseUIComponentProps<'fieldset', FieldsetRootState> {}
17
17
  export declare namespace FieldsetRoot {
18
18
  type State = FieldsetRootState;
19
19
  type Props = FieldsetRootProps;
@@ -15,6 +15,7 @@ export const FieldsetRoot = /*#__PURE__*/React.forwardRef(function FieldsetRoot(
15
15
  const {
16
16
  render,
17
17
  className,
18
+ style,
18
19
  disabled = false,
19
20
  ...elementProps
20
21
  } = componentProps;
@@ -3,7 +3,7 @@
3
3
  import * as React from 'react';
4
4
  import { useTimeout, Timeout } from '@base-ui/utils/useTimeout';
5
5
  import { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';
6
- import { getDelay } from "../hooks/useHover.js";
6
+ import { getDelay } from "../hooks/useHoverShared.js";
7
7
  import { createChangeEventDetails } from "../../utils/createBaseUIEventDetails.js";
8
8
  import { REASONS } from "../../utils/reasons.js";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,7 +11,7 @@ export interface FloatingFocusManagerProps {
11
11
  /**
12
12
  * The interaction type used to open the floating element.
13
13
  */
14
- openInteractionType?: (InteractionType | null) | undefined;
14
+ openInteractionType?: InteractionType | null | undefined;
15
15
  /**
16
16
  * Whether or not the focus manager should be disabled. Useful to delay focus
17
17
  * management until after a transition completes or some other conditional
@@ -30,7 +30,7 @@ export interface FloatingFocusManagerProps {
30
30
  * or `false`/`undefined` to do nothing.
31
31
  * @default true
32
32
  */
33
- initialFocus?: (boolean | React.RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | HTMLElement | null | void)) | undefined;
33
+ initialFocus?: boolean | React.RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | HTMLElement | null | void) | undefined;
34
34
  /**
35
35
  * Determines the element to focus when the floating element is closed.
36
36
  *
@@ -42,7 +42,7 @@ export interface FloatingFocusManagerProps {
42
42
  * or `false`/`undefined` to do nothing.
43
43
  * @default true
44
44
  */
45
- returnFocus?: (boolean | React.RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | HTMLElement | null | void)) | undefined;
45
+ returnFocus?: boolean | React.RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | HTMLElement | null | void) | undefined;
46
46
  /**
47
47
  * Determines where focus should be restored if focus inside the floating element is lost
48
48
  * (such as due to the removal of the currently focused element from the DOM).
@@ -53,7 +53,7 @@ export interface FloatingFocusManagerProps {
53
53
  * - `false`: do not restore focus
54
54
  * @default false
55
55
  */
56
- restoreFocus?: (boolean | 'popup') | undefined;
56
+ restoreFocus?: boolean | 'popup' | undefined;
57
57
  /**
58
58
  * Determines if focus is “modal”, meaning focus is fully trapped inside the
59
59
  * floating element and outside content cannot be accessed. This includes
@@ -72,20 +72,25 @@ export interface FloatingFocusManagerProps {
72
72
  /**
73
73
  * Overrides the element to focus when tabbing forward out of the floating element.
74
74
  */
75
- nextFocusableElement?: (HTMLElement | React.RefObject<HTMLElement | null> | null) | undefined;
75
+ nextFocusableElement?: HTMLElement | React.RefObject<HTMLElement | null> | null | undefined;
76
76
  /**
77
77
  * Overrides the element to focus when tabbing backward out of the floating element.
78
78
  */
79
- previousFocusableElement?: (HTMLElement | React.RefObject<HTMLElement | null> | null) | undefined;
79
+ previousFocusableElement?: HTMLElement | React.RefObject<HTMLElement | null> | null | undefined;
80
80
  /**
81
81
  * Ref to the focus guard preceding the floating element content.
82
- * Can be useful to focus the popup progammatically.
82
+ * Can be useful to focus the popup programmatically.
83
83
  */
84
84
  beforeContentFocusGuardRef?: React.RefObject<HTMLSpanElement | null> | undefined;
85
85
  /**
86
86
  * External FlatingTree to use when the one provided by context can't be used.
87
87
  */
88
88
  externalTree?: FloatingTreeStore | undefined;
89
+ /**
90
+ * Additional elements that should be treated as part of the floating subtree
91
+ * even if they are rendered outside the floating element itself.
92
+ */
93
+ getInsideElements?: (() => Array<Element | null | undefined>) | undefined;
89
94
  }
90
95
  /**
91
96
  * Provides focus management for the floating element.
@@ -1,19 +1,23 @@
1
1
  'use client';
2
2
 
3
3
  import * as React from 'react';
4
- import { tabbable, isTabbable, focusable } from 'tabbable';
5
- import { getComputedStyle, getNodeName, isHTMLElement } from '@floating-ui/utils/dom';
4
+ import { getNodeName, isHTMLElement } from '@floating-ui/utils/dom';
5
+ import { addEventListener } from '@base-ui/utils/addEventListener';
6
+ import { mergeCleanups } from '@base-ui/utils/mergeCleanups';
6
7
  import { useMergedRefs } from '@base-ui/utils/useMergedRefs';
7
8
  import { useValueAsRef } from '@base-ui/utils/useValueAsRef';
8
9
  import { useStableCallback } from '@base-ui/utils/useStableCallback';
9
10
  import { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';
10
- import { visuallyHidden } from '@base-ui/utils/visuallyHidden';
11
11
  import { useTimeout } from '@base-ui/utils/useTimeout';
12
12
  import { isWebKit } from '@base-ui/utils/detectBrowser';
13
13
  import { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';
14
14
  import { ownerDocument, ownerWindow } from '@base-ui/utils/owner';
15
15
  import { FocusGuard } from "../../utils/FocusGuard.js";
16
- import { activeElement, contains, getTarget, isTypeableCombobox, isVirtualClick, isVirtualPointerEvent, stopEvent, getNodeAncestors, getNodeChildren, getFloatingFocusElement, getTabbableOptions, isOutsideEvent, getNextTabbable, getPreviousTabbable, isTypeableElement } from "../utils.js";
16
+ import { activeElement, contains, getTarget, isTypeableCombobox, getFloatingFocusElement, isTypeableElement } from "../utils/element.js";
17
+ import { isVirtualClick, isVirtualPointerEvent, stopEvent } from "../utils/event.js";
18
+ import { tabbable, focusable, isOutsideEvent, isTabbable, getNextTabbable, getPreviousTabbable } from "../utils/tabbable.js";
19
+ import { getNodeAncestors, getNodeChildren } from "../utils/nodes.js";
20
+ import { isElementVisible } from "../utils/composite.js";
17
21
  import { createChangeEventDetails } from "../../utils/createBaseUIEventDetails.js";
18
22
  import { REASONS } from "../../utils/reasons.js";
19
23
  import { createAttribute } from "../utils/createAttribute.js";
@@ -25,7 +29,7 @@ import { CLICK_TRIGGER_IDENTIFIER } from "../../utils/constants.js";
25
29
  import { resolveRef } from "../../utils/resolveRef.js";
26
30
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
31
  function getEventType(event, lastInteractionType) {
28
- const win = ownerWindow(event.target);
32
+ const win = ownerWindow(getTarget(event));
29
33
  if (event instanceof win.KeyboardEvent) {
30
34
  return 'keyboard';
31
35
  }
@@ -70,11 +74,10 @@ function getFirstTabbableElement(container) {
70
74
  if (!container) {
71
75
  return null;
72
76
  }
73
- const tabbableOptions = getTabbableOptions();
74
- if (isTabbable(container, tabbableOptions)) {
77
+ if (isTabbable(container)) {
75
78
  return container;
76
79
  }
77
- return tabbable(container, tabbableOptions)[0] || container;
80
+ return tabbable(container)[0] || container;
78
81
  }
79
82
  function isFocusable(element) {
80
83
  if (!element || !element.isConnected) {
@@ -83,17 +86,19 @@ function isFocusable(element) {
83
86
  if (typeof element.checkVisibility === 'function') {
84
87
  return element.checkVisibility();
85
88
  }
86
- return getComputedStyle(element).display !== 'none';
89
+ return isElementVisible(element);
87
90
  }
88
91
  function handleTabIndex(floatingFocusElement, orderRef) {
92
+ if (floatingFocusElement.hasAttribute('tabindex') && !floatingFocusElement.hasAttribute('data-tabindex')) {
93
+ return;
94
+ }
89
95
  if (!orderRef.current.includes('floating') && !floatingFocusElement.getAttribute('role')?.includes('dialog')) {
90
96
  return;
91
97
  }
92
- const options = getTabbableOptions();
93
- const focusableElements = focusable(floatingFocusElement, options);
98
+ const focusableElements = focusable(floatingFocusElement);
94
99
  const tabbableContent = focusableElements.filter(element => {
95
100
  const dataTabIndex = element.getAttribute('data-tabindex') || '';
96
- return isTabbable(element, options) || element.hasAttribute('data-tabindex') && !dataTabIndex.startsWith('-');
101
+ return isTabbable(element) || element.hasAttribute('data-tabindex') && !dataTabIndex.startsWith('-');
97
102
  });
98
103
  const tabIndex = floatingFocusElement.getAttribute('tabindex');
99
104
  if (orderRef.current.includes('floating') || tabbableContent.length === 0) {
@@ -124,7 +129,8 @@ export function FloatingFocusManager(props) {
124
129
  nextFocusableElement,
125
130
  previousFocusableElement,
126
131
  beforeContentFocusGuardRef,
127
- externalTree
132
+ externalTree,
133
+ getInsideElements
128
134
  } = props;
129
135
  const store = 'rootStore' in context ? context.rootStore : context;
130
136
  const open = store.useState('open');
@@ -148,12 +154,10 @@ export function FloatingFocusManager(props) {
148
154
  const openInteractionTypeRef = useValueAsRef(openInteractionType);
149
155
  const tree = useFloatingTree(externalTree);
150
156
  const portalContext = usePortalContext();
151
- const startDismissButtonRef = React.useRef(null);
152
- const endDismissButtonRef = React.useRef(null);
153
157
  const preventReturnFocusRef = React.useRef(false);
154
158
  const isPointerDownRef = React.useRef(false);
155
159
  const pointerDownOutsideRef = React.useRef(false);
156
- const tabbableIndexRef = React.useRef(-1);
160
+ const lastFocusedTabbableRef = React.useRef(null);
157
161
  const closeTypeRef = React.useRef('');
158
162
  const lastInteractionTypeRef = React.useRef('');
159
163
  const beforeGuardRef = React.useRef(null);
@@ -166,12 +170,9 @@ export function FloatingFocusManager(props) {
166
170
  const isInsidePortal = portalContext != null;
167
171
  const floatingFocusElement = getFloatingFocusElement(floating);
168
172
  const getTabbableContent = useStableCallback((container = floatingFocusElement) => {
169
- return container ? tabbable(container, getTabbableOptions()) : [];
170
- });
171
- const getTabbableElements = useStableCallback(container => {
172
- const content = getTabbableContent(container);
173
- return orderRef.current.map(() => content).filter(Boolean).flat();
173
+ return container ? tabbable(container) : [];
174
174
  });
175
+ const getResolvedInsideElements = useStableCallback(() => getInsideElements?.().filter(element => element != null) ?? []);
175
176
 
176
177
  // Prevent Tab from escaping the modal when there are no tabbable elements.
177
178
  React.useEffect(() => {
@@ -187,11 +188,8 @@ export function FloatingFocusManager(props) {
187
188
  }
188
189
  }
189
190
  const doc = ownerDocument(floatingFocusElement);
190
- doc.addEventListener('keydown', onKeyDown);
191
- return () => {
192
- doc.removeEventListener('keydown', onKeyDown);
193
- };
194
- }, [disabled, domReference, floatingFocusElement, modal, orderRef, isUntrappedTypeableCombobox, getTabbableContent, getTabbableElements]);
191
+ return addEventListener(doc, 'keydown', onKeyDown);
192
+ }, [disabled, domReference, floatingFocusElement, modal, orderRef, isUntrappedTypeableCombobox, getTabbableContent]);
195
193
 
196
194
  // Track pointer/keyboard interactions to disambiguate focus and outside presses.
197
195
  React.useEffect(() => {
@@ -204,7 +202,8 @@ export function FloatingFocusManager(props) {
204
202
  }
205
203
  function onPointerDown(event) {
206
204
  const target = getTarget(event);
207
- const pointerTargetInside = contains(floating, target) || contains(domReference, target) || contains(portalContext?.portalNode, target);
205
+ const insideElements = getResolvedInsideElements();
206
+ const pointerTargetInside = contains(floating, target) || contains(domReference, target) || contains(portalContext?.portalNode, target) || insideElements.some(element => element === target || contains(element, target));
208
207
  pointerDownOutsideRef.current = !pointerTargetInside;
209
208
  lastInteractionTypeRef.current = event.pointerType || 'keyboard';
210
209
  if (target?.closest(`[${CLICK_TRIGGER_IDENTIFIER}]`)) {
@@ -214,17 +213,8 @@ export function FloatingFocusManager(props) {
214
213
  function onKeyDown() {
215
214
  lastInteractionTypeRef.current = 'keyboard';
216
215
  }
217
- doc.addEventListener('pointerdown', onPointerDown, true);
218
- doc.addEventListener('pointerup', clearPointerDownOutside, true);
219
- doc.addEventListener('pointercancel', clearPointerDownOutside, true);
220
- doc.addEventListener('keydown', onKeyDown, true);
221
- return () => {
222
- doc.removeEventListener('pointerdown', onPointerDown, true);
223
- doc.removeEventListener('pointerup', clearPointerDownOutside, true);
224
- doc.removeEventListener('pointercancel', clearPointerDownOutside, true);
225
- doc.removeEventListener('keydown', onKeyDown, true);
226
- };
227
- }, [disabled, floating, domReference, floatingFocusElement, open, portalContext]);
216
+ return mergeCleanups(addEventListener(doc, 'pointerdown', onPointerDown, true), addEventListener(doc, 'pointerup', clearPointerDownOutside, true), addEventListener(doc, 'pointercancel', clearPointerDownOutside, true), addEventListener(doc, 'keydown', onKeyDown, true));
217
+ }, [disabled, floating, domReference, floatingFocusElement, open, portalContext, getResolvedInsideElements]);
228
218
 
229
219
  // Close on focus out and restore focus within the floating tree when needed.
230
220
  React.useEffect(() => {
@@ -242,10 +232,8 @@ export function FloatingFocusManager(props) {
242
232
  }
243
233
  function handleFocusIn(event) {
244
234
  const target = getTarget(event);
245
- const tabbableContent = getTabbableContent();
246
- const tabbableIndex = tabbableContent.indexOf(target);
247
- if (tabbableIndex !== -1) {
248
- tabbableIndexRef.current = tabbableIndex;
235
+ if (isTabbable(target)) {
236
+ lastFocusedTabbableRef.current = target;
249
237
  }
250
238
  }
251
239
  function handleFocusOutside(event) {
@@ -255,8 +243,9 @@ export function FloatingFocusManager(props) {
255
243
  queueMicrotask(() => {
256
244
  const nodeId = getNodeId();
257
245
  const triggers = store.context.triggerElements;
246
+ const insideElements = getResolvedInsideElements();
258
247
  const isRelatedFocusGuard = relatedTarget?.hasAttribute(createAttribute('focus-guard')) && [beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeInsideRef.current, portalContext?.afterInsideRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement)].includes(relatedTarget);
259
- const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext?.portalNode, relatedTarget) || relatedTarget != null && triggers.hasElement(relatedTarget) || triggers.hasMatchingElement(trigger => contains(trigger, relatedTarget)) || isRelatedFocusGuard || tree && (getNodeChildren(tree.nodesRef.current, nodeId).find(node => contains(node.context?.elements.floating, relatedTarget) || contains(node.context?.elements.domReference, relatedTarget)) || getNodeAncestors(tree.nodesRef.current, nodeId).find(node => [node.context?.elements.floating, getFloatingFocusElement(node.context?.elements.floating)].includes(relatedTarget) || node.context?.elements.domReference === relatedTarget)));
248
+ const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext?.portalNode, relatedTarget) || insideElements.some(element => element === relatedTarget || contains(element, relatedTarget)) || relatedTarget != null && triggers.hasElement(relatedTarget) || triggers.hasMatchingElement(trigger => contains(trigger, relatedTarget)) || isRelatedFocusGuard || tree && (getNodeChildren(tree.nodesRef.current, nodeId).find(node => contains(node.context?.elements.floating, relatedTarget) || contains(node.context?.elements.domReference, relatedTarget)) || getNodeAncestors(tree.nodesRef.current, nodeId).find(node => [node.context?.elements.floating, getFloatingFocusElement(node.context?.elements.floating)].includes(relatedTarget) || node.context?.elements.domReference === relatedTarget)));
260
249
  if (currentTarget === domReference && floatingFocusElement) {
261
250
  handleTabIndex(floatingFocusElement, orderRef);
262
251
  }
@@ -281,9 +270,9 @@ export function FloatingFocusManager(props) {
281
270
  return;
282
271
  }
283
272
  }
284
- const prevTabbableIndex = tabbableIndexRef.current;
285
273
  const tabbableContent = getTabbableContent();
286
- const nodeToFocus = tabbableContent[prevTabbableIndex] || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;
274
+ const prevTabbable = lastFocusedTabbableRef.current;
275
+ const nodeToFocus = (prevTabbable && tabbableContent.includes(prevTabbable) ? prevTabbable : null) || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;
287
276
  if (isHTMLElement(nodeToFocus)) {
288
277
  nodeToFocus.focus();
289
278
  }
@@ -321,38 +310,11 @@ export function FloatingFocusManager(props) {
321
310
  });
322
311
  }
323
312
  const domReferenceElement = isHTMLElement(domReference) ? domReference : null;
324
- const cleanups = [];
325
313
  if (!floating && !domReferenceElement) {
326
314
  return undefined;
327
315
  }
328
- if (domReferenceElement) {
329
- domReferenceElement.addEventListener('focusout', handleFocusOutside);
330
- domReferenceElement.addEventListener('pointerdown', handlePointerDown);
331
- cleanups.push(() => {
332
- domReferenceElement.removeEventListener('focusout', handleFocusOutside);
333
- domReferenceElement.removeEventListener('pointerdown', handlePointerDown);
334
- });
335
- }
336
- if (floating) {
337
- floating.addEventListener('focusin', handleFocusIn);
338
- floating.addEventListener('focusout', handleFocusOutside);
339
- if (portalContext) {
340
- floating.addEventListener('focusout', markInsideReactTree, true);
341
- cleanups.push(() => {
342
- floating.removeEventListener('focusout', markInsideReactTree, true);
343
- });
344
- }
345
- cleanups.push(() => {
346
- floating.removeEventListener('focusin', handleFocusIn);
347
- floating.removeEventListener('focusout', handleFocusOutside);
348
- });
349
- }
350
- return () => {
351
- cleanups.forEach(cleanup => {
352
- cleanup();
353
- });
354
- };
355
- }, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, store, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, orderRef, dataRef, blurTimeout, pointerDownTimeout, restoreFocusFrame, nextFocusableElement, previousFocusableElement]);
316
+ return mergeCleanups(domReferenceElement && addEventListener(domReferenceElement, 'focusout', handleFocusOutside), domReferenceElement && addEventListener(domReferenceElement, 'pointerdown', handlePointerDown), floating && addEventListener(floating, 'focusin', handleFocusIn), floating && addEventListener(floating, 'focusout', handleFocusOutside), floating && portalContext && addEventListener(floating, 'focusout', markInsideReactTree, true));
317
+ }, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, store, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, orderRef, dataRef, blurTimeout, pointerDownTimeout, restoreFocusFrame, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);
356
318
 
357
319
  // Hide everything outside the floating tree from assistive tech while open.
358
320
  React.useEffect(() => {
@@ -364,9 +326,19 @@ export function FloatingFocusManager(props) {
364
326
  const portalNodes = Array.from(portalContext?.portalNode?.querySelectorAll(`[${createAttribute('portal')}]`) || []);
365
327
  const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];
366
328
  const rootAncestorComboboxDomReference = ancestors.find(node => isTypeableCombobox(node.context?.elements.domReference || null))?.context?.elements.domReference;
367
- const insideElements = [floating, rootAncestorComboboxDomReference, ...portalNodes, startDismissButtonRef.current, endDismissButtonRef.current, beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement), isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);
368
- return markOthers(insideElements, modal || isUntrappedTypeableCombobox);
369
- }, [open, disabled, domReference, floating, modal, orderRef, portalContext, isUntrappedTypeableCombobox, tree, getNodeId, nextFocusableElement, previousFocusableElement]);
329
+ const controlInsideElements = [floating, ...portalNodes, beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, ...getResolvedInsideElements()];
330
+ const insideElements = [...controlInsideElements, rootAncestorComboboxDomReference, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement), isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);
331
+ const ariaHiddenCleanup = markOthers(insideElements, {
332
+ ariaHidden: modal || isUntrappedTypeableCombobox,
333
+ mark: false
334
+ });
335
+ const markerInsideElements = [floating, ...portalNodes].filter(x => x != null);
336
+ const markerCleanup = markOthers(markerInsideElements);
337
+ return () => {
338
+ markerCleanup();
339
+ ariaHiddenCleanup();
340
+ };
341
+ }, [open, disabled, domReference, floating, modal, orderRef, portalContext, isUntrappedTypeableCombobox, tree, getNodeId, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);
370
342
 
371
343
  // Focus the initial element when the floating element opens.
372
344
  useIsoLayoutEffect(() => {
@@ -378,7 +350,6 @@ export function FloatingFocusManager(props) {
378
350
 
379
351
  // Wait for any layout effect state setters to execute to set `tabIndex`.
380
352
  queueMicrotask(() => {
381
- const focusableElements = getTabbableElements(floatingFocusElement);
382
353
  const initialFocusValueOrFn = initialFocusRef.current;
383
354
  const resolvedInitialFocus = typeof initialFocusValueOrFn === 'function' ? initialFocusValueOrFn(openInteractionTypeRef.current || '') : initialFocusValueOrFn;
384
355
 
@@ -386,22 +357,29 @@ export function FloatingFocusManager(props) {
386
357
  if (resolvedInitialFocus === undefined || resolvedInitialFocus === false) {
387
358
  return;
388
359
  }
360
+ const focusAlreadyInsideFloatingEl = contains(floatingFocusElement, previouslyFocusedElement);
361
+ if (focusAlreadyInsideFloatingEl) {
362
+ return;
363
+ }
364
+ let focusableElements = null;
365
+ const getDefaultFocusElement = () => {
366
+ if (focusableElements == null) {
367
+ focusableElements = getTabbableContent(floatingFocusElement);
368
+ }
369
+ return focusableElements[0] || floatingFocusElement;
370
+ };
389
371
  let elToFocus;
390
372
  if (resolvedInitialFocus === true || resolvedInitialFocus === null) {
391
- elToFocus = focusableElements[0] || floatingFocusElement;
373
+ elToFocus = getDefaultFocusElement();
392
374
  } else {
393
375
  elToFocus = resolveRef(resolvedInitialFocus);
394
376
  }
395
- elToFocus = elToFocus || focusableElements[0] || floatingFocusElement;
396
- const focusAlreadyInsideFloatingEl = contains(floatingFocusElement, previouslyFocusedElement);
397
- if (focusAlreadyInsideFloatingEl) {
398
- return;
399
- }
377
+ elToFocus = elToFocus || getDefaultFocusElement();
400
378
  enqueueFocus(elToFocus, {
401
379
  preventScroll: elToFocus === floatingFocusElement
402
380
  });
403
381
  });
404
- }, [disabled, open, floatingFocusElement, ignoreInitialFocus, getTabbableElements, initialFocusRef, openInteractionTypeRef]);
382
+ }, [disabled, open, floatingFocusElement, ignoreInitialFocus, getTabbableContent, initialFocusRef, openInteractionTypeRef]);
405
383
 
406
384
  // Track return focus targets and restore focus on unmount/close.
407
385
  useIsoLayoutEffect(() => {
@@ -430,7 +408,7 @@ export function FloatingFocusManager(props) {
430
408
  preventReturnFocusRef.current = false;
431
409
  } else {
432
410
  let isPreventScrollSupported = false;
433
- document.createElement('div').focus({
411
+ ownerDocument(floatingFocusElement).createElement('div').focus({
434
412
  get preventScroll() {
435
413
  isPreventScrollSupported = true;
436
414
  return false;
@@ -444,13 +422,6 @@ export function FloatingFocusManager(props) {
444
422
  }
445
423
  }
446
424
  events.on('openchange', onOpenChangeLocal);
447
- const fallbackEl = doc.createElement('span');
448
- fallbackEl.setAttribute('tabindex', '-1');
449
- fallbackEl.setAttribute('aria-hidden', 'true');
450
- Object.assign(fallbackEl.style, visuallyHidden);
451
- if (isInsidePortal && domReference) {
452
- domReference.insertAdjacentElement('afterend', fallbackEl);
453
- }
454
425
  function getReturnElement() {
455
426
  const returnFocusValueOrFn = returnFocusRef.current;
456
427
  let resolvedReturnFocusValue = typeof returnFocusValueOrFn === 'function' ? returnFocusValueOrFn(closeTypeRef.current) : returnFocusValueOrFn;
@@ -464,23 +435,25 @@ export function FloatingFocusManager(props) {
464
435
  }
465
436
  if (typeof resolvedReturnFocusValue === 'boolean') {
466
437
  const el = domReference || getPreviouslyFocusedElement();
467
- return el && el.isConnected ? el : fallbackEl;
438
+ return el && el.isConnected ? el : null;
468
439
  }
469
- const fallback = domReference || getPreviouslyFocusedElement() || fallbackEl;
470
- return resolveRef(resolvedReturnFocusValue) || fallback;
440
+ const fallback = domReference || getPreviouslyFocusedElement();
441
+ return resolveRef(resolvedReturnFocusValue) || fallback || null;
471
442
  }
472
443
  return () => {
473
444
  events.off('openchange', onOpenChangeLocal);
474
445
  const activeEl = activeElement(doc);
475
- const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some(node => contains(node.context?.elements.floating, activeEl));
446
+ const insideElements = getResolvedInsideElements();
447
+ const isFocusInsideFloatingTree = contains(floating, activeEl) || insideElements.some(element => element === activeEl || contains(element, activeEl)) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some(node => contains(node.context?.elements.floating, activeEl));
448
+
449
+ // eslint-disable-next-line react-hooks/exhaustive-deps
450
+ const returnFocusValueOrFn = returnFocusRef.current;
476
451
  const returnElement = getReturnElement();
477
452
  queueMicrotask(() => {
478
453
  // This is `returnElement`, if it's tabbable, or its first tabbable child.
479
454
  const tabbableReturnElement = getFirstTabbableElement(returnElement);
480
- const hasExplicitReturnFocus = typeof returnFocusRef.current !== 'boolean';
481
- if (
482
- // eslint-disable-next-line react-hooks/exhaustive-deps
483
- returnFocusRef.current && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && (
455
+ const hasExplicitReturnFocus = typeof returnFocusValueOrFn !== 'boolean';
456
+ if (returnFocusValueOrFn && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && (
484
457
  // If the focus moved somewhere else after mount, avoid returning focus
485
458
  // since it likely entered a different element which should be
486
459
  // respected: https://github.com/floating-ui/floating-ui/issues/2607
@@ -489,11 +462,10 @@ export function FloatingFocusManager(props) {
489
462
  preventScroll: true
490
463
  });
491
464
  }
492
- fallbackEl.remove();
493
465
  preventReturnFocusRef.current = false;
494
466
  });
495
467
  };
496
- }, [disabled, floating, floatingFocusElement, returnFocusRef, dataRef, events, tree, isInsidePortal, domReference, getNodeId]);
468
+ }, [disabled, floating, floatingFocusElement, returnFocusRef, dataRef, events, tree, domReference, getNodeId, getResolvedInsideElements]);
497
469
 
498
470
  // Safari may randomly scroll to the bottom of the page if an input inside a popup has focus
499
471
  // when the popup unmounts from the DOM.
@@ -545,7 +517,7 @@ export function FloatingFocusManager(props) {
545
517
  ref: mergedBeforeGuardRef,
546
518
  onFocus: event => {
547
519
  if (modal) {
548
- const els = getTabbableElements();
520
+ const els = getTabbableContent();
549
521
  enqueueFocus(els[els.length - 1]);
550
522
  } else if (portalContext?.portalNode) {
551
523
  preventReturnFocusRef.current = false;
@@ -562,7 +534,7 @@ export function FloatingFocusManager(props) {
562
534
  ref: mergedAfterGuardRef,
563
535
  onFocus: event => {
564
536
  if (modal) {
565
- enqueueFocus(getTabbableElements()[0]);
537
+ enqueueFocus(getTabbableContent()[0]);
566
538
  } else if (portalContext?.portalNode) {
567
539
  if (closeOnFocusOut) {
568
540
  preventReturnFocusRef.current = true;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { useRenderElement } from "../../utils/useRenderElement.js";
2
+ import { type UseRenderElementComponentProps } from "../../utils/useRenderElement.js";
3
3
  import type { BaseUIComponentProps } from "../../utils/types.js";
4
4
  type FocusManagerState = null | {
5
5
  modal: boolean;
@@ -21,8 +21,8 @@ export declare const usePortalContext: () => {
21
21
  } | null;
22
22
  export interface UseFloatingPortalNodeProps {
23
23
  ref?: React.Ref<HTMLDivElement> | undefined;
24
- container?: (HTMLElement | ShadowRoot | null | React.RefObject<HTMLElement | ShadowRoot | null>) | undefined;
25
- componentProps?: useRenderElement.ComponentProps<any> | undefined;
24
+ container?: HTMLElement | ShadowRoot | null | React.RefObject<HTMLElement | ShadowRoot | null> | undefined;
25
+ componentProps?: UseRenderElementComponentProps<any> | undefined;
26
26
  elementProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
27
27
  }
28
28
  export interface UseFloatingPortalNodeResult {
@@ -42,8 +42,10 @@ export declare function useFloatingPortalNode(props?: UseFloatingPortalNodeProps
42
42
  export declare const FloatingPortal: React.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
43
43
  renderGuards?: boolean | undefined;
44
44
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
+ export interface FloatingPortalState {}
45
46
  export declare namespace FloatingPortal {
46
- interface Props<State> extends BaseUIComponentProps<'div', State> {
47
+ type State = FloatingPortalState;
48
+ interface Props<TState> extends BaseUIComponentProps<'div', TState> {
47
49
  /**
48
50
  * A parent element to render the portal element into.
49
51
  */
@@ -3,11 +3,13 @@
3
3
  import * as React from 'react';
4
4
  import * as ReactDOM from 'react-dom';
5
5
  import { isNode } from '@floating-ui/utils/dom';
6
+ import { addEventListener } from '@base-ui/utils/addEventListener';
7
+ import { mergeCleanups } from '@base-ui/utils/mergeCleanups';
6
8
  import { useId } from '@base-ui/utils/useId';
7
9
  import { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';
8
10
  import { useStableCallback } from '@base-ui/utils/useStableCallback';
9
11
  import { FocusGuard } from "../../utils/FocusGuard.js";
10
- import { enableFocusInside, disableFocusInside, getPreviousTabbable, getNextTabbable, isOutsideEvent } from "../utils.js";
12
+ import { enableFocusInside, disableFocusInside, getPreviousTabbable, getNextTabbable, isOutsideEvent } from "../utils/tabbable.js";
11
13
  import { createChangeEventDetails } from "../../utils/createBaseUIEventDetails.js";
12
14
  import { REASONS } from "../../utils/reasons.js";
13
15
  import { createAttribute } from "../utils/createAttribute.js";
@@ -102,6 +104,7 @@ export const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPor
102
104
  className,
103
105
  render,
104
106
  renderGuards,
107
+ style,
105
108
  ...elementProps
106
109
  } = componentProps;
107
110
  const {
@@ -118,6 +121,7 @@ export const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPor
118
121
  const beforeInsideRef = React.useRef(null);
119
122
  const afterInsideRef = React.useRef(null);
120
123
  const [focusManagerState, setFocusManagerState] = React.useState(null);
124
+ const focusInsideDisabledRef = React.useRef(false);
121
125
  const modal = focusManagerState?.modal;
122
126
  const open = focusManagerState?.open;
123
127
  const shouldRenderGuards = typeof renderGuards === 'boolean' ? renderGuards : !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;
@@ -133,26 +137,28 @@ export const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPor
133
137
  // element outside or using the mouse.
134
138
  function onFocus(event) {
135
139
  if (portalNode && event.relatedTarget && isOutsideEvent(event)) {
136
- const focusing = event.type === 'focusin';
137
- const manageFocus = focusing ? enableFocusInside : disableFocusInside;
138
- manageFocus(portalNode);
140
+ if (event.type === 'focusin') {
141
+ if (focusInsideDisabledRef.current) {
142
+ enableFocusInside(portalNode);
143
+ focusInsideDisabledRef.current = false;
144
+ }
145
+ } else {
146
+ disableFocusInside(portalNode);
147
+ focusInsideDisabledRef.current = true;
148
+ }
139
149
  }
140
150
  }
141
151
 
142
152
  // Listen to the event on the capture phase so they run before the focus
143
153
  // trap elements onFocus prop is called.
144
- portalNode.addEventListener('focusin', onFocus, true);
145
- portalNode.addEventListener('focusout', onFocus, true);
146
- return () => {
147
- portalNode.removeEventListener('focusin', onFocus, true);
148
- portalNode.removeEventListener('focusout', onFocus, true);
149
- };
154
+ return mergeCleanups(addEventListener(portalNode, 'focusin', onFocus, true), addEventListener(portalNode, 'focusout', onFocus, true));
150
155
  }, [portalNode, modal]);
151
156
  React.useEffect(() => {
152
- if (!portalNode || open) {
157
+ if (!portalNode || open !== false) {
153
158
  return;
154
159
  }
155
160
  enableFocusInside(portalNode);
161
+ focusInsideDisabledRef.current = false;
156
162
  }, [open, portalNode]);
157
163
  const portalContextValue = React.useMemo(() => ({
158
164
  beforeOutsideRef,