native-pytech 1.0.129 → 1.0.130
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/dist/app/assets/components/removeCircle.d.ts +2 -0
- package/dist/app/assets/components/removeCircle.js +2 -0
- package/dist/app/assets/components/reorderThreeOutline.d.ts +2 -0
- package/dist/app/assets/components/reorderThreeOutline.js +2 -0
- package/dist/app/assets/ionicons.d.ts +2 -0
- package/dist/app/assets/ionicons.js +2 -0
- package/dist/app/colorPage.d.ts +1 -0
- package/dist/app/colorPage.js +1 -0
- package/dist/app/components/closeButton.d.ts +2 -0
- package/dist/app/components/closeButton.js +2 -0
- package/dist/app/components/gradient.d.ts +2 -0
- package/dist/app/components/gradient.js +2 -0
- package/dist/app/components/link.d.ts +2 -0
- package/dist/app/components/link.js +2 -0
- package/dist/app/components/text.d.ts +2 -0
- package/dist/app/components/text.js +2 -0
- package/dist/app/components/theme.d.ts +2 -0
- package/dist/app/components/theme.js +2 -0
- package/dist/app/constants/colors.d.ts +2 -0
- package/dist/app/constants/colors.js +2 -0
- package/dist/app/constants/consts.d.ts +1 -0
- package/dist/app/constants/consts.js +1 -0
- package/dist/app/constants/formats.d.ts +1 -0
- package/dist/app/constants/formats.js +1 -0
- package/dist/app/constants/hooks.d.ts +1 -0
- package/dist/app/constants/hooks.js +1 -0
- package/dist/app/constants/utils.d.ts +1 -0
- package/dist/app/constants/utils.js +1 -0
- package/dist/app/editPage.d.ts +1 -0
- package/dist/app/editPage.js +1 -0
- package/dist/app/footer.d.ts +2 -0
- package/dist/app/footer.js +2 -0
- package/dist/app/login.d.ts +2 -0
- package/dist/app/login.js +2 -0
- package/dist/app/page.d.ts +2 -0
- package/dist/app/page.js +2 -0
- package/dist/app/pickerPage.d.ts +1 -0
- package/dist/app/pickerPage.js +1 -0
- package/dist/app/providers/app.d.ts +2 -0
- package/dist/app/providers/app.js +2 -0
- package/dist/app/segmentedControl.d.ts +2 -0
- package/dist/app/segmentedControl.js +2 -0
- package/dist/app/sql.d.ts +2 -0
- package/dist/app/sql.js +2 -0
- package/dist/app/supabase.d.ts +2 -0
- package/dist/app/supabase.js +2 -0
- package/dist/app/swiftui.d.ts +1 -0
- package/dist/app/swiftui.js +1 -0
- package/dist/app/table.d.ts +2 -0
- package/dist/app/table.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/libs/assets/components/RemoveCircle.d.ts +6 -0
- package/dist/libs/assets/components/RemoveCircle.js +25 -0
- package/dist/libs/assets/components/ReorderThreeOutline.d.ts +5 -0
- package/dist/libs/assets/components/ReorderThreeOutline.js +15 -0
- package/dist/libs/assets/ionicons/Ionicons.d.ts +35 -0
- package/dist/libs/assets/ionicons/Ionicons.js +16 -0
- package/dist/libs/assets/ionicons/index.d.ts +6 -0
- package/dist/libs/assets/ionicons/index.js +23 -0
- package/dist/libs/colorPage/index.d.ts +1 -0
- package/dist/libs/colorPage/index.js +1 -0
- package/dist/libs/colorPage/src/Content/index.android.d.ts +4 -0
- package/dist/libs/colorPage/src/Content/index.android.js +13 -0
- package/dist/libs/colorPage/src/Content/index.d.ts +3 -0
- package/dist/libs/colorPage/src/Content/index.ios.d.ts +4 -0
- package/dist/libs/colorPage/src/Content/index.ios.js +16 -0
- package/dist/libs/colorPage/src/Content/index.js +1 -0
- package/dist/libs/colorPage/src/Content/types.d.ts +10 -0
- package/dist/libs/colorPage/src/Content/types.js +1 -0
- package/dist/libs/colorPage/src/Item/index.android.d.ts +4 -0
- package/dist/libs/colorPage/src/Item/index.android.js +40 -0
- package/dist/libs/colorPage/src/Item/index.d.ts +3 -0
- package/dist/libs/colorPage/src/Item/index.ios.d.ts +4 -0
- package/dist/libs/colorPage/src/Item/index.ios.js +31 -0
- package/dist/libs/colorPage/src/Item/index.js +1 -0
- package/dist/libs/colorPage/src/Item/types.d.ts +13 -0
- package/dist/libs/colorPage/src/Item/types.js +1 -0
- package/dist/libs/colorPage/src/Page/index.d.ts +4 -0
- package/dist/libs/colorPage/src/Page/index.js +17 -0
- package/dist/libs/colorPage/src/Page/types.d.ts +27 -0
- package/dist/libs/colorPage/src/Page/types.js +1 -0
- package/dist/libs/components/CloseButton.d.ts +9 -0
- package/dist/libs/components/CloseButton.js +18 -0
- package/dist/libs/components/Gradient/components/Gradient/index.d.ts +4 -0
- package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +4 -0
- package/dist/libs/components/Gradient/components/Gradient/index.ios.js +35 -0
- package/dist/libs/components/Gradient/components/Gradient/index.js +32 -0
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +30 -0
- package/dist/libs/components/Gradient/components/Gradient/types.js +1 -0
- package/dist/libs/components/Gradient/components/Icon.d.ts +21 -0
- package/dist/libs/components/Gradient/components/Icon.js +1 -0
- package/dist/libs/components/Gradient/constants.d.ts +97 -0
- package/dist/libs/components/Gradient/constants.js +98 -0
- package/dist/libs/components/Gradient/index.d.ts +3 -0
- package/dist/libs/components/Gradient/index.js +2 -0
- package/dist/libs/components/Link.d.ts +13 -0
- package/dist/libs/components/Link.js +20 -0
- package/dist/libs/components/Text.d.ts +6 -0
- package/dist/libs/components/Text.js +11 -0
- package/dist/libs/components/Theme.d.ts +9 -0
- package/dist/libs/components/Theme.js +10 -0
- package/dist/libs/constants/colors.d.ts +218 -0
- package/dist/libs/constants/colors.js +170 -0
- package/dist/libs/constants/consts.d.ts +13 -0
- package/dist/libs/constants/consts.js +23 -0
- package/dist/libs/constants/formats.d.ts +11 -0
- package/dist/libs/constants/formats.js +84 -0
- package/dist/libs/constants/hooks.d.ts +8 -0
- package/dist/libs/constants/hooks.js +59 -0
- package/dist/libs/constants/utils.d.ts +12 -0
- package/dist/libs/constants/utils.js +75 -0
- package/dist/libs/editPage/index.d.ts +9 -0
- package/dist/libs/editPage/index.js +7 -0
- package/dist/libs/editPage/src/components/Item/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/Item/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/Item/index.ios.js +12 -0
- package/dist/libs/editPage/src/components/Item/index.js +1 -0
- package/dist/libs/editPage/src/components/Item/types.d.ts +14 -0
- package/dist/libs/editPage/src/components/Item/types.js +1 -0
- package/dist/libs/editPage/src/components/ItemDate/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemDate/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/ItemDate/index.ios.js +29 -0
- package/dist/libs/editPage/src/components/ItemDate/index.js +1 -0
- package/dist/libs/editPage/src/components/ItemDate/types.d.ts +25 -0
- package/dist/libs/editPage/src/components/ItemDate/types.js +1 -0
- package/dist/libs/editPage/src/components/Screen/index.d.ts +4 -0
- package/dist/libs/editPage/src/components/Screen/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/Screen/index.ios.js +8 -0
- package/dist/libs/editPage/src/components/Screen/index.js +1 -0
- package/dist/libs/editPage/src/components/Screen/types.d.ts +27 -0
- package/dist/libs/editPage/src/components/Screen/types.js +1 -0
- package/dist/libs/editPage/src/components/TextField/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/TextField/index.ios.js +35 -0
- package/dist/libs/editPage/src/components/TextField/index.js +1 -0
- package/dist/libs/editPage/src/components/TextField/types.d.ts +32 -0
- package/dist/libs/editPage/src/components/TextField/types.js +1 -0
- package/dist/libs/editPage/src/components/Wrapper/index.d.ts +4 -0
- package/dist/libs/editPage/src/components/Wrapper/index.js +84 -0
- package/dist/libs/editPage/src/components/Wrapper/types.d.ts +23 -0
- package/dist/libs/editPage/src/components/Wrapper/types.js +1 -0
- package/dist/libs/editPage/src/context/page.d.ts +13 -0
- package/dist/libs/editPage/src/context/page.js +2 -0
- package/dist/libs/footer/index.d.ts +1 -0
- package/dist/libs/footer/index.js +1 -0
- package/dist/libs/footer/src/components/Background/index.d.ts +4 -0
- package/dist/libs/footer/src/components/Background/index.ios.d.ts +4 -0
- package/dist/libs/footer/src/components/Background/index.ios.js +22 -0
- package/dist/libs/footer/src/components/Background/index.js +21 -0
- package/dist/libs/footer/src/components/Button/Text.d.ts +3 -0
- package/dist/libs/footer/src/components/Button/Text.js +18 -0
- package/dist/libs/footer/src/components/Button/index.d.ts +3 -0
- package/dist/libs/footer/src/components/Button/index.ios.d.ts +4 -0
- package/dist/libs/footer/src/components/Button/index.ios.js +30 -0
- package/dist/libs/footer/src/components/Button/index.js +55 -0
- package/dist/libs/footer/src/components/Button/types.d.ts +22 -0
- package/dist/libs/footer/src/components/Button/types.js +1 -0
- package/dist/libs/footer/src/components/Footer/index.d.ts +6 -0
- package/dist/libs/footer/src/components/Footer/index.ios.d.ts +7 -0
- package/dist/libs/footer/src/components/Footer/index.ios.js +9 -0
- package/dist/libs/footer/src/components/Footer/index.js +38 -0
- package/dist/libs/footer/src/components/View.d.ts +5 -0
- package/dist/libs/footer/src/components/View.js +11 -0
- package/dist/libs/footer/src/constants.d.ts +20 -0
- package/dist/libs/footer/src/constants.js +21 -0
- package/dist/libs/footer/src/index.d.ts +9 -0
- package/dist/libs/footer/src/index.js +7 -0
- package/dist/libs/login/index.d.ts +3 -0
- package/dist/libs/login/index.js +3 -0
- package/dist/libs/login/src/Pages/Home/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/Home/index.js +20 -0
- package/dist/libs/login/src/Pages/Home/types.d.ts +19 -0
- package/dist/libs/login/src/Pages/Home/types.js +1 -0
- package/dist/libs/login/src/Pages/Perfil.d.ts +5 -0
- package/dist/libs/login/src/Pages/Perfil.js +19 -0
- package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +9 -0
- package/dist/libs/login/src/Pages/SignIn/Form/Input.js +10 -0
- package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +6 -0
- package/dist/libs/login/src/Pages/SignIn/Form/index.js +34 -0
- package/dist/libs/login/src/Pages/SignIn/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/SignIn/index.js +149 -0
- package/dist/libs/login/src/Pages/SignIn/types.d.ts +31 -0
- package/dist/libs/login/src/Pages/SignIn/types.js +1 -0
- package/dist/libs/login/src/Pages/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/index.js +3 -0
- package/dist/libs/login/src/Pages/utils.d.ts +22 -0
- package/dist/libs/login/src/Pages/utils.js +24 -0
- package/dist/libs/login/src/Screen/Container.d.ts +4 -0
- package/dist/libs/login/src/Screen/Container.ios.d.ts +4 -0
- package/dist/libs/login/src/Screen/Container.ios.js +20 -0
- package/dist/libs/login/src/Screen/Container.js +25 -0
- package/dist/libs/login/src/Screen/components/Gradient.d.ts +6 -0
- package/dist/libs/login/src/Screen/components/Gradient.js +23 -0
- package/dist/libs/login/src/Screen/components/Input/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/Input/index.js +128 -0
- package/dist/libs/login/src/Screen/components/Input/types.d.ts +46 -0
- package/dist/libs/login/src/Screen/components/Input/types.js +1 -0
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +11 -0
- package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/SvgPytech.js +11 -0
- package/dist/libs/login/src/Screen/components/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/index.js +4 -0
- package/dist/libs/login/src/Screen/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/index.js +59 -0
- package/dist/libs/login/src/Screen/types.d.ts +14 -0
- package/dist/libs/login/src/Screen/types.js +1 -0
- package/dist/libs/login/src/constants.d.ts +98 -0
- package/dist/libs/login/src/constants.js +48 -0
- package/dist/libs/page/index.d.ts +1 -0
- package/dist/libs/page/index.js +1 -0
- package/dist/libs/page/src/components/Page/index.android.d.ts +4 -0
- package/dist/libs/page/src/components/Page/index.android.js +11 -0
- package/dist/libs/page/src/components/Page/index.d.ts +4 -0
- package/dist/libs/page/src/components/Page/index.js +7 -0
- package/dist/libs/page/src/components/PageWrapper/index.d.ts +6 -0
- package/dist/libs/page/src/components/PageWrapper/index.js +13 -0
- package/dist/libs/page/src/components/PageWrapper/types.d.ts +16 -0
- package/dist/libs/page/src/components/PageWrapper/types.js +1 -0
- package/dist/libs/page/src/components/Subtitle.d.ts +5 -0
- package/dist/libs/page/src/components/Subtitle.js +9 -0
- package/dist/libs/page/src/components/WithIcon/index.d.ts +3 -0
- package/dist/libs/page/src/components/WithIcon/index.js +47 -0
- package/dist/libs/page/src/components/WithIcon/types.d.ts +15 -0
- package/dist/libs/page/src/components/WithIcon/types.js +1 -0
- package/dist/libs/page/src/constants.d.ts +12 -0
- package/dist/libs/page/src/constants.js +12 -0
- package/dist/libs/pickerPage/index.d.ts +7 -0
- package/dist/libs/pickerPage/index.js +5 -0
- package/dist/libs/pickerPage/src/components/Content/index.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Content/index.ios.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Content/index.ios.js +19 -0
- package/dist/libs/pickerPage/src/components/Content/index.js +14 -0
- package/dist/libs/pickerPage/src/components/Content/types.d.ts +3 -0
- package/dist/libs/pickerPage/src/components/Content/types.js +1 -0
- package/dist/libs/pickerPage/src/components/Item/index.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Item/index.ios.d.ts +8 -0
- package/dist/libs/pickerPage/src/components/Item/index.ios.js +8 -0
- package/dist/libs/pickerPage/src/components/Item/index.js +14 -0
- package/dist/libs/pickerPage/src/components/Item/types.d.ts +28 -0
- package/dist/libs/pickerPage/src/components/Item/types.js +1 -0
- package/dist/libs/pickerPage/src/components/Page/index.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Page/index.js +22 -0
- package/dist/libs/pickerPage/src/components/Page/types.d.ts +30 -0
- package/dist/libs/pickerPage/src/components/Page/types.js +1 -0
- package/dist/libs/pickerPage/src/context/page.d.ts +7 -0
- package/dist/libs/pickerPage/src/context/page.js +2 -0
- package/dist/libs/providers/App/index.d.ts +10 -0
- package/dist/libs/providers/App/index.js +58 -0
- package/dist/libs/providers/App/types.d.ts +35 -0
- package/dist/libs/providers/App/types.js +1 -0
- package/dist/libs/providers/constants.d.ts +10 -0
- package/dist/libs/providers/constants.js +10 -0
- package/dist/libs/segmentedControl/index.d.ts +2 -0
- package/dist/libs/segmentedControl/index.js +2 -0
- package/dist/libs/segmentedControl/src/colors.d.ts +15 -0
- package/dist/libs/segmentedControl/src/colors.js +16 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +79 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +28 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Container/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Container/index.ios.js +15 -0
- package/dist/libs/segmentedControl/src/components/Container/index.js +18 -0
- package/dist/libs/segmentedControl/src/components/Container/types.d.ts +16 -0
- package/dist/libs/segmentedControl/src/components/Container/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Item/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Item/index.js +26 -0
- package/dist/libs/segmentedControl/src/components/Item/types.d.ts +20 -0
- package/dist/libs/segmentedControl/src/components/Item/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Segmented/index.js +93 -0
- package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +12 -0
- package/dist/libs/segmentedControl/src/components/Segmented/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/index.js +21 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +38 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/types.js +1 -0
- package/dist/libs/segmentedControl/src/context/shared.d.ts +11 -0
- package/dist/libs/segmentedControl/src/context/shared.js +13 -0
- package/dist/libs/segmentedControl/src/utils.d.ts +10 -0
- package/dist/libs/segmentedControl/src/utils.js +29 -0
- package/dist/libs/sql/index.d.ts +4 -0
- package/dist/libs/sql/index.js +4 -0
- package/dist/libs/sql/src/init.d.ts +24 -0
- package/dist/libs/sql/src/init.js +31 -0
- package/dist/libs/sql/src/queryLocal.d.ts +6 -0
- package/dist/libs/sql/src/queryLocal.js +15 -0
- package/dist/libs/sql/src/utils.d.ts +11 -0
- package/dist/libs/sql/src/utils.js +60 -0
- package/dist/libs/supabase/index.d.ts +4 -0
- package/dist/libs/supabase/index.js +2 -0
- package/dist/libs/supabase/src/clients/admin/config.d.ts +2 -0
- package/dist/libs/supabase/src/clients/admin/config.js +18 -0
- package/dist/libs/supabase/src/clients/admin/index.d.ts +9 -0
- package/dist/libs/supabase/src/clients/admin/index.js +7 -0
- package/dist/libs/supabase/src/clients/admin/utils.d.ts +5 -0
- package/dist/libs/supabase/src/clients/admin/utils.js +6 -0
- package/dist/libs/supabase/src/clients/app/config.d.ts +3 -0
- package/dist/libs/supabase/src/clients/app/config.js +31 -0
- package/dist/libs/supabase/src/clients/app/index.d.ts +16 -0
- package/dist/libs/supabase/src/clients/app/index.js +7 -0
- package/dist/libs/supabase/src/clients/app/utils.d.ts +12 -0
- package/dist/libs/supabase/src/clients/app/utils.js +10 -0
- package/dist/libs/supabase/src/utils/index.d.ts +20 -0
- package/dist/libs/supabase/src/utils/index.js +23 -0
- package/dist/libs/supabase/src/utils/types.d.ts +22 -0
- package/dist/libs/supabase/src/utils/types.js +1 -0
- package/dist/libs/swiftui/index.d.ts +9 -0
- package/dist/libs/swiftui/index.js +9 -0
- package/dist/libs/swiftui/src/components/Dialog/index.d.ts +4 -0
- package/dist/libs/swiftui/src/components/Dialog/index.js +22 -0
- package/dist/libs/swiftui/src/components/Dialog/types.d.ts +21 -0
- package/dist/libs/swiftui/src/components/Dialog/types.js +1 -0
- package/dist/libs/swiftui/src/components/Host.d.ts +6 -0
- package/dist/libs/swiftui/src/components/Host.js +5 -0
- package/dist/libs/swiftui/src/components/Icon.d.ts +10 -0
- package/dist/libs/swiftui/src/components/Icon.js +8 -0
- package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +25 -0
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +26 -0
- package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +7 -0
- package/dist/libs/swiftui/src/components/IconSection/Section.js +17 -0
- package/dist/libs/swiftui/src/components/IconSection/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/IconSection/index.js +5 -0
- package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +10 -0
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +20 -0
- package/dist/libs/swiftui/src/components/List/BaseList/types.d.ts +16 -0
- package/dist/libs/swiftui/src/components/List/BaseList/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +4 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/index.js +19 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/types.d.ts +16 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +5 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +36 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.d.ts +42 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/List/Editable/index.js +5 -0
- package/dist/libs/swiftui/src/components/List/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/List/index.js +5 -0
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +4 -0
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +14 -0
- package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +4 -0
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +14 -0
- package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +31 -0
- package/dist/libs/swiftui/src/components/NavigationLink/types.js +1 -0
- package/dist/libs/swiftui/src/components/Picker.d.ts +11 -0
- package/dist/libs/swiftui/src/components/Picker.js +14 -0
- package/dist/libs/swiftui/src/components/Text.d.ts +6 -0
- package/dist/libs/swiftui/src/components/Text.js +10 -0
- package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +22 -0
- package/dist/libs/swiftui/src/components/TextSubtitle.js +9 -0
- package/dist/libs/swiftui/src/context/ListEditable.d.ts +7 -0
- package/dist/libs/swiftui/src/context/ListEditable.js +2 -0
- package/dist/libs/table/index.d.ts +5 -0
- package/dist/libs/table/index.js +5 -0
- package/dist/libs/table/src/components/Borders.d.ts +6 -0
- package/dist/libs/table/src/components/Borders.js +84 -0
- package/dist/libs/table/src/components/Delete/index.d.ts +4 -0
- package/dist/libs/table/src/components/Delete/index.js +141 -0
- package/dist/libs/table/src/components/Delete/types.d.ts +27 -0
- package/dist/libs/table/src/components/Delete/types.js +1 -0
- package/dist/libs/table/src/components/Detail.d.ts +4 -0
- package/dist/libs/table/src/components/Detail.js +11 -0
- package/dist/libs/table/src/components/Option/index.d.ts +6 -0
- package/dist/libs/table/src/components/Option/index.js +106 -0
- package/dist/libs/table/src/components/Option/types.d.ts +61 -0
- package/dist/libs/table/src/components/Option/types.js +1 -0
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +6 -0
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +14 -0
- package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +6 -0
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +18 -0
- package/dist/libs/table/src/components/OptionComponents/icon.d.ts +10 -0
- package/dist/libs/table/src/components/OptionComponents/icon.js +12 -0
- package/dist/libs/table/src/components/OptionComponents/image.d.ts +9 -0
- package/dist/libs/table/src/components/OptionComponents/image.js +12 -0
- package/dist/libs/table/src/components/OptionComponents/index.d.ts +8 -0
- package/dist/libs/table/src/components/OptionComponents/index.js +8 -0
- package/dist/libs/table/src/components/OptionComponents/text.d.ts +22 -0
- package/dist/libs/table/src/components/OptionComponents/text.js +20 -0
- package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +25 -0
- package/dist/libs/table/src/components/OptionComponents/textInput.js +49 -0
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +8 -0
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +10 -0
- package/dist/libs/table/src/components/OptionComponents/textView.d.ts +14 -0
- package/dist/libs/table/src/components/OptionComponents/textView.js +18 -0
- package/dist/libs/table/src/components/OptionWrapper/index.d.ts +3 -0
- package/dist/libs/table/src/components/OptionWrapper/index.js +9 -0
- package/dist/libs/table/src/components/OptionWrapper/types.d.ts +37 -0
- package/dist/libs/table/src/components/OptionWrapper/types.js +1 -0
- package/dist/libs/table/src/components/Table/index.d.ts +3 -0
- package/dist/libs/table/src/components/Table/index.js +90 -0
- package/dist/libs/table/src/components/Table/types.d.ts +70 -0
- package/dist/libs/table/src/components/Table/types.js +1 -0
- package/dist/libs/table/src/components/Wrapper.d.ts +4 -0
- package/dist/libs/table/src/components/Wrapper.js +49 -0
- package/dist/libs/table/src/constants.d.ts +108 -0
- package/dist/libs/table/src/constants.js +107 -0
- package/dist/libs/table/src/context/borders.d.ts +10 -0
- package/dist/libs/table/src/context/borders.js +11 -0
- package/dist/libs/table/src/context/delete.d.ts +1 -0
- package/dist/libs/table/src/context/delete.js +2 -0
- package/dist/libs/table/src/context/table.d.ts +21 -0
- package/dist/libs/table/src/context/table.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useApp } from "../../../../libs/providers/App";
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import { StyleSheet, Text, useWindowDimensions, View } from 'react-native';
|
|
4
|
+
import colors from '../constants';
|
|
5
|
+
import { Gradient, Input, SvgLogoPytech, SvgPytech } from './components';
|
|
6
|
+
import Container from './Container';
|
|
7
|
+
const LogIn = memo(({ title, subtitle, iconPage, bottomElements, }) => {
|
|
8
|
+
const { height } = useWindowDimensions();
|
|
9
|
+
const { colorScheme } = useApp();
|
|
10
|
+
const Theme = colors.theme[colorScheme];
|
|
11
|
+
return (<Container>
|
|
12
|
+
{iconPage &&
|
|
13
|
+
<View style={{ marginTop: height * 0.18 }}>
|
|
14
|
+
{iconPage}
|
|
15
|
+
</View>}
|
|
16
|
+
|
|
17
|
+
<View style={styles.viewText}>
|
|
18
|
+
<Text style={[styles.title, { color: Theme.text }]}>{title}</Text>
|
|
19
|
+
{subtitle && <Text style={[styles.subtitle, { color: Theme.text2 }]}>{subtitle}</Text>}
|
|
20
|
+
</View>
|
|
21
|
+
|
|
22
|
+
{bottomElements &&
|
|
23
|
+
<View style={styles.viewBottom}>
|
|
24
|
+
{bottomElements}
|
|
25
|
+
</View>}
|
|
26
|
+
|
|
27
|
+
</Container>);
|
|
28
|
+
});
|
|
29
|
+
LogIn.Input = Input;
|
|
30
|
+
LogIn.Gradient = Gradient;
|
|
31
|
+
LogIn.SvgPytech = SvgPytech;
|
|
32
|
+
LogIn.SvgLogoPytech = SvgLogoPytech;
|
|
33
|
+
export default LogIn;
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
viewText: {
|
|
36
|
+
marginTop: 32,
|
|
37
|
+
gap: 16,
|
|
38
|
+
width: '70%',
|
|
39
|
+
maxWidth: 400
|
|
40
|
+
},
|
|
41
|
+
title: {
|
|
42
|
+
margin: 'auto',
|
|
43
|
+
textAlign: 'center',
|
|
44
|
+
fontSize: 32,
|
|
45
|
+
fontWeight: 'bold',
|
|
46
|
+
},
|
|
47
|
+
subtitle: {
|
|
48
|
+
margin: 'auto',
|
|
49
|
+
textAlign: 'center',
|
|
50
|
+
fontSize: 17,
|
|
51
|
+
},
|
|
52
|
+
viewBottom: {
|
|
53
|
+
width: '80%',
|
|
54
|
+
maxWidth: 460,
|
|
55
|
+
display: 'flex',
|
|
56
|
+
marginTop: 32,
|
|
57
|
+
gap: 10
|
|
58
|
+
}
|
|
59
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Input, Gradient, SvgPytech, SvgLogoPytech } from './components';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
iconPage?: React.ReactNode;
|
|
6
|
+
bottomElements?: React.ReactNode[] | React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export type Component = React.MemoExoticComponent<React.FC<Props>> & {
|
|
9
|
+
Gradient: typeof Gradient;
|
|
10
|
+
Input: typeof Input;
|
|
11
|
+
SvgPytech: typeof SvgPytech;
|
|
12
|
+
SvgLogoPytech: typeof SvgLogoPytech;
|
|
13
|
+
};
|
|
14
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
theme: {
|
|
3
|
+
light: {
|
|
4
|
+
text: string;
|
|
5
|
+
text2: string;
|
|
6
|
+
focus: string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
backgroundColor2: string;
|
|
9
|
+
backgroundColorError: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
borderColor5: string;
|
|
12
|
+
borderColorError: string;
|
|
13
|
+
backgroundColorModal2: string;
|
|
14
|
+
};
|
|
15
|
+
dark: {
|
|
16
|
+
text: string;
|
|
17
|
+
text2: string;
|
|
18
|
+
focus: string;
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
backgroundColor2: string;
|
|
21
|
+
backgroundColorError: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
borderColor5: string;
|
|
24
|
+
borderColorError: string;
|
|
25
|
+
backgroundColorModal2: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
perfil: {
|
|
29
|
+
default: {
|
|
30
|
+
dark: string;
|
|
31
|
+
light: string;
|
|
32
|
+
};
|
|
33
|
+
rojo: {
|
|
34
|
+
dark: string;
|
|
35
|
+
light: string;
|
|
36
|
+
};
|
|
37
|
+
amarillo: {
|
|
38
|
+
dark: string;
|
|
39
|
+
light: string;
|
|
40
|
+
};
|
|
41
|
+
azul_oscuro: {
|
|
42
|
+
dark: string;
|
|
43
|
+
light: string;
|
|
44
|
+
};
|
|
45
|
+
naranja: {
|
|
46
|
+
dark: string;
|
|
47
|
+
light: string;
|
|
48
|
+
};
|
|
49
|
+
marron_claro: {
|
|
50
|
+
dark: string;
|
|
51
|
+
light: string;
|
|
52
|
+
};
|
|
53
|
+
verde_agua: {
|
|
54
|
+
dark: string;
|
|
55
|
+
light: string;
|
|
56
|
+
};
|
|
57
|
+
marron_oscuro: {
|
|
58
|
+
dark: string;
|
|
59
|
+
light: string;
|
|
60
|
+
};
|
|
61
|
+
rosa: {
|
|
62
|
+
dark: string;
|
|
63
|
+
light: string;
|
|
64
|
+
};
|
|
65
|
+
azul_claro: {
|
|
66
|
+
dark: string;
|
|
67
|
+
light: string;
|
|
68
|
+
};
|
|
69
|
+
violeta: {
|
|
70
|
+
dark: string;
|
|
71
|
+
light: string;
|
|
72
|
+
};
|
|
73
|
+
celeste_oscuro: {
|
|
74
|
+
dark: string;
|
|
75
|
+
light: string;
|
|
76
|
+
};
|
|
77
|
+
gris: {
|
|
78
|
+
dark: string;
|
|
79
|
+
light: string;
|
|
80
|
+
};
|
|
81
|
+
celeste_claro: {
|
|
82
|
+
dark: string;
|
|
83
|
+
light: string;
|
|
84
|
+
};
|
|
85
|
+
verde_oscuro: {
|
|
86
|
+
dark: string;
|
|
87
|
+
light: string;
|
|
88
|
+
};
|
|
89
|
+
verde_claro: {
|
|
90
|
+
dark: string;
|
|
91
|
+
light: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export type ColorSchemeType = 'light' | 'dark';
|
|
96
|
+
export type ThemeType = typeof colors['theme']['light'];
|
|
97
|
+
export type PerfilColorType = keyof typeof colors['perfil'];
|
|
98
|
+
export default colors;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import colorsLib from "../../../libs/constants/colors";
|
|
2
|
+
export const colors = {
|
|
3
|
+
theme: {
|
|
4
|
+
light: {
|
|
5
|
+
text: 'hsl(0, 0%, 0%)',
|
|
6
|
+
text2: 'hsl(0, 0%, 10%)',
|
|
7
|
+
focus: 'hsl(208, 100%, 43.70%)',
|
|
8
|
+
backgroundColor: 'hsl(0, 0%, 100%)',
|
|
9
|
+
backgroundColor2: 'hsl(0, 0%, 100%)',
|
|
10
|
+
backgroundColorError: 'hsl(351, 100%, 97.50%)',
|
|
11
|
+
borderColor: 'rgba(150, 150, 150, 1)',
|
|
12
|
+
borderColor5: 'rgba(150, 150, 150, 0.5)',
|
|
13
|
+
borderColorError: 'hsl(0, 100%, 44.50%)',
|
|
14
|
+
backgroundColorModal2: colorsLib.light.backgroundColorModal2
|
|
15
|
+
},
|
|
16
|
+
dark: {
|
|
17
|
+
text: 'hsl(0, 0%, 100%)',
|
|
18
|
+
text2: 'hsl(0, 0%, 90%)',
|
|
19
|
+
focus: 'hsl(208, 100%, 43.70%)',
|
|
20
|
+
backgroundColor: 'hsl(240, 3.40%, 11.40%)',
|
|
21
|
+
backgroundColor2: 'hsl(240, 2.60%, 14.90%)',
|
|
22
|
+
backgroundColorError: 'hsl(0, 100%, 20%)',
|
|
23
|
+
borderColor: 'rgba(150, 150, 150, 1)',
|
|
24
|
+
borderColor5: 'rgba(150, 150, 150, 0.5)',
|
|
25
|
+
borderColorError: 'hsl(358, 100%, 59.40%)',
|
|
26
|
+
backgroundColorModal2: colorsLib.dark.backgroundColorModal2
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
perfil: {
|
|
30
|
+
default: { dark: '#7580ba', light: '#b1c6e4' },
|
|
31
|
+
rojo: { dark: '#b12309', light: '#ff856a' },
|
|
32
|
+
amarillo: { dark: '#c97c00', light: '#ffe535' },
|
|
33
|
+
azul_oscuro: { dark: '#0f236d', light: '#6a7ec9' },
|
|
34
|
+
naranja: { dark: '#9c4d00', light: '#ffba53' },
|
|
35
|
+
marron_claro: { dark: '#75582e', light: '#e4c79d' },
|
|
36
|
+
verde_agua: { dark: '#105951', light: '#80c3ba' },
|
|
37
|
+
marron_oscuro: { dark: '#4f2a00', light: '#aa855a' },
|
|
38
|
+
rosa: { dark: '#892466', light: '#f08bcc' },
|
|
39
|
+
azul_claro: { dark: '#334696', light: '#9eb1ff' },
|
|
40
|
+
violeta: { dark: '#482d76', light: '#ac90d9' },
|
|
41
|
+
celeste_oscuro: { dark: '#005095', light: '#6dbfff' },
|
|
42
|
+
gris: { dark: '#445255', light: '#b0bec1' },
|
|
43
|
+
celeste_claro: { dark: '#237286', light: '#98e7fb' },
|
|
44
|
+
verde_oscuro: { dark: '#215b1d', light: '#8ac487' },
|
|
45
|
+
verde_claro: { dark: '#4b5f13', light: '#bbce82' }
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export default colors;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/components/PageWrapper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/components/PageWrapper';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { KeyboardAvoidingView, ScrollView } from 'react-native';
|
|
3
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
|
+
export default memo(({ children, style }) => {
|
|
5
|
+
const { bottom, top } = useSafeAreaInsets();
|
|
6
|
+
return (<KeyboardAvoidingView style={{ flex: 1 }} behavior={'height'} keyboardVerticalOffset={bottom + top}>
|
|
7
|
+
<ScrollView contentContainerStyle={[{ flexGrow: 1 }, style]}>
|
|
8
|
+
{children}
|
|
9
|
+
</ScrollView>
|
|
10
|
+
</KeyboardAvoidingView>);
|
|
11
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { Platform, ScrollView } from 'react-native';
|
|
3
|
+
export default memo(({ children, style }) => {
|
|
4
|
+
return (<ScrollView style={{ flex: 1 }} automaticallyAdjustKeyboardInsets={true} contentContainerStyle={style} showsVerticalScrollIndicator={Platform.OS === 'web' ? false : undefined}>
|
|
5
|
+
{children}
|
|
6
|
+
</ScrollView>);
|
|
7
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import WithIcon from '../WithIcon';
|
|
3
|
+
import Page from '../Page';
|
|
4
|
+
/**
|
|
5
|
+
Crea una Página con ScrollView.
|
|
6
|
+
*/
|
|
7
|
+
const PageComponent = memo(({ children, style }) => {
|
|
8
|
+
return (<Page style={style}>
|
|
9
|
+
{children}
|
|
10
|
+
</Page>);
|
|
11
|
+
});
|
|
12
|
+
PageComponent.WithIcon = WithIcon;
|
|
13
|
+
export default PageComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import WithIcon from "../WithIcon";
|
|
3
|
+
type Props = {
|
|
4
|
+
/**
|
|
5
|
+
Children
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
contentContainerStyle de la ScrollView.
|
|
10
|
+
*/
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
};
|
|
13
|
+
export type Component = React.MemoExoticComponent<React.FC<Props>> & {
|
|
14
|
+
WithIcon: typeof WithIcon;
|
|
15
|
+
};
|
|
16
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import { Text } from "react-native";
|
|
3
|
+
import colors from "../constants";
|
|
4
|
+
import { useApp } from "../../../../libs/providers/App";
|
|
5
|
+
export default memo(({ text }) => {
|
|
6
|
+
const { colorScheme } = useApp();
|
|
7
|
+
const Theme = colors[colorScheme];
|
|
8
|
+
return <Text style={{ color: Theme.text2, fontSize: 22 }}>{text}</Text>;
|
|
9
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { useApp } from "../../../../../libs/providers/App";
|
|
4
|
+
import colors from '../../constants';
|
|
5
|
+
import PageWrapper from '../PageWrapper';
|
|
6
|
+
import Subtitle from '../Subtitle';
|
|
7
|
+
const WithIcon = memo(({ children, renderIcon, style, title, subtitle, renderSubtitle }) => {
|
|
8
|
+
const { colorScheme } = useApp();
|
|
9
|
+
const Theme = colors[colorScheme];
|
|
10
|
+
return (<PageWrapper style={style}>
|
|
11
|
+
{renderIcon &&
|
|
12
|
+
<View style={styles.viewIcon}>
|
|
13
|
+
{renderIcon()}
|
|
14
|
+
</View>}
|
|
15
|
+
{(title || renderSubtitle) && (<View style={styles.viewTitle}>
|
|
16
|
+
{title && <Text style={[styles.title, { color: Theme.text }]}>{title}</Text>}
|
|
17
|
+
{subtitle && <Text style={[styles.subtitle, { color: Theme.text2 }]}>{subtitle}</Text>}
|
|
18
|
+
{renderSubtitle?.()}
|
|
19
|
+
</View>)}
|
|
20
|
+
{children}
|
|
21
|
+
</PageWrapper>);
|
|
22
|
+
});
|
|
23
|
+
WithIcon.Subtitle = Subtitle;
|
|
24
|
+
export default WithIcon;
|
|
25
|
+
const styles = StyleSheet.create({
|
|
26
|
+
viewIcon: {
|
|
27
|
+
flex: 1,
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
height: 83,
|
|
31
|
+
marginTop: 22,
|
|
32
|
+
marginBottom: 39.5,
|
|
33
|
+
},
|
|
34
|
+
viewTitle: {
|
|
35
|
+
gap: 1,
|
|
36
|
+
marginHorizontal: 38,
|
|
37
|
+
marginBottom: 30,
|
|
38
|
+
flex: 1,
|
|
39
|
+
},
|
|
40
|
+
title: {
|
|
41
|
+
fontSize: 22,
|
|
42
|
+
fontWeight: '700',
|
|
43
|
+
},
|
|
44
|
+
subtitle: {
|
|
45
|
+
fontSize: 22,
|
|
46
|
+
}
|
|
47
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Subtitle from '../Subtitle';
|
|
3
|
+
import PropsPageWrapper from '../PageWrapper/types';
|
|
4
|
+
type Props = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
renderIcon?: () => React.ReactNode;
|
|
7
|
+
style?: PropsPageWrapper['style'];
|
|
8
|
+
title?: string;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
renderSubtitle?: () => React.ReactElement<typeof Subtitle>;
|
|
11
|
+
};
|
|
12
|
+
export type Component = React.MemoExoticComponent<React.FC<Props>> & {
|
|
13
|
+
Subtitle: typeof Subtitle;
|
|
14
|
+
};
|
|
15
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import colorsLib from "../../../libs/constants/colors";
|
|
2
|
+
export const colors = {
|
|
3
|
+
light: {
|
|
4
|
+
text: colorsLib.light.text,
|
|
5
|
+
text2: colorsLib.light.text2Libretas
|
|
6
|
+
},
|
|
7
|
+
dark: {
|
|
8
|
+
text: colorsLib.dark.text,
|
|
9
|
+
text2: colorsLib.dark.text2Libretas
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export default colors;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Host, Section, Picker } from '@expo/ui/swift-ui';
|
|
2
|
+
import { listRowInsets, listStyle, pickerStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
import { List } from "../../../../../libs/swiftui";
|
|
5
|
+
export default memo(({ children, selected, onSelectionChange, adjustRowInsets }) => {
|
|
6
|
+
const _modifiersPicker = useMemo(() => [
|
|
7
|
+
pickerStyle('inline'),
|
|
8
|
+
...(adjustRowInsets ? [listRowInsets({ top: 20, bottom: 20, leading: 25, trailing: 20 })] : []),
|
|
9
|
+
], [adjustRowInsets]);
|
|
10
|
+
return (<Host style={{ flex: 1 }}>
|
|
11
|
+
<List modifiers={[listStyle('inset')]} disablePaddingTop>
|
|
12
|
+
<Section>
|
|
13
|
+
<Picker selection={selected} onSelectionChange={onSelectionChange} modifiers={_modifiersPicker}>
|
|
14
|
+
{children}
|
|
15
|
+
</Picker>
|
|
16
|
+
</Section>
|
|
17
|
+
</List>
|
|
18
|
+
</Host>);
|
|
19
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { ScrollView } from 'react-native';
|
|
3
|
+
import Table from "../../../../../libs/table";
|
|
4
|
+
import { Provider } from '../../context/page';
|
|
5
|
+
export default memo(({ children, selected, onSelectionChange }) => {
|
|
6
|
+
const value = useMemo(() => ({ selected, onSelectionChange }), [selected]);
|
|
7
|
+
return (<Provider value={value}>
|
|
8
|
+
<ScrollView>
|
|
9
|
+
<Table>
|
|
10
|
+
{children}
|
|
11
|
+
</Table>
|
|
12
|
+
</ScrollView>
|
|
13
|
+
</Provider>);
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type Props from "./types";
|
|
3
|
+
/**
|
|
4
|
+
Item component for the picker page.
|
|
5
|
+
It is necessary to use the tag modifier to display the item in the picker.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({ itemKey, title, systemImage, icon }: Props) => React.JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import { Label } from "@expo/ui/swift-ui";
|
|
3
|
+
import { tag } from "@expo/ui/swift-ui/modifiers";
|
|
4
|
+
/**
|
|
5
|
+
Item component for the picker page.
|
|
6
|
+
It is necessary to use the tag modifier to display the item in the picker.
|
|
7
|
+
*/
|
|
8
|
+
export default memo(({ itemKey, title, systemImage, icon }) => (<Label title={title} systemImage={systemImage} icon={icon} modifiers={[tag(itemKey)]}/>));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
3
|
+
import { useApp } from "../../../../../libs/providers/App";
|
|
4
|
+
import Table from "../../../../../libs/table";
|
|
5
|
+
import Colors from "../../../../../libs/constants/colors";
|
|
6
|
+
import { usePage } from '../../context/page';
|
|
7
|
+
export default memo(({ itemKey, title, ionIconName, icon }) => {
|
|
8
|
+
const { colorScheme } = useApp();
|
|
9
|
+
const { selected, onSelectionChange } = usePage();
|
|
10
|
+
return (<Table.Option id={itemKey} onPress={() => onSelectionChange?.(itemKey)} colorScheme={colorScheme} childrenLeft={<>
|
|
11
|
+
{icon ?? (ionIconName && <Ionicons name={ionIconName} size={24} color={Colors.especiales.azul}/>)}
|
|
12
|
+
{title && <Table.Option.Components.Text text={title}/>}
|
|
13
|
+
</>} childrenRight={itemKey !== selected ? undefined : (<Ionicons name='checkmark-circle' size={24} color={Colors.especiales.azul}/>)}/>);
|
|
14
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SFSymbol } from 'sf-symbols-typescript';
|
|
2
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
3
|
+
type Props = {
|
|
4
|
+
/**
|
|
5
|
+
The key of the item to be used in the tag modifier.
|
|
6
|
+
Is the value that will be selected when the item is clicked.
|
|
7
|
+
*/
|
|
8
|
+
itemKey: string;
|
|
9
|
+
/**
|
|
10
|
+
The title text to be displayed in the label.
|
|
11
|
+
*/
|
|
12
|
+
title?: string;
|
|
13
|
+
/**
|
|
14
|
+
The name of the SFSymbol to be displayed in the label.
|
|
15
|
+
@platform ios
|
|
16
|
+
*/
|
|
17
|
+
systemImage?: SFSymbol;
|
|
18
|
+
/**
|
|
19
|
+
The name of the Ionicon to be displayed in the label.
|
|
20
|
+
*/
|
|
21
|
+
ionIconName?: keyof typeof Ionicons.glyphMap;
|
|
22
|
+
/**
|
|
23
|
+
Custom icon view to be displayed in the label.
|
|
24
|
+
When provided, this takes precedence over `systemImage`.
|
|
25
|
+
*/
|
|
26
|
+
icon?: React.ReactNode;
|
|
27
|
+
};
|
|
28
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Stack, router } from "expo-router";
|
|
2
|
+
import React, { memo } from "react";
|
|
3
|
+
import Content from '../Content';
|
|
4
|
+
export default memo(({ children, onChangeSearchText, onSelectionChange, placeholderSearchBar = 'Buscar', ...props }) => {
|
|
5
|
+
const _onSelectionChange = async (selection) => {
|
|
6
|
+
await onSelectionChange?.(selection);
|
|
7
|
+
router.back();
|
|
8
|
+
};
|
|
9
|
+
return (<>
|
|
10
|
+
<Stack.Toolbar placement="right">
|
|
11
|
+
<Stack.Toolbar.Button onPress={() => router.back()}>
|
|
12
|
+
<Stack.Toolbar.Icon sf="xmark"/>
|
|
13
|
+
</Stack.Toolbar.Button>
|
|
14
|
+
</Stack.Toolbar>
|
|
15
|
+
|
|
16
|
+
<Stack.SearchBar placeholder={placeholderSearchBar} onChangeText={(e) => onChangeSearchText?.(e.nativeEvent.text)}/>
|
|
17
|
+
|
|
18
|
+
<Content onSelectionChange={_onSelectionChange} {...props}>
|
|
19
|
+
{children}
|
|
20
|
+
</Content>
|
|
21
|
+
</>);
|
|
22
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
/**
|
|
3
|
+
Children to be rendered inside the picker.
|
|
4
|
+
*/
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
Selected value.
|
|
8
|
+
*/
|
|
9
|
+
selected?: string;
|
|
10
|
+
/**
|
|
11
|
+
Function to be called when the user selects a selection.
|
|
12
|
+
*/
|
|
13
|
+
onSelectionChange?: (selection: string) => void | Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
Function to be called when the user changes the search text.
|
|
16
|
+
*/
|
|
17
|
+
onChangeSearchText?: (text: string) => void;
|
|
18
|
+
/**
|
|
19
|
+
Placeholder for the search bar.
|
|
20
|
+
@default 'Buscar'
|
|
21
|
+
*/
|
|
22
|
+
placeholderSearchBar?: string;
|
|
23
|
+
/**
|
|
24
|
+
Adjusts the row insets on ios.
|
|
25
|
+
Is is useful when uses items with gradients.
|
|
26
|
+
@platform ios
|
|
27
|
+
*/
|
|
28
|
+
adjustRowInsets?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export default Props;
|