@react-navigation/elements 3.0.0-alpha.35 → 3.0.0-alpha.37
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/lib/module/Header/HeaderButtonBackground.js +1 -2
- package/lib/module/Header/HeaderButtonBackground.js.map +1 -1
- package/lib/module/LiquidGlassView.ios.js +1 -2
- package/lib/module/LiquidGlassView.ios.js.map +1 -1
- package/lib/module/LiquidGlassView.js +0 -4
- package/lib/module/LiquidGlassView.js.map +1 -1
- package/lib/module/Screen.js.map +1 -1
- package/lib/typescript/src/Badge.d.ts +1 -1
- package/lib/typescript/src/Badge.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderButtonBackground.d.ts.map +1 -1
- package/lib/typescript/src/LiquidGlassView.d.ts +7 -5
- package/lib/typescript/src/LiquidGlassView.d.ts.map +1 -1
- package/lib/typescript/src/LiquidGlassView.ios.d.ts +4 -2
- package/lib/typescript/src/LiquidGlassView.ios.d.ts.map +1 -1
- package/lib/typescript/src/Screen.d.ts +2 -2
- package/lib/typescript/src/Screen.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/Badge.tsx +1 -1
- package/src/Header/HeaderButtonBackground.tsx +1 -4
- package/src/LiquidGlassView.ios.tsx +14 -9
- package/src/LiquidGlassView.tsx +15 -11
- package/src/Screen.tsx +2 -2
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { Animated, StyleSheet } from 'react-native';
|
|
4
|
-
import {
|
|
4
|
+
import { AnimatedLiquidGlassView } from '../LiquidGlassView';
|
|
5
5
|
import { BUTTON_SIZE } from "./HeaderButton.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
const AnimatedLiquidGlassView = Animated.createAnimatedComponent(LiquidGlassView);
|
|
8
7
|
export function HeaderButtonBackground({
|
|
9
8
|
plain,
|
|
10
9
|
style,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Animated","StyleSheet","
|
|
1
|
+
{"version":3,"names":["Animated","StyleSheet","AnimatedLiquidGlassView","BUTTON_SIZE","jsx","_jsx","HeaderButtonBackground","plain","style","rest","View","styles","container","interactive","create","flexDirection","alignItems","minHeight","borderRadius","borderCurve"],"sourceRoot":"../../../src","sources":["Header/HeaderButtonBackground.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEnD,SAASC,uBAAuB,QAAQ,oBAAoB;AAC5D,SAASC,WAAW,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM7C,OAAO,SAASC,sBAAsBA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAE,GAAGC;AAAY,CAAC,EAAE;EACvE,IAAIF,KAAK,EAAE;IACT,oBAAOF,IAAA,CAACL,QAAQ,CAACU,IAAI;MAACF,KAAK,EAAE,CAACG,MAAM,CAACC,SAAS,EAAEJ,KAAK,CAAE;MAAA,GAAKC;IAAI,CAAG,CAAC;EACtE;EAEA,oBACEJ,IAAA,CAACH,uBAAuB;IACtBW,WAAW;IACXL,KAAK,EAAE,CAACG,MAAM,CAACC,SAAS,EAAEJ,KAAK,CAAE;IAAA,GAC7BC;EAAI,CACT,CAAC;AAEN;AAEA,MAAME,MAAM,GAAGV,UAAU,CAACa,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAEd,WAAW;IACtBe,YAAY,EAAEf,WAAW,GAAG,CAAC;IAC7BgB,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -12,9 +12,8 @@ try {
|
|
|
12
12
|
} catch (e) {
|
|
13
13
|
isLiquidGlassSupported = false;
|
|
14
14
|
LiquidGlassView = View;
|
|
15
|
-
|
|
15
|
+
LiquidGlassContainerView = View;
|
|
16
16
|
AnimatedLiquidGlassView = Animated.View;
|
|
17
|
-
// @ts-expect-error: this is fine
|
|
18
17
|
AnimatedLiquidGlassContainerView = Animated.View;
|
|
19
18
|
}
|
|
20
19
|
export { AnimatedLiquidGlassContainerView, AnimatedLiquidGlassView, isLiquidGlassSupported, LiquidGlassContainerView, LiquidGlassView };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Animated","View","isLiquidGlassSupported","LiquidGlassView","LiquidGlassContainerView","AnimatedLiquidGlassView","AnimatedLiquidGlassContainerView","require","createAnimatedComponent","e"],"sourceRoot":"../../src","sources":["LiquidGlassView.ios.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["Animated","View","isLiquidGlassSupported","LiquidGlassView","LiquidGlassContainerView","AnimatedLiquidGlassView","AnimatedLiquidGlassContainerView","require","createAnimatedComponent","e"],"sourceRoot":"../../src","sources":["LiquidGlassView.ios.tsx"],"mappings":";;AAIA,SAASA,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAQ7C,IAAIC,sBAA+B,EACjCC,eAA0D,EAC1DC,wBAA4E,EAC5EC,uBAA0E,EAC1EC,gCAA4F;AAE9F,IAAI;EACF;EACAJ,sBAAsB,GACpBK,OAAO,CAAC,yBAAyB,CAAC,CAACL,sBAAsB;EAC3DC,eAAe,GAAGI,OAAO,CAAC,yBAAyB,CAAC,CAACJ,eAAe;EACpEC,wBAAwB,GACtBG,OAAO,CAAC,yBAAyB,CAAC,CAACH,wBAAwB;EAC7DC,uBAAuB,GAAGL,QAAQ,CAACQ,uBAAuB,CAACL,eAAe,CAAC;EAC3EG,gCAAgC,GAAGN,QAAQ,CAACQ,uBAAuB,CACjEJ,wBACF,CAAC;AACH,CAAC,CAAC,OAAOK,CAAC,EAAE;EACVP,sBAAsB,GAAG,KAAK;EAC9BC,eAAe,GAAGF,IAAI;EACtBG,wBAAwB,GAAGH,IAAI;EAC/BI,uBAAuB,GAAGL,QAAQ,CAACC,IAAI;EACvCK,gCAAgC,GAAGN,QAAQ,CAACC,IAAI;AAClD;AAEA,SACEK,gCAAgC,EAChCD,uBAAuB,EACvBH,sBAAsB,EACtBE,wBAAwB,EACxBD,eAAe","ignoreList":[]}
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
import { Animated, View } from 'react-native';
|
|
4
4
|
export const LiquidGlassView = View;
|
|
5
5
|
export const LiquidGlassContainerView = View;
|
|
6
|
-
|
|
7
|
-
// @ts-expect-error: this is fine
|
|
8
6
|
export const AnimatedLiquidGlassView = Animated.View;
|
|
9
|
-
|
|
10
|
-
// @ts-expect-error: this is fine
|
|
11
7
|
export const AnimatedLiquidGlassContainerView = Animated.View;
|
|
12
8
|
export const isLiquidGlassSupported = false;
|
|
13
9
|
//# sourceMappingURL=LiquidGlassView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Animated","View","LiquidGlassView","LiquidGlassContainerView","AnimatedLiquidGlassView","AnimatedLiquidGlassContainerView","isLiquidGlassSupported"],"sourceRoot":"../../src","sources":["LiquidGlassView.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["Animated","View","LiquidGlassView","LiquidGlassContainerView","AnimatedLiquidGlassView","AnimatedLiquidGlassContainerView","isLiquidGlassSupported"],"sourceRoot":"../../src","sources":["LiquidGlassView.tsx"],"mappings":";;AAIA,SAASA,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAQ7C,OAAO,MAAMC,eAA0D,GAAGD,IAAI;AAE9E,OAAO,MAAME,wBAA4E,GACvFF,IAAI;AAEN,OAAO,MAAMG,uBAA0E,GACrFJ,QAAQ,CAACC,IAAI;AAEf,OAAO,MAAMI,gCAA4F,GACvGL,QAAQ,CAACC,IAAI;AAEf,OAAO,MAAMK,sBAAsB,GAAG,KAAK","ignoreList":[]}
|
package/lib/module/Screen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NavigationProvider","useTheme","React","StyleSheet","View","useSafeAreaInsets","Container","getDefaultHeaderHeight","HeaderHeightContext","HeaderShownContext","useFrameSize","jsx","_jsx","jsxs","_jsxs","Screen","props","insets","colors","isParentHeaderShown","use","parentHeaderHeight","focused","modal","header","headerShown","headerTransparent","headerStatusBarHeight","top","navigation","route","children","style","defaultHeaderHeight","size","landscape","width","height","modalPresentation","topInset","headerRef","useRef","headerHeight","setHeaderHeight","useState","useLayoutEffect","current","measure","_x","_y","_width","name","inert","styles","container","backgroundColor","background","absolute","minHeight","ref","onLayout","e","nativeEvent","layout","pointerEvents","content","Provider","value","create","flex","zIndex","position","start","end"],"sourceRoot":"../../src","sources":["Screen.tsx"],"mappings":";;AAAA,SAEEA,kBAAkB,EAGlBC,QAAQ,QACH,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,SAAS,
|
|
1
|
+
{"version":3,"names":["NavigationProvider","useTheme","React","StyleSheet","View","useSafeAreaInsets","Container","getDefaultHeaderHeight","HeaderHeightContext","HeaderShownContext","useFrameSize","jsx","_jsx","jsxs","_jsxs","Screen","props","insets","colors","isParentHeaderShown","use","parentHeaderHeight","focused","modal","header","headerShown","headerTransparent","headerStatusBarHeight","top","navigation","route","children","style","defaultHeaderHeight","size","landscape","width","height","modalPresentation","topInset","headerRef","useRef","headerHeight","setHeaderHeight","useState","useLayoutEffect","current","measure","_x","_y","_width","name","inert","styles","container","backgroundColor","background","absolute","minHeight","ref","onLayout","e","nativeEvent","layout","pointerEvents","content","Provider","value","create","flex","zIndex","position","start","end"],"sourceRoot":"../../src","sources":["Screen.tsx"],"mappings":";;AAAA,SAEEA,kBAAkB,EAGlBC,QAAQ,QACH,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,SAAS,QAAsC,gBAAa;AACrE,SAASC,sBAAsB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iB,YAAY,GAAIrB,kBAAkB,IAAI,CAAG;UAAAU,QAAA,EAE7DA;QAAQ,CACmB;MAAC,CACJ;IAAC,CAC1B,CAAC;EAAA,CACE,CAAC;AAEhB;AAEA,MAAMsB,MAAM,GAAGlD,UAAU,CAACiE,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,IAAI,EAAE;EACR,CAAC;EACDJ,OAAO,EAAE;IACPI,IAAI,EAAE;EACR,CAAC;EACD7C,MAAM,EAAE;IACN8C,MAAM,EAAE,CAAC;IACTN,aAAa,EAAE;EACjB,CAAC;EACDP,QAAQ,EAAE;IACRc,QAAQ,EAAE,UAAU;IACpB3C,GAAG,EAAE,CAAC;IACN4C,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EAER,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,KAAK,KAAK,GAAG,SAAS,GAAG;
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EAER,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,KAAK,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACtC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;CACtE,CAAC;AAIF,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,KAAK,EACL,OAAc,EACd,IAAS,EACT,GAAG,IAAI,EACR,EAAE,KAAK,4BA0EP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderButtonBackground.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderButtonBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAC;AAKpD,KAAK,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderButtonBackground.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderButtonBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAC;AAKpD,KAAK,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,+BAYtE"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { LiquidGlassContainerViewProps, LiquidGlassViewProps } from '@callstack/liquid-glass';
|
|
1
2
|
import { Animated } from 'react-native';
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
3
|
+
type AnimatedLiquidGlassViewProps = Animated.AnimatedProps<LiquidGlassViewProps>;
|
|
4
|
+
type AnimatedLiquidGlassContainerViewProps = Animated.AnimatedProps<LiquidGlassContainerViewProps>;
|
|
5
|
+
export declare const LiquidGlassView: React.ComponentType<LiquidGlassViewProps>;
|
|
6
|
+
export declare const LiquidGlassContainerView: React.ComponentType<LiquidGlassContainerViewProps>;
|
|
7
|
+
export declare const AnimatedLiquidGlassView: React.ComponentType<AnimatedLiquidGlassViewProps>;
|
|
8
|
+
export declare const AnimatedLiquidGlassContainerView: React.ComponentType<AnimatedLiquidGlassContainerViewProps>;
|
|
7
9
|
export declare const isLiquidGlassSupported = false;
|
|
8
10
|
export {};
|
|
9
11
|
//# sourceMappingURL=LiquidGlassView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlassView.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,MAAM,cAAc,CAAC;AAE9C,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"LiquidGlassView.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAQ,MAAM,cAAc,CAAC;AAE9C,KAAK,4BAA4B,GAC/B,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;AAE/C,KAAK,qCAAqC,GACxC,QAAQ,CAAC,aAAa,CAAC,6BAA6B,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAQ,CAAC;AAE/E,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,aAAa,CAAC,6BAA6B,CAClF,CAAC;AAEP,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CACvE,CAAC;AAEhB,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,aAAa,CAAC,qCAAqC,CACzF,CAAC;AAEhB,eAAO,MAAM,sBAAsB,QAAQ,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { LiquidGlassContainerViewProps, LiquidGlassViewProps } from '@callstack/liquid-glass';
|
|
1
2
|
import { Animated } from 'react-native';
|
|
2
|
-
type
|
|
3
|
-
|
|
3
|
+
type AnimatedLiquidGlassViewProps = Animated.AnimatedProps<LiquidGlassViewProps>;
|
|
4
|
+
type AnimatedLiquidGlassContainerViewProps = Animated.AnimatedProps<LiquidGlassContainerViewProps>;
|
|
5
|
+
declare let isLiquidGlassSupported: boolean, LiquidGlassView: React.ComponentType<LiquidGlassViewProps>, LiquidGlassContainerView: React.ComponentType<LiquidGlassContainerViewProps>, AnimatedLiquidGlassView: React.ComponentType<AnimatedLiquidGlassViewProps>, AnimatedLiquidGlassContainerView: React.ComponentType<AnimatedLiquidGlassContainerViewProps>;
|
|
4
6
|
export { AnimatedLiquidGlassContainerView, AnimatedLiquidGlassView, isLiquidGlassSupported, LiquidGlassContainerView, LiquidGlassView, };
|
|
5
7
|
//# sourceMappingURL=LiquidGlassView.ios.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlassView.ios.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,MAAM,cAAc,CAAC;AAE9C,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"LiquidGlassView.ios.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAQ,MAAM,cAAc,CAAC;AAE9C,KAAK,4BAA4B,GAC/B,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;AAE/C,KAAK,qCAAqC,GACxC,QAAQ,CAAC,aAAa,CAAC,6BAA6B,CAAC,CAAC;AAExD,QAAA,IAAI,sBAAsB,EAAE,OAAO,EACjC,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,EAC1D,wBAAwB,EAAE,KAAK,CAAC,aAAa,CAAC,6BAA6B,CAAC,EAC5E,uBAAuB,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,EAC1E,gCAAgC,EAAE,KAAK,CAAC,aAAa,CAAC,qCAAqC,CAAC,CAAC;AAqB/F,OAAO,EACL,gCAAgC,EAChC,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,GAChB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type NavigationProp, type ParamListBase, type RouteProp } from '@react-navigation/native';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { type Props as ContainerProps } from './Container.js';
|
|
4
4
|
type Props = {
|
|
5
5
|
focused: boolean;
|
|
6
6
|
modal?: boolean | undefined;
|
|
@@ -10,7 +10,7 @@ type Props = {
|
|
|
10
10
|
headerShown?: boolean | undefined;
|
|
11
11
|
headerStatusBarHeight?: number | undefined;
|
|
12
12
|
headerTransparent?: boolean | undefined;
|
|
13
|
-
style?:
|
|
13
|
+
style?: ContainerProps['style'] | undefined;
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
};
|
|
16
16
|
export declare function Screen(props: Props): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Screen.d.ts","sourceRoot":"","sources":["../../../src/Screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,aAAa,EAClB,KAAK,SAAS,EAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Screen.d.ts","sourceRoot":"","sources":["../../../src/Screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,aAAa,EAClB,KAAK,SAAS,EAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAa,KAAK,KAAK,IAAI,cAAc,EAAE,MAAM,gBAAa,CAAC;AAMtE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,UAAU,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC1C,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,qBA4FlC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/elements",
|
|
3
3
|
"description": "UI Components for React Navigation",
|
|
4
|
-
"version": "3.0.0-alpha.
|
|
4
|
+
"version": "3.0.0-alpha.37",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"react-navigation",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"types": "./lib/typescript/src/index.d.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
-
"source": "./src/index.tsx",
|
|
25
|
+
"@react-navigation/source": "./src/index.tsx",
|
|
26
26
|
"types": "./lib/typescript/src/index.d.ts",
|
|
27
27
|
"default": "./lib/module/index.js"
|
|
28
28
|
},
|
|
29
29
|
"./internal": {
|
|
30
|
-
"source": "./src/internal.tsx",
|
|
30
|
+
"@react-navigation/source": "./src/internal.tsx",
|
|
31
31
|
"types": "./lib/typescript/src/internal.d.ts",
|
|
32
32
|
"default": "./lib/module/internal.js"
|
|
33
33
|
},
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@callstack/liquid-glass": "^0.8.0",
|
|
56
56
|
"@jest/globals": "^29.7.0",
|
|
57
|
-
"@react-navigation/native": "^8.0.0-alpha.
|
|
57
|
+
"@react-navigation/native": "^8.0.0-alpha.33",
|
|
58
58
|
"@testing-library/react-native": "^14.0.0",
|
|
59
59
|
"@types/react": "~19.2.17",
|
|
60
60
|
"@types/use-sync-external-store": "^1.5.0",
|
|
61
61
|
"del-cli": "^7.0.0",
|
|
62
62
|
"react": "19.2.0",
|
|
63
63
|
"react-native": "0.83.6",
|
|
64
|
-
"react-native-builder-bob": "^0.
|
|
64
|
+
"react-native-builder-bob": "^0.43.0",
|
|
65
65
|
"react-native-screens": "^4.25.2",
|
|
66
66
|
"test-renderer": "1.2.0",
|
|
67
67
|
"typescript": "^6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@callstack/liquid-glass": ">= 0.6.0",
|
|
71
|
-
"@react-navigation/native": "^8.0.0-alpha.
|
|
71
|
+
"@react-navigation/native": "^8.0.0-alpha.33",
|
|
72
72
|
"react": ">= 19.2.0",
|
|
73
73
|
"react-native": "*",
|
|
74
74
|
"react-native-safe-area-context": ">= 5.5.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
]
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "b573c67e6abed9b94d9f0ee70f06df4fa4536367"
|
|
96
96
|
}
|
package/src/Badge.tsx
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { Animated, StyleSheet } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { AnimatedLiquidGlassView } from '../LiquidGlassView';
|
|
4
4
|
import { BUTTON_SIZE } from './HeaderButton';
|
|
5
5
|
|
|
6
6
|
type Props = React.ComponentProps<typeof Animated.View> & {
|
|
7
7
|
plain?: boolean;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
const AnimatedLiquidGlassView =
|
|
11
|
-
Animated.createAnimatedComponent(LiquidGlassView);
|
|
12
|
-
|
|
13
10
|
export function HeaderButtonBackground({ plain, style, ...rest }: Props) {
|
|
14
11
|
if (plain) {
|
|
15
12
|
return <Animated.View style={[styles.container, style]} {...rest} />;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
LiquidGlassContainerViewProps,
|
|
3
|
+
LiquidGlassViewProps,
|
|
4
|
+
} from '@callstack/liquid-glass';
|
|
1
5
|
import { Animated, View } from 'react-native';
|
|
2
6
|
|
|
3
|
-
type
|
|
7
|
+
type AnimatedLiquidGlassViewProps =
|
|
8
|
+
Animated.AnimatedProps<LiquidGlassViewProps>;
|
|
9
|
+
|
|
10
|
+
type AnimatedLiquidGlassContainerViewProps =
|
|
11
|
+
Animated.AnimatedProps<LiquidGlassContainerViewProps>;
|
|
4
12
|
|
|
5
13
|
let isLiquidGlassSupported: boolean,
|
|
6
|
-
LiquidGlassView:
|
|
7
|
-
LiquidGlassContainerView:
|
|
8
|
-
AnimatedLiquidGlassView:
|
|
9
|
-
AnimatedLiquidGlassContainerView:
|
|
10
|
-
typeof LiquidGlassContainerView
|
|
11
|
-
>;
|
|
14
|
+
LiquidGlassView: React.ComponentType<LiquidGlassViewProps>,
|
|
15
|
+
LiquidGlassContainerView: React.ComponentType<LiquidGlassContainerViewProps>,
|
|
16
|
+
AnimatedLiquidGlassView: React.ComponentType<AnimatedLiquidGlassViewProps>,
|
|
17
|
+
AnimatedLiquidGlassContainerView: React.ComponentType<AnimatedLiquidGlassContainerViewProps>;
|
|
12
18
|
|
|
13
19
|
try {
|
|
14
20
|
// Add try/catch to support usage even if it's not installed, since it's optional.
|
|
@@ -24,9 +30,8 @@ try {
|
|
|
24
30
|
} catch (e) {
|
|
25
31
|
isLiquidGlassSupported = false;
|
|
26
32
|
LiquidGlassView = View;
|
|
27
|
-
|
|
33
|
+
LiquidGlassContainerView = View;
|
|
28
34
|
AnimatedLiquidGlassView = Animated.View;
|
|
29
|
-
// @ts-expect-error: this is fine
|
|
30
35
|
AnimatedLiquidGlassContainerView = Animated.View;
|
|
31
36
|
}
|
|
32
37
|
|
package/src/LiquidGlassView.tsx
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
LiquidGlassContainerViewProps,
|
|
3
|
+
LiquidGlassViewProps,
|
|
4
|
+
} from '@callstack/liquid-glass';
|
|
1
5
|
import { Animated, View } from 'react-native';
|
|
2
6
|
|
|
3
|
-
type
|
|
7
|
+
type AnimatedLiquidGlassViewProps =
|
|
8
|
+
Animated.AnimatedProps<LiquidGlassViewProps>;
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
type AnimatedLiquidGlassContainerViewProps =
|
|
11
|
+
Animated.AnimatedProps<LiquidGlassContainerViewProps>;
|
|
6
12
|
|
|
7
|
-
export const
|
|
13
|
+
export const LiquidGlassView: React.ComponentType<LiquidGlassViewProps> = View;
|
|
14
|
+
|
|
15
|
+
export const LiquidGlassContainerView: React.ComponentType<LiquidGlassContainerViewProps> =
|
|
8
16
|
View;
|
|
9
17
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
typeof LiquidGlassView
|
|
13
|
-
> = Animated.View;
|
|
18
|
+
export const AnimatedLiquidGlassView: React.ComponentType<AnimatedLiquidGlassViewProps> =
|
|
19
|
+
Animated.View;
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
typeof LiquidGlassContainerView
|
|
18
|
-
> = Animated.View;
|
|
21
|
+
export const AnimatedLiquidGlassContainerView: React.ComponentType<AnimatedLiquidGlassContainerViewProps> =
|
|
22
|
+
Animated.View;
|
|
19
23
|
|
|
20
24
|
export const isLiquidGlassSupported = false;
|
package/src/Screen.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import * as React from 'react';
|
|
|
9
9
|
import { StyleSheet, View } from 'react-native';
|
|
10
10
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
11
11
|
|
|
12
|
-
import { Container } from './Container';
|
|
12
|
+
import { Container, type Props as ContainerProps } from './Container';
|
|
13
13
|
import { getDefaultHeaderHeight } from './Header/getDefaultHeaderHeight';
|
|
14
14
|
import { HeaderHeightContext } from './Header/HeaderHeightContext';
|
|
15
15
|
import { HeaderShownContext } from './Header/HeaderShownContext';
|
|
@@ -24,7 +24,7 @@ type Props = {
|
|
|
24
24
|
headerShown?: boolean | undefined;
|
|
25
25
|
headerStatusBarHeight?: number | undefined;
|
|
26
26
|
headerTransparent?: boolean | undefined;
|
|
27
|
-
style?:
|
|
27
|
+
style?: ContainerProps['style'] | undefined;
|
|
28
28
|
children: React.ReactNode;
|
|
29
29
|
};
|
|
30
30
|
|