@admin-layout/gluestack-ui-mobile 12.2.4-alpha.0 → 12.2.4-alpha.12
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/CHANGELOG.md +32 -8
- package/lib/components/ErrorBounday.js.map +1 -1
- package/lib/components/Fallback.js +11 -11
- package/lib/components/Fallback.js.map +1 -1
- package/lib/components/Layout/components/BasicLayout.js +1 -5
- package/lib/components/Layout/components/BasicLayout.js.map +1 -1
- package/lib/components/Layout/components/BottomTabBar.js +2 -2
- package/lib/components/Layout/components/BottomTabBar.js.map +1 -1
- package/lib/components/Layout/components/Sample.js.map +1 -1
- package/lib/components/Layout/components/SideBar.js +5 -6
- package/lib/components/Layout/components/SideBar.js.map +1 -1
- package/lib/components/NavigationComponent.js +1 -1
- package/lib/components/NavigationComponent.js.map +1 -1
- package/lib/components/ToastAlert.d.ts +1 -1
- package/lib/components/ToastAlert.js +2 -2
- package/lib/components/ToastAlert.js.map +1 -1
- package/lib/components/UnAuthenticatedComponent.js +1 -1
- package/lib/components/UnAuthenticatedComponent.js.map +1 -1
- package/lib/components/WithPermission.d.ts +1 -1
- package/lib/containers/layout/BasicLayout.js +3 -3
- package/lib/containers/layout/BasicLayout.js.map +1 -1
- package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +21 -21
- package/lib/containers/layout/DrawerConfig.d.ts +14 -14
- package/lib/containers/layout/ProLayout.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/tailwind-base-config.d.ts +2 -1
- package/lib/utils/generateMobileNavigations.js +36 -30
- package/lib/utils/generateMobileNavigations.js.map +1 -1
- package/package.json +4 -4
- package/src/components/ErrorBounday.tsx +19 -19
- package/src/components/Fallback.tsx +54 -58
- package/src/components/Layout/components/BasicLayout.tsx +2 -6
- package/src/components/Layout/components/BottomTabBar.tsx +98 -99
- package/src/components/Layout/components/Sample.tsx +1 -1
- package/src/components/Layout/components/SideBar.tsx +10 -14
- package/src/components/NavigationComponent.tsx +3 -1
- package/src/components/ToastAlert.tsx +11 -11
- package/src/components/UnAuthenticatedComponent.tsx +16 -26
- package/src/containers/layout/BasicLayout.tsx +3 -3
- package/src/containers/layout/ProLayout.tsx +1 -1
- package/src/index.ts +1 -2
- package/src/utils/generateMobileNavigations.ts +43 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [12.2.4-alpha.12](https://github.com/CDEBase/admin-layout/compare/v12.2.4-alpha.11...v12.2.4-alpha.12) (2026-01-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
9
|
+
|
|
10
|
+
## [12.2.4-alpha.7](https://github.com/CDEBase/admin-layout/compare/v12.2.4-alpha.6...v12.2.4-alpha.7) (2026-01-07)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
13
|
+
|
|
14
|
+
## [12.2.4-alpha.6](https://github.com/CDEBase/admin-layout/compare/v12.2.4-alpha.5...v12.2.4-alpha.6) (2026-01-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
17
|
+
|
|
18
|
+
## [12.2.4-alpha.4](https://github.com/CDEBase/admin-layout/compare/v12.2.4-alpha.3...v12.2.4-alpha.4) (2026-01-01)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
21
|
+
|
|
22
|
+
## [12.2.4-alpha.3](https://github.com/CDEBase/admin-layout/compare/v12.2.4-alpha.2...v12.2.4-alpha.3) (2025-12-24)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
25
|
+
|
|
26
|
+
## [12.2.4-alpha.1](https://github.com/CDEBase/admin-layout/compare/v12.2.4-alpha.0...v12.2.4-alpha.1) (2025-12-23)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
29
|
+
|
|
6
30
|
## [12.2.4-alpha.0](https://github.com/CDEBase/admin-layout/compare/v10.0.8-alpha.2...v12.2.4-alpha.0) (2025-12-23)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
@@ -23,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
23
47
|
|
|
24
48
|
### Bug Fixes
|
|
25
49
|
|
|
26
|
-
-
|
|
50
|
+
- refactored app error handler for mobile ([556ba7c](https://github.com/CDEBase/admin-layout/commit/556ba7c8452c50cc0dc6e3a1552aea6523e77d7c))
|
|
27
51
|
|
|
28
52
|
# [3.0.0-alpha.44](https://github.com/CDEBase/admin-layout/compare/v3.0.0-alpha.43...v3.0.0-alpha.44) (2023-02-04)
|
|
29
53
|
|
|
@@ -37,7 +61,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
37
61
|
|
|
38
62
|
### Bug Fixes
|
|
39
63
|
|
|
40
|
-
-
|
|
64
|
+
- trigger locationchange epic only on route change ([098a3d0](https://github.com/cdmbase/admin-layout/commit/098a3d092d562642c6adc7d20af1c8b7bfb9033d))
|
|
41
65
|
|
|
42
66
|
# [3.0.0-alpha.40](https://github.com/CDEBase/admin-layout/compare/v3.0.0-alpha.39...v3.0.0-alpha.40) (2023-01-26)
|
|
43
67
|
|
|
@@ -95,8 +119,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
95
119
|
|
|
96
120
|
### Bug Fixes
|
|
97
121
|
|
|
98
|
-
-
|
|
99
|
-
-
|
|
122
|
+
- added toast for mobile ([ca38f5c](https://github.com/cdebase/admin-layout/commit/ca38f5c2c5ba16d3e512ad690bb80257d511c74a))
|
|
123
|
+
- issue with toast for react navigation ([f2397cc](https://github.com/cdebase/admin-layout/commit/f2397cc433c1627e3af7ecc31ff949606bc9eac1))
|
|
100
124
|
|
|
101
125
|
# [3.0.0-alpha.3](https://github.com/cdmbase/admin-layout/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2022-11-22)
|
|
102
126
|
|
|
@@ -106,12 +130,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
106
130
|
|
|
107
131
|
### Bug Fixes
|
|
108
132
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
133
|
+
- added toast for mobile ([ca38f5c](https://github.com/cdmbase/admin-layout/commit/ca38f5c2c5ba16d3e512ad690bb80257d511c74a))
|
|
134
|
+
- issue with toast for react navigation ([f2397cc](https://github.com/cdmbase/admin-layout/commit/f2397cc433c1627e3af7ecc31ff949606bc9eac1))
|
|
111
135
|
|
|
112
136
|
# 3.0.0-alpha.0 (2022-11-09)
|
|
113
137
|
|
|
114
138
|
### Bug Fixes
|
|
115
139
|
|
|
116
|
-
-
|
|
117
|
-
-
|
|
140
|
+
- added toast for mobile ([ca38f5c](https://github.com/cdmbase/admin-layout/commit/ca38f5c2c5ba16d3e512ad690bb80257d511c74a))
|
|
141
|
+
- issue with toast for react navigation ([f2397cc](https://github.com/cdmbase/admin-layout/commit/f2397cc433c1627e3af7ecc31ff949606bc9eac1))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBounday.js","sourceRoot":"","sources":["../../src/components/ErrorBounday.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAQ5C,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAiD;
|
|
1
|
+
{"version":3,"file":"ErrorBounday.js","sourceRoot":"","sources":["../../src/components/ErrorBounday.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAQ5C,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAiD;IACtF,YAAY,KAAyB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAY;QACxC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACrC,CAAC;IAED,iBAAiB,CAAC,KAAY;QAC1B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,MAAM;QACF,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YACtB,OAAO,oBAAC,iBAAiB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAc,GAAI,CAAC;QACnE,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACJ"}
|
|
@@ -2,51 +2,51 @@ import { navigationRef } from '@common-stack/client-react';
|
|
|
2
2
|
import { Button, ButtonText } from '@gluestack-ui/themed';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { StyleSheet } from 'react-native';
|
|
5
|
-
import { SafeAreaView, Text, View
|
|
5
|
+
import { SafeAreaView, Text, View } from 'react-native';
|
|
6
6
|
import { useDispatch } from 'react-redux';
|
|
7
7
|
export const FallbackComponent = (props) => {
|
|
8
8
|
const dispatch = useDispatch();
|
|
9
9
|
return (React.createElement(SafeAreaView, { style: styles.container },
|
|
10
10
|
React.createElement(View, { style: styles.content },
|
|
11
11
|
React.createElement(Text, { style: styles.title }, "Oops!"),
|
|
12
|
-
React.createElement(Text, { style: styles.subtitle },
|
|
12
|
+
React.createElement(Text, { style: styles.subtitle }, "There's an error"),
|
|
13
13
|
React.createElement(Text, { style: styles.error }, props?.error?.message),
|
|
14
|
-
React.createElement(Button, { style: styles.button, onPress: () => navigationRef.navigate(
|
|
14
|
+
React.createElement(Button, { style: styles.button, onPress: () => navigationRef.navigate('MainStack.Layout.Home') },
|
|
15
15
|
React.createElement(ButtonText, { style: styles.buttonText }, "Go to homepage")))));
|
|
16
16
|
};
|
|
17
17
|
const styles = StyleSheet.create({
|
|
18
18
|
container: {
|
|
19
19
|
backgroundColor: '#fafafa',
|
|
20
20
|
flex: 1,
|
|
21
|
-
justifyContent: 'center'
|
|
21
|
+
justifyContent: 'center',
|
|
22
22
|
},
|
|
23
23
|
content: {
|
|
24
|
-
marginHorizontal: 16
|
|
24
|
+
marginHorizontal: 16,
|
|
25
25
|
},
|
|
26
26
|
title: {
|
|
27
27
|
fontSize: 48,
|
|
28
28
|
fontWeight: '300',
|
|
29
29
|
paddingBottom: 16,
|
|
30
|
-
color: '#000'
|
|
30
|
+
color: '#000',
|
|
31
31
|
},
|
|
32
32
|
subtitle: {
|
|
33
33
|
fontSize: 32,
|
|
34
34
|
fontWeight: '800',
|
|
35
|
-
color: '#000'
|
|
35
|
+
color: '#000',
|
|
36
36
|
},
|
|
37
37
|
error: {
|
|
38
|
-
paddingVertical: 16
|
|
38
|
+
paddingVertical: 16,
|
|
39
39
|
},
|
|
40
40
|
button: {
|
|
41
41
|
backgroundColor: '#2196f3',
|
|
42
42
|
borderRadius: 50,
|
|
43
43
|
padding: 25,
|
|
44
|
-
height: 40
|
|
44
|
+
height: 40,
|
|
45
45
|
},
|
|
46
46
|
buttonText: {
|
|
47
47
|
color: '#fff',
|
|
48
48
|
fontWeight: '600',
|
|
49
|
-
textAlign: 'center'
|
|
50
|
-
}
|
|
49
|
+
textAlign: 'center',
|
|
50
|
+
},
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=Fallback.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fallback.js","sourceRoot":"","sources":["../../src/components/Fallback.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Fallback.js","sourceRoot":"","sources":["../../src/components/Fallback.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,EAAE;IAC9C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,OAAO,CACH,oBAAC,YAAY,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS;QACjC,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO;YACvB,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,YAAc;YACvC,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,IAAG,kBAAkB,CAAQ;YACzD,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,IAAG,KAAK,EAAE,KAAK,EAAE,OAAO,CAAQ;YACzD,oBAAC,MAAM,IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,uBAAuB,CAAC;gBACxF,oBAAC,UAAU,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,qBAA6B,CAC5D,CACN,CACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,MAAM,GAAQ,UAAU,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE;QACP,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,QAAQ;KAC3B;IACD,OAAO,EAAE;QACL,gBAAgB,EAAE,EAAE;KACvB;IACD,KAAK,EAAE;QACH,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,aAAa,EAAE,EAAE;QACjB,KAAK,EAAE,MAAM;KAChB;IACD,QAAQ,EAAE;QACN,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,MAAM;KAChB;IACD,KAAK,EAAE;QACH,eAAe,EAAE,EAAE;KACtB;IACD,MAAM,EAAE;QACJ,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,EAAE;QAChB,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,EAAE;KACb;IACD,UAAU,EAAE;QACR,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,QAAQ;KACtB;CACJ,CAAC,CAAC"}
|
|
@@ -3,12 +3,11 @@ import { Route } from 'react-router-native';
|
|
|
3
3
|
import { Box, Divider } from '@gluestack-ui/themed';
|
|
4
4
|
import { Header } from './Header';
|
|
5
5
|
import { Drawer } from './Drawer';
|
|
6
|
-
import defaultSettings from './defaultSettings';
|
|
7
6
|
import { SettingDrawer } from './SettingDrawer';
|
|
8
7
|
import { BottomTabBar } from './BottomTabBar';
|
|
9
8
|
const BasicLayout = (props) => {
|
|
10
9
|
const { route, rightContentRender, onSettingChange, settings, routeParams, showSettings, currentRoute } = props;
|
|
11
|
-
const drawerRef = useRef();
|
|
10
|
+
const drawerRef = useRef(null);
|
|
12
11
|
const [settingToggle, setSettingToggle] = useState(false);
|
|
13
12
|
return (React.createElement(Box, { flex: 1 },
|
|
14
13
|
React.createElement(Header, { layout: settings.layout, setSettingToggle: setSettingToggle, title: currentRoute.name, drawerRef: drawerRef, rightContentRender: rightContentRender, settingToggle: settingToggle, navTheme: settings.navTheme, showSettings: showSettings, route: currentRoute.key, nextButton: currentRoute.nextButton }),
|
|
@@ -23,8 +22,5 @@ const BasicLayout = (props) => {
|
|
|
23
22
|
} })) : null,
|
|
24
23
|
settings && (settings.layout === 'mixSide' || settings.layout === 'bottom') && (React.createElement(BottomTabBar, { navTheme: settings.navTheme, routes: route.routes }))));
|
|
25
24
|
};
|
|
26
|
-
BasicLayout.defaultProps = {
|
|
27
|
-
...defaultSettings,
|
|
28
|
-
};
|
|
29
25
|
export default BasicLayout;
|
|
30
26
|
//# sourceMappingURL=BasicLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicLayout.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/BasicLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"BasicLayout.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/BasicLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAa,OAAO,EAAgB,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQ9C,MAAM,WAAW,GAAyC,CAAC,KAAK,EAAE,EAAE;I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C,SAAS,GAAI,CAC3E,CAAC;YACJ,CAAC,CAAC,IAAI;QACT,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CACf,oBAAC,aAAa,IACV,eAAe,EAAE,CAAC,QAAQ,EAAE,EAAE;gBAC1B,eAAe,CAAC,QAAQ,CAAC,CAAC;gBAC1B,gBAAgB,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,GACH,CACL,CAAC,CAAC,CAAC,IAAI;QACP,QAAQ,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,SAAS,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,IAAI,CAC5E,oBAAC,YAAY,IAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,GAAI,CACtE,CACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -43,7 +43,7 @@ export const BottomTabBar = ({ state, descriptors, navigation, ...props }) => {
|
|
|
43
43
|
}
|
|
44
44
|
}, []);
|
|
45
45
|
return (React.createElement(SafeAreaView, null,
|
|
46
|
-
React.createElement(Box, { flexDirection: "row", width: "100%", alignSelf: "center", bg: '$white', borderTopWidth:
|
|
46
|
+
React.createElement(Box, { flexDirection: "row", width: "100%", alignSelf: "center", bg: '$white', borderTopWidth: '$1', borderTopColor: '#d3d3d3', py: '$4', ...tabBarProps }, appRoutes.map((route, index) => {
|
|
47
47
|
const options = route.options;
|
|
48
48
|
const label = options.tabBarLabel !== undefined
|
|
49
49
|
? options.tabBarLabel
|
|
@@ -72,7 +72,7 @@ export const BottomTabBar = ({ state, descriptors, navigation, ...props }) => {
|
|
|
72
72
|
// target: route.route.key,
|
|
73
73
|
// });
|
|
74
74
|
// };
|
|
75
|
-
return (React.createElement(Pressable, { key: index, opacity: isFocused ?
|
|
75
|
+
return (React.createElement(Pressable, { key: index, opacity: isFocused ? '$100' : '$50',
|
|
76
76
|
// pb="$8"
|
|
77
77
|
// pt={"$3"}
|
|
78
78
|
flex: 1, onPress: () => onPress(route, navigation, isFocused), onLongPress: () => onLongPress(route, navigation, isFocused), testID: options.tabBarTestID, accessibilityState: isFocused ? { selected: true } : {}, accessibilityLabel: options.tabBarAccessibilityLabel },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/BottomTabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"BottomTabBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/BottomTabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,KAAK,EAAO,EAAE,EAAE;IAC9E,MAAM,WAAW,GAAG,KAAK,EAAE,iBAAiB,IAAI,EAAE,CAAC;IACnD,MAAM,QAAQ,GAAG,WAAW,CAAM,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAQ,CAAC;IACpE,uCAAuC;IACvC,MAAM,YAAY,GAAQ,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5F,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE,CAAE,KAAa,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,SAAS,GAAQ,MAAM,CAAC,IAAI,CAAC,WAAW,C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AAE,IAEtB,KAAK,CACH,CACF,CACD,CACf,CAAC;QACN,CAAC,CAAC,CACA,CACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sample.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Sample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Sample.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Sample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACvB,OAAO,CACH,oBAAC,GAAG;QACA,oBAAC,IAAI,iBAAc,CACjB,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -2,13 +2,12 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import { HStack, Text, Box, Divider, FlatList } from '@gluestack-ui/themed';
|
|
3
3
|
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
4
4
|
import { Ionicons } from '@expo/vector-icons';
|
|
5
|
-
import { Link } from 'react-router-native';
|
|
6
|
-
import { useHistory } from 'react-router-native';
|
|
5
|
+
import { Link, useNavigate } from 'react-router-native';
|
|
7
6
|
import { COLOR } from '../../../utils/ThemeColor';
|
|
8
7
|
const SideBar = ({ menuData, matchUrl, navTheme, drawerRef }) => {
|
|
9
8
|
const [icon, setIcon] = useState('chevron-down-outline');
|
|
10
9
|
const [isToggle, setToggle] = useState(false);
|
|
11
|
-
const
|
|
10
|
+
const navigate = useNavigate();
|
|
12
11
|
const toggle = () => {
|
|
13
12
|
if (isToggle) {
|
|
14
13
|
setIcon('chevron-down-outline');
|
|
@@ -21,13 +20,13 @@ const SideBar = ({ menuData, matchUrl, navTheme, drawerRef }) => {
|
|
|
21
20
|
};
|
|
22
21
|
const isMenuExist = menuData.length > 0;
|
|
23
22
|
const openMenuItem = (menu) => {
|
|
24
|
-
|
|
23
|
+
navigate(menu.path, { state: menu.name });
|
|
25
24
|
drawerRef.current.closeDrawer();
|
|
26
25
|
};
|
|
27
26
|
return (React.createElement(Box, { flex: 1, style: { backgroundColor: navTheme === 'dark' ? COLOR.GREYISH_BLACK : COLOR.WHITE } }, !!isMenuExist && (React.createElement(FlatList, { data: menuData, renderItem: ({ item }) => {
|
|
28
27
|
const keys = item?.key.split('.');
|
|
29
28
|
const arrowIcon = icon || 'chevron-down-outline';
|
|
30
|
-
return item?.routes ? (React.createElement(Box, { p:
|
|
29
|
+
return item?.routes ? (React.createElement(Box, { p: '$3' },
|
|
31
30
|
React.createElement(TouchableOpacity, { onPress: () => toggle() },
|
|
32
31
|
React.createElement(HStack, null,
|
|
33
32
|
React.createElement(Ionicons, { color: isToggle ? '#fff' : '#a1a1a1', name: "document-outline" }),
|
|
@@ -37,7 +36,7 @@ const SideBar = ({ menuData, matchUrl, navTheme, drawerRef }) => {
|
|
|
37
36
|
? item.routes.map((subMenu) => (React.createElement(Box, { key: subMenu.key },
|
|
38
37
|
React.createElement(Link, { to: subMenu.path, underlayColor: "#f0f4f7" },
|
|
39
38
|
React.createElement(Text, { style: { color: '#a1a1a1' } }, subMenu.name)))))
|
|
40
|
-
: null)) : (keys[0] != 'Main' && keys[0] == 'sidebar' && (React.createElement(Box, { key: item.key, p:
|
|
39
|
+
: null)) : (keys[0] != 'Main' && keys[0] == 'sidebar' && (React.createElement(Box, { key: item.key, p: '$3' },
|
|
41
40
|
React.createElement(TouchableOpacity, { style: { marginBottom: 10 }, onPress: () => openMenuItem(item) },
|
|
42
41
|
React.createElement(HStack, null,
|
|
43
42
|
React.createElement(Ionicons, { size: 20, color: navTheme === 'dark' ? COLOR.LIGHT_GREY : COLOR.BLACK, name: item.icon }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/SideBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAQ,IAAI,EAAE,GAAG,EAAa,OAAO,EAAU,QAAQ,EAAgB,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"SideBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/SideBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAQ,IAAI,EAAE,GAAG,EAAa,OAAO,EAAU,QAAQ,EAAgB,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AASlD,MAAM,OAAO,GAA2B,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IACpF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IACzD,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,GAAG,EAAE;QAChB,IAAI,QA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AAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK;gCAC3D,UAAU,EAAE,EAAE;6BACjB,IAEA,IAAI,CAAC,IAAI,CACP,CACF,CACM;gBACnB,oBAAC,OAAO,OAAG,CACT,CACT,CACJ,CAAC;QACN,CAAC,GACH,CACL,CACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE;QACJ,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,EAAE;QACb,YAAY,EAAE,EAAE;KACnB;CACJ,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -73,7 +73,7 @@ export const useLocationChange = () => {
|
|
|
73
73
|
return { setLocationChange };
|
|
74
74
|
};
|
|
75
75
|
export const NavigationContainerComponent = ({ children, configurableRoutes, independent, linking, }) => {
|
|
76
|
-
const routeNameRef = useRef();
|
|
76
|
+
const routeNameRef = useRef(undefined);
|
|
77
77
|
const dispatch = useDispatch();
|
|
78
78
|
const platformState = useSelector((state) => state.platform);
|
|
79
79
|
const { setLocationChange } = useLocationChange();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationComponent.js","sourceRoot":"","sources":["../../src/components/NavigationComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAkB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAS,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAkC,MAAM,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;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AY,CAAC,OAAO,GAAG,YAAY,CAAC;gBAEpC,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC,CAAC;gBAEzD,aAAa;gBACb,qCAAqC;gBACrC,iBAAiB;gBACjB,0BAA0B;gBAC1B,iCAAiC;gBACjC,kCAAkC;gBAClC,aAAa;gBACb,2BAA2B;gBAC3B,kCAAkC;gBAClC,yEAAyE;gBACzE,aAAa;gBACb,SAAS;gBACT,MAAM;YACV,CAAC;QACL,CAAC,IAEA,QAAQ,CACS,CACzB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -8,5 +8,5 @@ interface IToast {
|
|
|
8
8
|
toast?: any;
|
|
9
9
|
variant?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast }: IToast) => React.JSX.Element;
|
|
11
|
+
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast, }: IToast) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon
|
|
2
|
+
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon } from '@gluestack-ui/themed';
|
|
3
3
|
// variants:
|
|
4
4
|
// accent,
|
|
5
5
|
// solid,
|
|
6
6
|
// outline
|
|
7
|
-
export const ToastAlert = ({ id, status = 'info', title = '', description = '', variant = 'solid', isClosable, toast = null }) => {
|
|
7
|
+
export const ToastAlert = ({ id, status = 'info', title = '', description = '', variant = 'solid', isClosable, toast = null, }) => {
|
|
8
8
|
const toastId = 'toast-' + id;
|
|
9
9
|
const actionType = status || 'info';
|
|
10
10
|
return (React.createElement(Toast, { nativeID: toastId, variant: variant, action: actionType },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastAlert.js","sourceRoot":"","sources":["../../src/components/ToastAlert.tsx"],"names":[],"mappings":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 'react';
|
|
2
|
-
import { Box, Button, Heading, Text, Divider, ButtonText, SafeAreaView
|
|
2
|
+
import { Box, Button, Heading, Text, Divider, ButtonText, SafeAreaView } from '@gluestack-ui/themed';
|
|
3
3
|
import { useNavigation } from '@react-navigation/native';
|
|
4
4
|
const UnAuthenticatedComponent = () => {
|
|
5
5
|
const navigation = useNavigation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnAuthenticatedComponent.js","sourceRoot":"","sources":["../../src/components/UnAuthenticatedComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"UnAuthenticatedComponent.js","sourceRoot":"","sources":["../../src/components/UnAuthenticatedComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAqB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxH,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAClC,MAAM,UAAU,GAAG,aAAa,EAAO,CAAC;IACxC,OAAO,CACH,oBAAC,YAAY,IAAC,IAAI,EAAE,CAAC;QACjB,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc;YAE9D,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAC,QAAQ,EAAC,cAAc,EAAE,QAAQ;gBACvD,oBAAC,OAAO,IAAC,EAAE,EAAE,IAAI,YAAiB;gBAClC,oBAAC,IAAI,IAAC,QAAQ,EAAC,KAAK,EAAC,EAAE,EAAE,IAAI,0BAEtB;gBACP,oBAAC,MAAM,IAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC;oBAC7F,oBAAC,UAAU,IAAC,KAAK,EAAC,QAAQ,YAAmB,CACxC;gBACT,oBAAC,OAAO,IAAC,EAAE,EAAE,IAAI,GAAI,CACnB,CACJ,CACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -18,7 +18,7 @@ export interface IWithPermissionProps {
|
|
|
18
18
|
}>;
|
|
19
19
|
}
|
|
20
20
|
export declare const WithPermission: {
|
|
21
|
-
({ permissionKeys, children, permissionTypes, behaviour, message, alternative, render, }: IWithPermissionProps): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element
|
|
21
|
+
({ permissionKeys, children, permissionTypes, behaviour, message, alternative, render, }: IWithPermissionProps): string | number | bigint | boolean | Iterable<React.ReactNode> | React.JSX.Element | Promise<React.ReactNode>;
|
|
22
22
|
defaultProps: {
|
|
23
23
|
permissionTypes: PermissionType[];
|
|
24
24
|
behaviour: WithPermissionBehaviour;
|
|
@@ -2,15 +2,15 @@ import * as React from 'react';
|
|
|
2
2
|
import { connect } from 'react-redux';
|
|
3
3
|
import { Ionicons } from '@expo/vector-icons';
|
|
4
4
|
import { BasicLayout } from '../../components';
|
|
5
|
-
import {
|
|
5
|
+
import { useNavigate } from 'react-router-native';
|
|
6
6
|
import { useSelector } from 'react-redux';
|
|
7
7
|
import { CHANGE_SETTINGS_ACTION } from '@admin-layout/client';
|
|
8
8
|
const Layout = (props) => {
|
|
9
9
|
const user = useSelector((state) => state?.user);
|
|
10
10
|
const { settings } = props;
|
|
11
|
-
const
|
|
11
|
+
const navigate = useNavigate();
|
|
12
12
|
const logout = () => {
|
|
13
|
-
|
|
13
|
+
navigate('/logout');
|
|
14
14
|
};
|
|
15
15
|
return (React.createElement(BasicLayout, { ...props, ...settings, showSettings: true, currentRoute: props.route.routes.find((route) => {
|
|
16
16
|
if (route.path.split('/').pop() === props.location.pathname.split('/').pop()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicLayout.js","sourceRoot":"","sources":["../../../src/containers/layout/BasicLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAY,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BasicLayout.js","sourceRoot":"","sources":["../../../src/containers/layout/BasicLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAY,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAM9D,MAAM,MAAM,GAAsD,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACtD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,GAAG,EAAE;QAChB,QAAQ,CAAC,SAAS,CAAC,CAAC;IACxB,CAAC,CAAC;IACF,OAAO,CACH,oBAAC,WAAW,OACJ,KAAK,KACL,QAAQ,EACZ,YAAY,E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,CAC3B,QAAQ,CAAC;QACL,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,IAAI;KAChB,CAAC;CACT,CAAC,CACL,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -50,7 +50,7 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
50
50
|
UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
|
|
51
51
|
} & {
|
|
52
52
|
id: string;
|
|
53
|
-
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/
|
|
53
|
+
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
54
54
|
children: React.ReactNode;
|
|
55
55
|
layout?: (props: {
|
|
56
56
|
state: import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -70,7 +70,7 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
70
70
|
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>>, "beforeRemove", true>;
|
|
71
71
|
}> | ((props: {
|
|
72
72
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
73
|
-
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
73
|
+
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
74
74
|
}) => Partial<{
|
|
75
75
|
transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>>, "transitionStart", unknown>;
|
|
76
76
|
transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>>, "transitionEnd", unknown>;
|
|
@@ -84,10 +84,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
84
84
|
}>);
|
|
85
85
|
screenOptions?: import("@react-navigation/stack").StackNavigationOptions | ((props: {
|
|
86
86
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
87
|
-
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
87
|
+
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
88
88
|
theme: ReactNavigation.Theme;
|
|
89
89
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
90
|
-
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
90
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => React.ReactElement;
|
|
91
91
|
UNSTABLE_router?: <Action extends Readonly<{
|
|
92
92
|
type: string;
|
|
93
93
|
payload?: object;
|
|
@@ -96,10 +96,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
96
96
|
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
97
97
|
UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
|
|
98
98
|
} & {
|
|
99
|
-
id:
|
|
99
|
+
id: string;
|
|
100
100
|
}>;
|
|
101
|
-
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
102
|
-
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationEventMap, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
101
|
+
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>>;
|
|
102
|
+
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationEventMap, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => null;
|
|
103
103
|
};
|
|
104
104
|
name: string;
|
|
105
105
|
props: {
|
|
@@ -165,7 +165,7 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
165
165
|
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
166
166
|
} & {
|
|
167
167
|
defaultStatus?: import("@react-navigation/routers").DrawerStatus;
|
|
168
|
-
} & import("@react-navigation/drawer/lib/typescript/
|
|
168
|
+
} & import("@react-navigation/drawer/lib/typescript/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
169
169
|
children: React.ReactNode;
|
|
170
170
|
layout?: (props: {
|
|
171
171
|
state: import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -186,7 +186,7 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
186
186
|
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "beforeRemove", true>;
|
|
187
187
|
}> | ((props: {
|
|
188
188
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
189
|
-
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
189
|
+
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
190
190
|
}) => Partial<{
|
|
191
191
|
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "drawerItemPress", true>;
|
|
192
192
|
transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "transitionStart", unknown>;
|
|
@@ -201,10 +201,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
201
201
|
}>);
|
|
202
202
|
screenOptions?: import("@react-navigation/drawer").DrawerNavigationOptions | ((props: {
|
|
203
203
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
204
|
-
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
204
|
+
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
205
205
|
theme: ReactNavigation.Theme;
|
|
206
206
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
207
|
-
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
207
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => React.ReactElement;
|
|
208
208
|
UNSTABLE_router?: <Action extends Readonly<{
|
|
209
209
|
type: string;
|
|
210
210
|
payload?: object;
|
|
@@ -213,10 +213,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
213
213
|
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
214
214
|
UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
|
|
215
215
|
} & {
|
|
216
|
-
id:
|
|
216
|
+
id: string;
|
|
217
217
|
}>;
|
|
218
|
-
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
219
|
-
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationEventMap, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
218
|
+
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>>;
|
|
219
|
+
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationEventMap, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => null;
|
|
220
220
|
};
|
|
221
221
|
name: string;
|
|
222
222
|
props: {
|
|
@@ -277,7 +277,7 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
277
277
|
id: string;
|
|
278
278
|
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
279
279
|
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
280
|
-
} & import("@react-navigation/bottom-tabs/lib/typescript/
|
|
280
|
+
} & import("@react-navigation/bottom-tabs/lib/typescript/src/types").BottomTabNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
281
281
|
children: React.ReactNode;
|
|
282
282
|
layout?: (props: {
|
|
283
283
|
state: import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -296,7 +296,7 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
296
296
|
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>>, "beforeRemove", true>;
|
|
297
297
|
}> | ((props: {
|
|
298
298
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
299
|
-
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
299
|
+
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
300
300
|
}) => Partial<{
|
|
301
301
|
tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>>, "tabPress", true>;
|
|
302
302
|
tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>>, "tabLongPress", unknown>;
|
|
@@ -309,10 +309,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
309
309
|
}>);
|
|
310
310
|
screenOptions?: import("@react-navigation/bottom-tabs").BottomTabNavigationOptions | ((props: {
|
|
311
311
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
312
|
-
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
312
|
+
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
313
313
|
theme: ReactNavigation.Theme;
|
|
314
314
|
}) => import("@react-navigation/bottom-tabs").BottomTabNavigationOptions);
|
|
315
|
-
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
315
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => React.ReactElement;
|
|
316
316
|
UNSTABLE_router?: <Action extends Readonly<{
|
|
317
317
|
type: string;
|
|
318
318
|
payload?: object;
|
|
@@ -321,10 +321,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
321
321
|
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
322
322
|
UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
|
|
323
323
|
} & {
|
|
324
|
-
id:
|
|
324
|
+
id: string;
|
|
325
325
|
}>;
|
|
326
|
-
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
327
|
-
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
326
|
+
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>>;
|
|
327
|
+
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => null;
|
|
328
328
|
};
|
|
329
329
|
exact: boolean;
|
|
330
330
|
name: string;
|