native-pytech 1.0.126 → 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 -32
- 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.d.ts +0 -21
- package/dist/libs/components/Gradient/components/Icon.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,29 +0,0 @@
|
|
|
1
|
-
export const getIndex = (index = 0) => Number.isInteger(index) ? index : Math.floor(index);
|
|
2
|
-
export const scrollToIndex = ({ widths, scrollX, containerWidth, scrollRef, index }) => {
|
|
3
|
-
if (!widths[index] || !containerWidth)
|
|
4
|
-
return;
|
|
5
|
-
const left = widths.slice(0, index).reduce((acc, w) => acc + (w || 0), 0);
|
|
6
|
-
const width = widths[index];
|
|
7
|
-
const prevWidth = widths[index - 1] || 0;
|
|
8
|
-
const nextWidth = widths[index + 1] || 0;
|
|
9
|
-
// Rango que queremos visible (prev + current + next)
|
|
10
|
-
const blockStart = left - prevWidth;
|
|
11
|
-
const blockEnd = left + width + nextWidth;
|
|
12
|
-
const visibleStart = scrollX;
|
|
13
|
-
const visibleEnd = scrollX + containerWidth;
|
|
14
|
-
let target = scrollX;
|
|
15
|
-
if (blockEnd > visibleEnd)
|
|
16
|
-
target = blockEnd - containerWidth; // Si el bloque se sale por la derecha
|
|
17
|
-
else if (blockStart < visibleStart)
|
|
18
|
-
target = blockStart; // Si el bloque se sale por la izquierda
|
|
19
|
-
else
|
|
20
|
-
return; // Si ya está todo visible, no hace nada
|
|
21
|
-
// Límites
|
|
22
|
-
const totalWidth = widths.reduce((a, w) => a + (w || 0), 0);
|
|
23
|
-
const maxScroll = Math.max(0, totalWidth - containerWidth);
|
|
24
|
-
target = Math.max(0, Math.min(target, maxScroll));
|
|
25
|
-
scrollRef.current?.scrollTo({
|
|
26
|
-
x: target,
|
|
27
|
-
animated: true
|
|
28
|
-
});
|
|
29
|
-
};
|
package/dist/libs/sql/index.d.ts
DELETED
package/dist/libs/sql/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as SQLite from 'expo-sqlite';
|
|
2
|
-
declare const dbRef: {
|
|
3
|
-
current: SQLite.SQLiteDatabase | undefined;
|
|
4
|
-
};
|
|
5
|
-
export declare const init: ({ currentVersion, listQueriesTables, queryOnCreateTables, queryOnExists }: {
|
|
6
|
-
/**
|
|
7
|
-
Versión actual de la base de datos.
|
|
8
|
-
Se utiliza para reiniciarla a mano.
|
|
9
|
-
*/
|
|
10
|
-
currentVersion: number;
|
|
11
|
-
/**
|
|
12
|
-
Listado de queries para crear las tablas.
|
|
13
|
-
*/
|
|
14
|
-
listQueriesTables: string[];
|
|
15
|
-
/**
|
|
16
|
-
Cuando se crean las tablas, se ejecuta esta query.
|
|
17
|
-
*/
|
|
18
|
-
queryOnCreateTables?: string;
|
|
19
|
-
/**
|
|
20
|
-
Si la base de datos ya existía (no la está creando), se ejecuta esta query.
|
|
21
|
-
*/
|
|
22
|
-
queryOnExists?: string;
|
|
23
|
-
}) => Promise<boolean>;
|
|
24
|
-
export default dbRef;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
2
|
-
import * as SQLite from 'expo-sqlite';
|
|
3
|
-
import { Platform } from 'react-native';
|
|
4
|
-
import { reset, _hasTables, _createTables, _executeSQL } from './utils';
|
|
5
|
-
const dbRef = {
|
|
6
|
-
current: undefined,
|
|
7
|
-
};
|
|
8
|
-
export const init = async ({ currentVersion, listQueriesTables, queryOnCreateTables, queryOnExists }) => {
|
|
9
|
-
// Se fija si tiene que reinicar la base de datos
|
|
10
|
-
const savedVersion = await AsyncStorage.getItem('DB_VERSION');
|
|
11
|
-
//if (savedVersion === null && Platform.OS === 'android') savedVersion = String(DB_VERSION)
|
|
12
|
-
console.log('version:', currentVersion);
|
|
13
|
-
console.log('AsyncStorage (DB_VERSION):', savedVersion);
|
|
14
|
-
if (savedVersion !== String(currentVersion))
|
|
15
|
-
await reset({ currentVersion });
|
|
16
|
-
// Inicia la base de datos
|
|
17
|
-
dbRef.current = await SQLite.openDatabaseAsync('app.db');
|
|
18
|
-
if (!await _hasTables()) {
|
|
19
|
-
const created = await _createTables({ listQueries: listQueriesTables, queryOnCreate: queryOnCreateTables });
|
|
20
|
-
if (!created)
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
else if (queryOnExists)
|
|
24
|
-
await _executeSQL({ query: queryOnExists });
|
|
25
|
-
// En la web se usa memoria temporal (RAM) para que la view_rutas funcione
|
|
26
|
-
if (Platform.OS === 'web')
|
|
27
|
-
await dbRef.current.execAsync('PRAGMA temp_store = MEMORY');
|
|
28
|
-
await dbRef.current.execAsync('PRAGMA journal_mode = WAL');
|
|
29
|
-
return true;
|
|
30
|
-
};
|
|
31
|
-
export default dbRef;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import dbRef from './init';
|
|
2
|
-
const queryLocal = async ({ query, params = [], onlyExecute = false }) => {
|
|
3
|
-
if (!dbRef.current)
|
|
4
|
-
throw new Error('Database not initialized');
|
|
5
|
-
try {
|
|
6
|
-
if (!onlyExecute)
|
|
7
|
-
return await (dbRef.current.getAllAsync(query, params));
|
|
8
|
-
await dbRef.current.execAsync(query);
|
|
9
|
-
}
|
|
10
|
-
catch (e) {
|
|
11
|
-
console.error('Error queryLocal:', e, query.slice(0, 100), params);
|
|
12
|
-
}
|
|
13
|
-
return [];
|
|
14
|
-
};
|
|
15
|
-
export default queryLocal;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const reset: ({ currentVersion }: {
|
|
2
|
-
currentVersion?: number;
|
|
3
|
-
}) => Promise<void>;
|
|
4
|
-
export declare const _hasTables: () => Promise<boolean>;
|
|
5
|
-
export declare const _createTables: ({ listQueries, queryOnCreate }: {
|
|
6
|
-
listQueries: string[];
|
|
7
|
-
queryOnCreate?: string;
|
|
8
|
-
}) => Promise<boolean>;
|
|
9
|
-
export declare const _executeSQL: ({ query }: {
|
|
10
|
-
query: string;
|
|
11
|
-
}) => Promise<void>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
2
|
-
import * as SQLite from 'expo-sqlite';
|
|
3
|
-
import dbRef from './init';
|
|
4
|
-
export const reset = async ({ currentVersion }) => {
|
|
5
|
-
console.log('Reiniciando base de datos...');
|
|
6
|
-
try {
|
|
7
|
-
await SQLite.deleteDatabaseAsync('app.db');
|
|
8
|
-
}
|
|
9
|
-
catch (error) {
|
|
10
|
-
if (error instanceof Error && error.message.includes('currently open')) {
|
|
11
|
-
dbRef.current = await SQLite.openDatabaseAsync('app.db');
|
|
12
|
-
await dbRef.current.closeAsync();
|
|
13
|
-
dbRef.current.closeSync();
|
|
14
|
-
await SQLite.deleteDatabaseAsync('app.db');
|
|
15
|
-
}
|
|
16
|
-
else
|
|
17
|
-
console.error('Error eliminando base de datos:', error);
|
|
18
|
-
}
|
|
19
|
-
if (currentVersion)
|
|
20
|
-
await AsyncStorage.setItem('DB_VERSION', String(currentVersion));
|
|
21
|
-
};
|
|
22
|
-
export const _hasTables = async () => {
|
|
23
|
-
if (!dbRef.current)
|
|
24
|
-
return false;
|
|
25
|
-
try {
|
|
26
|
-
const listTables = await dbRef.current.getAllAsync("SELECT name FROM sqlite_master WHERE type='table'");
|
|
27
|
-
return listTables.length > 0;
|
|
28
|
-
}
|
|
29
|
-
catch (e) {
|
|
30
|
-
console.error('Error verificando DB:', e);
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
export const _createTables = async ({ listQueries, queryOnCreate }) => {
|
|
35
|
-
console.log('Creando tablas...');
|
|
36
|
-
for (const query of listQueries) {
|
|
37
|
-
// Ejecuta
|
|
38
|
-
try {
|
|
39
|
-
await _executeSQL({ query });
|
|
40
|
-
}
|
|
41
|
-
catch (e) {
|
|
42
|
-
console.error('Error creando tablas:', e);
|
|
43
|
-
await AsyncStorage.removeItem('DB_VERSION');
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (queryOnCreate)
|
|
48
|
-
await _executeSQL({ query: queryOnCreate });
|
|
49
|
-
return true;
|
|
50
|
-
};
|
|
51
|
-
export const _executeSQL = async ({ query }) => {
|
|
52
|
-
const splitStr = query.includes('END;') ? 'END;' : ';';
|
|
53
|
-
const statements = query.split(splitStr).map(s => s.trim()).filter(Boolean);
|
|
54
|
-
for (const statement of statements) {
|
|
55
|
-
if (!dbRef.current)
|
|
56
|
-
return;
|
|
57
|
-
const query = `${statement}\n${splitStr}`;
|
|
58
|
-
await dbRef.current.execAsync(query);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { expoEnv } from '../../../../../libs/constants/consts';
|
|
2
|
-
import * as utils from '../../utils';
|
|
3
|
-
const { SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY } = expoEnv;
|
|
4
|
-
if (!SUPABASE_URL)
|
|
5
|
-
throw new Error('SUPABASE_URL is not set');
|
|
6
|
-
if (!SUPABASE_SERVICE_ROLE_KEY)
|
|
7
|
-
throw new Error('SUPABASE_SERVICE_ROLE_KEY is not set');
|
|
8
|
-
const supabase = utils.createClient({
|
|
9
|
-
url: SUPABASE_URL,
|
|
10
|
-
key: SUPABASE_SERVICE_ROLE_KEY,
|
|
11
|
-
options: {
|
|
12
|
-
auth: {
|
|
13
|
-
autoRefreshToken: false,
|
|
14
|
-
persistSession: true,
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export default supabase;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const supabase: {
|
|
2
|
-
getUserById: (uid: string) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
3
|
-
updateUser: (uid: string, attributes: import("../../utils/types").UpdateUserParams["attributes"]) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
4
|
-
deleteUser: (uid: string) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
5
|
-
newUser: (attributes: import("../../utils/types").NewUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
6
|
-
client: import("@supabase/supabase-js").SupabaseClient<any, "public", "public", any, any>;
|
|
7
|
-
};
|
|
8
|
-
export default supabase;
|
|
9
|
-
export type SupabaseAdmin = typeof supabase;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as utils from '../../utils';
|
|
2
|
-
export declare const getUserById: (uid: string) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
3
|
-
export declare const updateUser: (uid: string, attributes: utils.types.UpdateUserParams["attributes"]) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
4
|
-
export declare const deleteUser: (uid: string) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
5
|
-
export declare const newUser: (attributes: utils.types.NewUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import supabase from './config';
|
|
2
|
-
import * as utils from '../../utils';
|
|
3
|
-
export const getUserById = async (uid) => (await utils.getUserById(supabase, { uid }));
|
|
4
|
-
export const updateUser = async (uid, attributes) => (await utils.updateUser(supabase, { uid, attributes }));
|
|
5
|
-
export const deleteUser = async (uid) => (await utils.deleteUser(supabase, { uid }));
|
|
6
|
-
export const newUser = async (attributes) => (await utils.newUser(supabase, attributes));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { expoEnv } from '../../../../../libs/constants/consts';
|
|
2
|
-
import * as utils from '../../utils';
|
|
3
|
-
import { Platform } from 'react-native';
|
|
4
|
-
import 'react-native-url-polyfill/auto';
|
|
5
|
-
import { Buffer } from 'buffer';
|
|
6
|
-
const globalScope = globalThis;
|
|
7
|
-
globalScope.Buffer = globalScope.Buffer ?? Buffer;
|
|
8
|
-
// AsyncStorage
|
|
9
|
-
const isWeb = Platform.OS === 'web';
|
|
10
|
-
const asyncStorage = !isWeb
|
|
11
|
-
? require('@react-native-async-storage/async-storage')?.default
|
|
12
|
-
: undefined;
|
|
13
|
-
// Configuración
|
|
14
|
-
const { SUPABASE_URL, SUPABASE_KEY } = expoEnv;
|
|
15
|
-
if (!SUPABASE_URL)
|
|
16
|
-
throw new Error('SUPABASE_URL is not set');
|
|
17
|
-
if (!SUPABASE_KEY)
|
|
18
|
-
throw new Error('SUPABASE_KEY is not set');
|
|
19
|
-
const supabase = utils.createClient({
|
|
20
|
-
url: SUPABASE_URL,
|
|
21
|
-
key: SUPABASE_KEY,
|
|
22
|
-
options: {
|
|
23
|
-
auth: {
|
|
24
|
-
autoRefreshToken: false,
|
|
25
|
-
persistSession: true,
|
|
26
|
-
detectSessionInUrl: false,
|
|
27
|
-
storage: asyncStorage
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export default supabase;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const supabase: {
|
|
2
|
-
logIn: ({ email, password }?: {
|
|
3
|
-
email?: string;
|
|
4
|
-
password?: string;
|
|
5
|
-
}) => Promise<import("@supabase/auth-js").AuthTokenResponsePassword>;
|
|
6
|
-
logOut: () => Promise<{
|
|
7
|
-
error: import("@supabase/auth-js").AuthError | null;
|
|
8
|
-
}>;
|
|
9
|
-
getUser: () => Promise<import("@supabase/auth-js").User | undefined>;
|
|
10
|
-
execFunction: (params: import("../../utils/types").ExecFunctionParams) => Promise<any>;
|
|
11
|
-
signUp: (params: import("../../utils/types").SignUpParams) => Promise<import("@supabase/auth-js").AuthResponse>;
|
|
12
|
-
updateMyUser: (params: import("../../utils/types").UpdateMyUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
13
|
-
client: import("@supabase/supabase-js").SupabaseClient<any, "public", "public", any, any>;
|
|
14
|
-
};
|
|
15
|
-
export default supabase;
|
|
16
|
-
export type SupabaseApp = typeof supabase;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as utils from '../../utils';
|
|
2
|
-
export declare const logIn: ({ email, password }?: {
|
|
3
|
-
email?: string;
|
|
4
|
-
password?: string;
|
|
5
|
-
}) => Promise<import("@supabase/auth-js").AuthTokenResponsePassword>;
|
|
6
|
-
export declare const logOut: () => Promise<{
|
|
7
|
-
error: import("@supabase/auth-js").AuthError | null;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const getUser: () => Promise<import("@supabase/auth-js").User | undefined>;
|
|
10
|
-
export declare const execFunction: (params: utils.types.ExecFunctionParams) => Promise<any>;
|
|
11
|
-
export declare const signUp: (params: utils.types.SignUpParams) => Promise<import("@supabase/auth-js").AuthResponse>;
|
|
12
|
-
export declare const updateMyUser: (params: utils.types.UpdateMyUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import supabase from './config';
|
|
2
|
-
import * as utils from '../../utils';
|
|
3
|
-
import { expoEnv } from '../../../../../libs/constants/consts';
|
|
4
|
-
const { SUPABASE_USERNAME_LOGIN, SUPABASE_PASSWORD_LOGIN } = expoEnv;
|
|
5
|
-
export const logIn = async ({ email = SUPABASE_USERNAME_LOGIN, password = SUPABASE_PASSWORD_LOGIN } = {}) => (await utils.logIn(supabase, { email, password }));
|
|
6
|
-
export const logOut = async () => await utils.logOut(supabase);
|
|
7
|
-
export const getUser = async () => await utils.getUser(supabase);
|
|
8
|
-
export const execFunction = async (params) => (await utils.execFunction(supabase, params));
|
|
9
|
-
export const signUp = async (params) => (await utils.signUp(supabase, params));
|
|
10
|
-
export const updateMyUser = async (params) => (await utils.updateMyUser(supabase, params));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SupabaseClient } from '@supabase/supabase-js';
|
|
2
|
-
import type { CreateClientParams, SignUpParams, ExecFunctionParams, LogInParams, UpdateUserParams, NewUserParams, UpdateMyUserParams } from './types';
|
|
3
|
-
export * as types from './types';
|
|
4
|
-
export declare const logIn: (supabase: SupabaseClient, params: LogInParams) => Promise<import("@supabase/auth-js").AuthTokenResponsePassword>;
|
|
5
|
-
export declare const logOut: (supabase: SupabaseClient) => Promise<{
|
|
6
|
-
error: import("@supabase/auth-js").AuthError | null;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const getUser: (supabase: SupabaseClient) => Promise<import("@supabase/auth-js").User | undefined>;
|
|
9
|
-
export declare const createClient: ({ url, key, options }: CreateClientParams) => SupabaseClient<any, "public", "public", any, any>;
|
|
10
|
-
export declare const execFunction: (supabase: SupabaseClient, { schema, name, args }: ExecFunctionParams) => Promise<any | null>;
|
|
11
|
-
export declare const updateMyUser: (supabase: SupabaseClient, attributes: UpdateMyUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
12
|
-
export declare const getUserById: (supabase: SupabaseClient, { uid }: {
|
|
13
|
-
uid: string;
|
|
14
|
-
}) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
15
|
-
export declare const updateUser: (supabase: SupabaseClient, { uid, attributes }: UpdateUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
16
|
-
export declare const deleteUser: (supabase: SupabaseClient, { uid }: {
|
|
17
|
-
uid: string;
|
|
18
|
-
}) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
19
|
-
export declare const signUp: (supabase: SupabaseClient, credentials: SignUpParams) => Promise<import("@supabase/auth-js").AuthResponse>;
|
|
20
|
-
export declare const newUser: (supabase: SupabaseClient, attributes: NewUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createClient as createSupabaseClient } from '@supabase/supabase-js';
|
|
2
|
-
export * as types from './types';
|
|
3
|
-
export const logIn = async (supabase, params) => (await supabase.auth.signInWithPassword(params));
|
|
4
|
-
export const logOut = async (supabase) => (await supabase.auth.signOut());
|
|
5
|
-
export const getUser = async (supabase) => {
|
|
6
|
-
const { data } = await supabase.auth.getSession();
|
|
7
|
-
return data?.session?.user;
|
|
8
|
-
};
|
|
9
|
-
export const createClient = ({ url, key, options }) => (createSupabaseClient(url, key, options));
|
|
10
|
-
export const execFunction = async (supabase, { schema = 'app', name, args }) => {
|
|
11
|
-
const { data, error } = await supabase.schema(schema).rpc(name, args);
|
|
12
|
-
if (error) {
|
|
13
|
-
console.error(name, error);
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
return data;
|
|
17
|
-
};
|
|
18
|
-
export const updateMyUser = async (supabase, attributes) => (await supabase.auth.updateUser(attributes));
|
|
19
|
-
export const getUserById = async (supabase, { uid }) => (await supabase.auth.admin.getUserById(uid));
|
|
20
|
-
export const updateUser = async (supabase, { uid, attributes }) => (await supabase.auth.admin.updateUserById(uid, attributes));
|
|
21
|
-
export const deleteUser = async (supabase, { uid }) => (await supabase.auth.admin.deleteUser(uid));
|
|
22
|
-
export const signUp = async (supabase, credentials) => (await supabase.auth.signUp(credentials));
|
|
23
|
-
export const newUser = async (supabase, attributes) => (await supabase.auth.admin.createUser(attributes));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AdminUserAttributes, SignUpWithPasswordCredentials, SupabaseClientOptions, UserAttributes } from '@supabase/supabase-js';
|
|
2
|
-
export type LogInParams = {
|
|
3
|
-
email: string;
|
|
4
|
-
password: string;
|
|
5
|
-
};
|
|
6
|
-
export type CreateClientParams = {
|
|
7
|
-
url: string;
|
|
8
|
-
key: string;
|
|
9
|
-
options?: SupabaseClientOptions<'public'>;
|
|
10
|
-
};
|
|
11
|
-
export type ExecFunctionParams = {
|
|
12
|
-
schema?: string;
|
|
13
|
-
name: string;
|
|
14
|
-
args?: Record<string, any>;
|
|
15
|
-
};
|
|
16
|
-
export type UpdateMyUserParams = UserAttributes;
|
|
17
|
-
export type UpdateUserParams = {
|
|
18
|
-
uid: string;
|
|
19
|
-
attributes: AdminUserAttributes;
|
|
20
|
-
};
|
|
21
|
-
export type SignUpParams = SignUpWithPasswordCredentials;
|
|
22
|
-
export type NewUserParams = AdminUserAttributes;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { default as NavigationLink } from './src/components/NavigationLink';
|
|
2
|
-
export { default as Host } from './src/components/Host';
|
|
3
|
-
export { default as Icon } from './src/components/Icon';
|
|
4
|
-
export { default as IconSection } from './src/components/IconSection';
|
|
5
|
-
export { default as List } from './src/components/List';
|
|
6
|
-
export { default as Text } from './src/components/Text';
|
|
7
|
-
export { default as Picker } from './src/components/Picker';
|
|
8
|
-
export { default as TextSubtitle } from './src/components/TextSubtitle';
|
|
9
|
-
export { default as Dialog } from './src/components/Dialog';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { default as NavigationLink } from './src/components/NavigationLink';
|
|
2
|
-
export { default as Host } from './src/components/Host';
|
|
3
|
-
export { default as Icon } from './src/components/Icon';
|
|
4
|
-
export { default as IconSection } from './src/components/IconSection';
|
|
5
|
-
export { default as List } from './src/components/List';
|
|
6
|
-
export { default as Text } from './src/components/Text';
|
|
7
|
-
export { default as Picker } from './src/components/Picker';
|
|
8
|
-
export { default as TextSubtitle } from './src/components/TextSubtitle';
|
|
9
|
-
export { default as Dialog } from './src/components/Dialog';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ConfirmationDialog, Button, Text } from '@expo/ui/swift-ui';
|
|
2
|
-
import React, { memo, useState, useCallback } from 'react';
|
|
3
|
-
export default memo(({ children, buttonTriggerProps, title, message, }) => {
|
|
4
|
-
const [isPresented, setIsPresented] = useState(false);
|
|
5
|
-
const onPress = useCallback(() => {
|
|
6
|
-
buttonTriggerProps?.onPress?.();
|
|
7
|
-
setIsPresented(true);
|
|
8
|
-
}, []);
|
|
9
|
-
return (<ConfirmationDialog title={title ?? ''} isPresented={isPresented} onIsPresentedChange={setIsPresented} titleVisibility={title ? 'visible' : 'hidden'}>
|
|
10
|
-
<ConfirmationDialog.Trigger>
|
|
11
|
-
<Button {...buttonTriggerProps} onPress={onPress}/>
|
|
12
|
-
</ConfirmationDialog.Trigger>
|
|
13
|
-
|
|
14
|
-
<ConfirmationDialog.Actions>
|
|
15
|
-
{children}
|
|
16
|
-
</ConfirmationDialog.Actions>
|
|
17
|
-
|
|
18
|
-
{message && <ConfirmationDialog.Message>
|
|
19
|
-
<Text>{message}</Text>
|
|
20
|
-
</ConfirmationDialog.Message>}
|
|
21
|
-
</ConfirmationDialog>);
|
|
22
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from "@expo/ui/swift-ui";
|
|
2
|
-
type Props = {
|
|
3
|
-
/**
|
|
4
|
-
The buttons to be displayed in the dialog.
|
|
5
|
-
@example <Button label="Delete" role="destructive" onPress={() => console.log('Delete')} />
|
|
6
|
-
*/
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
The props to be passed to the button that triggers the dialog.
|
|
10
|
-
*/
|
|
11
|
-
buttonTriggerProps?: ButtonProps;
|
|
12
|
-
/**
|
|
13
|
-
The title of the dialog.
|
|
14
|
-
*/
|
|
15
|
-
title?: string;
|
|
16
|
-
/**
|
|
17
|
-
The message to be displayed in the dialog.
|
|
18
|
-
*/
|
|
19
|
-
message?: string;
|
|
20
|
-
};
|
|
21
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LabelProps } from '@expo/ui/swift-ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type Props = Omit<LabelProps, 'title'> & {
|
|
4
|
-
/**
|
|
5
|
-
Children to display on the right side of the label.
|
|
6
|
-
*/
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: React.MemoExoticComponent<({ children, ...labelProps }: Props) => React.JSX.Element>;
|
|
10
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '@expo/ui/swift-ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Props as GradientProps } from '../../../../../libs/components/Gradient';
|
|
4
|
-
type Props = {
|
|
5
|
-
/**
|
|
6
|
-
The title of the icon section.
|
|
7
|
-
*/
|
|
8
|
-
title?: string;
|
|
9
|
-
/**
|
|
10
|
-
The subtitle of the icon section.
|
|
11
|
-
*/
|
|
12
|
-
subtitle?: string;
|
|
13
|
-
/**
|
|
14
|
-
If it is given, displays a gradient.
|
|
15
|
-
*/
|
|
16
|
-
gradientProps?: Omit<GradientProps, 'type'> & {
|
|
17
|
-
type: 'extraLarge' | 'extraExtraLarge';
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
If it is given, displays a button.
|
|
21
|
-
*/
|
|
22
|
-
buttonProps?: ButtonProps;
|
|
23
|
-
};
|
|
24
|
-
declare const _default: React.MemoExoticComponent<({ title, subtitle, gradientProps, buttonProps, }: Props) => React.JSX.Element>;
|
|
25
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Button, VStack } from '@expo/ui/swift-ui';
|
|
2
|
-
import { frame, font, buttonStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
-
import React, { memo } from 'react';
|
|
4
|
-
import Gradient from '../../../../../libs/components/Gradient';
|
|
5
|
-
import Text from '../Text';
|
|
6
|
-
import Section from './Section';
|
|
7
|
-
export default memo(({ title, subtitle, gradientProps, buttonProps, }) => {
|
|
8
|
-
const spacing = gradientProps?.type === 'extraLarge' ? 10 : 20;
|
|
9
|
-
return (<Section spacing={spacing}>
|
|
10
|
-
{gradientProps && (<Gradient {...gradientProps}/>)}
|
|
11
|
-
|
|
12
|
-
{(title || subtitle) && (subtitle ? (<VStack modifiers={[frame({ alignment: 'center' })]} spacing={2}>
|
|
13
|
-
<Title title={title}/>
|
|
14
|
-
<Text secondary>
|
|
15
|
-
{subtitle}
|
|
16
|
-
</Text>
|
|
17
|
-
</VStack>) : (<Title title={title}/>))}
|
|
18
|
-
|
|
19
|
-
{buttonProps && (<Button {...buttonProps} modifiers={[buttonStyle('bordered'), ...(buttonProps?.modifiers || [])]}/>)}
|
|
20
|
-
</Section>);
|
|
21
|
-
});
|
|
22
|
-
const Title = memo(({ title }) => {
|
|
23
|
-
return (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
|
|
24
|
-
{title}
|
|
25
|
-
</Text>);
|
|
26
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { VStackProps } from '@expo/ui/swift-ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type Props = VStackProps & {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ children, modifiers, ...vStackProps }: Props) => React.JSX.Element>;
|
|
7
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Section, VStack } from '@expo/ui/swift-ui';
|
|
2
|
-
import { containerRelativeFrame, listRowBackground, frame, listRowInsets } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
-
import React, { memo, useMemo } from 'react';
|
|
4
|
-
export default memo(({ children, modifiers, ...vStackProps }) => {
|
|
5
|
-
const _modifiers = useMemo(() => [
|
|
6
|
-
...(modifiers ?? []),
|
|
7
|
-
frame({ alignment: 'center' }),
|
|
8
|
-
containerRelativeFrame({ axes: 'horizontal' }),
|
|
9
|
-
listRowBackground('transparent'),
|
|
10
|
-
listRowInsets({ bottom: 0.1 })
|
|
11
|
-
], [modifiers]);
|
|
12
|
-
return (<Section>
|
|
13
|
-
<VStack spacing={20} modifiers={_modifiers} {...vStackProps}>
|
|
14
|
-
{children}
|
|
15
|
-
</VStack>
|
|
16
|
-
</Section>);
|
|
17
|
-
});
|