@dgui/react-native-material-bars-shared 1.7.0-next.5 → 1.7.0
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/dist/TabBar.d.ts +1 -1
- package/dist/TabBar.js +2 -7
- package/dist/TabBar.js.map +1 -1
- package/dist/Tabs.d.ts +1 -1
- package/dist/Tabs.js +1 -3
- package/dist/Tabs.js.map +1 -1
- package/dist/renderScene.d.ts +1 -1
- package/package.json +11 -11
package/dist/TabBar.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export type RenderTabBar = (props: SceneRendererProps & {
|
|
|
6
6
|
title: string;
|
|
7
7
|
}>;
|
|
8
8
|
}) => ReactNode;
|
|
9
|
-
declare const TabBar: ({ indicatorStyle: parentIndicatorStyle,
|
|
9
|
+
declare const TabBar: ({ indicatorStyle: parentIndicatorStyle, style: parentStyle, tabStyle: parentTabStyle, ...props }: TabBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default TabBar;
|
|
11
11
|
export type TabBarProps = AnnoyingTabBarProps<any> & {};
|
package/dist/TabBar.js
CHANGED
|
@@ -31,7 +31,7 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const TabBar = (_a) => {
|
|
34
|
-
var { indicatorStyle: parentIndicatorStyle,
|
|
34
|
+
var { indicatorStyle: parentIndicatorStyle, style: parentStyle, tabStyle: parentTabStyle } = _a, props = __rest(_a, ["indicatorStyle", "style", "tabStyle"]);
|
|
35
35
|
const style = (0, react_1.useMemo)(() => {
|
|
36
36
|
return Object.assign(Object.assign({}, styles.tabBar), parentStyle);
|
|
37
37
|
}, [
|
|
@@ -47,12 +47,7 @@ const TabBar = (_a) => {
|
|
|
47
47
|
}, [
|
|
48
48
|
parentIndicatorStyle
|
|
49
49
|
]);
|
|
50
|
-
|
|
51
|
-
return Object.assign(Object.assign({}, styles.label), parentLabelStyle);
|
|
52
|
-
}, [
|
|
53
|
-
parentLabelStyle
|
|
54
|
-
]);
|
|
55
|
-
return ((0, jsx_runtime_1.jsx)(react_native_tab_view_1.TabBar, Object.assign({ bounces: true, indicatorStyle: indicatorStyle, labelStyle: labelStyle, pressColor: '#999', scrollEnabled: true, style: style, tabStyle: tabStyle }, props)));
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(react_native_tab_view_1.TabBar, Object.assign({ bounces: true, indicatorStyle: indicatorStyle, pressColor: '#999', scrollEnabled: true, style: style, tabStyle: tabStyle }, props)));
|
|
56
51
|
};
|
|
57
52
|
exports.default = TabBar;
|
|
58
53
|
//# sourceMappingURL=TabBar.js.map
|
package/dist/TabBar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabBar.js","sourceRoot":"","sources":["../src/TabBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,iCAGe;AACf,+CAKsB;AACtB,iEAK+B;AAE/B,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,eAAe,EAAE,SAAS;KAC3B;IACD,KAAK,EAAE;QACL,KAAK,EAAE,SAAS;QAChB,aAAa,EAAE,MAAM;KACtB;IACD,MAAM,EAAE;QACN,eAAe,EAAE,oBAAoB;KACtC;IACD,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC;AAWH,MAAM,MAAM,GAAG,CAAC,EAMF,EAAE,EAAE;QANF,EACd,cAAc,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"TabBar.js","sourceRoot":"","sources":["../src/TabBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,iCAGe;AACf,+CAKsB;AACtB,iEAK+B;AAE/B,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,eAAe,EAAE,SAAS;KAC3B;IACD,KAAK,EAAE;QACL,KAAK,EAAE,SAAS;QAChB,aAAa,EAAE,MAAM;KACtB;IACD,MAAM,EAAE;QACN,eAAe,EAAE,oBAAoB;KACtC;IACD,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC;AAWH,MAAM,MAAM,GAAG,CAAC,EAMF,EAAE,EAAE;QANF,EACd,cAAc,EAAE,oBAAoB,EAEpC,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,cAAc,OAEZ,EADT,KAAK,cALM,uCAMf,CADS;IAER,MAAM,KAAK,GAAyB,IAAA,eAAO,EACzC,GAAG,EAAE;QACH,uCACK,MAAM,CAAC,MAAM,GAGb,WAAW,EACd;IACJ,CAAC,EACD;QACE,WAAW;KACZ,CACF,CAAC;IAEF,MAAM,QAAQ,GAAyB,IAAA,eAAO,EAC5C,GAAG,EAAE;QACH,uCACK,MAAM,CAAC,SAAS,GAGhB,cAAc,EACjB;IACJ,CAAC,EACD;QACE,cAAc;KACf,CACF,CAAC;IAEF,MAAM,cAAc,GAAyB,IAAA,eAAO,EAClD,GAAG,EAAE;QACH,uCACK,MAAM,CAAC,SAAS,GAGhB,oBAAoB,EACvB;IACJ,CAAC,EACD;QACE,oBAAoB;KACrB,CACF,CAAC;IAgBF,OAAO,CACL,uBAAC,8BAAc,kBAGb,OAAO,QACP,cAAc,EAAE,cAAc,EAE9B,UAAU,EAAC,MAAM,EACjB,aAAa,QACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,IACd,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
package/dist/Tabs.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type FunctionComponent } from 'react';
|
|
|
3
3
|
import { type TabBarProps as AnnoyingTabBarProps } from 'react-native-tab-view';
|
|
4
4
|
declare const Tabs: FunctionComponent<TabsProps>;
|
|
5
5
|
export default Tabs;
|
|
6
|
-
export type TabsProps = Pick<AnnoyingTabBarProps<any>, 'indicatorStyle' | '
|
|
6
|
+
export type TabsProps = Pick<AnnoyingTabBarProps<any>, 'indicatorStyle' | 'style' | 'tabStyle'> & {
|
|
7
7
|
readonly defaultIndex: number;
|
|
8
8
|
readonly onSelectTab?: (tabIndex: number) => void;
|
|
9
9
|
readonly renderTabBarItem?: RenderTabBarItem;
|
package/dist/Tabs.js
CHANGED
|
@@ -9,7 +9,7 @@ const TabBar_1 = __importDefault(require("./TabBar"));
|
|
|
9
9
|
const TabBarItem_1 = __importDefault(require("./TabBarItem"));
|
|
10
10
|
const react_1 = require("react");
|
|
11
11
|
const react_native_tab_view_1 = require("react-native-tab-view");
|
|
12
|
-
const Tabs = ({ defaultIndex, indicatorStyle,
|
|
12
|
+
const Tabs = ({ defaultIndex, indicatorStyle, onSelectTab, renderTabBarItem: givenRenderTabBarItem, routes = [], style, tabStyle }) => {
|
|
13
13
|
const handleSelectTab = (0, react_1.useCallback)((tabIndex) => {
|
|
14
14
|
if (onSelectTab) {
|
|
15
15
|
onSelectTab(tabIndex);
|
|
@@ -47,7 +47,6 @@ const Tabs = ({ defaultIndex, indicatorStyle, labelStyle, onSelectTab, renderTab
|
|
|
47
47
|
const renderTabBar = (0, react_1.useMemo)(() => {
|
|
48
48
|
const render = (props) => {
|
|
49
49
|
return (0, TabBar_1.default)(Object.assign({ indicatorStyle,
|
|
50
|
-
labelStyle,
|
|
51
50
|
renderTabBarItem,
|
|
52
51
|
style,
|
|
53
52
|
tabStyle }, props));
|
|
@@ -55,7 +54,6 @@ const Tabs = ({ defaultIndex, indicatorStyle, labelStyle, onSelectTab, renderTab
|
|
|
55
54
|
return render;
|
|
56
55
|
}, [
|
|
57
56
|
indicatorStyle,
|
|
58
|
-
labelStyle,
|
|
59
57
|
renderTabBarItem,
|
|
60
58
|
style,
|
|
61
59
|
tabStyle
|
package/dist/Tabs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../src/Tabs.tsx"],"names":[],"mappings":";;;;;;AAAA,gEAAwC;AACx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C;gBAC9B,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;QACtB,CAAC,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,EACD;QACE,qBAAqB;KACtB,CACF,CAAC;IAEF,MAAM,YAAY,GAAG,IAAA,eAAO,EAC1B,GAAG,EAAE;QACH,MAAM,MAAM,GAAiB,CAAC,KAAK,EAAE,EAAE;YACrC,OAAO,IAAA,gBAAM,kBACX,cAAc;gBAEd,gBAAgB;gBAChB,KAAK;gBACL,QAAQ,IACL,KAAK,EACR,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,EACD;QACE,cAAc;QAEd,gBAAgB;QAChB,KAAK;QACL,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,+BAAkB,IACjB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,eAAe,EAC9B,WAAW,EAAE,aAAa,EAC1B,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
package/dist/renderScene.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ declare const _default: (routes: Array<{
|
|
|
3
3
|
title: string;
|
|
4
4
|
}>) => ({ route, jumpTo, position }: {
|
|
5
5
|
route: any;
|
|
6
|
-
} & Omit<import("react-native-tab-view").SceneRendererProps, "layout">) => JSX.Element;
|
|
6
|
+
} & Omit<import("react-native-tab-view").SceneRendererProps, "layout">) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default _default;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dgui/react-native-material-bars-shared",
|
|
3
3
|
"title": "Digested React GUI Shared Native Material Bars Shared Components",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
|
-
"version": "1.7.0
|
|
5
|
+
"version": "1.7.0",
|
|
6
6
|
"private": false,
|
|
7
7
|
"description": "Shared Native Material Bars (AppBar & DrawerBar) components for @dgui",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"clean:dist": "rimraf dist"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@digest/eslint-config-jest": "^4.
|
|
46
|
-
"@digest/eslint-config-react": "^4.
|
|
47
|
-
"@digest/eslint-config-typescript": "^4.
|
|
48
|
-
"@digest/jest-junit": "^4.
|
|
49
|
-
"@digest/jest-react": "^4.
|
|
50
|
-
"@digest/jest-typescript": "^4.
|
|
51
|
-
"@digest/typescript": "^4.
|
|
45
|
+
"@digest/eslint-config-jest": "^4.13.0",
|
|
46
|
+
"@digest/eslint-config-react": "^4.13.0",
|
|
47
|
+
"@digest/eslint-config-typescript": "^4.13.0",
|
|
48
|
+
"@digest/jest-junit": "^4.13.0",
|
|
49
|
+
"@digest/jest-react": "^4.13.0",
|
|
50
|
+
"@digest/jest-typescript": "^4.13.0",
|
|
51
|
+
"@digest/typescript": "^4.13.0",
|
|
52
52
|
"@types/jest": "^29.5.14",
|
|
53
53
|
"@types/react": "^18.3.12",
|
|
54
54
|
"@types/react-test-renderer": "^18.3.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"rimraf": "^6.0.1"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@dgui/react-shared": "1.7.0
|
|
69
|
-
"react-native-tab-view": "^
|
|
68
|
+
"@dgui/react-shared": "1.7.0",
|
|
69
|
+
"react-native-tab-view": "^4.0.5"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^18.0.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"material",
|
|
86
86
|
"typescript"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "51ac4fc2846f4b34cfe02dcada0f27f9341552f5"
|
|
89
89
|
}
|