Skip to content

Commit c0143ed

Browse files
committed
chore(core): a pager that pages like a UIKit paging scroll view
1 parent 249f35d commit c0143ed

5 files changed

Lines changed: 1893 additions & 0 deletions

File tree

‎.changeset/uikit-pager.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[chore] Internal: a pager for touch presentations that pages like a UIKit paging scroll view. A horizontal pan moves the pages one to one and rubber-bands at the ends. The release picks the page with UIKit's rule and settles on UIKit's paging curve on the compositor, and a finger can catch it mid-flight. Not exported from the package entry point; no component uses it yet.
6+
7+
@vjeux
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright (c) Meta Platforms, Inc. and affiliates.
2+
3+
/**
4+
* @file pagerBundle.ts
5+
* @input The pager and the paging math
6+
* @output The surface the pager's browser proofs bundle onto their fixture
7+
* page (esbuild, IIFE global `Pager`)
8+
* @position Test-only entry of usePager.interaction.browser.spec.ts
9+
*/
10+
11+
export {createPager} from '../usePager';
12+
export {
13+
pagingReleaseVelocity,
14+
selectPage,
15+
solveAnimatedPageScroll,
16+
solvePaging,
17+
} from '../../motion/paging';
18+
export {rubberBand} from '../../motion/rubberBand';
19+
export {paging} from '../../motion/uikit/paging';
20+
export {VelocityTracker} from '../../gestures/VelocityTracker';

0 commit comments

Comments
 (0)