@admin-layout/gluestack-ui-mobile 6.5.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/LICENSE +21 -0
  3. package/README.md +4 -0
  4. package/assets/logo.png +0 -0
  5. package/babel.config.js +26 -0
  6. package/jest-react-navigation-setup.js +14 -0
  7. package/jest.config.js +39 -0
  8. package/jest.env.js +2 -0
  9. package/lib/__tests__/prolayout-layout-feature.test.d.ts +1 -0
  10. package/lib/__tests__/prolayout-layout-feature.test.js +202 -0
  11. package/lib/__tests__/prolayout-layout-feature.test.js.map +1 -0
  12. package/lib/components/ApplicationErrorFillWrapper.d.ts +2 -0
  13. package/lib/components/ApplicationErrorFillWrapper.js +7 -0
  14. package/lib/components/ApplicationErrorFillWrapper.js.map +1 -0
  15. package/lib/components/ApplicationErrorHandler.d.ts +2 -0
  16. package/lib/components/ApplicationErrorHandler.js +24 -0
  17. package/lib/components/ApplicationErrorHandler.js.map +1 -0
  18. package/lib/components/ErrorBounday.d.ts +18 -0
  19. package/lib/components/ErrorBounday.js +22 -0
  20. package/lib/components/ErrorBounday.js.map +1 -0
  21. package/lib/components/Fallback.d.ts +6 -0
  22. package/lib/components/Fallback.js +53 -0
  23. package/lib/components/Fallback.js.map +1 -0
  24. package/lib/components/Layout/components/BasicLayout.d.ts +5 -0
  25. package/lib/components/Layout/components/BasicLayout.js +28 -0
  26. package/lib/components/Layout/components/BasicLayout.js.map +1 -0
  27. package/lib/components/Layout/components/BottomTabBar.d.ts +2 -0
  28. package/lib/components/Layout/components/BottomTabBar.js +90 -0
  29. package/lib/components/Layout/components/BottomTabBar.js.map +1 -0
  30. package/lib/components/Layout/components/Drawer.d.ts +2 -0
  31. package/lib/components/Layout/components/Drawer.js +253 -0
  32. package/lib/components/Layout/components/Drawer.js.map +1 -0
  33. package/lib/components/Layout/components/Header.d.ts +2 -0
  34. package/lib/components/Layout/components/Header.js +130 -0
  35. package/lib/components/Layout/components/Header.js.map +1 -0
  36. package/lib/components/Layout/components/Sample.d.ts +2 -0
  37. package/lib/components/Layout/components/Sample.js +7 -0
  38. package/lib/components/Layout/components/Sample.js.map +1 -0
  39. package/lib/components/Layout/components/SettingDrawer/LayoutButton.d.ts +3 -0
  40. package/lib/components/Layout/components/SettingDrawer/LayoutButton.js +66 -0
  41. package/lib/components/Layout/components/SettingDrawer/LayoutButton.js.map +1 -0
  42. package/lib/components/Layout/components/SettingDrawer/SettingDrawer.d.ts +2 -0
  43. package/lib/components/Layout/components/SettingDrawer/SettingDrawer.js +23 -0
  44. package/lib/components/Layout/components/SettingDrawer/SettingDrawer.js.map +1 -0
  45. package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.d.ts +3 -0
  46. package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js +24 -0
  47. package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js.map +1 -0
  48. package/lib/components/Layout/components/SettingDrawer/index.d.ts +1 -0
  49. package/lib/components/Layout/components/SettingDrawer/index.js +2 -0
  50. package/lib/components/Layout/components/SettingDrawer/index.js.map +1 -0
  51. package/lib/components/Layout/components/SideBar.d.ts +10 -0
  52. package/lib/components/Layout/components/SideBar.js +59 -0
  53. package/lib/components/Layout/components/SideBar.js.map +1 -0
  54. package/lib/components/Layout/components/defaultSettings.d.ts +4 -0
  55. package/lib/components/Layout/components/defaultSettings.js +16 -0
  56. package/lib/components/Layout/components/defaultSettings.js.map +1 -0
  57. package/lib/components/Layout/components/index.d.ts +4 -0
  58. package/lib/components/Layout/components/index.js +5 -0
  59. package/lib/components/Layout/components/index.js.map +1 -0
  60. package/lib/components/Layout/components/util.d.ts +1 -0
  61. package/lib/components/Layout/components/util.js +15 -0
  62. package/lib/components/Layout/components/util.js.map +1 -0
  63. package/lib/components/Layout/compute.d.ts +6 -0
  64. package/lib/components/Layout/compute.js +316 -0
  65. package/lib/components/Layout/compute.js.map +1 -0
  66. package/lib/components/Layout/compute.test.d.ts +6 -0
  67. package/lib/components/Layout/compute.test.js +120 -0
  68. package/lib/components/Layout/compute.test.js.map +1 -0
  69. package/lib/components/Layout/index.d.ts +4 -0
  70. package/lib/components/Layout/index.js +4 -0
  71. package/lib/components/Layout/index.js.map +1 -0
  72. package/lib/components/Layout/typings.d.ts +1 -0
  73. package/lib/components/Layout/typings.js +2 -0
  74. package/lib/components/Layout/typings.js.map +1 -0
  75. package/lib/components/NavigationComponent.d.ts +15 -0
  76. package/lib/components/NavigationComponent.js +120 -0
  77. package/lib/components/NavigationComponent.js.map +1 -0
  78. package/lib/components/PluginArea.d.ts +2 -0
  79. package/lib/components/PluginArea.js +8 -0
  80. package/lib/components/PluginArea.js.map +1 -0
  81. package/lib/components/ToastAlert.d.ts +12 -0
  82. package/lib/components/ToastAlert.js +17 -0
  83. package/lib/components/ToastAlert.js.map +1 -0
  84. package/lib/components/index.d.ts +9 -0
  85. package/lib/components/index.js +10 -0
  86. package/lib/components/index.js.map +1 -0
  87. package/lib/components/with-interactions-managed.d.ts +2 -0
  88. package/lib/components/with-interactions-managed.js +18 -0
  89. package/lib/components/with-interactions-managed.js.map +1 -0
  90. package/lib/config/config.d.ts +17 -0
  91. package/lib/config/config.js +18 -0
  92. package/lib/config/config.js.map +1 -0
  93. package/lib/config/index.d.ts +1 -0
  94. package/lib/config/index.js +2 -0
  95. package/lib/config/index.js.map +1 -0
  96. package/lib/constants/routes.d.ts +3 -0
  97. package/lib/constants/routes.js +5 -0
  98. package/lib/constants/routes.js.map +1 -0
  99. package/lib/containers/layout/BasicLayout.d.ts +7 -0
  100. package/lib/containers/layout/BasicLayout.js +36 -0
  101. package/lib/containers/layout/BasicLayout.js.map +1 -0
  102. package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +128 -0
  103. package/lib/containers/layout/DrawerBottomNavigationConfig.js +72 -0
  104. package/lib/containers/layout/DrawerBottomNavigationConfig.js.map +1 -0
  105. package/lib/containers/layout/DrawerConfig.d.ts +85 -0
  106. package/lib/containers/layout/DrawerConfig.js +48 -0
  107. package/lib/containers/layout/DrawerConfig.js.map +1 -0
  108. package/lib/containers/layout/Lifecycle.d.ts +13 -0
  109. package/lib/containers/layout/Lifecycle.js +18 -0
  110. package/lib/containers/layout/Lifecycle.js.map +1 -0
  111. package/lib/containers/layout/ProLayout.d.ts +5 -0
  112. package/lib/containers/layout/ProLayout.js +35 -0
  113. package/lib/containers/layout/ProLayout.js.map +1 -0
  114. package/lib/containers/layout/module.d.ts +5 -0
  115. package/lib/containers/layout/module.js +22 -0
  116. package/lib/containers/layout/module.js.map +1 -0
  117. package/lib/hooks/use-after-interactions.d.ts +6 -0
  118. package/lib/hooks/use-after-interactions.js +29 -0
  119. package/lib/hooks/use-after-interactions.js.map +1 -0
  120. package/lib/hooks/useIsReady.d.ts +2 -0
  121. package/lib/hooks/useIsReady.js +24 -0
  122. package/lib/hooks/useIsReady.js.map +1 -0
  123. package/lib/hooks/useLayoutSetting/index.d.ts +11 -0
  124. package/lib/hooks/useLayoutSetting/index.js +68 -0
  125. package/lib/hooks/useLayoutSetting/index.js.map +1 -0
  126. package/lib/index.d.ts +14 -0
  127. package/lib/index.js +26 -0
  128. package/lib/index.js.map +1 -0
  129. package/lib/interfaces/index.d.ts +1 -0
  130. package/lib/interfaces/index.js +2 -0
  131. package/lib/interfaces/index.js.map +1 -0
  132. package/lib/interfaces/settings.d.ts +4 -0
  133. package/lib/interfaces/settings.js +2 -0
  134. package/lib/interfaces/settings.js.map +1 -0
  135. package/lib/redux/settings.d.ts +80 -0
  136. package/lib/redux/settings.js +16 -0
  137. package/lib/redux/settings.js.map +1 -0
  138. package/lib/utils/ThemeColor.d.ts +8 -0
  139. package/lib/utils/ThemeColor.js +9 -0
  140. package/lib/utils/ThemeColor.js.map +1 -0
  141. package/lib/utils/routeConfigKeyReplace.d.ts +7 -0
  142. package/lib/utils/routeConfigKeyReplace.js +77 -0
  143. package/lib/utils/routeConfigKeyReplace.js.map +1 -0
  144. package/lib/utils/routeConfigKeyReplace.test.d.ts +1 -0
  145. package/lib/utils/routeConfigKeyReplace.test.js +102 -0
  146. package/lib/utils/routeConfigKeyReplace.test.js.map +1 -0
  147. package/package.json +40 -0
  148. package/src/__tests__/prolayout-layout-feature.test.tsx +207 -0
  149. package/src/components/ApplicationErrorFillWrapper.tsx +7 -0
  150. package/src/components/ApplicationErrorHandler.tsx +30 -0
  151. package/src/components/ErrorBounday.tsx +31 -0
  152. package/src/components/Fallback.tsx +65 -0
  153. package/src/components/Layout/README.md +11 -0
  154. package/src/components/Layout/components/BasicLayout.tsx +70 -0
  155. package/src/components/Layout/components/BottomTabBar.tsx +135 -0
  156. package/src/components/Layout/components/Drawer.tsx +412 -0
  157. package/src/components/Layout/components/Header.tsx +195 -0
  158. package/src/components/Layout/components/Sample.tsx +10 -0
  159. package/src/components/Layout/components/SettingDrawer/LayoutButton.tsx +102 -0
  160. package/src/components/Layout/components/SettingDrawer/SettingDrawer.tsx +60 -0
  161. package/src/components/Layout/components/SettingDrawer/ThemeColorButton.tsx +26 -0
  162. package/src/components/Layout/components/SettingDrawer/index.ts +1 -0
  163. package/src/components/Layout/components/SideBar.tsx +109 -0
  164. package/src/components/Layout/components/defaultSettings.ts +19 -0
  165. package/src/components/Layout/components/index.ts +4 -0
  166. package/src/components/Layout/components/util.ts +14 -0
  167. package/src/components/Layout/compute.test.tsx +129 -0
  168. package/src/components/Layout/compute.tsx +384 -0
  169. package/src/components/Layout/eslint.json +1 -0
  170. package/src/components/Layout/index.ts +5 -0
  171. package/src/components/Layout/typings.ts +1 -0
  172. package/src/components/NavigationComponent.tsx +154 -0
  173. package/src/components/PluginArea.tsx +11 -0
  174. package/src/components/ToastAlert.tsx +44 -0
  175. package/src/components/index.ts +9 -0
  176. package/src/components/with-interactions-managed.tsx +33 -0
  177. package/src/config/config.ts +17 -0
  178. package/src/config/index.ts +1 -0
  179. package/src/constants/routes.ts +3 -0
  180. package/src/containers/layout/BasicLayout.tsx +61 -0
  181. package/src/containers/layout/DrawerBottomNavigationConfig.tsx +85 -0
  182. package/src/containers/layout/DrawerConfig.tsx +59 -0
  183. package/src/containers/layout/Lifecycle.tsx +23 -0
  184. package/src/containers/layout/ProLayout.tsx +42 -0
  185. package/src/containers/layout/module.ts +24 -0
  186. package/src/hooks/use-after-interactions.ts +35 -0
  187. package/src/hooks/useIsReady.ts +31 -0
  188. package/src/hooks/useLayoutSetting/index.ts +99 -0
  189. package/src/index.ts +41 -0
  190. package/src/interfaces/index.ts +1 -0
  191. package/src/interfaces/settings.ts +5 -0
  192. package/src/redux/settings.ts +28 -0
  193. package/src/utils/ThemeColor.ts +9 -0
  194. package/src/utils/__snapshots__/routeConfigKeyReplace.test.ts.snap +117 -0
  195. package/src/utils/routeConfigKeyReplace.test.ts +114 -0
  196. package/src/utils/routeConfigKeyReplace.ts +74 -0
  197. package/tsconfig.json +37 -0
  198. package/types.d.ts +11 -0
  199. package/webpack.config.js +104 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.js","sourceRoot":"","sources":["../../../src/components/Layout/compute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAG,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,mBAAmB,GACrB,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IA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,yCAAyC;AACzC,2BAA2B;AAC3B,iDAAiD;AACjD,iCAAiC;AACjC,sBAAsB;AACtB,8EAA8E;AAC9E,kDAAkD;AAClD,6BAA6B;AAC7B,gCAAgC;AAChC,yCAAyC;AACzC,0CAA0C;AAC1C,mCAAmC;AACnC,kDAAkD;AAClD,wBAAwB;AACxB,wBAAwB;AACxB,qDAAqD;AAErD,iCAAiC;AACjC,gDAAgD;AAChD,2GAA2G;AAC3G,iDAAiD;AACjD,2BAA2B;AAC3B,uBAAuB;AACvB,oBAAoB;AACpB,gBAAgB;AAChB,KAAK;AAEL,gDAAgD;AAChD,wCAAwC;AACxC,MAAM;AAEN,yDAAyD;AACzD,iDAAiD;AACjD,MAAM;AAEN,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAU,EAAE,EAAE,CAC3C,IAAI,OAAO,CAAC;IACR,WAAW,EAAE,YAAY,CAAC,KAAK,CAAQ;CAC1C,CAAC,CAAC;AAEP,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAU,EAAE,EAAE,CACpD,IAAI,OAAO,CAAC;IACR,WAAW,EAAE,qBAAqB,CAAC,KAAK,CAAQ;CACnD,CAAC,CAAC;AAEP,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAU,EAAE,EAAE,CAChD,IAAI,OAAO,CAAC;IACV,WAAW,EAAE,eAAe,CAAC,KAAK,CAAQ;CAC3C,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,uBAAuB,GAAI,CAAC,KAAU,EAAE,EAAE,CACpD,IAAI,OAAO,CAAC;IACX,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAQ;CAC/C,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,OAAO,CAAC;IACjD,WAAW,EAAE,qBAA4B;CAC5C,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Feature } from '@common-stack/client-react';
2
+ export declare const appDrawerFeature: (props?: any) => Feature;
3
+ export declare const appDrawerBottomTabFeature: (props?: any) => Feature;
4
+ export declare const appBottomTabFeature: Feature;
5
+ export declare const appHostBottomTabFeature: Feature;
6
+ export declare const appBottomTabDrawerFeature: Feature;
@@ -0,0 +1,120 @@
1
+ import { Feature } from '@common-stack/client-react';
2
+ import { createDrawerNavigator } from '@react-navigation/drawer';
3
+ import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
4
+ const drawerConfig = (props = null) => {
5
+ return {
6
+ ['//main_drawer']: {
7
+ exact: false,
8
+ container: createDrawerNavigator(),
9
+ name: 'MainDrawer',
10
+ props: {
11
+ initialRouteName: 'MainStack.MainDrawer.Home',
12
+ screenOptions: (options) => {
13
+ return {
14
+ headerShown: true,
15
+ drawerIcon: 'grid',
16
+ };
17
+ },
18
+ },
19
+ },
20
+ };
21
+ };
22
+ const bottomTabConfig = {
23
+ ['//bottom_tab']: {
24
+ container: createBottomTabNavigator(),
25
+ exact: false,
26
+ name: 'MainBottomTab',
27
+ props: {
28
+ initialRouteName: 'MainStack.MainBottomTab.Home',
29
+ screenOptions: ({ route }) => {
30
+ return {
31
+ headerShown: false,
32
+ title: 'Home',
33
+ headerTitle: 'Home',
34
+ tabBarActiveTintColor: '#4c87f9',
35
+ tabBarInactiveTintColor: 'black',
36
+ };
37
+ },
38
+ },
39
+ },
40
+ };
41
+ const hostBottomTabConfig = {
42
+ ['//host_tab']: {
43
+ container: createBottomTabNavigator(),
44
+ exact: false,
45
+ name: 'HostTab',
46
+ props: {
47
+ initialRouteName: 'MainStack.HostTab.Booking',
48
+ },
49
+ },
50
+ };
51
+ const drawerBottomTabConfig = (props = null) => {
52
+ return {
53
+ ['//main_drawer']: {
54
+ exact: false,
55
+ container: createDrawerNavigator(),
56
+ name: 'MainDrawer',
57
+ props: {
58
+ initialRouteName: 'MainStack.MainDrawer.MainBottomTab',
59
+ screenOptions: (options) => {
60
+ return {
61
+ headerShown: false,
62
+ drawerIcon: 'grid',
63
+ };
64
+ },
65
+ },
66
+ },
67
+ ['//main_drawer/bottom_tab']: {
68
+ container: createBottomTabNavigator(),
69
+ exact: false,
70
+ name: 'MainBottomTab',
71
+ props: {
72
+ initialRouteName: 'MainStack.MainDrawer.MainBottomTab.Home',
73
+ screenOptions: ({ route }) => {
74
+ return {
75
+ headerShown: true,
76
+ title: 'Home',
77
+ headerTitle: 'Home',
78
+ tabBarActiveTintColor: '#ff5a60',
79
+ tabBarInactiveTintColor: 'black',
80
+ };
81
+ },
82
+ },
83
+ },
84
+ };
85
+ };
86
+ const bottomTabDrawerConfig = {
87
+ ['//bottom_tab']: {
88
+ container: createBottomTabNavigator(),
89
+ exact: false,
90
+ name: 'MainBottomTab',
91
+ props: {
92
+ initialRouteName: 'MainStack.MainBottomTab.Home',
93
+ screenOptions: ({ route }) => {
94
+ return {
95
+ headerShown: false,
96
+ title: 'Home',
97
+ headerTitle: 'Home',
98
+ tabBarActiveTintColor: '#ff5a60',
99
+ tabBarInactiveTintColor: 'black',
100
+ };
101
+ },
102
+ },
103
+ },
104
+ };
105
+ export const appDrawerFeature = (props = null) => new Feature({
106
+ routeConfig: drawerConfig(props),
107
+ });
108
+ export const appDrawerBottomTabFeature = (props = null) => new Feature({
109
+ routeConfig: drawerBottomTabConfig(props),
110
+ });
111
+ export const appBottomTabFeature = new Feature({
112
+ routeConfig: bottomTabConfig,
113
+ });
114
+ export const appHostBottomTabFeature = new Feature({
115
+ routeConfig: hostBottomTabConfig,
116
+ });
117
+ export const appBottomTabDrawerFeature = new Feature({
118
+ routeConfig: bottomTabDrawerConfig,
119
+ });
120
+ //# sourceMappingURL=compute.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.test.js","sourceRoot":"","sources":["../../../src/components/Layout/compute.test.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,C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AAY,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC;IACzE,WAAW,EAAE,qBAAqB,CAAC,KAAK,CAAQ;CACnD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAI,IAAI,OAAO,CAAC;IAC5C,WAAW,EAAE,eAAsB;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,OAAO,CAAC;IAC/C,WAAW,EAAE,mBAA0B;CAC1C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAI,IAAI,OAAO,CAAC;IAClD,WAAW,EAAE,qBAA4B;CAC5C,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import BasicLayout from './components/BasicLayout';
2
+ export * from './components';
3
+ export { BasicLayout };
4
+ export type { ProSettings as Settings } from './components/defaultSettings';
@@ -0,0 +1,4 @@
1
+ import BasicLayout from './components/BasicLayout';
2
+ export * from './components';
3
+ export { BasicLayout };
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export * from '@admin-layout/client/lib/interfaces/typings';
@@ -0,0 +1,2 @@
1
+ export * from '@admin-layout/client/lib/interfaces/typings';
2
+ //# sourceMappingURL=typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typings.js","sourceRoot":"","sources":["../../../src/components/Layout/typings.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { LinkingOptions } from '@react-navigation/native';
2
+ import React, { ReactElement } from 'react';
3
+ interface INavigationContainerComponentProps {
4
+ children: ReactElement[];
5
+ configurableRoutes: Record<string, any>[];
6
+ independent?: boolean;
7
+ linking?: LinkingOptions<any>;
8
+ }
9
+ export declare const getPath: (routeName: string, configurableRoutes: Record<string, any>[]) => string;
10
+ export declare const configurableRoutesWithNavigationRouteName: (configurableRoutes: Record<string, any>[], parentName?: string) => Record<string, any>[];
11
+ export declare const useLocationChange: () => {
12
+ setLocationChange: React.Dispatch<any>;
13
+ };
14
+ export declare const NavigationContainerComponent: ({ children, configurableRoutes, independent, linking, }: INavigationContainerComponentProps) => ReactElement;
15
+ export {};
@@ -0,0 +1,120 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { LOCATION_CHANGE as LOCATION_CHANGE_SUCCESS } from '@common-stack/remix-router-redux';
11
+ import { NavigationContainer } from '@react-navigation/native';
12
+ import { cloneDeep } from 'lodash-es';
13
+ import React, { useRef } from 'react';
14
+ import { useDispatch, useSelector } from 'react-redux';
15
+ import { navigationRef } from '@common-stack/client-react';
16
+ export const getPath = (routeName, configurableRoutes) => {
17
+ let resultantPath = '';
18
+ configurableRoutes.forEach((item) => {
19
+ var _a;
20
+ if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
21
+ const value = getPath(routeName, item.children);
22
+ if (value) {
23
+ resultantPath = value;
24
+ }
25
+ }
26
+ if (item.navigationRouteName === routeName) {
27
+ resultantPath = item.path;
28
+ }
29
+ });
30
+ return resultantPath;
31
+ };
32
+ export const configurableRoutesWithNavigationRouteName = (configurableRoutes, parentName = '') => {
33
+ return configurableRoutes.map((item) => {
34
+ const resultantName = parentName;
35
+ const navigationRouteName = resultantName.length ? `${resultantName}.${item.name}` : item.name;
36
+ item.navigationRouteName = navigationRouteName;
37
+ if (item.children) {
38
+ item.children = configurableRoutesWithNavigationRouteName(item.children, navigationRouteName);
39
+ }
40
+ return item;
41
+ });
42
+ };
43
+ export const useLocationChange = () => {
44
+ const dispatch = useDispatch();
45
+ const [locationChange, setLocationChange] = React.useState(null);
46
+ const platformState = useSelector((state) => state.platform);
47
+ React.useEffect(() => {
48
+ if (locationChange)
49
+ setLocation(locationChange);
50
+ }, [locationChange]);
51
+ const setLocation = ({ configurableRoutes, previousRoute = null, orgName = null }) => {
52
+ var _a, _b, _c, _d;
53
+ const currentRoute = navigationRef.isReady() ? navigationRef === null || navigationRef === void 0 ? void 0 : navigationRef.getCurrentRoute() : null;
54
+ const currentRouteName = currentRoute ? currentRoute === null || currentRoute === void 0 ? void 0 : currentRoute.name : null;
55
+ const configuredRoutes = configurableRoutesWithNavigationRouteName(configurableRoutes);
56
+ const currentPath = currentRouteName ? getPath(currentRouteName, configuredRoutes) : null;
57
+ const previousPath = previousRoute ? getPath(previousRoute === null || previousRoute === void 0 ? void 0 : previousRoute.current.name, configuredRoutes) : null;
58
+ const currParams = Object.assign(Object.assign({}, (currentRoute.params || {})), { orgName: orgName ? orgName : (_b = (_a = currentRoute.params) === null || _a === void 0 ? void 0 : _a.orgName) !== null && _b !== void 0 ? _b : platformState === null || platformState === void 0 ? void 0 : platformState.orgName });
59
+ navigationRef === null || navigationRef === void 0 ? void 0 : navigationRef.setParams(currParams);
60
+ dispatch({
61
+ type: LOCATION_CHANGE_SUCCESS,
62
+ payload: {
63
+ currentRoute: {
64
+ path: currentPath,
65
+ params: currParams,
66
+ },
67
+ previousRoute: {
68
+ path: previousPath,
69
+ params: (_d = (_c = previousRoute === null || previousRoute === void 0 ? void 0 : previousRoute.current) === null || _c === void 0 ? void 0 : _c.params) !== null && _d !== void 0 ? _d : { orgName: '' },
70
+ },
71
+ },
72
+ });
73
+ };
74
+ return { setLocationChange };
75
+ };
76
+ export const NavigationContainerComponent = ({ children, configurableRoutes, independent, linking, }) => {
77
+ const routeNameRef = useRef();
78
+ const dispatch = useDispatch();
79
+ const platformState = useSelector((state) => state.platform);
80
+ const { setLocationChange } = useLocationChange();
81
+ //const user = useSelector((state: any) => state.user);
82
+ return (React.createElement(NavigationContainer, { ref: navigationRef, linking: linking, independent: independent, onReady: () => {
83
+ var _a, _b, _c;
84
+ routeNameRef.current = navigationRef.isReady() ? navigationRef === null || navigationRef === void 0 ? void 0 : navigationRef.getCurrentRoute() : null;
85
+ const currentRoute = routeNameRef === null || routeNameRef === void 0 ? void 0 : routeNameRef.current;
86
+ setLocationChange({
87
+ configurableRoutes,
88
+ orgName: (_c = (_a = platformState === null || platformState === void 0 ? void 0 : platformState.orgName) !== null && _a !== void 0 ? _a : (_b = currentRoute === null || currentRoute === void 0 ? void 0 : currentRoute.params) === null || _b === void 0 ? void 0 : _b.orgName) !== null && _c !== void 0 ? _c : '',
89
+ });
90
+ }, onStateChange: () => __awaiter(void 0, void 0, void 0, function* () {
91
+ var _a;
92
+ const previousRoute = (routeNameRef === null || routeNameRef === void 0 ? void 0 : routeNameRef.current) ? cloneDeep(routeNameRef) : null;
93
+ const currentRoute = navigationRef.isReady() ? navigationRef === null || navigationRef === void 0 ? void 0 : navigationRef.getCurrentRoute() : null;
94
+ const previousRouteName = previousRoute ? previousRoute === null || previousRoute === void 0 ? void 0 : previousRoute.current.name : null;
95
+ const currentRouteName = currentRoute ? currentRoute === null || currentRoute === void 0 ? void 0 : currentRoute.name : null;
96
+ const configuredRoutes = configurableRoutesWithNavigationRouteName(configurableRoutes);
97
+ const currentPath = currentRouteName ? getPath(currentRouteName, configuredRoutes) : null;
98
+ const previousPath = previousRoute ? getPath(previousRoute === null || previousRoute === void 0 ? void 0 : previousRoute.current.name, configuredRoutes) : null;
99
+ const currParams = Object.assign(Object.assign({}, (currentRoute.params || {})), { orgName: ((_a = currentRoute.params) === null || _a === void 0 ? void 0 : _a.orgName) || (platformState === null || platformState === void 0 ? void 0 : platformState.orgName) });
100
+ //if (previousRouteName && currentRouteName && previousRouteName !== currentRouteName) {
101
+ if (previousPath !== currentPath) {
102
+ routeNameRef.current = currentRoute;
103
+ setLocationChange({ configurableRoutes, previousRoute });
104
+ // dispatch({
105
+ // type: LOCATION_CHANGE_SUCCESS,
106
+ // payload: {
107
+ // currentRoute: {
108
+ // path: currentPath,
109
+ // params: currParams,
110
+ // },
111
+ // previousRoute: {
112
+ // path: previousPath,
113
+ // params: previousRoute?.current?.params ?? { orgName: '' },
114
+ // },
115
+ // },
116
+ // });
117
+ }
118
+ }) }, children));
119
+ };
120
+ //# sourceMappingURL=NavigationComponent.js.map
@@ -0,0 +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;AAe3D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,SAAiB,EAAE,kBAAyC,EAAE,EAAE;IACpF,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB,kBAAkB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;QAChC,IAAI,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,EAAE;YACvB,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChD,IAAI,KAAK,EAAE;gBACP,aAAa,GA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BACb,qCAAqC;gBACrC,iBAAiB;gBACjB,0BAA0B;gBAC1B,iCAAiC;gBACjC,kCAAkC;gBAClC,aAAa;gBACb,2BAA2B;gBAC3B,kCAAkC;gBAClC,yEAAyE;gBACzE,aAAa;gBACb,SAAS;gBACT,MAAM;aACT;QACL,CAAC,CAAA,IAEA,QAAQ,CACS,CACzB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const MobilePluginArea: () => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { PluginArea } from '@common-stack/client-react';
2
+ import { View } from 'react-native';
3
+ import * as React from 'react';
4
+ export const MobilePluginArea = () => {
5
+ return (React.createElement(View, { style: { display: "none" } },
6
+ React.createElement(PluginArea, null)));
7
+ };
8
+ //# sourceMappingURL=PluginArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginArea.js","sourceRoot":"","sources":["../../src/components/PluginArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC9B,oBAAC,UAAU,OAAG,CACT,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface IToast {
3
+ id: string;
4
+ title: string;
5
+ status?: any;
6
+ description?: string;
7
+ isClosable?: boolean;
8
+ toast?: any;
9
+ variant?: any;
10
+ }
11
+ export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast }: IToast) => React.JSX.Element;
12
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon, } from '@gluestack-ui/themed';
3
+ // variants:
4
+ // accent,
5
+ // solid,
6
+ // outline
7
+ export const ToastAlert = ({ id, status = 'info', title = '', description = '', variant = 'solid', isClosable, toast = null }) => {
8
+ const toastId = 'toast-' + id;
9
+ const actionType = status || 'info';
10
+ return (React.createElement(Toast, { nativeID: toastId, variant: variant, action: actionType },
11
+ React.createElement(VStack, { space: "xs" },
12
+ React.createElement(ToastTitle, null, title),
13
+ description && React.createElement(ToastDescription, null, description)),
14
+ isClosable && toast ? (React.createElement(Pressable, { mt: "$1", onPress: () => toast === null || toast === void 0 ? void 0 : toast.close(id) },
15
+ React.createElement(Icon, { as: CloseIcon, color: "$coolGray50" }))) : null));
16
+ };
17
+ //# sourceMappingURL=ToastAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastAlert.js","sourceRoot":"","sources":["../../src/components/ToastAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,KAAK,EACL,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,IAAI,EACJ,SAAS,GACZ,MAAM,sBAAsB,CAAC;AAY9B,YAAY;AACZ,UAAU;AACV,SAAS;AACT,UAAU;AAEV,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,GAAC,EAAE,EAAE,WAAW,GAAG,EAAE,EAAC,OAAO,GAAC,OAAO,EAAE,UAAU,EAAE,KAAK,GAAC,IAAI,EAAU,EAAE,EAAE;IAC9H,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,aAAL,KAAK,uBAAL,KAAK,CAAE,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"}
@@ -0,0 +1,9 @@
1
+ export * from './Layout';
2
+ export * from './PluginArea';
3
+ export * from './ApplicationErrorHandler';
4
+ export * from './ApplicationErrorFillWrapper';
5
+ export * from './Fallback';
6
+ export * from './ErrorBounday';
7
+ export * from './NavigationComponent';
8
+ export * from './ToastAlert';
9
+ export * from './with-interactions-managed';
@@ -0,0 +1,10 @@
1
+ export * from './Layout';
2
+ export * from './PluginArea';
3
+ export * from './ApplicationErrorHandler';
4
+ export * from './ApplicationErrorFillWrapper';
5
+ export * from './Fallback';
6
+ export * from './ErrorBounday';
7
+ export * from './NavigationComponent';
8
+ export * from './ToastAlert';
9
+ export * from './with-interactions-managed';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import React, { ComponentType } from 'react';
2
+ export declare function withInteractionsManaged<Props>(Component: ComponentType<Props>, Placeholder?: ComponentType | null): (props: Props) => React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { Transition, Transitioning } from 'react-native-reanimated';
3
+ import { useAfterInteractions } from '../hooks/use-after-interactions';
4
+ import { Box, Spinner } from '@gluestack-ui/themed';
5
+ import hoistNonReactStatics from 'hoist-non-react-statics';
6
+ export function withInteractionsManaged(Component, Placeholder = null) {
7
+ const Wrapped = (props) => {
8
+ const { transitionRef, interactionsComplete } = useAfterInteractions();
9
+ const LoadingComponent = () => React.createElement(Box, { flex: 1 }, React.createElement(Spinner, { color: 'blue.500' }));
10
+ console.log('interactionsComplete', interactionsComplete);
11
+ return (React.createElement(Transitioning.View, { transition: React.createElement(Transition.Together, null,
12
+ React.createElement(Transition.Change, { interpolation: "easeInOut" }),
13
+ React.createElement(Transition.In, { type: "fade" })), style: { flex: 1 }, ref: transitionRef }, interactionsComplete ? React.createElement(Component, Object.assign({}, props)) : Placeholder ? React.createElement(Placeholder, null) : React.createElement(LoadingComponent, null)));
14
+ };
15
+ hoistNonReactStatics(Wrapped, Component);
16
+ return Wrapped;
17
+ }
18
+ //# sourceMappingURL=with-interactions-managed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-interactions-managed.js","sourceRoot":"","sources":["../../src/components/with-interactions-managed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAQ,MAAM,sBAAsB,CAAC;AAC1D,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAE3D,MAAM,UAAU,uBAAuB,CACnC,SAA+B,EAC/B,cAAoC,IAAI;IAExC,MAAM,OAAO,GAAG,CAAC,KAAY,EAAE,EAAE;QAC7B,MAAM,EAAE,aAAa,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,CAAC;QACvE,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,IAAG,oBAAC,OAAO,IAAC,KAAK,EAAE,UAAU,GAAI,CAAO,CAAC;QACpF,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAC;QAC1D,OAAO,CACH,oBAAC,aAAa,CAAC,IAAI,IACf,UAAU,EACN,oBAAC,UAAU,CAAC,QAAQ;gBAChB,oBAAC,UAAU,CAAC,MAAM,IAAC,aAAa,EAAC,WAAW,GAAG;gBAC/C,oBAAC,UAAU,CAAC,EAAE,IAAC,IAAI,EAAC,MAAM,GAAG,CACX,EAE1B,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAClB,GAAG,EAAE,aAAa,IAEjB,oBAAoB,CAAC,CAAC,CAAC,oBAAC,SAAS,oBAAK,KAAK,EAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,oBAAC,WAAW,OAAG,CAAC,CAAC,CAAC,oBAAC,gBAAgB,OAAG,CACtF,CACxB,CAAC;IACN,CAAC,CAAC;IAEF,oBAAoB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzC,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare const config: {
2
+ LAYOUT_SETTINGS: {
3
+ logo: string;
4
+ navTheme: string;
5
+ primaryColor: string;
6
+ layout: string;
7
+ contentWidth: string;
8
+ fixedHeader: boolean;
9
+ fixSiderbar: boolean;
10
+ colorWeak: boolean;
11
+ title: string;
12
+ iconfontUrl: string;
13
+ language: string;
14
+ topLeftToggle: boolean;
15
+ topRightSettingToggle: boolean;
16
+ };
17
+ };
@@ -0,0 +1,18 @@
1
+ export const config = {
2
+ LAYOUT_SETTINGS: {
3
+ logo: 'https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg',
4
+ navTheme: 'light',
5
+ primaryColor: '#3FA541C',
6
+ layout: 'side',
7
+ contentWidth: 'Fluid',
8
+ fixedHeader: false,
9
+ fixSiderbar: true,
10
+ colorWeak: false,
11
+ title: 'CDMBase LLC',
12
+ iconfontUrl: '',
13
+ language: 'en-US',
14
+ topLeftToggle: true,
15
+ topRightSettingToggle: true,
16
+ },
17
+ };
18
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,eAAe,EAAE;QACb,IAAI,EAAE,mEAAmE;QACzE,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,UAAU;QACxB,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,OAAO;QACrB,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,IAAI;QACnB,qBAAqB,EAAE,IAAI;KAC9B;CACJ,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './config';
@@ -0,0 +1,2 @@
1
+ export * from './config';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare enum MobileRoutes {
2
+ Org = "/o/:orgName"
3
+ }
@@ -0,0 +1,5 @@
1
+ export var MobileRoutes;
2
+ (function (MobileRoutes) {
3
+ MobileRoutes["Org"] = "/o/:orgName";
4
+ })(MobileRoutes || (MobileRoutes = {}));
5
+ //# sourceMappingURL=routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/constants/routes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,mCAAmB,CAAA;AACvB,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB"}
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Settings } from '../../components';
3
+ export interface ReduxState {
4
+ settings: Settings;
5
+ }
6
+ declare const _default: import("react-redux").ConnectedComponent<React.FC<any>, import("react-redux").Omit<any, "onSettingChange" | "settings" | "location">>;
7
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { connect } from 'react-redux';
3
+ import { Ionicons } from '@expo/vector-icons';
4
+ import { BasicLayout } from '../../components';
5
+ import { useHistory } from 'react-router-native';
6
+ import { useSelector } from 'react-redux';
7
+ import { CHANGE_SETTINGS_ACTION } from '@admin-layout/client';
8
+ const Layout = (props) => {
9
+ const user = useSelector((state) => state === null || state === void 0 ? void 0 : state.user);
10
+ const { settings } = props;
11
+ const history = useHistory();
12
+ const logout = () => {
13
+ history.push('/logout');
14
+ };
15
+ return (React.createElement(BasicLayout, Object.assign({}, props, settings, { showSettings: true, currentRoute: props.route.routes.find((route) => {
16
+ if (route.path.split('/').pop() === props.location.pathname.split('/').pop()) {
17
+ return route;
18
+ }
19
+ else if (route.path.split('/')[route.path.split('/').length - 2] ===
20
+ props.location.pathname.split('/')[props.location.pathname.split('/').length - 2]) {
21
+ return route;
22
+ }
23
+ }), rightContentRender: (rightProps) => {
24
+ return (React.createElement(Ionicons, { color: rightProps.navTheme === 'dark' ? 'white' : 'black', name: "exit-outline", onPress: () => logout() }));
25
+ } })));
26
+ };
27
+ export default connect(({ settings, router }) => ({
28
+ settings,
29
+ location: router.location,
30
+ }), (dispatch) => ({
31
+ onSettingChange: (data) => dispatch({
32
+ type: CHANGE_SETTINGS_ACTION,
33
+ payload: data,
34
+ }),
35
+ }))(Layout);
36
+ //# sourceMappingURL=BasicLayout.js.map
@@ -0,0 +1 @@
1
+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