@admin-layout/gluestack-ui-mobile 12.2.4-alpha.3 → 12.2.4-alpha.4
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 +12 -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/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/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/containers/layout/DrawerBottomNavigationConfig.d.ts +6 -6
- package/lib/containers/layout/DrawerConfig.d.ts +6 -6
- package/lib/containers/layout/ProLayout.js.map +1 -1
- package/lib/index.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/BottomTabBar.tsx +98 -99
- package/src/components/Layout/components/Sample.tsx +1 -1
- package/src/components/ToastAlert.tsx +11 -11
- package/src/components/UnAuthenticatedComponent.tsx +16 -26
- package/src/containers/layout/ProLayout.tsx +1 -1
- package/src/index.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.4](https://github.com/CDEBase/admin-layout/compare/v12.2.4-alpha.3...v12.2.4-alpha.4) (2026-01-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
9
|
+
|
|
6
10
|
## [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)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
@@ -31,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
31
35
|
|
|
32
36
|
### Bug Fixes
|
|
33
37
|
|
|
34
|
-
-
|
|
38
|
+
- refactored app error handler for mobile ([556ba7c](https://github.com/CDEBase/admin-layout/commit/556ba7c8452c50cc0dc6e3a1552aea6523e77d7c))
|
|
35
39
|
|
|
36
40
|
# [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)
|
|
37
41
|
|
|
@@ -45,7 +49,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
45
49
|
|
|
46
50
|
### Bug Fixes
|
|
47
51
|
|
|
48
|
-
-
|
|
52
|
+
- trigger locationchange epic only on route change ([098a3d0](https://github.com/cdmbase/admin-layout/commit/098a3d092d562642c6adc7d20af1c8b7bfb9033d))
|
|
49
53
|
|
|
50
54
|
# [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)
|
|
51
55
|
|
|
@@ -103,8 +107,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
103
107
|
|
|
104
108
|
### Bug Fixes
|
|
105
109
|
|
|
106
|
-
-
|
|
107
|
-
-
|
|
110
|
+
- added toast for mobile ([ca38f5c](https://github.com/cdebase/admin-layout/commit/ca38f5c2c5ba16d3e512ad690bb80257d511c74a))
|
|
111
|
+
- issue with toast for react navigation ([f2397cc](https://github.com/cdebase/admin-layout/commit/f2397cc433c1627e3af7ecc31ff949606bc9eac1))
|
|
108
112
|
|
|
109
113
|
# [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)
|
|
110
114
|
|
|
@@ -114,12 +118,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
114
118
|
|
|
115
119
|
### Bug Fixes
|
|
116
120
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
121
|
+
- added toast for mobile ([ca38f5c](https://github.com/cdmbase/admin-layout/commit/ca38f5c2c5ba16d3e512ad690bb80257d511c74a))
|
|
122
|
+
- issue with toast for react navigation ([f2397cc](https://github.com/cdmbase/admin-layout/commit/f2397cc433c1627e3af7ecc31ff949606bc9eac1))
|
|
119
123
|
|
|
120
124
|
# 3.0.0-alpha.0 (2022-11-09)
|
|
121
125
|
|
|
122
126
|
### Bug Fixes
|
|
123
127
|
|
|
124
|
-
-
|
|
125
|
-
-
|
|
128
|
+
- added toast for mobile ([ca38f5c](https://github.com/cdmbase/admin-layout/commit/ca38f5c2c5ba16d3e512ad690bb80257d511c74a))
|
|
129
|
+
- 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
|
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AAc,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"}
|
|
@@ -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,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EAAE,EAAE,EAAE,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"}
|
|
@@ -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":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ToastAlert.js","sourceRoot":"","sources":["../../src/components/ToastAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAY/G,YAAY;AACZ,UAAU;AACV,SAAS;AACT,UAAU;AAEV,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACvB,EAAE,EACF,MAAM,GAAG,MAAM,EACf,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,OAAO,GAAG,OAAO,EACjB,UAAU,EACV,KAAK,GAAG,IAAI,GACP,EAAE,EAAE;IACT,MAAM,OAAO,GAAG,QAAQ,GAAG,EAAE,CAAC;IAC9B,MAAM,UAAU,GAAG,MAAM,IAAI,MAAM,CAAC;IACpC,OAAO,CACH,oBAAC,KAAK,IAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU;QAC1D,oBAAC,MAAM,IAAC,KAAK,EAAC,IAAI;YACd,oBAAC,UAAU,QAAE,KAAK,CAAc;YAC/B,WAAW,IAAI,oBAAC,gBAAgB,QAAE,WAAW,CAAoB,CAC7D;QACR,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,CACnB,oBAAC,SAAS,IAAC,EAAE,EAAC,IAAI,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;YAC9C,oBAAC,IAAI,IAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAC,aAAa,GAAG,CACnC,CACf,CAAC,CAAC,CAAC,IAAI,CACJ,CACX,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from '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"}
|
|
@@ -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: {
|
|
@@ -186,7 +186,7 @@ export declare const appDrawerConfig: {
|
|
|
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 appDrawerConfig: {
|
|
|
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 appDrawerConfig: {
|
|
|
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: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProLayout.js","sourceRoot":"","sources":["../../../src/containers/layout/ProLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,IAAI,WAAgB,CAAC;AACrB,IAAI,SAAc,CAAC;AAEnB,MAAM,SAAS,GAAkB,CAAC,KAAK,EAAE,EAAE;IACvC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAM,EAAE,CAAC,CAAC;IAC1D,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACvD,SAAS,GAAG,SAAS,CAAC;IACtB,MAAM,
|
|
1
|
+
{"version":3,"file":"ProLayout.js","sourceRoot":"","sources":["../../../src/containers/layout/ProLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,qBAAqB,MAA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O,CACH,oBAAC,aAAa;QACV,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI;YAChF,SAAS;YACV,oBAAC,UAAU,OAAG;YACd,oBAAC,uBAAuB,IAAC,OAAO,EAAE,OAAO,GAAI,CAClB,CACnB,CACnB,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,aAAa,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAsB,MAAM,0BAA0B,CAAC;AAChF,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAE9C,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAE9C,uDAAuD;AACvD,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,iDAAiD;AAEjD,OAAO,EACH,gBAAgB,EAEhB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,YAAY,GACf,CAAC;AAEF,eAAe,IAAI,OAAO,CAAC;IACvB,OAAO,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,iBAAiB,EAAE;IACzD,iBAAiB,EAAE;QACf,YAAY,EAAE,CAAC,cAAc,CAAC;KACjC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/gluestack-ui-mobile",
|
|
3
|
-
"version": "12.2.4-alpha.
|
|
3
|
+
"version": "12.2.4-alpha.4",
|
|
4
4
|
"description": "Glustack-ui for mobile component layout",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"watch": "npm run build:lib:watch"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@admin-layout/client": "12.2.4-alpha.
|
|
26
|
+
"@admin-layout/client": "12.2.4-alpha.4",
|
|
27
27
|
"@gluestack-style/react": "^1.0.53",
|
|
28
28
|
"@gluestack-ui/config": "^1.1.18",
|
|
29
29
|
"@gluestack-ui/nativewind-utils": "^1.0.26",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/react-window": "^1.8.8",
|
|
39
|
-
"common": "12.2.4-alpha.
|
|
39
|
+
"common": "12.2.4-alpha.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@common-stack/remix-router-redux": "^6.0.2-alpha.2",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"typescript": {
|
|
51
51
|
"definition": "lib/index.d.ts"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "b88c77dd51092d2ac4992bdd438c430612e2e7e2"
|
|
54
54
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { FallbackComponent } from './Fallback';
|
|
3
3
|
import { logger } from '@cdm-logger/client';
|
|
4
|
-
import { useDispatch } from 'react-redux'
|
|
4
|
+
import { useDispatch } from 'react-redux';
|
|
5
5
|
|
|
6
|
-
type IErrorBoundryState = { hasError: boolean
|
|
6
|
+
type IErrorBoundryState = { hasError: boolean; error: Error | null };
|
|
7
7
|
type IErrorBoundryProps = {
|
|
8
|
-
|
|
8
|
+
children: ReactElement;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export class ErrorBoundary extends React.Component<IErrorBoundryProps, IErrorBoundryState> {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
constructor(props: IErrorBoundryProps) {
|
|
13
|
+
super(props);
|
|
14
|
+
this.state = { hasError: false, error: null };
|
|
15
|
+
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
static getDerivedStateFromError(error: Error) {
|
|
18
|
+
return { hasError: true, error };
|
|
19
|
+
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
componentDidCatch(error: Error) {
|
|
22
|
+
logger.debug(error);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
render() {
|
|
26
|
+
if (this.state.hasError) {
|
|
27
|
+
return <FallbackComponent error={this.state.error as Error} />;
|
|
28
|
+
}
|
|
29
|
+
return this.props.children;
|
|
28
30
|
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
31
|
+
}
|
|
@@ -1,65 +1,61 @@
|
|
|
1
1
|
import { navigationRef } from '@common-stack/client-react';
|
|
2
|
-
import { Button,ButtonText } from '@gluestack-ui/themed'
|
|
3
|
-
import * as React from 'react'
|
|
4
|
-
import { StyleSheet } from 'react-native'
|
|
2
|
+
import { Button, ButtonText } from '@gluestack-ui/themed';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
Text,
|
|
9
|
-
View,
|
|
10
|
-
} from 'react-native'
|
|
11
|
-
import { useDispatch } from 'react-redux'
|
|
6
|
+
import { SafeAreaView, Text, View } from 'react-native';
|
|
7
|
+
import { useDispatch } from 'react-redux';
|
|
12
8
|
|
|
13
|
-
type Props = { error: Error }
|
|
9
|
+
type Props = { error: Error };
|
|
14
10
|
|
|
15
11
|
export const FallbackComponent = (props: Props) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
12
|
+
const dispatch = useDispatch();
|
|
13
|
+
return (
|
|
14
|
+
<SafeAreaView style={styles.container}>
|
|
15
|
+
<View style={styles.content}>
|
|
16
|
+
<Text style={styles.title}>Oops!</Text>
|
|
17
|
+
<Text style={styles.subtitle}>{"There's an error"}</Text>
|
|
18
|
+
<Text style={styles.error}>{props?.error?.message}</Text>
|
|
19
|
+
<Button style={styles.button} onPress={() => navigationRef.navigate('MainStack.Layout.Home')}>
|
|
20
|
+
<ButtonText style={styles.buttonText}>Go to homepage</ButtonText>
|
|
21
|
+
</Button>
|
|
22
|
+
</View>
|
|
23
|
+
</SafeAreaView>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
30
26
|
|
|
31
27
|
const styles: any = StyleSheet.create({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
})
|
|
28
|
+
container: {
|
|
29
|
+
backgroundColor: '#fafafa',
|
|
30
|
+
flex: 1,
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
},
|
|
33
|
+
content: {
|
|
34
|
+
marginHorizontal: 16,
|
|
35
|
+
},
|
|
36
|
+
title: {
|
|
37
|
+
fontSize: 48,
|
|
38
|
+
fontWeight: '300',
|
|
39
|
+
paddingBottom: 16,
|
|
40
|
+
color: '#000',
|
|
41
|
+
},
|
|
42
|
+
subtitle: {
|
|
43
|
+
fontSize: 32,
|
|
44
|
+
fontWeight: '800',
|
|
45
|
+
color: '#000',
|
|
46
|
+
},
|
|
47
|
+
error: {
|
|
48
|
+
paddingVertical: 16,
|
|
49
|
+
},
|
|
50
|
+
button: {
|
|
51
|
+
backgroundColor: '#2196f3',
|
|
52
|
+
borderRadius: 50,
|
|
53
|
+
padding: 25,
|
|
54
|
+
height: 40,
|
|
55
|
+
},
|
|
56
|
+
buttonText: {
|
|
57
|
+
color: '#fff',
|
|
58
|
+
fontWeight: '600',
|
|
59
|
+
textAlign: 'center',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {Box,Pressable,Center,Text, SafeAreaView} from '@gluestack-ui/themed';
|
|
2
|
+
import { Box, Pressable, Center, Text, SafeAreaView } from '@gluestack-ui/themed';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import { useRoute } from '@react-navigation/native';
|
|
5
5
|
import { navigationRef } from '@common-stack/client-react';
|
|
6
6
|
|
|
7
|
-
export const BottomTabBar = ({ state, descriptors, navigation
|
|
8
|
-
const tabBarProps = props?.customTabBarProps??{};
|
|
7
|
+
export const BottomTabBar = ({ state, descriptors, navigation, ...props }: any) => {
|
|
8
|
+
const tabBarProps = props?.customTabBarProps ?? {};
|
|
9
9
|
const settings = useSelector<any>((state) => state.settings) as any;
|
|
10
10
|
//const currentRoute: any = useRoute();
|
|
11
11
|
const currentRoute: any = navigationRef.isReady() ? navigationRef?.getCurrentRoute() : null;
|
|
@@ -23,118 +23,117 @@ export const BottomTabBar = ({ state, descriptors, navigation,...props }: any) =
|
|
|
23
23
|
(b.options.priority ? b.options.priority : b.options.title),
|
|
24
24
|
);
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (!isFocused && !event.defaultPrevented) {
|
|
35
|
-
// The `merge: true` option makes sure that the params inside the tab screen are preserved
|
|
36
|
-
navigation.navigate({
|
|
37
|
-
name: route.route.name,
|
|
38
|
-
merge: true,
|
|
39
|
-
orgName: currentRoute?.params?.orgName || platformState?.orgName,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, []);
|
|
26
|
+
const onPress = React.useCallback((route, navigation, isFocused) => {
|
|
27
|
+
if (route?.route) {
|
|
28
|
+
const event = navigation.emit({
|
|
29
|
+
type: 'tabPress',
|
|
30
|
+
target: route.route.key,
|
|
31
|
+
canPreventDefault: true,
|
|
32
|
+
});
|
|
44
33
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
navigation.
|
|
48
|
-
|
|
49
|
-
|
|
34
|
+
if (!isFocused && !event.defaultPrevented) {
|
|
35
|
+
// The `merge: true` option makes sure that the params inside the tab screen are preserved
|
|
36
|
+
navigation.navigate({
|
|
37
|
+
name: route.route.name,
|
|
38
|
+
merge: true,
|
|
39
|
+
orgName: currentRoute?.params?.orgName || platformState?.orgName,
|
|
50
40
|
});
|
|
51
41
|
}
|
|
52
|
-
}
|
|
42
|
+
}
|
|
43
|
+
}, []);
|
|
53
44
|
|
|
45
|
+
const onLongPress = React.useCallback((route, navigation, isFocused) => {
|
|
46
|
+
if (route?.route) {
|
|
47
|
+
navigation.emit({
|
|
48
|
+
type: 'tabLongPress',
|
|
49
|
+
target: route.route.key,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}, []);
|
|
54
53
|
|
|
55
54
|
return (
|
|
56
55
|
<SafeAreaView>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
<Box
|
|
57
|
+
flexDirection="row"
|
|
58
|
+
width="100%"
|
|
59
|
+
alignSelf="center"
|
|
60
|
+
bg={'$white'}
|
|
61
|
+
borderTopWidth={'$1'}
|
|
62
|
+
borderTopColor={'#d3d3d3'}
|
|
63
|
+
py={'$4'}
|
|
64
|
+
{...tabBarProps}
|
|
65
|
+
>
|
|
66
|
+
{appRoutes.map((route: any, index: any) => {
|
|
67
|
+
const options = route.options;
|
|
68
|
+
const label =
|
|
69
|
+
options.tabBarLabel !== undefined
|
|
70
|
+
? options.tabBarLabel
|
|
71
|
+
: options.title !== undefined
|
|
73
72
|
? options.title
|
|
74
73
|
: route.route.name;
|
|
75
74
|
|
|
76
|
-
|
|
75
|
+
const isFocused = state.index === route.index;
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
// const onPress = () => {
|
|
78
|
+
// const event = navigation.emit({
|
|
79
|
+
// type: 'tabPress',
|
|
80
|
+
// target: route.route.key,
|
|
81
|
+
// canPreventDefault: true,
|
|
82
|
+
// });
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
// if (!isFocused && !event.defaultPrevented) {
|
|
85
|
+
// // The `merge: true` option makes sure that the params inside the tab screen are preserved
|
|
86
|
+
// navigation.navigate({
|
|
87
|
+
// name: route.route.name,
|
|
88
|
+
// merge: true,
|
|
89
|
+
// orgName: currentRoute?.params?.orgName || platformState?.orgName,
|
|
90
|
+
// });
|
|
91
|
+
// }
|
|
92
|
+
// };
|
|
94
93
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
// const onLongPress = () => {
|
|
95
|
+
// navigation.emit({
|
|
96
|
+
// type: 'tabLongPress',
|
|
97
|
+
// target: route.route.key,
|
|
98
|
+
// });
|
|
99
|
+
// };
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
101
|
+
return (
|
|
102
|
+
<Pressable
|
|
103
|
+
key={index}
|
|
104
|
+
opacity={isFocused ? '$100' : '$50'}
|
|
105
|
+
// pb="$8"
|
|
106
|
+
// pt={"$3"}
|
|
107
|
+
flex={1}
|
|
108
|
+
onPress={() => onPress(route, navigation, isFocused)}
|
|
109
|
+
onLongPress={() => onLongPress(route, navigation, isFocused)}
|
|
110
|
+
testID={options.tabBarTestID}
|
|
111
|
+
accessibilityState={isFocused ? { selected: true } : {}}
|
|
112
|
+
accessibilityLabel={options.tabBarAccessibilityLabel}
|
|
113
|
+
>
|
|
114
|
+
<Center>
|
|
115
|
+
{options?.tabBarIcon
|
|
116
|
+
? options.tabBarIcon({
|
|
117
|
+
color: isFocused
|
|
118
|
+
? options.tabBarActiveTintColor
|
|
119
|
+
: options.tabBarInactiveTintColor,
|
|
120
|
+
size: 24,
|
|
121
|
+
})
|
|
122
|
+
: null}
|
|
124
123
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
<Text
|
|
125
|
+
color={isFocused ? options.tabBarActiveTintColor : options.tabBarInactiveTintColor}
|
|
126
|
+
style={{ fontSize: 12 }}
|
|
127
|
+
>
|
|
128
|
+
{label}
|
|
129
|
+
</Text>
|
|
130
|
+
</Center>
|
|
131
|
+
</Pressable>
|
|
132
|
+
);
|
|
133
|
+
})}
|
|
134
|
+
</Box>
|
|
136
135
|
</SafeAreaView>
|
|
137
136
|
);
|
|
138
137
|
};
|
|
139
138
|
|
|
140
|
-
export default BottomTabBar;
|
|
139
|
+
export default BottomTabBar;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
Toast,
|
|
5
|
-
VStack,
|
|
6
|
-
ToastTitle,
|
|
7
|
-
ToastDescription,
|
|
8
|
-
Pressable,
|
|
9
|
-
Icon,
|
|
10
|
-
CloseIcon,
|
|
11
|
-
} from '@gluestack-ui/themed';
|
|
3
|
+
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon } from '@gluestack-ui/themed';
|
|
12
4
|
|
|
13
5
|
interface IToast {
|
|
14
6
|
id: string;
|
|
@@ -17,7 +9,7 @@ interface IToast {
|
|
|
17
9
|
description?: string;
|
|
18
10
|
isClosable?: boolean;
|
|
19
11
|
toast?: any;
|
|
20
|
-
variant?:any
|
|
12
|
+
variant?: any;
|
|
21
13
|
}
|
|
22
14
|
|
|
23
15
|
// variants:
|
|
@@ -25,7 +17,15 @@ interface IToast {
|
|
|
25
17
|
// solid,
|
|
26
18
|
// outline
|
|
27
19
|
|
|
28
|
-
export const ToastAlert = ({
|
|
20
|
+
export const ToastAlert = ({
|
|
21
|
+
id,
|
|
22
|
+
status = 'info',
|
|
23
|
+
title = '',
|
|
24
|
+
description = '',
|
|
25
|
+
variant = 'solid',
|
|
26
|
+
isClosable,
|
|
27
|
+
toast = null,
|
|
28
|
+
}: IToast) => {
|
|
29
29
|
const toastId = 'toast-' + id;
|
|
30
30
|
const actionType = status || 'info';
|
|
31
31
|
return (
|
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
Button,
|
|
5
|
-
Heading,
|
|
6
|
-
Text,
|
|
7
|
-
HStack,
|
|
8
|
-
Pressable,
|
|
9
|
-
Divider,
|
|
10
|
-
ButtonText,
|
|
11
|
-
SafeAreaView,
|
|
12
|
-
} from '@gluestack-ui/themed';
|
|
2
|
+
import { Box, Button, Heading, Text, HStack, Pressable, Divider, ButtonText, SafeAreaView } from '@gluestack-ui/themed';
|
|
13
3
|
import { useNavigation } from '@react-navigation/native';
|
|
14
4
|
import { Ionicons } from '@expo/vector-icons';
|
|
15
5
|
import { Linking } from 'react-native';
|
|
16
6
|
|
|
17
|
-
|
|
7
|
+
const UnAuthenticatedComponent = () => {
|
|
18
8
|
const navigation = useNavigation<any>();
|
|
19
9
|
return (
|
|
20
10
|
<SafeAreaView flex={1}>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
11
|
+
<Box flex={1} borderTopWidth={'$1'} borderTopColor={'$trueGray200'}>
|
|
12
|
+
{/* <Box h={'$1'} bg={Colors.primaryBgColor} /> */}
|
|
13
|
+
<Box flex={1} p={'$6'} bg="$white" justifyContent={'center'}>
|
|
14
|
+
<Heading mt={'$2'}>Login</Heading>
|
|
15
|
+
<Text fontSize="$md" mt={'$2'}>
|
|
16
|
+
Log in to continue.
|
|
17
|
+
</Text>
|
|
18
|
+
<Button bg={'$blue500'} size="lg" my={'$3'} onPress={() => navigation.navigate('MainStack.Login')}>
|
|
19
|
+
<ButtonText color="$white">Login</ButtonText>
|
|
20
|
+
</Button>
|
|
21
|
+
<Divider my={'$3'} />
|
|
22
|
+
</Box>
|
|
32
23
|
</Box>
|
|
33
|
-
</
|
|
34
|
-
</SafeAreaView>
|
|
24
|
+
</SafeAreaView>
|
|
35
25
|
);
|
|
36
26
|
};
|
|
37
27
|
|
|
38
|
-
export default UnAuthenticatedComponent;
|
|
28
|
+
export default UnAuthenticatedComponent;
|
|
@@ -11,7 +11,7 @@ const ProLayout: React.FC<any> = (props) => {
|
|
|
11
11
|
const [appRoutes, setAppRoutes] = React.useState<any>([]);
|
|
12
12
|
const { pathKey, appLayout } = useLayoutSetting(props);
|
|
13
13
|
AppLayout = appLayout;
|
|
14
|
-
const {appFeatures} = routeConfigKeyReplace(pathKey, props?.features,appLayout);
|
|
14
|
+
const { appFeatures } = routeConfigKeyReplace(pathKey, props?.features, appLayout);
|
|
15
15
|
AppFeatures = appFeatures;
|
|
16
16
|
|
|
17
17
|
React.useEffect(() => {
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { settingsReducer } from './redux/settings';
|
|
|
5
5
|
import { useAfterInteractions } from './hooks/use-after-interactions';
|
|
6
6
|
import useIsReady from './hooks/useIsReady';
|
|
7
7
|
import routeConfigKeyReplace from './utils/routeConfigKeyReplace';
|
|
8
|
-
import {getReplacedRouteConfig} from './utils/getReplacedRouteConfig'
|
|
8
|
+
import { getReplacedRouteConfig } from './utils/getReplacedRouteConfig';
|
|
9
9
|
import LayoutFeature, { ProLayout, AppFeatures, AppLayout } from './containers/layout/module';
|
|
10
10
|
import { useLayoutSetting, LayoutSettingProps } from './hooks/useLayoutSetting';
|
|
11
11
|
import i18next from './config/i18next';
|
|
@@ -21,7 +21,6 @@ export * from '@gluestack-ui/config';
|
|
|
21
21
|
export * from '@gluestack-style/react';
|
|
22
22
|
//............................gluestack-ui....///
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
export {
|
|
26
25
|
useLayoutSetting,
|
|
27
26
|
LayoutSettingProps,
|