@react-navigation/stack 8.0.0-alpha.6 → 8.0.0-alpha.60

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 (147) hide show
  1. package/lib/module/TransitionConfigs/CardStyleInterpolators.js +280 -84
  2. package/lib/module/TransitionConfigs/CardStyleInterpolators.js.map +1 -1
  3. package/lib/module/TransitionConfigs/HeaderStyleInterpolators.js +11 -44
  4. package/lib/module/TransitionConfigs/HeaderStyleInterpolators.js.map +1 -1
  5. package/lib/module/TransitionConfigs/TransitionEasings.js +71 -0
  6. package/lib/module/TransitionConfigs/TransitionEasings.js.map +1 -0
  7. package/lib/module/TransitionConfigs/TransitionPresets.js +50 -10
  8. package/lib/module/TransitionConfigs/TransitionPresets.js.map +1 -1
  9. package/lib/module/TransitionConfigs/TransitionSpecs.js +69 -34
  10. package/lib/module/TransitionConfigs/TransitionSpecs.js.map +1 -1
  11. package/lib/module/index.js +2 -2
  12. package/lib/module/index.js.map +1 -1
  13. package/lib/module/navigators/createStackNavigator.js +37 -33
  14. package/lib/module/navigators/createStackNavigator.js.map +1 -1
  15. package/lib/module/utils/GestureHandlerContext.js +5 -0
  16. package/lib/module/utils/GestureHandlerContext.js.map +1 -0
  17. package/lib/module/utils/gestureActivationCriteria.js +10 -8
  18. package/lib/module/utils/gestureActivationCriteria.js.map +1 -1
  19. package/lib/module/utils/useCardAnimation.js +1 -1
  20. package/lib/module/utils/useCardAnimation.js.map +1 -1
  21. package/lib/module/utils/useGestureHandler.js +9 -0
  22. package/lib/module/utils/useGestureHandler.js.map +1 -0
  23. package/lib/module/utils/useKeyboardManager.js +71 -26
  24. package/lib/module/utils/useKeyboardManager.js.map +1 -1
  25. package/lib/module/views/GestureHandler.js +15 -14
  26. package/lib/module/views/GestureHandler.js.map +1 -1
  27. package/lib/module/views/GestureHandlerNative.js +16 -10
  28. package/lib/module/views/GestureHandlerNative.js.map +1 -1
  29. package/lib/module/views/Header/Header.js +4 -2
  30. package/lib/module/views/Header/Header.js.map +1 -1
  31. package/lib/module/views/Header/HeaderContainer.js +60 -21
  32. package/lib/module/views/Header/HeaderContainer.js.map +1 -1
  33. package/lib/module/views/Header/HeaderSegment.js +6 -9
  34. package/lib/module/views/Header/HeaderSegment.js.map +1 -1
  35. package/lib/module/views/Stack/Card.js +170 -123
  36. package/lib/module/views/Stack/Card.js.map +1 -1
  37. package/lib/module/views/Stack/CardContainer.js +96 -98
  38. package/lib/module/views/Stack/CardContainer.js.map +1 -1
  39. package/lib/module/views/Stack/CardContent.js +10 -37
  40. package/lib/module/views/Stack/CardContent.js.map +1 -1
  41. package/lib/module/views/Stack/CardStack.js +211 -147
  42. package/lib/module/views/Stack/CardStack.js.map +1 -1
  43. package/lib/module/views/Stack/StackView.js +106 -57
  44. package/lib/module/views/Stack/StackView.js.map +1 -1
  45. package/lib/typescript/src/TransitionConfigs/CardStyleInterpolators.d.ts +20 -12
  46. package/lib/typescript/src/TransitionConfigs/CardStyleInterpolators.d.ts.map +1 -1
  47. package/lib/typescript/src/TransitionConfigs/HeaderStyleInterpolators.d.ts +4 -4
  48. package/lib/typescript/src/TransitionConfigs/HeaderStyleInterpolators.d.ts.map +1 -1
  49. package/lib/typescript/src/TransitionConfigs/TransitionEasings.d.ts +38 -0
  50. package/lib/typescript/src/TransitionConfigs/TransitionEasings.d.ts.map +1 -0
  51. package/lib/typescript/src/TransitionConfigs/TransitionPresets.d.ts +15 -3
  52. package/lib/typescript/src/TransitionConfigs/TransitionPresets.d.ts.map +1 -1
  53. package/lib/typescript/src/TransitionConfigs/TransitionSpecs.d.ts +44 -15
  54. package/lib/typescript/src/TransitionConfigs/TransitionSpecs.d.ts.map +1 -1
  55. package/lib/typescript/src/index.d.ts +12 -12
  56. package/lib/typescript/src/index.d.ts.map +1 -1
  57. package/lib/typescript/src/navigators/createStackNavigator.d.ts +10 -15
  58. package/lib/typescript/src/navigators/createStackNavigator.d.ts.map +1 -1
  59. package/lib/typescript/src/types.d.ts +120 -108
  60. package/lib/typescript/src/types.d.ts.map +1 -1
  61. package/lib/typescript/src/utils/CardAnimationContext.d.ts +1 -1
  62. package/lib/typescript/src/utils/CardAnimationContext.d.ts.map +1 -1
  63. package/lib/typescript/src/utils/GestureHandlerContext.d.ts +3 -0
  64. package/lib/typescript/src/utils/GestureHandlerContext.d.ts.map +1 -0
  65. package/lib/typescript/src/utils/gestureActivationCriteria.d.ts +4 -51
  66. package/lib/typescript/src/utils/gestureActivationCriteria.d.ts.map +1 -1
  67. package/lib/typescript/src/utils/getDistanceForDirection.d.ts +1 -1
  68. package/lib/typescript/src/utils/getDistanceForDirection.d.ts.map +1 -1
  69. package/lib/typescript/src/utils/getInvertedMultiplier.d.ts +1 -1
  70. package/lib/typescript/src/utils/getInvertedMultiplier.d.ts.map +1 -1
  71. package/lib/typescript/src/utils/getModalRoutesKeys.d.ts +1 -1
  72. package/lib/typescript/src/utils/getModalRoutesKeys.d.ts.map +1 -1
  73. package/lib/typescript/src/utils/getShadowStyle.d.ts +5 -5
  74. package/lib/typescript/src/utils/useCardAnimation.d.ts +1 -1
  75. package/lib/typescript/src/utils/useCardAnimation.d.ts.map +1 -1
  76. package/lib/typescript/src/utils/useGestureHandler.d.ts +2 -0
  77. package/lib/typescript/src/utils/useGestureHandler.d.ts.map +1 -0
  78. package/lib/typescript/src/utils/useKeyboardManager.d.ts +12 -2
  79. package/lib/typescript/src/utils/useKeyboardManager.d.ts.map +1 -1
  80. package/lib/typescript/src/views/GestureHandler.android.d.ts +1 -1
  81. package/lib/typescript/src/views/GestureHandler.android.d.ts.map +1 -1
  82. package/lib/typescript/src/views/GestureHandler.d.ts +7 -11
  83. package/lib/typescript/src/views/GestureHandler.d.ts.map +1 -1
  84. package/lib/typescript/src/views/GestureHandler.ios.d.ts +1 -1
  85. package/lib/typescript/src/views/GestureHandler.ios.d.ts.map +1 -1
  86. package/lib/typescript/src/views/GestureHandlerNative.d.ts +9 -4
  87. package/lib/typescript/src/views/GestureHandlerNative.d.ts.map +1 -1
  88. package/lib/typescript/src/views/Header/Header.d.ts +2 -2
  89. package/lib/typescript/src/views/Header/Header.d.ts.map +1 -1
  90. package/lib/typescript/src/views/Header/HeaderContainer.d.ts +9 -3
  91. package/lib/typescript/src/views/Header/HeaderContainer.d.ts.map +1 -1
  92. package/lib/typescript/src/views/Header/HeaderSegment.d.ts +6 -4
  93. package/lib/typescript/src/views/Header/HeaderSegment.d.ts.map +1 -1
  94. package/lib/typescript/src/views/Stack/Card.d.ts +14 -8
  95. package/lib/typescript/src/views/Stack/Card.d.ts.map +1 -1
  96. package/lib/typescript/src/views/Stack/CardContainer.d.ts +7 -7
  97. package/lib/typescript/src/views/Stack/CardContainer.d.ts.map +1 -1
  98. package/lib/typescript/src/views/Stack/CardContent.d.ts +1 -1
  99. package/lib/typescript/src/views/Stack/CardContent.d.ts.map +1 -1
  100. package/lib/typescript/src/views/Stack/CardStack.d.ts +10 -6
  101. package/lib/typescript/src/views/Stack/CardStack.d.ts.map +1 -1
  102. package/lib/typescript/src/views/Stack/StackView.d.ts +14 -17
  103. package/lib/typescript/src/views/Stack/StackView.d.ts.map +1 -1
  104. package/package.json +23 -24
  105. package/src/TransitionConfigs/CardStyleInterpolators.tsx +399 -100
  106. package/src/TransitionConfigs/HeaderStyleInterpolators.tsx +15 -46
  107. package/src/TransitionConfigs/TransitionEasings.tsx +90 -0
  108. package/src/TransitionConfigs/TransitionPresets.tsx +56 -10
  109. package/src/TransitionConfigs/TransitionSpecs.tsx +68 -34
  110. package/src/index.tsx +3 -2
  111. package/src/navigators/createStackNavigator.tsx +74 -91
  112. package/src/types.tsx +149 -123
  113. package/src/utils/GestureHandlerContext.tsx +5 -0
  114. package/src/utils/gestureActivationCriteria.tsx +14 -10
  115. package/src/utils/useCardAnimation.tsx +1 -1
  116. package/src/utils/useGestureHandler.tsx +9 -0
  117. package/src/utils/useKeyboardManager.tsx +96 -33
  118. package/src/views/GestureHandler.tsx +24 -16
  119. package/src/views/GestureHandlerNative.tsx +24 -13
  120. package/src/views/Header/Header.tsx +4 -2
  121. package/src/views/Header/HeaderContainer.tsx +79 -37
  122. package/src/views/Header/HeaderSegment.tsx +10 -11
  123. package/src/views/Stack/Card.tsx +241 -154
  124. package/src/views/Stack/CardContainer.tsx +111 -127
  125. package/src/views/Stack/CardContent.tsx +13 -51
  126. package/src/views/Stack/CardStack.tsx +478 -335
  127. package/src/views/Stack/StackView.tsx +181 -82
  128. package/lib/module/utils/GestureHandlerRefContext.js +0 -5
  129. package/lib/module/utils/GestureHandlerRefContext.js.map +0 -1
  130. package/lib/module/utils/findLastIndex.js +0 -11
  131. package/lib/module/utils/findLastIndex.js.map +0 -1
  132. package/lib/module/utils/useGestureHandlerRef.js +0 -12
  133. package/lib/module/utils/useGestureHandlerRef.js.map +0 -1
  134. package/lib/module/views/Stack/CardA11yWrapper.js +0 -43
  135. package/lib/module/views/Stack/CardA11yWrapper.js.map +0 -1
  136. package/lib/typescript/src/utils/GestureHandlerRefContext.d.ts +0 -3
  137. package/lib/typescript/src/utils/GestureHandlerRefContext.d.ts.map +0 -1
  138. package/lib/typescript/src/utils/findLastIndex.d.ts +0 -2
  139. package/lib/typescript/src/utils/findLastIndex.d.ts.map +0 -1
  140. package/lib/typescript/src/utils/useGestureHandlerRef.d.ts +0 -3
  141. package/lib/typescript/src/utils/useGestureHandlerRef.d.ts.map +0 -1
  142. package/lib/typescript/src/views/Stack/CardA11yWrapper.d.ts +0 -15
  143. package/lib/typescript/src/views/Stack/CardA11yWrapper.d.ts.map +0 -1
  144. package/src/utils/GestureHandlerRefContext.tsx +0 -5
  145. package/src/utils/findLastIndex.tsx +0 -9
  146. package/src/utils/useGestureHandlerRef.tsx +0 -15
  147. package/src/views/Stack/CardA11yWrapper.tsx +0 -67
@@ -1,4 +1,4 @@
1
- import type { TransitionPreset } from '../types';
1
+ import type { TransitionPreset } from '../types.js';
2
2
  /**
3
3
  * Standard iOS navigation transition.
4
4
  */
@@ -15,6 +15,10 @@ export declare const ModalPresentationIOS: TransitionPreset;
15
15
  * Standard Android navigation transition when opening or closing an Activity on Android < 9 (Oreo).
16
16
  */
17
17
  export declare const FadeFromBottomAndroid: TransitionPreset;
18
+ /**
19
+ * Standard Android dialog transition.
20
+ */
21
+ export declare const DialogAndroid: TransitionPreset;
18
22
  /**
19
23
  * Standard Android navigation transition when opening or closing an Activity on Android 9 (Pie).
20
24
  */
@@ -24,17 +28,25 @@ export declare const RevealFromBottomAndroid: TransitionPreset;
24
28
  */
25
29
  export declare const ScaleFromCenterAndroid: TransitionPreset;
26
30
  /**
27
- * Standard Android navigation transition when opening or closing an Activity on Android 14.
31
+ * Standard Android navigation transition when opening or closing an Activity on Android 14 and later.
28
32
  */
29
33
  export declare const FadeFromRightAndroid: TransitionPreset;
30
34
  /**
31
- * Standard bottom sheet slide transition for Android 10.
35
+ * Standard Material 3 bottom sheet transition.
32
36
  */
33
37
  export declare const BottomSheetAndroid: TransitionPreset;
34
38
  /**
35
39
  * Fade transition for transparent modals.
36
40
  */
37
41
  export declare const ModalFadeTransition: TransitionPreset;
42
+ /**
43
+ * Standard iOS horizontal flip transition.
44
+ */
45
+ export declare const ModalFlipIOS: TransitionPreset;
46
+ /**
47
+ * Standard iOS cross-dissolve transition.
48
+ */
49
+ export declare const CrossDissolveIOS: TransitionPreset;
38
50
  /**
39
51
  * Default navigation transition for the current platform.
40
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TransitionPresets.d.ts","sourceRoot":"","sources":["../../../../src/TransitionConfigs/TransitionPresets.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA4BjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBAQ/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAQrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAQlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,gBAQnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAQrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAQpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAQlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,gBAQhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBAQjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,kBAW5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,kBAG1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAG9B,CAAC"}
1
+ {"version":3,"file":"TransitionPresets.d.ts","sourceRoot":"","sources":["../../../../src/TransitionConfigs/TransitionPresets.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAkCjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBAQ/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAQrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAQlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,gBAQnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,gBAQ3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAQrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAQpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAQlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,gBAQhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBAQjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,gBAQ1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAQ9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,kBAW5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,kBAG1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAI9B,CAAC"}
@@ -1,46 +1,75 @@
1
- import type { TransitionSpec } from '../types';
1
+ import type { TransitionSpec } from '../types.js';
2
2
  /**
3
- * Exact values from UINavigationController's animation configuration.
3
+ * Approximation of the standard iOS navigation transition.
4
4
  */
5
5
  export declare const TransitionIOSSpec: TransitionSpec;
6
+ /**
7
+ * Configuration for the standard iOS horizontal flip transition.
8
+ */
9
+ export declare const FlipIOSSpec: TransitionSpec;
6
10
  /**
7
11
  * Configuration for activity open animation from Android Nougat.
8
- * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml
12
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-7.1.2_r37/core/res/res/anim/activity_open_enter.xml
13
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-7.1.2_r37/core/res/res/anim/activity_open_exit.xml
9
14
  */
10
15
  export declare const FadeInFromBottomAndroidSpec: TransitionSpec;
11
16
  /**
12
17
  * Configuration for activity close animation from Android Nougat.
13
- * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_close_exit.xml
18
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-7.1.2_r37/core/res/res/anim/activity_close_enter.xml
19
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-7.1.2_r37/core/res/res/anim/activity_close_exit.xml
14
20
  */
15
21
  export declare const FadeOutToBottomAndroidSpec: TransitionSpec;
16
22
  /**
17
- * Approximate configuration for activity open animation from Android Pie.
18
- * See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml
23
+ * Configuration for the standard Android dialog transition.
24
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/core/res/res/anim/dialog_enter.xml
25
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/core/res/res/anim/dialog_exit.xml
26
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/core/res/res/values/config.xml
27
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/core/res/res/values/themes_material.xml
28
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/services/core/java/com/android/server/wm/DimmerAnimationHelper.java
29
+ */
30
+ export declare const DialogAndroidSpec: TransitionSpec;
31
+ /**
32
+ * Configuration for activity open animation from Android Pie.
33
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-9.0.0_r47/core/res/res/anim/activity_open_enter.xml
34
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-9.0.0_r47/core/res/res/anim/activity_open_exit.xml
35
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-9.0.0_r47/core/res/res/anim/activity_close_enter.xml
36
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-9.0.0_r47/core/res/res/anim/activity_close_exit.xml
19
37
  */
20
38
  export declare const RevealFromBottomAndroidSpec: TransitionSpec;
21
39
  /**
22
- * Approximate configuration for activity open animation from Android Q.
23
- * See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml
40
+ * Configuration for activity open animation from Android Q.
41
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_r2/core/res/res/anim/activity_open_enter.xml
42
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_r2/core/res/res/anim/activity_open_exit.xml
43
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_r2/core/res/res/anim/activity_close_enter.xml
44
+ * See https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_r2/core/res/res/anim/activity_close_exit.xml
24
45
  */
25
46
  export declare const ScaleFromCenterAndroidSpec: TransitionSpec;
26
47
  /**
27
- * Approximate configuration for activity open animation from Android 14.
48
+ * Configuration for activity open animation from Android 14 and later.
28
49
  * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/anim/activity_open_enter.xml
50
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/anim/activity_open_exit.xml
29
51
  */
30
52
  export declare const FadeInFromRightAndroidSpec: TransitionSpec;
31
53
  /**
32
- * Approximate configuration for activity close animation from Android 14.
54
+ * Configuration for activity close animation from Android 14 and later.
55
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/anim/activity_close_enter.xml
33
56
  * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/anim/activity_close_exit.xml
34
57
  */
35
- export declare const FadeOutToLeftAndroidSpec: TransitionSpec;
58
+ export declare const FadeOutToRightAndroidSpec: TransitionSpec;
36
59
  /**
37
- * Configuration for bottom sheet slide in animation from Material Design.
38
- * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml
60
+ * Configuration for bottom sheet slide in animation from Material 3.
61
+ * See https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/bottomsheet/res/anim/m3_bottom_sheet_slide_in.xml
62
+ * See https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/motion/res/values/tokens.xml
63
+ * See https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/dialog/res/values/tokens.xml
64
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/services/core/java/com/android/server/wm/DimmerAnimationHelper.java
39
65
  */
40
66
  export declare const BottomSheetSlideInSpec: TransitionSpec;
41
67
  /**
42
- * Configuration for bottom sheet slide out animation from Material Design.
43
- * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml
68
+ * Configuration for bottom sheet slide out animation from Material 3.
69
+ * See https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/bottomsheet/res/anim/m3_bottom_sheet_slide_out.xml
70
+ * See https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/motion/res/values/tokens.xml
71
+ * See https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/dialog/res/values/tokens.xml
72
+ * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/services/core/java/com/android/server/wm/DimmerAnimationHelper.java
44
73
  */
45
74
  export declare const BottomSheetSlideOutSpec: TransitionSpec;
46
75
  //# sourceMappingURL=TransitionSpecs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransitionSpecs.d.ts","sourceRoot":"","sources":["../../../../src/TransitionConfigs/TransitionSpecs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,cAU/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAMzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAMxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAQzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAQxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAQxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,cAQtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,cAOpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAOrC,CAAC"}
1
+ {"version":3,"file":"TransitionSpecs.d.ts","sourceRoot":"","sources":["../../../../src/TransitionConfigs/TransitionSpecs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAU,CAAC;AAG/C;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,cAU/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,cAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAMzC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAMxC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,cAM/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAMzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAMxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAMxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,cAMvC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,cAMpC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAMrC,CAAC"}
@@ -1,16 +1,16 @@
1
- import * as CardStyleInterpolators from './TransitionConfigs/CardStyleInterpolators';
2
- import * as HeaderStyleInterpolators from './TransitionConfigs/HeaderStyleInterpolators';
3
- import * as TransitionPresets from './TransitionConfigs/TransitionPresets';
4
- import * as TransitionSpecs from './TransitionConfigs/TransitionSpecs';
1
+ import * as CardStyleInterpolators from './TransitionConfigs/CardStyleInterpolators.js';
2
+ import * as HeaderStyleInterpolators from './TransitionConfigs/HeaderStyleInterpolators.js';
3
+ import * as TransitionPresets from './TransitionConfigs/TransitionPresets.js';
4
+ import * as TransitionSpecs from './TransitionConfigs/TransitionSpecs.js';
5
5
  /**
6
6
  * Navigators
7
7
  */
8
- export { createStackNavigator, createStackScreen, } from './navigators/createStackNavigator';
8
+ export { createStackNavigator, createStackScreen, type StackTypeBag, } from './navigators/createStackNavigator.js';
9
9
  /**
10
10
  * Views
11
11
  */
12
- export { Header } from './views/Header/Header';
13
- export { StackView } from './views/Stack/StackView';
12
+ export { Header } from './views/Header/Header.js';
13
+ export { StackView } from './views/Stack/StackView.js';
14
14
  /**
15
15
  * Transition presets
16
16
  */
@@ -18,12 +18,12 @@ export { CardStyleInterpolators, HeaderStyleInterpolators, TransitionPresets, Tr
18
18
  /**
19
19
  * Utilities
20
20
  */
21
- export { CardAnimationContext } from './utils/CardAnimationContext';
22
- export { GestureHandlerRefContext } from './utils/GestureHandlerRefContext';
23
- export { useCardAnimation } from './utils/useCardAnimation';
24
- export { useGestureHandlerRef } from './utils/useGestureHandlerRef';
21
+ export { CardAnimationContext } from './utils/CardAnimationContext.js';
22
+ export { GestureHandlerContext } from './utils/GestureHandlerContext.js';
23
+ export { useCardAnimation } from './utils/useCardAnimation.js';
24
+ export { useGestureHandler } from './utils/useGestureHandler.js';
25
25
  /**
26
26
  * Types
27
27
  */
28
- export type { StackAnimationName, StackCardInterpolatedStyle, StackCardInterpolationProps, StackCardStyleInterpolator, StackHeaderInterpolatedStyle, StackHeaderInterpolationProps, StackHeaderLeftProps, StackHeaderProps, StackHeaderRightProps, StackHeaderStyleInterpolator, StackNavigationEventMap, StackNavigationOptions, StackNavigationProp, StackNavigatorProps, StackOptionsArgs, StackScreenProps, TransitionPreset, } from './types';
28
+ export type { StackAnimationName, StackCardInterpolatedStyle, StackCardInterpolationProps, StackCardStyleInterpolator, StackHeaderInterpolatedStyle, StackHeaderInterpolationProps, StackHeaderLeftProps, StackHeaderProps, StackHeaderRightProps, StackHeaderStyleInterpolator, StackNavigationEventMap, StackNavigationOptions, StackNavigationProp, StackNavigatorProps, StackOptionsArgs, StackScreenProps, TransitionPreset, } from './types.js';
29
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,sBAAsB,MAAM,4CAA4C,CAAC;AACrF,OAAO,KAAK,wBAAwB,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,iBAAiB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AAEvE;;GAEG;AACH,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE;;GAEG;AACH,YAAY,EACV,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,sBAAsB,MAAM,+CAA4C,CAAC;AACrF,OAAO,KAAK,wBAAwB,MAAM,iDAA8C,CAAC;AACzF,OAAO,KAAK,iBAAiB,MAAM,0CAAuC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,wCAAqC,CAAC;AAEvE;;GAEG;AACH,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,KAAK,YAAY,GAClB,MAAM,sCAAmC,CAAC;AAE3C;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,0BAAuB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,4BAAyB,CAAC;AAEpD;;GAEG;AACH,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAA8B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAA+B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA0B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA2B,CAAC;AAE9D;;GAEG;AACH,YAAY,EACV,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,YAAS,CAAC"}
@@ -1,20 +1,15 @@
1
- import { type ParamListBase, type StackNavigationState, type StaticConfig, type StaticParamList, type StaticScreenConfig, type StaticScreenConfigLinking, type StaticScreenConfigScreen, type TypedNavigator } from '@react-navigation/native';
2
- import type { StackNavigationEventMap, StackNavigationOptions, StackNavigationProp, StackNavigatorProps } from '../types';
3
- declare function StackNavigator({ initialRouteName, routeNamesChangeBehavior, children, layout, screenListeners, screenOptions, screenLayout, router, ...rest }: StackNavigatorProps): import("react/jsx-runtime").JSX.Element;
4
- type StackTypeBag<ParamList extends {}> = {
5
- ParamList: ParamList;
6
- State: StackNavigationState<ParamList>;
1
+ import { type NavigatorTypeBagBase, type ParamListBase, type StackActionHelpers, type StackNavigationState } from '@react-navigation/native';
2
+ import * as React from 'react';
3
+ import type { StackNavigationEventMap, StackNavigationOptions, StackNavigatorProps } from '../types.js';
4
+ declare function StackNavigator({ initialRouteName, routeNamesChangeBehavior, children, layout, screenListeners, screenOptions, screenLayout, router, ...rest }: StackNavigatorProps): React.JSX.Element;
5
+ export interface StackTypeBag extends NavigatorTypeBagBase {
6
+ State: StackNavigationState<this['ParamList']>;
7
7
  ScreenOptions: StackNavigationOptions;
8
8
  EventMap: StackNavigationEventMap;
9
- NavigationList: {
10
- [RouteName in keyof ParamList]: StackNavigationProp<ParamList, RouteName>;
11
- };
9
+ ActionHelpers: StackActionHelpers<this['ParamList']>;
12
10
  Navigator: typeof StackNavigator;
13
- };
14
- export declare function createStackNavigator<const ParamList extends ParamListBase>(): TypedNavigator<StackTypeBag<ParamList>, undefined>;
15
- export declare function createStackNavigator<const Config extends StaticConfig<StackTypeBag<ParamListBase>>>(config: Config): TypedNavigator<StackTypeBag<StaticParamList<{
16
- config: Config;
17
- }>>, Config>;
18
- export declare function createStackScreen<const Linking extends StaticScreenConfigLinking, const Screen extends StaticScreenConfigScreen>(config: StaticScreenConfig<Linking, Screen, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, StackNavigationProp<ParamListBase>>): StaticScreenConfig<Linking, Screen, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, StackNavigationProp<ParamListBase>>;
11
+ }
12
+ export declare const createStackNavigator: import("@react-navigation/core").TypedNavigatorFactory<StackTypeBag>;
13
+ export declare const createStackScreen: import("@react-navigation/core").StaticScreenFactory<import("@react-navigation/core").NavigatorTypeBagFor<StackTypeBag, ParamListBase>>;
19
14
  export {};
20
15
  //# sourceMappingURL=createStackNavigator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createStackNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAGlB,KAAK,oBAAoB,EAGzB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EAGpB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAGlB,iBAAS,cAAc,CAAC,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,MAAM,EACN,GAAG,IAAI,EACR,EAAE,mBAAmB,2CA0DrB;AAED,KAAK,YAAY,CAAC,SAAS,SAAS,EAAE,IAAI;IACxC,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACvC,aAAa,EAAE,sBAAsB,CAAC;IACtC,QAAQ,EAAE,uBAAuB,CAAC;IAClC,cAAc,EAAE;SACb,SAAS,IAAI,MAAM,SAAS,GAAG,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC;KAC1E,CAAC;IACF,SAAS,EAAE,OAAO,cAAc,CAAC;CAClC,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,KAAK,CAAC,SAAS,SAAS,aAAa,KAClC,cAAc,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;AACxD,wBAAgB,oBAAoB,CAClC,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,EAE9D,MAAM,EAAE,MAAM,GACb,cAAc,CAAC,YAAY,CAAC,eAAe,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAK7E,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,OAAO,SAAS,yBAAyB,EAC/C,KAAK,CAAC,MAAM,SAAS,wBAAwB,EAE7C,MAAM,EAAE,kBAAkB,CACxB,OAAO,EACP,MAAM,EACN,oBAAoB,CAAC,aAAa,CAAC,EACnC,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,CAAC,aAAa,CAAC,CACnC,iKAGF"}
1
+ {"version":3,"file":"createStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createStackNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAK1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,aAAU,CAAC;AASlB,iBAAS,cAAc,CAAC,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,MAAM,EACN,GAAG,IAAI,EACR,EAAE,mBAAmB,qBAkErB;AAED,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACxD,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC/C,aAAa,EAAE,sBAAsB,CAAC;IACtC,QAAQ,EAAE,uBAAuB,CAAC;IAClC,aAAa,EAAE,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACrD,SAAS,EAAE,OAAO,cAAc,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,sEACqB,CAAC;AAEvD,eAAO,MAAM,iBAAiB,yIAAsC,CAAC"}