@astryxdesign/core 0.7.15 → 0.7.16-canary.g22213fd

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 (453) hide show
  1. package/dist/AppShell/AppShell.d.ts.map +1 -1
  2. package/dist/AppShell/AppShell.js +8 -2
  3. package/dist/AppShell/useCloseMobileDrawerOnActivate.d.ts +2 -1
  4. package/dist/AppShell/useCloseMobileDrawerOnActivate.d.ts.map +1 -1
  5. package/dist/AppShell/useCloseMobileDrawerOnActivate.js +15 -2
  6. package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
  7. package/dist/BottomSheet/BottomSheet.js +49 -94
  8. package/dist/BottomSheet/BottomSheetPanel.d.ts +14 -6
  9. package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
  10. package/dist/BottomSheet/BottomSheetPanel.js +72 -43
  11. package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
  12. package/dist/BottomSheet/useSheetGestures.js +4 -7
  13. package/dist/Button/Button.d.ts.map +1 -1
  14. package/dist/Button/Button.js +78 -3
  15. package/dist/Chat/ChatComposerInput.d.ts.map +1 -1
  16. package/dist/Chat/ChatComposerInput.js +1 -1
  17. package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
  18. package/dist/ContextMenu/ContextMenu.js +3 -0
  19. package/dist/DateInput/DateInput.d.ts +27 -3
  20. package/dist/DateInput/DateInput.d.ts.map +1 -1
  21. package/dist/DateInput/DateInput.js +24 -6
  22. package/dist/DateInput/NativeDateField.d.ts +1 -1
  23. package/dist/DateInput/NativeDateField.d.ts.map +1 -1
  24. package/dist/DateInput/NativeDateField.js +48 -31
  25. package/dist/DateInput/index.d.ts +1 -1
  26. package/dist/DateInput/index.d.ts.map +1 -1
  27. package/dist/DateInput/useTypedDate.d.ts +75 -8
  28. package/dist/DateInput/useTypedDate.d.ts.map +1 -1
  29. package/dist/DateInput/useTypedDate.js +188 -133
  30. package/dist/DateTimeInput/DateTimeInput.d.ts +32 -3
  31. package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
  32. package/dist/DateTimeInput/DateTimeInput.js +99 -62
  33. package/dist/DateTimeInput/NativeDateSegment.d.ts +8 -1
  34. package/dist/DateTimeInput/NativeDateSegment.d.ts.map +1 -1
  35. package/dist/DateTimeInput/NativeDateSegment.js +20 -14
  36. package/dist/DateTimeInput/NativeTimeSegment.d.ts +13 -1
  37. package/dist/DateTimeInput/NativeTimeSegment.d.ts.map +1 -1
  38. package/dist/DateTimeInput/NativeTimeSegment.js +21 -18
  39. package/dist/DateTimeInput/index.d.ts +1 -1
  40. package/dist/DateTimeInput/index.d.ts.map +1 -1
  41. package/dist/Dialog/Dialog.d.ts.map +1 -1
  42. package/dist/Dialog/Dialog.js +3 -2
  43. package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  44. package/dist/DropdownMenu/DropdownMenu.js +10 -3
  45. package/dist/DropdownMenu/DropdownMenuSubMenu.d.ts.map +1 -1
  46. package/dist/DropdownMenu/DropdownMenuSubMenu.js +3 -0
  47. package/dist/Field/InputClearButton.d.ts.map +1 -1
  48. package/dist/Field/InputClearButton.js +4 -2
  49. package/dist/Field/useEntryErrorBehavior.d.ts +8 -0
  50. package/dist/Field/useEntryErrorBehavior.d.ts.map +1 -0
  51. package/dist/Field/useEntryErrorBehavior.js +30 -0
  52. package/dist/Field/useEntryErrorReport.d.ts +40 -0
  53. package/dist/Field/useEntryErrorReport.d.ts.map +1 -0
  54. package/dist/Field/useEntryErrorReport.js +157 -0
  55. package/dist/Field/useValueReplacesEntry.d.ts +11 -0
  56. package/dist/Field/useValueReplacesEntry.d.ts.map +1 -0
  57. package/dist/Field/useValueReplacesEntry.js +46 -0
  58. package/dist/FormLayout/FormLayout.d.ts +21 -2
  59. package/dist/FormLayout/FormLayout.d.ts.map +1 -1
  60. package/dist/FormLayout/FormLayout.js +5 -2
  61. package/dist/FormLayout/FormLayoutContext.d.ts +18 -2
  62. package/dist/FormLayout/FormLayoutContext.d.ts.map +1 -1
  63. package/dist/FormLayout/FormLayoutContext.js +22 -4
  64. package/dist/FormLayout/index.d.ts +1 -1
  65. package/dist/FormLayout/index.d.ts.map +1 -1
  66. package/dist/InfoTip/InfoTip.d.ts +1 -1
  67. package/dist/InfoTip/InfoTip.d.ts.map +1 -1
  68. package/dist/InfoTip/InfoTip.js +4 -1
  69. package/dist/Layer/gestureCounter.d.ts +14 -0
  70. package/dist/Layer/gestureCounter.d.ts.map +1 -1
  71. package/dist/Layer/gestureCounter.js +123 -4
  72. package/dist/Layer/inputHold.d.ts +11 -1
  73. package/dist/Layer/inputHold.d.ts.map +1 -1
  74. package/dist/Layer/inputHold.js +114 -2
  75. package/dist/Layer/layerAnimations.stylex.d.ts.map +1 -1
  76. package/dist/Layer/layerAnimations.stylex.js +17 -13
  77. package/dist/Layer/layerEntranceSide.d.ts +24 -10
  78. package/dist/Layer/layerEntranceSide.d.ts.map +1 -1
  79. package/dist/Layer/layerEntranceSide.js +30 -14
  80. package/dist/Layer/useLayer.d.ts.map +1 -1
  81. package/dist/Layer/useLayer.js +76 -15
  82. package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
  83. package/dist/Layer/useTouchTrigger.js +14 -20
  84. package/dist/Lightbox/Lightbox.d.ts.map +1 -1
  85. package/dist/Lightbox/Lightbox.js +623 -263
  86. package/dist/Lightbox/useZoomCore.d.ts +2 -13
  87. package/dist/Lightbox/useZoomCore.d.ts.map +1 -1
  88. package/dist/Lightbox/useZoomCore.js +7 -33
  89. package/dist/Lightbox/useZoomStage.d.ts.map +1 -1
  90. package/dist/Lightbox/useZoomStage.js +3 -9
  91. package/dist/List/ListItem.d.ts +3 -2
  92. package/dist/List/ListItem.d.ts.map +1 -1
  93. package/dist/List/ListReorderHandle.d.ts +7 -0
  94. package/dist/List/ListReorderHandle.d.ts.map +1 -1
  95. package/dist/List/ListReorderHandle.js +42 -58
  96. package/dist/List/listReorderContext.d.ts.map +1 -1
  97. package/dist/List/listReorderContext.js +4 -4
  98. package/dist/List/listReorderEngine.d.ts +50 -2
  99. package/dist/List/listReorderEngine.d.ts.map +1 -1
  100. package/dist/List/listReorderEngine.js +205 -10
  101. package/dist/Markdown/Markdown.d.ts.map +1 -1
  102. package/dist/Markdown/Markdown.js +7 -0
  103. package/dist/Markdown/plugins/textTransform.d.ts.map +1 -1
  104. package/dist/Markdown/plugins/textTransform.js +31 -10
  105. package/dist/MetadataList/MetadataList.d.ts +2 -1
  106. package/dist/MetadataList/MetadataList.d.ts.map +1 -1
  107. package/dist/MetadataList/MetadataList.js +1 -1
  108. package/dist/MoreMenu/MoreMenu.d.ts +1 -1
  109. package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
  110. package/dist/MoreMenu/MoreMenu.js +4 -1
  111. package/dist/NumberInput/NumberInput.d.ts +78 -2
  112. package/dist/NumberInput/NumberInput.d.ts.map +1 -1
  113. package/dist/NumberInput/NumberInput.js +144 -40
  114. package/dist/NumberInput/index.d.ts +2 -2
  115. package/dist/NumberInput/index.d.ts.map +1 -1
  116. package/dist/NumberInput/index.js +1 -1
  117. package/dist/NumberInput/numberInputCommit.d.ts +18 -1
  118. package/dist/NumberInput/numberInputCommit.d.ts.map +1 -1
  119. package/dist/NumberInput/numberInputCommit.js +57 -3
  120. package/dist/Outline/useOutlineFromDOM.d.ts.map +1 -1
  121. package/dist/Outline/useOutlineFromDOM.js +1 -0
  122. package/dist/Pagination/Pagination.d.ts.map +1 -1
  123. package/dist/Pagination/Pagination.js +13 -3
  124. package/dist/Popover/popoverSurfaceFrame.d.ts +4 -16
  125. package/dist/Popover/popoverSurfaceFrame.d.ts.map +1 -1
  126. package/dist/Popover/popoverSurfaceFrame.js +16 -31
  127. package/dist/Popover/usePopover.d.ts.map +1 -1
  128. package/dist/Popover/usePopover.js +26 -15
  129. package/dist/PowerSearch/PowerSearch.d.ts +1 -1
  130. package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
  131. package/dist/PowerSearch/PowerSearch.js +8 -4
  132. package/dist/PowerSearch/PowerSearchEditPopover.d.ts +4 -1
  133. package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
  134. package/dist/PowerSearch/PowerSearchEditPopover.js +4 -1
  135. package/dist/PowerSearch/PowerSearchFilterEditor.d.ts +1 -1
  136. package/dist/PowerSearch/PowerSearchFilterEditor.d.ts.map +1 -1
  137. package/dist/PowerSearch/PowerSearchFilterEditor.js +7 -3
  138. package/dist/PowerSearch/PowerSearchToken.d.ts +1 -1
  139. package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
  140. package/dist/PowerSearch/PowerSearchToken.js +4 -1
  141. package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
  142. package/dist/PowerSearch/PowerSearchValueEditor.js +4 -0
  143. package/dist/SegmentedControl/useSegmentedTouchTracking.d.ts.map +1 -1
  144. package/dist/SegmentedControl/useSegmentedTouchTracking.js +18 -0
  145. package/dist/Selector/Selector.d.ts.map +1 -1
  146. package/dist/Selector/Selector.js +0 -2
  147. package/dist/Selector/useSelectorPresentation.d.ts.map +1 -1
  148. package/dist/Selector/useSelectorPresentation.js +13 -12
  149. package/dist/Slider/Slider.d.ts.map +1 -1
  150. package/dist/Slider/Slider.js +6 -8
  151. package/dist/Table/BaseTable.d.ts +1 -1
  152. package/dist/Table/BaseTable.d.ts.map +1 -1
  153. package/dist/Table/BaseTable.js +276 -198
  154. package/dist/Table/Table.d.ts +5 -1
  155. package/dist/Table/Table.d.ts.map +1 -1
  156. package/dist/Table/index.d.ts +5 -3
  157. package/dist/Table/index.d.ts.map +1 -1
  158. package/dist/Table/index.js +2 -1
  159. package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
  160. package/dist/Table/plugins/filtering/useTableFiltering.js +2 -0
  161. package/dist/Table/plugins/infiniteScroll/TableInfiniteScrollWide.a11y.chromium.spec.d.ts.map +1 -0
  162. package/dist/Table/plugins/infiniteScroll/index.d.ts +9 -0
  163. package/dist/Table/plugins/infiniteScroll/index.d.ts.map +1 -0
  164. package/dist/Table/plugins/infiniteScroll/index.js +9 -0
  165. package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts +29 -0
  166. package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts.map +1 -0
  167. package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.js +394 -0
  168. package/dist/Table/plugins/sortable/useTableSortableState.d.ts.map +1 -1
  169. package/dist/Table/plugins/sortable/useTableSortableState.js +4 -4
  170. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
  171. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +21 -1
  172. package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts +4 -0
  173. package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts.map +1 -0
  174. package/dist/Table/plugins/virtualization/TableColumnWindow.js +114 -0
  175. package/dist/Table/plugins/virtualization/index.d.ts +3 -1
  176. package/dist/Table/plugins/virtualization/index.d.ts.map +1 -1
  177. package/dist/Table/plugins/virtualization/index.js +3 -2
  178. package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts +39 -0
  179. package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts.map +1 -0
  180. package/dist/Table/plugins/virtualization/useTableColumnWindow.js +215 -0
  181. package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts +23 -0
  182. package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts.map +1 -0
  183. package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.js +37 -0
  184. package/dist/Table/plugins/virtualization/useTableWindow.d.ts +2 -1
  185. package/dist/Table/plugins/virtualization/useTableWindow.d.ts.map +1 -1
  186. package/dist/Table/plugins/virtualization/useTableWindow.js +43 -13
  187. package/dist/Table/tableColumnWindowing.d.ts +107 -0
  188. package/dist/Table/tableColumnWindowing.d.ts.map +1 -0
  189. package/dist/Table/tableColumnWindowing.js +72 -0
  190. package/dist/Table/tablePinnedColumnRuns.d.ts +23 -0
  191. package/dist/Table/tablePinnedColumnRuns.d.ts.map +1 -0
  192. package/dist/Table/tablePinnedColumnRuns.js +41 -0
  193. package/dist/Table/tableRuntime.d.ts +14 -2
  194. package/dist/Table/tableRuntime.d.ts.map +1 -1
  195. package/dist/Table/tableRuntime.js +32 -11
  196. package/dist/Table/types.d.ts +28 -2
  197. package/dist/Table/types.d.ts.map +1 -1
  198. package/dist/Table/useBaseTablePlugins.js +2 -2
  199. package/dist/Text/useTruncation.d.ts +6 -1
  200. package/dist/Text/useTruncation.d.ts.map +1 -1
  201. package/dist/Text/useTruncation.js +53 -35
  202. package/dist/TextArea/TextArea.d.ts +10 -1
  203. package/dist/TextArea/TextArea.d.ts.map +1 -1
  204. package/dist/TextArea/TextArea.js +2 -0
  205. package/dist/Thumbnail/Thumbnail.d.ts +2 -2
  206. package/dist/TimeInput/TimeInput.d.ts +61 -0
  207. package/dist/TimeInput/TimeInput.d.ts.map +1 -1
  208. package/dist/TimeInput/TimeInput.js +97 -84
  209. package/dist/TimeInput/index.d.ts +1 -1
  210. package/dist/TimeInput/index.d.ts.map +1 -1
  211. package/dist/TimeInput/useTypedTime.d.ts +76 -0
  212. package/dist/TimeInput/useTypedTime.d.ts.map +1 -0
  213. package/dist/TimeInput/useTypedTime.js +258 -0
  214. package/dist/Toast/Toast.d.ts +6 -1
  215. package/dist/Toast/Toast.d.ts.map +1 -1
  216. package/dist/Toast/Toast.js +21 -3
  217. package/dist/Toast/ToastViewport.d.ts.map +1 -1
  218. package/dist/Toast/ToastViewport.js +10 -9
  219. package/dist/Tooltip/useTooltip.d.ts.map +1 -1
  220. package/dist/Tooltip/useTooltip.js +46 -53
  221. package/dist/astryx.css +58 -17
  222. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts +156 -0
  223. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts.map +1 -1
  224. package/dist/dragToSnapPoints/createDragToSnapPoints.js +313 -97
  225. package/dist/gestures/createPanGesture.d.ts +41 -0
  226. package/dist/gestures/createPanGesture.d.ts.map +1 -1
  227. package/dist/gestures/createPanGesture.js +66 -22
  228. package/dist/hooks/containerReveal.stylex.d.ts.map +1 -1
  229. package/dist/hooks/containerReveal.stylex.js +18 -15
  230. package/dist/hooks/useAnnounceRenderedText.d.ts +9 -3
  231. package/dist/hooks/useAnnounceRenderedText.d.ts.map +1 -1
  232. package/dist/hooks/useAnnounceRenderedText.js +9 -7
  233. package/dist/hooks/useContainerReveal.d.ts +8 -5
  234. package/dist/hooks/useContainerReveal.d.ts.map +1 -1
  235. package/dist/hooks/useContainerReveal.js +2 -1
  236. package/dist/hooks/useMenuPress.d.ts.map +1 -1
  237. package/dist/hooks/useMenuPress.js +36 -2
  238. package/dist/i18n/generated-english/DateInput/NativeDateField.generated.d.ts.map +1 -1
  239. package/dist/i18n/generated-english/DateInput/NativeDateField.generated.js +0 -1
  240. package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.d.ts.map +1 -1
  241. package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.js +0 -1
  242. package/dist/i18n/generated-english/Lightbox/Lightbox.generated.d.ts.map +1 -1
  243. package/dist/i18n/generated-english/Lightbox/Lightbox.generated.js +2 -0
  244. package/dist/i18n/generated-english/{DateTimeInput/NativeTimeSegment.generated.d.ts → Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts} +2 -2
  245. package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts.map +1 -0
  246. package/dist/i18n/generated-english/{DateTimeInput/NativeTimeSegment.generated.js → Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.js} +2 -2
  247. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  248. package/dist/i18n/generated-locales/en.generated.js +33 -0
  249. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  250. package/dist/i18n/generated-locales/pseudo.generated.js +33 -0
  251. package/dist/internal/shared-context.d.ts +15 -0
  252. package/dist/internal/shared-context.d.ts.map +1 -0
  253. package/dist/internal/shared-context.js +15 -0
  254. package/dist/internal/touch.d.ts +1 -1
  255. package/dist/internal/touch.d.ts.map +1 -1
  256. package/dist/internal/touch.js +1 -1
  257. package/dist/motion/animatedLayout.d.ts.map +1 -1
  258. package/dist/motion/animatedLayout.js +2 -17
  259. package/dist/motion/animator.d.ts +28 -1
  260. package/dist/motion/animator.d.ts.map +1 -1
  261. package/dist/motion/animator.js +99 -19
  262. package/dist/motion/linearEasing.d.ts +9 -0
  263. package/dist/motion/linearEasing.d.ts.map +1 -0
  264. package/dist/motion/linearEasing.js +32 -0
  265. package/dist/motion/resolveMotion.d.ts +16 -0
  266. package/dist/motion/resolveMotion.d.ts.map +1 -1
  267. package/dist/motion/resolveMotion.js +40 -1
  268. package/dist/theme/generateThemeRules.d.ts.map +1 -1
  269. package/dist/theme/generateThemeRules.js +14 -3
  270. package/dist/theme/tokenReferences.d.ts +7 -15
  271. package/dist/theme/tokenReferences.d.ts.map +1 -1
  272. package/dist/theme/tokenReferences.js +49 -7
  273. package/dist/utils/clickGuard.d.ts +8 -1
  274. package/dist/utils/clickGuard.d.ts.map +1 -1
  275. package/dist/utils/clickGuard.js +27 -4
  276. package/dist/utils/sharedResizeObserver.d.ts +18 -2
  277. package/dist/utils/sharedResizeObserver.d.ts.map +1 -1
  278. package/dist/utils/sharedResizeObserver.js +43 -2
  279. package/dist/utils/themeProps.d.ts +8 -0
  280. package/dist/utils/themeProps.d.ts.map +1 -1
  281. package/dist/utils/themeProps.js +17 -0
  282. package/dist/utils/timeFormat.d.ts +9 -1
  283. package/dist/utils/timeFormat.d.ts.map +1 -1
  284. package/dist/utils/timeFormat.js +46 -6
  285. package/dist/utils/timeParser.d.ts +3 -1
  286. package/dist/utils/timeParser.d.ts.map +1 -1
  287. package/dist/utils/timeParser.js +7 -3
  288. package/dist/utils/touchEndMark.d.ts +7 -0
  289. package/dist/utils/touchEndMark.d.ts.map +1 -0
  290. package/dist/utils/touchEndMark.js +33 -0
  291. package/dist/virtualization/listWindow.d.ts +28 -2
  292. package/dist/virtualization/listWindow.d.ts.map +1 -1
  293. package/dist/virtualization/listWindow.js +71 -3
  294. package/dist/virtualization/useInlineListWindow.d.ts +64 -0
  295. package/dist/virtualization/useInlineListWindow.d.ts.map +1 -0
  296. package/dist/virtualization/useInlineListWindow.js +135 -0
  297. package/dist/virtualization/useListFocusIsland.d.ts +28 -0
  298. package/dist/virtualization/useListFocusIsland.d.ts.map +1 -0
  299. package/dist/virtualization/useListFocusIsland.js +53 -0
  300. package/dist/virtualization/useListWindow.d.ts +6 -4
  301. package/dist/virtualization/useListWindow.d.ts.map +1 -1
  302. package/dist/virtualization/useListWindow.js +17 -29
  303. package/locales/en.json +144 -12
  304. package/locales/pseudo.json +99 -0
  305. package/package.json +10 -5
  306. package/src/AppShell/AppShell.tsx +12 -3
  307. package/src/AppShell/useCloseMobileDrawerOnActivate.ts +19 -2
  308. package/src/BottomSheet/BottomSheet.tsx +55 -109
  309. package/src/BottomSheet/BottomSheetPanel.tsx +93 -57
  310. package/src/BottomSheet/useSheetGestures.ts +18 -18
  311. package/src/Button/Button.tsx +132 -5
  312. package/src/ButtonGroup/ButtonGroup.doc.mjs +5 -0
  313. package/src/Chat/ChatComposerInput.tsx +4 -0
  314. package/src/CheckboxInput/CheckboxInput.doc.mjs +3 -0
  315. package/src/ContextMenu/ContextMenu.tsx +13 -0
  316. package/src/DateInput/DateInput.doc.mjs +21 -3
  317. package/src/DateInput/DateInput.tsx +61 -7
  318. package/src/DateInput/NativeDateField.tsx +58 -36
  319. package/src/DateInput/index.ts +1 -0
  320. package/src/DateInput/useTypedDate.ts +293 -196
  321. package/src/DateTimeInput/DateTimeInput.doc.mjs +21 -3
  322. package/src/DateTimeInput/DateTimeInput.tsx +158 -86
  323. package/src/DateTimeInput/NativeDateSegment.tsx +35 -13
  324. package/src/DateTimeInput/NativeTimeSegment.tsx +45 -22
  325. package/src/DateTimeInput/index.ts +1 -0
  326. package/src/Dialog/Dialog.tsx +13 -2
  327. package/src/DropdownMenu/DropdownMenu.tsx +10 -3
  328. package/src/DropdownMenu/DropdownMenuSubMenu.tsx +13 -0
  329. package/src/Field/InputClearButton.tsx +3 -1
  330. package/src/Field/useEntryErrorBehavior.ts +34 -0
  331. package/src/Field/useEntryErrorReport.ts +210 -0
  332. package/src/Field/useValueReplacesEntry.ts +44 -0
  333. package/src/FormLayout/FormLayout.doc.mjs +14 -0
  334. package/src/FormLayout/FormLayout.tsx +24 -2
  335. package/src/FormLayout/FormLayoutContext.ts +24 -4
  336. package/src/FormLayout/index.ts +5 -1
  337. package/src/InfoTip/InfoTip.doc.mjs +2 -2
  338. package/src/InfoTip/InfoTip.tsx +3 -0
  339. package/src/Layer/gestureCounter.ts +136 -4
  340. package/src/Layer/inputHold.ts +137 -2
  341. package/src/Layer/layerAnimations.stylex.ts +13 -9
  342. package/src/Layer/layerEntranceSide.ts +50 -12
  343. package/src/Layer/useLayer.tsx +89 -15
  344. package/src/Layer/useTouchTrigger.ts +21 -21
  345. package/src/Lightbox/Lightbox.doc.mjs +2 -1
  346. package/src/Lightbox/Lightbox.tsx +833 -357
  347. package/src/Lightbox/useZoomCore.ts +6 -49
  348. package/src/Lightbox/useZoomStage.ts +7 -17
  349. package/src/List/ListItem.tsx +3 -2
  350. package/src/List/ListReorderHandle.tsx +59 -77
  351. package/src/List/listReorderContext.ts +3 -4
  352. package/src/List/listReorderEngine.tsx +246 -11
  353. package/src/Markdown/Markdown.tsx +6 -0
  354. package/src/Markdown/plugins/textTransform.ts +46 -12
  355. package/src/MetadataList/MetadataList.doc.mjs +16 -0
  356. package/src/MetadataList/MetadataList.tsx +3 -2
  357. package/src/MoreMenu/MoreMenu.doc.mjs +2 -2
  358. package/src/MoreMenu/MoreMenu.tsx +3 -0
  359. package/src/NumberInput/NumberInput.doc.mjs +47 -6
  360. package/src/NumberInput/NumberInput.tsx +245 -52
  361. package/src/NumberInput/index.ts +3 -1
  362. package/src/NumberInput/numberInputCommit.ts +57 -13
  363. package/src/Outline/useOutlineFromDOM.doc.mjs +99 -0
  364. package/src/Outline/useOutlineFromDOM.ts +1 -0
  365. package/src/Pagination/Pagination.tsx +15 -4
  366. package/src/Popover/popoverSurfaceFrame.ts +18 -41
  367. package/src/Popover/usePopover.tsx +43 -22
  368. package/src/PowerSearch/PowerSearch.doc.mjs +2 -2
  369. package/src/PowerSearch/PowerSearch.tsx +7 -3
  370. package/src/PowerSearch/PowerSearchEditPopover.tsx +12 -2
  371. package/src/PowerSearch/PowerSearchFilterEditor.tsx +3 -0
  372. package/src/PowerSearch/PowerSearchToken.tsx +3 -0
  373. package/src/PowerSearch/PowerSearchValueEditor.tsx +4 -0
  374. package/src/ProgressBar/ProgressBar.doc.mjs +3 -0
  375. package/src/SegmentedControl/SegmentedControl.doc.mjs +5 -0
  376. package/src/SegmentedControl/useSegmentedTouchTracking.ts +15 -0
  377. package/src/Selector/Selector.tsx +0 -1
  378. package/src/Selector/useSelectorPresentation.ts +16 -12
  379. package/src/Slider/Slider.tsx +6 -8
  380. package/src/StatusDot/StatusDot.doc.mjs +3 -0
  381. package/src/Switch/Switch.doc.mjs +3 -0
  382. package/src/TabList/TabList.doc.mjs +4 -0
  383. package/src/Table/BaseTable.tsx +440 -289
  384. package/src/Table/Table.doc.mjs +2 -2
  385. package/src/Table/Table.tsx +5 -1
  386. package/src/Table/index.ts +8 -1
  387. package/src/Table/plugins/filtering/useTableFiltering.tsx +2 -0
  388. package/src/Table/plugins/infiniteScroll/index.ts +10 -0
  389. package/src/Table/plugins/infiniteScroll/useTableInfiniteScroll.tsx +523 -0
  390. package/src/Table/plugins/sortable/useTableSortableState.tsx +4 -4
  391. package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +31 -1
  392. package/src/Table/plugins/virtualization/TableColumnWindow.tsx +160 -0
  393. package/src/Table/plugins/virtualization/index.ts +3 -1
  394. package/src/Table/plugins/virtualization/useTableColumnWindow.ts +284 -0
  395. package/src/Table/plugins/virtualization/useTableColumnsVirtualization.ts +53 -0
  396. package/src/Table/plugins/virtualization/useTableWindow.ts +49 -17
  397. package/src/Table/tableColumnWindowing.ts +181 -0
  398. package/src/Table/tablePinnedColumnRuns.ts +55 -0
  399. package/src/Table/tableRuntime.ts +44 -11
  400. package/src/Table/types.ts +25 -2
  401. package/src/Table/useBaseTablePlugins.ts +2 -2
  402. package/src/Table/useTableColumnsVirtualization.doc.mjs +29 -0
  403. package/src/Table/useTableInfiniteScroll.doc.mjs +58 -0
  404. package/src/Text/Heading.doc.mjs +3 -0
  405. package/src/Text/useTruncation.doc.mjs +10 -0
  406. package/src/Text/useTruncation.ts +53 -35
  407. package/src/TextArea/TextArea.doc.mjs +15 -0
  408. package/src/TextArea/TextArea.tsx +11 -0
  409. package/src/TextInput/TextInput.doc.mjs +3 -0
  410. package/src/Thumbnail/Thumbnail.doc.mjs +2 -2
  411. package/src/Thumbnail/Thumbnail.tsx +2 -2
  412. package/src/TimeInput/TimeInput.doc.mjs +38 -4
  413. package/src/TimeInput/TimeInput.tsx +176 -99
  414. package/src/TimeInput/index.ts +2 -0
  415. package/src/TimeInput/useTypedTime.ts +341 -0
  416. package/src/Toast/Toast.doc.mjs +2 -2
  417. package/src/Toast/Toast.tsx +36 -3
  418. package/src/Toast/ToastViewport.tsx +14 -9
  419. package/src/Tooltip/useTooltip.tsx +147 -136
  420. package/src/TopNav/TopNav.doc.mjs +4 -0
  421. package/src/dragToSnapPoints/createDragToSnapPoints.ts +437 -119
  422. package/src/gestures/createPanGesture.ts +112 -39
  423. package/src/hooks/containerReveal.stylex.ts +17 -15
  424. package/src/hooks/useAnnounceRenderedText.ts +18 -6
  425. package/src/hooks/useContainerReveal.doc.mjs +3 -3
  426. package/src/hooks/useContainerReveal.ts +8 -5
  427. package/src/hooks/useMenuPress.ts +39 -0
  428. package/src/i18n/generated-english/DateInput/NativeDateField.generated.ts +0 -1
  429. package/src/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.ts +0 -1
  430. package/src/i18n/generated-english/Lightbox/Lightbox.generated.ts +2 -0
  431. package/src/i18n/generated-english/{DateTimeInput/NativeTimeSegment.generated.ts → Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.ts} +2 -2
  432. package/src/i18n/generated-locales/en.generated.ts +35 -0
  433. package/src/i18n/generated-locales/pseudo.generated.ts +35 -0
  434. package/src/internal/shared-context.ts +15 -0
  435. package/src/internal/touch.ts +5 -1
  436. package/src/motion/README.md +1 -0
  437. package/src/motion/animatedLayout.ts +6 -21
  438. package/src/motion/animator.ts +181 -23
  439. package/src/motion/linearEasing.ts +35 -0
  440. package/src/motion/resolveMotion.ts +42 -1
  441. package/src/theme/generateThemeRules.ts +14 -3
  442. package/src/theme/tokenReferences.ts +48 -7
  443. package/src/utils/clickGuard.ts +33 -3
  444. package/src/utils/sharedResizeObserver.ts +46 -2
  445. package/src/utils/themeProps.ts +17 -0
  446. package/src/utils/timeFormat.ts +55 -10
  447. package/src/utils/timeParser.ts +7 -9
  448. package/src/utils/touchEndMark.ts +33 -0
  449. package/src/virtualization/listWindow.ts +105 -3
  450. package/src/virtualization/useInlineListWindow.ts +261 -0
  451. package/src/virtualization/useListFocusIsland.ts +87 -0
  452. package/src/virtualization/useListWindow.ts +14 -51
  453. package/dist/i18n/generated-english/DateTimeInput/NativeTimeSegment.generated.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/AppShell/AppShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA0Cf,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAW5C,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,k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AW,aAAc,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC;IAE7B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,eAAe,GAAG,SAAS,CAAC;IAEhD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAuQD,wBAAgB,QAAQ,CAAC,EACvB,OAAoB,EACpB,MAAM,EACN,QAAQ,EACR,cAAc,EACd,aAAa,EAAE,UAAU,EACzB,MAAe,EACf,SAAS,EACT,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,aAAa,qBAizBf;yBAh0Be,QAAQ"}
@@ -20,7 +20,7 @@ import React from 'react';
20
20
  * - /packages/cli/assets/templates/blocks/components/AppShell/ (showcase blocks)
21
21
  */
22
22
 
23
- import { isValidElement, useCallback, useEffect, useId, useMemo, useRef, useState } from 'react';
23
+ import { isValidElement, useCallback, useDeferredValue, useEffect, useId, useMemo, useRef, useState } from 'react';
24
24
  import * as stylex from '@stylexjs/stylex';
25
25
  import "../theme/tokens.stylex.js";
26
26
  import { colorVars, focusVars, fontWeightVars, radiusVars, spacingVars, typeScaleVars } from "../theme/tokens.stylex.js";
@@ -319,7 +319,13 @@ export function AppShell({
319
319
  // =========================================================================
320
320
  const activeWidthBreakpoints = activeTheme?.__adaptations?.widthBreakpoints;
321
321
  const breakpointQuery = sideNavBreakpoint === 'none' ? '(width < 0px)' : `(width < ${activeWidthBreakpoints?.[sideNavBreakpoint] ?? DEFAULT_WIDTH_BREAKPOINTS[sideNavBreakpoint]}px)`;
322
- const isBelowBreakpoint = useMediaQuery(breakpointQuery, sideNavBreakpoint === 'none' ? false : mobileNavConfig?.defaultIsMobile);
322
+ // The client's first answer can differ from the server's. That correction
323
+ // is an urgent update, and it changes the mobile context above the page.
324
+ // React answers an urgent update above content it has not hydrated by
325
+ // rendering that content again in place of its server HTML. A deferred
326
+ // value takes the client's answer in a transition, which waits for that
327
+ // content to hydrate.
328
+ const isBelowBreakpoint = useDeferredValue(useMediaQuery(breakpointQuery, sideNavBreakpoint === 'none' ? false : mobileNavConfig?.defaultIsMobile));
323
329
  const [uncontrolledMobileOpen, setUncontrolledMobileOpen] = useState(false);
324
330
  const isMobileNavOpen = mobileNavConfig?.isOpen ?? uncontrolledMobileOpen;
325
331
 
@@ -2,7 +2,8 @@
2
2
  * Returns a function that wraps a row's click handler. While
3
3
  * `isInMobileDrawer` is true, the wrapped handler calls the row's handler and
4
4
  * then closes the AppShell mobile drawer. Otherwise the row's handler comes
5
- * back unchanged. Every drawer row closes the drawer through this one rule.
5
+ * back unchanged. Every drawer row closes the drawer through this one rule,
6
+ * except that a modified click on a link leaves it open.
6
7
  */
7
8
  export declare function useCloseMobileDrawerOnActivate(isInMobileDrawer: boolean): <Args extends unknown[]>(onClick: ((...args: Args) => void) | undefined) => ((...args: Args) => void) | undefined;
8
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"useCloseMobileDrawerOnActivate.d.ts","sourceRoot":"","sources":["../../src/AppShell/useCloseMobileDrawerOnActivate.ts"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,gBAAgB,EAAE,OAAO,GACxB,CAAC,IAAI,SAAS,OAAO,EAAE,EACxB,OAAO,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,KAC3C,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAWzC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAQrD"}
1
+ {"version":3,"file":"useCloseMobileDrawerOnActivate.d.ts","sourceRoot":"","sources":["../../src/AppShell/useCloseMobileDrawerOnActivate.ts"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,gBAAgB,EAAE,OAAO,GACxB,CAAC,IAAI,SAAS,OAAO,EAAE,EACxB,OAAO,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,KAC3C,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAazC;AAeD;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAQrD"}
@@ -10,6 +10,7 @@
10
10
  * exported from the package.
11
11
  */
12
12
  import { useAppShellMobile } from "./AppShellMobileContext.js";
13
+ import { isModifiedClick } from "../DropdownMenu/menuItemRoles.js";
13
14
  import { useSideNavRenderMode } from "../SideNav/SideNavRenderContext.js";
14
15
  import { useTopNavRenderMode } from "../TopNav/TopNavRenderContext.js";
15
16
 
@@ -17,7 +18,8 @@ import { useTopNavRenderMode } from "../TopNav/TopNavRenderContext.js";
17
18
  * Returns a function that wraps a row's click handler. While
18
19
  * `isInMobileDrawer` is true, the wrapped handler calls the row's handler and
19
20
  * then closes the AppShell mobile drawer. Otherwise the row's handler comes
20
- * back unchanged. Every drawer row closes the drawer through this one rule.
21
+ * back unchanged. Every drawer row closes the drawer through this one rule,
22
+ * except that a modified click on a link leaves it open.
21
23
  */
22
24
  export function useCloseMobileDrawerOnActivate(isInMobileDrawer) {
23
25
  const {
@@ -29,11 +31,22 @@ export function useCloseMobileDrawerOnActivate(isInMobileDrawer) {
29
31
  }
30
32
  return (...args) => {
31
33
  onClick?.(...args);
32
- closeMobileNav();
34
+ if (!isModifiedLinkClick(args[0])) {
35
+ closeMobileNav();
36
+ }
33
37
  };
34
38
  };
35
39
  }
36
40
 
41
+ // A modified click on a link is the browser's (a new tab), so the drawer stays
42
+ // open for the next one. The clicked element decides whether it is a link, so
43
+ // a row whose blocked `href` renders no address still closes. A row whose
44
+ // `onClick` cancels the click opens nothing elsewhere, so it still closes.
45
+ function isModifiedLinkClick(event) {
46
+ const click = event;
47
+ return click?.currentTarget?.hasAttribute?.('href') === true && isModifiedClick(click) && !click.defaultPrevented;
48
+ }
49
+
37
50
  /**
38
51
  * Whether the caller renders inside the AppShell mobile drawer: in TopNav
39
52
  * content or SideNav content shown there.
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAuBH,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AA4DhD,YAAY,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAkNhF,UAAU,sBAAuB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAChE,qDAAqD;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEhC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IAEd,0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gB,GAC1B,0BAA0B,GAAG,wBAAwB,CAAC;AAq7BxD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BA6BlD;yBA7Be,WAAW"}
@@ -50,6 +50,7 @@
50
50
  // stack, but they replace each other. Each open modal sheet is an outlet for
51
51
  // toasts (Layer/modalOutlet.ts), in stack order.
52
52
  import { use, useCallback, useEffect, useInsertionEffect, useLayoutEffect, useRef, useState } from 'react';
53
+ import { useCommittedRef } from "../hooks/useCommittedRef.js";
53
54
  import { useIsHydrating } from "../hooks/useIsHydrating.js";
54
55
  import { useSettledOpen } from "../hooks/useSettledOpen.js";
55
56
  import * as stylex from '@stylexjs/stylex';
@@ -58,7 +59,7 @@ import { colorVars, durationVars, easeVars, spacingVars } from "../theme/tokens.
58
59
  import { useDevWarning } from "../hooks/useDevWarning.js";
59
60
  import { useScrollLock } from "../hooks/useScrollLock.js";
60
61
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
61
- import { observeMutations } from "../utils/sharedMutationObserver.js";
62
+ import { holdInput } from "../Layer/inputHold.js";
62
63
  import { mergeProps } from "../utils/mergeProps.js";
63
64
  import { LayerDepthProvider } from "../Layer/LayerDepthContext.js";
64
65
  import { ModalAnnounceProvider } from "../hooks/ModalAnnounceProvider.js";
@@ -134,11 +135,7 @@ const styles = {
134
135
  $$css: true
135
136
  },
136
137
  scrimClosing: {
137
- kb4ib: "x1cz9k3x",
138
- $$css: true
139
- },
140
- exitHoldingFocus: {
141
- kfzvcC: "x47corl",
138
+ kb4ib: "x1w553ls",
142
139
  $$css: true
143
140
  },
144
141
  positioner: {
@@ -182,23 +179,6 @@ function stackPositionerStyles(view) {
182
179
  }
183
180
 
184
181
  /** The `data-sheet-stack` value for a host: only set while sheets stack. */
185
- /** Stops a click, from any input, before it reaches its target. */
186
- function ignoreActivation(event) {
187
- event.preventDefault();
188
- event.stopPropagation();
189
- }
190
-
191
- /**
192
- * Stops every key except Tab before it reaches the focused control, so no
193
- * key handler runs and no text changes (a search field's Enter, a typed
194
- * letter, Backspace, an arrow that reopens a list). Tab still moves focus.
195
- */
196
- function ignoreKeyDuringExit(event) {
197
- if (event.key !== 'Tab') {
198
- event.preventDefault();
199
- event.stopPropagation();
200
- }
201
- }
202
182
  function stackStateAttribute(view, isOpen) {
203
183
  if (!view.isStacked) {
204
184
  return undefined;
@@ -216,19 +196,20 @@ function scrimOpacityForView(view) {
216
196
 
217
197
  /**
218
198
  * Writes the fade a touch drag's close paces on `dialog`'s scrim, or clears
219
- * it when `ms` is null. `written` keeps the value the host wrote, so a clear
220
- * removes only that value.
199
+ * it when `fade` is null. `written` keeps the duration the host wrote, so a
200
+ * clear removes only that fade.
221
201
  */
222
- function writeScrimFadeDuration(dialog, ms, written) {
202
+ function writeScrimFade(dialog, fade, written) {
223
203
  if (dialog == null) {
224
204
  return;
225
205
  }
226
206
  const current = dialog.style.getPropertyValue('--_sheet-scrim-duration');
227
- if (ms == null) {
228
- // Remove only the value this host wrote. A stack's 0s pin written since
207
+ if (fade == null) {
208
+ // Remove only the fade this host wrote. A stack's 0s pin written since
229
209
  // then stays.
230
210
  if (written.current != null && current === written.current) {
231
211
  dialog.style.removeProperty('--_sheet-scrim-duration');
212
+ dialog.style.removeProperty('--_sheet-scrim-easing');
232
213
  }
233
214
  written.current = null;
234
215
  return;
@@ -237,8 +218,9 @@ function writeScrimFadeDuration(dialog, ms, written) {
237
218
  if (current === '0s') {
238
219
  return;
239
220
  }
240
- written.current = `${ms}ms`;
221
+ written.current = `${fade.durationMs}ms`;
241
222
  dialog.style.setProperty('--_sheet-scrim-duration', written.current);
223
+ dialog.style.setProperty('--_sheet-scrim-easing', fade.easing);
242
224
  }
243
225
  function panelStateForSwitcherPhase(phase, alignmentOffset) {
244
226
  switch (phase) {
@@ -294,8 +276,9 @@ function StandaloneBottomSheet({
294
276
  // sheet leaves the page interactive, so it returns focus to its opener
295
277
  // only if the person was still in the sheet; a modal sheet always does.
296
278
  const hadFocusAtCloseRef = useRef(false);
297
- const finalFocusRefRef = useRef(finalFocusRef);
298
- finalFocusRefRef.current = finalFocusRef;
279
+ // The committed `finalFocusRef`. The stack reads it when it closes the
280
+ // sheet, which can happen in a layout effect.
281
+ const finalFocusRefRef = useCommittedRef(finalFocusRef);
299
282
  // A sheet rendered in another sheet's content is presented only while that
300
283
  // sheet is open: it leaves with its host and, if its own state is still
301
284
  // open, comes back when the host does (see BottomSheetHostContext). Its
@@ -351,14 +334,10 @@ function StandaloneBottomSheet({
351
334
  // `isOpen` restarts the flag during render, and the layout effect below
352
335
  // settles a close.
353
336
  const [isCloseSettled, setIsCloseSettled] = useState(false);
354
- // Whether focus was inside the sheet when it closed. Such a sheet stays out
355
- // of `inert` and `aria-hidden` until its exit ends and focus has left.
356
- const [isExitFocusHeld, setIsExitFocusHeld] = useState(false);
357
337
  const [settledIsOpen, setSettledIsOpen] = useState(isOpen);
358
338
  if (settledIsOpen !== isOpen) {
359
339
  setSettledIsOpen(isOpen);
360
340
  setIsCloseSettled(false);
361
- setIsExitFocusHeld(false);
362
341
  }
363
342
  const panelState = isOpen ? {
364
343
  kind: 'open',
@@ -391,8 +370,9 @@ function StandaloneBottomSheet({
391
370
  const handlePanelElementChange = useCallback(element => {
392
371
  panelRef.current = element;
393
372
  }, []);
373
+ // The stack's view for the handlers. The registry's `onView` writes it with
374
+ // each view it reports, together with the state.
394
375
  const stackViewRef = useRef(stackView);
395
- stackViewRef.current = stackView;
396
376
  const scrimWriteRef = useRef({
397
377
  frame: null
398
378
  });
@@ -410,12 +390,12 @@ function StandaloneBottomSheet({
410
390
  }, []);
411
391
  // The fade duration a touch drag's close wrote, until that close ends.
412
392
  const scrimFadeRef = useRef(null);
413
- const handleScrimFadeDuration = useCallback((panel, ms) => {
393
+ const handleScrimFade = useCallback((panel, fade) => {
414
394
  const view = stackViewRef.current;
415
395
  if (view.isStacked && !view.ownsScrim) {
416
396
  return;
417
397
  }
418
- writeScrimFadeDuration(panel.closest('dialog'), ms, scrimFadeRef);
398
+ writeScrimFade(panel.closest('dialog'), fade, scrimFadeRef);
419
399
  }, []);
420
400
 
421
401
  // A sheet joins the registry for as long as it is presented. For a modal
@@ -436,6 +416,8 @@ function StandaloneBottomSheet({
436
416
  const repairOnRemoval = dialog == null ? null : prepareFocusRepairOnRemoval(dialog, {
437
417
  keepRestingFocus: true
438
418
  });
419
+ // Where focus returns when the sheet leaves, read when it leaves.
420
+ const getReturnTarget = () => finalFocusRefRef.current?.current ?? triggerRef.current;
439
421
  const leave = registerBottomSheet({
440
422
  key,
441
423
  getElement: () => dialogRef.current,
@@ -456,7 +438,7 @@ function StandaloneBottomSheet({
456
438
  },
457
439
  hide: () => closeDialogKeepingFocus(dialogRef.current),
458
440
  focus: reason => focusSheetPanel(panelRef.current, reason, hasScrim),
459
- getReturnTarget: () => finalFocusRefRef.current?.current ?? triggerRef.current,
441
+ getReturnTarget,
460
442
  onView: view => {
461
443
  stackViewRef.current = view;
462
444
  setStackView(view);
@@ -491,7 +473,7 @@ function StandaloneBottomSheet({
491
473
  // person had already moved out of the sheet to the page body stays
492
474
  // there: the removal did not lose it.
493
475
  if (repairOnRemoval != null && isSheetHostPresented(dialog)) {
494
- const returnTarget = finalFocusRefRef.current?.current ?? triggerRef.current;
476
+ const returnTarget = getReturnTarget();
495
477
  const revealed = hasScrim ? getBottomSheetBeneath(key) : null;
496
478
  repairOnRemoval(() => {
497
479
  // The sheet beneath left too. Its own repair returns focus for the
@@ -508,7 +490,7 @@ function StandaloneBottomSheet({
508
490
  }
509
491
  leave();
510
492
  };
511
- }, [hasScrim, shouldPresent, writeScrim]);
493
+ }, [finalFocusRefRef, hasScrim, shouldPresent, writeScrim]);
512
494
  useLayoutEffect(() => {
513
495
  if (!isOpen) {
514
496
  // Where focus was when the person closed the sheet. The closing sheet
@@ -524,8 +506,6 @@ function StandaloneBottomSheet({
524
506
  // that was not paired as a replace is an exit from here on.
525
507
  // eslint-disable-next-line @eslint-react/set-state-in-effect -- settles the close once the registry has answered
526
508
  setIsCloseSettled(true);
527
- // Read with the close, before the sheet can go inert.
528
- setIsExitFocusHeld(hadFocusAtCloseRef.current);
529
509
  }
530
510
  }, [hasScrim, isOpen, shouldPresent]);
531
511
 
@@ -611,36 +591,7 @@ function StandaloneBottomSheet({
611
591
  const {
612
592
  ref: modalityRef
613
593
  } = useInteractionModalityTracking();
614
- // Ends the exit hold once focus has left the sheet: moved elsewhere, or
615
- // dropped to the page because the focused control was removed or disabled.
616
- // Native listeners, because React drops the `focusout` a browser sends while
617
- // React removes the focused element, and Firefox and WebKit send no
618
- // `focusout` for a removed element at all, so a subtree change is read too.
619
- // Each reads the focus after the event. They attach only while a closing
620
- // sheet holds focus, so a closed or open sheet observes nothing.
621
- const isWatchingExitFocus = !isOpen && isPresented && !isReplaced && isExitFocusHeld;
622
- const exitFocusRef = useCallback(dialog => {
623
- if (dialog == null || !isWatchingExitFocus) {
624
- return;
625
- }
626
- const releaseIfFocusLeft = () => {
627
- if (!dialog.contains(dialog.ownerDocument.activeElement)) {
628
- setIsExitFocusHeld(false);
629
- }
630
- };
631
- const onFocusOut = () => queueMicrotask(releaseIfFocusLeft);
632
- dialog.addEventListener('focusout', onFocusOut);
633
- const unobserve = observeMutations(dialog, {
634
- childList: true,
635
- subtree: true,
636
- attributeFilter: ['disabled', 'hidden', 'inert']
637
- }, releaseIfFocusLeft);
638
- return () => {
639
- dialog.removeEventListener('focusout', onFocusOut);
640
- unobserve();
641
- };
642
- }, [isWatchingExitFocus]);
643
- const dialogComposedRef = useMergedRefs(dialogRef, modalityRef, exitFocusRef);
594
+ const dialogComposedRef = useMergedRefs(dialogRef, modalityRef);
644
595
  useScrollLock(shouldPresent && hasScrim);
645
596
  useDevWarning('BottomSheet', 'requires a non-empty `label` for an accessible name; the open sheet ' + 'has no built-in heading to derive one from.', isOpen && !label);
646
597
 
@@ -695,22 +646,32 @@ function StandaloneBottomSheet({
695
646
  // makes everything outside it inert, this dialog included. A covered sheet
696
647
  // that contains no presented sheet is marked inert and hidden as well, so
697
648
  // the state is explicit; one that does contain the top sheet is left alone,
698
- // because inert on it would reach the top sheet too.
699
- // A sheet that closes with focus inside it is neither inert nor hidden
700
- // while that focus stays: `inert` would drop the focus to the page, and
701
- // `aria-hidden` would hide the focused control. When the exit ends, the
702
- // dialog closes and focus returns in the same task. When focus leaves the
703
- // sheet first (into a sheet opened above it, for example), the sheet goes
704
- // inert at once. Until the close settles, no closing sheet is inert, so the
705
- // first commit of a close never hides focus.
706
- const isExitHoldingFocus = isExiting && !isReplaced && (!isCloseSettled || isExitFocusHeld);
707
- const isInert = isExiting && !isExitHoldingFocus || stackView.isBlocked;
649
+ // because inert on it would reach the top sheet too. A replaced sheet is
650
+ // inert through its handoff. A sheet that exits otherwise is held by the
651
+ // layer runtime's input hold below.
652
+ const isInert = isExiting && isReplaced || stackView.isBlocked;
653
+ const isExitHeld = isExiting && !isReplaced && isCloseSettled;
654
+
655
+ // Syncs the exit with the layer runtime's input hold. Until the close
656
+ // settles, no closing sheet is held, so the first commit of a close never
657
+ // hides focus.
658
+ useLayoutEffect(() => {
659
+ const dialog = dialogRef.current;
660
+ if (!isExitHeld || dialog == null) {
661
+ return;
662
+ }
663
+ return holdInput(dialog, {
664
+ until: new Promise(() => {}),
665
+ scope: 'layer',
666
+ focus: 'kept-inside'
667
+ });
668
+ }, [isExitHeld]);
708
669
  return /*#__PURE__*/_jsxs("dialog", {
709
670
  ...stylex.props(styles.dialog, shouldPresent && styles.dialogOpen, shouldPresent && styles.dialogPanelHost,
710
671
  // The dialog is the panel's positioner, so the stack's recede
711
672
  // transforms the dialog: panel, grabber and all shrink and lift as
712
673
  // one. The backdrop is not a descendant and stays put.
713
- ...stackPositionerStyles(stackView), hasScrim && styles.scrim, hasScrim && isEntrySettled && styles.scrimSettled, hasScrim && isExiting && styles.scrimClosing, isExitHoldingFocus && styles.exitHoldingFocus, !hasScrim && styles.dialogNonModal),
674
+ ...stackPositionerStyles(stackView), hasScrim && styles.scrim, hasScrim && isEntrySettled && styles.scrimSettled, hasScrim && isExiting && styles.scrimClosing, !hasScrim && styles.dialogNonModal),
714
675
  ref: dialogComposedRef
715
676
  // A non-modal sheet is hosted in the top layer as a manual popover
716
677
  // (no light dismiss, no backdrop), so sheets order by presentation
@@ -727,12 +688,6 @@ function StandaloneBottomSheet({
727
688
  "data-sheet-stack": hasScrim ? stackStateAttribute(stackView, isOpen) : undefined,
728
689
  "data-sheet-stack-depth": hasScrim && stackView.depth > 0 ? stackView.depth : undefined,
729
690
  onCancel: handleCancel
730
- // A closing sheet that keeps focus takes no activation during its
731
- // exit: no click and no key but Tab reaches the control that has focus.
732
- ,
733
- onClickCapture: isExitHoldingFocus ? ignoreActivation : undefined,
734
- onKeyDownCapture: isExitHoldingFocus ? ignoreKeyDuringExit : undefined,
735
- onKeyUpCapture: isExitHoldingFocus ? ignoreKeyDuringExit : undefined
736
691
  // Presses inside the sheet do not reach handlers around where it is
737
692
  // written. The dialog, not the panel, is the root, as in a switcher.
738
693
  ,
@@ -754,7 +709,7 @@ function StandaloneBottomSheet({
754
709
  xstyle: xstyle,
755
710
  onDismiss: dismissOnLightInteraction,
756
711
  onScrimOpacity: handleScrimOpacity,
757
- onScrimFadeDuration: handleScrimFadeDuration,
712
+ onScrimFade: handleScrimFade,
758
713
  onElementChange: handlePanelElementChange,
759
714
  handleRef: outletRef,
760
715
  onMotionStart: handleMotionStart,
@@ -876,8 +831,8 @@ function SwitcherBottomSheetItem({
876
831
  // close ends. The step a drag closes becomes the flow's retained step, so
877
832
  // its backdrop is the flow's scrim.
878
833
  const scrimFadeRef = useRef(null);
879
- const handleScrimFadeDuration = useCallback((panel, ms) => {
880
- writeScrimFadeDuration(panel.closest('dialog'), ms, scrimFadeRef);
834
+ const handleScrimFade = useCallback((panel, fade) => {
835
+ writeScrimFade(panel.closest('dialog'), fade, scrimFadeRef);
881
836
  }, []);
882
837
  useLayoutEffect(() => {
883
838
  if (!hasValidSheetId) {
@@ -1025,7 +980,7 @@ function SwitcherBottomSheetItem({
1025
980
  xstyle: xstyle,
1026
981
  onDismiss: dismissOnSwipe,
1027
982
  onScrimOpacity: handleScrimOpacity,
1028
- onScrimFadeDuration: handleScrimFadeDuration,
983
+ onScrimFade: handleScrimFade,
1029
984
  onElementChange: handlePanelElementChange,
1030
985
  onMotionStart: handleMotionStart,
1031
986
  onMotionComplete: handleMotionComplete,
@@ -25,6 +25,14 @@ declare const HEIGHT_BUDGETS: {
25
25
  };
26
26
  export type BottomSheetHeight = keyof typeof HEIGHT_BUDGETS;
27
27
  export type { BottomSheetSnapPoint };
28
+ /**
29
+ * The scrim's fade under a touch drag's close: the close's duration in ms,
30
+ * and its progress as CSS easing, so the fade follows the sheet.
31
+ */
32
+ export interface ScrimFade {
33
+ readonly durationMs: number;
34
+ readonly easing: string;
35
+ }
28
36
  export declare const REDUCED_MOTION_COARSE_QUERY = "(prefers-reduced-motion: reduce) and (pointer: coarse)";
29
37
  export type BottomSheetPanelMotion = 'entering' | 'aligning' | 'fading' | 'exiting';
30
38
  export type BottomSheetPanelState = {
@@ -76,12 +84,12 @@ interface BottomSheetPanelProps extends BaseProps<HTMLDivElement> {
76
84
  onDismiss: () => void;
77
85
  onScrimOpacity: (opacity: number) => void;
78
86
  /**
79
- * The scrim's fade under a touch drag's close, in milliseconds, or null
80
- * once that close ends or a reopen takes the sheet back. `panel` is the
81
- * sheet's element: the commit that starts the close can detach the host's
82
- * dialog ref while this runs.
87
+ * The scrim's fade under a touch drag's close, or null once that close
88
+ * ends or a reopen takes the sheet back. `panel` is the sheet's element:
89
+ * the commit that starts the close can detach the host's dialog ref while
90
+ * this runs.
83
91
  */
84
- onScrimFadeDuration?: (panel: HTMLElement, ms: number | null) => void;
92
+ onScrimFade?: (panel: HTMLElement, fade: ScrimFade | null) => void;
85
93
  onElementChange?: (element: HTMLDivElement | null) => void;
86
94
  /**
87
95
  * A ref for the grab handle's element. The handle stays mounted with the
@@ -92,7 +100,7 @@ interface BottomSheetPanelProps extends BaseProps<HTMLDivElement> {
92
100
  onMotionComplete?: (motion: BottomSheetPanelMotion) => void;
93
101
  }
94
102
  /** Internal visual and gesture surface shared by every BottomSheet host. */
95
- export declare function BottomSheetPanel({ ref, state, isOpenRequested, height, label, children, padding, snapPoints, className, style, tabIndex, xstyle, isEntrySettled, onEntrySettled, onTransitionEnd, isSwipeDismissAllowed, isPageScrollLocked, onDismiss, onScrimOpacity, onScrimFadeDuration, onElementChange, handleRef, onMotionStart, onMotionComplete, ...props }: BottomSheetPanelProps): import("react").JSX.Element;
103
+ export declare function BottomSheetPanel({ ref, state, isOpenRequested, height, label, children, padding, snapPoints, className, style, tabIndex, xstyle, isEntrySettled, onEntrySettled, onTransitionEnd, isSwipeDismissAllowed, isPageScrollLocked, onDismiss, onScrimOpacity, onScrimFade, onElementChange, handleRef, onMotionStart, onMotionComplete, ...props }: BottomSheetPanelProps): import("react").JSX.Element;
96
104
  export declare namespace BottomSheetPanel {
97
105
  var displayName: string;
98
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetPanel.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetPanel.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA+B5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAYvB,QAAA,MAAM,cAAc;;;;CAIV,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC5D,YAAY,EAAC,oBAAoB,EAAC,CAAC;AAsNnC,eAAO,MAAM,2BAA2B,2DACkB,CAAC;AAyO3D,MAAM,MAAM,sBAAsB,GAChC,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;A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