@react-navigation/elements 3.0.0-alpha.5 → 3.0.0-alpha.51
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/ActivityView.js +90 -0
- package/lib/module/ActivityView.js.map +1 -0
- package/lib/module/ActivityView.native.js +67 -0
- package/lib/module/ActivityView.native.js.map +1 -0
- package/lib/module/Badge.js +6 -7
- package/lib/module/Badge.js.map +1 -1
- package/lib/module/BlurEffectBackground.js +3 -3
- package/lib/module/BlurEffectBackground.js.map +1 -1
- package/lib/module/Button.js +99 -14
- package/lib/module/Button.js.map +1 -1
- package/lib/module/Color.js +565 -4
- package/lib/module/Color.js.map +1 -1
- package/lib/module/Container.js +23 -1
- package/lib/module/Container.js.map +1 -1
- package/lib/module/Header/Header.js +30 -18
- package/lib/module/Header/Header.js.map +1 -1
- package/lib/module/Header/HeaderBackButton.js +27 -13
- package/lib/module/Header/HeaderBackButton.js.map +1 -1
- package/lib/module/Header/HeaderButton.js +4 -5
- package/lib/module/Header/HeaderButton.js.map +1 -1
- package/lib/module/Header/HeaderButtonBackground.js +1 -2
- package/lib/module/Header/HeaderButtonBackground.js.map +1 -1
- package/lib/module/Header/HeaderIcon.js +14 -17
- package/lib/module/Header/HeaderIcon.js.map +1 -1
- package/lib/module/Header/HeaderSearchBar.js +36 -26
- package/lib/module/Header/HeaderSearchBar.js.map +1 -1
- package/lib/module/Header/getHeaderTitle.js.map +1 -1
- package/lib/module/Header/useHeaderHeight.js +1 -1
- package/lib/module/Header/useHeaderHeight.js.map +1 -1
- package/lib/module/Label/getLabel.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/PlatformColor.js +1 -0
- package/lib/module/PlatformColor.js.map +1 -1
- package/lib/module/PlatformColor.native.js +1 -1
- package/lib/module/PlatformColor.native.js.map +1 -1
- package/lib/module/PlatformIcon.js +46 -0
- package/lib/module/PlatformIcon.js.map +1 -0
- package/lib/module/PlatformPressable.js +64 -21
- package/lib/module/PlatformPressable.js.map +1 -1
- package/lib/module/SafeAreaProviderCompat.js +2 -4
- package/lib/module/SafeAreaProviderCompat.js.map +1 -1
- package/lib/module/Screen.js +59 -20
- package/lib/module/Screen.js.map +1 -1
- package/lib/module/index.js +2 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal.js +1 -1
- package/lib/module/internal.js.map +1 -1
- package/lib/module/useFrameSize.js +55 -5
- package/lib/module/useFrameSize.js.map +1 -1
- package/lib/typescript/src/ActivityView.d.ts +31 -0
- package/lib/typescript/src/ActivityView.d.ts.map +1 -0
- package/lib/typescript/src/ActivityView.native.d.ts +3 -0
- package/lib/typescript/src/ActivityView.native.d.ts.map +1 -0
- package/lib/typescript/src/Badge.d.ts +7 -6
- package/lib/typescript/src/Badge.d.ts.map +1 -1
- package/lib/typescript/src/BlurEffectBackground.d.ts +2 -2
- package/lib/typescript/src/BlurEffectBackground.d.ts.map +1 -1
- package/lib/typescript/src/Button.d.ts +54 -6
- package/lib/typescript/src/Button.d.ts.map +1 -1
- package/lib/typescript/src/Color.d.ts +4 -4
- package/lib/typescript/src/Color.d.ts.map +1 -1
- package/lib/typescript/src/Container.d.ts +8 -4
- package/lib/typescript/src/Container.d.ts.map +1 -1
- package/lib/typescript/src/Header/Header.d.ts +5 -4
- package/lib/typescript/src/Header/Header.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderBackButton.d.ts +3 -2
- package/lib/typescript/src/Header/HeaderBackButton.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderBackground.d.ts +5 -5
- package/lib/typescript/src/Header/HeaderBackground.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderButton.d.ts +7 -2
- package/lib/typescript/src/Header/HeaderButton.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderButtonBackground.d.ts +1 -1
- package/lib/typescript/src/Header/HeaderButtonBackground.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderIcon.d.ts +10 -4
- package/lib/typescript/src/Header/HeaderIcon.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderSearchBar.d.ts +10 -7
- package/lib/typescript/src/Header/HeaderSearchBar.d.ts.map +1 -1
- package/lib/typescript/src/Header/HeaderTitle.d.ts +4 -4
- package/lib/typescript/src/Header/HeaderTitle.d.ts.map +1 -1
- package/lib/typescript/src/Header/getHeaderTitle.d.ts +2 -2
- package/lib/typescript/src/Header/getHeaderTitle.d.ts.map +1 -1
- package/lib/typescript/src/Label/Label.d.ts +1 -1
- package/lib/typescript/src/Label/Label.d.ts.map +1 -1
- package/lib/typescript/src/Label/getLabel.d.ts +2 -2
- package/lib/typescript/src/Label/getLabel.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/MissingIcon.d.ts +3 -3
- package/lib/typescript/src/MissingIcon.d.ts.map +1 -1
- package/lib/typescript/src/PlatformColor.d.ts +1 -0
- package/lib/typescript/src/PlatformColor.d.ts.map +1 -1
- package/lib/typescript/src/PlatformColor.native.d.ts +1 -1
- package/lib/typescript/src/PlatformColor.native.d.ts.map +1 -1
- package/lib/typescript/src/PlatformIcon.d.ts +11 -0
- package/lib/typescript/src/PlatformIcon.d.ts.map +1 -0
- package/lib/typescript/src/PlatformPressable.d.ts +12 -15
- package/lib/typescript/src/PlatformPressable.d.ts.map +1 -1
- package/lib/typescript/src/SafeAreaProviderCompat.d.ts +1 -1
- package/lib/typescript/src/SafeAreaProviderCompat.d.ts.map +1 -1
- package/lib/typescript/src/Screen.d.ts +10 -7
- package/lib/typescript/src/Screen.d.ts.map +1 -1
- package/lib/typescript/src/Text.d.ts +1 -1
- package/lib/typescript/src/Text.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +21 -21
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/internal.d.ts +6 -6
- package/lib/typescript/src/internal.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +120 -70
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/useFrameSize.d.ts +2 -2
- package/lib/typescript/src/useFrameSize.d.ts.map +1 -1
- package/package.json +27 -22
- package/src/ActivityView.native.tsx +88 -0
- package/src/ActivityView.tsx +127 -0
- package/src/Badge.tsx +11 -10
- package/src/BlurEffectBackground.tsx +3 -3
- package/src/Button.tsx +177 -28
- package/src/Color.tsx +755 -8
- package/src/Container.tsx +27 -4
- package/src/Header/Header.tsx +47 -27
- package/src/Header/HeaderBackButton.tsx +34 -20
- package/src/Header/HeaderBackground.tsx +3 -3
- package/src/Header/HeaderButton.tsx +16 -18
- package/src/Header/HeaderButtonBackground.tsx +1 -4
- package/src/Header/HeaderIcon.tsx +26 -13
- package/src/Header/HeaderSearchBar.tsx +58 -49
- package/src/Header/HeaderTitle.tsx +3 -3
- package/src/Header/getHeaderTitle.tsx +4 -1
- package/src/Header/useHeaderHeight.tsx +1 -1
- package/src/Label/getLabel.tsx +1 -1
- package/src/LiquidGlassView.ios.tsx +14 -9
- package/src/LiquidGlassView.tsx +15 -11
- package/src/MissingIcon.tsx +2 -2
- package/src/PlatformColor.native.tsx +1 -1
- package/src/PlatformColor.tsx +4 -0
- package/src/PlatformIcon.tsx +70 -0
- package/src/PlatformPressable.tsx +108 -48
- package/src/SafeAreaProviderCompat.tsx +2 -3
- package/src/Screen.tsx +87 -29
- package/src/index.tsx +2 -16
- package/src/internal.tsx +1 -1
- package/src/types.tsx +153 -76
- package/src/useFrameSize.tsx +71 -7
- package/lib/module/Lazy.js +0 -42
- package/lib/module/Lazy.js.map +0 -1
- package/lib/module/assets/back-icon.ios.svg +0 -4
- package/lib/module/assets/back-icon@1x.android.png +0 -0
- package/lib/module/assets/back-icon@1x.ios.png +0 -0
- package/lib/module/assets/back-icon@2x.android.png +0 -0
- package/lib/module/assets/back-icon@2x.ios.png +0 -0
- package/lib/module/assets/back-icon@3x.android.png +0 -0
- package/lib/module/assets/back-icon@3x.ios.png +0 -0
- package/lib/module/assets/back-icon@4x.android.png +0 -0
- package/lib/module/assets/back-icon@4x.ios.png +0 -0
- package/lib/module/assets/clear-icon@1x.png +0 -0
- package/lib/module/assets/clear-icon@2x.png +0 -0
- package/lib/module/assets/clear-icon@3x.png +0 -0
- package/lib/module/assets/clear-icon@4x.png +0 -0
- package/lib/module/assets/close-icon@1x.png +0 -0
- package/lib/module/assets/close-icon@2x.png +0 -0
- package/lib/module/assets/close-icon@3x.png +0 -0
- package/lib/module/assets/close-icon@4x.png +0 -0
- package/lib/module/assets/search-icon-legacy@1x.ios.png +0 -0
- package/lib/module/assets/search-icon-legacy@2x.ios.png +0 -0
- package/lib/module/assets/search-icon-legacy@3x.ios.png +0 -0
- package/lib/module/assets/search-icon-legacy@4x.ios.png +0 -0
- package/lib/module/assets/search-icon.ios.svg +0 -4
- package/lib/module/assets/search-icon@1x.android.png +0 -0
- package/lib/module/assets/search-icon@1x.ios.png +0 -0
- package/lib/module/assets/search-icon@2x.android.png +0 -0
- package/lib/module/assets/search-icon@2x.ios.png +0 -0
- package/lib/module/assets/search-icon@3x.android.png +0 -0
- package/lib/module/assets/search-icon@3x.ios.png +0 -0
- package/lib/module/assets/search-icon@4x.android.png +0 -0
- package/lib/module/assets/search-icon@4x.ios.png +0 -0
- package/lib/typescript/src/Lazy.d.ts +0 -31
- package/lib/typescript/src/Lazy.d.ts.map +0 -1
- package/src/Lazy.tsx +0 -59
- package/src/assets/back-icon.ios.svg +0 -4
- package/src/assets/back-icon@1x.android.png +0 -0
- package/src/assets/back-icon@1x.ios.png +0 -0
- package/src/assets/back-icon@2x.android.png +0 -0
- package/src/assets/back-icon@2x.ios.png +0 -0
- package/src/assets/back-icon@3x.android.png +0 -0
- package/src/assets/back-icon@3x.ios.png +0 -0
- package/src/assets/back-icon@4x.android.png +0 -0
- package/src/assets/back-icon@4x.ios.png +0 -0
- package/src/assets/clear-icon@1x.png +0 -0
- package/src/assets/clear-icon@2x.png +0 -0
- package/src/assets/clear-icon@3x.png +0 -0
- package/src/assets/clear-icon@4x.png +0 -0
- package/src/assets/close-icon@1x.png +0 -0
- package/src/assets/close-icon@2x.png +0 -0
- package/src/assets/close-icon@3x.png +0 -0
- package/src/assets/close-icon@4x.png +0 -0
- package/src/assets/search-icon-legacy@1x.ios.png +0 -0
- package/src/assets/search-icon-legacy@2x.ios.png +0 -0
- package/src/assets/search-icon-legacy@3x.ios.png +0 -0
- package/src/assets/search-icon-legacy@4x.ios.png +0 -0
- package/src/assets/search-icon.ios.svg +0 -4
- package/src/assets/search-icon@1x.android.png +0 -0
- package/src/assets/search-icon@1x.ios.png +0 -0
- package/src/assets/search-icon@2x.android.png +0 -0
- package/src/assets/search-icon@2x.ios.png +0 -0
- package/src/assets/search-icon@3x.android.png +0 -0
- package/src/assets/search-icon@3x.ios.png +0 -0
- package/src/assets/search-icon@4x.android.png +0 -0
- package/src/assets/search-icon@4x.ios.png +0 -0
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Badge","Button","getDefaultSidebarWidth","getDefaultHeaderHeight","getHeaderTitle","Header","HeaderBackButton","HeaderBackContext","HeaderBackground","HeaderButton","HeaderHeightContext","HeaderShownContext","HeaderTitle","useHeaderHeight","getLabel","Label","PlatformIcon","PlatformPressable","Text","useFrameSize"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,YAAS;AAC/B,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,sBAAsB,QAAQ,6BAA0B;AACjE,SAASC,sBAAsB,QAAQ,oCAAiC;AACxE,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,MAAM,QAAQ,oBAAiB;AACxC,SAASC,gBAAgB,QAAQ,8BAA2B;AAC5D,SAASC,iBAAiB,QAAQ,+BAA4B;AAC9D,SAASC,gBAAgB,QAAQ,8BAA2B;AAC5D,SAASC,YAAY,QAAQ,0BAAuB;AACpD,SAASC,mBAAmB,QAAQ,iCAA8B;AAClE,SAASC,kBAAkB,QAAQ,gCAA6B;AAChE,SAASC,WAAW,QAAQ,yBAAsB;AAClD,SAASC,eAAe,QAAQ,6BAA0B;AAC1D,SAASC,QAAQ,QAAQ,qBAAkB;AAC3C,SAASC,KAAK,QAAQ,kBAAe;AACrC,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,IAAI,QAAQ,WAAQ;AAC7B,cAAc,YAAS;AACvB,SAASC,YAAY,QAAQ,mBAAgB","ignoreList":[]}
|
package/lib/module/internal.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
export { ActivityView } from './ActivityView';
|
|
3
4
|
export { Color } from "./Color.js";
|
|
4
5
|
export { Container } from "./Container.js";
|
|
5
|
-
export { Lazy } from "./Lazy.js";
|
|
6
6
|
export { isLiquidGlassSupported } from './LiquidGlassView';
|
|
7
7
|
export { MissingIcon } from "./MissingIcon.js";
|
|
8
8
|
export { SafeAreaProviderCompat } from "./SafeAreaProviderCompat.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["ActivityView","Color","Container","isLiquidGlassSupported","MissingIcon","SafeAreaProviderCompat","Screen"],"sourceRoot":"../../src","sources":["internal.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,KAAK,QAAQ,YAAS;AAC/B,SAASC,SAAS,QAAsC,gBAAa;AACrE,SAASC,sBAAsB,QAAQ,mBAAmB;AAC1D,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,sBAAsB,QAAQ,6BAA0B;AACjE,SAASC,MAAM,QAAQ,aAAU","ignoreList":[]}
|
|
@@ -4,14 +4,61 @@ import * as React from 'react';
|
|
|
4
4
|
import { Platform } from 'react-native';
|
|
5
5
|
import useLatestCallback from 'use-latest-callback';
|
|
6
6
|
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector';
|
|
7
|
+
import { getNamedContext } from "./getNamedContext.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
const FrameContext =
|
|
9
|
+
const FrameContext = getNamedContext('FrameContext', undefined);
|
|
9
10
|
export function useFrameSize(selector, throttle) {
|
|
10
|
-
const context = React.
|
|
11
|
+
const context = React.use(FrameContext);
|
|
11
12
|
if (context == null) {
|
|
12
13
|
throw new Error('useFrameSize must be used within a FrameSizeProvider');
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
+
const subscribe = throttle ? context.subscribeThrottled : context.subscribe;
|
|
16
|
+
const value = useSyncExternalStoreWithSelector(subscribe, context.getCurrent, context.getCurrent, selector);
|
|
17
|
+
|
|
18
|
+
// Record the frame at render time to compare in the layout effect.
|
|
19
|
+
const frame = context.getCurrent();
|
|
20
|
+
const [, forceUpdate] = React.useReducer(value => value + 1, 0);
|
|
21
|
+
const subscriptionRef = React.useRef(null);
|
|
22
|
+
const subscribedBeforeRef = React.useRef(false);
|
|
23
|
+
React.useLayoutEffect(() => {
|
|
24
|
+
// We have empty dependency array, but `Suspense` can replay the layout effect,
|
|
25
|
+
// So we need to explicitly check if we've subscribed before.
|
|
26
|
+
// Subsequent updates are handled by `useSyncExternalStoreWithSelector`.
|
|
27
|
+
// So we don't need to subscribe again.
|
|
28
|
+
if (subscribedBeforeRef.current) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const check = () => {
|
|
32
|
+
const nextFrame = context.getCurrent();
|
|
33
|
+
if (nextFrame !== frame && !Object.is(selector(nextFrame), value)) {
|
|
34
|
+
forceUpdate();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// The sync external store subscription starts in a passive effect.
|
|
39
|
+
// So if layout was measured, we may not get it here before paint.
|
|
40
|
+
// We use a layout effect to check if it has changed since the last render,
|
|
41
|
+
// and force an update so it reflects the latest frame before the next paint.
|
|
42
|
+
const unsubscribe = subscribe(check);
|
|
43
|
+
subscriptionRef.current = unsubscribe;
|
|
44
|
+
check();
|
|
45
|
+
return unsubscribe;
|
|
46
|
+
|
|
47
|
+
// We only need to check for changes on initial render.
|
|
48
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49
|
+
}, []);
|
|
50
|
+
React.useEffect(() => {
|
|
51
|
+
// We don't need to keep the subscription after passive effects run.
|
|
52
|
+
// At this point, `useSyncExternalStoreWithSelector` has already subscribed.
|
|
53
|
+
subscriptionRef.current?.();
|
|
54
|
+
subscriptionRef.current = null;
|
|
55
|
+
subscribedBeforeRef.current = true;
|
|
56
|
+
return () => {
|
|
57
|
+
// The layout effect should recheck when `Activity` becomes visible.
|
|
58
|
+
// So we clean this up when `Activity` becomes hidden.
|
|
59
|
+
subscribedBeforeRef.current = false;
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
15
62
|
return value;
|
|
16
63
|
}
|
|
17
64
|
export function FrameSizeProvider({
|
|
@@ -80,7 +127,7 @@ export function FrameSizeProvider({
|
|
|
80
127
|
listeners.forEach(listener => listener());
|
|
81
128
|
});
|
|
82
129
|
const viewRef = React.useRef(null);
|
|
83
|
-
React.
|
|
130
|
+
React.useLayoutEffect(() => {
|
|
84
131
|
if (Platform.OS === 'web') {
|
|
85
132
|
// We use ResizeObserver on web
|
|
86
133
|
return;
|
|
@@ -119,10 +166,13 @@ function FrameSizeListenerWeb({
|
|
|
119
166
|
onChange
|
|
120
167
|
}) {
|
|
121
168
|
const elementRef = React.useRef(null);
|
|
122
|
-
React.
|
|
169
|
+
React.useLayoutEffect(() => {
|
|
123
170
|
if (elementRef.current == null) {
|
|
124
171
|
return;
|
|
125
172
|
}
|
|
173
|
+
if (typeof elementRef.current.getBoundingClientRect !== 'function') {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
126
176
|
const rect = elementRef.current.getBoundingClientRect();
|
|
127
177
|
onChange({
|
|
128
178
|
width: rect.width,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","useLatestCallback","useSyncExternalStoreWithSelector","jsx","_jsx","jsxs","_jsxs","FrameContext","
|
|
1
|
+
{"version":3,"names":["React","Platform","useLatestCallback","useSyncExternalStoreWithSelector","getNamedContext","jsx","_jsx","jsxs","_jsxs","FrameContext","undefined","useFrameSize","selector","throttle","context","use","Error","subscribe","subscribeThrottled","value","getCurrent","frame","forceUpdate","useReducer","subscriptionRef","useRef","subscribedBeforeRef","useLayoutEffect","current","check","nextFrame","Object","is","unsubscribe","useEffect","FrameSizeProvider","initialFrame","render","frameRef","width","height","listeners","Set","listener","add","delete","delay","timer","updated","waiting","throttledListener","clearTimeout","setTimeout","useMemo","onChange","forEach","viewRef","OS","measure","_x","_y","onLayout","event","nativeEvent","layout","Provider","children","FrameSizeListenerWeb","ref","elementRef","getBoundingClientRect","rect","observer","ResizeObserver","entries","entry","contentRect","observe","disconnect","style","position","left","right","top","bottom","pointerEvents","visibility"],"sourceRoot":"../../src","sources":["useFrameSize.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAAiCC,QAAQ,QAAc,cAAc;AACrE,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,SAASC,gCAAgC,QAAQ,uCAAuC;AAExF,SAASC,eAAe,QAAQ,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiBpD,MAAMC,YAAY,GAAGL,eAAe,CAClC,cAAc,EACdM,SACF,CAAC;AAED,OAAO,SAASC,YAAYA,CAC1BC,QAA6B,EAC7BC,QAAkB,EACf;EACH,M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,EAAE+B,IAAI,CAAC/B;IACf,CAAC,CAAC;IAEF,MAAMgC,QAAQ,GAAG,IAAIC,cAAc,CAAEC,OAAO,IAAK;MAC/C,MAAMC,KAAK,GAAGD,OAAO,CAAC,CAAC,CAAC;MAExB,IAAIC,KAAK,EAAE;QACT,MAAM;UAAEpC,KAAK;UAAEC;QAAO,CAAC,GAAGmC,KAAK,CAACC,WAAW;QAE3CtB,QAAQ,CAAC;UAAEf,KAAK;UAAEC;QAAO,CAAC,CAAC;MAC7B;IACF,CAAC,CAAC;IAEFgC,QAAQ,CAACK,OAAO,CAACR,UAAU,CAACzC,OAAO,CAAC;IAEpC,OAAO,MAAM;MACX4C,QAAQ,CAACM,UAAU,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACxB,QAAQ,CAAC,CAAC;EAEd,oBACEhD,IAAA;IACE8D,GAAG,EAAEC,UAAW;IAChBU,KAAK,EAAE;MACLC,QAAQ,EAAE,UAAU;MACpBC,IAAI,EAAE,CAAC;MACPC,KAAK,EAAE,CAAC;MACRC,GAAG,EAAE,CAAC;MACNC,MAAM,EAAE,CAAC;MACTC,aAAa,EAAE,MAAM;MACrBC,UAAU,EAAE;IACd;EAAE,CACH,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
export type Props = {
|
|
3
|
+
/**
|
|
4
|
+
* Mode of the activity view
|
|
5
|
+
* - `normal`: The view renders normally
|
|
6
|
+
* - `inert`: Content is not interactive
|
|
7
|
+
* - `paused`: Effects are unmounted and content is not interactive
|
|
8
|
+
*/
|
|
9
|
+
mode: 'normal' | 'inert' | 'paused';
|
|
10
|
+
/**
|
|
11
|
+
* Whether the content is visible or not
|
|
12
|
+
*/
|
|
13
|
+
visible: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Delay before pausing effects.
|
|
16
|
+
* So pending animations have time to finish.
|
|
17
|
+
*
|
|
18
|
+
* Defaults to 500ms.
|
|
19
|
+
*/
|
|
20
|
+
delay?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The style for the container view
|
|
23
|
+
*/
|
|
24
|
+
style?: Omit<React.CSSProperties & ViewStyle, 'display'> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The content of the activity view
|
|
27
|
+
*/
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
export declare function ActivityView({ mode, visible, delay, style, children, }: Props): import("react").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=ActivityView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivityView.d.ts","sourceRoot":"","sources":["../../../src/ActivityView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9D,MAAM,MAAM,KAAK,GAAG;IAClB;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,SAAS,EAAE,SAAS,CAAC,GAAG,SAAS,CAAC;IACrE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,OAAO,EACP,KAAW,EACX,KAAK,EACL,QAAQ,GACT,EAAE,KAAK,+BAsFP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivityView.native.d.ts","sourceRoot":"","sources":["../../../src/ActivityView.native.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAoB,CAAC;AAGhD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,OAAO,EACP,KAAW,EACX,KAAK,EACL,QAAQ,GACT,EAAE,KAAK,+BAuCP"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
type
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type StyleProp, type TextProps, type TextStyle } from 'react-native';
|
|
3
|
+
type Props = Omit<TextProps, 'style'> & {
|
|
3
4
|
/**
|
|
4
5
|
* Whether the badge is visible
|
|
5
6
|
*/
|
|
@@ -7,16 +8,16 @@ type Props = TextProps & {
|
|
|
7
8
|
/**
|
|
8
9
|
* Content of the `Badge`.
|
|
9
10
|
*/
|
|
10
|
-
children?: string | number;
|
|
11
|
+
children?: string | number | undefined;
|
|
11
12
|
/**
|
|
12
13
|
* Size of the `Badge`.
|
|
13
14
|
*/
|
|
14
|
-
size?: number;
|
|
15
|
+
size?: number | undefined;
|
|
15
16
|
/**
|
|
16
17
|
* Style object for the tab bar container.
|
|
17
18
|
*/
|
|
18
|
-
style?:
|
|
19
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
19
20
|
};
|
|
20
|
-
export declare function Badge({ children, style, visible, size, ...rest }: Props):
|
|
21
|
+
export declare function Badge({ children, style, visible, size, ...rest }: Props): React.JSX.Element | null;
|
|
21
22
|
export {};
|
|
22
23
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/Badge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,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,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;CAC1C,CAAC;AAIF,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,KAAK,EACL,OAAc,EACd,IAAS,EACT,GAAG,IAAI,EACR,EAAE,KAAK,4BAyEP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
|
-
import { type BlurEffectType } from './getBlurBackgroundColor';
|
|
3
|
+
import { type BlurEffectType } from './getBlurBackgroundColor.js';
|
|
4
4
|
type Props = Omit<ViewProps, 'style'> & {
|
|
5
5
|
blurEffect: BlurEffectType | 'none' | undefined;
|
|
6
6
|
style?: StyleProp<ViewStyle>;
|
|
@@ -11,6 +11,6 @@ type Props = Omit<ViewProps, 'style'> & {
|
|
|
11
11
|
*
|
|
12
12
|
* Only supported on web. Falls back to a regular `View` on other platforms.
|
|
13
13
|
*/
|
|
14
|
-
export declare function BlurEffectBackground({ blurEffect, style, children, ...rest }: Props):
|
|
14
|
+
export declare function BlurEffectBackground({ blurEffect, style, children, ...rest }: Props): React.JSX.Element;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=BlurEffectBackground.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlurEffectBackground.d.ts","sourceRoot":"","sources":["../../../src/BlurEffectBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,KAAK,SAAS,EAGd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,
|
|
1
|
+
{"version":3,"file":"BlurEffectBackground.d.ts","sourceRoot":"","sources":["../../../src/BlurEffectBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,KAAK,SAAS,EAGd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,6BAA0B,CAAC;AAElC,KAAK,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACtC,UAAU,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,UAAU,EACV,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,KAAK,qBAyDP"}
|
|
@@ -1,14 +1,62 @@
|
|
|
1
1
|
import { type LinkProps, type RootParamList } from '@react-navigation/native';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type ColorValue } from 'react-native';
|
|
4
|
-
import { type Props as PlatformPressableProps } from './PlatformPressable';
|
|
4
|
+
import { type Props as PlatformPressableProps } from './PlatformPressable.js';
|
|
5
|
+
import type { Icon } from './types.js';
|
|
5
6
|
type ButtonBaseProps = Omit<PlatformPressableProps, 'children'> & {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Variant of the button.
|
|
9
|
+
*
|
|
10
|
+
* - `plain`: transparent background, colored text
|
|
11
|
+
* - `tinted`: lightly tinted background, colored text
|
|
12
|
+
* - `filled`: colored background, contrasting text color
|
|
13
|
+
*
|
|
14
|
+
* @default 'tinted'
|
|
15
|
+
*/
|
|
16
|
+
variant?: 'plain' | 'tinted' | 'filled' | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Custom color for the button.
|
|
19
|
+
* Changes the text color for `plain` and `tinted` variants,
|
|
20
|
+
* and background color for `filled` variant.
|
|
21
|
+
*/
|
|
22
|
+
color?: ColorValue | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Icon to display before the label.
|
|
25
|
+
*
|
|
26
|
+
* Supported types:
|
|
27
|
+
* - image: custom image source
|
|
28
|
+
* - sfSymbol: SF Symbol icon (iOS only)
|
|
29
|
+
* - materialSymbol: material symbol icon (Android only)
|
|
30
|
+
* - React Node: function that returns a React Element
|
|
31
|
+
*/
|
|
32
|
+
icon?: Icon | ((props: {
|
|
33
|
+
color: ColorValue;
|
|
34
|
+
size: number;
|
|
35
|
+
}) => Icon | React.ReactNode) | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to show a loading indicator instead of the icon.
|
|
38
|
+
*/
|
|
39
|
+
loading?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Label text to display inside the button.
|
|
42
|
+
*/
|
|
43
|
+
children: string | string[] | React.ReactElement | React.ReactElement[];
|
|
9
44
|
};
|
|
10
|
-
type ButtonLinkProps<ParamList extends {} = RootParamList, RouteName extends keyof ParamList = keyof ParamList
|
|
11
|
-
|
|
45
|
+
type ButtonLinkProps<ParamList extends {} = RootParamList, RouteName extends Extract<keyof ParamList, string> = Extract<keyof ParamList, string>> = LinkProps<NoInfer<ParamList>, RouteName> & ButtonBaseProps;
|
|
46
|
+
/**
|
|
47
|
+
* Component to render a button that navigates to a screen using a path.
|
|
48
|
+
* Uses an anchor tag on the web.
|
|
49
|
+
*
|
|
50
|
+
* @param props.in Name of the current or parent screen whose navigator contains the target screen.
|
|
51
|
+
* @param props.screen Name of the screen to navigate to (e.g. `'Feeds'`).
|
|
52
|
+
* @param props.params Params to pass to the screen to navigate to (e.g. `{ sort: 'hot' }`).
|
|
53
|
+
* @param props.href Optional absolute path to use for the href (e.g. `/feeds/hot`).
|
|
54
|
+
* @param props.action Optional action to override the in-page navigation. The `href` is still derived from `screen`, so this can be used to render a link while dispatching a different action (e.g. a `replace`).
|
|
55
|
+
*/
|
|
56
|
+
export declare function Button<ParamList extends {} = RootParamList, RouteName extends Extract<keyof ParamList, string> = Extract<keyof ParamList, string>>(props: ButtonLinkProps<ParamList, RouteName>): React.JSX.Element;
|
|
57
|
+
/**
|
|
58
|
+
* Component to render a button.
|
|
59
|
+
*/
|
|
12
60
|
export declare function Button(props: ButtonBaseProps): React.JSX.Element;
|
|
13
61
|
export {};
|
|
14
62
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,aAAa,EAGnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAC;AAItB,OAAO,EAEL,KAAK,KAAK,IAAI,sBAAsB,EACrC,MAAM,wBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAS,CAAC;AAEpC,KAAK,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,GAAG;IAChE;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpD;;;;OAIG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B;;;;;;;;OAQG;IACH,IAAI,CAAC,EACD,IAAI,GACJ,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,UAAU,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,GACxE,SAAS,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACzE,CAAC;AAEF,KAAK,eAAe,CAClB,SAAS,SAAS,EAAE,GAAG,aAAa,EACpC,SAAS,SAAS,OAAO,CAAC,MAAM,SAAS,EAAE,MAAM,CAAC,GAAG,OAAO,CAC1D,MAAM,SAAS,EACf,MAAM,CACP,IACC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,eAAe,CAAC;AAK/D;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CACpB,SAAS,SAAS,EAAE,GAAG,aAAa,EACpC,SAAS,SAAS,OAAO,CAAC,MAAM,SAAS,EAAE,MAAM,CAAC,GAAG,OAAO,CAC1D,MAAM,SAAS,EACf,MAAM,CACP,EACD,KAAK,EAAE,eAAe,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;AAEnE;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
2
|
type ColorType = {
|
|
3
|
-
isLight(): boolean;
|
|
4
|
-
isDark(): boolean;
|
|
5
3
|
alpha(amount: number): ColorType;
|
|
6
4
|
alpha(): number;
|
|
7
5
|
fade(amount: number): ColorType;
|
|
8
|
-
darken(amount: number): ColorType;
|
|
9
6
|
string(): string;
|
|
10
7
|
};
|
|
11
8
|
export declare function Color(value: ColorValue): ColorType | undefined;
|
|
9
|
+
export declare namespace Color {
|
|
10
|
+
var foreground: (color: ColorValue) => ColorValue;
|
|
11
|
+
}
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=Color.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../src/Color.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../src/Color.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,cAAc,CAAC;AAIzD,KAAK,SAAS,GAAG;IACf,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,KAAK,IAAI,MAAM,CAAC;IAChB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,IAAI,MAAM,CAAC;CAClB,CAAC;AASF,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAU9D;yBAVe,KAAK;4BAYM,UAAU,KAAG,UAAU"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, type ViewStyle } from 'react-native';
|
|
2
3
|
export type Props = {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
ref?: React.Ref<HTMLDivElement | React.ComponentRef<typeof View>> | undefined;
|
|
5
|
+
inert?: boolean | undefined;
|
|
6
|
+
style?: (ViewStyle & Omit<React.CSSProperties, 'backgroundColor'> & {
|
|
7
|
+
backgroundColor?: ViewStyle['backgroundColor'] | undefined;
|
|
8
|
+
}) | undefined;
|
|
5
9
|
children: React.ReactNode;
|
|
6
10
|
};
|
|
7
|
-
export declare function Container({ inert, children, style }: Props):
|
|
11
|
+
export declare function Container({ ref, inert, children, style }: Props): React.JSX.Element;
|
|
8
12
|
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,MAAM,KAAK,GAAG;IAClB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;IAC9E,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,KAAK,CAAC,EACF,CAAC,SAAS,GACR,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,iBAAiB,CAAC,GAAG;QAC7C,eAAe,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;KAC5D,CAAC,GACJ,SAAS,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,qBAsC/D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { HeaderOptions } from '../types.js';
|
|
2
3
|
type Props = HeaderOptions & {
|
|
3
4
|
/**
|
|
4
5
|
* Options for the back button.
|
|
@@ -12,16 +13,16 @@ type Props = HeaderOptions & {
|
|
|
12
13
|
* The `href` to use for the anchor tag on web
|
|
13
14
|
*/
|
|
14
15
|
href: string | undefined;
|
|
15
|
-
};
|
|
16
|
+
} | undefined;
|
|
16
17
|
/**
|
|
17
18
|
* Whether the header is in a modal
|
|
18
19
|
*/
|
|
19
|
-
modal?: boolean;
|
|
20
|
+
modal?: boolean | undefined;
|
|
20
21
|
/**
|
|
21
22
|
* Title text for the header.
|
|
22
23
|
*/
|
|
23
24
|
title: string;
|
|
24
25
|
};
|
|
25
|
-
export declare function Header(props: Props):
|
|
26
|
+
export declare function Header(props: Props): React.JSX.Element;
|
|
26
27
|
export {};
|
|
27
28
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/Header/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/Header/Header.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAU,CAAC;AAY9C,KAAK,KAAK,GAAG,aAAa,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EACD;QACE;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GACD,SAAS,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA0BF,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,qBAmalC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { HeaderBackButtonProps } from '../types.js';
|
|
3
|
+
export declare function HeaderBackButton({ disabled, allowFontScaling, icon, label, labelStyle, displayMode, onPress, pressColor, pressOpacity, tintColor, truncatedLabel, accessibilityLabel, testID, style, href, }: HeaderBackButtonProps): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=HeaderBackButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBackButton.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderBackButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderBackButton.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderBackButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,KAAK,EAEV,qBAAqB,EAEtB,MAAM,aAAU,CAAC;AAIlB,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,gBAAgB,EAChB,IAAI,EACJ,KAAK,EACL,UAAU,EACV,WAAuB,EACvB,OAAO,EACP,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAuB,EACvB,kBAA6E,EAC7E,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE,qBAAqB,qBAsEvB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
|
-
import { type BlurEffectType } from '../getBlurBackgroundColor';
|
|
3
|
+
import { type BlurEffectType } from '../getBlurBackgroundColor.js';
|
|
4
4
|
type Props = Omit<ViewProps, 'style'> & {
|
|
5
|
-
blurEffect?: BlurEffectType | 'none';
|
|
6
|
-
style?: StyleProp<ViewStyle
|
|
7
|
-
children?: React.ReactNode;
|
|
5
|
+
blurEffect?: BlurEffectType | 'none' | undefined;
|
|
6
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
7
|
+
children?: React.ReactNode | undefined;
|
|
8
8
|
};
|
|
9
|
-
export declare function HeaderBackground({ blurEffect, style, children, ...rest }: Props):
|
|
9
|
+
export declare function HeaderBackground({ blurEffect, style, children, ...rest }: Props): React.JSX.Element;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=HeaderBackground.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBackground.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderBackground.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HeaderBackground.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderBackground.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA2B,CAAC;AAEhE,KAAK,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACtC,UAAU,CAAC,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,KAAK,qBAmBP"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import { PlatformPressable } from '../PlatformPressable.js';
|
|
3
|
+
import type { HeaderButtonProps } from '../types.js';
|
|
4
|
+
type Props = HeaderButtonProps & {
|
|
5
|
+
ref?: React.Ref<React.ComponentRef<typeof PlatformPressable>> | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare function HeaderButton({ disabled, onPress, pressColor, pressOpacity, accessibilityLabel, testID, style, href, children, ref, }: Props): React.JSX.Element;
|
|
4
8
|
export declare const BUTTON_SIZE: number;
|
|
5
9
|
export declare const BUTTON_SPACING: number;
|
|
10
|
+
export {};
|
|
6
11
|
//# sourceMappingURL=HeaderButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderButton.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderButton.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAU,CAAC;AAElD,KAAK,KAAK,GAAG,iBAAiB,GAAG;IAC/B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,GAAG,SAAS,CAAC;CAC3E,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,OAAO,EACP,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,GAAG,GACJ,EAAE,KAAK,qBAqBP;AAED,eAAO,MAAM,WAAW,QAAkC,CAAC;AAC3D,eAAO,MAAM,cAAc,QAAiC,CAAC"}
|
|
@@ -2,6 +2,6 @@ import { Animated } from 'react-native';
|
|
|
2
2
|
type Props = React.ComponentProps<typeof Animated.View> & {
|
|
3
3
|
plain?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare function HeaderButtonBackground({ plain, style, ...rest }: Props): import("react
|
|
5
|
+
export declare function HeaderButtonBackground({ plain, style, ...rest }: Props): import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=HeaderButtonBackground.d.ts.map
|
|
@@ -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,5 +1,11 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type ColorValue, type StyleProp } from 'react-native';
|
|
2
|
+
import { type PlatformIconStyle } from '../PlatformIcon.js';
|
|
3
|
+
import type { Icon } from '../types.js';
|
|
4
|
+
type Props = {
|
|
5
|
+
icon: Icon;
|
|
6
|
+
color: ColorValue;
|
|
7
|
+
style?: StyleProp<PlatformIconStyle> | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare function HeaderIcon({ icon, color, style }: Props): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
5
11
|
//# sourceMappingURL=HeaderIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderIcon.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderIcon.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"HeaderIcon.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,oBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAU,CAAC;AAErC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,+BAavD"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Animated, type ColorValue, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
-
import type { HeaderSearchBarOptions, HeaderSearchBarRef } from '../types';
|
|
4
|
-
|
|
3
|
+
import type { HeaderSearchBarOptions, HeaderSearchBarRef } from '../types.js';
|
|
4
|
+
type Props = Omit<HeaderSearchBarOptions, 'ref'> & {
|
|
5
5
|
visible: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
|
-
tintColor?: ColorValue;
|
|
8
|
-
pressColor?: ColorValue;
|
|
9
|
-
pressOpacity?: number;
|
|
7
|
+
tintColor?: ColorValue | undefined;
|
|
8
|
+
pressColor?: ColorValue | undefined;
|
|
9
|
+
pressOpacity?: number | undefined;
|
|
10
10
|
statusBarHeight: number;
|
|
11
|
-
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle
|
|
12
|
-
|
|
11
|
+
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>> | undefined;
|
|
12
|
+
ref?: React.Ref<HeaderSearchBarRef> | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare function HeaderSearchBar({ visible, inputType, autoFocus, autoCapitalize, placeholder, enterKeyHint, cancelButtonText, onChange, onClose, tintColor, pressColor, pressOpacity, statusBarHeight, style, ref, ...rest }: Props): React.JSX.Element;
|
|
15
|
+
export {};
|
|
13
16
|
//# sourceMappingURL=HeaderSearchBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSearchBar.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderSearchBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EAER,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"HeaderSearchBar.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderSearchBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EAER,KAAK,UAAU,EAEf,KAAK,SAAS,EAId,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAUtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,aAAU,CAAC;AAM3E,KAAK,KAAK,GAAG,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC,GAAG;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IACrE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;CACjD,CAAC;AAWF,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,SAAS,EACT,SAAgB,EAChB,cAAc,EACd,WAAsB,EACtB,YAAuB,EACvB,gBAA2B,EAC3B,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,YAAY,EACZ,eAAe,EACf,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,KAAK,qBAmQP"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Animated, type ColorValue, type StyleProp, type TextProps, type TextStyle } from 'react-native';
|
|
2
2
|
type Props = Omit<TextProps, 'style'> & {
|
|
3
|
-
tintColor?: ColorValue;
|
|
4
|
-
children?: string;
|
|
5
|
-
style?: Animated.WithAnimatedValue<StyleProp<TextStyle
|
|
3
|
+
tintColor?: ColorValue | undefined;
|
|
4
|
+
children?: string | undefined;
|
|
5
|
+
style?: Animated.WithAnimatedValue<StyleProp<TextStyle>> | undefined;
|
|
6
6
|
};
|
|
7
|
-
export declare function HeaderTitle({ tintColor, style, ...rest }: Props): import("react
|
|
7
|
+
export declare function HeaderTitle({ tintColor, style, ...rest }: Props): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=HeaderTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTitle.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderTitle.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,KAAK,UAAU,EAEf,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACtC,SAAS,CAAC,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderTitle.d.ts","sourceRoot":"","sources":["../../../../src/Header/HeaderTitle.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,KAAK,UAAU,EAEf,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACtC,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,+BAiB/D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HeaderOptions } from '../types';
|
|
1
|
+
import type { HeaderOptions } from '../types.js';
|
|
2
2
|
export declare function getHeaderTitle(options: {
|
|
3
|
-
title?: string;
|
|
3
|
+
title?: string | undefined;
|
|
4
4
|
headerTitle?: HeaderOptions['headerTitle'];
|
|
5
5
|
}, fallback: string): string;
|
|
6
6
|
//# sourceMappingURL=getHeaderTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHeaderTitle.d.ts","sourceRoot":"","sources":["../../../../src/Header/getHeaderTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getHeaderTitle.d.ts","sourceRoot":"","sources":["../../../../src/Header/getHeaderTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAU,CAAC;AAE9C,wBAAgB,cAAc,CAC5B,OAAO,EAAE;IACP,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CAC5C,EACD,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR"}
|
|
@@ -4,6 +4,6 @@ type Props = Omit<TextProps, 'style'> & {
|
|
|
4
4
|
children?: string;
|
|
5
5
|
style?: StyleProp<TextStyle>;
|
|
6
6
|
};
|
|
7
|
-
export declare function Label({ tintColor, style, ...rest }: Props): import("react
|
|
7
|
+
export declare function Label({ tintColor, style, ...rest }: Props): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=Label.d.ts.map
|