native-pytech 1.0.125 → 1.0.129
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/package.json +1 -1
- package/dist/app/assets/components/removeCircle.d.ts +0 -2
- package/dist/app/assets/components/removeCircle.js +0 -2
- package/dist/app/assets/components/reorderThreeOutline.d.ts +0 -2
- package/dist/app/assets/components/reorderThreeOutline.js +0 -2
- package/dist/app/assets/ionicons.d.ts +0 -2
- package/dist/app/assets/ionicons.js +0 -2
- package/dist/app/colorPage.d.ts +0 -1
- package/dist/app/colorPage.js +0 -1
- package/dist/app/components/closeButton.d.ts +0 -2
- package/dist/app/components/closeButton.js +0 -2
- package/dist/app/components/gradient.d.ts +0 -2
- package/dist/app/components/gradient.js +0 -2
- package/dist/app/components/link.d.ts +0 -2
- package/dist/app/components/link.js +0 -2
- package/dist/app/components/text.d.ts +0 -2
- package/dist/app/components/text.js +0 -2
- package/dist/app/components/theme.d.ts +0 -2
- package/dist/app/components/theme.js +0 -2
- package/dist/app/constants/colors.d.ts +0 -2
- package/dist/app/constants/colors.js +0 -2
- package/dist/app/constants/consts.d.ts +0 -1
- package/dist/app/constants/consts.js +0 -1
- package/dist/app/constants/formats.d.ts +0 -1
- package/dist/app/constants/formats.js +0 -1
- package/dist/app/constants/hooks.d.ts +0 -1
- package/dist/app/constants/hooks.js +0 -1
- package/dist/app/constants/utils.d.ts +0 -1
- package/dist/app/constants/utils.js +0 -1
- package/dist/app/editPage.d.ts +0 -1
- package/dist/app/editPage.js +0 -1
- package/dist/app/footer.d.ts +0 -2
- package/dist/app/footer.js +0 -2
- package/dist/app/login.d.ts +0 -2
- package/dist/app/login.js +0 -2
- package/dist/app/page.d.ts +0 -2
- package/dist/app/page.js +0 -2
- package/dist/app/pickerPage.d.ts +0 -1
- package/dist/app/pickerPage.js +0 -1
- package/dist/app/providers/app.d.ts +0 -2
- package/dist/app/providers/app.js +0 -2
- package/dist/app/segmentedControl.d.ts +0 -2
- package/dist/app/segmentedControl.js +0 -2
- package/dist/app/sql.d.ts +0 -2
- package/dist/app/sql.js +0 -2
- package/dist/app/supabase.d.ts +0 -2
- package/dist/app/supabase.js +0 -2
- package/dist/app/swiftui.d.ts +0 -1
- package/dist/app/swiftui.js +0 -1
- package/dist/app/table.d.ts +0 -2
- package/dist/app/table.js +0 -2
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -8
- package/dist/libs/assets/components/RemoveCircle.d.ts +0 -6
- package/dist/libs/assets/components/RemoveCircle.js +0 -25
- package/dist/libs/assets/components/ReorderThreeOutline.d.ts +0 -5
- package/dist/libs/assets/components/ReorderThreeOutline.js +0 -15
- package/dist/libs/assets/ionicons/Ionicons.d.ts +0 -35
- package/dist/libs/assets/ionicons/Ionicons.js +0 -16
- package/dist/libs/assets/ionicons/index.d.ts +0 -6
- package/dist/libs/assets/ionicons/index.js +0 -23
- package/dist/libs/colorPage/index.d.ts +0 -1
- package/dist/libs/colorPage/index.js +0 -1
- package/dist/libs/colorPage/src/Content/index.android.d.ts +0 -4
- package/dist/libs/colorPage/src/Content/index.android.js +0 -13
- package/dist/libs/colorPage/src/Content/index.d.ts +0 -3
- package/dist/libs/colorPage/src/Content/index.ios.d.ts +0 -4
- package/dist/libs/colorPage/src/Content/index.ios.js +0 -16
- package/dist/libs/colorPage/src/Content/index.js +0 -1
- package/dist/libs/colorPage/src/Content/types.d.ts +0 -10
- package/dist/libs/colorPage/src/Content/types.js +0 -1
- package/dist/libs/colorPage/src/Item/index.android.d.ts +0 -4
- package/dist/libs/colorPage/src/Item/index.android.js +0 -40
- package/dist/libs/colorPage/src/Item/index.d.ts +0 -3
- package/dist/libs/colorPage/src/Item/index.ios.d.ts +0 -4
- package/dist/libs/colorPage/src/Item/index.ios.js +0 -31
- package/dist/libs/colorPage/src/Item/index.js +0 -1
- package/dist/libs/colorPage/src/Item/types.d.ts +0 -13
- package/dist/libs/colorPage/src/Item/types.js +0 -1
- package/dist/libs/colorPage/src/Page/index.d.ts +0 -4
- package/dist/libs/colorPage/src/Page/index.js +0 -17
- package/dist/libs/colorPage/src/Page/types.d.ts +0 -27
- package/dist/libs/colorPage/src/Page/types.js +0 -1
- package/dist/libs/components/CloseButton.d.ts +0 -9
- package/dist/libs/components/CloseButton.js +0 -18
- package/dist/libs/components/Gradient/components/Gradient/index.d.ts +0 -4
- package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +0 -4
- package/dist/libs/components/Gradient/components/Gradient/index.ios.js +0 -35
- package/dist/libs/components/Gradient/components/Gradient/index.js +0 -33
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +0 -30
- package/dist/libs/components/Gradient/components/Gradient/types.js +0 -1
- package/dist/libs/components/Gradient/components/Icon/index.d.ts +0 -3
- package/dist/libs/components/Gradient/components/Icon/index.js +0 -1
- package/dist/libs/components/Gradient/components/Icon/types.d.ts +0 -16
- package/dist/libs/components/Gradient/components/Icon/types.js +0 -1
- package/dist/libs/components/Gradient/constants.d.ts +0 -97
- package/dist/libs/components/Gradient/constants.js +0 -98
- package/dist/libs/components/Gradient/index.d.ts +0 -3
- package/dist/libs/components/Gradient/index.js +0 -2
- package/dist/libs/components/Link.d.ts +0 -13
- package/dist/libs/components/Link.js +0 -20
- package/dist/libs/components/Text.d.ts +0 -6
- package/dist/libs/components/Text.js +0 -11
- package/dist/libs/components/Theme.d.ts +0 -9
- package/dist/libs/components/Theme.js +0 -10
- package/dist/libs/constants/colors.d.ts +0 -218
- package/dist/libs/constants/colors.js +0 -170
- package/dist/libs/constants/consts.d.ts +0 -13
- package/dist/libs/constants/consts.js +0 -23
- package/dist/libs/constants/formats.d.ts +0 -11
- package/dist/libs/constants/formats.js +0 -84
- package/dist/libs/constants/hooks.d.ts +0 -8
- package/dist/libs/constants/hooks.js +0 -59
- package/dist/libs/constants/utils.d.ts +0 -12
- package/dist/libs/constants/utils.js +0 -75
- package/dist/libs/editPage/index.d.ts +0 -9
- package/dist/libs/editPage/index.js +0 -7
- package/dist/libs/editPage/src/components/Item/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/Item/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/Item/index.ios.js +0 -12
- package/dist/libs/editPage/src/components/Item/index.js +0 -1
- package/dist/libs/editPage/src/components/Item/types.d.ts +0 -14
- package/dist/libs/editPage/src/components/Item/types.js +0 -1
- package/dist/libs/editPage/src/components/ItemDate/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemDate/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/ItemDate/index.ios.js +0 -29
- package/dist/libs/editPage/src/components/ItemDate/index.js +0 -1
- package/dist/libs/editPage/src/components/ItemDate/types.d.ts +0 -25
- package/dist/libs/editPage/src/components/ItemDate/types.js +0 -1
- package/dist/libs/editPage/src/components/Screen/index.d.ts +0 -4
- package/dist/libs/editPage/src/components/Screen/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/Screen/index.ios.js +0 -8
- package/dist/libs/editPage/src/components/Screen/index.js +0 -1
- package/dist/libs/editPage/src/components/Screen/types.d.ts +0 -27
- package/dist/libs/editPage/src/components/Screen/types.js +0 -1
- package/dist/libs/editPage/src/components/TextField/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/TextField/index.ios.js +0 -35
- package/dist/libs/editPage/src/components/TextField/index.js +0 -1
- package/dist/libs/editPage/src/components/TextField/types.d.ts +0 -32
- package/dist/libs/editPage/src/components/TextField/types.js +0 -1
- package/dist/libs/editPage/src/components/Wrapper/index.d.ts +0 -4
- package/dist/libs/editPage/src/components/Wrapper/index.js +0 -84
- package/dist/libs/editPage/src/components/Wrapper/types.d.ts +0 -23
- package/dist/libs/editPage/src/components/Wrapper/types.js +0 -1
- package/dist/libs/editPage/src/context/page.d.ts +0 -13
- package/dist/libs/editPage/src/context/page.js +0 -2
- package/dist/libs/footer/index.d.ts +0 -1
- package/dist/libs/footer/index.js +0 -1
- package/dist/libs/footer/src/components/Background/index.d.ts +0 -4
- package/dist/libs/footer/src/components/Background/index.ios.d.ts +0 -4
- package/dist/libs/footer/src/components/Background/index.ios.js +0 -22
- package/dist/libs/footer/src/components/Background/index.js +0 -21
- package/dist/libs/footer/src/components/Button/Text.d.ts +0 -3
- package/dist/libs/footer/src/components/Button/Text.js +0 -18
- package/dist/libs/footer/src/components/Button/index.d.ts +0 -3
- package/dist/libs/footer/src/components/Button/index.ios.d.ts +0 -4
- package/dist/libs/footer/src/components/Button/index.ios.js +0 -30
- package/dist/libs/footer/src/components/Button/index.js +0 -55
- package/dist/libs/footer/src/components/Button/types.d.ts +0 -22
- package/dist/libs/footer/src/components/Button/types.js +0 -1
- package/dist/libs/footer/src/components/Footer/index.d.ts +0 -6
- package/dist/libs/footer/src/components/Footer/index.ios.d.ts +0 -7
- package/dist/libs/footer/src/components/Footer/index.ios.js +0 -9
- package/dist/libs/footer/src/components/Footer/index.js +0 -38
- package/dist/libs/footer/src/components/View.d.ts +0 -5
- package/dist/libs/footer/src/components/View.js +0 -11
- package/dist/libs/footer/src/constants.d.ts +0 -20
- package/dist/libs/footer/src/constants.js +0 -21
- package/dist/libs/footer/src/index.d.ts +0 -9
- package/dist/libs/footer/src/index.js +0 -7
- package/dist/libs/login/index.d.ts +0 -3
- package/dist/libs/login/index.js +0 -3
- package/dist/libs/login/src/Pages/Home/index.d.ts +0 -3
- package/dist/libs/login/src/Pages/Home/index.js +0 -20
- package/dist/libs/login/src/Pages/Home/types.d.ts +0 -19
- package/dist/libs/login/src/Pages/Home/types.js +0 -1
- package/dist/libs/login/src/Pages/Perfil.d.ts +0 -5
- package/dist/libs/login/src/Pages/Perfil.js +0 -19
- package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +0 -9
- package/dist/libs/login/src/Pages/SignIn/Form/Input.js +0 -10
- package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +0 -6
- package/dist/libs/login/src/Pages/SignIn/Form/index.js +0 -34
- package/dist/libs/login/src/Pages/SignIn/index.d.ts +0 -3
- package/dist/libs/login/src/Pages/SignIn/index.js +0 -149
- package/dist/libs/login/src/Pages/SignIn/types.d.ts +0 -31
- package/dist/libs/login/src/Pages/SignIn/types.js +0 -1
- package/dist/libs/login/src/Pages/index.d.ts +0 -3
- package/dist/libs/login/src/Pages/index.js +0 -3
- package/dist/libs/login/src/Pages/utils.d.ts +0 -22
- package/dist/libs/login/src/Pages/utils.js +0 -24
- package/dist/libs/login/src/Screen/Container.d.ts +0 -4
- package/dist/libs/login/src/Screen/Container.ios.d.ts +0 -4
- package/dist/libs/login/src/Screen/Container.ios.js +0 -20
- package/dist/libs/login/src/Screen/Container.js +0 -25
- package/dist/libs/login/src/Screen/components/Gradient.d.ts +0 -6
- package/dist/libs/login/src/Screen/components/Gradient.js +0 -23
- package/dist/libs/login/src/Screen/components/Input/index.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/Input/index.js +0 -128
- package/dist/libs/login/src/Screen/components/Input/types.d.ts +0 -46
- package/dist/libs/login/src/Screen/components/Input/types.js +0 -1
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +0 -11
- package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/SvgPytech.js +0 -11
- package/dist/libs/login/src/Screen/components/index.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/index.js +0 -4
- package/dist/libs/login/src/Screen/index.d.ts +0 -4
- package/dist/libs/login/src/Screen/index.js +0 -59
- package/dist/libs/login/src/Screen/types.d.ts +0 -14
- package/dist/libs/login/src/Screen/types.js +0 -1
- package/dist/libs/login/src/constants.d.ts +0 -98
- package/dist/libs/login/src/constants.js +0 -48
- package/dist/libs/page/index.d.ts +0 -1
- package/dist/libs/page/index.js +0 -1
- package/dist/libs/page/src/components/Page/index.android.d.ts +0 -4
- package/dist/libs/page/src/components/Page/index.android.js +0 -11
- package/dist/libs/page/src/components/Page/index.d.ts +0 -4
- package/dist/libs/page/src/components/Page/index.js +0 -7
- package/dist/libs/page/src/components/PageWrapper/index.d.ts +0 -6
- package/dist/libs/page/src/components/PageWrapper/index.js +0 -13
- package/dist/libs/page/src/components/PageWrapper/types.d.ts +0 -16
- package/dist/libs/page/src/components/PageWrapper/types.js +0 -1
- package/dist/libs/page/src/components/Subtitle.d.ts +0 -5
- package/dist/libs/page/src/components/Subtitle.js +0 -9
- package/dist/libs/page/src/components/WithIcon/index.d.ts +0 -3
- package/dist/libs/page/src/components/WithIcon/index.js +0 -47
- package/dist/libs/page/src/components/WithIcon/types.d.ts +0 -15
- package/dist/libs/page/src/components/WithIcon/types.js +0 -1
- package/dist/libs/page/src/constants.d.ts +0 -12
- package/dist/libs/page/src/constants.js +0 -12
- package/dist/libs/pickerPage/index.d.ts +0 -7
- package/dist/libs/pickerPage/index.js +0 -5
- package/dist/libs/pickerPage/src/Content/index.d.ts +0 -3
- package/dist/libs/pickerPage/src/Content/index.ios.d.ts +0 -4
- package/dist/libs/pickerPage/src/Content/index.ios.js +0 -19
- package/dist/libs/pickerPage/src/Content/index.js +0 -1
- package/dist/libs/pickerPage/src/Content/types.d.ts +0 -3
- package/dist/libs/pickerPage/src/Content/types.js +0 -1
- package/dist/libs/pickerPage/src/Item/index.d.ts +0 -3
- package/dist/libs/pickerPage/src/Item/index.ios.d.ts +0 -8
- package/dist/libs/pickerPage/src/Item/index.ios.js +0 -8
- package/dist/libs/pickerPage/src/Item/index.js +0 -1
- package/dist/libs/pickerPage/src/Item/types.d.ts +0 -23
- package/dist/libs/pickerPage/src/Item/types.js +0 -1
- package/dist/libs/pickerPage/src/Page/index.d.ts +0 -4
- package/dist/libs/pickerPage/src/Page/index.js +0 -22
- package/dist/libs/pickerPage/src/Page/types.d.ts +0 -30
- package/dist/libs/pickerPage/src/Page/types.js +0 -1
- package/dist/libs/providers/App/index.d.ts +0 -10
- package/dist/libs/providers/App/index.js +0 -58
- package/dist/libs/providers/App/types.d.ts +0 -35
- package/dist/libs/providers/App/types.js +0 -1
- package/dist/libs/providers/constants.d.ts +0 -10
- package/dist/libs/providers/constants.js +0 -10
- package/dist/libs/segmentedControl/index.d.ts +0 -2
- package/dist/libs/segmentedControl/index.js +0 -2
- package/dist/libs/segmentedControl/src/colors.d.ts +0 -15
- package/dist/libs/segmentedControl/src/colors.js +0 -16
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +0 -79
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +0 -28
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Container/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Container/index.ios.js +0 -15
- package/dist/libs/segmentedControl/src/components/Container/index.js +0 -18
- package/dist/libs/segmentedControl/src/components/Container/types.d.ts +0 -16
- package/dist/libs/segmentedControl/src/components/Container/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Item/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Item/index.js +0 -26
- package/dist/libs/segmentedControl/src/components/Item/types.d.ts +0 -20
- package/dist/libs/segmentedControl/src/components/Item/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Segmented/index.js +0 -93
- package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +0 -12
- package/dist/libs/segmentedControl/src/components/Segmented/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Wrapper/index.js +0 -21
- package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +0 -38
- package/dist/libs/segmentedControl/src/components/Wrapper/types.js +0 -1
- package/dist/libs/segmentedControl/src/context/shared.d.ts +0 -11
- package/dist/libs/segmentedControl/src/context/shared.js +0 -13
- package/dist/libs/segmentedControl/src/utils.d.ts +0 -10
- package/dist/libs/segmentedControl/src/utils.js +0 -29
- package/dist/libs/sql/index.d.ts +0 -4
- package/dist/libs/sql/index.js +0 -4
- package/dist/libs/sql/src/init.d.ts +0 -24
- package/dist/libs/sql/src/init.js +0 -31
- package/dist/libs/sql/src/queryLocal.d.ts +0 -6
- package/dist/libs/sql/src/queryLocal.js +0 -15
- package/dist/libs/sql/src/utils.d.ts +0 -11
- package/dist/libs/sql/src/utils.js +0 -60
- package/dist/libs/supabase/index.d.ts +0 -4
- package/dist/libs/supabase/index.js +0 -2
- package/dist/libs/supabase/src/clients/admin/config.d.ts +0 -2
- package/dist/libs/supabase/src/clients/admin/config.js +0 -18
- package/dist/libs/supabase/src/clients/admin/index.d.ts +0 -9
- package/dist/libs/supabase/src/clients/admin/index.js +0 -7
- package/dist/libs/supabase/src/clients/admin/utils.d.ts +0 -5
- package/dist/libs/supabase/src/clients/admin/utils.js +0 -6
- package/dist/libs/supabase/src/clients/app/config.d.ts +0 -3
- package/dist/libs/supabase/src/clients/app/config.js +0 -31
- package/dist/libs/supabase/src/clients/app/index.d.ts +0 -16
- package/dist/libs/supabase/src/clients/app/index.js +0 -7
- package/dist/libs/supabase/src/clients/app/utils.d.ts +0 -12
- package/dist/libs/supabase/src/clients/app/utils.js +0 -10
- package/dist/libs/supabase/src/utils/index.d.ts +0 -20
- package/dist/libs/supabase/src/utils/index.js +0 -23
- package/dist/libs/supabase/src/utils/types.d.ts +0 -22
- package/dist/libs/supabase/src/utils/types.js +0 -1
- package/dist/libs/swiftui/index.d.ts +0 -9
- package/dist/libs/swiftui/index.js +0 -9
- package/dist/libs/swiftui/src/components/Dialog/index.d.ts +0 -4
- package/dist/libs/swiftui/src/components/Dialog/index.js +0 -22
- package/dist/libs/swiftui/src/components/Dialog/types.d.ts +0 -21
- package/dist/libs/swiftui/src/components/Dialog/types.js +0 -1
- package/dist/libs/swiftui/src/components/Host.d.ts +0 -6
- package/dist/libs/swiftui/src/components/Host.js +0 -5
- package/dist/libs/swiftui/src/components/Icon.d.ts +0 -10
- package/dist/libs/swiftui/src/components/Icon.js +0 -8
- package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +0 -25
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +0 -26
- package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +0 -7
- package/dist/libs/swiftui/src/components/IconSection/Section.js +0 -17
- package/dist/libs/swiftui/src/components/IconSection/index.d.ts +0 -7
- package/dist/libs/swiftui/src/components/IconSection/index.js +0 -5
- package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +0 -10
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +0 -20
- package/dist/libs/swiftui/src/components/List/BaseList/types.d.ts +0 -16
- package/dist/libs/swiftui/src/components/List/BaseList/types.js +0 -1
- package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +0 -4
- package/dist/libs/swiftui/src/components/List/Editable/List/index.js +0 -19
- package/dist/libs/swiftui/src/components/List/Editable/List/types.d.ts +0 -16
- package/dist/libs/swiftui/src/components/List/Editable/List/types.js +0 -1
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +0 -5
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +0 -36
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.d.ts +0 -42
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.js +0 -1
- package/dist/libs/swiftui/src/components/List/Editable/index.d.ts +0 -7
- package/dist/libs/swiftui/src/components/List/Editable/index.js +0 -5
- package/dist/libs/swiftui/src/components/List/index.d.ts +0 -7
- package/dist/libs/swiftui/src/components/List/index.js +0 -5
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +0 -4
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +0 -14
- package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +0 -4
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +0 -14
- package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +0 -31
- package/dist/libs/swiftui/src/components/NavigationLink/types.js +0 -1
- package/dist/libs/swiftui/src/components/Picker.d.ts +0 -11
- package/dist/libs/swiftui/src/components/Picker.js +0 -14
- package/dist/libs/swiftui/src/components/Text.d.ts +0 -6
- package/dist/libs/swiftui/src/components/Text.js +0 -10
- package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +0 -22
- package/dist/libs/swiftui/src/components/TextSubtitle.js +0 -9
- package/dist/libs/swiftui/src/context/ListEditable.d.ts +0 -7
- package/dist/libs/swiftui/src/context/ListEditable.js +0 -2
- package/dist/libs/table/index.d.ts +0 -5
- package/dist/libs/table/index.js +0 -5
- package/dist/libs/table/src/components/Borders.d.ts +0 -6
- package/dist/libs/table/src/components/Borders.js +0 -84
- package/dist/libs/table/src/components/Delete/index.d.ts +0 -4
- package/dist/libs/table/src/components/Delete/index.js +0 -141
- package/dist/libs/table/src/components/Delete/types.d.ts +0 -27
- package/dist/libs/table/src/components/Delete/types.js +0 -1
- package/dist/libs/table/src/components/Detail.d.ts +0 -4
- package/dist/libs/table/src/components/Detail.js +0 -11
- package/dist/libs/table/src/components/Option/index.d.ts +0 -6
- package/dist/libs/table/src/components/Option/index.js +0 -106
- package/dist/libs/table/src/components/Option/types.d.ts +0 -61
- package/dist/libs/table/src/components/Option/types.js +0 -1
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +0 -6
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +0 -14
- package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +0 -6
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +0 -18
- package/dist/libs/table/src/components/OptionComponents/icon.d.ts +0 -10
- package/dist/libs/table/src/components/OptionComponents/icon.js +0 -12
- package/dist/libs/table/src/components/OptionComponents/image.d.ts +0 -9
- package/dist/libs/table/src/components/OptionComponents/image.js +0 -12
- package/dist/libs/table/src/components/OptionComponents/index.d.ts +0 -8
- package/dist/libs/table/src/components/OptionComponents/index.js +0 -8
- package/dist/libs/table/src/components/OptionComponents/text.d.ts +0 -22
- package/dist/libs/table/src/components/OptionComponents/text.js +0 -20
- package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +0 -25
- package/dist/libs/table/src/components/OptionComponents/textInput.js +0 -49
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +0 -8
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +0 -10
- package/dist/libs/table/src/components/OptionComponents/textView.d.ts +0 -14
- package/dist/libs/table/src/components/OptionComponents/textView.js +0 -18
- package/dist/libs/table/src/components/OptionWrapper/index.d.ts +0 -3
- package/dist/libs/table/src/components/OptionWrapper/index.js +0 -9
- package/dist/libs/table/src/components/OptionWrapper/types.d.ts +0 -37
- package/dist/libs/table/src/components/OptionWrapper/types.js +0 -1
- package/dist/libs/table/src/components/Table/index.d.ts +0 -3
- package/dist/libs/table/src/components/Table/index.js +0 -90
- package/dist/libs/table/src/components/Table/types.d.ts +0 -70
- package/dist/libs/table/src/components/Table/types.js +0 -1
- package/dist/libs/table/src/components/Wrapper.d.ts +0 -4
- package/dist/libs/table/src/components/Wrapper.js +0 -49
- package/dist/libs/table/src/constants.d.ts +0 -108
- package/dist/libs/table/src/constants.js +0 -107
- package/dist/libs/table/src/context/borders.d.ts +0 -10
- package/dist/libs/table/src/context/borders.js +0 -11
- package/dist/libs/table/src/context/delete.d.ts +0 -1
- package/dist/libs/table/src/context/delete.js +0 -2
- package/dist/libs/table/src/context/table.d.ts +0 -21
- package/dist/libs/table/src/context/table.js +0 -4
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, memo, useRef, useCallback, useEffect } from "react";
|
|
2
|
-
import { useValue } from "@legendapp/state/react";
|
|
3
|
-
import { SecureField, TextField } from "@expo/ui/swift-ui";
|
|
4
|
-
import { keyboardType as keyboardTypeModifier, submitLabel, textInputAutocapitalization, onSubmit } from '@expo/ui/swift-ui/modifiers';
|
|
5
|
-
import { usePage } from '../../context/page';
|
|
6
|
-
export default memo(({ itemKey, defaultValue, placeholder, keyboardType, autocapitalization = true, secureTextEntry, isValid, }) => {
|
|
7
|
-
const { store, registerItem, onSubmit: _onSubmit } = usePage();
|
|
8
|
-
const isUniqueItem = useValue(() => store.isUniqueItem.get());
|
|
9
|
-
const ref = useRef(null);
|
|
10
|
-
// Key
|
|
11
|
-
const keyRef = useRef(itemKey ?? 0);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
keyRef.current = registerItem(itemKey, ref);
|
|
14
|
-
}, []);
|
|
15
|
-
// onChange
|
|
16
|
-
const onValueChange = useCallback((value) => {
|
|
17
|
-
const _value = value.trim() === '' ? null : value.trim();
|
|
18
|
-
store.values[keyRef.current].set({
|
|
19
|
-
value: _value,
|
|
20
|
-
hasChanged: _value !== defaultValue,
|
|
21
|
-
isValid: isValid?.(_value) ?? true,
|
|
22
|
-
});
|
|
23
|
-
}, []);
|
|
24
|
-
// Props
|
|
25
|
-
const modifiers = useMemo(() => [
|
|
26
|
-
...(isUniqueItem ? [submitLabel('done')] : []),
|
|
27
|
-
...(keyboardType ? [keyboardTypeModifier(keyboardType)] : []),
|
|
28
|
-
...(!autocapitalization ? [textInputAutocapitalization('never')] : []),
|
|
29
|
-
onSubmit(() => _onSubmit(keyRef.current)),
|
|
30
|
-
], [keyboardType, autocapitalization, isUniqueItem]);
|
|
31
|
-
const props = { autoFocus: isUniqueItem, modifiers, placeholder, defaultValue, onValueChange };
|
|
32
|
-
if (secureTextEntry)
|
|
33
|
-
return <SecureField {...props} ref={ref}/>;
|
|
34
|
-
return <TextField {...props} ref={ref}/>;
|
|
35
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default ({ ...props }) => null;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
/**
|
|
3
|
-
identification key of the text field.
|
|
4
|
-
*/
|
|
5
|
-
itemKey?: string;
|
|
6
|
-
/**
|
|
7
|
-
Default value of the text field.
|
|
8
|
-
*/
|
|
9
|
-
defaultValue?: string;
|
|
10
|
-
/**
|
|
11
|
-
Placeholder of the text field.
|
|
12
|
-
*/
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
/**
|
|
15
|
-
Keyboard type. Uses the keyboardType modifier.
|
|
16
|
-
*/
|
|
17
|
-
keyboardType?: "default" | "email-address" | "numeric" | "phone-pad" | "ascii-capable" | "numbers-and-punctuation" | "url" | "name-phone-pad" | "decimal-pad" | "twitter" | "web-search" | "ascii-capable-number-pad";
|
|
18
|
-
/**
|
|
19
|
-
If true, the text field will be autocapitalized. Uses the textInputAutocapitalization modifier.
|
|
20
|
-
@default true
|
|
21
|
-
*/
|
|
22
|
-
autocapitalization?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
If true, the text field will be secure (password).
|
|
25
|
-
*/
|
|
26
|
-
secureTextEntry?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
Function to validate the value.
|
|
29
|
-
*/
|
|
30
|
-
isValid?: (value: string | null) => boolean;
|
|
31
|
-
};
|
|
32
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { useObservable, useValue } from '@legendapp/state/react';
|
|
2
|
-
import { Stack, router } from 'expo-router';
|
|
3
|
-
import React, { memo, useCallback, useMemo, useRef } from 'react';
|
|
4
|
-
import { Provider } from '../../context/page';
|
|
5
|
-
import Screen from '../Screen';
|
|
6
|
-
export default memo(({ children, onSave }) => {
|
|
7
|
-
const textFieldsRefs = useRef({});
|
|
8
|
-
const indexRef = useRef(0);
|
|
9
|
-
// Store
|
|
10
|
-
const store = useObservable({
|
|
11
|
-
values: {},
|
|
12
|
-
saveEnabled: () => {
|
|
13
|
-
const listValues = Object.values(store.values.get());
|
|
14
|
-
const hasChanged = listValues.some(value => value.hasChanged);
|
|
15
|
-
const allValid = listValues.every(value => value.isValid);
|
|
16
|
-
return hasChanged && allValid;
|
|
17
|
-
},
|
|
18
|
-
isUniqueItem: () => {
|
|
19
|
-
const listValues = Object.values(store.values.get());
|
|
20
|
-
return listValues.length === 1;
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
const saveEnabled = useValue(() => store.saveEnabled.get());
|
|
24
|
-
// onPress
|
|
25
|
-
const onPressSave = useCallback(async () => {
|
|
26
|
-
// Obtengo los valores del store
|
|
27
|
-
const values = store.values.peek();
|
|
28
|
-
const valuesToSave = Object.values(values).map(value => value.value ?? null);
|
|
29
|
-
// Llamo a la función onSave
|
|
30
|
-
const result = await onSave?.(valuesToSave);
|
|
31
|
-
if (result === false)
|
|
32
|
-
return;
|
|
33
|
-
router.back();
|
|
34
|
-
}, [onSave, store.values]);
|
|
35
|
-
// Register
|
|
36
|
-
const registerItem = (itemKey, ref) => {
|
|
37
|
-
const key = itemKey ?? indexRef.current;
|
|
38
|
-
indexRef.current++;
|
|
39
|
-
ref && (textFieldsRefs.current[key] = ref);
|
|
40
|
-
return key;
|
|
41
|
-
};
|
|
42
|
-
const next = (itemKey) => {
|
|
43
|
-
const keys = Object.keys(textFieldsRefs.current);
|
|
44
|
-
const index = keys.findIndex(key => key > itemKey);
|
|
45
|
-
if (index === -1)
|
|
46
|
-
return;
|
|
47
|
-
const nextKey = keys[index + 1];
|
|
48
|
-
if (!nextKey)
|
|
49
|
-
return;
|
|
50
|
-
textFieldsRefs.current[nextKey].current?.focus();
|
|
51
|
-
};
|
|
52
|
-
const onSubmit = async (itemKey) => {
|
|
53
|
-
console.log('onSubmit', 'itemKey', itemKey);
|
|
54
|
-
// Guarda los cambios
|
|
55
|
-
if (store.isUniqueItem.peek()) {
|
|
56
|
-
if (!saveEnabled)
|
|
57
|
-
return;
|
|
58
|
-
await onPressSave();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
// Va al siguiente campo
|
|
62
|
-
next(itemKey);
|
|
63
|
-
};
|
|
64
|
-
const value = useMemo(() => ({ store, onSubmit, registerItem }), []);
|
|
65
|
-
return (<>
|
|
66
|
-
<Stack.Toolbar placement="left">
|
|
67
|
-
<Stack.Toolbar.Button onPress={() => router.back()}>
|
|
68
|
-
<Stack.Toolbar.Icon sf="xmark"/>
|
|
69
|
-
</Stack.Toolbar.Button>
|
|
70
|
-
</Stack.Toolbar>
|
|
71
|
-
|
|
72
|
-
<Stack.Toolbar placement="right">
|
|
73
|
-
<Stack.Toolbar.Button disabled={!saveEnabled} variant="done" onPress={onPressSave}>
|
|
74
|
-
<Stack.Toolbar.Icon sf="checkmark"/>
|
|
75
|
-
</Stack.Toolbar.Button>
|
|
76
|
-
</Stack.Toolbar>
|
|
77
|
-
|
|
78
|
-
<Screen>
|
|
79
|
-
<Provider value={value}>
|
|
80
|
-
{children}
|
|
81
|
-
</Provider>
|
|
82
|
-
</Screen>
|
|
83
|
-
</>);
|
|
84
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
/**
|
|
3
|
-
Children to be rendered inside the wrapper.
|
|
4
|
-
*/
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
Function to be called when the user saves the changes.
|
|
8
|
-
If the function returns false, the user will not be redirected to the previous screen.
|
|
9
|
-
*/
|
|
10
|
-
onSave?: (items: (string | null | Date)[]) => boolean | void | Promise<boolean | void>;
|
|
11
|
-
};
|
|
12
|
-
export type Value = {
|
|
13
|
-
value?: string | null | Date;
|
|
14
|
-
hasChanged: boolean;
|
|
15
|
-
isValid: boolean;
|
|
16
|
-
};
|
|
17
|
-
export type Values = Record<string, Value>;
|
|
18
|
-
export type Store = {
|
|
19
|
-
values: Values;
|
|
20
|
-
saveEnabled: boolean;
|
|
21
|
-
isUniqueItem: boolean;
|
|
22
|
-
};
|
|
23
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Observable } from '@legendapp/state';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
|
-
import type { Store } from '../components/Wrapper/types';
|
|
4
|
-
export type TextFieldsRefsType = Record<number | string, RefObject<any>>;
|
|
5
|
-
export declare const Provider: import("react").Provider<{
|
|
6
|
-
store: Observable<Store>;
|
|
7
|
-
registerItem: (itemKey?: string, ref?: RefObject<any>) => string | number;
|
|
8
|
-
onSubmit: (itemKey: string | number) => Promise<void>;
|
|
9
|
-
} | null>, usePage: () => {
|
|
10
|
-
store: Observable<Store>;
|
|
11
|
-
registerItem: (itemKey?: string, ref?: RefObject<any>) => string | number;
|
|
12
|
-
onSubmit: (itemKey: string | number) => Promise<void>;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './src';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './src';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MeshGradientView } from 'expo-mesh-gradient';
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { StyleSheet } from 'react-native';
|
|
4
|
-
import Utils from '../../../../../libs/constants/utils';
|
|
5
|
-
export default memo(({ backgroundColorPage }) => {
|
|
6
|
-
const c06 = Utils.applyOpacity(backgroundColorPage, 0.6);
|
|
7
|
-
const c08 = Utils.applyOpacity(backgroundColorPage, 0.8);
|
|
8
|
-
const c09 = Utils.applyOpacity(backgroundColorPage, 0.9);
|
|
9
|
-
return (<MeshGradientView style={[StyleSheet.absoluteFill]} columns={2} rows={5} colors={[
|
|
10
|
-
'transparent', 'transparent',
|
|
11
|
-
c06, c06,
|
|
12
|
-
c08, c08,
|
|
13
|
-
c09, c09,
|
|
14
|
-
c09, c09
|
|
15
|
-
]} points={[
|
|
16
|
-
[0.0, 0.0], [1.0, 0.0],
|
|
17
|
-
[0.0, 0.25], [1.0, 0.25],
|
|
18
|
-
[0.0, 0.5], [1.0, 0.5],
|
|
19
|
-
[0.0, 0.75], [1.0, 0.75],
|
|
20
|
-
[0.0, 1.0], [1.0, 1.0],
|
|
21
|
-
]}/>);
|
|
22
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import MaskedView from '@react-native-masked-view/masked-view';
|
|
2
|
-
import { LinearGradient } from 'expo-linear-gradient';
|
|
3
|
-
import { memo } from 'react';
|
|
4
|
-
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import Utils from '../../../../../libs/constants/utils';
|
|
6
|
-
export default memo(({ backgroundColorPage }) => {
|
|
7
|
-
const c06 = Utils.applyOpacity(backgroundColorPage, 0.6);
|
|
8
|
-
const c08 = Utils.applyOpacity(backgroundColorPage, 0.8);
|
|
9
|
-
const c09 = Utils.applyOpacity(backgroundColorPage, 0.9);
|
|
10
|
-
return (<MaskedView style={[StyleSheet.absoluteFill]} maskElement={<LinearGradient colors={[
|
|
11
|
-
'transparent',
|
|
12
|
-
c06,
|
|
13
|
-
c08,
|
|
14
|
-
c09,
|
|
15
|
-
c09
|
|
16
|
-
]} start={{ x: 0.5, y: 0 }} // arriba-centro
|
|
17
|
-
end={{ x: 0.5, y: 1 }} // abajo-centro
|
|
18
|
-
style={[StyleSheet.absoluteFill]}/>}>
|
|
19
|
-
<View style={[StyleSheet.absoluteFill, { backgroundColor: backgroundColorPage }]}></View>
|
|
20
|
-
</MaskedView>);
|
|
21
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import colors from '../../constants';
|
|
2
|
-
import { useApp } from "../../../../../libs/providers/App";
|
|
3
|
-
import { memo, useMemo } from 'react';
|
|
4
|
-
import { StyleSheet, Text } from 'react-native';
|
|
5
|
-
export default memo(({ text, enabled, themeColor = 'default' }) => {
|
|
6
|
-
const { colorScheme } = useApp();
|
|
7
|
-
const Theme = colors.theme[colorScheme];
|
|
8
|
-
const color = useMemo(() => enabled ? (themeColor === 'default' ? colors.especiales.celeste : Theme.text2) : Theme.colorTextButtonFooterDisabled, [enabled, themeColor]);
|
|
9
|
-
return (<Text style={[styles.text, { color: color }]}>
|
|
10
|
-
{text}
|
|
11
|
-
</Text>);
|
|
12
|
-
});
|
|
13
|
-
const styles = StyleSheet.create({
|
|
14
|
-
text: {
|
|
15
|
-
fontSize: 17,
|
|
16
|
-
fontWeight: '600',
|
|
17
|
-
},
|
|
18
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Button, Text } from '@expo/ui/swift-ui';
|
|
2
|
-
import { frame, font, foregroundStyle, buttonStyle, controlSize, disabled } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
-
import React, { memo, useCallback, useMemo } from 'react';
|
|
4
|
-
import { useWindowDimensions } from 'react-native';
|
|
5
|
-
export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = true, themeColor = 'default' }) => {
|
|
6
|
-
const { width } = useWindowDimensions();
|
|
7
|
-
const modifiers = useMemo(() => [
|
|
8
|
-
disabled(!enabled),
|
|
9
|
-
buttonStyle('glassProminent'),
|
|
10
|
-
controlSize('large')
|
|
11
|
-
], [enabled]);
|
|
12
|
-
const modifiersText = useMemo(() => [
|
|
13
|
-
frame({ width: width - 110 }),
|
|
14
|
-
font({ weight: 'semibold' }),
|
|
15
|
-
...(enabled ? [foregroundStyle('#85fffd')] : []), // colors.especiales.celeste
|
|
16
|
-
], [width, enabled]);
|
|
17
|
-
const _onPress = useCallback(async () => {
|
|
18
|
-
if (onPress) {
|
|
19
|
-
const result = await onPress();
|
|
20
|
-
if (!result)
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
onSubmit?.();
|
|
24
|
-
}, [onPress, onSubmit]);
|
|
25
|
-
return (<Button onPress={_onPress} modifiers={modifiers}>
|
|
26
|
-
<Text modifiers={modifiersText}>
|
|
27
|
-
{text}
|
|
28
|
-
</Text>
|
|
29
|
-
</Button>);
|
|
30
|
-
});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import colors from '../../constants';
|
|
2
|
-
import { useApp } from "../../../../../libs/providers/App";
|
|
3
|
-
import { memo, useCallback, useMemo, useState } from 'react';
|
|
4
|
-
import { ActivityIndicator, Pressable, StyleSheet } from 'react-native';
|
|
5
|
-
import Utils from '../../../../../libs/constants/utils';
|
|
6
|
-
import Text from './Text';
|
|
7
|
-
export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = true, themeColor = 'default' }) => {
|
|
8
|
-
const { colorScheme } = useApp();
|
|
9
|
-
const Theme = colors.theme[colorScheme];
|
|
10
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
11
|
-
const backgroundColor = useCallback((pressed) => {
|
|
12
|
-
return enabled ? (pressed ?
|
|
13
|
-
themeColor === 'default' ?
|
|
14
|
-
colors.especiales.azul_pressed :
|
|
15
|
-
colorScheme === 'dark' ? Utils.adjustLightness(backgroundColorPage ?? 'white', 10) : backgroundColorPage ?? 'white'
|
|
16
|
-
: themeColor === 'default' ?
|
|
17
|
-
Utils.adjustLightness(colors.especiales.azul, -10) :
|
|
18
|
-
colorScheme === 'dark' ? backgroundColorPage : Utils.adjustLightness(backgroundColorPage ?? 'white', -1))
|
|
19
|
-
: Theme.colorButtonFooterDisabled;
|
|
20
|
-
}, [enabled, themeColor, backgroundColorPage, colorScheme]);
|
|
21
|
-
const _onPress = useCallback(async () => {
|
|
22
|
-
if (isLoading)
|
|
23
|
-
return;
|
|
24
|
-
if (onPress) {
|
|
25
|
-
setIsLoading(true);
|
|
26
|
-
const result = await onPress();
|
|
27
|
-
setIsLoading(false);
|
|
28
|
-
if (!result)
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
onSubmit?.();
|
|
32
|
-
}, [onPress, onSubmit]);
|
|
33
|
-
const color = useMemo(() => themeColor === 'default' ? colors.especiales.celeste : Theme.text2, [themeColor]);
|
|
34
|
-
return (<Pressable disabled={!enabled} onPress={_onPress} style={({ pressed }) => [
|
|
35
|
-
styles.button,
|
|
36
|
-
{
|
|
37
|
-
backgroundColor: backgroundColor(pressed),
|
|
38
|
-
borderColor: backgroundColor(true)
|
|
39
|
-
}
|
|
40
|
-
]}>
|
|
41
|
-
{!isLoading ? (<Text text={text} enabled={enabled} themeColor={themeColor}/>) : (<ActivityIndicator size='small' style={{ margin: 'auto' }} color={color}/>)}
|
|
42
|
-
</Pressable>);
|
|
43
|
-
});
|
|
44
|
-
const styles = StyleSheet.create({
|
|
45
|
-
button: {
|
|
46
|
-
borderRadius: 99,
|
|
47
|
-
paddingHorizontal: 20,
|
|
48
|
-
paddingVertical: 15.5,
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
justifyContent: 'center',
|
|
51
|
-
width: '100%',
|
|
52
|
-
borderWidth: 1,
|
|
53
|
-
boxShadow: '0 0 40px 0 rgba(0, 0, 0, 0.1)',
|
|
54
|
-
}
|
|
55
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type TextProps = {
|
|
2
|
-
text: string;
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
themeColor?: 'default' | 'special';
|
|
5
|
-
};
|
|
6
|
-
export type Props = {
|
|
7
|
-
/**
|
|
8
|
-
Función que se ejecuta cuando se presiona el botón.
|
|
9
|
-
Devuelve true/false si se debe continuar con la acción.
|
|
10
|
-
*/
|
|
11
|
-
onPress?: () => boolean | Promise<boolean>;
|
|
12
|
-
/**
|
|
13
|
-
Función que se ejecuta cuando hubo onPress exitoso.
|
|
14
|
-
*/
|
|
15
|
-
onSubmit?: () => void;
|
|
16
|
-
/**
|
|
17
|
-
Color de fondo de la página.
|
|
18
|
-
@android
|
|
19
|
-
@web
|
|
20
|
-
*/
|
|
21
|
-
backgroundColorPage?: string;
|
|
22
|
-
} & TextProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { View, StyleSheet } from 'react-native';
|
|
2
|
-
import MaskedView from '@react-native-masked-view/masked-view';
|
|
3
|
-
import { BlurView } from 'expo-blur';
|
|
4
|
-
import { LinearGradient } from 'expo-linear-gradient';
|
|
5
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
-
import { memo } from 'react';
|
|
7
|
-
import Background from '../Background';
|
|
8
|
-
import ButtonView from '../View';
|
|
9
|
-
export default memo(({ children, backgroundColorPage }) => {
|
|
10
|
-
const insets = useSafeAreaInsets();
|
|
11
|
-
return (<View style={styles.footer}>
|
|
12
|
-
<MaskedView style={[StyleSheet.absoluteFill]} maskElement={<LinearGradient colors={['transparent', 'transparent', 'rgba(0, 0, 0, 0.8)', 'black', 'black']} locations={[0, 0.05, 0.2, 0.5, 1]} style={StyleSheet.absoluteFill}/>}>
|
|
13
|
-
<BlurView intensity={6} tint='dark' style={StyleSheet.absoluteFill}/>
|
|
14
|
-
</MaskedView>
|
|
15
|
-
|
|
16
|
-
{backgroundColorPage && <Background backgroundColorPage={backgroundColorPage}/>}
|
|
17
|
-
|
|
18
|
-
<View style={[styles.view, { paddingBottom: insets.bottom + 5 }]}>
|
|
19
|
-
<ButtonView>
|
|
20
|
-
{children}
|
|
21
|
-
</ButtonView>
|
|
22
|
-
</View>
|
|
23
|
-
|
|
24
|
-
</View>);
|
|
25
|
-
});
|
|
26
|
-
const styles = StyleSheet.create({
|
|
27
|
-
footer: {
|
|
28
|
-
position: 'absolute',
|
|
29
|
-
bottom: 0,
|
|
30
|
-
width: '100%',
|
|
31
|
-
},
|
|
32
|
-
view: {
|
|
33
|
-
position: 'relative',
|
|
34
|
-
paddingTop: 70,
|
|
35
|
-
justifyContent: 'center',
|
|
36
|
-
alignItems: 'center'
|
|
37
|
-
}
|
|
38
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { View, StyleSheet } from 'react-native';
|
|
2
|
-
import React, { memo } from 'react';
|
|
3
|
-
export default memo(({ children }) => (<View style={styles.view}>
|
|
4
|
-
{children}
|
|
5
|
-
</View>));
|
|
6
|
-
const styles = StyleSheet.create({
|
|
7
|
-
view: {
|
|
8
|
-
paddingHorizontal: 17 * 2,
|
|
9
|
-
gap: 10,
|
|
10
|
-
}
|
|
11
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const colors: {
|
|
2
|
-
theme: {
|
|
3
|
-
light: {
|
|
4
|
-
text2: string;
|
|
5
|
-
colorButtonFooterDisabled: string;
|
|
6
|
-
colorTextButtonFooterDisabled: string;
|
|
7
|
-
};
|
|
8
|
-
dark: {
|
|
9
|
-
text2: string;
|
|
10
|
-
colorButtonFooterDisabled: string;
|
|
11
|
-
colorTextButtonFooterDisabled: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
especiales: {
|
|
15
|
-
azul: string;
|
|
16
|
-
celeste: string;
|
|
17
|
-
azul_pressed: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export default colors;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import colorsLib from "../../../libs/constants/colors";
|
|
2
|
-
const colors = {
|
|
3
|
-
theme: {
|
|
4
|
-
light: {
|
|
5
|
-
text2: colorsLib.light.text2Libretas,
|
|
6
|
-
colorButtonFooterDisabled: 'hsl(0, 0%, 80%)',
|
|
7
|
-
colorTextButtonFooterDisabled: 'hsl(240, 1%, 62%)',
|
|
8
|
-
},
|
|
9
|
-
dark: {
|
|
10
|
-
text2: colorsLib.dark.text2Libretas,
|
|
11
|
-
colorButtonFooterDisabled: 'hsl(240, 2%, 26%)',
|
|
12
|
-
colorTextButtonFooterDisabled: 'hsl(240, 1%, 50%)',
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
especiales: {
|
|
16
|
-
azul: colorsLib.especiales.azul,
|
|
17
|
-
celeste: colorsLib.especiales.celeste,
|
|
18
|
-
azul_pressed: colorsLib.especiales.azul_pressed
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export default colors;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Footer from './components/Footer';
|
|
2
|
-
import View from './components/View';
|
|
3
|
-
import Button from './components/Button';
|
|
4
|
-
type Component = typeof Footer & {
|
|
5
|
-
ButtonView: typeof View;
|
|
6
|
-
Button: typeof Button;
|
|
7
|
-
};
|
|
8
|
-
declare const FooterComponent: Component;
|
|
9
|
-
export default FooterComponent;
|
package/dist/libs/login/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useRouter } from 'expo-router';
|
|
2
|
-
import { memo, useEffect } from 'react';
|
|
3
|
-
import supabase from '../../../../../libs/supabase';
|
|
4
|
-
import Screen from '../../Screen';
|
|
5
|
-
import { handleSubmitLogIn } from '../utils';
|
|
6
|
-
import Link from '../../../../../libs/components/Link';
|
|
7
|
-
export default memo(({ title = 'MiApp', subtitle = 'Inicia sesión con un correo electrónico o nombre de usuario para usar la aplicación.', iconPage = <Screen.SvgPytech />, textCreateAccount, enableCreateAccount = false, }) => {
|
|
8
|
-
const router = useRouter();
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
(async () => {
|
|
11
|
-
const { error } = await supabase.logIn();
|
|
12
|
-
if (!error)
|
|
13
|
-
console.log('LogIn exitoso');
|
|
14
|
-
})();
|
|
15
|
-
}, []);
|
|
16
|
-
return (<Screen iconPage={iconPage} title={title} subtitle={subtitle} bottomElements={<>
|
|
17
|
-
<Screen.Input placeholder='Correo o nombre de usuario' keyboardType='email-address' autoComplete='email' handleSubmit={async ({ value }) => await handleSubmitLogIn({ username: value, router })}/>
|
|
18
|
-
{enableCreateAccount && (<Link text={textCreateAccount || `Crear tu cuenta de ${title}`} onPress={({ router }) => router.push({ pathname: '/login/inicio/signIn' })}/>)}
|
|
19
|
-
</>}/>);
|
|
20
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type Props as ScreenProps } from "../../Screen";
|
|
2
|
-
type Props = Omit<ScreenProps, 'inputElement' | 'subtitle'> & {
|
|
3
|
-
/**
|
|
4
|
-
Texto que aparece como subtítulo en la página.
|
|
5
|
-
@default "Inicia sesión con un correo electrónico o nombre de usuario para usar la aplicación."
|
|
6
|
-
*/
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
/**
|
|
9
|
-
Texto que aparece como enlace para crear una cuenta.
|
|
10
|
-
@default "Crear tu cuenta de ${title}"
|
|
11
|
-
*/
|
|
12
|
-
textCreateAccount?: string;
|
|
13
|
-
/**
|
|
14
|
-
Indica si se debe mostrar el botón para crear una cuenta.
|
|
15
|
-
@default false
|
|
16
|
-
*/
|
|
17
|
-
enableCreateAccount?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|