@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
@@ -1 +1 @@
1
- {"version":3,"file":"touch.d.ts","sourceRoot":"","sources":["../../src/internal/touch.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,YAAY,GACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,0B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,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,iBAAiB,EAAE,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAC,8BAA8B,EAAC,MAAM,8BAA8B,CAAC;AAI5E,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAC5D,YAAY,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AAMxE,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAGvD,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AACvE,YAAY,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC"}
@@ -76,4 +76,7 @@ export { isCoarsePointer } from "../utils/coarsePointer.js";
76
76
  export { animatorFor } from "../motion/animator.js";
77
77
  export { reducedMotionFade } from "../motion/reducedMotion.js";
78
78
  export { useTouchHitArea } from "../utils/touchHitArea.js";
79
- export { touchHitAreaStyles } from "./touchHitArea.stylex.js";
79
+ export { touchHitAreaStyles } from "./touchHitArea.stylex.js";
80
+
81
+ // Lab's TabBar tracks its press with the shared action-group tracker.
82
+ export { useActionGroupTracking } from "../hooks/useActionGroupTracking.js";
@@ -325,6 +325,14 @@ export declare function applyLayoutChangeTransition(handle: AnimatedLayout | nul
325
325
  * animates, such as a rail that snaps).
326
326
  */
327
327
  export declare function landLayoutGlide(element: Element): void;
328
+ /**
329
+ * Lands the sideways part of `element`'s running glide at once and keeps its
330
+ * vertical move. It changes the glide's frames, and what a later change
331
+ * carries from it, together. It is for an adopter that moves the element's
332
+ * own sideways translation onto its children between the two reads. A list
333
+ * row that a swipe left open is one.
334
+ */
335
+ export declare function landLayoutGlideSideways(element: Element): void;
328
336
  /**
329
337
  * @internal The motion a change in `area` plays, for tests and for SideNav's
330
338
  * rail motion, which plays on the same clock (`component:SideNav` FR6).
@@ -1 +1 @@
1
- {"version":3,"file":"animatedLayout.d.ts","sourceRoot":"","sources":["../../src/motion/animatedLayout.ts"],"names":[],"mappings":"AAgHA,sDAAsD;AACtD,KAAK,YAAY,GACb;IAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;CAAC,GAC1D;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,GACD;IAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAC,CAAC;AAE/B,sEAAsE;AACtE,UAAU,aAAa;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AA4XD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAGzD;AA+LD;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAE1D;AAMD,QAAA,MAAM,IAAI,eAAuC,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,OAAO,GAAG,IAAI,CAAC;CACvC;AAED,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,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,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EACzC,UAAU,EAAE,MAAM,WAAW,GAAG,IAAI,EACpC,EAAC,IAAkB,EAAC,GAAE;IAAC,IAAI,CAAC,EAAE,UAAU,CAAA;CAAM,GAC7C,gBAAgB,CAkJlB;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EACzC,OAAO,EAAE,WAAW,GAAG,UAAU,GAAG,IAAI,GACvC,IAAI,CAwBN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAMtD;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA+B9D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,YAAY,CAE3D"}
@@ -10,9 +10,10 @@
10
10
  * exports the exit hold (`holdLayoutExit`, `releaseLayoutExit`), the
11
11
  * in-place swap (`holdLayoutSwap`, `playLayoutSwap`), the edge reveal's
12
12
  * two-state form (`holdLayoutEdge`, `playLayoutEdge`), `playLayoutFrames`
13
- * and `applyLayoutChangeTransition`. It is the one module that produces the
14
- * size-change glide and the edge reveal `spec:AST-105` defines
15
- * (`architecture:react-component-runtime` INV12)
13
+ * and `applyLayoutChangeTransition`. It exports `glideOf` and the glide
14
+ * landings (`landLayoutGlide`, `landLayoutGlideSideways`) too. It is the one
15
+ * module that produces the size-change glide and the edge reveal
16
+ * `spec:AST-105` defines (`architecture:react-component-runtime` INV12)
16
17
  * @position Motion foundation, internal to core. A handle comes from the
17
18
  * public `useAnimatedLayout` hook; a component that takes it reports its
18
19
  * size changes through this module.
@@ -2980,6 +2981,53 @@ export function landLayoutGlide(element) {
2980
2981
  }
2981
2982
  }
2982
2983
 
2984
+ /**
2985
+ * Lands the sideways part of `element`'s running glide at once and keeps its
2986
+ * vertical move. It changes the glide's frames, and what a later change
2987
+ * carries from it, together. It is for an adopter that moves the element's
2988
+ * own sideways translation onto its children between the two reads. A list
2989
+ * row that a swipe left open is one.
2990
+ */
2991
+ export function landLayoutGlideSideways(element) {
2992
+ const glide = glides.get(element);
2993
+ const effect = glide?.animation.effect;
2994
+ if (glide == null || effect == null || typeof effect.setKeyframes !== 'function') {
2995
+ return;
2996
+ }
2997
+ effect.setKeyframes(effect.getKeyframes().map(({
2998
+ computedOffset: _,
2999
+ translate,
3000
+ ...frame
3001
+ }) => {
3002
+ const [, y = '0px'] = String(translate ?? '').split(/\s+/);
3003
+ return {
3004
+ ...frame,
3005
+ translate: `0px ${y}`
3006
+ };
3007
+ }));
3008
+ const vertical = {
3009
+ animation: glide.animation,
3010
+ offsetAt: t => ({
3011
+ x: 0,
3012
+ y: glide.offsetAt(t).y
3013
+ }),
3014
+ get durationMs() {
3015
+ return glide.durationMs;
3016
+ },
3017
+ shownBefore: {
3018
+ x: 0,
3019
+ y: glide.shownBefore.y
3020
+ },
3021
+ scale: glide.scale
3022
+ };
3023
+ glides.set(element, vertical);
3024
+ glide.animation.addEventListener?.('finish', () => {
3025
+ if (glides.get(element) === vertical) {
3026
+ glides.delete(element);
3027
+ }
3028
+ });
3029
+ }
3030
+
2983
3031
  /**
2984
3032
  * @internal The motion a change in `area` plays, for tests and for SideNav's
2985
3033
  * rail motion, which plays on the same clock (`component:SideNav` FR6).
@@ -20,6 +20,22 @@ export interface SpringTransition {
20
20
  */
21
21
  velocity?: MotionValues;
22
22
  }
23
+ /** What `Animator.rebase` takes besides the amounts. */
24
+ export interface RebaseOptions {
25
+ /** Time of the shift on the document timeline (ms). Defaults to now. */
26
+ at?: number;
27
+ /**
28
+ * Per property, the value its spring heads for after the shift. A spring
29
+ * whose target plus its amount lands there moves whole, before its first
30
+ * frame and once its start is known. Its curve and target move by the
31
+ * amount. It keeps its start time and velocity, as when the element's
32
+ * resting place moves under a curve that keeps going. If its first frame
33
+ * has run while its start is unread, only the model moves. The next call
34
+ * on the channel in the same task rebuilds its animation, or else the end
35
+ * of the task does.
36
+ */
37
+ towards?: MotionValues;
38
+ }
23
39
  /**
24
40
  * Options of `animate` and `play`: the spring, a release velocity, the Reduced
25
41
  * Motion handling.
@@ -230,9 +246,10 @@ export interface Animator {
230
246
  * moves the element under them: a property moving on a spring keeps its
231
247
  * spring, velocity and target (the curve restarts from the shifted value);
232
248
  * any other moving curve shifts whole, its end included; a resting
233
- * property takes the offset and stays.
249
+ * property takes the offset and stays. `towards` moves some springs whole
250
+ * instead (RebaseOptions).
234
251
  */
235
- rebase(deltas: MotionValues, options?: Pick<AnimateOptions, 'at'>): void;
252
+ rebase(deltas: MotionValues, options?: RebaseOptions): void;
236
253
  /** Freezes properties (all by default) at their presentation values. */
237
254
  stop(properties?: ReadonlyArray<MotionProperty | 'scale'>): void;
238
255
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"animator.d.ts","sourceRoot":"","sources":["../../src/motion/animator.ts"],"names":[],"mappings":"AAyLA,OAAO,EAAwB,KAAK,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAevE;;GAEG;AACH,MAAM,MAAM,cAAc,GACxB,GAAG,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,GAAG,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;OAOG;IACH,WAAW,CAAC,EA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CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC5D,wEAAwE;IACxE,IAAI,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC;IACjE;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,uCAAuC;IACvC,OAAO,IAAI,IAAI,CAAC;CACjB;AAoKD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAO3D,CAAC;AAiFF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,WAAW,QAAS,CAAC;AAalC,oEAAoE;AACpE,eAAO,MAAM,mBAAmB,MAAM,CAAC;AA0CvC;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,eAAoB,GAC5B,QAAQ,CAaV;AAyED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAMrD;AAED,kEAAkE;AAClE,wBAAgB,sBAAsB,IAAI,OAAO,CAMhD;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,OAAO,GAAE,eAAoB,GAC5B,QAAQ,CA0lGV"}
@@ -202,6 +202,8 @@ import { themeReducesMotion } from "../privateAttributes/reducedMotion.stylex.js
202
202
  * A spring and the velocity it starts with.
203
203
  */
204
204
 
205
+ /** What `Animator.rebase` takes besides the amounts. */
206
+
205
207
  /**
206
208
  * Options of `animate` and `play`: the spring, a release velocity, the Reduced
207
209
  * Motion handling.
@@ -312,6 +314,13 @@ const REST_FRAMES_PER_SECOND = 60;
312
314
  /** A curve that has not settled by then (an undamped spring) snaps. */
313
315
  const MAX_DURATION_MS = 30_000;
314
316
 
317
+ /**
318
+ * How close a spring's target and a value must be to count as the same, in
319
+ * the property's own units. Only float rounding separates two ways of
320
+ * computing one value, far below anything the screen shows.
321
+ */
322
+ const SAME_VALUE = 1e-6;
323
+
315
324
  /**
316
325
  * The task calls from rest are made in, shared by every call made in it
317
326
  * (every animator's), so one motion's parts that are separate calls start
@@ -908,7 +917,40 @@ export function createMotionEngine(element, options = {}) {
908
917
  animation.startTime = time;
909
918
  running.set(channel, animation);
910
919
  };
920
+ const replaceIn = (group, segment, next) => {
921
+ const index = group.segments.indexOf(segment);
922
+ if (index >= 0) {
923
+ group.segments[index] = next;
924
+ } else {
925
+ group.segments.push(next);
926
+ }
927
+ };
928
+
929
+ /**
930
+ * Channels whose model a rebase moved while their animation still shows
931
+ * the old curve. Any rebuild clears its channel; the end of the task
932
+ * rebuilds the rest, so a frame never shows the old curve at the new rest.
933
+ */
934
+ const stale = new Set();
935
+ let healQueued = false;
936
+ const markStale = channel => {
937
+ stale.add(channel);
938
+ if (!healQueued) {
939
+ healQueued = true;
940
+ queueMicrotask(healStale);
941
+ }
942
+ };
943
+ const healStale = () => {
944
+ healQueued = false;
945
+ if (stale.size === 0) {
946
+ return;
947
+ }
948
+ const properties = [...stale].flatMap(channel => CHANNELS[channel]);
949
+ stale.clear();
950
+ commit(properties, now());
951
+ };
911
952
  const rebuild = (channel, time) => {
953
+ stale.delete(channel);
912
954
  const previous = running.get(channel);
913
955
  running.delete(channel);
914
956
  clearTimeout(retireTimers.get(channel));
@@ -2987,15 +3029,16 @@ export function createMotionEngine(element, options = {}) {
2987
3029
  syncPending();
2988
3030
  flushDeferred();
2989
3031
  const time = rebaseOptions.at ?? now();
3032
+ const towards = expand(rebaseOptions.towards ?? {});
2990
3033
  const changed = [];
2991
3034
  const owners = new Set();
2992
3035
  for (const [property, delta] of Object.entries(expand(deltas))) {
2993
3036
  if (delta === 0) {
2994
3037
  continue;
2995
3038
  }
2996
- changed.push(property);
2997
3039
  const segment = segmentAt(property, time);
2998
3040
  if (segment == null) {
3041
+ changed.push(property);
2999
3042
  resting[property] = valueAt(property, time) + delta;
3000
3043
  segments.delete(property);
3001
3044
  continue;
@@ -3008,15 +3051,36 @@ export function createMotionEngine(element, options = {}) {
3008
3051
  const group = latest == null && segment.group != null && !segment.group.resolved ? segment.group : undefined;
3009
3052
  const replace = next => {
3010
3053
  if (group != null) {
3011
- const index = group.segments.indexOf(segment);
3012
- if (index >= 0) {
3013
- group.segments[index] = next;
3014
- } else {
3015
- group.segments.push(next);
3016
- }
3054
+ replaceIn(group, segment, next);
3017
3055
  }
3018
3056
  segments.set(property, next);
3019
3057
  };
3058
+ const heading = towards[property];
3059
+ if (segment.spring != null && heading != null && Math.abs(segment.target + delta - heading) <= SAME_VALUE) {
3060
+ // The spring keeps its course to the shifted target from its own
3061
+ // start.
3062
+ const whole = {
3063
+ ...segment,
3064
+ target: heading,
3065
+ at: t => segment.at(t) + delta
3066
+ };
3067
+ if (latest == null) {
3068
+ changed.push(property);
3069
+ replace(whole);
3070
+ continue;
3071
+ }
3072
+ // While the browser has not told the start, only the model moves.
3073
+ // The call that follows rebuilds the channel from it, or else the
3074
+ // end of the task does.
3075
+ const waiting = segment.group;
3076
+ if (waiting != null && !waiting.resolved) {
3077
+ replaceIn(waiting, segment, whole);
3078
+ segments.set(property, whole);
3079
+ markStale(CHANNEL_OF[property]);
3080
+ continue;
3081
+ }
3082
+ }
3083
+ changed.push(property);
3020
3084
  if (segment.spring != null) {
3021
3085
  const from = valueAt(property, time) + delta;
3022
3086
  const velocity = velocityAt(property, time);
@@ -3132,6 +3196,7 @@ export function createMotionEngine(element, options = {}) {
3132
3196
  animation.cancel();
3133
3197
  }
3134
3198
  running.clear();
3199
+ stale.clear();
3135
3200
  for (const timer of retireTimers.values()) {
3136
3201
  clearTimeout(timer);
3137
3202
  }
@@ -0,0 +1,5 @@
1
+ /** Spread on a List row: marks it with its `itemKey`, when it has one. */
2
+ export declare function itemKeyProps(itemKey: string | number | undefined): Readonly<Record<string, string>>;
3
+ /** The item key a row carries, or null for a row without one. */
4
+ export declare function itemKeyOf(row: Element): string | null;
5
+ //# sourceMappingURL=itemKey.stylex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itemKey.stylex.d.ts","sourceRoot":"","sources":["../../src/privateAttributes/itemKey.stylex.ts"],"names":[],"mappings":"AAcA,0EAA0E;AAC1E,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GACnC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAElC;AAED,iEAAiE;AACjE,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAErD"}
@@ -0,0 +1,25 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file privateAttributes/itemKey.stylex.ts
5
+ * @input A List row's own `itemKey`
6
+ * @output itemKeyProps, which marks a row with its key, and itemKeyOf, which
7
+ * reads it
8
+ * @position Owner module of the private item-key attribute: the only file
9
+ * that writes its name. ListItem marks its row, and List/listLayoutUpdates.ts
10
+ * matches rows by it across renders. No package entry exports it.
11
+ */
12
+
13
+ const ITEM_KEY = 'data-astryx-item-key';
14
+
15
+ /** Spread on a List row: marks it with its `itemKey`, when it has one. */
16
+ export function itemKeyProps(itemKey) {
17
+ return itemKey == null ? {} : {
18
+ [ITEM_KEY]: String(itemKey)
19
+ };
20
+ }
21
+
22
+ /** The item key a row carries, or null for a row without one. */
23
+ export function itemKeyOf(row) {
24
+ return row.getAttribute(ITEM_KEY);
25
+ }
@@ -0,0 +1,5 @@
1
+ /** Marks `row` as put back for its exit: it is not a row any more. */
2
+ export declare function markLeaving(row: Element): void;
3
+ /** Whether `row` was put back for its exit. */
4
+ export declare function isLeaving(row: Element): boolean;
5
+ //# sourceMappingURL=leaving.stylex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leaving.stylex.d.ts","sourceRoot":"","sources":["../../src/privateAttributes/leaving.stylex.ts"],"names":[],"mappings":"AAcA,sEAAsE;AACtE,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAE9C;AAED,+CAA+C;AAC/C,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAE/C"}
@@ -0,0 +1,23 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file privateAttributes/leaving.stylex.ts
5
+ * @input A List row put back in the document for its exit
6
+ * @output markLeaving, which marks such a row, and isLeaving, which reads the
7
+ * mark
8
+ * @position Owner module of the private leaving attribute: the only file that
9
+ * writes its name. List/listLayoutUpdates.ts marks a row it puts back, so no
10
+ * later commit counts it as a row. No package entry exports it.
11
+ */
12
+
13
+ const LEAVING = 'data-astryx-leaving';
14
+
15
+ /** Marks `row` as put back for its exit: it is not a row any more. */
16
+ export function markLeaving(row) {
17
+ row.setAttribute(LEAVING, '');
18
+ }
19
+
20
+ /** Whether `row` was put back for its exit. */
21
+ export function isLeaving(row) {
22
+ return row.hasAttribute(LEAVING);
23
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"press.stylex.d.ts","sourceRoot":"","sources":["../../src/privateAttributes/press.stylex.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAiE3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsP9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;EAiBlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;EAgB9B,CAAC"}
1
+ {"version":3,"file":"press.stylex.d.ts","sourceRoot":"","sources":["../../src/privateAttributes/press.stylex.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AA4E3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuP9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;EAiBlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;EAgB9B,CAAC"}
@@ -70,8 +70,18 @@ const RELEASE_EASE = easeVars['--ease-exit'];
70
70
  const DIVIDER_WIDTH = borderVars['--border-width'];
71
71
  /** How far a highlighted row's tint reaches past its edge: one divider. */
72
72
  const PAST_DIVIDER = `calc(-1 * ${DIVIDER_WIDTH})`;
73
- /** A tint one divider tall, just above the row: over the row before's divider. */
74
- const tintAbove = tint => `0 ${PAST_DIVIDER} 0 0 ${tint}`;
73
+ /**
74
+ * The surface a travelling List row rides on (travelling.stylex.ts sets it).
75
+ * A row of a List with dividers adds it to its own shadows.
76
+ */
77
+ const TRAVELLING_SURFACE = 'var(--_travelling-surface, none)';
78
+ /** The same surface as one shadow in a list of them. */
79
+ const TRAVELLING_SURFACE_LAYER = 'var(--_travelling-surface, 0 0 transparent)';
80
+ /**
81
+ * A tint one divider tall, just above the row: over the row before's divider.
82
+ * A travelling row keeps its surface under the tint.
83
+ */
84
+ const tintAbove = tint => `0 ${PAST_DIVIDER} 0 0 ${tint}, ${TRAVELLING_SURFACE_LAYER}`;
75
85
  export const rowPressLayerStyles = {
76
86
  cell: {
77
87
  kKwaWg: "x7ngsy6 x10ogxw0 xubczrd x18xnkjv",
@@ -92,7 +102,7 @@ export const rowPressLayerStyles = {
92
102
  $$css: true
93
103
  },
94
104
  overDividers: {
95
- kGVxlE: "xz086lz xw0vxdm x17vbu6w xqq0hxb x1bauv0c xrizkk6 xt6htfo x162bwuq",
105
+ kGVxlE: "x1a8j72w x1gmmbal xnwmnb6 x1smloqv xmo6azi x1spxf8v xvofup6 xv3779j xrpmvov",
96
106
  k96MEf: "x1v1ro1q",
97
107
  k5Ofw7: "x1rj2gwv",
98
108
  $$css: true
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Turn the browser's scroll anchoring off on `element` (`on`), or hand it
3
+ * back (`!on`). A component calls this while it alone moves the container's
4
+ * position, so native anchoring does not move it a second time.
5
+ */
6
+ export declare function setScrollAnchoringOff(element: Element, on: boolean): void;
7
+ //# sourceMappingURL=scrollAnchoring.stylex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollAnchoring.stylex.d.ts","sourceRoot":"","sources":["../../src/privateAttributes/scrollAnchoring.stylex.ts"],"names":[],"mappings":"AAqCA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,IAAI,CAOzE"}
@@ -0,0 +1,50 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file privateAttributes/scrollAnchoring.stylex.ts
5
+ * @input A scroll container whose position a component owns
6
+ * @output setScrollAnchoringOff, which turns the browser's scroll anchoring
7
+ * off on an element and back on
8
+ * @position Owner module of the private scroll-anchoring attribute: the only
9
+ * file that writes its name or its rule. Core's useChatStreamScroll calls
10
+ * it while it follows the end; Lab reaches the writer through
11
+ * `@astryxdesign/core/internal/scroll-anchoring`. No public entry exports
12
+ * it.
13
+ */
14
+
15
+ const SCROLL_ANCHORING = 'data-astryx-scroll-anchoring';
16
+ /** On a scroll container: the browser's anchoring is off there. */
17
+ const OFF = 'off';
18
+ /** On the one `<style>` element that holds the rule. */
19
+ const RULE = 'rule';
20
+
21
+ /**
22
+ * Add the one rule the attribute switches on, once per document. A rule on
23
+ * an attribute, not the element's inline style, so the caller's own
24
+ * `overflow-anchor` is never read, written or restored, and applies again
25
+ * once the attribute is gone. `!important` so an inline `auto` cannot turn
26
+ * anchoring back on under a component that positions the content itself.
27
+ */
28
+ function ensureRule(doc) {
29
+ if (doc.head.querySelector(`[${SCROLL_ANCHORING}="${RULE}"]`) != null) {
30
+ return;
31
+ }
32
+ const style = doc.createElement('style');
33
+ style.setAttribute(SCROLL_ANCHORING, RULE);
34
+ style.textContent = `[${SCROLL_ANCHORING}="${OFF}"]{overflow-anchor:none !important}`;
35
+ doc.head.appendChild(style);
36
+ }
37
+
38
+ /**
39
+ * Turn the browser's scroll anchoring off on `element` (`on`), or hand it
40
+ * back (`!on`). A component calls this while it alone moves the container's
41
+ * position, so native anchoring does not move it a second time.
42
+ */
43
+ export function setScrollAnchoringOff(element, on) {
44
+ if (on) {
45
+ ensureRule(element.ownerDocument);
46
+ element.setAttribute(SCROLL_ANCHORING, OFF);
47
+ } else {
48
+ element.removeAttribute(SCROLL_ANCHORING);
49
+ }
50
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @file privateAttributes/travelling.stylex.ts
3
+ * @input StyleX and the surface color token
4
+ * @output `travellingStyles` for a List row that slides across other rows,
5
+ * and markTravelling, which marks the row for the length of its slide
6
+ * @position Owner module of the private travelling attribute: the only file
7
+ * that writes its name. List/listLayoutUpdates.ts marks a row, and ListItem
8
+ * composes the styles. No package entry exports it.
9
+ */
10
+ import * as stylex from '@stylexjs/stylex';
11
+ /**
12
+ * Marks `row` as sliding across rows that move the other way. Returns the
13
+ * call that removes the mark when the slide ends. A later mark on the row
14
+ * stays when that call runs.
15
+ */
16
+ export declare function markTravelling(row: Element): () => void;
17
+ export declare const travellingStyles: Readonly<{
18
+ readonly row: Readonly<{
19
+ readonly zIndex: stylex.StyleXClassNameFor<"zIndex", unknown>;
20
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", unknown>;
21
+ readonly '--_travelling-surface': stylex.StyleXClassNameFor<"--_travelling-surface", "initial" | null>;
22
+ }>;
23
+ readonly raisedSwipeRow: Readonly<{
24
+ readonly zIndex: stylex.StyleXClassNameFor<"zIndex", unknown>;
25
+ }>;
26
+ }>;
27
+ //# sourceMappingURL=travelling.stylex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"travelling.stylex.d.ts","sourceRoot":"","sources":["../../src/privateAttributes/travelling.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAW3C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,IAAI,CAUvD;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;EA+C3B,CAAC"}
@@ -0,0 +1,51 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file privateAttributes/travelling.stylex.ts
5
+ * @input StyleX and the surface color token
6
+ * @output `travellingStyles` for a List row that slides across other rows,
7
+ * and markTravelling, which marks the row for the length of its slide
8
+ * @position Owner module of the private travelling attribute: the only file
9
+ * that writes its name. List/listLayoutUpdates.ts marks a row, and ListItem
10
+ * composes the styles. No package entry exports it.
11
+ */
12
+
13
+ import * as stylex from '@stylexjs/stylex';
14
+ import "../theme/tokens.stylex.js";
15
+ import { colorVars } from "../theme/tokens.stylex.js";
16
+ const TRAVELLING = 'data-astryx-travelling';
17
+
18
+ /**
19
+ * Each row's latest mark, so the end of an earlier slide leaves a later
20
+ * mark in place.
21
+ */
22
+ const marks = new WeakMap();
23
+
24
+ /**
25
+ * Marks `row` as sliding across rows that move the other way. Returns the
26
+ * call that removes the mark when the slide ends. A later mark on the row
27
+ * stays when that call runs.
28
+ */
29
+ export function markTravelling(row) {
30
+ const mark = {};
31
+ marks.set(row, mark);
32
+ row.setAttribute(TRAVELLING, '');
33
+ return () => {
34
+ if (marks.get(row) === mark) {
35
+ marks.delete(row);
36
+ row.removeAttribute(TRAVELLING);
37
+ }
38
+ };
39
+ }
40
+ export const travellingStyles = {
41
+ row: {
42
+ kY2c9j: "xvl8nft",
43
+ kGVxlE: "x5s51vl",
44
+ "--_travelling-surface": "x12i9w4a x7l4pt9",
45
+ $$css: true
46
+ },
47
+ raisedSwipeRow: {
48
+ kY2c9j: "xvl8nft x1xytu5a x1fq76kf",
49
+ $$css: true
50
+ }
51
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/theme/Theme.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAgD,MAAM,OAAO,CAAC;AAGrE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAmB,KAAK,YAAY,EAAC,MAAM,eAAe,CAAC;AAWlE;;GAEG;AACH,UAAU,UAAU;IAClB,+BAA+B;IAC/B,KAAK,EAAE,YAAY,CAAC;IACpB,kDAAkD;IAClD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yBAAyB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AA+BD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,wBAA6B,CAAC;AA4J9D;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,IAAe,EACf,QAAQ,GACT,EAAE,UAAU,GAAG,KAAK,CAAC,YAAY,CAwCjC;yBA5Ce,KAAK"}
1
+ {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/theme/Theme.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAG/E,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAmB,KAAK,YAAY,EAAC,MAAM,eAAe,CAAC;AAYlE;;GAEG;AACH,UAAU,UA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