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,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Below are the colors that are used in the app. The colors are defined in the light and dark mode.
|
|
3
|
-
* There are many other ways to style your app. For example, [Nativewind](https://www.nativewind.dev/), [Tamagui](https://tamagui.dev/), [unistyles](https://reactnativeunistyles.vercel.app), etc.
|
|
4
|
-
*/
|
|
5
|
-
const tintColorLight = '#0a7ea4';
|
|
6
|
-
const tintColorDark = '#fff';
|
|
7
|
-
const Colors = {
|
|
8
|
-
light: {
|
|
9
|
-
text: 'black',
|
|
10
|
-
textInvert: 'white',
|
|
11
|
-
background: '#fff',
|
|
12
|
-
tint: tintColorLight,
|
|
13
|
-
icon: 'hsl(206, 6.30%, 43.50%)',
|
|
14
|
-
tabIconDefault: '#687076',
|
|
15
|
-
tabIconSelected: tintColorLight,
|
|
16
|
-
focusColor: '#0076df',
|
|
17
|
-
text2: 'hsl(0, 0%, 10%)',
|
|
18
|
-
borderColorError: '#e30000',
|
|
19
|
-
backgroundColor2Error: '#fff2f4',
|
|
20
|
-
backgroundColor: 'white',
|
|
21
|
-
backgroundColor2: 'white',
|
|
22
|
-
description: 'hsl(240, 1.70%, 53.30%)',
|
|
23
|
-
borderColor: 'rgba(150, 150, 150, 1)',
|
|
24
|
-
borderColor9: 'rgba(150, 150, 150, 0.9)',
|
|
25
|
-
borderColor8: 'rgba(150, 150, 150, 0.8)',
|
|
26
|
-
borderColor7: 'rgba(150, 150, 150, 0.7)',
|
|
27
|
-
borderColor6: 'rgba(150, 150, 150, 0.6)',
|
|
28
|
-
borderColor5: 'rgba(150, 150, 150, 0.5)',
|
|
29
|
-
borderColor4: 'rgba(150, 150, 150, 0.4)',
|
|
30
|
-
borderColor3: 'rgba(150, 150, 150, 0.3)',
|
|
31
|
-
borderColor2: 'rgba(150, 150, 150, 0.2)',
|
|
32
|
-
borderColor1: 'rgba(150, 150, 150, 0.1)',
|
|
33
|
-
backgroundColor3: '#f1eff5',
|
|
34
|
-
backgroundColorContactos: 'white',
|
|
35
|
-
backgroundColorModal: 'hsl(252, 22%, 95%)',
|
|
36
|
-
backgroundColorModal2: 'white',
|
|
37
|
-
FiltroColorSeleccionado: 'hsl(240, 1.70%, 23.10%)',
|
|
38
|
-
FiltroIconoSeleccionado: 'white',
|
|
39
|
-
FiltroColorNoSeleccionado: 'hsl(0, 0.00%, 91.40%)',
|
|
40
|
-
FiltroIconoNoSeleccionado: '#7d7d7f',
|
|
41
|
-
FiltroColorMensaje: 'hsl(252, 22%, 95%)',
|
|
42
|
-
SearchBar: '#f4f4f4',
|
|
43
|
-
SearchBarText: '#86868a',
|
|
44
|
-
text2Libretas: 'hsl(240, 1%, 55%)',
|
|
45
|
-
contLibretas: 'white',
|
|
46
|
-
contTable: 'white',
|
|
47
|
-
contTableModal: 'white',
|
|
48
|
-
contTableModal2: 'hsl(252, 22%, 95%)',
|
|
49
|
-
contTableLight: 'hsl(252, 22%, 95%)',
|
|
50
|
-
contLibretasPressed: 'hsl(252, 5%, 81%)',
|
|
51
|
-
skeletonGradientStart: 'hsl(0, 0.00%, 100%)',
|
|
52
|
-
skeletonGradientEnd: 'hsl(0, 0.00%, 91.40%)',
|
|
53
|
-
skeletonGradientStart2: 'hsl(0, 0.00%, 80%)',
|
|
54
|
-
skeletonGradientEnd2: 'hsl(0, 0.00%, 70%)',
|
|
55
|
-
pildoraVacia: 'hsl(252, 22%, 95%)',
|
|
56
|
-
contTableLightBlue: 'hsl(190, 79%, 94%)',
|
|
57
|
-
pressableLightBlue: 'hsl(189, 82%, 89%)',
|
|
58
|
-
contTableOrange: 'hsl(37, 76.50%, 90%)',
|
|
59
|
-
pressableOrange: 'hsl(36, 80%, 85%)'
|
|
60
|
-
},
|
|
61
|
-
dark: {
|
|
62
|
-
text: 'white',
|
|
63
|
-
textInvert: 'black',
|
|
64
|
-
background: '#151718',
|
|
65
|
-
tint: tintColorDark,
|
|
66
|
-
icon: '#9BA1A6',
|
|
67
|
-
tabIconDefault: '#9BA1A6',
|
|
68
|
-
tabIconSelected: tintColorDark,
|
|
69
|
-
focusColor: '#0076df',
|
|
70
|
-
text2: 'hsl(0, 0%, 90%)',
|
|
71
|
-
borderColorError: '#ff3037',
|
|
72
|
-
backgroundColor2Error: '#300',
|
|
73
|
-
backgroundColor: 'hsl(240, 3.40%, 11.40%)',
|
|
74
|
-
backgroundColor2: 'hsl(240, 2.60%, 14.90%)',
|
|
75
|
-
description: 'hsl(228, 2.70%, 63.30%)',
|
|
76
|
-
borderColor: 'rgba(150, 150, 150, 1)',
|
|
77
|
-
borderColor9: 'rgba(150, 150, 150, 0.9)',
|
|
78
|
-
borderColor8: 'rgba(150, 150, 150, 0.8)',
|
|
79
|
-
borderColor7: 'rgba(150, 150, 150, 0.7)',
|
|
80
|
-
borderColor6: 'rgba(150, 150, 150, 0.6)',
|
|
81
|
-
borderColor5: 'rgba(150, 150, 150, 0.5)',
|
|
82
|
-
borderColor4: 'rgba(150, 150, 150, 0.4)',
|
|
83
|
-
borderColor3: 'rgba(150, 150, 150, 0.3)',
|
|
84
|
-
borderColor2: 'rgba(150, 150, 150, 0.2)',
|
|
85
|
-
borderColor1: 'rgba(150, 150, 150, 0.1)',
|
|
86
|
-
backgroundColor3: '#000000',
|
|
87
|
-
backgroundColorContactos: 'hsl(0, 0%, 0%)',
|
|
88
|
-
backgroundColorModal: 'hsl(240, 3%, 11%)',
|
|
89
|
-
backgroundColorModal2: 'hsl(240, 3%, 11%)',
|
|
90
|
-
FiltroColorSeleccionado: 'white',
|
|
91
|
-
FiltroIconoSeleccionado: 'hsl(240, 3.40%, 11.40%)',
|
|
92
|
-
FiltroColorNoSeleccionado: 'hsl(0, 0.00%, 14.90%)',
|
|
93
|
-
FiltroIconoNoSeleccionado: 'hsl(228, 2.70%, 63.30%)',
|
|
94
|
-
FiltroColorMensaje: 'hsl(0, 0.00%, 14.90%)',
|
|
95
|
-
SearchBar: '#f4f4f4',
|
|
96
|
-
SearchBarText: '#86868a',
|
|
97
|
-
text2Libretas: 'hsl(252, 3%, 62%)',
|
|
98
|
-
contLibretas: 'hsl(240, 3%, 11%)',
|
|
99
|
-
contTable: 'hsl(240, 3%, 11%)',
|
|
100
|
-
contTableModal: 'hsl(240, 2%, 18%)',
|
|
101
|
-
contTableModal2: 'hsl(240, 2%, 18%)',
|
|
102
|
-
contTableLight: 'hsl(240, 2%, 18%)',
|
|
103
|
-
contLibretasPressed: 'hsl(240, 2%, 22%)',
|
|
104
|
-
skeletonGradientStart: 'hsl(0, 0.00%, 14.90%)',
|
|
105
|
-
skeletonGradientEnd: 'hsl(0, 0.00%, 24.90%)',
|
|
106
|
-
skeletonGradientStart2: 'hsl(0, 0.00%, 14.90%)',
|
|
107
|
-
skeletonGradientEnd2: 'hsl(0, 0.00%, 24.90%)',
|
|
108
|
-
pildoraVacia: 'hsl(240, 3%, 11%)',
|
|
109
|
-
contTableLightBlue: 'hsl(195, 62%, 13%)',
|
|
110
|
-
pressableLightBlue: 'hsl(193, 63%, 18%)',
|
|
111
|
-
contTableOrange: 'hsl(38, 63.60%, 17.30%)',
|
|
112
|
-
pressableOrange: 'hsl(36, 64.60%, 22.30%)'
|
|
113
|
-
},
|
|
114
|
-
perfil: {
|
|
115
|
-
default: { dark: '#7580ba', light: '#b1c6e4' },
|
|
116
|
-
rojo: { dark: '#b12309', light: '#ff856a' },
|
|
117
|
-
amarillo: { dark: '#c97c00', light: '#ffe535' },
|
|
118
|
-
azul_oscuro: { dark: '#0f236d', light: '#6a7ec9' },
|
|
119
|
-
naranja: { dark: '#9c4d00', light: '#ffba53' },
|
|
120
|
-
marron_claro: { dark: '#75582e', light: '#e4c79d' },
|
|
121
|
-
verde_agua: { dark: '#105951', light: '#80c3ba' },
|
|
122
|
-
marron_oscuro: { dark: '#4f2a00', light: '#aa855a' },
|
|
123
|
-
rosa: { dark: '#892466', light: '#f08bcc' },
|
|
124
|
-
azul_claro: { dark: '#334696', light: '#9eb1ff' },
|
|
125
|
-
violeta: { dark: '#482d76', light: '#ac90d9' },
|
|
126
|
-
celeste_oscuro: { dark: '#005095', light: '#6dbfff' },
|
|
127
|
-
gris: { dark: '#445255', light: '#b0bec1' },
|
|
128
|
-
celeste_claro: { dark: '#237286', light: '#98e7fb' },
|
|
129
|
-
verde_oscuro: { dark: '#215b1d', light: '#8ac487' },
|
|
130
|
-
verde_claro: { dark: '#4b5f13', light: '#bbce82' }
|
|
131
|
-
},
|
|
132
|
-
filtros: {
|
|
133
|
-
azul: 'hsl(208, 75.80%, 57.80%)',
|
|
134
|
-
verde: 'hsl(140, 39.70%, 46.90%)',
|
|
135
|
-
violeta: 'hsl(243, 31.80%, 58.60%)',
|
|
136
|
-
rosa: 'hsl(337, 61.50%, 57.30%)',
|
|
137
|
-
naranja: ' hsl(28, 72.40%, 56.10%)',
|
|
138
|
-
amarillo: 'hsl(48, 64.30%, 45.70%)',
|
|
139
|
-
celeste: 'hsl(190, 65.20%, 53.40%)',
|
|
140
|
-
rojo: 'hsl(3, 97.70%, 65.30%)',
|
|
141
|
-
light: {
|
|
142
|
-
azul_bg: 'hsl(208, 75.80%, 95%)',
|
|
143
|
-
verde_bg: 'hsl(140, 33%, 89%)',
|
|
144
|
-
violeta_bg: 'hsl(244, 33%, 92%)',
|
|
145
|
-
rosa_bg: 'hsl(340, 71%, 92%)',
|
|
146
|
-
naranja_bg: 'hsl(28, 72.40%, 95%)',
|
|
147
|
-
amarillo_bg: 'hsl(48, 64.30%, 95%)',
|
|
148
|
-
celeste_bg: 'hsl(190, 65.20%, 95%)',
|
|
149
|
-
},
|
|
150
|
-
dark: {
|
|
151
|
-
azul_bg: 'hsl(208, 75.80%, 10%)',
|
|
152
|
-
verde_bg: 'hsl(144, 45%, 9%)',
|
|
153
|
-
violeta_bg: 'hsl(240, 21%, 11%)',
|
|
154
|
-
rosa_bg: 'hsl(339, 45%, 11%)',
|
|
155
|
-
naranja_bg: 'hsl(28, 72.40%, 10%)',
|
|
156
|
-
amarillo_bg: 'hsl(48, 64.30%, 10%)',
|
|
157
|
-
celeste_bg: 'hsl(190, 65.20%, 10%)',
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
especiales: {
|
|
161
|
-
azul: 'hsl(207, 100%, 50%)',
|
|
162
|
-
rojo: 'hsl(358, 100%, 62%)',
|
|
163
|
-
rosa_claro: 'hsl(329, 86.5%, 74.4%)',
|
|
164
|
-
verde: 'hsl(135, 58.70%, 49.40%)',
|
|
165
|
-
verde_claro: 'hsl(132, 65%, 64%)',
|
|
166
|
-
celeste: 'hsl(179, 100%, 76%)',
|
|
167
|
-
azul_pressed: 'hsl(197, 100%, 50%)',
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
export default Colors;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NativeStackNavigationOptions } from "expo-router/build/react-navigation/native-stack/types";
|
|
2
|
-
export declare const deviceTier: "low" | "medium" | "high";
|
|
3
|
-
export declare const isLowTier: boolean;
|
|
4
|
-
type ExpoEnv = {
|
|
5
|
-
SUPABASE_USERNAME_LOGIN: string;
|
|
6
|
-
SUPABASE_PASSWORD_LOGIN: string;
|
|
7
|
-
SUPABASE_URL: string;
|
|
8
|
-
SUPABASE_KEY: string;
|
|
9
|
-
SUPABASE_SERVICE_ROLE_KEY: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const expoEnv: Partial<ExpoEnv>;
|
|
12
|
-
export declare const screenOptions: NativeStackNavigationOptions;
|
|
13
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Platform } from 'react-native';
|
|
2
|
-
import Utils from './utils';
|
|
3
|
-
import Constants from 'expo-constants';
|
|
4
|
-
export const deviceTier = Utils._getDeviceTier();
|
|
5
|
-
export const isLowTier = Platform.OS === 'android' && deviceTier === 'low';
|
|
6
|
-
const getExpoEnv = () => {
|
|
7
|
-
const expoEnv = Constants.expoConfig?.extra || {};
|
|
8
|
-
return {
|
|
9
|
-
SUPABASE_USERNAME_LOGIN: expoEnv.SUPABASE_USERNAME_LOGIN || process.env.SUPABASE_USERNAME_LOGIN,
|
|
10
|
-
SUPABASE_PASSWORD_LOGIN: expoEnv.SUPABASE_PASSWORD_LOGIN || process.env.SUPABASE_PASSWORD_LOGIN,
|
|
11
|
-
SUPABASE_URL: expoEnv.SUPABASE_URL || process.env.SUPABASE_URL,
|
|
12
|
-
SUPABASE_KEY: expoEnv.SUPABASE_KEY || process.env.SUPABASE_KEY,
|
|
13
|
-
SUPABASE_SERVICE_ROLE_KEY: expoEnv.SUPABASE_SERVICE_ROLE_KEY || process.env.SUPABASE_SERVICE_ROLE_KEY,
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export const expoEnv = getExpoEnv();
|
|
17
|
-
export const screenOptions = {
|
|
18
|
-
headerTitleAlign: "center",
|
|
19
|
-
headerBackButtonMenuEnabled: true,
|
|
20
|
-
headerBackButtonDisplayMode: 'minimal',
|
|
21
|
-
headerTransparent: Platform.OS === 'ios',
|
|
22
|
-
headerLargeTitle: true,
|
|
23
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare function numberToTextCurrency(value: number): string;
|
|
2
|
-
declare const Formats: {
|
|
3
|
-
numberToText: (value: number) => string;
|
|
4
|
-
TextToNumber: (value: string) => number;
|
|
5
|
-
numberToTextCurrency: typeof numberToTextCurrency;
|
|
6
|
-
capitalizeText: (string: string) => string;
|
|
7
|
-
phoneToText: (phone: number | string) => string;
|
|
8
|
-
dateToText: (value: string) => string;
|
|
9
|
-
dateToTextFormat: (date: Date, format?: string) => string;
|
|
10
|
-
};
|
|
11
|
-
export default Formats;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { format as DateFormatter } from 'date-fns';
|
|
2
|
-
const formatter = new Intl.NumberFormat('es-AR');
|
|
3
|
-
const numberToText = (value) => {
|
|
4
|
-
const abs = formatter.format(Math.abs(value));
|
|
5
|
-
return value < 0 ? `(${abs})` : abs;
|
|
6
|
-
};
|
|
7
|
-
const TextToNumber = (value) => {
|
|
8
|
-
const trimmed = value.trim();
|
|
9
|
-
const isNegative = /^\(.*\)$/.test(trimmed);
|
|
10
|
-
const normalized = trimmed
|
|
11
|
-
.replace(/[()]/g, '')
|
|
12
|
-
.replace(/\./g, '')
|
|
13
|
-
.replace(',', '.');
|
|
14
|
-
const parsed = Number.parseFloat(normalized);
|
|
15
|
-
if (Number.isNaN(parsed))
|
|
16
|
-
return 0;
|
|
17
|
-
return isNegative ? -parsed : parsed;
|
|
18
|
-
};
|
|
19
|
-
function numberToTextCurrency(value) {
|
|
20
|
-
return new Intl.NumberFormat('es-AR', {
|
|
21
|
-
style: 'currency',
|
|
22
|
-
currency: 'ARS',
|
|
23
|
-
minimumFractionDigits: 0, // <- no obliga decimales
|
|
24
|
-
maximumFractionDigits: 2 // <- si vienen, los respeta
|
|
25
|
-
}).format(Number(value));
|
|
26
|
-
}
|
|
27
|
-
const dateToText = (value) => {
|
|
28
|
-
const [year, month, day] = value.split('-').map(Number);
|
|
29
|
-
const date = new Date(year, month - 1, day);
|
|
30
|
-
const monthText = new Intl.DateTimeFormat('es-AR', {
|
|
31
|
-
month: 'long',
|
|
32
|
-
}).format(date);
|
|
33
|
-
const dayText = new Intl.DateTimeFormat('es-AR', {
|
|
34
|
-
day: '2-digit',
|
|
35
|
-
}).format(date);
|
|
36
|
-
const yearText = new Intl.DateTimeFormat('es-AR', {
|
|
37
|
-
year: 'numeric',
|
|
38
|
-
}).format(date);
|
|
39
|
-
return `${monthText} ${dayText}, ${yearText}`;
|
|
40
|
-
};
|
|
41
|
-
const capitalizeText = (string) => {
|
|
42
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
43
|
-
};
|
|
44
|
-
const phoneToText = (phone) => {
|
|
45
|
-
const digits = phone.toString().replace(/\D/g, '');
|
|
46
|
-
if (!digits)
|
|
47
|
-
return '';
|
|
48
|
-
const formattedPart = digits.slice(0, 13);
|
|
49
|
-
const extra = digits.slice(13);
|
|
50
|
-
let base = formattedPart;
|
|
51
|
-
if (formattedPart.length > 4) {
|
|
52
|
-
const right = formattedPart.slice(-4);
|
|
53
|
-
const left = formattedPart.slice(0, -4);
|
|
54
|
-
if (formattedPart.length <= 8) {
|
|
55
|
-
base = `${left}-${right}`;
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
const prefix = formattedPart.slice(0, -8);
|
|
59
|
-
const middle = formattedPart.slice(-8, -4);
|
|
60
|
-
const p3 = prefix.slice(-2);
|
|
61
|
-
const p2 = prefix.slice(-3, -2);
|
|
62
|
-
const p1 = prefix.slice(0, -3);
|
|
63
|
-
base = [p1, p2, p3, `${middle}-${right}`]
|
|
64
|
-
.filter(Boolean)
|
|
65
|
-
.join(' ');
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return extra ? `${base}${extra}` : base;
|
|
69
|
-
};
|
|
70
|
-
const dateToTextFormat = (date, format = 'YYYY-MM-DD') => {
|
|
71
|
-
const _format = format.replaceAll('Y', 'y').replaceAll('m', 'M').replaceAll('D', 'd');
|
|
72
|
-
return DateFormatter(date, _format);
|
|
73
|
-
};
|
|
74
|
-
// ------------------- Export -------------------
|
|
75
|
-
const Formats = {
|
|
76
|
-
numberToText,
|
|
77
|
-
TextToNumber,
|
|
78
|
-
numberToTextCurrency,
|
|
79
|
-
capitalizeText,
|
|
80
|
-
phoneToText,
|
|
81
|
-
dateToText,
|
|
82
|
-
dateToTextFormat,
|
|
83
|
-
};
|
|
84
|
-
export default Formats;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const Hooks: {
|
|
2
|
-
useEffectWithoutFirstRender: (effect: () => void, deps: any[]) => void;
|
|
3
|
-
useLayoutEffectWithoutFirstRender: (effect: () => void, deps: any[]) => void;
|
|
4
|
-
useAsyncEffect: (effect: (isMounted: () => boolean) => Promise<void>, deps: any[]) => void;
|
|
5
|
-
useAsyncFocusEffect: (effect: (isMounted: () => boolean) => Promise<void>) => void;
|
|
6
|
-
useAsyncFocusEffectWithoutFirstRender: (effect: (isMounted: () => boolean) => Promise<void>) => void;
|
|
7
|
-
};
|
|
8
|
-
export default Hooks;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect, useLayoutEffect, useRef } from 'react';
|
|
2
|
-
import { useFocusEffect } from 'expo-router';
|
|
3
|
-
const useEffectWithoutFirstRender = (effect, deps) => {
|
|
4
|
-
const isFirstRender = useRef(true);
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
if (isFirstRender.current) {
|
|
7
|
-
isFirstRender.current = false;
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
return effect();
|
|
11
|
-
}, deps);
|
|
12
|
-
};
|
|
13
|
-
const useLayoutEffectWithoutFirstRender = (effect, deps) => {
|
|
14
|
-
const isFirstRender = useRef(true);
|
|
15
|
-
useLayoutEffect(() => {
|
|
16
|
-
if (isFirstRender.current) {
|
|
17
|
-
isFirstRender.current = false;
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
return effect();
|
|
21
|
-
}, deps);
|
|
22
|
-
};
|
|
23
|
-
const useAsyncEffect = (effect, deps) => {
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
let mounted = true;
|
|
26
|
-
const isMounted = () => mounted;
|
|
27
|
-
effect(isMounted);
|
|
28
|
-
return () => { mounted = false; };
|
|
29
|
-
}, deps);
|
|
30
|
-
};
|
|
31
|
-
const useAsyncFocusEffect = (effect) => {
|
|
32
|
-
useFocusEffect(useCallback(() => {
|
|
33
|
-
let mounted = true;
|
|
34
|
-
const isMounted = () => mounted;
|
|
35
|
-
void effect(isMounted);
|
|
36
|
-
return () => { mounted = false; };
|
|
37
|
-
}, [effect]));
|
|
38
|
-
};
|
|
39
|
-
const useAsyncFocusEffectWithoutFirstRender = (effect) => {
|
|
40
|
-
const isFirstFocus = useRef(true);
|
|
41
|
-
useFocusEffect(useCallback(() => {
|
|
42
|
-
let mounted = true;
|
|
43
|
-
const isMounted = () => mounted;
|
|
44
|
-
if (isFirstFocus.current)
|
|
45
|
-
isFirstFocus.current = false;
|
|
46
|
-
else
|
|
47
|
-
void effect(isMounted);
|
|
48
|
-
return () => { mounted = false; };
|
|
49
|
-
}, [effect]));
|
|
50
|
-
};
|
|
51
|
-
// ------------------- Export -------------------
|
|
52
|
-
const Hooks = {
|
|
53
|
-
useEffectWithoutFirstRender,
|
|
54
|
-
useLayoutEffectWithoutFirstRender,
|
|
55
|
-
useAsyncEffect,
|
|
56
|
-
useAsyncFocusEffect,
|
|
57
|
-
useAsyncFocusEffectWithoutFirstRender,
|
|
58
|
-
};
|
|
59
|
-
export default Hooks;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StyleProp } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const Utils: {
|
|
4
|
-
addProps: (element: React.ReactElement | null, additionalStyles?: StyleProp<any>, extraProps?: Record<string, any>) => React.ReactElement | null;
|
|
5
|
-
isValidMail: (mail: string) => boolean;
|
|
6
|
-
applyOpacity: (color: string, opacity: number) => string;
|
|
7
|
-
adjustLightness: (color: string, percentage: number) => string;
|
|
8
|
-
_getDeviceTier: () => "low" | "medium" | "high";
|
|
9
|
-
createCtx: <T>() => readonly [React.Provider<T | null>, () => T];
|
|
10
|
-
createUseContext: <T>(context: React.Context<T | null>) => T;
|
|
11
|
-
};
|
|
12
|
-
export default Utils;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Platform } from 'react-native';
|
|
2
|
-
import React, { createContext as reactCreateContext, useContext } from 'react';
|
|
3
|
-
import * as Device from 'expo-device';
|
|
4
|
-
import { hsla, parseToHsla, parseToRgba } from 'color2k';
|
|
5
|
-
const addProps = (element, additionalStyles = [], extraProps = {}) => {
|
|
6
|
-
if (!React.isValidElement(element))
|
|
7
|
-
return null;
|
|
8
|
-
return React.cloneElement(element, {
|
|
9
|
-
style: [
|
|
10
|
-
element.props.style,
|
|
11
|
-
...additionalStyles
|
|
12
|
-
],
|
|
13
|
-
...extraProps
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
const isValidMail = (mail) => {
|
|
17
|
-
return mail.includes('@') && mail.endsWith('.com');
|
|
18
|
-
};
|
|
19
|
-
const applyOpacity = (color, opacity) => {
|
|
20
|
-
try {
|
|
21
|
-
const [r, g, b] = parseToRgba(color); // ignoro alpha original
|
|
22
|
-
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
console.error('Color inválido:', color);
|
|
26
|
-
return color;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const adjustLightness = (color, percentage) => {
|
|
30
|
-
try {
|
|
31
|
-
const [h, s, l, a] = parseToHsla(color);
|
|
32
|
-
// Ajustar luminosidad: percentage puede ser positivo (aclarar) o negativo (oscurecer)
|
|
33
|
-
// l está en rango 0-1, percentage es de -100 a +100
|
|
34
|
-
const newL = Math.max(0, Math.min(1, l + (percentage / 100)));
|
|
35
|
-
return hsla(h, s, newL, a);
|
|
36
|
-
}
|
|
37
|
-
catch (e) {
|
|
38
|
-
console.error('Color inválido:', color);
|
|
39
|
-
return color;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const _getDeviceTier = () => {
|
|
43
|
-
if (Platform.OS !== 'android')
|
|
44
|
-
return 'high';
|
|
45
|
-
const ramGB = Device.totalMemory
|
|
46
|
-
? Device.totalMemory / 1024 / 1024 / 1024
|
|
47
|
-
: 0;
|
|
48
|
-
if (ramGB > 0 && ramGB <= 4)
|
|
49
|
-
return 'low';
|
|
50
|
-
if (ramGB <= 6)
|
|
51
|
-
return 'medium';
|
|
52
|
-
return 'high';
|
|
53
|
-
};
|
|
54
|
-
const createCtx = () => {
|
|
55
|
-
const context = reactCreateContext(null);
|
|
56
|
-
const useCtx = () => createUseContext(context);
|
|
57
|
-
return [context.Provider, useCtx];
|
|
58
|
-
};
|
|
59
|
-
const createUseContext = (context) => {
|
|
60
|
-
const ctx = useContext(context);
|
|
61
|
-
if (!ctx)
|
|
62
|
-
throw new Error('useContext debe usarse dentro de un context.Provider');
|
|
63
|
-
return ctx;
|
|
64
|
-
};
|
|
65
|
-
// ------------------- Export -------------------
|
|
66
|
-
const Utils = {
|
|
67
|
-
addProps,
|
|
68
|
-
isValidMail,
|
|
69
|
-
applyOpacity,
|
|
70
|
-
adjustLightness,
|
|
71
|
-
_getDeviceTier,
|
|
72
|
-
createCtx,
|
|
73
|
-
createUseContext,
|
|
74
|
-
};
|
|
75
|
-
export default Utils;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Wrapper from './src/components/Wrapper';
|
|
2
|
-
import Item from './src/components/Item';
|
|
3
|
-
import ItemDate from './src/components/ItemDate';
|
|
4
|
-
type Component = typeof Wrapper & {
|
|
5
|
-
Item: typeof Item;
|
|
6
|
-
ItemDate: typeof ItemDate;
|
|
7
|
-
};
|
|
8
|
-
declare const Screen: Component;
|
|
9
|
-
export default Screen;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HStack, Spacer, Text } from '@expo/ui/swift-ui';
|
|
2
|
-
import React, { memo } from 'react';
|
|
3
|
-
import TextField from '../TextField';
|
|
4
|
-
export default memo(({ label, minLengthSpacer, ...textFieldProps }) => {
|
|
5
|
-
if (!label)
|
|
6
|
-
return <TextField {...textFieldProps}/>;
|
|
7
|
-
return (<HStack>
|
|
8
|
-
<Text>{label}</Text>
|
|
9
|
-
<Spacer minLength={minLengthSpacer}/>
|
|
10
|
-
<TextField {...textFieldProps}/>
|
|
11
|
-
</HStack>);
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default ({ ...props }) => null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type TextFieldProps from '../TextField/types';
|
|
2
|
-
type Props = TextFieldProps & {
|
|
3
|
-
/**
|
|
4
|
-
Text to display on the left of the text field.
|
|
5
|
-
If not provided, the item will be only a text field.
|
|
6
|
-
*/
|
|
7
|
-
label?: string;
|
|
8
|
-
/**
|
|
9
|
-
Minimum length of the spacer between the title and the text field.
|
|
10
|
-
If the title is not provided, will not be displayed.
|
|
11
|
-
*/
|
|
12
|
-
minLengthSpacer?: number;
|
|
13
|
-
};
|
|
14
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Section, DatePicker } from '@expo/ui/swift-ui';
|
|
2
|
-
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { environment } from '@expo/ui/swift-ui/modifiers';
|
|
4
|
-
import { usePage } from '../../context/page';
|
|
5
|
-
export default memo(({ itemKey, label, defaultValue, minDate = new Date(new Date().setFullYear(new Date().getFullYear() - 100)), maxDate = new Date(), }) => {
|
|
6
|
-
const { store, registerItem } = usePage();
|
|
7
|
-
const [selection, setSelection] = useState(defaultValue);
|
|
8
|
-
// Key
|
|
9
|
-
const keyRef = useRef(itemKey);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
keyRef.current = registerItem(itemKey);
|
|
12
|
-
}, []);
|
|
13
|
-
// Hooks
|
|
14
|
-
useEffect(() => setSelection(defaultValue), [defaultValue]);
|
|
15
|
-
const onValueChange = useCallback((value) => {
|
|
16
|
-
setSelection(value);
|
|
17
|
-
store.values[keyRef.current ?? 0].set({
|
|
18
|
-
value: value,
|
|
19
|
-
hasChanged: value.getTime() !== defaultValue?.getTime(),
|
|
20
|
-
isValid: true,
|
|
21
|
-
});
|
|
22
|
-
}, []);
|
|
23
|
-
return (<Section>
|
|
24
|
-
<DatePicker title={label} selection={selection} onDateChange={onValueChange} modifiers={[environment('locale', 'es_ES')]} range={{
|
|
25
|
-
start: minDate,
|
|
26
|
-
end: maxDate,
|
|
27
|
-
}}/>
|
|
28
|
-
</Section>);
|
|
29
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default ({ ...props }) => null;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
/**
|
|
3
|
-
identification key of the item.
|
|
4
|
-
*/
|
|
5
|
-
itemKey?: string;
|
|
6
|
-
/**
|
|
7
|
-
Title of the date picker.
|
|
8
|
-
*/
|
|
9
|
-
label?: string;
|
|
10
|
-
/**
|
|
11
|
-
Default value of the date picker.
|
|
12
|
-
*/
|
|
13
|
-
defaultValue?: Date;
|
|
14
|
-
/**
|
|
15
|
-
Minimum date allowed.
|
|
16
|
-
@default 100 years ago
|
|
17
|
-
*/
|
|
18
|
-
minDate?: Date;
|
|
19
|
-
/**
|
|
20
|
-
Maximum date allowed.
|
|
21
|
-
@default today
|
|
22
|
-
*/
|
|
23
|
-
maxDate?: Date;
|
|
24
|
-
};
|
|
25
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default ({ children }) => null;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
type Props<T> = {
|
|
2
|
-
/**
|
|
3
|
-
The data items to be rendered inside the list.
|
|
4
|
-
@default []
|
|
5
|
-
*/
|
|
6
|
-
data?: T[];
|
|
7
|
-
/**
|
|
8
|
-
The function to render the item.
|
|
9
|
-
*/
|
|
10
|
-
renderItem?: (item: T) => React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
Function to be called when the user saves the changes.
|
|
13
|
-
If the function returns false, the user will not be redirected to the previous screen.
|
|
14
|
-
*/
|
|
15
|
-
onSave?: (values: (string | null | Date)[]) => boolean | Promise<boolean>;
|
|
16
|
-
};
|
|
17
|
-
export type Value = {
|
|
18
|
-
value: string | null | Date | undefined;
|
|
19
|
-
hasChanged: boolean;
|
|
20
|
-
isValid: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type Values = Record<number, Value>;
|
|
23
|
-
export type Store = {
|
|
24
|
-
values: Values;
|
|
25
|
-
saveEnabled: boolean;
|
|
26
|
-
};
|
|
27
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|