@admin-layout/gluestack-ui-mobile 11.0.4-alpha.4 → 12.0.16-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.
- package/CHANGELOG.md +63 -13
- package/lib/components/AuthWrapper.js +5 -3
- package/lib/components/AuthWrapper.js.map +1 -1
- package/lib/components/WithConfiguration.js +1 -1
- package/lib/components/WithConfiguration.js.map +1 -1
- package/lib/components/ui/accordion/index.web.d.ts +209 -0
- package/lib/components/ui/accordion/index.web.js +156 -0
- package/lib/components/ui/accordion/index.web.js.map +1 -0
- package/lib/components/ui/actionsheet/index.web.d.ts +872 -0
- package/lib/components/ui/actionsheet/index.web.js +286 -0
- package/lib/components/ui/actionsheet/index.web.js.map +1 -0
- package/lib/components/ui/alert/index.web.d.ts +135 -0
- package/lib/components/ui/alert/index.web.js +38 -0
- package/lib/components/ui/alert/index.web.js.map +1 -0
- package/lib/components/ui/alert-dialog/index.web.d.ts +64 -0
- package/lib/components/ui/alert-dialog/index.web.js +139 -0
- package/lib/components/ui/alert-dialog/index.web.js.map +1 -0
- package/lib/components/ui/avatar/index.web.d.ts +21 -0
- package/lib/components/ui/avatar/index.web.js +92 -0
- package/lib/components/ui/avatar/index.web.js.map +1 -0
- package/lib/components/ui/badge/index.web.d.ts +382 -0
- package/lib/components/ui/badge/index.web.js +138 -0
- package/lib/components/ui/badge/index.web.js.map +1 -0
- package/lib/components/ui/button/index.web.d.ts +247 -0
- package/lib/components/ui/button/index.web.js +57 -0
- package/lib/components/ui/button/index.web.js.map +1 -0
- package/lib/components/ui/checkbox/index.web.d.ts +265 -0
- package/lib/components/ui/checkbox/index.web.js +77 -0
- package/lib/components/ui/checkbox/index.web.js.map +1 -0
- package/lib/components/ui/divider/index.web.d.ts +53 -0
- package/lib/components/ui/divider/index.web.js +21 -0
- package/lib/components/ui/divider/index.web.js.map +1 -0
- package/lib/components/ui/drawer/index.web.d.ts +174 -0
- package/lib/components/ui/drawer/index.web.js +65 -0
- package/lib/components/ui/drawer/index.web.js.map +1 -0
- package/lib/components/ui/fab/index.web.d.ts +520 -0
- package/lib/components/ui/fab/index.web.js +146 -0
- package/lib/components/ui/fab/index.web.js.map +1 -0
- package/lib/components/ui/flat-list/index.web.d.ts +21 -0
- package/lib/components/ui/flat-list/index.web.js +41 -0
- package/lib/components/ui/flat-list/index.web.js.map +1 -0
- package/lib/components/ui/form-control/index.web.d.ts +2071 -0
- package/lib/components/ui/form-control/index.web.js +290 -0
- package/lib/components/ui/form-control/index.web.js.map +1 -0
- package/lib/components/ui/image/index.web.d.ts +142 -0
- package/lib/components/ui/image/index.web.js +29 -0
- package/lib/components/ui/image/index.web.js.map +1 -0
- package/lib/components/ui/image-background/index.web.d.ts +8 -0
- package/lib/components/ui/image-background/index.web.js +23 -0
- package/lib/components/ui/image-background/index.web.js.map +1 -0
- package/lib/components/ui/input/index.web.d.ts +163 -0
- package/lib/components/ui/input/index.web.js +50 -0
- package/lib/components/ui/input/index.web.js.map +1 -0
- package/lib/components/ui/input-accessory-view/index.web.d.ts +9 -0
- package/lib/components/ui/input-accessory-view/index.web.js +16 -0
- package/lib/components/ui/input-accessory-view/index.web.js.map +1 -0
- package/lib/components/ui/keyboard-avoiding-view/index.web.d.ts +9 -0
- package/lib/components/ui/keyboard-avoiding-view/index.web.js +8 -0
- package/lib/components/ui/keyboard-avoiding-view/index.web.js.map +1 -0
- package/lib/components/ui/link/index.web.d.ts +365 -0
- package/lib/components/ui/link/index.web.js +70 -0
- package/lib/components/ui/link/index.web.js.map +1 -0
- package/lib/components/ui/menu/index.web.d.ts +142 -0
- package/lib/components/ui/menu/index.web.js +83 -0
- package/lib/components/ui/menu/index.web.js.map +1 -0
- package/lib/components/ui/modal/index.web.d.ts +111 -0
- package/lib/components/ui/modal/index.web.js +58 -0
- package/lib/components/ui/modal/index.web.js.map +1 -0
- package/lib/components/ui/popover/index.web.d.ts +309 -0
- package/lib/components/ui/popover/index.web.js +184 -0
- package/lib/components/ui/popover/index.web.js.map +1 -0
- package/lib/components/ui/portal/index.web.d.ts +9 -0
- package/lib/components/ui/portal/index.web.js +16 -0
- package/lib/components/ui/portal/index.web.js.map +1 -0
- package/lib/components/ui/pressable/index.web.d.ts +8 -0
- package/lib/components/ui/pressable/index.web.js +44 -0
- package/lib/components/ui/pressable/index.web.js.map +1 -0
- package/lib/components/ui/progress/index.web.d.ts +237 -0
- package/lib/components/ui/progress/index.web.js +73 -0
- package/lib/components/ui/progress/index.web.js.map +1 -0
- package/lib/components/ui/radio/index.web.d.ts +224 -0
- package/lib/components/ui/radio/index.web.js +69 -0
- package/lib/components/ui/radio/index.web.js.map +1 -0
- package/lib/components/ui/refresh-control/index.web.d.ts +14 -0
- package/lib/components/ui/refresh-control/index.web.js +69 -0
- package/lib/components/ui/refresh-control/index.web.js.map +1 -0
- package/lib/components/ui/safe-area-view/index.web.d.ts +6 -0
- package/lib/components/ui/safe-area-view/index.web.js +10 -0
- package/lib/components/ui/safe-area-view/index.web.js.map +1 -0
- package/lib/components/ui/scroll-view/index.web.d.ts +44 -0
- package/lib/components/ui/scroll-view/index.web.js +41 -0
- package/lib/components/ui/scroll-view/index.web.js.map +1 -0
- package/lib/components/ui/section-list/index.web.d.ts +26 -0
- package/lib/components/ui/section-list/index.web.js +35 -0
- package/lib/components/ui/section-list/index.web.js.map +1 -0
- package/lib/components/ui/select/index.web.d.ts +162 -0
- package/lib/components/ui/select/index.web.js +51 -0
- package/lib/components/ui/select/index.web.js.map +1 -0
- package/lib/components/ui/slider/index.web.d.ts +223 -0
- package/lib/components/ui/slider/index.web.js +189 -0
- package/lib/components/ui/slider/index.web.js.map +1 -0
- package/lib/components/ui/spinner/index.web.d.ts +176 -0
- package/lib/components/ui/spinner/index.web.js +55 -0
- package/lib/components/ui/spinner/index.web.js.map +1 -0
- package/lib/components/ui/status-bar/index.web.d.ts +14 -0
- package/lib/components/ui/status-bar/index.web.js +7 -0
- package/lib/components/ui/status-bar/index.web.js.map +1 -0
- package/lib/components/ui/switch/index.web.d.ts +71 -0
- package/lib/components/ui/switch/index.web.js +27 -0
- package/lib/components/ui/switch/index.web.js.map +1 -0
- package/lib/components/ui/tabs/index.web.d.ts +351 -0
- package/lib/components/ui/tabs/index.web.js +120 -0
- package/lib/components/ui/tabs/index.web.js.map +1 -0
- package/lib/components/ui/textarea/index.web.d.ts +162 -0
- package/lib/components/ui/textarea/index.web.js +50 -0
- package/lib/components/ui/textarea/index.web.js.map +1 -0
- package/lib/components/ui/toast/index.web.d.ts +225 -0
- package/lib/components/ui/toast/index.web.js +80 -0
- package/lib/components/ui/toast/index.web.js.map +1 -0
- package/lib/components/ui/tooltip/index.web.d.ts +86 -0
- package/lib/components/ui/tooltip/index.web.js +110 -0
- package/lib/components/ui/tooltip/index.web.js.map +1 -0
- package/lib/components/ui/view/index.web.d.ts +2 -0
- package/lib/components/ui/view/index.web.js +7 -0
- package/lib/components/ui/view/index.web.js.map +1 -0
- package/lib/components/ui/virtualized-list/index.web.d.ts +19 -0
- package/lib/components/ui/virtualized-list/index.web.js +30 -0
- package/lib/components/ui/virtualized-list/index.web.js.map +1 -0
- package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +47 -47
- package/lib/containers/layout/DrawerConfig.d.ts +31 -31
- package/lib/interfaces/settings.d.ts +1 -0
- package/lib/redux/settings.d.ts +4 -9
- package/lib/utils/generateMobileNavigations.js +8 -8
- package/lib/utils/generateMobileNavigations.js.map +1 -1
- package/package.json +8 -4
- package/src/components/AuthWrapper.tsx +6 -3
- package/src/components/WithConfiguration.tsx +1 -1
- package/src/components/ui/accordion/index.web.tsx +294 -0
- package/src/components/ui/actionsheet/index.web.tsx +555 -0
- package/src/components/ui/alert/index.web.tsx +71 -0
- package/src/components/ui/alert-dialog/index.web.tsx +241 -0
- package/src/components/ui/avatar/index.web.tsx +150 -0
- package/src/components/ui/badge/index.web.tsx +188 -0
- package/src/components/ui/button/index.web.tsx +86 -0
- package/src/components/ui/checkbox/index.web.tsx +151 -0
- package/src/components/ui/divider/index.web.tsx +37 -0
- package/src/components/ui/drawer/index.web.tsx +144 -0
- package/src/components/ui/fab/index.web.tsx +201 -0
- package/src/components/ui/flat-list/index.web.tsx +89 -0
- package/src/components/ui/form-control/index.web.tsx +451 -0
- package/src/components/ui/image/index.web.tsx +43 -0
- package/src/components/ui/image-background/index.web.tsx +43 -0
- package/src/components/ui/input/index.web.tsx +80 -0
- package/src/components/ui/input-accessory-view/index.web.tsx +31 -0
- package/src/components/ui/keyboard-avoiding-view/index.web.tsx +23 -0
- package/src/components/ui/link/index.web.tsx +103 -0
- package/src/components/ui/menu/index.web.tsx +159 -0
- package/src/components/ui/modal/index.web.tsx +135 -0
- package/src/components/ui/popover/index.web.tsx +326 -0
- package/src/components/ui/portal/index.web.tsx +34 -0
- package/src/components/ui/pressable/index.web.tsx +73 -0
- package/src/components/ui/progress/index.web.tsx +123 -0
- package/src/components/ui/radio/index.web.tsx +130 -0
- package/src/components/ui/refresh-control/index.web.tsx +104 -0
- package/src/components/ui/safe-area-view/index.web.tsx +24 -0
- package/src/components/ui/scroll-view/index.web.tsx +142 -0
- package/src/components/ui/section-list/index.web.tsx +93 -0
- package/src/components/ui/select/index.web.tsx +83 -0
- package/src/components/ui/slider/index.web.tsx +283 -0
- package/src/components/ui/spinner/index.web.tsx +81 -0
- package/src/components/ui/status-bar/index.web.tsx +20 -0
- package/src/components/ui/switch/index.web.tsx +44 -0
- package/src/components/ui/tabs/index.web.tsx +205 -0
- package/src/components/ui/textarea/index.web.tsx +86 -0
- package/src/components/ui/toast/index.web.tsx +132 -0
- package/src/components/ui/tooltip/index.web.tsx +155 -0
- package/src/components/ui/view/index.web.tsx +15 -0
- package/src/components/ui/virtualized-list/index.web.tsx +84 -0
- package/src/interfaces/settings.ts +1 -0
- package/src/utils/generateMobileNavigations.ts +23 -23
|
@@ -40,16 +40,16 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
40
40
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
41
41
|
theme: ReactNavigation.Theme;
|
|
42
42
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
43
|
-
screenLayout?: (props:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
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, undefined>>) => React.ReactElement;
|
|
44
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
45
|
+
type: string;
|
|
46
|
+
payload?: object;
|
|
47
|
+
source?: string;
|
|
48
|
+
target?: string;
|
|
49
|
+
}>>(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>>;
|
|
50
50
|
} & {
|
|
51
51
|
id: string;
|
|
52
|
-
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
52
|
+
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
53
53
|
children: React.ReactNode;
|
|
54
54
|
layout?: (props: {
|
|
55
55
|
state: import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -86,13 +86,13 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
86
86
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
87
87
|
theme: ReactNavigation.Theme;
|
|
88
88
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
89
|
-
screenLayout?: (props:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
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, undefined>>) => React.ReactElement;
|
|
90
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
91
|
+
type: string;
|
|
92
|
+
payload?: object;
|
|
93
|
+
source?: string;
|
|
94
|
+
target?: string;
|
|
95
|
+
}>>(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>>;
|
|
96
96
|
} & {
|
|
97
97
|
id: undefined;
|
|
98
98
|
}>;
|
|
@@ -149,20 +149,20 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
149
149
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
150
150
|
theme: ReactNavigation.Theme;
|
|
151
151
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
152
|
-
screenLayout?: (props:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
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, undefined>>) => React.ReactElement;
|
|
153
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
154
|
+
type: string;
|
|
155
|
+
payload?: object;
|
|
156
|
+
source?: string;
|
|
157
|
+
target?: string;
|
|
158
|
+
}>>(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>>;
|
|
159
159
|
} & {
|
|
160
160
|
id: string;
|
|
161
161
|
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
162
|
-
backBehavior?: import("@react-navigation/routers/lib/typescript/
|
|
162
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
163
163
|
} & {
|
|
164
164
|
defaultStatus?: import("@react-navigation/routers").DrawerStatus;
|
|
165
|
-
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
165
|
+
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
166
166
|
children: React.ReactNode;
|
|
167
167
|
layout?: (props: {
|
|
168
168
|
state: import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -201,13 +201,13 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
201
201
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
202
202
|
theme: ReactNavigation.Theme;
|
|
203
203
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
204
|
-
screenLayout?: (props:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
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, undefined>>) => React.ReactElement;
|
|
205
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
206
|
+
type: string;
|
|
207
|
+
payload?: object;
|
|
208
|
+
source?: string;
|
|
209
|
+
target?: string;
|
|
210
|
+
}>>(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>>;
|
|
211
211
|
} & {
|
|
212
212
|
id: undefined;
|
|
213
213
|
}>;
|
|
@@ -261,18 +261,18 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
261
261
|
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
262
262
|
theme: ReactNavigation.Theme;
|
|
263
263
|
}) => import("@react-navigation/bottom-tabs").BottomTabNavigationOptions);
|
|
264
|
-
screenLayout?: (props:
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
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, undefined>>) => React.ReactElement;
|
|
265
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
266
|
+
type: string;
|
|
267
|
+
payload?: object;
|
|
268
|
+
source?: string;
|
|
269
|
+
target?: string;
|
|
270
|
+
}>>(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>>;
|
|
271
271
|
} & {
|
|
272
272
|
id: string;
|
|
273
273
|
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
274
|
-
backBehavior?: import("@react-navigation/routers/lib/typescript/
|
|
275
|
-
} & import("@react-navigation/bottom-tabs/lib/typescript/commonjs/src/types").BottomTabNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
274
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
275
|
+
} & import("@react-navigation/bottom-tabs/lib/typescript/commonjs/src/types").BottomTabNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
276
276
|
children: React.ReactNode;
|
|
277
277
|
layout?: (props: {
|
|
278
278
|
state: import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -307,13 +307,13 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
307
307
|
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
308
308
|
theme: ReactNavigation.Theme;
|
|
309
309
|
}) => import("@react-navigation/bottom-tabs").BottomTabNavigationOptions);
|
|
310
|
-
screenLayout?: (props:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
310
|
+
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, undefined>>) => React.ReactElement;
|
|
311
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
312
|
+
type: string;
|
|
313
|
+
payload?: object;
|
|
314
|
+
source?: string;
|
|
315
|
+
target?: string;
|
|
316
|
+
}>>(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>>;
|
|
317
317
|
} & {
|
|
318
318
|
id: undefined;
|
|
319
319
|
}>;
|
|
@@ -40,16 +40,16 @@ export declare const appDrawerConfig: {
|
|
|
40
40
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
41
41
|
theme: ReactNavigation.Theme;
|
|
42
42
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
43
|
-
screenLayout?: (props:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
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, undefined>>) => React.ReactElement;
|
|
44
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
45
|
+
type: string;
|
|
46
|
+
payload?: object;
|
|
47
|
+
source?: string;
|
|
48
|
+
target?: string;
|
|
49
|
+
}>>(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>>;
|
|
50
50
|
} & {
|
|
51
51
|
id: string;
|
|
52
|
-
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
52
|
+
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
53
53
|
children: React.ReactNode;
|
|
54
54
|
layout?: (props: {
|
|
55
55
|
state: import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -86,13 +86,13 @@ export declare const appDrawerConfig: {
|
|
|
86
86
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
87
87
|
theme: ReactNavigation.Theme;
|
|
88
88
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
89
|
-
screenLayout?: (props:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
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, undefined>>) => React.ReactElement;
|
|
90
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
91
|
+
type: string;
|
|
92
|
+
payload?: object;
|
|
93
|
+
source?: string;
|
|
94
|
+
target?: string;
|
|
95
|
+
}>>(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>>;
|
|
96
96
|
} & {
|
|
97
97
|
id: undefined;
|
|
98
98
|
}>;
|
|
@@ -149,20 +149,20 @@ export declare const appDrawerConfig: {
|
|
|
149
149
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
150
150
|
theme: ReactNavigation.Theme;
|
|
151
151
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
152
|
-
screenLayout?: (props:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
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, undefined>>) => React.ReactElement;
|
|
153
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
154
|
+
type: string;
|
|
155
|
+
payload?: object;
|
|
156
|
+
source?: string;
|
|
157
|
+
target?: string;
|
|
158
|
+
}>>(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>>;
|
|
159
159
|
} & {
|
|
160
160
|
id: string;
|
|
161
161
|
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
162
|
-
backBehavior?: import("@react-navigation/routers/lib/typescript/
|
|
162
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
163
163
|
} & {
|
|
164
164
|
defaultStatus?: import("@react-navigation/routers").DrawerStatus;
|
|
165
|
-
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
165
|
+
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
166
166
|
children: React.ReactNode;
|
|
167
167
|
layout?: (props: {
|
|
168
168
|
state: import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -201,13 +201,13 @@ export declare const appDrawerConfig: {
|
|
|
201
201
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
202
202
|
theme: ReactNavigation.Theme;
|
|
203
203
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
204
|
-
screenLayout?: (props:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
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, undefined>>) => React.ReactElement;
|
|
205
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
206
|
+
type: string;
|
|
207
|
+
payload?: object;
|
|
208
|
+
source?: string;
|
|
209
|
+
target?: string;
|
|
210
|
+
}>>(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>>;
|
|
211
211
|
} & {
|
|
212
212
|
id: undefined;
|
|
213
213
|
}>;
|
package/lib/redux/settings.d.ts
CHANGED
|
@@ -44,22 +44,17 @@ declare const settingsReducer: (state: {
|
|
|
44
44
|
loading?: boolean;
|
|
45
45
|
};
|
|
46
46
|
title: string | false;
|
|
47
|
+
logo: string | React.ReactNode;
|
|
47
48
|
iconfontUrl: string;
|
|
48
49
|
colorPrimary?: string;
|
|
49
50
|
primaryColor: string;
|
|
50
51
|
colorWeak: boolean;
|
|
51
52
|
splitMenus?: boolean;
|
|
52
53
|
siderMenuType?: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
showFooter?: boolean | any;
|
|
56
|
-
footerRender?: boolean | any;
|
|
57
|
-
searchBarRender?: boolean | any;
|
|
58
|
-
showMenu?: boolean | any;
|
|
59
|
-
menuRender?: false | any;
|
|
60
|
-
menuHeaderRender?: false | any;
|
|
54
|
+
currentRoute?: string;
|
|
55
|
+
routeSettings?: any;
|
|
61
56
|
language: string;
|
|
62
|
-
|
|
57
|
+
extensionName?: string;
|
|
63
58
|
topLeftToggle: boolean;
|
|
64
59
|
topRightSettingToggle: boolean;
|
|
65
60
|
} | {
|
|
@@ -375,7 +375,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
375
375
|
export default features;
|
|
376
376
|
`.replace(/,(\s*)$/, ''); // Removes trailing comma
|
|
377
377
|
// Use Prettier to format the code
|
|
378
|
-
classStructure =
|
|
378
|
+
classStructure = prettier.format(classStructure, { parser: 'babel' });
|
|
379
379
|
const appFeatures = importStatements + '\n' + classStructure;
|
|
380
380
|
return { appFeatures };
|
|
381
381
|
}
|
|
@@ -519,7 +519,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
519
519
|
export default features;
|
|
520
520
|
`.replace(/,(\s*)$/, ''); // Removes trailing comma
|
|
521
521
|
// Use Prettier to format the code
|
|
522
|
-
classStructure =
|
|
522
|
+
classStructure = prettier.format(classStructure, { parser: 'babel' });
|
|
523
523
|
const appFeatures = importStatements + '\n' + classStructure;
|
|
524
524
|
return { appFeatures };
|
|
525
525
|
}
|
|
@@ -583,7 +583,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
583
583
|
export default App;
|
|
584
584
|
`.replace(/,(\s*)$/, ''); // Removes trailing comma
|
|
585
585
|
// Use Prettier to format the code
|
|
586
|
-
classStructure =
|
|
586
|
+
classStructure = prettier.format(classStructure, { parser: 'babel' });
|
|
587
587
|
const appFeatures = importStatements + '\n' + classStructure;
|
|
588
588
|
return { appFeatures };
|
|
589
589
|
}
|
|
@@ -729,7 +729,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
729
729
|
}
|
|
730
730
|
stackNavigator = importStatements + '\n' + moduleRender;
|
|
731
731
|
let stackNavigation = stackNavigator;
|
|
732
|
-
stackNavigation =
|
|
732
|
+
stackNavigation = prettier.format(stackNavigation, { parser: 'babel' });
|
|
733
733
|
const stackDirName = path.dirname(stackDirPath);
|
|
734
734
|
try {
|
|
735
735
|
const isDirCreated = await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_makeDir).call(this, stackDirName);
|
|
@@ -864,7 +864,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
864
864
|
moduleNavigation = importStatements + '\n' + moduleRender;
|
|
865
865
|
const drawerNavigator = moduleNavigation;
|
|
866
866
|
let drawerNavigation = drawerNavigator;
|
|
867
|
-
drawerNavigation =
|
|
867
|
+
drawerNavigation = prettier.format(drawerNavigation, { parser: 'babel' });
|
|
868
868
|
const drawerDirName = path.dirname(drawerDirPath);
|
|
869
869
|
try {
|
|
870
870
|
const isDirCreated = await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_makeDir).call(this, drawerDirName);
|
|
@@ -1077,7 +1077,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
1077
1077
|
moduleNavigation = importStatements + '\n' + moduleRender;
|
|
1078
1078
|
const bottomTabNavigator = moduleNavigation;
|
|
1079
1079
|
let bottomTabNavigation = bottomTabNavigator;
|
|
1080
|
-
bottomTabNavigation =
|
|
1080
|
+
bottomTabNavigation = prettier.format(bottomTabNavigation, { parser: 'babel' });
|
|
1081
1081
|
const bottomDirName = path.dirname(bottomDirPath);
|
|
1082
1082
|
try {
|
|
1083
1083
|
const isDirCreated = await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_makeDir).call(this, bottomDirName);
|
|
@@ -1275,7 +1275,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
1275
1275
|
const initialRouteName = layoutInitialRouteName
|
|
1276
1276
|
? layoutInitialRouteName
|
|
1277
1277
|
: layoutType === 'mixSide'
|
|
1278
|
-
?
|
|
1278
|
+
? appLayout?.[appLayout?.key]?.props?.initialRouteName ?? 'MainStack.Layout.Home'
|
|
1279
1279
|
: appLayout?.props?.initialRouteName || 'MainStack.Home';
|
|
1280
1280
|
const isShowTabs = layoutType === 'mixSide' || layoutType === 'bottom' ? true : false;
|
|
1281
1281
|
const isShowDefalutHeader = layoutType === 'mixSide' ? true : false;
|
|
@@ -1476,7 +1476,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
1476
1476
|
export default AppNavigations;
|
|
1477
1477
|
`;
|
|
1478
1478
|
appNavigation = importStatements + '\n' + rootComponent + '\n' + appComponent;
|
|
1479
|
-
appNavigation =
|
|
1479
|
+
appNavigation = prettier.format(appNavigation, { parser: 'babel' });
|
|
1480
1480
|
try {
|
|
1481
1481
|
await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_writeFile).call(this, navigationDirPath, appNavigation);
|
|
1482
1482
|
}
|