@admin-layout/gluestack-ui-mobile 11.0.4-alpha.4 → 11.2.1-alpha.1
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 +10 -24
- package/lib/components/ErrorBounday.js.map +1 -1
- package/lib/components/Fallback.js +12 -12
- package/lib/components/Fallback.js.map +1 -1
- package/lib/components/Layout/components/BasicLayout.js +2 -2
- package/lib/components/Layout/components/BasicLayout.js.map +1 -1
- package/lib/components/Layout/components/BottomTabBar.js +6 -6
- package/lib/components/Layout/components/BottomTabBar.js.map +1 -1
- package/lib/components/Layout/components/Drawer.js +17 -16
- package/lib/components/Layout/components/Drawer.js.map +1 -1
- package/lib/components/Layout/components/Header.js +15 -12
- package/lib/components/Layout/components/Header.js.map +1 -1
- package/lib/components/Layout/components/Sample.js +1 -1
- package/lib/components/Layout/components/Sample.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/LayoutButton.js +9 -9
- package/lib/components/Layout/components/SettingDrawer/LayoutButton.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/SettingDrawer.js +36 -37
- package/lib/components/Layout/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js +2 -13
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js.map +1 -1
- package/lib/components/Layout/components/SideBar.js +10 -7
- package/lib/components/Layout/components/SideBar.js.map +1 -1
- package/lib/components/NavigationComponent.js.map +1 -1
- package/lib/components/ToastAlert.d.ts +1 -1
- package/lib/components/ToastAlert.js +4 -4
- package/lib/components/ToastAlert.js.map +1 -1
- package/lib/components/UnAuthenticatedComponent.js +9 -9
- package/lib/components/UnAuthenticatedComponent.js.map +1 -1
- package/lib/components/WithConfiguration.d.ts +2 -2
- package/lib/components/WithConfiguration.js +4 -4
- package/lib/components/WithConfiguration.js.map +1 -1
- package/lib/components/WithPermission.js +1 -1
- package/lib/components/WithPermission.js.map +1 -1
- package/lib/components/WithPolicy.d.ts +2 -1
- package/lib/components/WithPolicy.js +1 -1
- package/lib/components/WithPolicy.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/with-interactions-lifecycle-managed.js +11 -13
- package/lib/components/with-interactions-lifecycle-managed.js.map +1 -1
- package/lib/components/with-interactions-managed.js +5 -4
- package/lib/components/with-interactions-managed.js.map +1 -1
- package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +53 -47
- package/lib/containers/layout/DrawerConfig.d.ts +35 -31
- package/lib/containers/layout/ProLayout.js +2 -2
- package/lib/containers/layout/ProLayout.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/redux/settings.d.ts +7 -9
- package/lib/utils/generateMobileNavigations.js +10 -34
- package/lib/utils/generateMobileNavigations.js.map +1 -1
- package/package.json +13 -37
- package/src/components/ErrorBounday.tsx +19 -18
- package/src/components/Fallback.tsx +58 -54
- package/src/components/Layout/components/BasicLayout.tsx +2 -2
- package/src/components/Layout/components/BottomTabBar.tsx +101 -92
- package/src/components/Layout/components/Drawer.tsx +28 -31
- package/src/components/Layout/components/Header.tsx +27 -26
- package/src/components/Layout/components/Sample.tsx +1 -1
- package/src/components/Layout/components/SettingDrawer/LayoutButton.tsx +29 -15
- package/src/components/Layout/components/SettingDrawer/SettingDrawer.tsx +57 -49
- package/src/components/Layout/components/SettingDrawer/ThemeColorButton.tsx +5 -14
- package/src/components/Layout/components/SideBar.tsx +17 -12
- package/src/components/NavigationComponent.tsx +1 -1
- package/src/components/ToastAlert.tsx +13 -13
- package/src/components/UnAuthenticatedComponent.tsx +29 -19
- package/src/components/WithConfiguration.tsx +6 -6
- package/src/components/WithPermission.tsx +1 -1
- package/src/components/WithPolicy.tsx +4 -4
- package/src/components/index.ts +0 -1
- package/src/components/with-interactions-lifecycle-managed.tsx +18 -13
- package/src/components/with-interactions-managed.tsx +10 -5
- package/src/containers/layout/ProLayout.tsx +3 -3
- package/src/index.ts +7 -6
- package/src/utils/generateMobileNavigations.ts +24 -52
- package/tsconfig.json +10 -3
- package/lib/components/ui/IconSymbol.d.ts +0 -19
- package/lib/components/ui/IconSymbol.ios.d.ts +0 -10
- package/lib/components/ui/IconSymbol.ios.js +0 -12
- package/lib/components/ui/IconSymbol.ios.js.map +0 -1
- package/lib/components/ui/IconSymbol.js +0 -21
- package/lib/components/ui/IconSymbol.js.map +0 -1
- package/lib/components/ui/TabBarBackground.d.ts +0 -2
- package/lib/components/ui/TabBarBackground.ios.d.ts +0 -3
- package/lib/components/ui/TabBarBackground.ios.js +0 -20
- package/lib/components/ui/TabBarBackground.ios.js.map +0 -1
- package/lib/components/ui/TabBarBackground.js +0 -6
- package/lib/components/ui/TabBarBackground.js.map +0 -1
- package/lib/components/ui/accordion/index.d.ts +0 -193
- package/lib/components/ui/accordion/index.js +0 -177
- package/lib/components/ui/accordion/index.js.map +0 -1
- package/lib/components/ui/actionsheet/index.d.ts +0 -735
- package/lib/components/ui/actionsheet/index.js +0 -274
- package/lib/components/ui/actionsheet/index.js.map +0 -1
- package/lib/components/ui/alert/index.d.ts +0 -479
- package/lib/components/ui/alert/index.js +0 -153
- package/lib/components/ui/alert/index.js.map +0 -1
- package/lib/components/ui/alert-dialog/index.d.ts +0 -59
- package/lib/components/ui/alert-dialog/index.js +0 -137
- package/lib/components/ui/alert-dialog/index.js.map +0 -1
- package/lib/components/ui/avatar/index.d.ts +0 -144
- package/lib/components/ui/avatar/index.js +0 -99
- package/lib/components/ui/avatar/index.js.map +0 -1
- package/lib/components/ui/badge/index.d.ts +0 -386
- package/lib/components/ui/badge/index.js +0 -139
- package/lib/components/ui/badge/index.js.map +0 -1
- package/lib/components/ui/box/index.d.ts +0 -7
- package/lib/components/ui/box/index.js +0 -9
- package/lib/components/ui/box/index.js.map +0 -1
- package/lib/components/ui/box/index.web.d.ts +0 -6
- package/lib/components/ui/box/index.web.js +0 -8
- package/lib/components/ui/box/index.web.js.map +0 -1
- package/lib/components/ui/box/styles.d.ts +0 -1
- package/lib/components/ui/box/styles.js +0 -9
- package/lib/components/ui/box/styles.js.map +0 -1
- package/lib/components/ui/button/index.d.ts +0 -529
- package/lib/components/ui/button/index.js +0 -280
- package/lib/components/ui/button/index.js.map +0 -1
- package/lib/components/ui/card/index.d.ts +0 -129
- package/lib/components/ui/card/index.js +0 -9
- package/lib/components/ui/card/index.js.map +0 -1
- package/lib/components/ui/card/index.web.d.ts +0 -126
- package/lib/components/ui/card/index.web.js +0 -8
- package/lib/components/ui/card/index.web.js.map +0 -1
- package/lib/components/ui/card/styles.d.ts +0 -123
- package/lib/components/ui/card/styles.js +0 -20
- package/lib/components/ui/card/styles.js.map +0 -1
- package/lib/components/ui/center/index.d.ts +0 -5
- package/lib/components/ui/center/index.js +0 -9
- package/lib/components/ui/center/index.js.map +0 -1
- package/lib/components/ui/center/index.web.d.ts +0 -4
- package/lib/components/ui/center/index.web.js +0 -8
- package/lib/components/ui/center/index.web.js.map +0 -1
- package/lib/components/ui/center/styles.d.ts +0 -1
- package/lib/components/ui/center/styles.js +0 -7
- package/lib/components/ui/center/styles.js.map +0 -1
- package/lib/components/ui/checkbox/index.d.ts +0 -115
- package/lib/components/ui/checkbox/index.js +0 -127
- package/lib/components/ui/checkbox/index.js.map +0 -1
- package/lib/components/ui/divider/index.d.ts +0 -54
- package/lib/components/ui/divider/index.js +0 -22
- package/lib/components/ui/divider/index.js.map +0 -1
- package/lib/components/ui/drawer/index.d.ts +0 -207
- package/lib/components/ui/drawer/index.js +0 -198
- package/lib/components/ui/drawer/index.js.map +0 -1
- package/lib/components/ui/fab/index.d.ts +0 -520
- package/lib/components/ui/fab/index.js +0 -142
- package/lib/components/ui/fab/index.js.map +0 -1
- package/lib/components/ui/flat-list/index.d.ts +0 -1
- package/lib/components/ui/flat-list/index.js +0 -3
- package/lib/components/ui/flat-list/index.js.map +0 -1
- package/lib/components/ui/form-control/index.d.ts +0 -2072
- package/lib/components/ui/form-control/index.js +0 -290
- package/lib/components/ui/form-control/index.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/config.d.ts +0 -4
- package/lib/components/ui/gluestack-ui-provider/config.js +0 -287
- package/lib/components/ui/gluestack-ui-provider/config.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/index.d.ts +0 -8
- package/lib/components/ui/gluestack-ui-provider/index.js +0 -22
- package/lib/components/ui/gluestack-ui-provider/index.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/index.web.d.ts +0 -7
- package/lib/components/ui/gluestack-ui-provider/index.web.js +0 -69
- package/lib/components/ui/gluestack-ui-provider/index.web.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/script.d.ts +0 -1
- package/lib/components/ui/gluestack-ui-provider/script.js +0 -17
- package/lib/components/ui/gluestack-ui-provider/script.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/types.d.ts +0 -1
- package/lib/components/ui/gluestack-ui-provider/types.js +0 -2
- package/lib/components/ui/gluestack-ui-provider/types.js.map +0 -1
- package/lib/components/ui/grid/index.d.ts +0 -27
- package/lib/components/ui/grid/index.js +0 -175
- package/lib/components/ui/grid/index.js.map +0 -1
- package/lib/components/ui/grid/index.web.d.ts +0 -23
- package/lib/components/ui/grid/index.web.js +0 -20
- package/lib/components/ui/grid/index.web.js.map +0 -1
- package/lib/components/ui/grid/styles.d.ts +0 -2
- package/lib/components/ui/grid/styles.js +0 -11
- package/lib/components/ui/grid/styles.js.map +0 -1
- package/lib/components/ui/heading/index.d.ts +0 -335
- package/lib/components/ui/heading/index.js +0 -135
- package/lib/components/ui/heading/index.js.map +0 -1
- package/lib/components/ui/heading/index.web.d.ts +0 -335
- package/lib/components/ui/heading/index.web.js +0 -113
- package/lib/components/ui/heading/index.web.js.map +0 -1
- package/lib/components/ui/heading/styles.d.ts +0 -330
- package/lib/components/ui/heading/styles.js +0 -43
- package/lib/components/ui/heading/styles.js.map +0 -1
- package/lib/components/ui/hstack/index.d.ts +0 -150
- package/lib/components/ui/hstack/index.js +0 -9
- package/lib/components/ui/hstack/index.js.map +0 -1
- package/lib/components/ui/hstack/index.web.d.ts +0 -148
- package/lib/components/ui/hstack/index.web.js +0 -8
- package/lib/components/ui/hstack/index.web.js.map +0 -1
- package/lib/components/ui/hstack/styles.d.ts +0 -145
- package/lib/components/ui/hstack/styles.js +0 -24
- package/lib/components/ui/hstack/styles.js.map +0 -1
- package/lib/components/ui/icon/index.d.ts +0 -364
- package/lib/components/ui/icon/index.js +0 -565
- package/lib/components/ui/icon/index.js.map +0 -1
- package/lib/components/ui/icon/index.web.d.ts +0 -489
- package/lib/components/ui/icon/index.web.js +0 -555
- package/lib/components/ui/icon/index.web.js.map +0 -1
- package/lib/components/ui/image/index.d.ts +0 -132
- package/lib/components/ui/image/index.js +0 -33
- package/lib/components/ui/image/index.js.map +0 -1
- package/lib/components/ui/image-background/index.d.ts +0 -3
- package/lib/components/ui/image-background/index.js +0 -11
- package/lib/components/ui/image-background/index.js.map +0 -1
- package/lib/components/ui/index.d.ts +0 -54
- package/lib/components/ui/index.js +0 -55
- package/lib/components/ui/index.js.map +0 -1
- package/lib/components/ui/input/index.d.ts +0 -262
- package/lib/components/ui/input/index.js +0 -121
- package/lib/components/ui/input/index.js.map +0 -1
- package/lib/components/ui/input-accessory-view/index.d.ts +0 -1
- package/lib/components/ui/input-accessory-view/index.js +0 -3
- package/lib/components/ui/input-accessory-view/index.js.map +0 -1
- package/lib/components/ui/keyboard-avoiding-view/index.d.ts +0 -1
- package/lib/components/ui/keyboard-avoiding-view/index.js +0 -3
- package/lib/components/ui/keyboard-avoiding-view/index.js.map +0 -1
- package/lib/components/ui/link/index.d.ts +0 -369
- package/lib/components/ui/link/index.js +0 -69
- package/lib/components/ui/link/index.js.map +0 -1
- package/lib/components/ui/menu/index.d.ts +0 -376
- package/lib/components/ui/menu/index.js +0 -120
- package/lib/components/ui/menu/index.js.map +0 -1
- package/lib/components/ui/modal/index.d.ts +0 -146
- package/lib/components/ui/modal/index.js +0 -137
- package/lib/components/ui/modal/index.js.map +0 -1
- package/lib/components/ui/popover/index.d.ts +0 -310
- package/lib/components/ui/popover/index.js +0 -172
- package/lib/components/ui/popover/index.js.map +0 -1
- package/lib/components/ui/portal/index.d.ts +0 -2
- package/lib/components/ui/portal/index.js +0 -9
- package/lib/components/ui/portal/index.js.map +0 -1
- package/lib/components/ui/pressable/index.d.ts +0 -13
- package/lib/components/ui/pressable/index.js +0 -20
- package/lib/components/ui/pressable/index.js.map +0 -1
- package/lib/components/ui/progress/index.d.ts +0 -174
- package/lib/components/ui/progress/index.js +0 -127
- package/lib/components/ui/progress/index.js.map +0 -1
- package/lib/components/ui/radio/index.d.ts +0 -160
- package/lib/components/ui/radio/index.js +0 -122
- package/lib/components/ui/radio/index.js.map +0 -1
- package/lib/components/ui/refresh-control/index.d.ts +0 -1
- package/lib/components/ui/refresh-control/index.js +0 -3
- package/lib/components/ui/refresh-control/index.js.map +0 -1
- package/lib/components/ui/safe-area-view/index.d.ts +0 -6
- package/lib/components/ui/safe-area-view/index.js +0 -9
- package/lib/components/ui/safe-area-view/index.js.map +0 -1
- package/lib/components/ui/safe-area-view/styles.d.ts +0 -1
- package/lib/components/ui/safe-area-view/styles.js +0 -9
- package/lib/components/ui/safe-area-view/styles.js.map +0 -1
- package/lib/components/ui/scroll-view/index.d.ts +0 -1
- package/lib/components/ui/scroll-view/index.js +0 -3
- package/lib/components/ui/scroll-view/index.js.map +0 -1
- package/lib/components/ui/section-list/index.d.ts +0 -1
- package/lib/components/ui/section-list/index.js +0 -3
- package/lib/components/ui/section-list/index.js.map +0 -1
- package/lib/components/ui/select/index.d.ts +0 -1708
- package/lib/components/ui/select/index.js +0 -155
- package/lib/components/ui/select/index.js.map +0 -1
- package/lib/components/ui/select/select-actionsheet.d.ts +0 -900
- package/lib/components/ui/select/select-actionsheet.js +0 -275
- package/lib/components/ui/select/select-actionsheet.js.map +0 -1
- package/lib/components/ui/skeleton/index.d.ts +0 -268
- package/lib/components/ui/skeleton/index.js +0 -63
- package/lib/components/ui/skeleton/index.js.map +0 -1
- package/lib/components/ui/skeleton/index.web.d.ts +0 -267
- package/lib/components/ui/skeleton/index.web.js +0 -37
- package/lib/components/ui/skeleton/index.web.js.map +0 -1
- package/lib/components/ui/skeleton/styles.d.ts +0 -257
- package/lib/components/ui/skeleton/styles.js +0 -35
- package/lib/components/ui/skeleton/styles.js.map +0 -1
- package/lib/components/ui/slider/index.d.ts +0 -211
- package/lib/components/ui/slider/index.js +0 -180
- package/lib/components/ui/slider/index.js.map +0 -1
- package/lib/components/ui/spinner/index.d.ts +0 -4
- package/lib/components/ui/spinner/index.js +0 -15
- package/lib/components/ui/spinner/index.js.map +0 -1
- package/lib/components/ui/status-bar/index.d.ts +0 -1
- package/lib/components/ui/status-bar/index.js +0 -3
- package/lib/components/ui/status-bar/index.js.map +0 -1
- package/lib/components/ui/switch/index.d.ts +0 -72
- package/lib/components/ui/switch/index.js +0 -25
- package/lib/components/ui/switch/index.js.map +0 -1
- package/lib/components/ui/table/index.d.ts +0 -17
- package/lib/components/ui/table/index.js +0 -96
- package/lib/components/ui/table/index.js.map +0 -1
- package/lib/components/ui/table/index.web.d.ts +0 -10
- package/lib/components/ui/table/index.web.js +0 -60
- package/lib/components/ui/table/index.web.js.map +0 -1
- package/lib/components/ui/table/styles.d.ts +0 -75
- package/lib/components/ui/table/styles.js +0 -36
- package/lib/components/ui/table/styles.js.map +0 -1
- package/lib/components/ui/text/index.d.ts +0 -358
- package/lib/components/ui/text/index.js +0 -19
- package/lib/components/ui/text/index.js.map +0 -1
- package/lib/components/ui/text/index.web.d.ts +0 -6
- package/lib/components/ui/text/index.web.js +0 -18
- package/lib/components/ui/text/index.web.js.map +0 -1
- package/lib/components/ui/text/styles.d.ts +0 -352
- package/lib/components/ui/text/styles.js +0 -45
- package/lib/components/ui/text/styles.js.map +0 -1
- package/lib/components/ui/textarea/index.d.ts +0 -129
- package/lib/components/ui/textarea/index.js +0 -52
- package/lib/components/ui/textarea/index.js.map +0 -1
- package/lib/components/ui/toast/index.d.ts +0 -527
- package/lib/components/ui/toast/index.js +0 -165
- package/lib/components/ui/toast/index.js.map +0 -1
- package/lib/components/ui/tooltip/index.d.ts +0 -391
- package/lib/components/ui/tooltip/index.js +0 -75
- package/lib/components/ui/tooltip/index.js.map +0 -1
- package/lib/components/ui/utils/use-break-point-value.d.ts +0 -14
- package/lib/components/ui/utils/use-break-point-value.js +0 -54
- package/lib/components/ui/utils/use-break-point-value.js.map +0 -1
- package/lib/components/ui/view/index.d.ts +0 -1
- package/lib/components/ui/view/index.js +0 -3
- package/lib/components/ui/view/index.js.map +0 -1
- package/lib/components/ui/virtualized-list/index.d.ts +0 -1
- package/lib/components/ui/virtualized-list/index.js +0 -3
- package/lib/components/ui/virtualized-list/index.js.map +0 -1
- package/lib/components/ui/vstack/index.d.ts +0 -149
- package/lib/components/ui/vstack/index.js +0 -9
- package/lib/components/ui/vstack/index.js.map +0 -1
- package/lib/components/ui/vstack/index.web.d.ts +0 -6
- package/lib/components/ui/vstack/index.web.js +0 -8
- package/lib/components/ui/vstack/index.web.js.map +0 -1
- package/lib/components/ui/vstack/styles.d.ts +0 -145
- package/lib/components/ui/vstack/styles.js +0 -24
- package/lib/components/ui/vstack/styles.js.map +0 -1
- package/lib/global.css +0 -3
- package/lib/gluestack-ui-base-config.d.ts +0 -8
- package/lib/gluestack-ui-base-config.js +0 -12
- package/lib/gluestack-ui-base-config.js.map +0 -1
- package/lib/nativewind-env.d.ts +0 -1
- package/lib/tailwind-base-config.d.ts +0 -194
- package/lib/tailwind-base-config.js +0 -197
- package/lib/tailwind-base-config.js.map +0 -1
- package/lib/tailwind.config.d.ts +0 -1
- package/lib/tailwind.config.js +0 -197
- package/lib/tailwind.config.js.map +0 -1
- package/src/components/ui/IconSymbol.ios.tsx +0 -33
- package/src/components/ui/IconSymbol.tsx +0 -40
- package/src/components/ui/TabBarBackground.ios.tsx +0 -23
- package/src/components/ui/TabBarBackground.tsx +0 -6
- package/src/components/ui/accordion/index.tsx +0 -304
- package/src/components/ui/actionsheet/index.tsx +0 -499
- package/src/components/ui/alert/index.tsx +0 -205
- package/src/components/ui/alert-dialog/index.tsx +0 -260
- package/src/components/ui/avatar/index.tsx +0 -162
- package/src/components/ui/badge/index.tsx +0 -188
- package/src/components/ui/box/index.tsx +0 -14
- package/src/components/ui/box/index.web.tsx +0 -13
- package/src/components/ui/box/styles.tsx +0 -10
- package/src/components/ui/button/index.tsx +0 -353
- package/src/components/ui/card/index.tsx +0 -16
- package/src/components/ui/card/index.web.tsx +0 -15
- package/src/components/ui/card/styles.tsx +0 -20
- package/src/components/ui/center/index.tsx +0 -14
- package/src/components/ui/center/index.web.tsx +0 -14
- package/src/components/ui/center/styles.tsx +0 -8
- package/src/components/ui/checkbox/index.tsx +0 -192
- package/src/components/ui/divider/index.tsx +0 -38
- package/src/components/ui/drawer/index.tsx +0 -311
- package/src/components/ui/fab/index.tsx +0 -190
- package/src/components/ui/flat-list/index.tsx +0 -2
- package/src/components/ui/form-control/index.tsx +0 -432
- package/src/components/ui/gluestack-ui-provider/config.ts +0 -309
- package/src/components/ui/gluestack-ui-provider/index.tsx +0 -38
- package/src/components/ui/gluestack-ui-provider/index.web.tsx +0 -88
- package/src/components/ui/gluestack-ui-provider/script.ts +0 -17
- package/src/components/ui/gluestack-ui-provider/types.ts +0 -1
- package/src/components/ui/grid/index.tsx +0 -284
- package/src/components/ui/grid/index.web.tsx +0 -61
- package/src/components/ui/grid/styles.tsx +0 -13
- package/src/components/ui/heading/index.tsx +0 -193
- package/src/components/ui/heading/index.web.tsx +0 -177
- package/src/components/ui/heading/styles.tsx +0 -43
- package/src/components/ui/hstack/index.tsx +0 -17
- package/src/components/ui/hstack/index.web.tsx +0 -15
- package/src/components/ui/hstack/styles.tsx +0 -25
- package/src/components/ui/icon/index.tsx +0 -1202
- package/src/components/ui/icon/index.web.tsx +0 -1190
- package/src/components/ui/image/index.tsx +0 -48
- package/src/components/ui/image-background/index.tsx +0 -21
- package/src/components/ui/index.ts +0 -54
- package/src/components/ui/input/index.tsx +0 -191
- package/src/components/ui/input-accessory-view/index.tsx +0 -2
- package/src/components/ui/keyboard-avoiding-view/index.tsx +0 -2
- package/src/components/ui/link/index.tsx +0 -92
- package/src/components/ui/menu/index.tsx +0 -179
- package/src/components/ui/modal/index.tsx +0 -244
- package/src/components/ui/popover/index.tsx +0 -309
- package/src/components/ui/portal/index.tsx +0 -12
- package/src/components/ui/pressable/index.tsx +0 -34
- package/src/components/ui/progress/index.tsx +0 -160
- package/src/components/ui/radio/index.tsx +0 -178
- package/src/components/ui/refresh-control/index.tsx +0 -2
- package/src/components/ui/safe-area-view/index.tsx +0 -22
- package/src/components/ui/safe-area-view/styles.tsx +0 -10
- package/src/components/ui/scroll-view/index.tsx +0 -2
- package/src/components/ui/section-list/index.tsx +0 -2
- package/src/components/ui/select/index.tsx +0 -251
- package/src/components/ui/select/select-actionsheet.tsx +0 -503
- package/src/components/ui/skeleton/index.tsx +0 -113
- package/src/components/ui/skeleton/index.web.tsx +0 -92
- package/src/components/ui/skeleton/styles.tsx +0 -35
- package/src/components/ui/slider/index.tsx +0 -239
- package/src/components/ui/spinner/index.tsx +0 -31
- package/src/components/ui/status-bar/index.tsx +0 -2
- package/src/components/ui/switch/index.tsx +0 -33
- package/src/components/ui/table/index.tsx +0 -171
- package/src/components/ui/table/index.web.tsx +0 -95
- package/src/components/ui/table/styles.tsx +0 -44
- package/src/components/ui/text/index.tsx +0 -53
- package/src/components/ui/text/index.web.tsx +0 -45
- package/src/components/ui/text/styles.tsx +0 -47
- package/src/components/ui/textarea/index.tsx +0 -83
- package/src/components/ui/toast/index.tsx +0 -218
- package/src/components/ui/tooltip/index.tsx +0 -104
- package/src/components/ui/utils/use-break-point-value.ts +0 -79
- package/src/components/ui/view/index.tsx +0 -2
- package/src/components/ui/virtualized-list/index.tsx +0 -2
- package/src/components/ui/vstack/index.tsx +0 -17
- package/src/components/ui/vstack/index.web.tsx +0 -16
- package/src/components/ui/vstack/styles.tsx +0 -25
- package/src/global.css +0 -3
- package/src/gluestack-ui-base-config.js +0 -12
- package/src/gluestack-ui.config.json +0 -10
- package/src/nativewind-env.d.ts +0 -1
- package/src/tailwind-base-config.js +0 -197
- package/src/tailwind.config.js +0 -198
|
@@ -1,56 +1,55 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Text, HStack, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicatorWrapper, ActionsheetDragIndicator, Select, SelectTrigger, SelectInput, Icon, ChevronDownIcon, SelectPortal, SelectBackdrop, SelectContent, SelectDragIndicatorWrapper, SelectDragIndicator, SelectItem, Divider, Switch,
|
|
2
|
+
import { Box, Text, HStack, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicatorWrapper, ActionsheetDragIndicator, Select, SelectTrigger, SelectInput, Icon, ChevronDownIcon, SelectPortal, SelectBackdrop, SelectContent, SelectDragIndicatorWrapper, SelectDragIndicator, SelectItem, Divider, Switch, ScrollView, } from '@gluestack-ui/themed';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import LayoutButton from './LayoutButton';
|
|
5
5
|
import ThemeColorButton from './ThemeColorButton';
|
|
6
6
|
import { THEMECOLOR } from '../../../../utils/ThemeColor';
|
|
7
7
|
export const SettingDrawer = ({ isOpen, onSettingChange, handleClose }) => {
|
|
8
8
|
const settings = useSelector((state) => state.settings);
|
|
9
|
-
return (React.createElement(Actionsheet, { isOpen: isOpen, onClose: handleClose,
|
|
9
|
+
return (React.createElement(Actionsheet, { isOpen: isOpen, onClose: handleClose, zIndex: 999 },
|
|
10
10
|
React.createElement(ActionsheetBackdrop, null),
|
|
11
|
-
React.createElement(ActionsheetContent, {
|
|
11
|
+
React.createElement(ActionsheetContent, { zIndex: 999, w: '100%' },
|
|
12
12
|
React.createElement(ActionsheetDragIndicatorWrapper, null,
|
|
13
13
|
React.createElement(ActionsheetDragIndicator, null)),
|
|
14
|
-
React.createElement(
|
|
15
|
-
React.createElement(Box, {
|
|
16
|
-
React.createElement(Text, {
|
|
17
|
-
React.createElement(HStack, { space: 'md',
|
|
14
|
+
React.createElement(ScrollView, null,
|
|
15
|
+
React.createElement(Box, { alignItems: "flex-start", bg: '$white', w: '100%', p: '$3' },
|
|
16
|
+
React.createElement(Text, { color: '#00000', fontWeight: '$semibold' }, "Page style setting"),
|
|
17
|
+
React.createElement(HStack, { space: 'md', mt: '$3' },
|
|
18
18
|
React.createElement(LayoutButton, { mode: "style", settings: settings, onSettingChange: onSettingChange, color: 'light' }),
|
|
19
19
|
React.createElement(LayoutButton, { mode: "style", settings: settings, onSettingChange: onSettingChange, color: 'dark' }),
|
|
20
20
|
React.createElement(LayoutButton, { mode: "style", settings: settings, onSettingChange: onSettingChange, color: 'realDark' })),
|
|
21
|
-
React.createElement(Text, {
|
|
22
|
-
React.createElement(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
React.createElement(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
React.createElement(
|
|
34
|
-
|
|
35
|
-
React.createElement(
|
|
36
|
-
React.createElement(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
React.createElement(
|
|
44
|
-
React.createElement(
|
|
45
|
-
React.createElement(
|
|
46
|
-
React.createElement(
|
|
47
|
-
React.createElement(HStack, { space: 'md', className: "mt-3" },
|
|
21
|
+
React.createElement(Text, { color: '#000000', fontWeight: '$semibold', mt: '$2' }, "Select Theme"),
|
|
22
|
+
React.createElement(Select, { mt: '$2', w: '100%', selectedValue: settings?.themeName, onValueChange: (value) => {
|
|
23
|
+
const newSettings = {
|
|
24
|
+
...settings,
|
|
25
|
+
themeName: value,
|
|
26
|
+
};
|
|
27
|
+
onSettingChange(newSettings);
|
|
28
|
+
} },
|
|
29
|
+
React.createElement(SelectTrigger, { variant: "outline", size: "md" },
|
|
30
|
+
React.createElement(SelectInput, { placeholder: "Select option" }),
|
|
31
|
+
React.createElement(Icon, { as: ChevronDownIcon, mr: '$3' })),
|
|
32
|
+
React.createElement(SelectPortal, null,
|
|
33
|
+
React.createElement(SelectBackdrop, null),
|
|
34
|
+
React.createElement(SelectContent, null,
|
|
35
|
+
React.createElement(SelectDragIndicatorWrapper, null,
|
|
36
|
+
React.createElement(SelectDragIndicator, null)),
|
|
37
|
+
React.createElement(SelectItem, { label: "Default", value: "default" }),
|
|
38
|
+
React.createElement(SelectItem, { label: "Github Theme", value: "github" }),
|
|
39
|
+
React.createElement(SelectItem, { label: "Slack Theme", value: "slack" }),
|
|
40
|
+
React.createElement(SelectItem, { label: "Airbnb Theme", value: "airbnb" }),
|
|
41
|
+
React.createElement(SelectItem, { label: "Spotify Theme", value: "spotify" })))),
|
|
42
|
+
React.createElement(Text, { color: '#000000', fontWeight: '$semibold', mt: '$2' }, "Theme Color"),
|
|
43
|
+
React.createElement(HStack, { space: 'md', mt: '$3', flexWrap: 'wrap' }, THEMECOLOR.map((color, index) => (React.createElement(ThemeColorButton, { key: index, color: color, settings: settings, onSettingChange: onSettingChange })))),
|
|
44
|
+
React.createElement(Divider, { my: '$4' }),
|
|
45
|
+
React.createElement(Text, { color: '#000000', fontWeight: '$semibold', mt: '$2' }, "Navigation Mode"),
|
|
46
|
+
React.createElement(HStack, { space: 'md', mt: '$3' },
|
|
48
47
|
React.createElement(LayoutButton, { mode: "layout", settings: settings, onSettingChange: onSettingChange, color: 'light' }),
|
|
49
48
|
React.createElement(LayoutButton, { mode: "layout", bottom: true, settings: settings, onSettingChange: onSettingChange, color: 'light' }),
|
|
50
49
|
React.createElement(LayoutButton, { mode: "light", bottomOnly: true, settings: settings, onSettingChange: onSettingChange, color: 'light' })),
|
|
51
|
-
React.createElement(Divider, {
|
|
52
|
-
React.createElement(Text, {
|
|
53
|
-
React.createElement(HStack, {
|
|
50
|
+
React.createElement(Divider, { my: '$4' }),
|
|
51
|
+
React.createElement(Text, { color: '#000000', fontWeight: '$semibold', mt: '$2' }, "Regional Settings"),
|
|
52
|
+
React.createElement(HStack, { w: '100%', mt: '$3', justifyContent: 'space-between', alignItems: "center" },
|
|
54
53
|
React.createElement(Text, null, "Menu Header"),
|
|
55
54
|
React.createElement(Switch, { onValueChange: (value) => {
|
|
56
55
|
console.log(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingDrawer.js","sourceRoot":"","sources":["../../../../../src/components/Layout/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,GAAG,EACH,IAAI,EACJ,MAAM,EACN,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,+BAA+B,EAC/B,wBAAwB,EACxB,MAAM,EACN,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,YAAY,EACZ,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,mBAAmB,EACnB,UAAU,EACV,OAAO,EACP,MAAM,
|
|
1
|
+
{"version":3,"file":"SettingDrawer.js","sourceRoot":"","sources":["../../../../../src/components/Layout/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,GAAG,EACH,IAAI,EACJ,MAAM,EACN,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,+BAA+B,EAC/B,wBAAwB,EACxB,MAAM,EACN,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,YAAY,EACZ,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,mBAAmB,EACnB,UAAU,EACV,OAAO,EACP,MAAM,EACN,UAAU,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,YA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CAAC,KAAK,EAAE,EAAE;gCACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gCACnB,MAAM,WAAW,GAAG;oCAChB,GAAG,QAAQ;oCACX,UAAU,EAAE,KAAK;iCACpB,CAAC;gCACF,eAAe,CAAC,WAAW,CAAC,CAAC;4BACjC,CAAC,EACD,SAAS,EAAE,QAAQ,EAAE,UAAU,EAC/B,KAAK,EAAE,QAAQ,EAAE,UAAU,GAC7B,CACG,CACP,CACG,CACI,CACX,CACjB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Pressable, Box } from '
|
|
3
|
-
const colorClassMap = {
|
|
4
|
-
'#4a154b': 'bg-[#4a154b]',
|
|
5
|
-
'#601e69': 'bg-[#601e69]',
|
|
6
|
-
'#1d1c1d': 'bg-[#1d1c1d]',
|
|
7
|
-
'#36c5ef': 'bg-[#36c5ef]',
|
|
8
|
-
'#2db57c': 'bg-[#2db57c]',
|
|
9
|
-
'#e01d5a': 'bg-[#e01d5a]',
|
|
10
|
-
'#ecb12f': 'bg-[#ecb12f]',
|
|
11
|
-
'#616061': 'bg-[#616061]',
|
|
12
|
-
'#dcd9d4': 'bg-[#dcd9d4]',
|
|
13
|
-
};
|
|
2
|
+
import { Pressable, Box } from '@gluestack-ui/themed';
|
|
14
3
|
const ThemeColorButton = ({ color, onSettingChange, settings }) => {
|
|
15
|
-
return (React.createElement(Pressable, {
|
|
4
|
+
return (React.createElement(Pressable, { backgroundColor: color, height: '$6', width: '$6', borderRadius: '$sm', onPress: () => {
|
|
16
5
|
let { primaryColor, ...rest } = settings;
|
|
17
6
|
primaryColor = color;
|
|
18
7
|
const newSettings = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeColorButton.js","sourceRoot":"","sources":["../../../../../src/components/Layout/components/SettingDrawer/ThemeColorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ThemeColorButton.js","sourceRoot":"","sources":["../../../../../src/components/Layout/components/SettingDrawer/ThemeColorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAO,EAAE,EAAE;IACnE,OAAO,CACH,oBAAC,SAAS,IACN,eAAe,EAAE,KAAK,EACtB,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,EACX,YAAY,EAAE,KAAK,EACnB,OAAO,EAAE,GAAG,EAAE;YACV,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAC;YACzC,YAAY,GAAG,KAAK,CAAC;YACrB,MAAM,WAAW,GAAG;gBAChB,GAAG,IAAI;gBACP,YAAY;aACf,CAAC;YACF,eAAe,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;QAED,oBAAC,GAAG,OAAG,CACC,CACf,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { HStack, Text, Box, Divider, FlatList } from '
|
|
2
|
+
import { HStack, Text, Box, Divider, FlatList } from '@gluestack-ui/themed';
|
|
3
3
|
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
4
4
|
import { Ionicons } from '@expo/vector-icons';
|
|
5
5
|
import { Link } from 'react-router-native';
|
|
@@ -24,24 +24,27 @@ const SideBar = ({ menuData, matchUrl, navTheme, drawerRef }) => {
|
|
|
24
24
|
history.push({ pathname: menu.path, state: menu.name });
|
|
25
25
|
drawerRef.current.closeDrawer();
|
|
26
26
|
};
|
|
27
|
-
return (React.createElement(Box, {
|
|
27
|
+
return (React.createElement(Box, { flex: 1, style: { backgroundColor: navTheme === 'dark' ? COLOR.GREYISH_BLACK : COLOR.WHITE } }, !!isMenuExist && (React.createElement(FlatList, { data: menuData, renderItem: ({ item }) => {
|
|
28
28
|
const keys = item?.key.split('.');
|
|
29
29
|
const arrowIcon = icon || 'chevron-down-outline';
|
|
30
|
-
return item?.routes ? (React.createElement(Box, {
|
|
30
|
+
return item?.routes ? (React.createElement(Box, { p: "$3" },
|
|
31
31
|
React.createElement(TouchableOpacity, { onPress: () => toggle() },
|
|
32
32
|
React.createElement(HStack, null,
|
|
33
33
|
React.createElement(Ionicons, { color: isToggle ? '#fff' : '#a1a1a1', name: "document-outline" }),
|
|
34
|
-
React.createElement(Text, { color: isToggle ? '#fff' : '#a1a1a1' }, item.name),
|
|
34
|
+
React.createElement(Text, { style: { color: isToggle ? '#fff' : '#a1a1a1' } }, item.name),
|
|
35
35
|
React.createElement(Ionicons, { name: arrowIcon }))),
|
|
36
36
|
isToggle
|
|
37
37
|
? item.routes.map((subMenu) => (React.createElement(Box, { key: subMenu.key },
|
|
38
38
|
React.createElement(Link, { to: subMenu.path, underlayColor: "#f0f4f7" },
|
|
39
|
-
React.createElement(Text, {
|
|
40
|
-
: null)) : (keys[0] != 'Main' && keys[0] == 'sidebar' && (React.createElement(Box, { key: item.key,
|
|
39
|
+
React.createElement(Text, { style: { color: '#a1a1a1' } }, subMenu.name)))))
|
|
40
|
+
: null)) : (keys[0] != 'Main' && keys[0] == 'sidebar' && (React.createElement(Box, { key: item.key, p: "$3" },
|
|
41
41
|
React.createElement(TouchableOpacity, { style: { marginBottom: 10 }, onPress: () => openMenuItem(item) },
|
|
42
42
|
React.createElement(HStack, null,
|
|
43
43
|
React.createElement(Ionicons, { size: 20, color: navTheme === 'dark' ? COLOR.LIGHT_GREY : COLOR.BLACK, name: item.icon }),
|
|
44
|
-
React.createElement(Text, {
|
|
44
|
+
React.createElement(Text, { style: {
|
|
45
|
+
color: navTheme === 'dark' ? COLOR.LIGHT_GREY : COLOR.BLACK,
|
|
46
|
+
marginLeft: 10,
|
|
47
|
+
} }, item.name))),
|
|
45
48
|
React.createElement(Divider, null))));
|
|
46
49
|
} }))));
|
|
47
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/SideBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAQ,IAAI,EAAE,GAAG,EAAa,OAAO,EAAU,QAAQ,
|
|
1
|
+
{"version":3,"file":"SideBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/SideBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAQ,IAAI,EAAE,GAAG,EAAa,OAAO,EAAU,QAAQ,EAAgB,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AASlD,MAAM,OAAO,GAA2B,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IACpF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IACzD,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,UAAU,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GACjB;wBACF,oBAAC,IAAI,IACD,KAAK,EAAE;gCACH,KAAK,EAAE,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK;gCAC3D,UAAU,EAAE,EAAE;6BACjB,IAEA,IAAI,CAAC,IAAI,CACP,CACF,CACM;gBACnB,oBAAC,OAAO,OAAG,CACT,CACT,CACJ,CAAC;QACN,CAAC,GACH,CACL,CACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE;QACJ,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,EAAE;QACb,YAAY,EAAE,EAAE;KACnB;CACJ,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationComponent.js","sourceRoot":"","sources":["../../src/components/NavigationComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAkB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"NavigationComponent.js","sourceRoot":"","sources":["../../src/components/NavigationComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAkB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAS,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAkC,MAAM,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE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CAAC;gBAC/B,YAAY,CAAC,OAAO,GAAG,YAAY,CAAC;gBAEpC,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC,CAAC;gBAEzD,aAAa;gBACb,qCAAqC;gBACrC,iBAAiB;gBACjB,0BAA0B;gBAC1B,iCAAiC;gBACjC,kCAAkC;gBAClC,aAAa;gBACb,2BAA2B;gBAC3B,kCAAkC;gBAClC,yEAAyE;gBACzE,aAAa;gBACb,SAAS;gBACT,MAAM;YACV,CAAC;QACL,CAAC,IAEA,QAAQ,CACS,CACzB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -8,5 +8,5 @@ interface IToast {
|
|
|
8
8
|
toast?: any;
|
|
9
9
|
variant?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast
|
|
11
|
+
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast }: IToast) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon } from '
|
|
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 },
|
|
11
11
|
React.createElement(VStack, { space: "xs" },
|
|
12
12
|
React.createElement(ToastTitle, null, title),
|
|
13
13
|
description && React.createElement(ToastDescription, null, description)),
|
|
14
|
-
isClosable && toast ? (React.createElement(Pressable, {
|
|
15
|
-
React.createElement(Icon, { as: CloseIcon,
|
|
14
|
+
isClosable && toast ? (React.createElement(Pressable, { mt: "$1", onPress: () => toast?.close(id) },
|
|
15
|
+
React.createElement(Icon, { as: CloseIcon, color: "$coolGray50" }))) : null));
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=ToastAlert.js.map
|
|
@@ -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,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,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,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Button, Heading, Text, Divider, ButtonText,
|
|
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();
|
|
6
|
-
return (React.createElement(
|
|
7
|
-
React.createElement(Box, {
|
|
8
|
-
React.createElement(Box, {
|
|
9
|
-
React.createElement(Heading, {
|
|
10
|
-
React.createElement(Text, {
|
|
11
|
-
React.createElement(Button, {
|
|
12
|
-
React.createElement(ButtonText, {
|
|
13
|
-
React.createElement(Divider, {
|
|
6
|
+
return (React.createElement(SafeAreaView, { flex: 1 },
|
|
7
|
+
React.createElement(Box, { flex: 1, borderTopWidth: '$1', borderTopColor: '$trueGray200' },
|
|
8
|
+
React.createElement(Box, { flex: 1, p: '$6', bg: "$white", justifyContent: 'center' },
|
|
9
|
+
React.createElement(Heading, { mt: '$2' }, "Login"),
|
|
10
|
+
React.createElement(Text, { fontSize: "$md", mt: '$2' }, "Log in to continue."),
|
|
11
|
+
React.createElement(Button, { bg: '$blue500', size: "lg", my: '$3', onPress: () => navigation.navigate('MainStack.Login') },
|
|
12
|
+
React.createElement(ButtonText, { color: "$white" }, "Login")),
|
|
13
|
+
React.createElement(Divider, { my: '$3' })))));
|
|
14
14
|
};
|
|
15
15
|
export default UnAuthenticatedComponent;
|
|
16
16
|
//# sourceMappingURL=UnAuthenticatedComponent.js.map
|
|
@@ -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,EACH,GAAG,EACH,MAAM,EACN,OAAO,EACP,IAAI,EAGJ,OAAO,EACP,UAAU,EACV,YAAY,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIxD,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACnC,MAAM,UAAU,GAAG,aAAa,EAAO,CAAC;IACxC,OAAO,CACH,oBAAC,YAAY,IAAC,IAAI,EAAE,CAAC;QACrB,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,CACd,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PermissionType } from 'common';
|
|
2
|
+
import { PermissionType, IConfigurationsFlattenedKeys } from 'common';
|
|
3
3
|
import { IPreDefinedPermissions } from '@adminide-stack/core';
|
|
4
4
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
|
5
5
|
export interface IWithConfigurationProps {
|
|
6
6
|
children?: React.ReactElement;
|
|
7
|
-
configKey:
|
|
7
|
+
configKey: IConfigurationsFlattenedKeys;
|
|
8
8
|
permissionKeys?: IPreDefinedPermissions[];
|
|
9
9
|
permissionTypes?: PermissionType[];
|
|
10
10
|
resourceName?: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Spinner, Box, Text, Heading } from '@gluestack-ui/themed';
|
|
2
3
|
import { PermissionType, Visibility } from 'common';
|
|
3
4
|
import { useSetting, usePermissionAutoFetch } from '@adminide-stack/platform-client';
|
|
4
5
|
import { get } from 'lodash-es';
|
|
5
|
-
import { Spinner, Box, Text, Heading } from './ui';
|
|
6
6
|
export const WithConfiguration = (props) => {
|
|
7
7
|
const { configKey, children, permissionKeys, resourceName, permissionTypes } = props;
|
|
8
|
-
const { data
|
|
9
|
-
configKey
|
|
8
|
+
const { data, loading: settingsLoading, updateConfiguration: _, } = useSetting({
|
|
9
|
+
configKey,
|
|
10
10
|
overrides: { resource: props.settingsUri },
|
|
11
11
|
});
|
|
12
12
|
// const { data: permissions, loading: permissionLoading } = usePermissionAutoFetch();
|
|
13
13
|
const { permissions, loading: permissionLoading } = usePermissionAutoFetch();
|
|
14
|
-
const isPrivate = React.useMemo(() => Visibility.Private ===
|
|
14
|
+
const isPrivate = React.useMemo(() => Visibility.Private === data, [data]);
|
|
15
15
|
const hasPermission = React.useMemo(() => {
|
|
16
16
|
if (isPrivate && permissions && Array.isArray(permissionKeys)) {
|
|
17
17
|
return permissionKeys.some((key) => permissionTypes.includes(get(permissions?.resolveConfiguration, key)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithConfiguration.js","sourceRoot":"","sources":["../../src/components/WithConfiguration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"WithConfiguration.js","sourceRoot":"","sources":["../../src/components/WithConfiguration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAgC,MAAM,QAAQ,CAAC;AAElF,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAYhC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA8B,EAAE,EAAE;IAChE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAErF,MAAM,EACF,IAAI,EACJ,OAAO,EAAE,eAAe,EACxB,mBAAmB,EAAE,CAAC,GACzB,GAAG,UAAU,CAAC;QACX,SAAS;QACT,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,EAAE;KAC7C,CAAC,CAAC;IACH,sFAAsF;IACtF,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,sBAAsB,EAAE,CAAC;IAE7E,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,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eAAe,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Spinner, Box, Text, Heading } from '@gluestack-ui/themed';
|
|
2
3
|
import { PermissionType } from 'common';
|
|
3
4
|
import { get } from 'lodash-es';
|
|
4
5
|
import { usePermissionAutoFetch } from '@adminide-stack/platform-client';
|
|
5
|
-
import { Spinner, Box, Text, Heading } from './ui';
|
|
6
6
|
export var WithPermissionBehaviour;
|
|
7
7
|
(function (WithPermissionBehaviour) {
|
|
8
8
|
WithPermissionBehaviour[WithPermissionBehaviour["hide"] = 0] = "hide";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithPermission.js","sourceRoot":"","sources":["../../src/components/WithPermission.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"WithPermission.js","sourceRoot":"","sources":["../../src/components/WithPermission.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAC/B,qEAAI,CAAA;IACJ,6FAAgB,CAAA;IAChB,2FAAe,CAAA;AACnB,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AAYD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AG,CAAC;QACvB,CAAC;QACD,OAAO,CACH,oBAAC,GAAG;YACA,oBAAC,OAAO,6BAA6B;YACrC,oBAAC,IAAI,QAAE,OAAO,CAAQ,CACpB,CACT,CAAC;IACN,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG;IAC1B,eAAe,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC;IACvC,SAAS,EAAE,uBAAuB,CAAC,IAAI;IACvC,OAAO,EAAE,kEAAkE;IAC3E,aAAa,EAAE;QACX,QAAQ,EAAE,IAAI;KACjB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAA2B,EAAE,EAAE,CAAC,oBAAC,cAAc,OAAK,KAAK,GAAI,CAAC,CAAC;AAClH,eAAe,uBAAuB,CAAC;AACvC,yGAAyG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Spinner } from '@gluestack-ui/themed';
|
|
2
3
|
import { logger } from '@cdm-logger/client';
|
|
3
4
|
import { useSetting } from '@adminide-stack/platform-client';
|
|
4
|
-
import { Spinner } from './ui';
|
|
5
5
|
export const WithPolicy = (props) => {
|
|
6
6
|
const { policyKey, showLoading, Child, skeletonProps = {}, childProps = {} } = props;
|
|
7
7
|
const { data: policy, loading, error, } = useSetting({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithPolicy.js","sourceRoot":"","sources":["../../src/components/WithPolicy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"WithPolicy.js","sourceRoot":"","sources":["../../src/components/WithPolicy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAW7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAa,EAAgB,EAAE;IACtD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IACrF,MAAM,EACF,IAAI,EAAE,MAAM,EACZ,OAAO,EACP,KAAK,GACR,GAAG,UAAU,CAAC;QACX,SAAS,EAAE,SAAS;KACvB,CAAC,CAAC;IACH,IAAI,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,WAAW,IAAI,OAAO,EAAE,CAAC;QACzB,OAAO,oBAAC,OAAO,IAAC,KAAK,EAAE,SAAS,GAAI,CAAC;IACzC,CAAC;IAED,OAAO,oBAAC,KAAK,OAAK,UAAU,EAAE,KAAK,EAAE,MAAM,GAAI,CAAC;AACpD,CAAC,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -1 +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;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC
|
|
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;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Lifecycle } from '../containers/layout/Lifecycle';
|
|
2
3
|
import Animated from 'react-native-reanimated';
|
|
3
4
|
import { useAfterInteractions } from '../hooks/use-after-interactions';
|
|
4
|
-
import { Spinner, Center } from '
|
|
5
|
+
import { Spinner, Center } from '@gluestack-ui/themed';
|
|
5
6
|
import { Platform } from 'react-native';
|
|
6
|
-
|
|
7
|
+
import { isUserAuthenticated } from '@adminide-stack/user-auth0-client';
|
|
8
|
+
const LoadingComponent = () => (React.createElement(Center, { flex: 1, justifyContent: 'center', alignItems: 'center' }, React.createElement(Spinner, { color: '$blue500' })));
|
|
7
9
|
const LifecycleComponent = ({ children }) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// );
|
|
16
|
-
// } else {
|
|
17
|
-
// return <>{children}</>;
|
|
18
|
-
// }
|
|
10
|
+
const { authenticated } = isUserAuthenticated();
|
|
11
|
+
if (authenticated) {
|
|
12
|
+
return (React.createElement(Lifecycle, { renderWhenPhase: 3 /* LifecyclePhase.Restored */, loadingRenderer: LoadingComponent }, children));
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return React.createElement(React.Fragment, null, children);
|
|
16
|
+
}
|
|
19
17
|
};
|
|
20
18
|
const IntractionComponent = ({ children, interationTime }) => {
|
|
21
19
|
const { interactionsComplete, opacity, setInteractionsTimeOut } = useAfterInteractions();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-interactions-lifecycle-managed.js","sourceRoot":"","sources":["../../src/components/with-interactions-lifecycle-managed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"with-interactions-lifecycle-managed.js","sourceRoot":"","sources":["../../src/components/with-interactions-lifecycle-managed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAC3B,oBAAC,MAAM,IAAC,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,IAC1D,oBAAC,OAAO,IAAC,KAAK,EAAE,UAAU,GAAI,CAC1B,CACZ,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC5D,MAAM,EAA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ning } from 'react-native-reanimated';
|
|
3
|
+
import { Lifecycle } from '../containers/layout/Lifecycle';
|
|
2
4
|
import Animated from 'react-native-reanimated';
|
|
3
5
|
import { useAfterInteractions } from '../hooks/use-after-interactions';
|
|
6
|
+
import { Spinner, Center } from '@gluestack-ui/themed';
|
|
4
7
|
import hoistNonReactStatics from 'hoist-non-react-statics';
|
|
5
|
-
import { Spinner, Center } from './ui';
|
|
6
|
-
import { Lifecycle } from '../containers/layout/Lifecycle';
|
|
7
8
|
export function withInteractionsManaged(Component, Placeholder = null, interationTime) {
|
|
8
9
|
const Wrapped = (props) => {
|
|
9
10
|
const { interactionsComplete, opacity, setInteractionsTimeOut } = useAfterInteractions();
|
|
@@ -13,7 +14,7 @@ export function withInteractionsManaged(Component, Placeholder = null, interatio
|
|
|
13
14
|
}, [interationTime]);
|
|
14
15
|
const LoadingComponent = () => (
|
|
15
16
|
// <SafeAreaView flex={1}>
|
|
16
|
-
React.createElement(Center, {
|
|
17
|
+
React.createElement(Center, { flex: 1, justifyContent: 'center', alignItems: 'center' }, React.createElement(Spinner, { color: '$blue500' }))
|
|
17
18
|
// </SafeAreaView>
|
|
18
19
|
);
|
|
19
20
|
console.log('interactionsComplete', interactionsComplete);
|
|
@@ -35,7 +36,7 @@ export function withLifeCycleInteractionsManaged(Component, Placeholder = null,
|
|
|
35
36
|
}, [interationTime]);
|
|
36
37
|
const LoadingComponent = () => (
|
|
37
38
|
// <SafeAreaView flex={1}>
|
|
38
|
-
React.createElement(Center, {
|
|
39
|
+
React.createElement(Center, { flex: 1, justifyContent: 'center', alignItems: 'center' }, React.createElement(Spinner, { color: '$blue500' }))
|
|
39
40
|
// </SafeAreaView>
|
|
40
41
|
);
|
|
41
42
|
console.log('interactionsComplete', interactionsComplete);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-interactions-managed.js","sourceRoot":"","sources":["../../src/components/with-interactions-managed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAA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