@astryxdesign/core 0.7.11 → 0.7.12-canary.ccb4a6d

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 (533) hide show
  1. package/dist/AppShell/AppShellMobileContext.d.ts.map +1 -1
  2. package/dist/AppShell/AppShellMobileContext.js +4 -3
  3. package/dist/AppShell/useAppShellMainId.d.ts.map +1 -1
  4. package/dist/AppShell/useAppShellMainId.js +3 -2
  5. package/dist/Avatar/AvatarSizeContext.d.ts.map +1 -1
  6. package/dist/Avatar/AvatarSizeContext.js +2 -2
  7. package/dist/Avatar/AvatarStatusLabelContext.d.ts +2 -2
  8. package/dist/Avatar/AvatarStatusLabelContext.d.ts.map +1 -1
  9. package/dist/Avatar/AvatarStatusLabelContext.js +3 -3
  10. package/dist/AvatarGroup/AvatarGroupContext.d.ts.map +1 -1
  11. package/dist/AvatarGroup/AvatarGroupContext.js +2 -2
  12. package/dist/BottomSheet/BottomSheetHostContext.d.ts.map +1 -1
  13. package/dist/BottomSheet/BottomSheetHostContext.js +3 -2
  14. package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
  15. package/dist/BottomSheet/BottomSheetPanel.js +48 -4
  16. package/dist/BottomSheet/BottomSheetSwitcherContext.d.ts.map +1 -1
  17. package/dist/BottomSheet/BottomSheetSwitcherContext.js +2 -2
  18. package/dist/BottomSheet/bottomSheetEscape.d.ts.map +1 -1
  19. package/dist/BottomSheet/bottomSheetEscape.js +2 -2
  20. package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
  21. package/dist/BottomSheet/bottomSheetStack.js +2 -13
  22. package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
  23. package/dist/BottomSheet/useSheetGestures.js +25 -42
  24. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  25. package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
  26. package/dist/Button/Button.d.ts.map +1 -1
  27. package/dist/Button/Button.js +12 -21
  28. package/dist/Button/buttonHitArea.d.ts.map +1 -1
  29. package/dist/Button/buttonHitArea.js +3 -3
  30. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  31. package/dist/ButtonGroup/ButtonGroup.js +13 -7
  32. package/dist/ButtonGroup/ButtonGroupContext.d.ts.map +1 -1
  33. package/dist/ButtonGroup/ButtonGroupContext.js +2 -2
  34. package/dist/Carousel/Carousel.d.ts.map +1 -1
  35. package/dist/Carousel/Carousel.js +24 -15
  36. package/dist/Chat/ChatContext.d.ts.map +1 -1
  37. package/dist/Chat/ChatContext.js +6 -5
  38. package/dist/Chat/useChatStreamScroll.d.ts.map +1 -1
  39. package/dist/Chat/useChatStreamScroll.js +7 -22
  40. package/dist/CheckboxInput/CheckboxRowPressContext.d.ts.map +1 -1
  41. package/dist/CheckboxInput/CheckboxRowPressContext.js +1 -1
  42. package/dist/CheckboxList/CheckboxListContext.d.ts.map +1 -1
  43. package/dist/CheckboxList/CheckboxListContext.js +1 -1
  44. package/dist/Collapsible/CollapsibleGroupContext.d.ts.map +1 -1
  45. package/dist/Collapsible/CollapsibleGroupContext.js +3 -3
  46. package/dist/CommandPalette/CommandPaletteContext.d.ts.map +1 -1
  47. package/dist/CommandPalette/CommandPaletteContext.js +4 -3
  48. package/dist/CommandPalette/busyStartSettle.d.ts.map +1 -1
  49. package/dist/CommandPalette/busyStartSettle.js +2 -2
  50. package/dist/DateInput/TouchDateField.d.ts.map +1 -1
  51. package/dist/DateInput/TouchDateField.js +41 -4
  52. package/dist/Dialog/DialogContext.d.ts.map +1 -1
  53. package/dist/Dialog/DialogContext.js +3 -2
  54. package/dist/DropdownMenu/DropdownMenuContext.d.ts.map +1 -1
  55. package/dist/DropdownMenu/DropdownMenuContext.js +6 -5
  56. package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
  57. package/dist/DropdownMenu/lazyMenuBottomSheet.js +4 -15
  58. package/dist/DropdownMenu/menuRegionStops.d.ts.map +1 -1
  59. package/dist/DropdownMenu/menuRegionStops.js +2 -37
  60. package/dist/FormLayout/FormLayoutContext.d.ts.map +1 -1
  61. package/dist/FormLayout/FormLayoutContext.js +2 -2
  62. package/dist/Heading/Heading.d.ts.map +1 -1
  63. package/dist/Heading/Heading.js +19 -16
  64. package/dist/HoverCard/HoverCard.d.ts +1 -2
  65. package/dist/HoverCard/HoverCard.d.ts.map +1 -1
  66. package/dist/HoverCard/useHoverCard.d.ts +1 -2
  67. package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
  68. package/dist/HoverCard/useHoverCard.js +5 -1
  69. package/dist/Icon/IconDefaultSizeContext.d.ts.map +1 -1
  70. package/dist/Icon/IconDefaultSizeContext.js +2 -2
  71. package/dist/InputGroup/InputGroupContext.d.ts.map +1 -1
  72. package/dist/InputGroup/InputGroupContext.js +2 -2
  73. package/dist/InputGroup/InputGroupInternalContext.d.ts.map +1 -1
  74. package/dist/InputGroup/InputGroupInternalContext.js +2 -2
  75. package/dist/InteractiveRoleContext/InteractiveRoleContext.d.ts.map +1 -1
  76. package/dist/InteractiveRoleContext/InteractiveRoleContext.js +5 -3
  77. package/dist/Item/ItemDescriptionContext.d.ts.map +1 -1
  78. package/dist/Item/ItemDescriptionContext.js +3 -3
  79. package/dist/Item/ItemListRowContext.d.ts.map +1 -1
  80. package/dist/Item/ItemListRowContext.js +3 -3
  81. package/dist/Item/ItemMarkerColumnsContext.d.ts +1 -1
  82. package/dist/Item/ItemMarkerColumnsContext.d.ts.map +1 -1
  83. package/dist/Item/ItemMarkerColumnsContext.js +2 -2
  84. package/dist/Layer/LayerContext.d.ts.map +1 -1
  85. package/dist/Layer/LayerContext.js +3 -2
  86. package/dist/Layer/LayerDepthContext.d.ts.map +1 -1
  87. package/dist/Layer/LayerDepthContext.js +3 -2
  88. package/dist/Layer/LayerTouch.d.ts +3 -2
  89. package/dist/Layer/LayerTouch.d.ts.map +1 -1
  90. package/dist/Layer/LayerTouch.js +3 -2
  91. package/dist/Layer/anchorName.d.ts.map +1 -1
  92. package/dist/Layer/anchorName.js +5 -1
  93. package/dist/Layer/inputHold.d.ts.map +1 -1
  94. package/dist/Layer/inputHold.js +115 -13
  95. package/dist/Layer/layerScopedContext.d.ts +5 -2
  96. package/dist/Layer/layerScopedContext.d.ts.map +1 -1
  97. package/dist/Layer/layerScopedContext.js +27 -10
  98. package/dist/Layer/layerSlideRules.d.ts +28 -26
  99. package/dist/Layer/layerSlideRules.d.ts.map +1 -1
  100. package/dist/Layer/layerSlideRules.js +41 -40
  101. package/dist/Layer/outsidePress.d.ts +21 -3
  102. package/dist/Layer/outsidePress.d.ts.map +1 -1
  103. package/dist/Layer/outsidePress.js +119 -29
  104. package/dist/Layer/settledBox.d.ts +9 -8
  105. package/dist/Layer/settledBox.d.ts.map +1 -1
  106. package/dist/Layer/settledBox.js +169 -49
  107. package/dist/Layer/toastHost.d.ts.map +1 -1
  108. package/dist/Layer/toastHost.js +3 -2
  109. package/dist/Layer/useLayer.d.ts.map +1 -1
  110. package/dist/Layer/useLayer.js +172 -60
  111. package/dist/Layer/useLayerKeyboardClearance.d.ts +14 -2
  112. package/dist/Layer/useLayerKeyboardClearance.d.ts.map +1 -1
  113. package/dist/Layer/useLayerKeyboardClearance.js +83 -12
  114. package/dist/Layer/useTouchTrigger.d.ts +21 -1
  115. package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
  116. package/dist/Layer/useTouchTrigger.js +61 -37
  117. package/dist/Layout/Layout.d.ts +1 -1
  118. package/dist/Layout/Layout.d.ts.map +1 -1
  119. package/dist/Layout/Layout.js +10 -6
  120. package/dist/Layout/LayoutAreaContext.d.ts.map +1 -1
  121. package/dist/Layout/LayoutAreaContext.js +3 -3
  122. package/dist/Layout/LayoutContent.d.ts +6 -6
  123. package/dist/Layout/LayoutContent.js +9 -9
  124. package/dist/Layout/LayoutDividerContext.d.ts.map +1 -1
  125. package/dist/Layout/LayoutDividerContext.js +2 -2
  126. package/dist/Layout/LayoutSlotsContext.d.ts.map +1 -1
  127. package/dist/Layout/LayoutSlotsContext.js +2 -2
  128. package/dist/Link/LinkContext.d.ts +16 -0
  129. package/dist/Link/LinkContext.d.ts.map +1 -1
  130. package/dist/Link/LinkContext.js +3 -3
  131. package/dist/List/List.d.ts +12 -1
  132. package/dist/List/List.d.ts.map +1 -1
  133. package/dist/List/List.js +29 -10
  134. package/dist/List/ListContext.d.ts +18 -3
  135. package/dist/List/ListContext.d.ts.map +1 -1
  136. package/dist/List/ListContext.js +9 -6
  137. package/dist/List/ListItem.d.ts +13 -4
  138. package/dist/List/ListItem.d.ts.map +1 -1
  139. package/dist/List/ListItem.js +37 -10
  140. package/dist/List/listLayoutUpdates.d.ts +34 -0
  141. package/dist/List/listLayoutUpdates.d.ts.map +1 -0
  142. package/dist/List/listLayoutUpdates.js +539 -0
  143. package/dist/Markdown/Markdown.d.ts.map +1 -1
  144. package/dist/Markdown/Markdown.js +57 -10
  145. package/dist/Markdown/blockDirection.d.ts +26 -0
  146. package/dist/Markdown/blockDirection.d.ts.map +1 -0
  147. package/dist/Markdown/blockDirection.js +68 -0
  148. package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts +3 -1
  149. package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts.map +1 -1
  150. package/dist/Markdown/plugins/HeadingLinksRenderer.js +3 -1
  151. package/dist/MetadataList/MetadataListContext.d.ts.map +1 -1
  152. package/dist/MetadataList/MetadataListContext.js +2 -2
  153. package/dist/NavMenu/NavMenuContext.d.ts.map +1 -1
  154. package/dist/NavMenu/NavMenuContext.js +5 -4
  155. package/dist/Popover/Popover.d.ts.map +1 -1
  156. package/dist/Popover/Popover.js +9 -9
  157. package/dist/Popover/usePopover.d.ts.map +1 -1
  158. package/dist/Popover/usePopover.js +11 -8
  159. package/dist/RadioList/RadioList.d.ts.map +1 -1
  160. package/dist/RadioList/RadioList.js +2 -2
  161. package/dist/RadioList/RadioListReasonContext.d.ts.map +1 -1
  162. package/dist/RadioList/RadioListReasonContext.js +1 -1
  163. package/dist/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
  164. package/dist/SegmentedControl/SegmentedControlContext.js +2 -2
  165. package/dist/SelectableCard/selectableCardInput.d.ts.map +1 -1
  166. package/dist/SelectableCard/selectableCardInput.js +2 -2
  167. package/dist/Selector/SelectorRowLayoutContext.d.ts.map +1 -1
  168. package/dist/Selector/SelectorRowLayoutContext.js +2 -2
  169. package/dist/SideNav/SideNavCollapseButton.d.ts +4 -3
  170. package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
  171. package/dist/SideNav/SideNavCollapseContext.d.ts.map +1 -1
  172. package/dist/SideNav/SideNavCollapseContext.js +4 -3
  173. package/dist/SideNav/SideNavFocusTargetsContext.d.ts.map +1 -1
  174. package/dist/SideNav/SideNavFocusTargetsContext.js +2 -2
  175. package/dist/SideNav/SideNavItem.d.ts.map +1 -1
  176. package/dist/SideNav/SideNavItem.js +3 -2
  177. package/dist/SideNav/SideNavRenderContext.d.ts.map +1 -1
  178. package/dist/SideNav/SideNavRenderContext.js +4 -3
  179. package/dist/SideNav/railMotion.d.ts +40 -0
  180. package/dist/SideNav/railMotion.d.ts.map +1 -1
  181. package/dist/SideNav/railMotion.js +2 -2
  182. package/dist/SizeContext/SizeContext.d.ts.map +1 -1
  183. package/dist/SizeContext/SizeContext.js +2 -2
  184. package/dist/SnapPaging/SnapPaging.d.ts.map +1 -1
  185. package/dist/SnapPaging/SnapPaging.js +162 -36
  186. package/dist/SnapPaging/snapPagingValue.d.ts +29 -3
  187. package/dist/SnapPaging/snapPagingValue.d.ts.map +1 -1
  188. package/dist/SnapPaging/snapPagingValue.js +38 -6
  189. package/dist/Spinner/SpinnerOwnerContext.d.ts.map +1 -1
  190. package/dist/Spinner/SpinnerOwnerContext.js +2 -2
  191. package/dist/Stepper/StepperContext.d.ts.map +1 -1
  192. package/dist/Stepper/StepperContext.js +3 -3
  193. package/dist/Switch/useSwitchTouch.d.ts.map +1 -1
  194. package/dist/Switch/useSwitchTouch.js +8 -3
  195. package/dist/TabList/TabListContext.d.ts.map +1 -1
  196. package/dist/TabList/TabListContext.js +2 -2
  197. package/dist/Table/BaseTable.d.ts +3 -2
  198. package/dist/Table/BaseTable.d.ts.map +1 -1
  199. package/dist/Table/BaseTable.js +73 -16
  200. package/dist/Table/Table.d.ts.map +1 -1
  201. package/dist/Table/Table.js +3 -2
  202. package/dist/Table/TableContext.d.ts.map +1 -1
  203. package/dist/Table/TableContext.js +2 -2
  204. package/dist/Table/index.d.ts +1 -1
  205. package/dist/Table/index.d.ts.map +1 -1
  206. package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
  207. package/dist/Table/plugins/filtering/useTableFiltering.js +4 -3
  208. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
  209. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +5 -3
  210. package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts +16 -18
  211. package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts.map +1 -1
  212. package/dist/Table/plugins/rowIndex/useTableRowIndex.js +48 -39
  213. package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
  214. package/dist/Table/plugins/selection/useTableSelection.js +4 -2
  215. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
  216. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +1 -0
  217. package/dist/Table/plugins/tree/useTableTreeData.d.ts.map +1 -1
  218. package/dist/Table/plugins/tree/useTableTreeData.js +3 -2
  219. package/dist/Table/tableRowContextUsage.d.ts +21 -0
  220. package/dist/Table/tableRowContextUsage.d.ts.map +1 -0
  221. package/dist/Table/tableRowContextUsage.js +88 -0
  222. package/dist/Table/types.d.ts +58 -5
  223. package/dist/Table/types.d.ts.map +1 -1
  224. package/dist/Table/useBaseTablePlugins.d.ts.map +1 -1
  225. package/dist/Table/useBaseTablePlugins.js +5 -2
  226. package/dist/Text/Text.d.ts.map +1 -1
  227. package/dist/Text/Text.js +18 -14
  228. package/dist/Text/TruncationTooltip.d.ts +45 -0
  229. package/dist/Text/TruncationTooltip.d.ts.map +1 -0
  230. package/dist/Text/TruncationTooltip.js +123 -0
  231. package/dist/Text/textClampContext.d.ts.map +1 -1
  232. package/dist/Text/textClampContext.js +1 -1
  233. package/dist/TimeInput/TimeInput.d.ts.map +1 -1
  234. package/dist/TimeInput/TimeInput.js +4 -0
  235. package/dist/ToggleButton/ToggleButtonGroup.d.ts.map +1 -1
  236. package/dist/ToggleButton/ToggleButtonGroup.js +2 -2
  237. package/dist/Token/TokenNamingContext.d.ts.map +1 -1
  238. package/dist/Token/TokenNamingContext.js +2 -2
  239. package/dist/Tokenizer/TokenizerClearAllMessageContext.d.ts.map +1 -1
  240. package/dist/Tokenizer/TokenizerClearAllMessageContext.js +2 -2
  241. package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts +12 -0
  242. package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts.map +1 -1
  243. package/dist/Tokenizer/TokenizerItemRemovableContext.js +2 -2
  244. package/dist/Toolbar/Toolbar.d.ts.map +1 -1
  245. package/dist/Toolbar/Toolbar.js +12 -6
  246. package/dist/Tooltip/tooltipPresentInterest.d.ts +29 -0
  247. package/dist/Tooltip/tooltipPresentInterest.d.ts.map +1 -0
  248. package/dist/Tooltip/tooltipPresentInterest.js +29 -0
  249. package/dist/Tooltip/useTooltip.d.ts.map +1 -1
  250. package/dist/Tooltip/useTooltip.js +30 -4
  251. package/dist/TopNav/TopNavContext.d.ts.map +1 -1
  252. package/dist/TopNav/TopNavContext.js +2 -2
  253. package/dist/TopNav/TopNavMobileContentContext.d.ts +1 -1
  254. package/dist/TopNav/TopNavMobileContentContext.d.ts.map +1 -1
  255. package/dist/TopNav/TopNavMobileContentContext.js +4 -3
  256. package/dist/TopNav/TopNavRenderContext.d.ts.map +1 -1
  257. package/dist/TopNav/TopNavRenderContext.js +4 -3
  258. package/dist/Typeahead/busyIndicatorLane.d.ts.map +1 -1
  259. package/dist/Typeahead/busyIndicatorLane.js +3 -2
  260. package/dist/Typeahead/committedChoicesKey.d.ts.map +1 -1
  261. package/dist/Typeahead/committedChoicesKey.js +3 -2
  262. package/dist/Typeahead/trailingKeyDown.d.ts.map +1 -1
  263. package/dist/Typeahead/trailingKeyDown.js +3 -2
  264. package/dist/astryx.css +18 -8
  265. package/dist/gestures/GestureArena.d.ts +2 -0
  266. package/dist/gestures/GestureArena.d.ts.map +1 -1
  267. package/dist/gestures/GestureArena.js +8 -1
  268. package/dist/gestures/GestureRecognizer.d.ts +6 -0
  269. package/dist/gestures/GestureRecognizer.d.ts.map +1 -1
  270. package/dist/gestures/GestureRecognizer.js +9 -0
  271. package/dist/gestures/PressTracker.d.ts.map +1 -1
  272. package/dist/gestures/PressTracker.js +9 -4
  273. package/dist/hooks/focusableSelector.d.ts +13 -1
  274. package/dist/hooks/focusableSelector.d.ts.map +1 -1
  275. package/dist/hooks/focusableSelector.js +22 -2
  276. package/dist/hooks/longPressDetector.d.ts.map +1 -1
  277. package/dist/hooks/longPressDetector.js +1 -25
  278. package/dist/hooks/pressGroupContext.d.ts.map +1 -1
  279. package/dist/hooks/pressGroupContext.js +1 -1
  280. package/dist/hooks/useActionGroupTracking.d.ts +18 -1
  281. package/dist/hooks/useActionGroupTracking.d.ts.map +1 -1
  282. package/dist/hooks/useActionGroupTracking.js +13 -2
  283. package/dist/hooks/useAnnounce.d.ts.map +1 -1
  284. package/dist/hooks/useAnnounce.js +3 -2
  285. package/dist/hooks/useFocusTrap.d.ts +11 -0
  286. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  287. package/dist/hooks/useFocusTrap.js +47 -2
  288. package/dist/hooks/useListFocus.d.ts +7 -0
  289. package/dist/hooks/useListFocus.d.ts.map +1 -1
  290. package/dist/hooks/useListFocus.js +20 -3
  291. package/dist/hooks/usePager.d.ts.map +1 -1
  292. package/dist/hooks/usePager.js +26 -3
  293. package/dist/hooks/useScrollOverflow.d.ts +22 -0
  294. package/dist/hooks/useScrollOverflow.d.ts.map +1 -1
  295. package/dist/hooks/useScrollOverflow.js +67 -11
  296. package/dist/i18n/InternationalizationContext.d.ts +19 -0
  297. package/dist/i18n/InternationalizationContext.d.ts.map +1 -1
  298. package/dist/i18n/InternationalizationContext.js +3 -3
  299. package/dist/i18n/englishFallback.d.ts.map +1 -1
  300. package/dist/i18n/englishFallback.js +5 -1
  301. package/dist/i18n/firstStrongDirection.d.ts +7 -0
  302. package/dist/i18n/firstStrongDirection.d.ts.map +1 -0
  303. package/dist/i18n/firstStrongDirection.js +65 -0
  304. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  305. package/dist/i18n/generated-locales/en.generated.js +1 -0
  306. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  307. package/dist/i18n/generated-locales/pseudo.generated.js +1 -0
  308. package/dist/internal/scroll-anchoring.d.ts +16 -0
  309. package/dist/internal/scroll-anchoring.d.ts.map +1 -0
  310. package/dist/internal/scroll-anchoring.js +16 -0
  311. package/dist/internal/touch.d.ts +2 -0
  312. package/dist/internal/touch.d.ts.map +1 -1
  313. package/dist/internal/touch.js +4 -1
  314. package/dist/motion/animatedLayout.d.ts +8 -0
  315. package/dist/motion/animatedLayout.d.ts.map +1 -1
  316. package/dist/motion/animatedLayout.js +51 -3
  317. package/dist/motion/animator.d.ts +19 -2
  318. package/dist/motion/animator.d.ts.map +1 -1
  319. package/dist/motion/animator.js +72 -7
  320. package/dist/privateAttributes/itemKey.stylex.d.ts +5 -0
  321. package/dist/privateAttributes/itemKey.stylex.d.ts.map +1 -0
  322. package/dist/privateAttributes/itemKey.stylex.js +25 -0
  323. package/dist/privateAttributes/leaving.stylex.d.ts +5 -0
  324. package/dist/privateAttributes/leaving.stylex.d.ts.map +1 -0
  325. package/dist/privateAttributes/leaving.stylex.js +23 -0
  326. package/dist/privateAttributes/press.stylex.d.ts.map +1 -1
  327. package/dist/privateAttributes/press.stylex.js +13 -3
  328. package/dist/privateAttributes/scrollAnchoring.stylex.d.ts +7 -0
  329. package/dist/privateAttributes/scrollAnchoring.stylex.d.ts.map +1 -0
  330. package/dist/privateAttributes/scrollAnchoring.stylex.js +50 -0
  331. package/dist/privateAttributes/travelling.stylex.d.ts +27 -0
  332. package/dist/privateAttributes/travelling.stylex.d.ts.map +1 -0
  333. package/dist/privateAttributes/travelling.stylex.js +51 -0
  334. package/dist/theme/Theme.d.ts.map +1 -1
  335. package/dist/theme/Theme.js +95 -49
  336. package/dist/theme/syntax/SyntaxTheme.d.ts.map +1 -1
  337. package/dist/theme/syntax/SyntaxTheme.js +3 -2
  338. package/dist/theme/useTheme.d.ts.map +1 -1
  339. package/dist/theme/useTheme.js +3 -2
  340. package/dist/utils/calendarSystem.d.ts.map +1 -1
  341. package/dist/utils/calendarSystem.js +4 -1
  342. package/dist/utils/flatTree.d.ts +13 -0
  343. package/dist/utils/flatTree.d.ts.map +1 -1
  344. package/dist/utils/flatTree.js +28 -4
  345. package/dist/utils/inputAge.d.ts +22 -0
  346. package/dist/utils/inputAge.d.ts.map +1 -0
  347. package/dist/utils/inputAge.js +54 -0
  348. package/dist/utils/inputStream.d.ts +8 -0
  349. package/dist/utils/inputStream.d.ts.map +1 -1
  350. package/dist/utils/inputStream.js +53 -3
  351. package/dist/utils/moduleLoader.d.ts +23 -0
  352. package/dist/utils/moduleLoader.d.ts.map +1 -0
  353. package/dist/utils/moduleLoader.js +31 -0
  354. package/dist/utils/pressFeedback.d.ts.map +1 -1
  355. package/dist/utils/pressFeedback.js +13 -8
  356. package/dist/utils/selectionLock.d.ts.map +1 -1
  357. package/dist/utils/selectionLock.js +7 -14
  358. package/dist/utils/sharedContext.d.ts +18 -0
  359. package/dist/utils/sharedContext.d.ts.map +1 -0
  360. package/dist/utils/sharedContext.js +33 -0
  361. package/dist/utils/sharedRealm.d.ts +24 -0
  362. package/dist/utils/sharedRealm.d.ts.map +1 -0
  363. package/dist/utils/sharedRealm.js +38 -0
  364. package/locales/en.json +4 -0
  365. package/locales/pseudo.json +3 -0
  366. package/package.json +10 -5
  367. package/src/AppShell/AppShellMobileContext.tsx +8 -3
  368. package/src/AppShell/useAppShellMainId.ts +7 -2
  369. package/src/Avatar/AvatarSizeContext.ts +6 -2
  370. package/src/Avatar/AvatarStatusLabelContext.ts +8 -3
  371. package/src/AvatarGroup/AvatarGroupContext.ts +7 -4
  372. package/src/BottomSheet/BottomSheetHostContext.ts +7 -3
  373. package/src/BottomSheet/BottomSheetPanel.tsx +56 -7
  374. package/src/BottomSheet/BottomSheetSwitcherContext.ts +7 -2
  375. package/src/BottomSheet/bottomSheetEscape.ts +6 -2
  376. package/src/BottomSheet/bottomSheetStack.ts +6 -14
  377. package/src/BottomSheet/useSheetGestures.ts +28 -48
  378. package/src/Breadcrumbs/Breadcrumbs.tsx +6 -5
  379. package/src/Button/Button.doc.mjs +3 -3
  380. package/src/Button/Button.tsx +10 -22
  381. package/src/Button/buttonHitArea.ts +7 -4
  382. package/src/ButtonGroup/ButtonGroup.doc.mjs +3 -3
  383. package/src/ButtonGroup/ButtonGroup.tsx +27 -16
  384. package/src/ButtonGroup/ButtonGroupContext.ts +7 -4
  385. package/src/Carousel/Carousel.tsx +33 -15
  386. package/src/Chat/ChatContext.tsx +23 -7
  387. package/src/Chat/useChatStreamScroll.ts +7 -26
  388. package/src/CheckboxInput/CheckboxRowPressContext.ts +5 -1
  389. package/src/CheckboxList/CheckboxListContext.tsx +5 -1
  390. package/src/Collapsible/CollapsibleGroupContext.tsx +11 -3
  391. package/src/CommandPalette/CommandPaletteContext.ts +8 -3
  392. package/src/CommandPalette/busyStartSettle.ts +6 -2
  393. package/src/DateInput/TouchDateField.tsx +62 -4
  394. package/src/Dialog/DialogContext.ts +7 -2
  395. package/src/DropdownMenu/DropdownMenuContext.tsx +18 -5
  396. package/src/DropdownMenu/lazyMenuBottomSheet.ts +6 -18
  397. package/src/DropdownMenu/menuRegionStops.ts +1 -49
  398. package/src/FormLayout/FormLayoutContext.ts +3 -3
  399. package/src/Heading/Heading.tsx +34 -18
  400. package/src/HoverCard/HoverCard.doc.mjs +3 -3
  401. package/src/HoverCard/HoverCard.tsx +1 -2
  402. package/src/HoverCard/useHoverCard.tsx +6 -2
  403. package/src/Icon/IconDefaultSizeContext.ts +6 -2
  404. package/src/IconButton/IconButton.doc.mjs +2 -2
  405. package/src/InputGroup/InputGroupContext.ts +7 -4
  406. package/src/InputGroup/InputGroupInternalContext.ts +6 -2
  407. package/src/InteractiveRoleContext/InteractiveRoleContext.ts +8 -3
  408. package/src/Item/ItemDescriptionContext.tsx +7 -3
  409. package/src/Item/ItemListRowContext.tsx +7 -3
  410. package/src/Item/ItemMarkerColumnsContext.tsx +7 -2
  411. package/src/Layer/LayerContext.ts +7 -2
  412. package/src/Layer/LayerDepthContext.tsx +3 -2
  413. package/src/Layer/LayerTouch.ts +6 -2
  414. package/src/Layer/anchorName.ts +8 -4
  415. package/src/Layer/inputHold.ts +138 -21
  416. package/src/Layer/layerScopedContext.tsx +34 -7
  417. package/src/Layer/layerSlideRules.ts +43 -40
  418. package/src/Layer/outsidePress.ts +144 -28
  419. package/src/Layer/settledBox.ts +216 -54
  420. package/src/Layer/toastHost.tsx +6 -2
  421. package/src/Layer/useLayer.tsx +200 -69
  422. package/src/Layer/useLayerKeyboardClearance.ts +90 -12
  423. package/src/Layer/useTouchTrigger.ts +89 -40
  424. package/src/Layout/Layout.doc.mjs +17 -0
  425. package/src/Layout/Layout.tsx +13 -9
  426. package/src/Layout/LayoutAreaContext.ts +8 -9
  427. package/src/Layout/LayoutContent.doc.mjs +11 -0
  428. package/src/Layout/LayoutContent.tsx +9 -9
  429. package/src/Layout/LayoutDividerContext.ts +6 -2
  430. package/src/Layout/LayoutSlotsContext.ts +6 -3
  431. package/src/Link/LinkContext.ts +7 -3
  432. package/src/List/List.doc.mjs +5 -0
  433. package/src/List/List.tsx +53 -5
  434. package/src/List/ListContext.tsx +28 -6
  435. package/src/List/ListItem.doc.mjs +11 -0
  436. package/src/List/ListItem.tsx +51 -14
  437. package/src/List/listLayoutUpdates.ts +603 -0
  438. package/src/Markdown/Markdown.tsx +93 -5
  439. package/src/Markdown/blockDirection.ts +100 -0
  440. package/src/Markdown/plugins/HeadingLinksRenderer.tsx +4 -0
  441. package/src/MetadataList/MetadataListContext.tsx +6 -2
  442. package/src/NavMenu/NavMenuContext.tsx +14 -5
  443. package/src/Popover/Popover.tsx +23 -16
  444. package/src/Popover/usePopover.tsx +21 -7
  445. package/src/RadioList/RadioList.tsx +7 -4
  446. package/src/RadioList/RadioListReasonContext.ts +1 -1
  447. package/src/Section/Section.doc.mjs +22 -0
  448. package/src/SegmentedControl/SegmentedControlContext.ts +6 -2
  449. package/src/SelectableCard/selectableCardInput.ts +6 -2
  450. package/src/Selector/SelectorRowLayoutContext.ts +6 -2
  451. package/src/SideNav/SideNavCollapseButton.doc.mjs +5 -5
  452. package/src/SideNav/SideNavCollapseButton.tsx +4 -3
  453. package/src/SideNav/SideNavCollapseContext.ts +12 -7
  454. package/src/SideNav/SideNavFocusTargetsContext.ts +6 -2
  455. package/src/SideNav/SideNavItem.tsx +6 -2
  456. package/src/SideNav/SideNavRenderContext.ts +9 -8
  457. package/src/SideNav/railMotion.ts +6 -2
  458. package/src/SizeContext/SizeContext.ts +6 -2
  459. package/src/SnapPaging/SnapPaging.ts +164 -39
  460. package/src/SnapPaging/snapPagingValue.ts +59 -12
  461. package/src/Spinner/SpinnerOwnerContext.ts +6 -2
  462. package/src/Stepper/StepperContext.ts +12 -3
  463. package/src/Switch/useSwitchTouch.ts +7 -5
  464. package/src/TabList/TabListContext.ts +7 -2
  465. package/src/Table/BaseTable.tsx +143 -19
  466. package/src/Table/Table.tsx +4 -3
  467. package/src/Table/TableContext.ts +6 -2
  468. package/src/Table/index.ts +2 -0
  469. package/src/Table/plugins/filtering/useTableFiltering.tsx +11 -3
  470. package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +10 -3
  471. package/src/Table/plugins/rowIndex/useTableRowIndex.tsx +38 -29
  472. package/src/Table/plugins/selection/useTableSelection.tsx +7 -2
  473. package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +1 -0
  474. package/src/Table/plugins/tree/useTableTreeData.tsx +6 -2
  475. package/src/Table/tableRowContextUsage.ts +105 -0
  476. package/src/Table/types.ts +60 -2
  477. package/src/Table/useBaseTablePlugins.ts +5 -2
  478. package/src/Table/useTableRowIndex.doc.mjs +6 -7
  479. package/src/Text/Text.tsx +34 -18
  480. package/src/Text/TruncationTooltip.tsx +179 -0
  481. package/src/Text/textClampContext.ts +5 -1
  482. package/src/TimeInput/TimeInput.tsx +4 -0
  483. package/src/ToggleButton/ToggleButtonGroup.tsx +6 -2
  484. package/src/Token/TokenNamingContext.ts +6 -2
  485. package/src/Tokenizer/TokenizerClearAllMessageContext.ts +4 -4
  486. package/src/Tokenizer/TokenizerItemRemovableContext.ts +3 -3
  487. package/src/Toolbar/Toolbar.tsx +16 -9
  488. package/src/Tooltip/tooltipPresentInterest.ts +43 -0
  489. package/src/Tooltip/useTooltip.tsx +33 -0
  490. package/src/TopNav/TopNavContext.ts +6 -2
  491. package/src/TopNav/TopNavMobileContentContext.ts +8 -3
  492. package/src/TopNav/TopNavRenderContext.ts +8 -4
  493. package/src/Typeahead/busyIndicatorLane.tsx +7 -2
  494. package/src/Typeahead/committedChoicesKey.tsx +4 -3
  495. package/src/Typeahead/trailingKeyDown.tsx +7 -2
  496. package/src/gestures/GestureArena.ts +8 -1
  497. package/src/gestures/GestureRecognizer.ts +9 -0
  498. package/src/gestures/PressTracker.ts +13 -4
  499. package/src/hooks/focusableSelector.ts +29 -1
  500. package/src/hooks/longPressDetector.ts +1 -35
  501. package/src/hooks/pressGroupContext.ts +5 -1
  502. package/src/hooks/useActionGroupTracking.ts +29 -2
  503. package/src/hooks/useAnnounce.ts +8 -4
  504. package/src/hooks/useFocusTrap.ts +62 -2
  505. package/src/hooks/useListFocus.ts +34 -7
  506. package/src/hooks/usePager.ts +30 -3
  507. package/src/hooks/useScrollOverflow.ts +65 -7
  508. package/src/i18n/InternationalizationContext.ts +12 -8
  509. package/src/i18n/englishFallback.ts +7 -1
  510. package/src/i18n/firstStrongDirection.ts +69 -0
  511. package/src/i18n/generated-locales/en.generated.ts +1 -0
  512. package/src/i18n/generated-locales/pseudo.generated.ts +1 -0
  513. package/src/internal/scroll-anchoring.ts +16 -0
  514. package/src/internal/touch.ts +4 -0
  515. package/src/motion/animatedLayout.ts +44 -3
  516. package/src/motion/animator.ts +97 -9
  517. package/src/privateAttributes/itemKey.stylex.ts +25 -0
  518. package/src/privateAttributes/leaving.stylex.ts +23 -0
  519. package/src/privateAttributes/press.stylex.ts +19 -7
  520. package/src/privateAttributes/scrollAnchoring.stylex.ts +50 -0
  521. package/src/privateAttributes/travelling.stylex.ts +88 -0
  522. package/src/theme/Theme.tsx +124 -60
  523. package/src/theme/syntax/SyntaxTheme.tsx +7 -2
  524. package/src/theme/useTheme.ts +7 -8
  525. package/src/utils/calendarSystem.ts +7 -1
  526. package/src/utils/flatTree.ts +31 -4
  527. package/src/utils/inputAge.ts +66 -0
  528. package/src/utils/inputStream.ts +52 -3
  529. package/src/utils/moduleLoader.ts +47 -0
  530. package/src/utils/pressFeedback.ts +16 -7
  531. package/src/utils/selectionLock.ts +8 -18
  532. package/src/utils/sharedContext.ts +42 -0
  533. package/src/utils/sharedRealm.ts +42 -0
@@ -48,6 +48,8 @@
48
48
  * - /packages/core/src/DateInput/DateInputTouch.test.tsx
49
49
  */
50
50
  import { useCallback, useEffect, useId, useMemo, useOptimistic, useRef, useState, useTransition } from 'react';
51
+ import { flushSync } from 'react-dom';
52
+ import { moveFocusLeftBehind, noteFocusWithin } from "../utils/focusReturn.js";
51
53
  import * as stylex from '@stylexjs/stylex';
52
54
  import { inputDisabledFocusStyles } from "../Field/inputDisabledFocus.js";
53
55
  import { BottomSheet } from "../BottomSheet/index.js";
@@ -326,6 +328,9 @@ export function TouchDateField({
326
328
  useBusyAnnouncement(isBusy, t('@astryx.spinner.loading'), isSheetOpen ? sheetBodyRef : inputRef);
327
329
  const [isWheelOpen, setIsWheelOpen] = useState(false);
328
330
  const scrollerHandleRef = useRef(null);
331
+ const previousArrowRef = useRef(null);
332
+ const nextArrowRef = useRef(null);
333
+ const monthYearButtonRef = useRef(null);
329
334
  // Pending focus handoff from the clear button; see handleClear.
330
335
  const clearFocusTimerRef = useRef(null);
331
336
  // Releases the focus timer on unmount.
@@ -470,6 +475,34 @@ export function TouchDateField({
470
475
  scrollerHandleRef.current?.scrollToMonth(target, 'smooth');
471
476
  }, [monthIndex, minMonthIndex, maxMonthIndex]);
472
477
 
478
+ // An arrow at the range end hides, and a hidden element loses focus. So
479
+ // when a move to `target` hides the focused arrow, focus moves to the other
480
+ // arrow, or to the month-and-year button when both hide. The move renders
481
+ // first, because in a two-month range the other arrow is hidden until then.
482
+ const moveMonth = useCallback((target, move) => {
483
+ const previousHides = target <= minMonthIndex;
484
+ const nextHides = target >= maxMonthIndex;
485
+ const previousArrow = previousArrowRef.current;
486
+ const nextArrow = nextArrowRef.current;
487
+ const focusOnPrevious = previousHides ? noteFocusWithin(previousArrow) : null;
488
+ const focusOnNext = nextHides ? noteFocusWithin(nextArrow) : null;
489
+ const focusOnArrow = focusOnPrevious ?? focusOnNext;
490
+ if (focusOnArrow == null) {
491
+ move();
492
+ return;
493
+ }
494
+ // eslint-disable-next-line @eslint-react/dom-no-flush-sync -- the other arrow must be shown before it can take focus
495
+ flushSync(move);
496
+ const isOnPrevious = focusOnPrevious != null;
497
+ const otherArrowHides = isOnPrevious ? nextHides : previousHides;
498
+ const destination = otherArrowHides ? monthYearButtonRef.current : isOnPrevious ? nextArrowRef.current : previousArrowRef.current;
499
+ moveFocusLeftBehind(focusOnArrow, destination, isOnPrevious ? previousArrow : nextArrow);
500
+ }, [minMonthIndex, maxMonthIndex]);
501
+ const stepMonthFromArrow = useCallback(delta => {
502
+ const target = clampIndex(monthIndex + delta, minMonthIndex, maxMonthIndex);
503
+ moveMonth(target, () => stepMonth(delta));
504
+ }, [monthIndex, minMonthIndex, maxMonthIndex, moveMonth, stepMonth]);
505
+
473
506
  // A wheel commit steers the scroller immediately, even though it is behind
474
507
  // the wheels: it keeps its layout box while hidden, so by the time the
475
508
  // wheels close it is already resting on the new month.
@@ -500,8 +533,9 @@ export function TouchDateField({
500
533
  if (isWheelOpen) {
501
534
  return;
502
535
  }
503
- setMonthIndex(next);
504
- }, [isWheelOpen]);
536
+ // A swipe to the range end hides an arrow, as a press does.
537
+ moveMonth(next, () => setMonthIndex(next));
538
+ }, [isWheelOpen, moveMonth]);
505
539
 
506
540
  /**
507
541
  * Put the calendar back where it belongs when the wheels close.
@@ -556,6 +590,7 @@ export function TouchDateField({
556
590
  className: "x78zum5 x6s0dn4 x1qughib x1txdalj xssyfek"
557
591
  },
558
592
  children: [/*#__PURE__*/_jsxs("button", {
593
+ ref: monthYearButtonRef,
559
594
  type: "button",
560
595
  onClick: () => setIsWheelOpen(open => !open),
561
596
  "aria-expanded": isWheelOpen
@@ -608,8 +643,9 @@ export function TouchDateField({
608
643
  variant: "ghost",
609
644
  size: "sm",
610
645
  xstyle: [styles.monthArrow, !canStepBack && styles.monthArrowUnavailable],
646
+ ref: previousArrowRef,
611
647
  isDisabled: !canStepBack,
612
- onClick: () => stepMonth(-1),
648
+ onClick: () => stepMonthFromArrow(-1),
613
649
  label: t('@astryx.calendar.previousMonth'),
614
650
  icon: /*#__PURE__*/_jsx("span", {
615
651
  ...stylex.props(styles.monthArrowIcon, rtlStyles.mirror),
@@ -623,8 +659,9 @@ export function TouchDateField({
623
659
  variant: "ghost",
624
660
  size: "sm",
625
661
  xstyle: [styles.monthArrow, !canStepForward && styles.monthArrowUnavailable],
662
+ ref: nextArrowRef,
626
663
  isDisabled: !canStepForward,
627
- onClick: () => stepMonth(1),
664
+ onClick: () => stepMonthFromArrow(1),
628
665
  label: t('@astryx.calendar.nextMonth'),
629
666
  icon: /*#__PURE__*/_jsx("span", {
630
667
  ...stylex.props(styles.monthArrowIcon, rtlStyles.mirror),
@@ -1 +1 @@
1
- {"version":3,"file":"DialogContext.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogContext.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,oDAAiD,CAAC;AAG5E,wBAAgB,gBAAgB,IAAI,kBAAkB,GAAG,IAAI,CAE5D"}
1
+ {"version":3,"file":"DialogContext.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogContext.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,oDAIzB,CAAC;AAGF,wBAAgB,gBAAgB,IAAI,kBAAkB,GAAG,IAAI,CAE5D"}
@@ -9,8 +9,9 @@
9
9
  * @position Dialog internals; consumed by focus-managing children and DialogHeader,
10
10
  * and by Lab's DialogHeroHeader through the internal/dialog-context entry
11
11
  */
12
- import { createContext, use } from 'react';
13
- export const DialogContext = /*#__PURE__*/createContext(null);
12
+ import { use } from 'react';
13
+ import { createSharedContext } from "../utils/sharedContext.js";
14
+ export const DialogContext = createSharedContext('DialogContext', 1, null);
14
15
  DialogContext.displayName = 'DialogContext';
15
16
  export function useDialogContext() {
16
17
  return use(DialogContext);
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuContext.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/DropdownMenuContext.tsx"],"names":[],"mappings":"AAmBA,uDAAuD;AACvD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,I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AM,GAAG,SAAS,CAAC;IAC1B,uEAAuE;IACvE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,qEAAqE;IACrE,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,6BAA6B,oEACsB,CAAC;AAGjE;;;GAGG;AACH,wBAAgB,gCAAgC,IAAI,kCAAkC,GAAG,IAAI,CAE5F"}
1
+ {"version":3,"file":"DropdownMenuContext.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/DropdownMenuContext.tsx"],"names":[],"mappings":"AAoBA,uDAAuD;AACvD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB,4EAA4E;IAC5E,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjC,wEAAwE;IACxE,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,kDAAkD;IAClD,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,uEAAuE;IACvE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,yCAAyC;IACzC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,sEAAsE;IACtE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,sDAAsD;IACtD,UAAU,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;CACtC;AAED,6EAA6E;AAC7E,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,0DAKpC,CAAC;AAGJ;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,yCAEC,CAAC;AAG1C;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AAED,eAAO,MAAM,mBAAmB,0DAK7B,CAAC;AAGJ;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,wBAAwB,GAAG,IAAI,CAExE;AAMD,MAAM,WAAW,kCAAkC;IACjD,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,uEAAuE;IACvE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,qEAAqE;IACrE,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,6BAA6B,oEAKvC,CAAC;AAGJ;;;GAGG;AACH,wBAAgB,gCAAgC,IAAI,kCAAkC,GAAG,IAAI,CAE5F"}
@@ -13,8 +13,9 @@
13
13
  * Keyboard navigation is handled by useListFocus on the menu container —
14
14
  * items don't need to register themselves.
15
15
  */
16
- import { createContext, use } from 'react';
16
+ import { use } from 'react';
17
17
  import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
18
+ import { createSharedContext } from "../utils/sharedContext.js";
18
19
 
19
20
  /** Menu size, derived from the trigger button size. */
20
21
 
@@ -44,7 +45,7 @@ import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
44
45
  * The root's surface; `null` under a root with none (ContextMenu). Internal,
45
46
  * off the public menu context, and layer-scoped, so each flyout re-provides it.
46
47
  */
47
- export const DropdownMenuSurfaceContext = createLayerScopedContext(null);
48
+ export const DropdownMenuSurfaceContext = createLayerScopedContext('DropdownMenuSurfaceContext', 1, null);
48
49
  DropdownMenuSurfaceContext.displayName = 'DropdownMenuSurfaceContext';
49
50
 
50
51
  /**
@@ -57,7 +58,7 @@ DropdownMenuSurfaceContext.displayName = 'DropdownMenuSurfaceContext';
57
58
  * signal, treated as open, matching providers that have no state to give.
58
59
  * @internal
59
60
  */
60
- export const DropdownMenuRootOpenContext = createLayerScopedContext(null);
61
+ export const DropdownMenuRootOpenContext = createLayerScopedContext('DropdownMenuRootOpenContext', 1, null);
61
62
  DropdownMenuRootOpenContext.displayName = 'DropdownMenuRootOpenContext';
62
63
 
63
64
  /**
@@ -68,7 +69,7 @@ DropdownMenuRootOpenContext.displayName = 'DropdownMenuRootOpenContext';
68
69
  export function useDropdownMenuRootOpen() {
69
70
  return use(DropdownMenuRootOpenContext) !== false;
70
71
  }
71
- export const DropdownMenuContext = createLayerScopedContext(null);
72
+ export const DropdownMenuContext = createLayerScopedContext('DropdownMenuContext', 1, null);
72
73
  DropdownMenuContext.displayName = 'DropdownMenuContext';
73
74
 
74
75
  /**
@@ -83,7 +84,7 @@ export function useDropdownMenuContext() {
83
84
  // Radio group coordination
84
85
  // =============================================================================
85
86
 
86
- export const DropdownMenuRadioGroupContext = /*#__PURE__*/createContext(null);
87
+ export const DropdownMenuRadioGroupContext = createSharedContext('DropdownMenuRadioGroupContext', 1, null);
87
88
  DropdownMenuRadioGroupContext.displayName = 'DropdownMenuRadioGroupContext';
88
89
 
89
90
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"lazyMenuBottomSheet.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/lazyMenuBottomSheet.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,eAAe,IAAI,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAC,yBAAyB,IAAI,8BAA8B,EAAC,MAAM,6BAA6B,CAAC;AA+B7G,4FAA4F;AAC5F,M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BAAyB,CACvC,KAAK,EAAE,cAAc,CAAC,OAAO,8BAA8B,CAAC,GAC3D,YAAY,GAAG,IAAI,CAcrB"}
@@ -27,6 +27,7 @@
27
27
  */
28
28
  import { createElement, lazy, Suspense, useState } from 'react';
29
29
  import { useIsHydrating } from "../hooks/useIsHydrating.js";
30
+ import { createModuleLoader } from "../utils/moduleLoader.js";
30
31
  const LazyMenuBottomSheet = /*#__PURE__*/lazy(async () => import("./MenuBottomSheet.js").then(module => ({
31
32
  default: module.MenuBottomSheet
32
33
  })));
@@ -35,20 +36,8 @@ const LazyMenuBottomSheet = /*#__PURE__*/lazy(async () => import("./MenuBottomSh
35
36
  // closed, so its first render is the first open. Once preloaded, it renders
36
37
  // directly instead of through lazy(): a suspended render on open would hold
37
38
  // the rows back (React delays revealing them for up to 300ms).
38
- let actionListModule = null;
39
- let actionListLoad = null;
40
- async function loadActionList() {
41
- actionListLoad ??= import("./MenuBottomSheetActionList.js").then(module => {
42
- actionListModule = module;
43
- return module;
44
- }, error => {
45
- // A failed load (a dropped connection) is not kept: the next caller
46
- // asks the module loader again.
47
- actionListLoad = null;
48
- throw error;
49
- });
50
- return actionListLoad;
51
- }
39
+ const actionList = createModuleLoader(async () => import("./MenuBottomSheetActionList.js"));
40
+ const loadActionList = actionList.load;
52
41
 
53
42
  /** What a preload of the action list came to: loaded, or failed with the loader's error. */
54
43
 
@@ -86,7 +75,7 @@ export function MenuBottomSheet(props) {
86
75
  export function MenuBottomSheetActionList(props) {
87
76
  // Chosen once per mount, so a module that arrives later never swaps the
88
77
  // rendered list (which would remount it and drop focus).
89
- const [LoadedActionList] = useState(() => actionListModule?.MenuBottomSheetActionList ?? null);
78
+ const [LoadedActionList] = useState(() => actionList.loaded()?.MenuBottomSheetActionList ?? null);
90
79
  if (useIsHydrating()) {
91
80
  return null;
92
81
  }
@@ -1 +1 @@
1
- {"version":3,"file":"menuRegionStops.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/menuRegionStops.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,EAAE,CAOrE;AAyED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAGhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,CAAC,aAAa,EAC1B,IAAI,EAAE,WAAW,GAAG,IAAI,EACxB,MAAM,EAAE,WAAW,GAAG,IAAI,EAC1B,MAAM,EAAE,WAAW,GAAG,IAAI,EAC1B,YAAY,UAAQ,GACnB,IAAI,CAmCN"}
1
+ {"version":3,"file":"menuRegionStops.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/menuRegionStops.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,EAAE,CAOrE;AA0BD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAGhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,CAAC,aAAa,EAC1B,IAAI,EAAE,WAAW,GAAG,IAAI,EACxB,MAAM,EAAE,WAAW,GAAG,IAAI,EAC1B,MAAM,EAAE,WAAW,GAAG,IAAI,EAC1B,YAAY,UAAQ,GACnB,IAAI,CAkCN"}
@@ -15,7 +15,7 @@
15
15
  * header's controls, the menu as one stop, then the footer's controls, and
16
16
  * wrap at either end.
17
17
  */
18
- import { getFocusableElements } from "../hooks/useFocusTrap.js";
18
+ import { collapseRadioGroups, getFocusableElements } from "../hooks/useFocusTrap.js";
19
19
 
20
20
  /**
21
21
  * The elements Tab reaches inside a header or footer region, in order. Hidden
@@ -47,41 +47,6 @@ function isInsideHiddenWrapper(element, region) {
47
47
  return false;
48
48
  }
49
49
 
50
- /**
51
- * Collapse each named radio group to the one Tab stop a browser gives it: the
52
- * focused radio, else the checked one, else the first radio moving forward or
53
- * the last moving backward. The stop takes the group's first position.
54
- */
55
- function collapseRadioGroups(elements, active, isBackward) {
56
- const groups = new Map();
57
- const groupKey = el => el instanceof HTMLInputElement && el.getAttribute('type') === 'radio' && el.name !== '' ? `${el.form?.id ?? ''}\u0000${el.name}` : null;
58
- for (const el of elements) {
59
- const key = groupKey(el);
60
- if (key != null) {
61
- const members = groups.get(key) ?? [];
62
- members.push(el);
63
- groups.set(key, members);
64
- }
65
- }
66
- const placed = new Set();
67
- const result = [];
68
- for (const el of elements) {
69
- const key = groupKey(el);
70
- if (key == null) {
71
- result.push(el);
72
- continue;
73
- }
74
- if (placed.has(key)) {
75
- continue;
76
- }
77
- placed.add(key);
78
- const members = groups.get(key) ?? [];
79
- const stop = members.find(radio => radio === active) ?? members.find(radio => radio.checked) ?? (isBackward ? members[members.length - 1] : members[0]);
80
- result.push(stop);
81
- }
82
- return result;
83
- }
84
-
85
50
  /**
86
51
  * Move focus to a Tab stop in the dialog. Reports whether focus actually
87
52
  * arrived, so a caller can fall back to the menu instead of stranding focus on
@@ -109,7 +74,7 @@ export function moveRegionsTab(event, menu, header, footer, isFromFlyout = false
109
74
  event.stopPropagation();
110
75
  const active = document.activeElement;
111
76
  // A named radio group is one stop, as the browser's own Tab order has it.
112
- const cycle = collapseRadioGroups([...tabbablesIn(header), menu, ...tabbablesIn(footer)], active, event.shiftKey);
77
+ const cycle = collapseRadioGroups([...tabbablesIn(header), menu, ...tabbablesIn(footer)], active);
113
78
  if (cycle.length === 1) {
114
79
  // Nothing else to reach: focus stays in the menu. From a flyout that has
115
80
  // just closed itself, that is the menu's own stop.
@@ -1 +1 @@
1
- {"version":3,"file":"FormLayoutContext.d.ts","sourceRoot":"","sources":["../../src/FormLayout/FormLayoutContext.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAC7B,UAAU,GAAG,YAAY,GAAG,mBAAmB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;eACjB,mBAAmB;yBACT,eAAe;EACX,CAAC"}
1
+ {"version":3,"file":"FormLayoutContext.d.ts","sourceRoot":"","sources":["../../src/FormLayout/FormLayoutContext.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAC7B,UAAU,GAAG,YAAY,GAAG,mBAAmB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;eACjB,mBAAmB;yBACT,eAAe;EACa,CAAC"}
@@ -13,7 +13,7 @@
13
13
  * - /packages/core/src/Field/FieldLabel.tsx (indicator resolution)
14
14
  * - /packages/core/src/FormLayout/index.ts (exports if types change)
15
15
  */
16
- import { createLayerScopedContext as createContext } from "../Layer/layerScopedContext.js";
16
+ import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
17
17
 
18
18
  /**
19
19
  * Direction of form field arrangement.
@@ -40,7 +40,7 @@ import { createLayerScopedContext as createContext } from "../Layer/layerScopedC
40
40
  * for spatial arrangement, and `defaultOptionality` so a field can suppress the
41
41
  * indicator that merely restates the form-wide default.
42
42
  */
43
- export const FormLayoutContext = createContext({
43
+ export const FormLayoutContext = createLayerScopedContext('FormLayoutContext', 1, {
44
44
  direction: 'vertical'
45
45
  });
46
46
  FormLayoutContext.displayName = 'FormLayoutContext';
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../src/Heading/Heading.tsx"],"names":[],"mappings":"AAIA;;;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templates/blocks/components/Heading/ (showcase blocks)
19
19
  * - /packages/cli/assets/templates/blocks/components/Text/ (showcase blocks)
20
20
  */
21
- import { lazy, Suspense, useRef } from 'react';
21
+ import { useRef } from 'react';
22
22
  import * as stylex from '@stylexjs/stylex';
23
23
  import { colorStyles, sizeByLevelStyles, sizeByTypeStyles, defaultWeightByTypeStyles, weightStyles, displayStyles, justifyStyles, truncationStyles, wordBreakStyles, textWrapStyles, capsizeStyles, decorationStyles, truncationTooltipStyles } from "../Text/text.stylex.js";
24
24
  import { useTruncation } from "../Text/useTruncation.js";
25
+ import { TruncationTooltip, useTruncationTooltipInterest } from "../Text/TruncationTooltip.js";
26
+ import { composeEventHandlers } from "../utils/composeEventHandlers.js";
25
27
  import { resolveStyleColor } from "../Text/Text.js";
26
28
  import { mergeProps } from "../utils/mergeProps.js";
27
29
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
28
30
  import { themeProps } from "../utils/themeProps.js";
29
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
30
- const LazyXDSTooltip = /*#__PURE__*/lazy(async () => import("../Tooltip/Tooltip.js").then(mod => ({
31
- default: mod.Tooltip
32
- })));
33
31
 
34
32
  /**
35
33
  * Heading level (1-6). Determines both visual styling and semantic HTML element.
@@ -39,7 +37,7 @@ const LazyXDSTooltip = /*#__PURE__*/lazy(async () => import("../Tooltip/Tooltip.
39
37
  * Display type variants for headings. Applies display-scale sizing
40
38
  * (larger, lighter) while preserving the semantic heading element.
41
39
  */
42
-
40
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
43
41
  function isBuiltinHeadingType(type) {
44
42
  return type === 'display-1' || type === 'display-2' || type === 'display-3';
45
43
  }
@@ -117,6 +115,8 @@ export function Heading({
117
115
  // Tooltip for truncated text
118
116
  const tooltipPlacement = typeof hasTruncateTooltip === 'string' ? hasTruncateTooltip : 'above';
119
117
  const tooltipEnabled = maxLines > 0 && hasTruncateTooltip !== false && truncation.isTruncated;
118
+ // The tooltip mounts on the first hover, tap or focus, not with the text.
119
+ const tooltipInterest = useTruncationTooltipInterest(tooltipEnabled);
120
120
 
121
121
  // Ref for the heading element (used as tooltip anchor)
122
122
  const headingRef = useRef(null);
@@ -156,17 +156,20 @@ export function Heading({
156
156
  }),
157
157
  ...ariaProps,
158
158
  ...props,
159
+ onPointerEnter: composeEventHandlers(tooltipInterest.onPointerEnter, props.onPointerEnter),
160
+ onPointerLeave: composeEventHandlers(tooltipInterest.onPointerLeave, props.onPointerLeave),
161
+ onPointerDown: composeEventHandlers(tooltipInterest.onPointerDown, props.onPointerDown),
162
+ onFocus: composeEventHandlers(tooltipInterest.onFocus, props.onFocus),
163
+ onBlur: composeEventHandlers(tooltipInterest.onBlur, props.onBlur),
159
164
  children: children
160
- }), tooltipEnabled && /*#__PURE__*/_jsx(Suspense, {
161
- fallback: null,
162
- children: /*#__PURE__*/_jsx(LazyXDSTooltip, {
163
- anchorRef: headingRef,
164
- content: /*#__PURE__*/_jsx("span", {
165
- ...stylex.props(truncationTooltipStyles.content),
166
- children: truncation.fullText
167
- }),
168
- placement: tooltipPlacement
169
- })
165
+ }), tooltipEnabled && tooltipInterest.isWanted && /*#__PURE__*/_jsx(TruncationTooltip, {
166
+ anchorRef: headingRef,
167
+ content: /*#__PURE__*/_jsx("span", {
168
+ ...stylex.props(truncationTooltipStyles.content),
169
+ children: truncation.fullText
170
+ }),
171
+ placement: tooltipPlacement,
172
+ interest: tooltipInterest
170
173
  })]
171
174
  });
172
175
  }
@@ -99,8 +99,7 @@ export interface HoverCardProps extends Pick<BaseProps, 'xstyle' | 'className' |
99
99
  /**
100
100
  * Controlled open state. When provided, overrides the hover trigger:
101
101
  * - `true`: force-show the hover card (hover/focus hide is suppressed)
102
- * - `false`: hide the hover card and keep hover from opening it; focus on
103
- * the trigger still opens it
102
+ * - `false`: hide the hover card and keep hover and focus from opening it
104
103
  * - `undefined`: uncontrolled — hover/focus triggers manage visibility
105
104
  *
106
105
  * A controlled hover card still takes Escape when it is the top-most layer,
@@ -1 +1 @@
1
- {"version":3,"file":"HoverCard.d.ts","sourceRoot":"","sources":["../../src/HoverCard/HoverCard.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,cAAc,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAG5C,YAAY,EACV,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AA6ExB,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,SAAS,EACT,QAAQ,GAAG,WAAW,GAAG,OAAO,CACjC;IACC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAE3B;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAA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AAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAEtC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAoCD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,OAAO,EACP,SAAmB,EACnB,SAAoB,EACpB,KAAW,EACX,SAAe,EACf,YAAqB,EACrB,YAAqB,EACrB,SAAgB,EAChB,KAAK,EACL,YAAY,EACZ,kBAA2B,EAC3B,MAAM,EACN,aAAa,EACb,MAAM,EACN,SAAS,EACT,KAAK,GACN,EAAE,cAAc,GAAG,YAAY,CA6M/B;yBA/Ne,SAAS"}
@@ -77,8 +77,7 @@ export interface HoverCardOptions {
77
77
  /**
78
78
  * Controlled open state. When provided, overrides the hover trigger:
79
79
  * - `true`: force-show the hover card (hover/focus hide is suppressed)
80
- * - `false`: hide the hover card and keep hover from opening it; focus on
81
- * the trigger still opens it
80
+ * - `false`: hide the hover card and keep hover and focus from opening it
82
81
  * - `undefined`: uncontrolled — hover/focus triggers manage visibility
83
82
  *
84
83
  * A controlled hover card still takes Escape when it is the top-most layer,
@@ -1 +1 @@
1
- {"version":3,"file":"useHoverCard.d.ts","sourceRoot":"","sources":["../../src/HoverCard/useHoverCard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BAAqB,GAAG,eAAe,CAue5E"}
@@ -223,9 +223,13 @@ export function useHoverCard(options = {}) {
223
223
  isEscapeDismissingRef.current = false;
224
224
  return;
225
225
  }
226
+ // The caller owns a controlled `false`, so no focus opens the card.
227
+ if (isOpen === false) {
228
+ return;
229
+ }
226
230
  clearTimeouts();
227
231
  showLayer();
228
- }, [focusGate, focusTrigger, isEnabled, isTouchInteraction, clearTimeouts, showLayer]);
232
+ }, [focusGate, focusTrigger, isEnabled, isOpen, isTouchInteraction, clearTimeouts, showLayer]);
229
233
  const handleFocusOut = useCallback(e => {
230
234
  if (!focusGate.focusOut(e, focusTrigger)) {
231
235
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"IconDefaultSizeContext.d.ts","sourceRoot":"","sources":["../../src/Icon/IconDefaultSizeContext.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAKhD,eAAO,MAAM,uBAAuB,6DAAkC,CAAC;AAEvE,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAGhE"}
1
+ {"version":3,"file":"IconDefaultSizeContext.d.ts","sourceRoot":"","sources":["../../src/Icon/IconDefaultSizeContext.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAShD,eAAO,MAAM,uBAAuB,6DAAkC,CAAC;AAEvE,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAGhE"}
@@ -9,8 +9,8 @@
9
9
  * @position Internal Icon sizing context; consumed by Icon and icon-slot owners
10
10
  */
11
11
  import { use } from 'react';
12
- import { createLayerScopedContext as createContext } from "../Layer/layerScopedContext.js";
13
- const IconDefaultSizeContext = createContext(null);
12
+ import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
13
+ const IconDefaultSizeContext = createLayerScopedContext('IconDefaultSizeContext', 1, null);
14
14
  IconDefaultSizeContext.displayName = 'IconDefaultSizeContext';
15
15
  export const IconDefaultSizeProvider = IconDefaultSizeContext.Provider;
16
16
  export function useIconSize(size) {
@@ -1 +1 @@
1
- {"version":3,"file":"InputGroupContext.d.ts","sourceRoot":"","sources":["../../src/InputGroup/InputGroupContext.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,IAAI,CAAC;IAChB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,wDAE7B,CAAC;AAGF;;;GAGG;AACH,wBAAgB,aAAa,IAAI,sBAAsB,GAAG,IAAI,CAE7D"}
1
+ {"version":3,"file":"InputGroupContext.d.ts","sourceRoot":"","sources":["../../src/InputGroup/InputGroupContext.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,IAAI,CAAC;IAChB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,wDAK3B,CAAC;AAGJ;;;GAGG;AACH,wBAAgB,aAAa,IAAI,sBAAsB,GAAG,IAAI,CAE7D"}
@@ -9,8 +9,8 @@
9
9
  * @position Shared context; consumed by input components for group-aware styling and ARIA associations
10
10
  */
11
11
  import { use } from 'react';
12
- import { createLayerScopedContext as createContext } from "../Layer/layerScopedContext.js";
13
- export const InputGroupContext = createContext(null);
12
+ import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
13
+ export const InputGroupContext = createLayerScopedContext('InputGroupContext', 1, null);
14
14
  InputGroupContext.displayName = 'InputGroupContext';
15
15
 
16
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"InputGroupInternalContext.d.ts","sourceRoot":"","sources":["../../src/InputGroup/InputGroupInternalContext.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,yBAAyB;;EAAqC,CAAC"}
1
+ {"version":3,"file":"InputGroupInternalContext.d.ts","sourceRoot":"","sources":["../../src/InputGroup/InputGroupInternalContext.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,yBAAyB;;EAIrC,CAAC"}
@@ -8,8 +8,8 @@
8
8
  * @output Package-private InputGroup state context
9
9
  * @position Internal group state; not re-exported by index.ts
10
10
  */
11
- import { createLayerScopedContext as createContext } from "../Layer/layerScopedContext.js";
12
- export const InputGroupInternalContext = createContext({
11
+ import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
12
+ export const InputGroupInternalContext = createLayerScopedContext('InputGroupInternalContext', 1, {
13
13
  isDisabled: false
14
14
  });
15
15
  InputGroupInternalContext.displayName = 'InputGroupInternalContext';
@@ -1 +1 @@
1
- {"version":3,"file":"InteractiveRoleContext.d.ts","sourceRoot":"","sources":["../../src/InteractiveRoleContext/InteractiveRoleContext.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAEjE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,iDACU,CAAC;AAG9C;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,IAAI,eAAe,GAAG,IAAI,CAElE"}
1
+ {"version":3,"file":"InteractiveRoleContext.d.ts","sourceRoot":"","sources":["../../src/InteractiveRoleContext/InteractiveRoleContext.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAGjE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,iDAKhC,CAAC;AAGJ;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,IAAI,eAAe,GAAG,IAAI,CAElE"}
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  * @file InteractiveRoleContext.ts
7
- * @input React createContext, use
7
+ * @input createSharedContext, use
8
8
  * @output Exports InteractiveRoleContext, useInteractiveRoleContext
9
9
  * @position Context primitive; consumed by useInteractiveRole hook
10
10
  *
@@ -22,7 +22,9 @@
22
22
  * SYNC: When modified, update:
23
23
  * - /packages/core/src/InteractiveRoleContext/index.ts
24
24
  */
25
- import { createContext, use } from 'react';
25
+ import { use } from 'react';
26
+ import { createSharedContext } from "../utils/sharedContext.js";
27
+
26
28
  /**
27
29
  * Context that provides a role override to child components.
28
30
  *
@@ -33,7 +35,7 @@ import { createContext, use } from 'react';
33
35
  *
34
36
  * `null` means no parent is overriding — resolve based on own props.
35
37
  */
36
- export const InteractiveRoleContext = /*#__PURE__*/createContext(null);
38
+ export const InteractiveRoleContext = createSharedContext('InteractiveRoleContext', 1, null);
37
39
  InteractiveRoleContext.displayName = 'InteractiveRoleContext';
38
40
 
39
41
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ItemDescriptionContext.d.ts","sourceRoot":"","sources":["../../src/Item/ItemDescriptionContext.tsx"],"names":[],"mappings":"AA2BA,eAAO,MAAM,sBAAsB,wCAAqC,CAAC"}
1
+ {"version":3,"file":"ItemDescriptionContext.d.ts","sourceRoot":"","sources":["../../src/Item/ItemDescriptionContext.tsx"],"names":[],"mappings":"AA2BA,eAAO,MAAM,sBAAsB,wCAIlC,CAAC"}
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  * @file ItemDescriptionContext.tsx
7
- * @input Uses React createContext
7
+ * @input Uses createSharedContext
8
8
  * @output Exports ItemDescriptionContext
9
9
  * @position Internal seam between Item and a control it renders in a slot
10
10
  *
@@ -22,6 +22,6 @@
22
22
  * `null` when the row renders no description, so a consumer adds no dangling
23
23
  * `aria-describedby`.
24
24
  */
25
- import { createContext } from 'react';
26
- export const ItemDescriptionContext = /*#__PURE__*/createContext(null);
25
+ import { createSharedContext } from "../utils/sharedContext.js";
26
+ export const ItemDescriptionContext = createSharedContext('ItemDescriptionContext', 1, null);
27
27
  ItemDescriptionContext.displayName = 'ItemDescriptionContext';
@@ -1 +1 @@
1
- {"version":3,"file":"ItemListRowContext.d.ts","sourceRoot":"","sources":["../../src/Item/ItemListRowContext.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,kBAAkB,kCAAuB,CAAC"}
1
+ {"version":3,"file":"ItemListRowContext.d.ts","sourceRoot":"","sources":["../../src/Item/ItemListRowContext.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,kBAAkB,kCAI9B,CAAC"}
@@ -4,13 +4,13 @@
4
4
 
5
5
  /**
6
6
  * @file ItemListRowContext.tsx
7
- * @input Uses React createContext
7
+ * @input Uses createSharedContext
8
8
  * @output Exports ItemListRowContext
9
9
  * @position Internal seam between ListItem and the Item it renders. Under a
10
10
  * coarse primary pointer a List row's whole touch target follows its link,
11
11
  * so ListItem marks its Item as a List row. Item clears the mark for its own
12
12
  * content, and a standalone Item has none.
13
13
  */
14
- import { createContext } from 'react';
15
- export const ItemListRowContext = /*#__PURE__*/createContext(false);
14
+ import { createSharedContext } from "../utils/sharedContext.js";
15
+ export const ItemListRowContext = createSharedContext('ItemListRowContext', 1, false);
16
16
  ItemListRowContext.displayName = 'ItemListRowContext';
@@ -9,6 +9,6 @@
9
9
  * confines the group to that one row: an Item nested in a slot has a different
10
10
  * marker and does not inherit the formatting request.
11
11
  */
12
- import { type ReactNode } from 'react';
12
+ import type { ReactNode } from 'react';
13
13
  export declare const ItemMarkerColumnsContext: import("react").Context<ReactNode>;
14
14
  //# sourceMappingURL=ItemMarkerColumnsContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemMarkerColumnsContext.d.ts","sourceRoot":"","sources":["../../src/Item/ItemMarkerColumnsContext.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,EAAgB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAEpD,eAAO,MAAM,wBAAwB,oCAAiC,CAAC"}
1
+ {"version":3,"file":"ItemMarkerColumnsContext.d.ts","sourceRoot":"","sources":["../../src/Item/ItemMarkerColumnsContext.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGrC,eAAO,MAAM,wBAAwB,oCAIpC,CAAC"}
@@ -13,6 +13,6 @@
13
13
  * confines the group to that one row: an Item nested in a slot has a different
14
14
  * marker and does not inherit the formatting request.
15
15
  */
16
- import { createContext } from 'react';
17
- export const ItemMarkerColumnsContext = /*#__PURE__*/createContext(null);
16
+ import { createSharedContext } from "../utils/sharedContext.js";
17
+ export const ItemMarkerColumnsContext = createSharedContext('ItemMarkerColumnsContext', 1, null);
18
18
  ItemMarkerColumnsContext.displayName = 'ItemMarkerColumnsContext';
@@ -1 +1 @@
1
- {"version":3,"file":"LayerContext.d.ts","sourceRoot":"","sources":["../../src/Layer/LayerContext.ts"],"names":[],"mappings":"AAiBA;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC;IAC/D,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,WAAW,EAAE,gBAAgB,CAAC;IAC9B,0FAA0F;IAC1F,KAA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