@admin-layout/gluestack-ui-mobile 10.0.2-alpha.8 → 11.0.2-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 +2 -178
- 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 +16 -17
- package/lib/components/Layout/components/Drawer.js.map +1 -1
- package/lib/components/Layout/components/Header.js +12 -15
- 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 +37 -36
- package/lib/components/Layout/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js +13 -2
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js.map +1 -1
- package/lib/components/Layout/components/SideBar.js +7 -10
- package/lib/components/Layout/components/SideBar.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.js +1 -1
- package/lib/components/WithConfiguration.js.map +1 -1
- package/lib/components/WithPermission.d.ts +1 -1
- package/lib/components/WithPermission.js +1 -1
- package/lib/components/WithPermission.js.map +1 -1
- package/lib/components/WithPolicy.js +1 -1
- package/lib/components/WithPolicy.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/ui/IconSymbol.d.ts +19 -0
- package/lib/components/ui/IconSymbol.ios.d.ts +10 -0
- package/lib/components/ui/IconSymbol.ios.js +12 -0
- package/lib/components/ui/IconSymbol.ios.js.map +1 -0
- package/lib/components/ui/IconSymbol.js +21 -0
- package/lib/components/ui/IconSymbol.js.map +1 -0
- package/lib/components/ui/TabBarBackground.d.ts +2 -0
- package/lib/components/ui/TabBarBackground.ios.d.ts +3 -0
- package/lib/components/ui/TabBarBackground.ios.js +20 -0
- package/lib/components/ui/TabBarBackground.ios.js.map +1 -0
- package/lib/components/ui/TabBarBackground.js +6 -0
- package/lib/components/ui/TabBarBackground.js.map +1 -0
- package/lib/components/ui/accordion/index.d.ts +193 -0
- package/lib/components/ui/accordion/index.js +177 -0
- package/lib/components/ui/accordion/index.js.map +1 -0
- package/lib/components/ui/actionsheet/index.d.ts +735 -0
- package/lib/components/ui/actionsheet/index.js +274 -0
- package/lib/components/ui/actionsheet/index.js.map +1 -0
- package/lib/components/ui/alert/index.d.ts +479 -0
- package/lib/components/ui/alert/index.js +153 -0
- package/lib/components/ui/alert/index.js.map +1 -0
- package/lib/components/ui/alert-dialog/index.d.ts +59 -0
- package/lib/components/ui/alert-dialog/index.js +137 -0
- package/lib/components/ui/alert-dialog/index.js.map +1 -0
- package/lib/components/ui/avatar/index.d.ts +144 -0
- package/lib/components/ui/avatar/index.js +99 -0
- package/lib/components/ui/avatar/index.js.map +1 -0
- package/lib/components/ui/badge/index.d.ts +386 -0
- package/lib/components/ui/badge/index.js +139 -0
- package/lib/components/ui/badge/index.js.map +1 -0
- package/lib/components/ui/box/index.d.ts +7 -0
- package/lib/components/ui/box/index.js +9 -0
- package/lib/components/ui/box/index.js.map +1 -0
- package/lib/components/ui/box/index.web.d.ts +6 -0
- package/lib/components/ui/box/index.web.js +8 -0
- package/lib/components/ui/box/index.web.js.map +1 -0
- package/lib/components/ui/box/styles.d.ts +1 -0
- package/lib/components/ui/box/styles.js +9 -0
- package/lib/components/ui/box/styles.js.map +1 -0
- package/lib/components/ui/button/index.d.ts +529 -0
- package/lib/components/ui/button/index.js +280 -0
- package/lib/components/ui/button/index.js.map +1 -0
- package/lib/components/ui/card/index.d.ts +129 -0
- package/lib/components/ui/card/index.js +9 -0
- package/lib/components/ui/card/index.js.map +1 -0
- package/lib/components/ui/card/index.web.d.ts +126 -0
- package/lib/components/ui/card/index.web.js +8 -0
- package/lib/components/ui/card/index.web.js.map +1 -0
- package/lib/components/ui/card/styles.d.ts +123 -0
- package/lib/components/ui/card/styles.js +20 -0
- package/lib/components/ui/card/styles.js.map +1 -0
- package/lib/components/ui/center/index.d.ts +5 -0
- package/lib/components/ui/center/index.js +9 -0
- package/lib/components/ui/center/index.js.map +1 -0
- package/lib/components/ui/center/index.web.d.ts +4 -0
- package/lib/components/ui/center/index.web.js +8 -0
- package/lib/components/ui/center/index.web.js.map +1 -0
- package/lib/components/ui/center/styles.d.ts +1 -0
- package/lib/components/ui/center/styles.js +7 -0
- package/lib/components/ui/center/styles.js.map +1 -0
- package/lib/components/ui/checkbox/index.d.ts +115 -0
- package/lib/components/ui/checkbox/index.js +127 -0
- package/lib/components/ui/checkbox/index.js.map +1 -0
- package/lib/components/ui/divider/index.d.ts +54 -0
- package/lib/components/ui/divider/index.js +22 -0
- package/lib/components/ui/divider/index.js.map +1 -0
- package/lib/components/ui/drawer/index.d.ts +207 -0
- package/lib/components/ui/drawer/index.js +198 -0
- package/lib/components/ui/drawer/index.js.map +1 -0
- package/lib/components/ui/fab/index.d.ts +520 -0
- package/lib/components/ui/fab/index.js +142 -0
- package/lib/components/ui/fab/index.js.map +1 -0
- package/lib/components/ui/flat-list/index.d.ts +1 -0
- package/lib/components/ui/flat-list/index.js +3 -0
- package/lib/components/ui/flat-list/index.js.map +1 -0
- package/lib/components/ui/form-control/index.d.ts +2072 -0
- package/lib/components/ui/form-control/index.js +290 -0
- package/lib/components/ui/form-control/index.js.map +1 -0
- package/lib/components/ui/gluestack-ui-provider/config.d.ts +4 -0
- package/lib/components/ui/gluestack-ui-provider/config.js +287 -0
- package/lib/components/ui/gluestack-ui-provider/config.js.map +1 -0
- package/lib/components/ui/gluestack-ui-provider/index.d.ts +8 -0
- package/lib/components/ui/gluestack-ui-provider/index.js +22 -0
- package/lib/components/ui/gluestack-ui-provider/index.js.map +1 -0
- package/lib/components/ui/gluestack-ui-provider/index.web.d.ts +7 -0
- package/lib/components/ui/gluestack-ui-provider/index.web.js +69 -0
- package/lib/components/ui/gluestack-ui-provider/index.web.js.map +1 -0
- package/lib/components/ui/gluestack-ui-provider/script.d.ts +1 -0
- package/lib/components/ui/gluestack-ui-provider/script.js +17 -0
- package/lib/components/ui/gluestack-ui-provider/script.js.map +1 -0
- package/lib/components/ui/gluestack-ui-provider/types.d.ts +1 -0
- package/lib/components/ui/gluestack-ui-provider/types.js +2 -0
- package/lib/components/ui/gluestack-ui-provider/types.js.map +1 -0
- package/lib/components/ui/grid/index.d.ts +27 -0
- package/lib/components/ui/grid/index.js +175 -0
- package/lib/components/ui/grid/index.js.map +1 -0
- package/lib/components/ui/grid/index.web.d.ts +23 -0
- package/lib/components/ui/grid/index.web.js +20 -0
- package/lib/components/ui/grid/index.web.js.map +1 -0
- package/lib/components/ui/grid/styles.d.ts +2 -0
- package/lib/components/ui/grid/styles.js +11 -0
- package/lib/components/ui/grid/styles.js.map +1 -0
- package/lib/components/ui/heading/index.d.ts +335 -0
- package/lib/components/ui/heading/index.js +135 -0
- package/lib/components/ui/heading/index.js.map +1 -0
- package/lib/components/ui/heading/index.web.d.ts +335 -0
- package/lib/components/ui/heading/index.web.js +113 -0
- package/lib/components/ui/heading/index.web.js.map +1 -0
- package/lib/components/ui/heading/styles.d.ts +330 -0
- package/lib/components/ui/heading/styles.js +43 -0
- package/lib/components/ui/heading/styles.js.map +1 -0
- package/lib/components/ui/hstack/index.d.ts +150 -0
- package/lib/components/ui/hstack/index.js +9 -0
- package/lib/components/ui/hstack/index.js.map +1 -0
- package/lib/components/ui/hstack/index.web.d.ts +148 -0
- package/lib/components/ui/hstack/index.web.js +8 -0
- package/lib/components/ui/hstack/index.web.js.map +1 -0
- package/lib/components/ui/hstack/styles.d.ts +145 -0
- package/lib/components/ui/hstack/styles.js +24 -0
- package/lib/components/ui/hstack/styles.js.map +1 -0
- package/lib/components/ui/icon/index.d.ts +364 -0
- package/lib/components/ui/icon/index.js +565 -0
- package/lib/components/ui/icon/index.js.map +1 -0
- package/lib/components/ui/icon/index.web.d.ts +489 -0
- package/lib/components/ui/icon/index.web.js +555 -0
- package/lib/components/ui/icon/index.web.js.map +1 -0
- package/lib/components/ui/image/index.d.ts +132 -0
- package/lib/components/ui/image/index.js +33 -0
- package/lib/components/ui/image/index.js.map +1 -0
- package/lib/components/ui/image-background/index.d.ts +3 -0
- package/lib/components/ui/image-background/index.js +11 -0
- package/lib/components/ui/image-background/index.js.map +1 -0
- package/lib/components/ui/index.d.ts +54 -0
- package/lib/components/ui/index.js +55 -0
- package/lib/components/ui/index.js.map +1 -0
- package/lib/components/ui/input/index.d.ts +262 -0
- package/lib/components/ui/input/index.js +121 -0
- package/lib/components/ui/input/index.js.map +1 -0
- package/lib/components/ui/input-accessory-view/index.d.ts +1 -0
- package/lib/components/ui/input-accessory-view/index.js +3 -0
- package/lib/components/ui/input-accessory-view/index.js.map +1 -0
- package/lib/components/ui/keyboard-avoiding-view/index.d.ts +1 -0
- package/lib/components/ui/keyboard-avoiding-view/index.js +3 -0
- package/lib/components/ui/keyboard-avoiding-view/index.js.map +1 -0
- package/lib/components/ui/link/index.d.ts +369 -0
- package/lib/components/ui/link/index.js +69 -0
- package/lib/components/ui/link/index.js.map +1 -0
- package/lib/components/ui/menu/index.d.ts +376 -0
- package/lib/components/ui/menu/index.js +120 -0
- package/lib/components/ui/menu/index.js.map +1 -0
- package/lib/components/ui/modal/index.d.ts +146 -0
- package/lib/components/ui/modal/index.js +137 -0
- package/lib/components/ui/modal/index.js.map +1 -0
- package/lib/components/ui/popover/index.d.ts +310 -0
- package/lib/components/ui/popover/index.js +172 -0
- package/lib/components/ui/popover/index.js.map +1 -0
- package/lib/components/ui/portal/index.d.ts +2 -0
- package/lib/components/ui/portal/index.js +9 -0
- package/lib/components/ui/portal/index.js.map +1 -0
- package/lib/components/ui/pressable/index.d.ts +13 -0
- package/lib/components/ui/pressable/index.js +20 -0
- package/lib/components/ui/pressable/index.js.map +1 -0
- package/lib/components/ui/progress/index.d.ts +174 -0
- package/lib/components/ui/progress/index.js +127 -0
- package/lib/components/ui/progress/index.js.map +1 -0
- package/lib/components/ui/radio/index.d.ts +160 -0
- package/lib/components/ui/radio/index.js +122 -0
- package/lib/components/ui/radio/index.js.map +1 -0
- package/lib/components/ui/refresh-control/index.d.ts +1 -0
- package/lib/components/ui/refresh-control/index.js +3 -0
- package/lib/components/ui/refresh-control/index.js.map +1 -0
- package/lib/components/ui/safe-area-view/index.d.ts +6 -0
- package/lib/components/ui/safe-area-view/index.js +9 -0
- package/lib/components/ui/safe-area-view/index.js.map +1 -0
- package/lib/components/ui/safe-area-view/styles.d.ts +1 -0
- package/lib/components/ui/safe-area-view/styles.js +9 -0
- package/lib/components/ui/safe-area-view/styles.js.map +1 -0
- package/lib/components/ui/scroll-view/index.d.ts +1 -0
- package/lib/components/ui/scroll-view/index.js +3 -0
- package/lib/components/ui/scroll-view/index.js.map +1 -0
- package/lib/components/ui/section-list/index.d.ts +1 -0
- package/lib/components/ui/section-list/index.js +3 -0
- package/lib/components/ui/section-list/index.js.map +1 -0
- package/lib/components/ui/select/index.d.ts +1708 -0
- package/lib/components/ui/select/index.js +155 -0
- package/lib/components/ui/select/index.js.map +1 -0
- package/lib/components/ui/select/select-actionsheet.d.ts +900 -0
- package/lib/components/ui/select/select-actionsheet.js +275 -0
- package/lib/components/ui/select/select-actionsheet.js.map +1 -0
- package/lib/components/ui/skeleton/index.d.ts +268 -0
- package/lib/components/ui/skeleton/index.js +63 -0
- package/lib/components/ui/skeleton/index.js.map +1 -0
- package/lib/components/ui/skeleton/index.web.d.ts +267 -0
- package/lib/components/ui/skeleton/index.web.js +37 -0
- package/lib/components/ui/skeleton/index.web.js.map +1 -0
- package/lib/components/ui/skeleton/styles.d.ts +257 -0
- package/lib/components/ui/skeleton/styles.js +35 -0
- package/lib/components/ui/skeleton/styles.js.map +1 -0
- package/lib/components/ui/slider/index.d.ts +211 -0
- package/lib/components/ui/slider/index.js +180 -0
- package/lib/components/ui/slider/index.js.map +1 -0
- package/lib/components/ui/spinner/index.d.ts +4 -0
- package/lib/components/ui/spinner/index.js +15 -0
- package/lib/components/ui/spinner/index.js.map +1 -0
- package/lib/components/ui/status-bar/index.d.ts +1 -0
- package/lib/components/ui/status-bar/index.js +3 -0
- package/lib/components/ui/status-bar/index.js.map +1 -0
- package/lib/components/ui/switch/index.d.ts +72 -0
- package/lib/components/ui/switch/index.js +25 -0
- package/lib/components/ui/switch/index.js.map +1 -0
- package/lib/components/ui/table/index.d.ts +17 -0
- package/lib/components/ui/table/index.js +96 -0
- package/lib/components/ui/table/index.js.map +1 -0
- package/lib/components/ui/table/index.web.d.ts +10 -0
- package/lib/components/ui/table/index.web.js +60 -0
- package/lib/components/ui/table/index.web.js.map +1 -0
- package/lib/components/ui/table/styles.d.ts +75 -0
- package/lib/components/ui/table/styles.js +36 -0
- package/lib/components/ui/table/styles.js.map +1 -0
- package/lib/components/ui/text/index.d.ts +358 -0
- package/lib/components/ui/text/index.js +19 -0
- package/lib/components/ui/text/index.js.map +1 -0
- package/lib/components/ui/text/index.web.d.ts +6 -0
- package/lib/components/ui/text/index.web.js +18 -0
- package/lib/components/ui/text/index.web.js.map +1 -0
- package/lib/components/ui/text/styles.d.ts +352 -0
- package/lib/components/ui/text/styles.js +45 -0
- package/lib/components/ui/text/styles.js.map +1 -0
- package/lib/components/ui/textarea/index.d.ts +129 -0
- package/lib/components/ui/textarea/index.js +52 -0
- package/lib/components/ui/textarea/index.js.map +1 -0
- package/lib/components/ui/toast/index.d.ts +527 -0
- package/lib/components/ui/toast/index.js +165 -0
- package/lib/components/ui/toast/index.js.map +1 -0
- package/lib/components/ui/tooltip/index.d.ts +391 -0
- package/lib/components/ui/tooltip/index.js +75 -0
- package/lib/components/ui/tooltip/index.js.map +1 -0
- package/lib/components/ui/utils/use-break-point-value.d.ts +14 -0
- package/lib/components/ui/utils/use-break-point-value.js +54 -0
- package/lib/components/ui/utils/use-break-point-value.js.map +1 -0
- package/lib/components/ui/view/index.d.ts +1 -0
- package/lib/components/ui/view/index.js +3 -0
- package/lib/components/ui/view/index.js.map +1 -0
- package/lib/components/ui/virtualized-list/index.d.ts +1 -0
- package/lib/components/ui/virtualized-list/index.js +3 -0
- package/lib/components/ui/virtualized-list/index.js.map +1 -0
- package/lib/components/ui/vstack/index.d.ts +149 -0
- package/lib/components/ui/vstack/index.js +9 -0
- package/lib/components/ui/vstack/index.js.map +1 -0
- package/lib/components/ui/vstack/index.web.d.ts +6 -0
- package/lib/components/ui/vstack/index.web.js +8 -0
- package/lib/components/ui/vstack/index.web.js.map +1 -0
- package/lib/components/ui/vstack/styles.d.ts +145 -0
- package/lib/components/ui/vstack/styles.js +24 -0
- package/lib/components/ui/vstack/styles.js.map +1 -0
- package/lib/components/with-interactions-lifecycle-managed.js +13 -11
- package/lib/components/with-interactions-lifecycle-managed.js.map +1 -1
- package/lib/components/with-interactions-managed.js +3 -3
- package/lib/components/with-interactions-managed.js.map +1 -1
- package/lib/containers/layout/ProLayout.js +2 -2
- package/lib/containers/layout/ProLayout.js.map +1 -1
- package/lib/global.css +3 -0
- package/lib/gluestack-ui-base-config.d.ts +8 -0
- package/lib/gluestack-ui-base-config.js +12 -0
- package/lib/gluestack-ui-base-config.js.map +1 -0
- package/lib/gluestack-ui.config.json +10 -0
- package/lib/index.d.ts +0 -3
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/nativewind-env.d.ts +1 -0
- package/lib/tailwind-base-config.d.ts +194 -0
- package/lib/tailwind-base-config.js +197 -0
- package/lib/tailwind-base-config.js.map +1 -0
- package/lib/tailwind.config.d.ts +1 -0
- package/lib/tailwind.config.js +197 -0
- package/lib/tailwind.config.js.map +1 -0
- package/lib/utils/generateMobileNavigations.js +64 -1
- package/lib/utils/generateMobileNavigations.js.map +1 -1
- package/package.json +39 -8
- package/src/components/Fallback.tsx +54 -58
- package/src/components/Layout/components/BasicLayout.tsx +2 -2
- package/src/components/Layout/components/BottomTabBar.tsx +92 -101
- package/src/components/Layout/components/Drawer.tsx +31 -28
- package/src/components/Layout/components/Header.tsx +26 -27
- package/src/components/Layout/components/Sample.tsx +1 -1
- package/src/components/Layout/components/SettingDrawer/LayoutButton.tsx +15 -29
- package/src/components/Layout/components/SettingDrawer/SettingDrawer.tsx +49 -57
- package/src/components/Layout/components/SettingDrawer/ThemeColorButton.tsx +14 -5
- package/src/components/Layout/components/SideBar.tsx +12 -17
- package/src/components/ToastAlert.tsx +13 -13
- package/src/components/UnAuthenticatedComponent.tsx +19 -27
- package/src/components/WithConfiguration.tsx +1 -1
- package/src/components/WithPermission.tsx +1 -1
- package/src/components/WithPolicy.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/ui/IconSymbol.ios.tsx +33 -0
- package/src/components/ui/IconSymbol.tsx +40 -0
- package/src/components/ui/TabBarBackground.ios.tsx +23 -0
- package/src/components/ui/TabBarBackground.tsx +6 -0
- package/src/components/ui/accordion/index.tsx +304 -0
- package/src/components/ui/actionsheet/index.tsx +499 -0
- package/src/components/ui/alert/index.tsx +205 -0
- package/src/components/ui/alert-dialog/index.tsx +260 -0
- package/src/components/ui/avatar/index.tsx +162 -0
- package/src/components/ui/badge/index.tsx +188 -0
- package/src/components/ui/box/index.tsx +14 -0
- package/src/components/ui/box/index.web.tsx +13 -0
- package/src/components/ui/box/styles.tsx +10 -0
- package/src/components/ui/button/index.tsx +353 -0
- package/src/components/ui/card/index.tsx +16 -0
- package/src/components/ui/card/index.web.tsx +15 -0
- package/src/components/ui/card/styles.tsx +20 -0
- package/src/components/ui/center/index.tsx +14 -0
- package/src/components/ui/center/index.web.tsx +14 -0
- package/src/components/ui/center/styles.tsx +8 -0
- package/src/components/ui/checkbox/index.tsx +192 -0
- package/src/components/ui/divider/index.tsx +38 -0
- package/src/components/ui/drawer/index.tsx +311 -0
- package/src/components/ui/fab/index.tsx +190 -0
- package/src/components/ui/flat-list/index.tsx +2 -0
- package/src/components/ui/form-control/index.tsx +432 -0
- package/src/components/ui/gluestack-ui-provider/config.ts +309 -0
- package/src/components/ui/gluestack-ui-provider/index.tsx +38 -0
- package/src/components/ui/gluestack-ui-provider/index.web.tsx +88 -0
- package/src/components/ui/gluestack-ui-provider/script.ts +17 -0
- package/src/components/ui/gluestack-ui-provider/types.ts +1 -0
- package/src/components/ui/grid/index.tsx +284 -0
- package/src/components/ui/grid/index.web.tsx +61 -0
- package/src/components/ui/grid/styles.tsx +13 -0
- package/src/components/ui/heading/index.tsx +193 -0
- package/src/components/ui/heading/index.web.tsx +177 -0
- package/src/components/ui/heading/styles.tsx +43 -0
- package/src/components/ui/hstack/index.tsx +17 -0
- package/src/components/ui/hstack/index.web.tsx +15 -0
- package/src/components/ui/hstack/styles.tsx +25 -0
- package/src/components/ui/icon/index.tsx +1202 -0
- package/src/components/ui/icon/index.web.tsx +1190 -0
- package/src/components/ui/image/index.tsx +48 -0
- package/src/components/ui/image-background/index.tsx +21 -0
- package/src/components/ui/index.ts +54 -0
- package/src/components/ui/input/index.tsx +191 -0
- package/src/components/ui/input-accessory-view/index.tsx +2 -0
- package/src/components/ui/keyboard-avoiding-view/index.tsx +2 -0
- package/src/components/ui/link/index.tsx +92 -0
- package/src/components/ui/menu/index.tsx +179 -0
- package/src/components/ui/modal/index.tsx +244 -0
- package/src/components/ui/popover/index.tsx +309 -0
- package/src/components/ui/portal/index.tsx +12 -0
- package/src/components/ui/pressable/index.tsx +34 -0
- package/src/components/ui/progress/index.tsx +160 -0
- package/src/components/ui/radio/index.tsx +178 -0
- package/src/components/ui/refresh-control/index.tsx +2 -0
- package/src/components/ui/safe-area-view/index.tsx +22 -0
- package/src/components/ui/safe-area-view/styles.tsx +10 -0
- package/src/components/ui/scroll-view/index.tsx +2 -0
- package/src/components/ui/section-list/index.tsx +2 -0
- package/src/components/ui/select/index.tsx +251 -0
- package/src/components/ui/select/select-actionsheet.tsx +503 -0
- package/src/components/ui/skeleton/index.tsx +113 -0
- package/src/components/ui/skeleton/index.web.tsx +92 -0
- package/src/components/ui/skeleton/styles.tsx +35 -0
- package/src/components/ui/slider/index.tsx +239 -0
- package/src/components/ui/spinner/index.tsx +31 -0
- package/src/components/ui/status-bar/index.tsx +2 -0
- package/src/components/ui/switch/index.tsx +33 -0
- package/src/components/ui/table/index.tsx +171 -0
- package/src/components/ui/table/index.web.tsx +95 -0
- package/src/components/ui/table/styles.tsx +44 -0
- package/src/components/ui/text/index.tsx +53 -0
- package/src/components/ui/text/index.web.tsx +45 -0
- package/src/components/ui/text/styles.tsx +47 -0
- package/src/components/ui/textarea/index.tsx +83 -0
- package/src/components/ui/toast/index.tsx +218 -0
- package/src/components/ui/tooltip/index.tsx +104 -0
- package/src/components/ui/utils/use-break-point-value.ts +79 -0
- package/src/components/ui/view/index.tsx +2 -0
- package/src/components/ui/virtualized-list/index.tsx +2 -0
- package/src/components/ui/vstack/index.tsx +17 -0
- package/src/components/ui/vstack/index.web.tsx +16 -0
- package/src/components/ui/vstack/styles.tsx +25 -0
- package/src/components/with-interactions-lifecycle-managed.tsx +13 -14
- package/src/components/with-interactions-managed.tsx +3 -7
- package/src/containers/layout/ProLayout.tsx +3 -3
- package/src/global.css +3 -0
- package/src/gluestack-ui-base-config.js +12 -0
- package/src/gluestack-ui.config.json +10 -0
- package/src/index.ts +6 -7
- package/src/nativewind-env.d.ts +1 -0
- package/src/tailwind-base-config.js +197 -0
- package/src/tailwind.config.js +198 -0
- package/src/utils/generateMobileNavigations.ts +77 -0
- package/tsconfig.json +3 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAQ,IAAI,EAAE,GAAG,EAAE,SAAS,EAAW,MAAM,EAAc,
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAQ,IAAI,EAAE,GAAG,EAAE,SAAS,EAAW,MAAM,EAAc,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAC5B,CAAC,EACG,UAAU,EACV,KAAK,EACL,OAAO,EACP,IAAI,EACJ,UAAU,GAAG,IAAI,EACjB,KAAK,GAAG,OAAO,EACf,KAAK,GAAG,IAAI,EACZ,cAAc,EACd,aAAa,GAAG,IAAI,EACpB,GAAG,IAAI,EACL,EAAE,EAAE;IACN,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEjE,MAAM,OAAO,GAAQ,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,C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
-
{"version":3,"file":"Sample.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Sample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Sample.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Sample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACvB,OAAO,CACH,oBAAC,GAAG;QACA,oBAAC,IAAI,iBAAc,CACjB,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Pressable, HStack, VStack, Text } from '
|
|
2
|
+
import { Box, Pressable, HStack, VStack, Text } from '../../../ui';
|
|
3
3
|
const LayoutButton = ({ color, onSettingChange, settings, bottom, mode, bottomOnly, bottomDrawer }) => {
|
|
4
|
-
return (React.createElement(Pressable, {
|
|
4
|
+
return (React.createElement(Pressable, { className: `${color === 'light' || color === 'dark' ? 'bg-[#f0f2f5]' : 'bg-[#263749]'} w-[50px] h-[50px] rounded-md shadow-sm mr-4`, onPress: () => {
|
|
5
5
|
if (mode === 'style') {
|
|
6
6
|
let { navTheme, ...rest } = settings;
|
|
7
7
|
if (color === 'light') {
|
|
@@ -66,15 +66,15 @@ const LayoutButton = ({ color, onSettingChange, settings, bottom, mode, bottomOn
|
|
|
66
66
|
}
|
|
67
67
|
} },
|
|
68
68
|
React.createElement(HStack, null,
|
|
69
|
-
React.createElement(Box, {
|
|
70
|
-
React.createElement(VStack, {
|
|
71
|
-
React.createElement(Box, {
|
|
72
|
-
bottom ?
|
|
69
|
+
React.createElement(Box, { className: `bg-${color === 'light' ? 'white' : 'black'} ${bottomOnly ? 'h-[0px] w-[0%]' : 'h-[50px] w-[28%]'} rounded-tl-md rounded-bl-md` }),
|
|
70
|
+
React.createElement(VStack, { className: "justify-between" },
|
|
71
|
+
React.createElement(Box, { className: `h-[15px] ${bottomOnly ? 'w-[49px]' : 'w-[36px]'} bg-${color === 'light' || color === 'dark' ? 'white' : 'black'} rounded-tr-md` }),
|
|
72
|
+
bottom ? React.createElement(Box, { className: `h-[15px] w-[36px] bg-black rounded-br-md` }) : null,
|
|
73
73
|
bottomOnly ? (React.createElement(React.Fragment, null,
|
|
74
|
-
React.createElement(Box, {
|
|
75
|
-
React.createElement(Box, {
|
|
74
|
+
React.createElement(Box, { className: `h-[20px] w-[13px] bg-black` }),
|
|
75
|
+
React.createElement(Box, { className: "h-[15px] w-[49px] bg-black rounded-b-md" }))) : null,
|
|
76
76
|
bottomDrawer ? (React.createElement(React.Fragment, null,
|
|
77
|
-
React.createElement(Box, {
|
|
77
|
+
React.createElement(Box, { className: `h-[15px] w-[36px] bg-black rounded-br-md` }),
|
|
78
78
|
React.createElement(Text, null))) : null))));
|
|
79
79
|
};
|
|
80
80
|
export default LayoutButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutButton.js","sourceRoot":"","sources":["../../../../../src/components/Layout/components/SettingDrawer/LayoutButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LayoutButton.js","sourceRoot":"","sources":["../../../../../src/components/Layout/components/SettingDrawer/LayoutButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAA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P,YAAY,CAAC,CAAC,CAAC,CACZ;oBACI,oBAAC,GAAG,IAAC,SAAS,EAAE,0CAA0C,GAAI;oBAC9D,oBAAC,IAAI,OAAQ,CACd,CACN,CAAC,CAAC,CAAC,IAAI,CACH,CACJ,CACD,CACf,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,55 +1,56 @@
|
|
|
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, ActionsheetScrollView, } from '../../../ui';
|
|
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, className: "z-999" },
|
|
10
10
|
React.createElement(ActionsheetBackdrop, null),
|
|
11
|
-
React.createElement(ActionsheetContent, {
|
|
11
|
+
React.createElement(ActionsheetContent, { className: "z-999" },
|
|
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(ActionsheetScrollView, null,
|
|
15
|
+
React.createElement(Box, { className: "items-start bg-white p-3" },
|
|
16
|
+
React.createElement(Text, { className: "text-black font-semibold" }, "Page style setting"),
|
|
17
|
+
React.createElement(HStack, { space: 'md', className: "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(
|
|
21
|
+
React.createElement(Text, { className: "text-black font-semibold mt-2" }, "Select Theme"),
|
|
22
|
+
React.createElement(Box, { className: "w-full" },
|
|
23
|
+
React.createElement(Select, { className: "mt-2", selectedValue: settings?.themeName, onValueChange: (value) => {
|
|
24
|
+
const newSettings = {
|
|
25
|
+
...settings,
|
|
26
|
+
themeName: value,
|
|
27
|
+
};
|
|
28
|
+
onSettingChange(newSettings);
|
|
29
|
+
} },
|
|
30
|
+
React.createElement(SelectTrigger, { variant: "outline", size: "md" },
|
|
31
|
+
React.createElement(SelectInput, { placeholder: "Select option", className: "mr-3" }),
|
|
32
|
+
React.createElement(Icon, { as: ChevronDownIcon })),
|
|
33
|
+
React.createElement(SelectPortal, null,
|
|
34
|
+
React.createElement(SelectBackdrop, null),
|
|
35
|
+
React.createElement(SelectContent, null,
|
|
36
|
+
React.createElement(SelectDragIndicatorWrapper, null,
|
|
37
|
+
React.createElement(SelectDragIndicator, null)),
|
|
38
|
+
React.createElement(SelectItem, { label: "Default", value: "default" }),
|
|
39
|
+
React.createElement(SelectItem, { label: "Github Theme", value: "github" }),
|
|
40
|
+
React.createElement(SelectItem, { label: "Slack Theme", value: "slack" }),
|
|
41
|
+
React.createElement(SelectItem, { label: "Airbnb Theme", value: "airbnb" }),
|
|
42
|
+
React.createElement(SelectItem, { label: "Spotify Theme", value: "spotify" }))))),
|
|
43
|
+
React.createElement(Text, { className: "text-black font-semibold mt-2" }, "Theme Color"),
|
|
44
|
+
React.createElement(HStack, { space: 'md', className: "mt-3 flex-wrap" }, THEMECOLOR.map((color, index) => (React.createElement(ThemeColorButton, { key: index, color: color, settings: settings, onSettingChange: onSettingChange })))),
|
|
45
|
+
React.createElement(Divider, { className: "my-4" }),
|
|
46
|
+
React.createElement(Text, { className: "text-black font-semibold mt-2" }, "Navigation Mode"),
|
|
47
|
+
React.createElement(HStack, { space: 'md', className: "mt-3" },
|
|
47
48
|
React.createElement(LayoutButton, { mode: "layout", settings: settings, onSettingChange: onSettingChange, color: 'light' }),
|
|
48
49
|
React.createElement(LayoutButton, { mode: "layout", bottom: true, settings: settings, onSettingChange: onSettingChange, color: 'light' }),
|
|
49
50
|
React.createElement(LayoutButton, { mode: "light", bottomOnly: true, settings: settings, onSettingChange: onSettingChange, color: 'light' })),
|
|
50
|
-
React.createElement(Divider, {
|
|
51
|
-
React.createElement(Text, {
|
|
52
|
-
React.createElement(HStack, {
|
|
51
|
+
React.createElement(Divider, { className: "my-4" }),
|
|
52
|
+
React.createElement(Text, { className: "text-black font-semibold mt-2" }, "Regional Settings"),
|
|
53
|
+
React.createElement(HStack, { className: "mt-3 w-full justify-between items-center" },
|
|
53
54
|
React.createElement(Text, null, "Menu Header"),
|
|
54
55
|
React.createElement(Switch, { onValueChange: (value) => {
|
|
55
56
|
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,EAEN,qBAAqB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MA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';
|
|
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
|
+
};
|
|
3
14
|
const ThemeColorButton = ({ color, onSettingChange, settings }) => {
|
|
4
|
-
return (React.createElement(Pressable, {
|
|
15
|
+
return (React.createElement(Pressable, { className: `${colorClassMap[color]} w-[26px] h-[26px] rounded-md`, onPress: () => {
|
|
5
16
|
let { primaryColor, ...rest } = settings;
|
|
6
17
|
primaryColor = color;
|
|
7
18
|
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,aAAa,CAAC;AAE7C,MAAM,aAAa,GAA2B;IAC1C,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAO,EAAE,EAAE;IACnE,OAAO,CACH,oBAAC,SAAS,IACN,SAAS,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,+BAA+B,EACjE,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 '../../ui';
|
|
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,27 +24,24 @@ 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, { className: `flex-1 bg-${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, { className: "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, {
|
|
34
|
+
React.createElement(Text, { 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, { className: "text-[#a1a1a1]" }, subMenu.name)))))
|
|
40
|
+
: null)) : (keys[0] != 'Main' && keys[0] == 'sidebar' && (React.createElement(Box, { key: item.key, className: "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, {
|
|
45
|
-
color: navTheme === 'dark' ? COLOR.LIGHT_GREY : COLOR.BLACK,
|
|
46
|
-
marginLeft: 10,
|
|
47
|
-
} }, item.name))),
|
|
44
|
+
React.createElement(Text, { color: navTheme === 'dark' ? COLOR.LIGHT_GREY : COLOR.BLACK, className: "ml-10" }, item.name))),
|
|
48
45
|
React.createElement(Divider, null))));
|
|
49
46
|
} }))));
|
|
50
47
|
};
|
|
@@ -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,EAAE,MAAM,UAAU,CAAC;AACzF,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,EAAE,CAAC;IAE7B,MAAM,MAAM,GAAG,GAAG,EAAE;QAChB,IAAI,QAAQ,EAAE,CAAC;YACX,OAAO,CAAC,sBAAsB,CAAC,CAAC;YAChC,SAAS,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,oBAAoB,CAAC,CAAC;YAC9B,SAAS,CAA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AAM,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"}
|
|
@@ -8,5 +8,5 @@ interface IToast {
|
|
|
8
8
|
toast?: any;
|
|
9
9
|
variant?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast }: IToast) => React.JSX.Element;
|
|
11
|
+
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast, }: IToast) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon
|
|
2
|
+
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon } from './ui';
|
|
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, { className: "mt-1", onPress: () => toast?.close(id) },
|
|
15
|
+
React.createElement(Icon, { as: CloseIcon, className: "text-gray-400" }))) : 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,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAY/F,YAAY;AACZ,UAAU;AACV,SAAS;AACT,UAAU;AAEV,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACvB,EAAE,EACF,MAAM,GAAG,MAAM,EACf,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,OAAO,GAAG,OAAO,EACjB,UAAU,EACV,KAAK,GAAG,IAAI,GACP,EAAE,EAAE;IACT,MAAM,OAAO,GAAG,QAAQ,GAAG,EAAE,CAAC;IAC9B,MAAM,UAAU,GAAG,MAAM,IAAI,MAAM,CAAC;IACpC,OAAO,CACH,oBAAC,KAAK,IAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU;QAC1D,oBAAC,MAAM,IAAC,KAAK,EAAC,IAAI;YACd,oBAAC,UAAU,QAAE,KAAK,CAAc;YAC/B,WAAW,IAAI,oBAAC,gBAAgB,QAAE,WAAW,CAAoB,CAC7D;QACR,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,CACnB,oBAAC,SAAS,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;YACvD,oBAAC,IAAI,IAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAC,eAAe,GAAG,CACzC,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, StyledSafeAreaView } from './ui';
|
|
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(StyledSafeAreaView, null,
|
|
7
|
+
React.createElement(Box, { className: "flex-1 border-t border-t-slate-300" },
|
|
8
|
+
React.createElement(Box, { className: "flex-1 p-6 bg-white justify-center" },
|
|
9
|
+
React.createElement(Heading, { className: "mt-2" }, "Login"),
|
|
10
|
+
React.createElement(Text, { className: "text-md mt-2" }, "Log in to continue."),
|
|
11
|
+
React.createElement(Button, { className: "bg-blue-500 my-3", size: "lg", onPress: () => navigation.navigate('MainStack.Login') },
|
|
12
|
+
React.createElement(ButtonText, { className: "text-white" }, "Login")),
|
|
13
|
+
React.createElement(Divider, { className: "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,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAqB,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAC9G,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAClC,MAAM,UAAU,GAAG,aAAa,EAAO,CAAC;IACxC,OAAO,CACH,oBAAC,kBAAkB;QACf,oBAAC,GAAG,IAAC,SAAS,EAAC,oCAAoC;YAE/C,oBAAC,GAAG,IAAC,SAAS,EAAC,oCAAoC;gBAC/C,oBAAC,OAAO,IAAC,SAAS,EAAC,MAAM,YAAgB;gBACzC,oBAAC,IAAI,IAAC,SAAS,EAAC,cAAc,0BAA2B;gBACzD,oBAAC,MAAM,IACH,SAAS,EAAC,kBAAkB,EAC5B,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC;oBAErD,oBAAC,UAAU,IAAC,SAAS,EAAC,YAAY,YAAmB,CAChD;gBACT,oBAAC,OAAO,IAAC,SAAS,EAAC,MAAM,GAAG,CAC1B,CACJ,CACW,CACxB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Spinner, Box, Text, Heading } from '
|
|
2
|
+
import { Spinner, Box, Text, Heading } from './ui';
|
|
3
3
|
import { PermissionType, Visibility } from 'common';
|
|
4
4
|
import { useSetting, usePermissionAutoFetch } from '@adminide-stack/platform-client';
|
|
5
5
|
import { get } from 'lodash-es';
|
|
@@ -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,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,
|
|
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,MAAM,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpD,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,CAC3B,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE,oBAAoB,EACvD,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAC/B,CAAC;IAEF,MAAM,aAAa,GAAG,KAAK,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8B,EAAE,EAAE,CAAC,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CAAC"}
|
|
@@ -18,7 +18,7 @@ export interface IWithPermissionProps {
|
|
|
18
18
|
}>;
|
|
19
19
|
}
|
|
20
20
|
export declare const WithPermission: {
|
|
21
|
-
({ permissionKeys, children, permissionTypes, behaviour, message, alternative, render, }: IWithPermissionProps): string | number | boolean | React.
|
|
21
|
+
({ permissionKeys, children, permissionTypes, behaviour, message, alternative, render, }: IWithPermissionProps): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
|
|
22
22
|
defaultProps: {
|
|
23
23
|
permissionTypes: PermissionType[];
|
|
24
24
|
behaviour: WithPermissionBehaviour;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Spinner, Box, Text, Heading } from '
|
|
2
|
+
import { Spinner, Box, Text, Heading } from './ui';
|
|
3
3
|
import { PermissionType } from 'common';
|
|
4
4
|
import { get } from 'lodash-es';
|
|
5
5
|
import { usePermissionAutoFetch } from '@adminide-stack/platform-client';
|
|
@@ -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,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,
|
|
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,MAAM,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iC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,CAAC,eAAe,EAAE,CAAC;QACxD,OAAO,WAAW,CAAC;IACvB,CAAC;IACD,IAAI,SAAS,KAAK,uBAAuB,CAAC,gBAAgB,EAAE,CAAC;QACzD,IAAI,iBAAiB,EAAE,CAAC;YACpB,OAAO,oBAAC,OAAO,OAAG,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 +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,OAAO,EAAE,MAAM,
|
|
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,MAAM,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAU7D,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,EAAE,oBAAoB,GAAI,CAAC;AAC1E,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;AAC7B,cAAc,MAAM,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
|
2
|
+
import { SymbolWeight } from 'expo-symbols';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { OpaqueColorValue, StyleProp, ViewStyle } from 'react-native';
|
|
5
|
+
declare const MAPPING: Partial<Record<import("expo-symbols").SymbolViewProps["name"], React.ComponentProps<typeof MaterialIcons>["name"]>>;
|
|
6
|
+
export type IconSymbolName = keyof typeof MAPPING;
|
|
7
|
+
/**
|
|
8
|
+
* An icon component that uses native SFSymbols on iOS, and MaterialIcons on Android and web. This ensures a consistent look across platforms, and optimal resource usage.
|
|
9
|
+
*
|
|
10
|
+
* Icon `name`s are based on SFSymbols and require manual mapping to MaterialIcons.
|
|
11
|
+
*/
|
|
12
|
+
export declare function IconSymbol({ name, size, color, style, }: {
|
|
13
|
+
name: IconSymbolName;
|
|
14
|
+
size?: number;
|
|
15
|
+
color: string | OpaqueColorValue;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
weight?: SymbolWeight;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SymbolViewProps, SymbolWeight } from 'expo-symbols';
|
|
3
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
export declare function IconSymbol({ name, size, color, style, weight, }: {
|
|
5
|
+
name: SymbolViewProps['name'];
|
|
6
|
+
size?: number;
|
|
7
|
+
color: string;
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
weight?: SymbolWeight;
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SymbolView } from 'expo-symbols';
|
|
3
|
+
export function IconSymbol({ name, size = 24, color, style, weight = 'regular', }) {
|
|
4
|
+
return (React.createElement(SymbolView, { weight: weight, tintColor: color, resizeMode: "scaleAspectFit", name: name, style: [
|
|
5
|
+
{
|
|
6
|
+
width: size,
|
|
7
|
+
height: size,
|
|
8
|
+
},
|
|
9
|
+
style,
|
|
10
|
+
] }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IconSymbol.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSymbol.ios.js","sourceRoot":"","sources":["../../../src/components/ui/IconSymbol.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAiC,MAAM,cAAc,CAAC;AAGzE,MAAM,UAAU,UAAU,CAAC,EACvB,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,KAAK,EACL,KAAK,EACL,MAAM,GAAG,SAAS,GAOrB;IACG,OAAO,CACH,oBAAC,UAAU,IACP,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,KAAK,EAChB,UAAU,EAAC,gBAAgB,EAC3B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE;YACH;gBACI,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,IAAI;aACf;YACD,KAAK;SACR,GACH,CACL,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file is a fallback for using MaterialIcons on Android and web.
|
|
2
|
+
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
// Add your SFSymbol to MaterialIcons mappings here.
|
|
5
|
+
const MAPPING = {
|
|
6
|
+
// See MaterialIcons here: https://icons.expo.fyi
|
|
7
|
+
// See SF Symbols in the SF Symbols app on Mac.
|
|
8
|
+
'house.fill': 'home',
|
|
9
|
+
'paperplane.fill': 'send',
|
|
10
|
+
'chevron.left.forwardslash.chevron.right': 'code',
|
|
11
|
+
'chevron.right': 'chevron-right',
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* An icon component that uses native SFSymbols on iOS, and MaterialIcons on Android and web. This ensures a consistent look across platforms, and optimal resource usage.
|
|
15
|
+
*
|
|
16
|
+
* Icon `name`s are based on SFSymbols and require manual mapping to MaterialIcons.
|
|
17
|
+
*/
|
|
18
|
+
export function IconSymbol({ name, size = 24, color, style, }) {
|
|
19
|
+
return React.createElement(MaterialIcons, { color: color, size: size, name: MAPPING[name], style: style });
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=IconSymbol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSymbol.js","sourceRoot":"","sources":["../../../src/components/ui/IconSymbol.tsx"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,aAAa,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,oDAAoD;AACpD,MAAM,OAAO,GAAG;IACZ,iDAAiD;IACjD,+CAA+C;IAC/C,YAAY,EAAE,MAAM;IACpB,iBAAiB,EAAE,MAAM;IACzB,yCAAyC,EAAE,MAAM;IACjD,eAAe,EAAE,eAAe;CAGnC,CAAC;AAIF;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,EACvB,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,KAAK,EACL,KAAK,GAOR;IACG,OAAO,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC;AAC1F,CAAC"}
|