@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
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ComboboxLabel = void 0;
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _error = require("@base-ui/utils/error");
11
+ var _safeReact = require("@base-ui/utils/safeReact");
12
+ var _store = require("@base-ui/utils/store");
13
+ var _useRenderElement = require("../../utils/useRenderElement");
14
+ var _FieldRootContext = require("../../field/root/FieldRootContext");
15
+ var _constants = require("../../field/utils/constants");
16
+ var _useLabel = require("../../labelable-provider/useLabel");
17
+ var _resolveAriaLabelledBy = require("../../utils/resolveAriaLabelledBy");
18
+ var _ComboboxRootContext = require("../root/ComboboxRootContext");
19
+ var _store2 = require("../store");
20
+ /**
21
+ * An accessible label that is automatically associated with the combobox trigger.
22
+ * Renders a `<div>` element.
23
+ *
24
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
25
+ */
26
+ const ComboboxLabel = exports.ComboboxLabel = /*#__PURE__*/React.forwardRef(function ComboboxLabel(componentProps, forwardedRef) {
27
+ const {
28
+ render,
29
+ className,
30
+ style,
31
+ ...elementProps
32
+ } = componentProps;
33
+ // Keep label id derived from the root and ignore runtime `id` overrides from untyped consumers.
34
+ const elementPropsWithoutId = elementProps;
35
+ delete elementPropsWithoutId.id;
36
+ const fieldRootContext = (0, _FieldRootContext.useFieldRootContext)();
37
+ const store = (0, _ComboboxRootContext.useComboboxRootContext)();
38
+ const inputInsidePopup = (0, _store.useStore)(store, _store2.selectors.inputInsidePopup);
39
+ const triggerElement = (0, _store.useStore)(store, _store2.selectors.triggerElement);
40
+ const inputElement = (0, _store.useStore)(store, _store2.selectors.inputElement);
41
+ const rootId = (0, _store.useStore)(store, _store2.selectors.id);
42
+ const defaultLabelId = (0, _resolveAriaLabelledBy.getDefaultLabelId)(rootId);
43
+ const localControlId = triggerElement?.id ?? (inputInsidePopup ? rootId : undefined);
44
+ if (process.env.NODE_ENV !== 'production') {
45
+ // eslint-disable-next-line react-hooks/rules-of-hooks
46
+ React.useEffect(() => {
47
+ if (!inputElement || inputInsidePopup) {
48
+ return;
49
+ }
50
+ const ownerStackMessage = _safeReact.SafeReact.captureOwnerStack?.() || '';
51
+ const message = '<Combobox.Label> labels <Combobox.Trigger> only. ' + 'When <Combobox.Input> is the form control, use a native <label> or <Field.Label> instead.';
52
+ (0, _error.error)(`${message}${ownerStackMessage}`);
53
+ }, [inputElement, inputInsidePopup]);
54
+ }
55
+ const labelProps = (0, _useLabel.useLabel)({
56
+ id: defaultLabelId,
57
+ fallbackControlId: localControlId,
58
+ setLabelId(nextLabelId) {
59
+ store.set('labelId', nextLabelId);
60
+ }
61
+ });
62
+ return (0, _useRenderElement.useRenderElement)('div', componentProps, {
63
+ ref: forwardedRef,
64
+ state: fieldRootContext.state,
65
+ props: [labelProps, elementProps],
66
+ stateAttributesMapping: _constants.fieldValidityMapping
67
+ });
68
+ });
69
+ if (process.env.NODE_ENV !== "production") ComboboxLabel.displayName = "ComboboxLabel";
@@ -3,6 +3,8 @@ import type { BaseUIComponentProps } from "../../utils/types.js";
3
3
  /**
4
4
  * A list container for the items.
5
5
  * Renders a `<div>` element.
6
+ *
7
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6
8
  */
7
9
  export declare const ComboboxList: React.ForwardRefExoticComponent<Omit<ComboboxListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
10
  export interface ComboboxListState {
@@ -11,7 +13,7 @@ export interface ComboboxListState {
11
13
  */
12
14
  empty: boolean;
13
15
  }
14
- export interface ComboboxListProps extends Omit<BaseUIComponentProps<'div', ComboboxList.State>, 'children'> {
16
+ export interface ComboboxListProps extends Omit<BaseUIComponentProps<'div', ComboboxListState>, 'children'> {
15
17
  children?: React.ReactNode | ((item: any, index: number) => React.ReactNode);
16
18
  }
17
19
  export declare namespace ComboboxList {
@@ -20,12 +20,15 @@ var _jsxRuntime = require("react/jsx-runtime");
20
20
  /**
21
21
  * A list container for the items.
22
22
  * Renders a `<div>` element.
23
+ *
24
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
23
25
  */
24
26
  const ComboboxList = exports.ComboboxList = /*#__PURE__*/React.forwardRef(function ComboboxList(componentProps, forwardedRef) {
25
27
  var _ComboboxCollection;
26
28
  const {
27
29
  render,
28
30
  className,
31
+ style,
29
32
  children,
30
33
  ...elementProps
31
34
  } = componentProps;
@@ -33,16 +36,12 @@ const ComboboxList = exports.ComboboxList = /*#__PURE__*/React.forwardRef(functi
33
36
  const floatingRootContext = (0, _ComboboxRootContext.useComboboxFloatingContext)();
34
37
  const hasPositionerContext = Boolean((0, _ComboboxPositionerContext.useComboboxPositionerContext)(true));
35
38
  const {
36
- filteredItems
39
+ filteredItems,
40
+ hasItems
37
41
  } = (0, _ComboboxRootContext.useComboboxDerivedItemsContext)();
38
- const items = (0, _store.useStore)(store, _store2.selectors.items);
39
- const labelsRef = (0, _store.useStore)(store, _store2.selectors.labelsRef);
40
- const listRef = (0, _store.useStore)(store, _store2.selectors.listRef);
41
42
  const selectionMode = (0, _store.useStore)(store, _store2.selectors.selectionMode);
42
43
  const grid = (0, _store.useStore)(store, _store2.selectors.grid);
43
44
  const popupProps = (0, _store.useStore)(store, _store2.selectors.popupProps);
44
- const disabled = (0, _store.useStore)(store, _store2.selectors.disabled);
45
- const readOnly = (0, _store.useStore)(store, _store2.selectors.readOnly);
46
45
  const virtualized = (0, _store.useStore)(store, _store2.selectors.virtualized);
47
46
  const multiple = selectionMode === 'multiple';
48
47
  const empty = filteredItems.length === 0;
@@ -79,7 +78,7 @@ const ComboboxList = exports.ComboboxList = /*#__PURE__*/React.forwardRef(functi
79
78
  role: grid ? 'grid' : 'listbox',
80
79
  'aria-multiselectable': multiple ? 'true' : undefined,
81
80
  onKeyDown(event) {
82
- if (disabled || readOnly) {
81
+ if (store.state.disabled || store.state.readOnly) {
83
82
  return;
84
83
  }
85
84
  if (event.key === 'Enter') {
@@ -110,8 +109,8 @@ const ComboboxList = exports.ComboboxList = /*#__PURE__*/React.forwardRef(functi
110
109
  return element;
111
110
  }
112
111
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CompositeList.CompositeList, {
113
- elementsRef: listRef,
114
- labelsRef: items ? undefined : labelsRef,
112
+ elementsRef: store.state.listRef,
113
+ labelsRef: hasItems ? undefined : store.state.labelsRef,
115
114
  children: element
116
115
  });
117
116
  });
@@ -6,17 +6,37 @@ import type { TransitionStatus } from "../../utils/useTransitionStatus.js";
6
6
  /**
7
7
  * A container for the list.
8
8
  * Renders a `<div>` element.
9
+ *
10
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
9
11
  */
10
12
  export declare const ComboboxPopup: React.ForwardRefExoticComponent<Omit<ComboboxPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
13
  export interface ComboboxPopupState {
14
+ /**
15
+ * Whether the component is open.
16
+ */
12
17
  open: boolean;
18
+ /**
19
+ * The side of the anchor the component is placed on.
20
+ */
13
21
  side: Side;
22
+ /**
23
+ * The alignment of the component relative to the anchor.
24
+ */
14
25
  align: Align;
26
+ /**
27
+ * Whether the anchor element is hidden.
28
+ */
15
29
  anchorHidden: boolean;
30
+ /**
31
+ * The transition status of the component.
32
+ */
16
33
  transitionStatus: TransitionStatus;
34
+ /**
35
+ * Whether there are no items to display.
36
+ */
17
37
  empty: boolean;
18
38
  }
19
- export interface ComboboxPopupProps extends BaseUIComponentProps<'div', ComboboxPopup.State> {
39
+ export interface ComboboxPopupProps extends BaseUIComponentProps<'div', ComboboxPopupState> {
20
40
  /**
21
41
  * Determines the element to focus when the popup is opened.
22
42
  *
@@ -26,7 +46,7 @@ export interface ComboboxPopupProps extends BaseUIComponentProps<'div', Combobox
26
46
  * - `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).
27
47
  * Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.
28
48
  */
29
- initialFocus?: (boolean | React.RefObject<HTMLElement | null> | ((openType: InteractionType) => void | boolean | HTMLElement | null)) | undefined;
49
+ initialFocus?: boolean | React.RefObject<HTMLElement | null> | ((openType: InteractionType) => void | boolean | HTMLElement | null) | undefined;
30
50
  /**
31
51
  * Determines the element to focus when the popup is closed.
32
52
  *
@@ -36,7 +56,7 @@ export interface ComboboxPopupProps extends BaseUIComponentProps<'div', Combobox
36
56
  * - `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).
37
57
  * Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.
38
58
  */
39
- finalFocus?: (boolean | React.RefObject<HTMLElement | null> | ((closeType: InteractionType) => void | boolean | HTMLElement | null)) | undefined;
59
+ finalFocus?: boolean | React.RefObject<HTMLElement | null> | ((closeType: InteractionType) => void | boolean | HTMLElement | null) | undefined;
40
60
  }
41
61
  export declare namespace ComboboxPopup {
42
62
  type State = ComboboxPopupState;
@@ -18,6 +18,7 @@ var _useOpenChangeComplete = require("../../utils/useOpenChangeComplete");
18
18
  var _stateAttributesMapping = require("../../utils/stateAttributesMapping");
19
19
  var _utils = require("../../floating-ui-react/utils");
20
20
  var _getDisabledMountTransitionStyles = require("../../utils/getDisabledMountTransitionStyles");
21
+ var _ComboboxInternalDismissButton = require("../utils/ComboboxInternalDismissButton");
21
22
  var _jsxRuntime = require("react/jsx-runtime");
22
23
  const stateAttributesMapping = {
23
24
  ..._popupStateMapping.popupStateMapping,
@@ -27,11 +28,14 @@ const stateAttributesMapping = {
27
28
  /**
28
29
  * A container for the list.
29
30
  * Renders a `<div>` element.
31
+ *
32
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
30
33
  */
31
34
  const ComboboxPopup = exports.ComboboxPopup = /*#__PURE__*/React.forwardRef(function ComboboxPopup(componentProps, forwardedRef) {
32
35
  const {
33
36
  render,
34
37
  className,
38
+ style,
35
39
  initialFocus,
36
40
  finalFocus,
37
41
  ...elementProps
@@ -48,6 +52,7 @@ const ComboboxPopup = exports.ComboboxPopup = /*#__PURE__*/React.forwardRef(func
48
52
  const transitionStatus = (0, _store.useStore)(store, _store2.selectors.transitionStatus);
49
53
  const inputInsidePopup = (0, _store.useStore)(store, _store2.selectors.inputInsidePopup);
50
54
  const inputElement = (0, _store.useStore)(store, _store2.selectors.inputElement);
55
+ const modal = (0, _store.useStore)(store, _store2.selectors.modal);
51
56
  const empty = filteredItems.length === 0;
52
57
  (0, _useOpenChangeComplete.useOpenChangeComplete)({
53
58
  open,
@@ -93,14 +98,20 @@ const ComboboxPopup = exports.ComboboxPopup = /*#__PURE__*/React.forwardRef(func
93
98
  } else {
94
99
  resolvedFinalFocus = inputInsidePopup ? undefined : false;
95
100
  }
101
+ const focusManagerModal = !inputInsidePopup || modal;
96
102
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_floatingUiReact.FloatingFocusManager, {
97
103
  context: floatingRootContext,
98
104
  disabled: !mounted,
99
- modal: !inputInsidePopup,
105
+ modal: focusManagerModal,
100
106
  openInteractionType: openMethod,
101
107
  initialFocus: resolvedInitialFocus,
102
108
  returnFocus: resolvedFinalFocus,
103
- children: element
109
+ getInsideElements: () => [store.state.startDismissRef.current, store.state.endDismissRef.current],
110
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
111
+ children: [element, focusManagerModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ComboboxInternalDismissButton.ComboboxInternalDismissButton, {
112
+ ref: store.state.endDismissRef
113
+ })]
114
+ })
104
115
  });
105
116
  });
106
117
  if (process.env.NODE_ENV !== "production") ComboboxPopup.displayName = "ComboboxPopup";
@@ -4,12 +4,12 @@ import { FloatingPortal } from "../../floating-ui-react/index.js";
4
4
  * A portal element that moves the popup to a different part of the DOM.
5
5
  * By default, the portal element is appended to `<body>`.
6
6
  * Renders a `<div>` element.
7
+ *
8
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
7
9
  */
8
10
  export declare const ComboboxPortal: React.ForwardRefExoticComponent<Omit<ComboboxPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- export declare namespace ComboboxPortal {
10
- interface State {}
11
- }
12
- export interface ComboboxPortalProps extends FloatingPortal.Props<ComboboxPortal.State> {
11
+ export interface ComboboxPortalState {}
12
+ export interface ComboboxPortalProps extends FloatingPortal.Props<ComboboxPortalState> {
13
13
  /**
14
14
  * Whether to keep the portal mounted in the DOM while the popup is hidden.
15
15
  * @default false
@@ -17,5 +17,6 @@ export interface ComboboxPortalProps extends FloatingPortal.Props<ComboboxPortal
17
17
  keepMounted?: boolean | undefined;
18
18
  }
19
19
  export declare namespace ComboboxPortal {
20
+ type State = ComboboxPortalState;
20
21
  type Props = ComboboxPortalProps;
21
22
  }
@@ -17,6 +17,8 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
  * A portal element that moves the popup to a different part of the DOM.
18
18
  * By default, the portal element is appended to `<body>`.
19
19
  * Renders a `<div>` element.
20
+ *
21
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
20
22
  */
21
23
  const ComboboxPortal = exports.ComboboxPortal = /*#__PURE__*/React.forwardRef(function ComboboxPortal(props, forwardedRef) {
22
24
  const {
@@ -1,9 +1,11 @@
1
1
  import * as React from 'react';
2
- import { type Side, type Align, useAnchorPositioning } from "../../utils/useAnchorPositioning.js";
2
+ import { type Side, type Align, type UseAnchorPositioningSharedParameters } from "../../utils/useAnchorPositioning.js";
3
3
  import type { BaseUIComponentProps } from "../../utils/types.js";
4
4
  /**
5
5
  * Positions the popup against the trigger.
6
6
  * Renders a `<div>` element.
7
+ *
8
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
7
9
  */
8
10
  export declare const ComboboxPositioner: React.ForwardRefExoticComponent<Omit<ComboboxPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
11
  export interface ComboboxPositionerState {
@@ -11,12 +13,24 @@ export interface ComboboxPositionerState {
11
13
  * Whether the popup is currently open.
12
14
  */
13
15
  open: boolean;
16
+ /**
17
+ * The side of the anchor the component is placed on.
18
+ */
14
19
  side: Side;
20
+ /**
21
+ * The alignment of the component relative to the anchor.
22
+ */
15
23
  align: Align;
24
+ /**
25
+ * Whether the anchor element is hidden.
26
+ */
16
27
  anchorHidden: boolean;
28
+ /**
29
+ * Whether there are no items to display.
30
+ */
17
31
  empty: boolean;
18
32
  }
19
- export interface ComboboxPositionerProps extends useAnchorPositioning.SharedParameters, BaseUIComponentProps<'div', ComboboxPositioner.State> {}
33
+ export interface ComboboxPositionerProps extends UseAnchorPositioningSharedParameters, BaseUIComponentProps<'div', ComboboxPositionerState> {}
20
34
  export declare namespace ComboboxPositioner {
21
35
  type State = ComboboxPositionerState;
22
36
  type Props = ComboboxPositionerProps;
@@ -11,21 +11,21 @@ var _store = require("@base-ui/utils/store");
11
11
  var _useIsoLayoutEffect = require("@base-ui/utils/useIsoLayoutEffect");
12
12
  var _useStableCallback = require("@base-ui/utils/useStableCallback");
13
13
  var _inertValue = require("@base-ui/utils/inertValue");
14
- var _useScrollLock = require("@base-ui/utils/useScrollLock");
15
14
  var _ComboboxRootContext = require("../root/ComboboxRootContext");
16
15
  var _ComboboxPositionerContext = require("./ComboboxPositionerContext");
17
16
  var _useAnchorPositioning = require("../../utils/useAnchorPositioning");
18
- var _popupStateMapping = require("../../utils/popupStateMapping");
19
17
  var _ComboboxPortalContext = require("../portal/ComboboxPortalContext");
20
18
  var _constants = require("../../utils/constants");
21
- var _getDisabledMountTransitionStyles = require("../../utils/getDisabledMountTransitionStyles");
22
- var _useRenderElement = require("../../utils/useRenderElement");
23
19
  var _store2 = require("../store");
24
20
  var _InternalBackdrop = require("../../utils/InternalBackdrop");
21
+ var _usePositioner = require("../../utils/usePositioner");
22
+ var _useAnchoredPopupScrollLock = require("../../utils/useAnchoredPopupScrollLock");
25
23
  var _jsxRuntime = require("react/jsx-runtime");
26
24
  /**
27
25
  * Positions the popup against the trigger.
28
26
  * Renders a `<div>` element.
27
+ *
28
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
29
29
  */
30
30
  const ComboboxPositioner = exports.ComboboxPositioner = /*#__PURE__*/React.forwardRef(function ComboboxPositioner(componentProps, forwardedRef) {
31
31
  const {
@@ -43,6 +43,7 @@ const ComboboxPositioner = exports.ComboboxPositioner = /*#__PURE__*/React.forwa
43
43
  sticky = false,
44
44
  disableAnchorTracking = false,
45
45
  collisionAvoidance = _constants.DROPDOWN_COLLISION_AVOIDANCE,
46
+ style: styleProp,
46
47
  ...elementProps
47
48
  } = componentProps;
48
49
  const store = (0, _ComboboxRootContext.useComboboxRootContext)();
@@ -55,12 +56,14 @@ const ComboboxPositioner = exports.ComboboxPositioner = /*#__PURE__*/React.forwa
55
56
  const open = (0, _store.useStore)(store, _store2.selectors.open);
56
57
  const mounted = (0, _store.useStore)(store, _store2.selectors.mounted);
57
58
  const openMethod = (0, _store.useStore)(store, _store2.selectors.openMethod);
59
+ const positionerElement = (0, _store.useStore)(store, _store2.selectors.positionerElement);
58
60
  const triggerElement = (0, _store.useStore)(store, _store2.selectors.triggerElement);
59
61
  const inputElement = (0, _store.useStore)(store, _store2.selectors.inputElement);
62
+ const inputGroupElement = (0, _store.useStore)(store, _store2.selectors.inputGroupElement);
60
63
  const inputInsidePopup = (0, _store.useStore)(store, _store2.selectors.inputInsidePopup);
61
64
  const transitionStatus = (0, _store.useStore)(store, _store2.selectors.transitionStatus);
62
65
  const empty = filteredItems.length === 0;
63
- const resolvedAnchor = anchor ?? (inputInsidePopup ? triggerElement : inputElement);
66
+ const resolvedAnchor = anchor ?? (inputInsidePopup ? triggerElement : inputGroupElement ?? inputElement);
64
67
  const positioning = (0, _useAnchorPositioning.useAnchorPositioning)({
65
68
  anchor: resolvedAnchor,
66
69
  floatingRootContext,
@@ -79,20 +82,7 @@ const ComboboxPositioner = exports.ComboboxPositioner = /*#__PURE__*/React.forwa
79
82
  collisionAvoidance,
80
83
  lazyFlip: true
81
84
  });
82
- (0, _useScrollLock.useScrollLock)(open && modal && openMethod !== 'touch', triggerElement);
83
- const defaultProps = React.useMemo(() => {
84
- const style = {
85
- ...positioning.positionerStyles
86
- };
87
- if (!open) {
88
- style.pointerEvents = 'none';
89
- }
90
- return {
91
- role: 'presentation',
92
- hidden: !mounted,
93
- style
94
- };
95
- }, [open, mounted, positioning.positionerStyles]);
85
+ (0, _useAnchoredPopupScrollLock.useAnchoredPopupScrollLock)(open && modal, openMethod === 'touch', positionerElement, triggerElement);
96
86
  const state = {
97
87
  open,
98
88
  side: positioning.side,
@@ -103,29 +93,22 @@ const ComboboxPositioner = exports.ComboboxPositioner = /*#__PURE__*/React.forwa
103
93
  (0, _useIsoLayoutEffect.useIsoLayoutEffect)(() => {
104
94
  store.set('popupSide', positioning.side);
105
95
  }, [store, positioning.side]);
106
- const contextValue = React.useMemo(() => ({
107
- side: positioning.side,
108
- align: positioning.align,
109
- arrowRef: positioning.arrowRef,
110
- arrowUncentered: positioning.arrowUncentered,
111
- arrowStyles: positioning.arrowStyles,
112
- anchorHidden: positioning.anchorHidden,
113
- isPositioned: positioning.isPositioned
114
- }), [positioning.side, positioning.align, positioning.arrowRef, positioning.arrowUncentered, positioning.arrowStyles, positioning.anchorHidden, positioning.isPositioned]);
115
96
  const setPositionerElement = (0, _useStableCallback.useStableCallback)(element => {
116
97
  store.set('positionerElement', element);
117
98
  });
118
- const element = (0, _useRenderElement.useRenderElement)('div', componentProps, {
119
- state,
120
- ref: [forwardedRef, setPositionerElement],
121
- props: [defaultProps, (0, _getDisabledMountTransitionStyles.getDisabledMountTransitionStyles)(transitionStatus), elementProps],
122
- stateAttributesMapping: _popupStateMapping.popupStateMapping
99
+ const element = (0, _usePositioner.usePositioner)(componentProps, state, {
100
+ styles: positioning.positionerStyles,
101
+ transitionStatus,
102
+ props: elementProps,
103
+ refs: [forwardedRef, setPositionerElement],
104
+ hidden: !mounted,
105
+ inert: !open
123
106
  });
124
107
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ComboboxPositionerContext.ComboboxPositionerContext.Provider, {
125
- value: contextValue,
108
+ value: positioning,
126
109
  children: [mounted && modal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_InternalBackdrop.InternalBackdrop, {
127
110
  inert: (0, _inertValue.inertValue)(!open),
128
- cutout: inputElement ?? triggerElement
111
+ cutout: inputGroupElement ?? inputElement ?? triggerElement
129
112
  }), element]
130
113
  });
131
114
  });
@@ -1,14 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { Side, Align } from "../../utils/useAnchorPositioning.js";
3
- export interface ComboboxPositionerContext {
4
- side: Side;
5
- align: Align;
6
- arrowRef: React.RefObject<Element | null>;
7
- arrowUncentered: boolean;
8
- arrowStyles: React.CSSProperties;
9
- anchorHidden: boolean;
10
- isPositioned: boolean;
11
- }
2
+ import type { UseAnchorPositioningReturnValue } from "../../utils/useAnchorPositioning.js";
3
+ export type ComboboxPositionerContext = Pick<UseAnchorPositioningReturnValue, 'side' | 'align' | 'arrowRef' | 'arrowUncentered' | 'arrowStyles' | 'anchorHidden' | 'isPositioned'>;
12
4
  export declare const ComboboxPositionerContext: React.Context<ComboboxPositionerContext | undefined>;
13
5
  export declare function useComboboxPositionerContext(optional?: false): ComboboxPositionerContext;
14
6
  export declare function useComboboxPositionerContext(optional: true): ComboboxPositionerContext | undefined;
@@ -19,6 +19,11 @@ interface ComboboxRootProps<ItemValue> {
19
19
  * Identifies the field when a form is submitted.
20
20
  */
21
21
  name?: string | undefined;
22
+ /**
23
+ * Identifies the form that owns the internal input.
24
+ * Useful when the combobox is rendered outside the form.
25
+ */
26
+ form?: string | undefined;
22
27
  /**
23
28
  * The id of the component.
24
29
  */
@@ -69,7 +74,7 @@ interface ComboboxRootProps<ItemValue> {
69
74
  * - `'always'`: highlight the first item as soon as the list opens.
70
75
  * @default false
71
76
  */
72
- autoHighlight?: (boolean | 'always') | undefined;
77
+ autoHighlight?: boolean | 'always' | undefined;
73
78
  /**
74
79
  * Whether the highlighted item should be preserved when the pointer leaves the list.
75
80
  * @default false
@@ -132,17 +137,17 @@ interface ComboboxRootProps<ItemValue> {
132
137
  * The items to be displayed in the list.
133
138
  * Can be either a flat array of items or an array of groups with items.
134
139
  */
135
- items?: (readonly any[] | readonly Group<any>[]) | undefined;
140
+ items?: readonly any[] | readonly Group<any>[] | undefined;
136
141
  /**
137
142
  * Filtered items to display in the list.
138
143
  * When provided, the list will use these items instead of filtering the `items` prop internally.
139
144
  * Use when you want to control filtering logic externally with the `useFilter()` hook.
140
145
  */
141
- filteredItems?: (readonly any[] | readonly Group<any>[]) | undefined;
146
+ filteredItems?: readonly any[] | readonly Group<any>[] | undefined;
142
147
  /**
143
148
  * Filter function used to match items vs input query.
144
149
  */
145
- filter?: (null | ((itemValue: ItemValue, query: string, itemToString?: (itemValue: ItemValue) => string) => boolean)) | undefined;
150
+ filter?: null | ((itemValue: ItemValue, query: string, itemToString?: (itemValue: ItemValue) => string) => boolean) | undefined;
146
151
  /**
147
152
  * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for display in the input.
148
153
  * If the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.
@@ -188,7 +193,7 @@ interface ComboboxRootProps<ItemValue> {
188
193
  * - `none`: items are static (not filtered), and the input value will not change based on the active item.
189
194
  * @default 'list'
190
195
  */
191
- autoComplete?: ('list' | 'both' | 'inline' | 'none') | undefined;
196
+ autoComplete?: 'list' | 'both' | 'inline' | 'none' | undefined;
192
197
  /**
193
198
  * Provides a hint to the browser for autofill on the hidden input element.
194
199
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete
@@ -209,6 +214,7 @@ interface ComboboxRootProps<ItemValue> {
209
214
  */
210
215
  fillInputOnItemPress?: boolean | undefined;
211
216
  }
217
+ export interface AriaComboboxState {}
212
218
  export type AriaComboboxProps<Value, Mode extends SelectionMode = 'none'> = ComboboxRootProps<Value> & {
213
219
  /**
214
220
  * How the combobox should remember the selected value.
@@ -227,7 +233,7 @@ export type AriaComboboxProps<Value, Mode extends SelectionMode = 'none'> = Comb
227
233
  *
228
234
  * To render a controlled combobox, use the `selectedValue` prop instead.
229
235
  */
230
- defaultSelectedValue?: (ComboboxItemValueType<Value, Mode> | null) | undefined;
236
+ defaultSelectedValue?: ComboboxItemValueType<Value, Mode> | null | undefined;
231
237
  /**
232
238
  * Callback fired when the selected value of the combobox changes.
233
239
  */
@@ -235,7 +241,7 @@ export type AriaComboboxProps<Value, Mode extends SelectionMode = 'none'> = Comb
235
241
  };
236
242
  export declare namespace AriaCombobox {
237
243
  type Props<Value, Mode extends SelectionMode = 'none'> = AriaComboboxProps<Value, Mode>;
238
- interface State {}
244
+ type State = AriaComboboxState;
239
245
  interface Actions {
240
246
  unmount: () => void;
241
247
  }
@@ -243,7 +249,7 @@ export declare namespace AriaCombobox {
243
249
  type HighlightEventDetails = BaseUIGenericEventDetails<HighlightEventReason, {
244
250
  index: number;
245
251
  }>;
246
- type ChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.outsidePress | typeof REASONS.itemPress | typeof REASONS.escapeKey | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.inputChange | typeof REASONS.inputClear | typeof REASONS.clearPress | typeof REASONS.chipRemovePress | typeof REASONS.none;
252
+ type ChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.outsidePress | typeof REASONS.itemPress | typeof REASONS.closePress | typeof REASONS.escapeKey | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.inputChange | typeof REASONS.inputClear | typeof REASONS.clearPress | typeof REASONS.chipRemovePress | typeof REASONS.none;
247
253
  type ChangeEventDetails = BaseUIChangeEventDetails<ChangeEventReason>;
248
254
  }
249
255
  export {};