react-native-collapsible-tabs-reanimated 0.1.0-beta
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/LICENSE +21 -0
- package/README.md +232 -0
- package/lib/commonjs/Bar.js +247 -0
- package/lib/commonjs/Bar.js.map +1 -0
- package/lib/commonjs/Button.js +150 -0
- package/lib/commonjs/Button.js.map +1 -0
- package/lib/commonjs/Context.js +21 -0
- package/lib/commonjs/Context.js.map +1 -0
- package/lib/commonjs/FlashList.js +91 -0
- package/lib/commonjs/FlashList.js.map +1 -0
- package/lib/commonjs/Header.js +54 -0
- package/lib/commonjs/Header.js.map +1 -0
- package/lib/commonjs/Indicator.js +156 -0
- package/lib/commonjs/Indicator.js.map +1 -0
- package/lib/commonjs/Lazy.js +87 -0
- package/lib/commonjs/Lazy.js.map +1 -0
- package/lib/commonjs/LegendList.js +86 -0
- package/lib/commonjs/LegendList.js.map +1 -0
- package/lib/commonjs/List.js +83 -0
- package/lib/commonjs/List.js.map +1 -0
- package/lib/commonjs/Pager.js +93 -0
- package/lib/commonjs/Pager.js.map +1 -0
- package/lib/commonjs/Root.js +169 -0
- package/lib/commonjs/Root.js.map +1 -0
- package/lib/commonjs/ScrollView.js +85 -0
- package/lib/commonjs/ScrollView.js.map +1 -0
- package/lib/commonjs/StaticHeader.js +37 -0
- package/lib/commonjs/StaticHeader.js.map +1 -0
- package/lib/commonjs/StickyHeader.js +37 -0
- package/lib/commonjs/StickyHeader.js.map +1 -0
- package/lib/commonjs/Tab.js +86 -0
- package/lib/commonjs/Tab.js.map +1 -0
- package/lib/commonjs/flash-list.js +14 -0
- package/lib/commonjs/flash-list.js.map +1 -0
- package/lib/commonjs/index.js +128 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/legend-list.js +14 -0
- package/lib/commonjs/legend-list.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/useStableCallback.js +15 -0
- package/lib/commonjs/useStableCallback.js.map +1 -0
- package/lib/module/Bar.js +242 -0
- package/lib/module/Bar.js.map +1 -0
- package/lib/module/Button.js +145 -0
- package/lib/module/Button.js.map +1 -0
- package/lib/module/Context.js +16 -0
- package/lib/module/Context.js.map +1 -0
- package/lib/module/FlashList.js +86 -0
- package/lib/module/FlashList.js.map +1 -0
- package/lib/module/Header.js +49 -0
- package/lib/module/Header.js.map +1 -0
- package/lib/module/Indicator.js +151 -0
- package/lib/module/Indicator.js.map +1 -0
- package/lib/module/Lazy.js +82 -0
- package/lib/module/Lazy.js.map +1 -0
- package/lib/module/LegendList.js +81 -0
- package/lib/module/LegendList.js.map +1 -0
- package/lib/module/List.js +78 -0
- package/lib/module/List.js.map +1 -0
- package/lib/module/Pager.js +87 -0
- package/lib/module/Pager.js.map +1 -0
- package/lib/module/Root.js +165 -0
- package/lib/module/Root.js.map +1 -0
- package/lib/module/ScrollView.js +80 -0
- package/lib/module/ScrollView.js.map +1 -0
- package/lib/module/StaticHeader.js +32 -0
- package/lib/module/StaticHeader.js.map +1 -0
- package/lib/module/StickyHeader.js +32 -0
- package/lib/module/StickyHeader.js.map +1 -0
- package/lib/module/Tab.js +81 -0
- package/lib/module/Tab.js.map +1 -0
- package/lib/module/flash-list.js +4 -0
- package/lib/module/flash-list.js.map +1 -0
- package/lib/module/index.js +44 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/legend-list.js +4 -0
- package/lib/module/legend-list.js.map +1 -0
- package/lib/module/useStableCallback.js +11 -0
- package/lib/module/useStableCallback.js.map +1 -0
- package/lib/typescript/Bar.d.ts +22 -0
- package/lib/typescript/Bar.d.ts.map +1 -0
- package/lib/typescript/Button.d.ts +32 -0
- package/lib/typescript/Button.d.ts.map +1 -0
- package/lib/typescript/Context.d.ts +37 -0
- package/lib/typescript/Context.d.ts.map +1 -0
- package/lib/typescript/FlashList.d.ts +6 -0
- package/lib/typescript/FlashList.d.ts.map +1 -0
- package/lib/typescript/Header.d.ts +7 -0
- package/lib/typescript/Header.d.ts.map +1 -0
- package/lib/typescript/Indicator.d.ts +11 -0
- package/lib/typescript/Indicator.d.ts.map +1 -0
- package/lib/typescript/Lazy.d.ts +36 -0
- package/lib/typescript/Lazy.d.ts.map +1 -0
- package/lib/typescript/LegendList.d.ts +6 -0
- package/lib/typescript/LegendList.d.ts.map +1 -0
- package/lib/typescript/List.d.ts +6 -0
- package/lib/typescript/List.d.ts.map +1 -0
- package/lib/typescript/Pager.d.ts +15 -0
- package/lib/typescript/Pager.d.ts.map +1 -0
- package/lib/typescript/Root.d.ts +14 -0
- package/lib/typescript/Root.d.ts.map +1 -0
- package/lib/typescript/ScrollView.d.ts +6 -0
- package/lib/typescript/ScrollView.d.ts.map +1 -0
- package/lib/typescript/StaticHeader.d.ts +7 -0
- package/lib/typescript/StaticHeader.d.ts.map +1 -0
- package/lib/typescript/StickyHeader.d.ts +7 -0
- package/lib/typescript/StickyHeader.d.ts.map +1 -0
- package/lib/typescript/Tab.d.ts +31 -0
- package/lib/typescript/Tab.d.ts.map +1 -0
- package/lib/typescript/flash-list.d.ts +3 -0
- package/lib/typescript/flash-list.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +69 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/legend-list.d.ts +3 -0
- package/lib/typescript/legend-list.d.ts.map +1 -0
- package/lib/typescript/useStableCallback.d.ts +2 -0
- package/lib/typescript/useStableCallback.d.ts.map +1 -0
- package/package.json +112 -0
- package/src/Bar.tsx +359 -0
- package/src/Button.tsx +219 -0
- package/src/Context.tsx +44 -0
- package/src/FlashList.tsx +150 -0
- package/src/Header.tsx +45 -0
- package/src/Indicator.tsx +193 -0
- package/src/Lazy.tsx +110 -0
- package/src/LegendList.tsx +130 -0
- package/src/List.tsx +115 -0
- package/src/Pager.tsx +134 -0
- package/src/Root.tsx +194 -0
- package/src/ScrollView.tsx +116 -0
- package/src/StaticHeader.tsx +30 -0
- package/src/StickyHeader.tsx +30 -0
- package/src/Tab.tsx +89 -0
- package/src/flash-list.ts +2 -0
- package/src/index.ts +54 -0
- package/src/legend-list.ts +2 -0
- package/src/useStableCallback.ts +11 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import Bar from './Bar';
|
|
4
|
+
import Button from './Button';
|
|
5
|
+
import Header from './Header';
|
|
6
|
+
import { MaterialIndicator, SegmentIndicator } from './Indicator';
|
|
7
|
+
import { Lazy } from './Lazy';
|
|
8
|
+
import List from './List';
|
|
9
|
+
import Pager from './Pager';
|
|
10
|
+
import Root from './Root';
|
|
11
|
+
import ScrollView from './ScrollView';
|
|
12
|
+
import StaticHeader from './StaticHeader';
|
|
13
|
+
import StickyHeader from './StickyHeader';
|
|
14
|
+
import Tab from './Tab';
|
|
15
|
+
export { default as Bar } from './Bar';
|
|
16
|
+
export { default as Button } from './Button';
|
|
17
|
+
export { useCollapsibleTabsContext } from './Context';
|
|
18
|
+
export { default as Header } from './Header';
|
|
19
|
+
export { MaterialIndicator, SegmentIndicator } from './Indicator';
|
|
20
|
+
export { Lazy } from './Lazy';
|
|
21
|
+
export { default as List } from './List';
|
|
22
|
+
export { default as Pager } from './Pager';
|
|
23
|
+
export { default as Root } from './Root';
|
|
24
|
+
export { default as ScrollView } from './ScrollView';
|
|
25
|
+
export { default as StaticHeader } from './StaticHeader';
|
|
26
|
+
export { default as StickyHeader } from './StickyHeader';
|
|
27
|
+
export { default as Tab, useTabSelfContext } from './Tab';
|
|
28
|
+
const CollapsibleTabs = {
|
|
29
|
+
Root,
|
|
30
|
+
Header,
|
|
31
|
+
StickyHeader,
|
|
32
|
+
StaticHeader,
|
|
33
|
+
Pager,
|
|
34
|
+
Tab,
|
|
35
|
+
List,
|
|
36
|
+
ScrollView,
|
|
37
|
+
Bar,
|
|
38
|
+
Button,
|
|
39
|
+
MaterialIndicator,
|
|
40
|
+
SegmentIndicator,
|
|
41
|
+
Lazy
|
|
42
|
+
};
|
|
43
|
+
export default CollapsibleTabs;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Bar","Button","Header","MaterialIndicator","SegmentIndicator","Lazy","List","Pager","Root","ScrollView","StaticHeader","StickyHeader","Tab","default","useCollapsibleTabsContext","useTabSelfContext","CollapsibleTabs"],"sourceRoot":"..\\..\\src","sources":["index.ts"],"mappings":";;AAAA,OAAOA,GAAG,MAAM,OAAO;AACvB,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,aAAa;AACjE,SAASC,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,GAAG,MAAM,OAAO;AAEvB,SAASC,OAAO,IAAIb,GAAG,QAAQ,OAAO;AACtC,SAASa,OAAO,IAAIZ,MAAM,QAAQ,UAAU;AAC5C,SAASa,yBAAyB,QAAQ,WAAW;AACrD,SAASD,OAAO,IAAIX,MAAM,QAAQ,UAAU;AAC5C,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,aAAa;AACjE,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASQ,OAAO,IAAIP,IAAI,QAAQ,QAAQ;AACxC,SAASO,OAAO,IAAIN,KAAK,QAAQ,SAAS;AAC1C,SAASM,OAAO,IAAIL,IAAI,QAAQ,QAAQ;AACxC,SAASK,OAAO,IAAIJ,UAAU,QAAQ,cAAc;AACpD,SAASI,OAAO,IAAIH,YAAY,QAAQ,gBAAgB;AACxD,SAASG,OAAO,IAAIF,YAAY,QAAQ,gBAAgB;AACxD,SAASE,OAAO,IAAID,GAAG,EAAEG,iBAAiB,QAAQ,OAAO;AAYzD,MAAMC,eAAe,GAAG;EACtBR,IAAI;EACJN,MAAM;EACNS,YAAY;EACZD,YAAY;EACZH,KAAK;EACLK,GAAG;EACHN,IAAI;EACJG,UAAU;EACVT,GAAG;EACHC,MAAM;EACNE,iBAAiB;EACjBC,gBAAgB;EAChBC;AACF,CAAU;AAEV,eAAeW,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","CollapsibleLegendList"],"sourceRoot":"..\\..\\src","sources":["legend-list.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,qBAAqB,QAAQ,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useRef } from 'react';
|
|
4
|
+
export function useStableCallback(callback) {
|
|
5
|
+
const callbackRef = useRef(callback);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
callbackRef.current = callback;
|
|
8
|
+
}, [callback]);
|
|
9
|
+
return useCallback((...args) => callbackRef.current?.(...args), []);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=useStableCallback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useRef","useStableCallback","callback","callbackRef","current","args"],"sourceRoot":"..\\..\\src","sources":["useStableCallback.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEtD,OAAO,SAASC,iBAAiBA,CAAoCC,QAAY,EAAE;EACjF,MAAMC,WAAW,GAAGH,MAAM,CAACE,QAAQ,CAAC;EAEpCH,SAAS,CAAC,MAAM;IACdI,WAAW,CAACC,OAAO,GAAGF,QAAQ;EAChC,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEd,OAAOJ,WAAW,CAAC,CAAC,GAAGO,IAAmB,KAAKF,WAAW,CAACC,OAAO,GAAG,GAAGC,IAAI,CAAC,EAAE,EAAE,CAAC;AACpF","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ScrollViewProps, ViewProps } from "react-native";
|
|
3
|
+
export type BarProps = Omit<ScrollViewProps, "contentContainerStyle" | "style"> & {
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
scrollButtons?: boolean;
|
|
6
|
+
left?: ReactNode;
|
|
7
|
+
right?: ReactNode;
|
|
8
|
+
scrollContainerStyle?: ScrollViewProps["style"];
|
|
9
|
+
tabButtonsGap?: number;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
containerProps?: ViewProps;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
scrollButtonBackgroundColor?: string;
|
|
14
|
+
scrollButtonIconColor?: string;
|
|
15
|
+
renderScrollButtonIcon?: (dir: "left" | "right") => ReactNode;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
18
|
+
({ scrollEnabled, fullWidth, scrollButtons, left, right, containerProps, children, scrollContainerStyle, tabButtonsGap, backgroundColor, scrollButtonBackgroundColor, scrollButtonIconColor, renderScrollButtonIcon, ...props }: BarProps): import("react").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=Bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bar.d.ts","sourceRoot":"","sources":["../../src/Bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;AAExE,OAAO,EAEL,eAAe,EAIf,SAAS,EAEV,MAAM,cAAc,CAAC;AAqBtB,MAAM,MAAM,QAAQ,GAAG,IAAI,CACzB,eAAe,EACf,uBAAuB,GAAG,OAAO,CAClC,GAAG;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oBAAoB,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,KAAK,SAAS,CAAC;CAC/D,CAAC;;qOAiBC,QAAQ;;;AAsSX,wBAAyB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { StyleProp, TextProps, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
import { PressableProps } from "react-native-gesture-handler";
|
|
4
|
+
import { AnimatedStyle, SharedValue } from "react-native-reanimated";
|
|
5
|
+
export type RenderTabLabelProps = {
|
|
6
|
+
index: number;
|
|
7
|
+
name: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
style: StyleProp<TextStyle>;
|
|
10
|
+
animatedStyle: AnimatedStyle<StyleProp<TextStyle>>;
|
|
11
|
+
pageDecimal: SharedValue<number>;
|
|
12
|
+
};
|
|
13
|
+
export type ButtonProps = {
|
|
14
|
+
index: number;
|
|
15
|
+
name: string;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
activeStyle?: StyleProp<ViewStyle>;
|
|
19
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
20
|
+
activeLabelStyle?: StyleProp<TextStyle>;
|
|
21
|
+
labelProps?: Omit<TextProps, "style">;
|
|
22
|
+
contentWrapperStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
activeLabelColor?: string;
|
|
24
|
+
inactiveLabelColor?: string;
|
|
25
|
+
children?: string | ((props: RenderTabLabelProps) => ReactNode);
|
|
26
|
+
} & Omit<PressableProps, "style" | "children">;
|
|
27
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
28
|
+
({ index, name, onPress, style, fullWidth, labelStyle, labelProps, activeLabelStyle, activeStyle, children, contentWrapperStyle, activeLabelColor, inactiveLabelColor, ...props }: ButtonProps): import("react").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
}>;
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAC;AAEtE,OAAO,EAEL,SAAS,EAET,SAAS,EACT,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAa,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAiB,EACf,aAAa,EACb,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AAMjC,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5B,aAAa,EAAE,aAAa,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACnD,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,gBAAgB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACxC,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACtC,mBAAmB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,mBAAmB,KAAK,SAAS,CAAC,CAAC;CACjE,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;;uLAiB5C,WAAW;;;AA0Jd,wBAA4B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import PagerView from 'react-native-pager-view';
|
|
3
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
4
|
+
export type ItemLayout = {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
index: number;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
export type ListScroller = (animated?: boolean) => void;
|
|
13
|
+
export type CollapsibleTabsContextValue = {
|
|
14
|
+
headerOffset: SharedValue<number>;
|
|
15
|
+
staticHeight: SharedValue<number>;
|
|
16
|
+
stickyHeight: SharedValue<number>;
|
|
17
|
+
offsetAdjustment: SharedValue<number>;
|
|
18
|
+
activeTabIndex: SharedValue<number>;
|
|
19
|
+
activeTabIndexValue: number;
|
|
20
|
+
activeListOffset: SharedValue<number>;
|
|
21
|
+
pageDecimal: SharedValue<number>;
|
|
22
|
+
listPanGesture: any;
|
|
23
|
+
listGestures: any[];
|
|
24
|
+
pagerRef: RefObject<PagerView | null>;
|
|
25
|
+
itemLayout: ItemLayout[];
|
|
26
|
+
registerButton: (config: ItemLayout) => void;
|
|
27
|
+
registerListScroller: (index: number, scroller: ListScroller | null) => void;
|
|
28
|
+
staticHeightValue: number;
|
|
29
|
+
stickyHeightValue: number;
|
|
30
|
+
updateStaticHeight: (height: number) => void;
|
|
31
|
+
updateStickyHeight: (height: number) => void;
|
|
32
|
+
};
|
|
33
|
+
export declare const useCollapsibleTabsContext: () => CollapsibleTabsContextValue;
|
|
34
|
+
export declare const CollapsibleTabsContextProvider: import("react").MemoExoticComponent<({ children, ...props }: CollapsibleTabsContextValue & {
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
}) => import("react").JSX.Element>;
|
|
37
|
+
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/Context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAmC,MAAM,OAAO,CAAC;AAE9E,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAExD,MAAM,MAAM,2BAA2B,GAAG;IACxC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,GAAG,CAAC;IACpB,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACtC,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC;AAIF,eAAO,MAAM,yBAAyB,mCAA2C,CAAC;AAElF,eAAO,MAAM,8BAA8B,+DAAiC,2BAA2B,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,iCAE/H,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { FlashListProps as ShopifyFlashListProps } from "@shopify/flash-list";
|
|
3
|
+
export type CollapsibleFlashListProps<T> = Omit<ShopifyFlashListProps<T>, "renderScrollComponent">;
|
|
4
|
+
declare const _default: <T>(props: CollapsibleFlashListProps<T>) => ReactElement;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=FlashList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../../src/FlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAyC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAEL,cAAc,IAAI,qBAAqB,EAExC,MAAM,qBAAqB,CAAC;AAoC7B,MAAM,MAAM,yBAAyB,CAAC,CAAC,IAAI,IAAI,CAC7C,qBAAqB,CAAC,CAAC,CAAC,EACxB,uBAAuB,CACxB,CAAC;wBAsG2C,CAAC,CAAC,EAC7C,KAAK,EAAE,yBAAyB,CAAC,CAAC,CAAC,KAChC,YAAY;AAFjB,wBAEkB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ViewProps } from 'react-native';
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
3
|
+
({ children, style, ...props }: ViewProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,SAAS,EAAE,MAAM,cAAc,CAAC;;oCASJ,SAAS;;;AAiCxD,wBAA4B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StyleProp, ViewProps, ViewStyle } from "react-native";
|
|
2
|
+
import { AnimatedStyle } from "react-native-reanimated";
|
|
3
|
+
type CommonIndicatorProps = {
|
|
4
|
+
style?: AnimatedStyle<StyleProp<ViewStyle>>;
|
|
5
|
+
color?: string;
|
|
6
|
+
borderRadius?: number;
|
|
7
|
+
} & ViewProps;
|
|
8
|
+
export declare const MaterialIndicator: import("react").MemoExoticComponent<({ style, color, borderRadius, ...props }: CommonIndicatorProps) => import("react").JSX.Element>;
|
|
9
|
+
export declare const SegmentIndicator: import("react").MemoExoticComponent<({ style, color, borderRadius, ...props }: CommonIndicatorProps) => import("react").JSX.Element>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Indicator.d.ts","sourceRoot":"","sources":["../../src/Indicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,SAAS,EAET,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAiB,EACf,aAAa,EAId,MAAM,yBAAyB,CAAC;AAIjC,KAAK,oBAAoB,GAAG;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,SAAS,CAAC;AAEd,eAAO,MAAM,iBAAiB,iFAMzB,oBAAoB,iCAoExB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iFAMxB,oBAAoB,iCAoExB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import Animated from 'react-native-reanimated';
|
|
4
|
+
type AnimatedViewProps = ComponentProps<typeof Animated.View>;
|
|
5
|
+
type LazyViewProps = Omit<AnimatedViewProps, 'children' | 'entering' | 'exiting' | 'style'>;
|
|
6
|
+
export type LazyPlaceholderInfo = {
|
|
7
|
+
focused: boolean;
|
|
8
|
+
canMount: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type LazyProps = {
|
|
11
|
+
focused: boolean;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
placeholder?: ReactNode;
|
|
14
|
+
renderPlaceholder?: (info: LazyPlaceholderInfo) => ReactNode;
|
|
15
|
+
placeholderStyle?: StyleProp<ViewStyle>;
|
|
16
|
+
placeholderProps?: LazyViewProps & {
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
18
|
+
};
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
containerProps?: LazyViewProps & {
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
22
|
+
};
|
|
23
|
+
disableEntering?: boolean;
|
|
24
|
+
disableExiting?: boolean;
|
|
25
|
+
entering?: AnimatedViewProps['entering'] | null;
|
|
26
|
+
exiting?: AnimatedViewProps['exiting'] | null;
|
|
27
|
+
enteringDuration?: number;
|
|
28
|
+
enteringDelay?: number;
|
|
29
|
+
exitingDuration?: number;
|
|
30
|
+
duration?: number;
|
|
31
|
+
delay?: number;
|
|
32
|
+
onMount?: () => void;
|
|
33
|
+
};
|
|
34
|
+
export declare function Lazy({ placeholder, renderPlaceholder, placeholderStyle, placeholderProps, containerProps, disableEntering, disableExiting, entering, exiting, enteringDuration, enteringDelay, exitingDuration, focused, duration, delay, onMount, children, style, }: LazyProps): import("react").JSX.Element;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=Lazy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Lazy.d.ts","sourceRoot":"","sources":["../../src/Lazy.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAE/E,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,QAA6B,MAAM,yBAAyB,CAAC;AAIpE,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9D,KAAK,aAAa,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC;AAE5F,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,SAAS,CAAC;IAC7D,gBAAgB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACxC,gBAAgB,CAAC,EAAE,aAAa,GAAG;QAAE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;KAAE,CAAC;IACpE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,cAAc,CAAC,EAAE,aAAa,GAAG;QAAE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;KAAE,CAAC;IAClE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,IAAI,CAAC,EACnB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAuB,EACvB,cAAsB,EACtB,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,aAAa,EACb,eAAqB,EACrB,OAAO,EACP,QAAc,EACd,KAAU,EACV,OAAO,EACP,QAAQ,EACR,KAAK,GACN,EAAE,SAAS,+BAyCX"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { LegendListProps as LegendListLibProps } from "@legendapp/list/react-native";
|
|
3
|
+
export type CollapsibleLegendListProps<T> = LegendListLibProps<T>;
|
|
4
|
+
declare const _default: <T>(props: CollapsibleLegendListProps<T>) => ReactElement;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=LegendList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendList.d.ts","sourceRoot":"","sources":["../../src/LegendList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAyC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAEL,eAAe,IAAI,kBAAkB,EAEtC,MAAM,8BAA8B,CAAC;AA4BtC,MAAM,MAAM,0BAA0B,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC;wBA6FpB,CAAC,CAAC,EAC9C,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,KACjC,YAAY;AAFjB,wBAEkB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { FlatListProps } from "react-native";
|
|
3
|
+
export type ListProps<T> = Omit<FlatListProps<T>, "CellRendererComponent">;
|
|
4
|
+
declare const _default: <T>(props: ListProps<T>) => ReactElement;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=List.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAyC,MAAM,OAAO,CAAC;AAE5E,OAAO,EACL,aAAa,EAId,MAAM,cAAc,CAAC;AAgBtB,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAAC;wBA2F9C,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,YAAY;AAArE,wBAAsE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import { PagerViewProps } from "react-native-pager-view";
|
|
4
|
+
export type PagerProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
height?: number;
|
|
8
|
+
getHeight?: (staticHeaderHeight: number, stickyHeaderHeight: number) => number;
|
|
9
|
+
} & PagerViewProps;
|
|
10
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
11
|
+
({ children, style, height, getHeight, ...pagerProps }: PagerProps): import("react").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=Pager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pager.d.ts","sourceRoot":"","sources":["../../src/Pager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA8B,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAGhE,OAAkB,EAGhB,cAAc,EACf,MAAM,yBAAyB,CAAC;AAqCjC,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CACV,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,KACvB,MAAM,CAAC;CACb,GAAG,cAAc,CAAC;;4DAQhB,UAAU;;;AAuEb,wBAA2B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type CollapsibleTabsRootRef = {
|
|
3
|
+
scrollToViewTop: (animated?: boolean) => void;
|
|
4
|
+
};
|
|
5
|
+
export type RootProps = {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
pageLength: number;
|
|
8
|
+
initialStaticHeight?: number;
|
|
9
|
+
initialStickyHeight?: number;
|
|
10
|
+
offsetAdjustment?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: import("react").NamedExoticComponent<RootProps & import("react").RefAttributes<CollapsibleTabsRootRef>>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=Root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../../src/Root.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAiF,MAAM,OAAO,CAAC;AAWjH,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;;AA4KF,wBAA0B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { ScrollViewProps as RNScrollViewProps } from "react-native";
|
|
3
|
+
export type ScrollViewProps = RNScrollViewProps;
|
|
4
|
+
declare const _default: (props: ScrollViewProps) => ReactElement;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=ScrollView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../src/ScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAyC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAEL,eAAe,IAAI,iBAAiB,EAGrC,MAAM,cAAc,CAAC;AAgBtB,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;wBA4Fb,CAAC,KAAK,EAAE,eAAe,KAAK,YAAY;AAA3E,wBAA4E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ViewProps } from 'react-native';
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
3
|
+
({ children, onLayout, ...props }: ViewProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=StaticHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticHeader.d.ts","sourceRoot":"","sources":["../../src/StaticHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,SAAS,EAAE,MAAM,cAAc,CAAC;;uCAMJ,SAAS;;;AAqBjE,wBAAkC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ViewProps } from 'react-native';
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
3
|
+
({ children, onLayout, ...props }: ViewProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=StickyHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyHeader.d.ts","sourceRoot":"","sources":["../../src/StickyHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,SAAS,EAAE,MAAM,cAAc,CAAC;;uCAMJ,SAAS;;;AAqBjE,wBAAkC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
4
|
+
import { type LazyProps } from './Lazy';
|
|
5
|
+
export type TabProps = {
|
|
6
|
+
index: number;
|
|
7
|
+
loader?: ReactNode;
|
|
8
|
+
children?: ReactNode | ((info: {
|
|
9
|
+
isFocused: boolean;
|
|
10
|
+
pageDecimal: SharedValue<number>;
|
|
11
|
+
}) => ReactNode);
|
|
12
|
+
disableLazyEntering?: boolean;
|
|
13
|
+
disablePreload?: boolean;
|
|
14
|
+
lazy?: boolean;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
isScreenFocused?: boolean;
|
|
17
|
+
loaderStyle?: StyleProp<ViewStyle>;
|
|
18
|
+
lazyProps?: Omit<LazyProps, 'children' | 'disableEntering' | 'focused' | 'placeholder' | 'placeholderStyle'>;
|
|
19
|
+
};
|
|
20
|
+
export type TabSelfContextValue = {
|
|
21
|
+
index: number;
|
|
22
|
+
isFocused: boolean;
|
|
23
|
+
isMounted: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const useTabSelfContext: () => TabSelfContextValue;
|
|
26
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
27
|
+
({ index, loader, loaderStyle, lazyProps, disableLazyEntering, disablePreload, lazy, children, isLoading, isScreenFocused, }: TabProps): import("react").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=Tab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../src/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6C,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAuC,MAAM,yBAAyB,CAAC;AAI3F,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;KAAE,KAAK,SAAS,CAAC,CAAC;IACvG,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,iBAAiB,GAAG,SAAS,GAAG,aAAa,GAAG,kBAAkB,CAAC,CAAC;CAC9G,CAAC;AAuDF,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC;AAQ5F,eAAO,MAAM,iBAAiB,2BAAmC,CAAC;;kIAlD/D,QAAQ;;;AAsDX,wBAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flash-list.d.ts","sourceRoot":"","sources":["../../src/flash-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Lazy } from './Lazy';
|
|
2
|
+
export { default as Bar } from './Bar';
|
|
3
|
+
export { default as Button } from './Button';
|
|
4
|
+
export { useCollapsibleTabsContext } from './Context';
|
|
5
|
+
export { default as Header } from './Header';
|
|
6
|
+
export { MaterialIndicator, SegmentIndicator } from './Indicator';
|
|
7
|
+
export { Lazy } from './Lazy';
|
|
8
|
+
export { default as List } from './List';
|
|
9
|
+
export { default as Pager } from './Pager';
|
|
10
|
+
export { default as Root } from './Root';
|
|
11
|
+
export { default as ScrollView } from './ScrollView';
|
|
12
|
+
export { default as StaticHeader } from './StaticHeader';
|
|
13
|
+
export { default as StickyHeader } from './StickyHeader';
|
|
14
|
+
export { default as Tab, useTabSelfContext } from './Tab';
|
|
15
|
+
export type { BarProps } from './Bar';
|
|
16
|
+
export type { ButtonProps, RenderTabLabelProps } from './Button';
|
|
17
|
+
export type { CollapsibleTabsContextValue, ItemLayout, ListScroller } from './Context';
|
|
18
|
+
export type { LazyPlaceholderInfo, LazyProps } from './Lazy';
|
|
19
|
+
export type { ListProps } from './List';
|
|
20
|
+
export type { PagerProps } from './Pager';
|
|
21
|
+
export type { CollapsibleTabsRootRef, RootProps } from './Root';
|
|
22
|
+
export type { ScrollViewProps } from './ScrollView';
|
|
23
|
+
export type { TabProps, TabSelfContextValue } from './Tab';
|
|
24
|
+
declare const CollapsibleTabs: {
|
|
25
|
+
readonly Root: import("react").NamedExoticComponent<import("./Root").RootProps & import("react").RefAttributes<import("./Root").CollapsibleTabsRootRef>>;
|
|
26
|
+
readonly Header: import("react").MemoExoticComponent<{
|
|
27
|
+
({ children, style, ...props }: import("react-native").ViewProps): import("react").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
}>;
|
|
30
|
+
readonly StickyHeader: import("react").MemoExoticComponent<{
|
|
31
|
+
({ children, onLayout, ...props }: import("react-native").ViewProps): import("react").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
}>;
|
|
34
|
+
readonly StaticHeader: import("react").MemoExoticComponent<{
|
|
35
|
+
({ children, onLayout, ...props }: import("react-native").ViewProps): import("react").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
}>;
|
|
38
|
+
readonly Pager: import("react").MemoExoticComponent<{
|
|
39
|
+
({ children, style, height, getHeight, ...pagerProps }: import("./Pager").PagerProps): import("react").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
}>;
|
|
42
|
+
readonly Tab: import("react").MemoExoticComponent<{
|
|
43
|
+
({ index, loader, loaderStyle, lazyProps, disableLazyEntering, disablePreload, lazy, children, isLoading, isScreenFocused, }: import("./Tab").TabProps): import("react").JSX.Element;
|
|
44
|
+
displayName: string;
|
|
45
|
+
}>;
|
|
46
|
+
readonly List: <T>(props: import("./List").ListProps<T>) => import("react").ReactElement;
|
|
47
|
+
readonly ScrollView: (props: import("./ScrollView").ScrollViewProps) => import("react").ReactElement;
|
|
48
|
+
readonly Bar: import("react").MemoExoticComponent<{
|
|
49
|
+
({ scrollEnabled, fullWidth, scrollButtons, left, right, containerProps, children, scrollContainerStyle, tabButtonsGap, backgroundColor, scrollButtonBackgroundColor, scrollButtonIconColor, renderScrollButtonIcon, ...props }: import("./Bar").BarProps): import("react").JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
}>;
|
|
52
|
+
readonly Button: import("react").MemoExoticComponent<{
|
|
53
|
+
({ index, name, onPress, style, fullWidth, labelStyle, labelProps, activeLabelStyle, activeStyle, children, contentWrapperStyle, activeLabelColor, inactiveLabelColor, ...props }: import("./Button").ButtonProps): import("react").JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
}>;
|
|
56
|
+
readonly MaterialIndicator: import("react").MemoExoticComponent<({ style, color, borderRadius, ...props }: {
|
|
57
|
+
style?: import("react-native-reanimated").AnimatedStyle<import("react-native").StyleProp<import("react-native").ViewStyle>>;
|
|
58
|
+
color?: string;
|
|
59
|
+
borderRadius?: number;
|
|
60
|
+
} & import("react-native").ViewProps) => import("react").JSX.Element>;
|
|
61
|
+
readonly SegmentIndicator: import("react").MemoExoticComponent<({ style, color, borderRadius, ...props }: {
|
|
62
|
+
style?: import("react-native-reanimated").AnimatedStyle<import("react-native").StyleProp<import("react-native").ViewStyle>>;
|
|
63
|
+
color?: string;
|
|
64
|
+
borderRadius?: number;
|
|
65
|
+
} & import("react-native").ViewProps) => import("react").JSX.Element>;
|
|
66
|
+
readonly Lazy: typeof Lazy;
|
|
67
|
+
};
|
|
68
|
+
export default CollapsibleTabs;
|
|
69
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAS9B,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1D,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACjE,YAAY,EAAE,2BAA2B,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvF,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC7D,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE3D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcX,CAAC;AAEX,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legend-list.d.ts","sourceRoot":"","sources":["../../src/legend-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStableCallback.d.ts","sourceRoot":"","sources":["../../src/useStableCallback.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,aAOlD,UAAU,CAAC,CAAC,CAAC,SAC3C"}
|
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-collapsible-tabs-reanimated",
|
|
3
|
+
"version": "0.1.0-beta",
|
|
4
|
+
"description": "Collapsible tab views for React Native powered by Reanimated and Gesture Handler.",
|
|
5
|
+
"source": "src/index.ts",
|
|
6
|
+
"main": "lib/commonjs/index.js",
|
|
7
|
+
"module": "lib/module/index.js",
|
|
8
|
+
"types": "lib/typescript/index.d.ts",
|
|
9
|
+
"react-native": "src/index.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"source": "./src/index.ts",
|
|
13
|
+
"react-native": "./src/index.ts",
|
|
14
|
+
"types": "./lib/typescript/index.d.ts",
|
|
15
|
+
"default": "./lib/module/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./flash-list": {
|
|
18
|
+
"source": "./src/flash-list.ts",
|
|
19
|
+
"react-native": "./src/flash-list.ts",
|
|
20
|
+
"types": "./lib/typescript/flash-list.d.ts",
|
|
21
|
+
"default": "./lib/module/flash-list.js"
|
|
22
|
+
},
|
|
23
|
+
"./legend-list": {
|
|
24
|
+
"source": "./src/legend-list.ts",
|
|
25
|
+
"react-native": "./src/legend-list.ts",
|
|
26
|
+
"types": "./lib/typescript/legend-list.d.ts",
|
|
27
|
+
"default": "./lib/module/legend-list.js"
|
|
28
|
+
},
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"src",
|
|
33
|
+
"lib",
|
|
34
|
+
"README.md",
|
|
35
|
+
"LICENSE"
|
|
36
|
+
],
|
|
37
|
+
"workspaces": [
|
|
38
|
+
"example"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "bob build",
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"clean": "rimraf lib"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"react-native",
|
|
47
|
+
"collapsible",
|
|
48
|
+
"tabs",
|
|
49
|
+
"reanimated",
|
|
50
|
+
"gesture-handler",
|
|
51
|
+
"pager-view"
|
|
52
|
+
],
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/leungtinyau27m5/react-native-collapsible-tabs-reanimated.git"
|
|
56
|
+
},
|
|
57
|
+
"author": "tinyleung2-del (https://github.com/tinyleung2-del)",
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@legendapp/list": ">=3.0.0",
|
|
61
|
+
"@shopify/flash-list": ">=2.0.0",
|
|
62
|
+
"react": ">=18",
|
|
63
|
+
"react-native": ">=0.72",
|
|
64
|
+
"react-native-gesture-handler": ">=2.0.0",
|
|
65
|
+
"react-native-pager-view": ">=6.0.0",
|
|
66
|
+
"react-native-reanimated": ">=4.0.0",
|
|
67
|
+
"react-native-worklets": ">=0.6.0"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@legendapp/list": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"@shopify/flash-list": {
|
|
74
|
+
"optional": true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@babel/core": "latest",
|
|
79
|
+
"@babel/runtime": "latest",
|
|
80
|
+
"@legendapp/list": "latest",
|
|
81
|
+
"@react-native/babel-preset": "latest",
|
|
82
|
+
"@react-native/metro-config": "latest",
|
|
83
|
+
"@react-native/typescript-config": "latest",
|
|
84
|
+
"@shopify/flash-list": "latest",
|
|
85
|
+
"@types/react": "latest",
|
|
86
|
+
"react": "latest",
|
|
87
|
+
"react-native": "latest",
|
|
88
|
+
"react-native-builder-bob": "latest",
|
|
89
|
+
"react-native-gesture-handler": "latest",
|
|
90
|
+
"react-native-pager-view": "latest",
|
|
91
|
+
"react-native-reanimated": "latest",
|
|
92
|
+
"react-native-worklets": "latest",
|
|
93
|
+
"rimraf": "latest",
|
|
94
|
+
"typescript": "latest"
|
|
95
|
+
},
|
|
96
|
+
"react-native-builder-bob": {
|
|
97
|
+
"source": "src",
|
|
98
|
+
"output": "lib",
|
|
99
|
+
"targets": [
|
|
100
|
+
"commonjs",
|
|
101
|
+
"module",
|
|
102
|
+
[
|
|
103
|
+
"typescript",
|
|
104
|
+
{
|
|
105
|
+
"project": "tsconfig.build.json",
|
|
106
|
+
"tsc": "node_modules/typescript/bin/tsc"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"packageManager": "yarn@4.16.0+sha512.5374c94eb4ef6aa8188fb112f20c1aa6569f248d676c5e576e1fd2a1a4d8d87a96df65d9dfe1c2a0252cbe38bda46cf18d955005b81b43cc7607a5c9d56fd2b6"
|
|
112
|
+
}
|