@react-motion-router/stack 2.0.0-beta.sha-bcb6b06 → 2.0.0-beta.sha-f93cbfb
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.
- package/build/Screen.d.ts +9 -9
- package/build/__tests__/screen.test.d.ts +1 -0
- package/build/index.js +108 -88
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/Screen.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { ScreenBase, PlainObject, ScreenBaseProps, ScreenBaseState, ScreenBaseCo
|
|
|
2
2
|
import { Navigation } from './Navigation';
|
|
3
3
|
import { RouteProp, SwipeDirection } from './common/types';
|
|
4
4
|
import { Router } from './Router';
|
|
5
|
-
export type ScreenComponentProps<T extends PlainObject> = ScreenBaseComponentProps<RouteProp<T>, Navigation>;
|
|
5
|
+
export type ScreenComponentProps<T extends PlainObject = object> = ScreenBaseComponentProps<RouteProp<T>, Navigation>;
|
|
6
6
|
export interface ScreenConfig extends ScreenBaseConfig<RouteProp> {
|
|
7
|
-
title?: string;
|
|
8
|
-
presentation?: 'default' | 'dialog' | 'modal';
|
|
9
|
-
keepAlive?: boolean;
|
|
10
|
-
gestureDirection?: SwipeDirection;
|
|
11
|
-
gestureAreaWidth?: number;
|
|
12
|
-
gestureMinFlingVelocity?: number;
|
|
13
|
-
gestureHysteresis?: number;
|
|
14
|
-
gestureDisabled?: boolean;
|
|
7
|
+
readonly title?: string;
|
|
8
|
+
readonly presentation?: 'default' | 'dialog' | 'modal';
|
|
9
|
+
readonly keepAlive?: boolean;
|
|
10
|
+
readonly gestureDirection?: SwipeDirection;
|
|
11
|
+
readonly gestureAreaWidth?: number;
|
|
12
|
+
readonly gestureMinFlingVelocity?: number;
|
|
13
|
+
readonly gestureHysteresis?: number;
|
|
14
|
+
readonly gestureDisabled?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export interface ScreenProps extends ScreenBaseProps {
|
|
17
17
|
config?: ScreenConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NavigationBase as ht, resolveBaseURLFromPattern as dt, matchRoute as Y, ScreenBase as ft, RouterBase as vt, cloneAndInject as gt, includesRoute as pt, useNavigationBase as mt, useRouterBase as yt, useRouteBase as wt, useParamsBase as Et } from "@react-motion-router/core";
|
|
2
|
-
import { createRef as Pt, startTransition as N, useDebugValue as j, useEffect as
|
|
3
|
-
import { GestureTimeline as
|
|
2
|
+
import { createRef as Pt, startTransition as N, useDebugValue as j, useEffect as C, useState as St, useRef as $, useCallback as bt } from "react";
|
|
3
|
+
import { GestureTimeline as Lt, springToLinear as _t, easingToLinear as A } from "web-animations-extension";
|
|
4
4
|
import { jsx as ut } from "react/jsx-runtime";
|
|
5
5
|
var g = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Tt = {}, T = {};
|
|
6
6
|
Object.defineProperty(T, "__esModule", { value: !0 });
|
|
@@ -43,13 +43,13 @@ var q = {}, Ft = g && g.__importDefault || function(n) {
|
|
|
43
43
|
return n && n.__esModule ? n : { default: n };
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(q, "__esModule", { value: !0 });
|
|
46
|
-
const
|
|
47
|
-
class
|
|
46
|
+
const Ot = Ft(T);
|
|
47
|
+
class Dt extends Ot.default {
|
|
48
48
|
constructor(t) {
|
|
49
49
|
super("tap", t), this.duration = 0;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
q.default =
|
|
52
|
+
q.default = Dt;
|
|
53
53
|
var G = {}, Kt = g && g.__importDefault || function(n) {
|
|
54
54
|
return n && n.__esModule ? n : { default: n };
|
|
55
55
|
};
|
|
@@ -66,12 +66,12 @@ var F = {}, Yt = g && g.__importDefault || function(n) {
|
|
|
66
66
|
};
|
|
67
67
|
Object.defineProperty(F, "__esModule", { value: !0 });
|
|
68
68
|
F.SwipeEndEvent = F.SwipeStartEvent = void 0;
|
|
69
|
-
const
|
|
69
|
+
const Ct = Yt(T);
|
|
70
70
|
var st;
|
|
71
71
|
(function(n) {
|
|
72
72
|
n[n.start = 0] = "start", n[n.end = 1] = "end";
|
|
73
73
|
})(st || (st = {}));
|
|
74
|
-
class z extends
|
|
74
|
+
class z extends Ct.default {
|
|
75
75
|
constructor(t, e, r) {
|
|
76
76
|
let s;
|
|
77
77
|
switch (r) {
|
|
@@ -87,30 +87,30 @@ class z extends Xt.default {
|
|
|
87
87
|
super(s, t), this.velocity = e.velocity, this.direction = e.direction;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
class
|
|
90
|
+
class Xt extends z {
|
|
91
91
|
constructor(t, e) {
|
|
92
92
|
super(t, e);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
F.default =
|
|
95
|
+
F.default = Xt;
|
|
96
96
|
class jt extends z {
|
|
97
97
|
constructor(t, e) {
|
|
98
98
|
super(t, e, "start");
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
F.SwipeStartEvent = jt;
|
|
102
|
-
class
|
|
102
|
+
class Ut extends z {
|
|
103
103
|
constructor(t, e) {
|
|
104
104
|
super(t, e, "end");
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
F.SwipeEndEvent =
|
|
108
|
-
var
|
|
107
|
+
F.SwipeEndEvent = Ut;
|
|
108
|
+
var O = {}, Ht = g && g.__importDefault || function(n) {
|
|
109
109
|
return n && n.__esModule ? n : { default: n };
|
|
110
110
|
};
|
|
111
|
-
Object.defineProperty(
|
|
112
|
-
|
|
113
|
-
const Nt =
|
|
111
|
+
Object.defineProperty(O, "__esModule", { value: !0 });
|
|
112
|
+
O.PanEndEvent = O.PanStartEvent = void 0;
|
|
113
|
+
const Nt = Ht(T);
|
|
114
114
|
var it;
|
|
115
115
|
(function(n) {
|
|
116
116
|
n[n.start = 0] = "start", n[n.end = 1] = "end";
|
|
@@ -143,24 +143,24 @@ class Vt extends Z {
|
|
|
143
143
|
super(t, e);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
O.default = Vt;
|
|
147
147
|
class $t extends Z {
|
|
148
148
|
constructor(t, e) {
|
|
149
149
|
super(t, e, "start");
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
O.PanStartEvent = $t;
|
|
153
153
|
class At extends Z {
|
|
154
154
|
constructor(t, e) {
|
|
155
155
|
super(t, e, "end");
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
var
|
|
158
|
+
O.PanEndEvent = At;
|
|
159
|
+
var D = {}, Wt = g && g.__importDefault || function(n) {
|
|
160
160
|
return n && n.__esModule ? n : { default: n };
|
|
161
161
|
};
|
|
162
|
-
Object.defineProperty(
|
|
163
|
-
|
|
162
|
+
Object.defineProperty(D, "__esModule", { value: !0 });
|
|
163
|
+
D.PinchEndEvent = D.PinchStartEvent = void 0;
|
|
164
164
|
const qt = Wt(T);
|
|
165
165
|
var at;
|
|
166
166
|
(function(n) {
|
|
@@ -190,19 +190,19 @@ class Gt extends J {
|
|
|
190
190
|
super(t, e);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
D.default = Gt;
|
|
194
194
|
class zt extends J {
|
|
195
195
|
constructor(t, e) {
|
|
196
196
|
super(t, e, "start");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
D.PinchStartEvent = zt;
|
|
200
200
|
class Zt extends J {
|
|
201
201
|
constructor(t, e) {
|
|
202
202
|
super(t, e, "end");
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
D.PinchEndEvent = Zt;
|
|
206
206
|
var K = {}, Jt = g && g.__importDefault || function(n) {
|
|
207
207
|
return n && n.__esModule ? n : { default: n };
|
|
208
208
|
};
|
|
@@ -352,13 +352,13 @@ R.closest = ie;
|
|
|
352
352
|
} }), Object.defineProperty(n, "SwipeStartEvent", { enumerable: !0, get: function() {
|
|
353
353
|
return f.SwipeStartEvent;
|
|
354
354
|
} });
|
|
355
|
-
const d = r(
|
|
355
|
+
const d = r(O);
|
|
356
356
|
n.PanEvent = d.default, Object.defineProperty(n, "PanEndEvent", { enumerable: !0, get: function() {
|
|
357
357
|
return d.PanEndEvent;
|
|
358
358
|
} }), Object.defineProperty(n, "PanStartEvent", { enumerable: !0, get: function() {
|
|
359
359
|
return d.PanStartEvent;
|
|
360
360
|
} });
|
|
361
|
-
const P = r(
|
|
361
|
+
const P = r(D);
|
|
362
362
|
n.PinchEvent = P.default, Object.defineProperty(n, "PinchEndEvent", { enumerable: !0, get: function() {
|
|
363
363
|
return P.PinchEndEvent;
|
|
364
364
|
} }), Object.defineProperty(n, "PinchStartEvent", { enumerable: !0, get: function() {
|
|
@@ -456,23 +456,23 @@ R.closest = ie;
|
|
|
456
456
|
if (!this.shouldFire)
|
|
457
457
|
return;
|
|
458
458
|
if (this.touchMoved = !0, this.touchMove = a, a.touches.length > 1 && this.touchStart.touches.length > 1 && (a.touches[1].clientX !== this.touchStart.touches[1].clientX || a.touches[1].clientY !== this.touchStart.touches[1].clientY)) {
|
|
459
|
-
const
|
|
459
|
+
const L = new v.Vec2(this.touchMove.touches[0].clientX, this.touchMove.touches[0].clientY), U = new v.Vec2(this.touchMove.touches[1].clientX, this.touchMove.touches[1].clientY), et = new v.Vec2(this.touchStart.touches[0].clientX, this.touchStart.touches[0].clientY), nt = L.substract(U);
|
|
460
460
|
if (this.scaleBase && Math.abs(this.scaleBase - nt.magnitude) > 10) {
|
|
461
461
|
const I = nt.magnitude / this.scaleBase;
|
|
462
462
|
if (this.scale = I, this.isPinching) {
|
|
463
|
-
const
|
|
463
|
+
const H = new P.default(a, {
|
|
464
464
|
scale: I
|
|
465
465
|
});
|
|
466
|
-
this.dispatchEvent(
|
|
466
|
+
this.dispatchEvent(H);
|
|
467
467
|
} else {
|
|
468
|
-
const
|
|
468
|
+
const H = new P.PinchStartEvent(a, {
|
|
469
469
|
scale: I
|
|
470
470
|
});
|
|
471
|
-
this.dispatchEvent(
|
|
471
|
+
this.dispatchEvent(H), this.isPinching = !0;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
this.anchor =
|
|
475
|
-
let B = Math.atan2(et.clientY -
|
|
474
|
+
this.anchor = L;
|
|
475
|
+
let B = Math.atan2(et.clientY - U.clientY, et.clientX - U.clientX);
|
|
476
476
|
if (B < 0 ? B += 1.5708 : B -= 1.5708, this.rotation = B, this.rotationDeg = B * 180 / Math.PI, this.anchor = this.anchor, this.isRotating) {
|
|
477
477
|
const I = new w.default(a, {
|
|
478
478
|
anchor: this.anchor,
|
|
@@ -494,32 +494,32 @@ R.closest = ie;
|
|
|
494
494
|
y: E.y / b
|
|
495
495
|
}, S = Math.atan2(k.y, k.x);
|
|
496
496
|
this.octant = Math.round(4 * S / (2 * Math.PI) + 4) % 4;
|
|
497
|
-
const
|
|
497
|
+
const X = (a.timeStamp - this.touchStart.timeStamp) / 1e3, M = E.magnitude / X;
|
|
498
498
|
if (this.isSwiping) {
|
|
499
|
-
const
|
|
499
|
+
const L = new f.default(a, {
|
|
500
500
|
direction: p[(0, v.closest)(this.octant, [0, 1, 2, 3])],
|
|
501
501
|
velocity: M
|
|
502
502
|
});
|
|
503
|
-
this.dispatchEvent(
|
|
503
|
+
this.dispatchEvent(L);
|
|
504
504
|
} else {
|
|
505
|
-
const
|
|
505
|
+
const L = new f.SwipeStartEvent(a, {
|
|
506
506
|
direction: p[(0, v.closest)(this.octant, [0, 1, 2, 3])],
|
|
507
507
|
velocity: M
|
|
508
508
|
});
|
|
509
|
-
this.dispatchEvent(
|
|
509
|
+
this.dispatchEvent(L), this.isSwiping = !0;
|
|
510
510
|
}
|
|
511
511
|
if (this.dxDy = E, this.velocity = M, this.isPanning) {
|
|
512
|
-
const
|
|
512
|
+
const L = new d.default(a, {
|
|
513
513
|
translation: E,
|
|
514
514
|
velocity: M
|
|
515
515
|
});
|
|
516
|
-
this.dispatchEvent(
|
|
516
|
+
this.dispatchEvent(L);
|
|
517
517
|
} else {
|
|
518
|
-
const
|
|
518
|
+
const L = new d.PanStartEvent(a, {
|
|
519
519
|
translation: E,
|
|
520
520
|
velocity: M
|
|
521
521
|
});
|
|
522
|
-
this.dispatchEvent(
|
|
522
|
+
this.dispatchEvent(L), this.isPanning = !0;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
onTouchEnd(a) {
|
|
@@ -640,7 +640,8 @@ class fe extends ht {
|
|
|
640
640
|
super(), this.router = t;
|
|
641
641
|
}
|
|
642
642
|
preload(t, e = {}, r = {}) {
|
|
643
|
-
|
|
643
|
+
const { pathname: s } = new URL(t, this.baseURL);
|
|
644
|
+
return this.router.preload(s, e, r);
|
|
644
645
|
}
|
|
645
646
|
replace(t, e = {}, r = {}) {
|
|
646
647
|
return this.navigate(t, e, { ...r, type: "replace" });
|
|
@@ -808,7 +809,26 @@ class Je extends ft {
|
|
|
808
809
|
super.setParams(t), this.setHistoryState(({ params: e }) => ({ params: { ...e, ...t } }));
|
|
809
810
|
}
|
|
810
811
|
setConfig(t) {
|
|
811
|
-
super.setConfig(t),
|
|
812
|
+
super.setConfig(t), this.setHistoryState(({ config: e }) => {
|
|
813
|
+
const r = /* @__PURE__ */ new Set([
|
|
814
|
+
"footer",
|
|
815
|
+
"header",
|
|
816
|
+
"onEnter",
|
|
817
|
+
"onEntered",
|
|
818
|
+
"onExit",
|
|
819
|
+
"onExited",
|
|
820
|
+
"onLoad",
|
|
821
|
+
"animation"
|
|
822
|
+
]);
|
|
823
|
+
return {
|
|
824
|
+
config: {
|
|
825
|
+
...e,
|
|
826
|
+
...Object.fromEntries(
|
|
827
|
+
Object.entries(t).filter(([s]) => !r.has(s))
|
|
828
|
+
)
|
|
829
|
+
}
|
|
830
|
+
};
|
|
831
|
+
});
|
|
812
832
|
}
|
|
813
833
|
get router() {
|
|
814
834
|
return this.context;
|
|
@@ -918,7 +938,7 @@ function Ee(n, { x: t, y: e }, r, s) {
|
|
|
918
938
|
function Pe(n) {
|
|
919
939
|
return n === "left" || n === "right" || n === "horizontal";
|
|
920
940
|
}
|
|
921
|
-
const
|
|
941
|
+
const _ = {
|
|
922
942
|
gestureHysteresis: 0.5,
|
|
923
943
|
gestureMinFlingVelocity: 400,
|
|
924
944
|
gestureAreaWidth: 100,
|
|
@@ -949,11 +969,11 @@ class Qe extends vt {
|
|
|
949
969
|
constructor(t, e) {
|
|
950
970
|
super(t, e);
|
|
951
971
|
const {
|
|
952
|
-
gestureAreaWidth: r =
|
|
953
|
-
gestureDirection: s =
|
|
954
|
-
gestureDisabled: i =
|
|
955
|
-
gestureHysteresis: o =
|
|
956
|
-
gestureMinFlingVelocity: c =
|
|
972
|
+
gestureAreaWidth: r = _.gestureAreaWidth,
|
|
973
|
+
gestureDirection: s = _.gestureDirection,
|
|
974
|
+
gestureDisabled: i = _.gestureDisabled,
|
|
975
|
+
gestureHysteresis: o = _.gestureHysteresis,
|
|
976
|
+
gestureMinFlingVelocity: c = _.gestureMinFlingVelocity
|
|
957
977
|
} = t.config?.screenConfig ?? {};
|
|
958
978
|
this.state = {
|
|
959
979
|
screenStack: [],
|
|
@@ -974,11 +994,11 @@ class Qe extends vt {
|
|
|
974
994
|
(s) => x(s.ref) && s.ref.current?.focused
|
|
975
995
|
)?.props.config;
|
|
976
996
|
return document.title = r?.title ?? document.title, {
|
|
977
|
-
gestureDirection: r?.gestureDirection ??
|
|
978
|
-
gestureAreaWidth: r?.gestureAreaWidth ??
|
|
979
|
-
gestureMinFlingVelocity: r?.gestureMinFlingVelocity ??
|
|
980
|
-
gestureHysteresis: r?.gestureHysteresis ??
|
|
981
|
-
gestureDisabled: r?.gestureDisabled ??
|
|
997
|
+
gestureDirection: r?.gestureDirection ?? _.gestureDirection,
|
|
998
|
+
gestureAreaWidth: r?.gestureAreaWidth ?? _.gestureAreaWidth,
|
|
999
|
+
gestureMinFlingVelocity: r?.gestureMinFlingVelocity ?? _.gestureMinFlingVelocity,
|
|
1000
|
+
gestureHysteresis: r?.gestureHysteresis ?? _.gestureHysteresis,
|
|
1001
|
+
gestureDisabled: r?.gestureDisabled ?? _.gestureDisabled,
|
|
982
1002
|
documentTitle: r?.title
|
|
983
1003
|
};
|
|
984
1004
|
}
|
|
@@ -1050,7 +1070,7 @@ class Qe extends vt {
|
|
|
1050
1070
|
s = this.ref.current.clientHeight, i = 0;
|
|
1051
1071
|
break;
|
|
1052
1072
|
}
|
|
1053
|
-
this.screenTransitionLayer.current.animation.timeline = new
|
|
1073
|
+
this.screenTransitionLayer.current.animation.timeline = new Lt(
|
|
1054
1074
|
{
|
|
1055
1075
|
source: this.ref.current,
|
|
1056
1076
|
type: "swipe",
|
|
@@ -1357,7 +1377,7 @@ class Qe extends vt {
|
|
|
1357
1377
|
}
|
|
1358
1378
|
}
|
|
1359
1379
|
}
|
|
1360
|
-
function
|
|
1380
|
+
function Le() {
|
|
1361
1381
|
return j("Stack.Navigation"), mt();
|
|
1362
1382
|
}
|
|
1363
1383
|
function tn() {
|
|
@@ -1369,8 +1389,8 @@ function en() {
|
|
|
1369
1389
|
function nn(n, t) {
|
|
1370
1390
|
return j("Stack.Params"), Et(n, t);
|
|
1371
1391
|
}
|
|
1372
|
-
function
|
|
1373
|
-
const t =
|
|
1392
|
+
function _e(n) {
|
|
1393
|
+
const t = Le();
|
|
1374
1394
|
return n ?? t;
|
|
1375
1395
|
}
|
|
1376
1396
|
function Te(n, t = {}) {
|
|
@@ -1382,7 +1402,7 @@ function Te(n, t = {}) {
|
|
|
1382
1402
|
},
|
|
1383
1403
|
[n]
|
|
1384
1404
|
);
|
|
1385
|
-
return
|
|
1405
|
+
return C(() => {
|
|
1386
1406
|
const s = new IntersectionObserver(r, t), i = e.current;
|
|
1387
1407
|
return i && s.observe(i), () => {
|
|
1388
1408
|
i && s.unobserve(i);
|
|
@@ -1390,7 +1410,7 @@ function Te(n, t = {}) {
|
|
|
1390
1410
|
}, [r, t]), e;
|
|
1391
1411
|
}
|
|
1392
1412
|
function ct(n, t, e, r) {
|
|
1393
|
-
|
|
1413
|
+
C(() => {
|
|
1394
1414
|
const s = n.current;
|
|
1395
1415
|
if (s)
|
|
1396
1416
|
return s.addEventListener(t, e, r), () => {
|
|
@@ -1419,7 +1439,7 @@ function rn({
|
|
|
1419
1439
|
children: l,
|
|
1420
1440
|
...f
|
|
1421
1441
|
}) {
|
|
1422
|
-
const d =
|
|
1442
|
+
const d = _e(i), P = c?.type === "onsight", w = c?.type === "onhover", v = c?.type === "force", p = Te(
|
|
1423
1443
|
(S) => {
|
|
1424
1444
|
!S.isIntersecting || !n || d.preload(s, { params: e });
|
|
1425
1445
|
},
|
|
@@ -1430,16 +1450,16 @@ function rn({
|
|
|
1430
1450
|
},
|
|
1431
1451
|
w ? c : {}
|
|
1432
1452
|
);
|
|
1433
|
-
|
|
1453
|
+
C(() => {
|
|
1434
1454
|
!n || !v || d.preload(s, { params: e });
|
|
1435
1455
|
}, [n, s, d, v, e]);
|
|
1436
1456
|
const [u, a] = St(void 0), h = d?.routerId, E = !u?.includes(window.location.origin) ? "noopener noreferrer" : t ? "prev" : "next";
|
|
1437
|
-
|
|
1457
|
+
C(() => {
|
|
1438
1458
|
if (t && d.canGoBack())
|
|
1439
1459
|
a(d.previous.url?.href);
|
|
1440
1460
|
else if (s) {
|
|
1441
|
-
const S = ge(e),
|
|
1442
|
-
|
|
1461
|
+
const S = ge(e), X = new URL(s, d.baseURL);
|
|
1462
|
+
X.search = S, a(X.href);
|
|
1443
1463
|
}
|
|
1444
1464
|
}, [s, e, d, t]);
|
|
1445
1465
|
const b = (S) => {
|
|
@@ -1532,7 +1552,7 @@ const sn = [
|
|
|
1532
1552
|
{
|
|
1533
1553
|
transform: "translateY(0vh)"
|
|
1534
1554
|
}
|
|
1535
|
-
],
|
|
1555
|
+
], Oe = [
|
|
1536
1556
|
{
|
|
1537
1557
|
transform: "translateY(100vh)"
|
|
1538
1558
|
},
|
|
@@ -1592,7 +1612,7 @@ const sn = [
|
|
|
1592
1612
|
{
|
|
1593
1613
|
opacity: 0
|
|
1594
1614
|
}
|
|
1595
|
-
],
|
|
1615
|
+
], De = [
|
|
1596
1616
|
{
|
|
1597
1617
|
opacity: 0,
|
|
1598
1618
|
transform: "translateY(calc(100vh * 0.08))"
|
|
@@ -1641,7 +1661,7 @@ const sn = [
|
|
|
1641
1661
|
{
|
|
1642
1662
|
transform: "translateY(-2vh)"
|
|
1643
1663
|
}
|
|
1644
|
-
],
|
|
1664
|
+
], Ce = [
|
|
1645
1665
|
{
|
|
1646
1666
|
transform: "scale(0.85)",
|
|
1647
1667
|
opacity: 0
|
|
@@ -1658,7 +1678,7 @@ const sn = [
|
|
|
1658
1678
|
transform: "scale(1)",
|
|
1659
1679
|
opacity: 1
|
|
1660
1680
|
}
|
|
1661
|
-
],
|
|
1681
|
+
], Xe = [
|
|
1662
1682
|
{
|
|
1663
1683
|
transform: "scale(1)",
|
|
1664
1684
|
opacity: 1
|
|
@@ -1685,14 +1705,14 @@ const sn = [
|
|
|
1685
1705
|
opacity: 1
|
|
1686
1706
|
}
|
|
1687
1707
|
];
|
|
1688
|
-
function
|
|
1708
|
+
function Ue(n) {
|
|
1689
1709
|
return (t) => 1 - n(1 - t);
|
|
1690
1710
|
}
|
|
1691
|
-
function
|
|
1711
|
+
function He(n) {
|
|
1692
1712
|
return (t) => Math.pow(t, n);
|
|
1693
1713
|
}
|
|
1694
1714
|
const tt = {
|
|
1695
|
-
...
|
|
1715
|
+
..._t({
|
|
1696
1716
|
mass: 3,
|
|
1697
1717
|
stiffness: 1e3,
|
|
1698
1718
|
damping: 500,
|
|
@@ -1701,7 +1721,7 @@ const tt = {
|
|
|
1701
1721
|
})
|
|
1702
1722
|
}, lt = {
|
|
1703
1723
|
duration: 350,
|
|
1704
|
-
easing: A(He(
|
|
1724
|
+
easing: A(Ue(He(5)))
|
|
1705
1725
|
}, Ne = {
|
|
1706
1726
|
duration: 150,
|
|
1707
1727
|
easing: "linear"
|
|
@@ -1743,7 +1763,7 @@ function yn({ ref: n, direction: t, playbackRate: e, index: r }) {
|
|
|
1743
1763
|
return t === "reverse" && (i = i.toReversed()), new KeyframeEffect(n, i, o);
|
|
1744
1764
|
}
|
|
1745
1765
|
function wn({ ref: n, direction: t, playbackRate: e }) {
|
|
1746
|
-
let r =
|
|
1766
|
+
let r = Oe;
|
|
1747
1767
|
const s = {
|
|
1748
1768
|
playbackRate: e,
|
|
1749
1769
|
fill: "forwards",
|
|
@@ -1752,7 +1772,7 @@ function wn({ ref: n, direction: t, playbackRate: e }) {
|
|
|
1752
1772
|
return t === "reverse" && (r = r.toReversed()), new KeyframeEffect(n, r, s);
|
|
1753
1773
|
}
|
|
1754
1774
|
function En({ ref: n, direction: t, playbackRate: e }) {
|
|
1755
|
-
let r =
|
|
1775
|
+
let r = De;
|
|
1756
1776
|
const s = {
|
|
1757
1777
|
playbackRate: e,
|
|
1758
1778
|
fill: "forwards",
|
|
@@ -1797,10 +1817,10 @@ function bn({ ref: n, direction: t, index: e, playbackRate: r }) {
|
|
|
1797
1817
|
};
|
|
1798
1818
|
return t === "reverse" && (o = o.toReversed()), new KeyframeEffect(n, o, c);
|
|
1799
1819
|
}
|
|
1800
|
-
function
|
|
1820
|
+
function Ln({ ref: n, direction: t, index: e, playbackRate: r }) {
|
|
1801
1821
|
const i = [
|
|
1802
|
-
|
|
1803
|
-
|
|
1822
|
+
Xe,
|
|
1823
|
+
Ce
|
|
1804
1824
|
][e], o = {
|
|
1805
1825
|
direction: t,
|
|
1806
1826
|
playbackRate: r,
|
|
@@ -1809,9 +1829,9 @@ function _n({ ref: n, direction: t, index: e, playbackRate: r }) {
|
|
|
1809
1829
|
};
|
|
1810
1830
|
return new KeyframeEffect(n, i, o);
|
|
1811
1831
|
}
|
|
1812
|
-
function
|
|
1832
|
+
function _n({ disabled: n, children: t, ...e }) {
|
|
1813
1833
|
const r = $(null);
|
|
1814
|
-
return
|
|
1834
|
+
return C(() => {
|
|
1815
1835
|
if (n)
|
|
1816
1836
|
return;
|
|
1817
1837
|
const s = (i) => {
|
|
@@ -1836,7 +1856,7 @@ export {
|
|
|
1836
1856
|
rn as Anchor,
|
|
1837
1857
|
gn as FadeInKeyframes,
|
|
1838
1858
|
pn as FadeOutKeyframes,
|
|
1839
|
-
|
|
1859
|
+
_n as GestureRegion,
|
|
1840
1860
|
de as HistoryEntry,
|
|
1841
1861
|
fe as Navigation,
|
|
1842
1862
|
Qe as Router,
|
|
@@ -1855,7 +1875,7 @@ export {
|
|
|
1855
1875
|
We as androidBottomSheetSlideOutOptions,
|
|
1856
1876
|
Ye as androidConcealToBottomKeyframes,
|
|
1857
1877
|
En as androidFadeInFromBottom,
|
|
1858
|
-
|
|
1878
|
+
De as androidFadeInFromBottomKeyframes,
|
|
1859
1879
|
lt as androidFadeInFromBottomOptions,
|
|
1860
1880
|
Pn as androidFadeInFromBottomSheet,
|
|
1861
1881
|
je as androidFadeInFromBottomSheetKeyframes,
|
|
@@ -1866,20 +1886,20 @@ export {
|
|
|
1866
1886
|
Sn as androidRevealFromBottom,
|
|
1867
1887
|
Be as androidRevealFromBottomKeyframes,
|
|
1868
1888
|
Ve as androidRevealFromBottomOptions,
|
|
1869
|
-
|
|
1870
|
-
|
|
1889
|
+
Ln as androidScaleFromCentre,
|
|
1890
|
+
Ce as androidScaleFromCentreKeyframes,
|
|
1871
1891
|
$e as androidScaleFromCentreOptions,
|
|
1872
|
-
|
|
1892
|
+
Xe as androidScaleToCentreKeyframes,
|
|
1873
1893
|
tt as iOSKeyframeOptions,
|
|
1874
1894
|
wn as iOSSlideInFromBottom,
|
|
1875
|
-
|
|
1895
|
+
Oe as iOSSlideInFromBottomKeyframes,
|
|
1876
1896
|
yn as iOSSlideInFromLeft,
|
|
1877
1897
|
xe as iOSSlideInFromLeftKeyframes,
|
|
1878
1898
|
mn as iOSSlideInFromRight,
|
|
1879
1899
|
ke as iOSSlideInFromRightKeyframes,
|
|
1880
1900
|
Ie as iOSSlideOutToLeftKeyframes,
|
|
1881
1901
|
Fe as iOSSlideOutToRightKeyframes,
|
|
1882
|
-
|
|
1902
|
+
Le as useNavigation,
|
|
1883
1903
|
nn as useParams,
|
|
1884
1904
|
en as useRoute,
|
|
1885
1905
|
tn as useRouter
|