native-pytech 1.0.196 → 1.0.200
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 +85 -85
- 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/sections/icon.d.ts +0 -2
- package/dist/app/sections/icon.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 -15
- 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 -3
- 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 -3
- package/dist/libs/colorPage/src/Content/index.ios.js +0 -16
- package/dist/libs/colorPage/src/Content/index.js +0 -20
- 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 -25
- package/dist/libs/colorPage/src/Item/index.js +0 -21
- 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 -3
- package/dist/libs/colorPage/src/Page/index.js +0 -17
- package/dist/libs/colorPage/src/Page/types.d.ts +0 -39
- package/dist/libs/colorPage/src/Page/types.js +0 -1
- package/dist/libs/components/CloseButton.d.ts +0 -8
- package/dist/libs/components/CloseButton.js +0 -18
- package/dist/libs/components/Gradient/components/Gradient/index.d.ts +0 -3
- package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +0 -4
- package/dist/libs/components/Gradient/components/Gradient/index.ios.js +0 -6
- package/dist/libs/components/Gradient/components/Gradient/index.js +0 -33
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +0 -37
- package/dist/libs/components/Gradient/components/Gradient/types.js +0 -1
- package/dist/libs/components/Gradient/components/Icon.d.ts +0 -25
- 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 -3
- 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 -12
- package/dist/libs/constants/formats.js +0 -90
- package/dist/libs/constants/hooks.d.ts +0 -9
- package/dist/libs/constants/hooks.js +0 -73
- 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/Header/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/Header/index.js +0 -17
- package/dist/libs/editPage/src/components/Header/index.web.d.ts +0 -3
- package/dist/libs/editPage/src/components/Header/index.web.js +0 -17
- package/dist/libs/editPage/src/components/Header/types.d.ts +0 -5
- package/dist/libs/editPage/src/components/Header/types.js +0 -1
- package/dist/libs/editPage/src/components/Item/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/Item/index.ios.d.ts +0 -3
- package/dist/libs/editPage/src/components/Item/index.ios.js +0 -12
- package/dist/libs/editPage/src/components/Item/index.js +0 -8
- 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/Picker/Date/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.ios.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.ios.js +0 -7
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.js +0 -33
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.ios.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.ios.js +0 -4
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.js +0 -36
- package/dist/libs/editPage/src/components/ItemDate/Picker/types.d.ts +0 -23
- package/dist/libs/editPage/src/components/ItemDate/Picker/types.js +0 -1
- package/dist/libs/editPage/src/components/ItemDate/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemDate/index.js +0 -46
- package/dist/libs/editPage/src/components/ItemDate/types.d.ts +0 -22
- package/dist/libs/editPage/src/components/ItemDate/types.js +0 -1
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.ios.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.ios.js +0 -4
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.js +0 -36
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/types.d.ts +0 -23
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/types.js +0 -1
- package/dist/libs/editPage/src/components/ItemTime/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemTime/index.js +0 -38
- package/dist/libs/editPage/src/components/ItemTime/types.d.ts +0 -17
- package/dist/libs/editPage/src/components/ItemTime/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 -7
- 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 -3
- package/dist/libs/editPage/src/components/TextField/index.ios.js +0 -37
- package/dist/libs/editPage/src/components/TextField/index.js +0 -28
- 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 -3
- package/dist/libs/editPage/src/components/Wrapper/index.js +0 -73
- package/dist/libs/editPage/src/components/Wrapper/types.d.ts +0 -28
- 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 -3
- 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 -6
- 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 -4
- 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 -3
- 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 -3
- package/dist/libs/page/src/components/Page/index.android.js +0 -11
- package/dist/libs/page/src/components/Page/index.d.ts +0 -3
- 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 -4
- 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/components/Content/index.d.ts +0 -3
- package/dist/libs/pickerPage/src/components/Content/index.ios.d.ts +0 -3
- package/dist/libs/pickerPage/src/components/Content/index.ios.js +0 -19
- package/dist/libs/pickerPage/src/components/Content/index.js +0 -14
- package/dist/libs/pickerPage/src/components/Content/types.d.ts +0 -3
- package/dist/libs/pickerPage/src/components/Content/types.js +0 -1
- package/dist/libs/pickerPage/src/components/Item/index.d.ts +0 -3
- package/dist/libs/pickerPage/src/components/Item/index.ios.d.ts +0 -7
- package/dist/libs/pickerPage/src/components/Item/index.ios.js +0 -8
- package/dist/libs/pickerPage/src/components/Item/index.js +0 -16
- package/dist/libs/pickerPage/src/components/Item/types.d.ts +0 -28
- package/dist/libs/pickerPage/src/components/Item/types.js +0 -1
- package/dist/libs/pickerPage/src/components/Page/index.d.ts +0 -3
- package/dist/libs/pickerPage/src/components/Page/index.js +0 -22
- package/dist/libs/pickerPage/src/components/Page/types.d.ts +0 -30
- package/dist/libs/pickerPage/src/components/Page/types.js +0 -1
- package/dist/libs/pickerPage/src/context/page.d.ts +0 -7
- package/dist/libs/pickerPage/src/context/page.js +0 -2
- package/dist/libs/providers/App/index.d.ts +0 -10
- package/dist/libs/providers/App/index.js +0 -59
- 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/sections/Icon/index.d.ts +0 -2
- package/dist/libs/sections/Icon/index.js +0 -1
- package/dist/libs/sections/Icon/src/Section.ios.d.ts +0 -6
- package/dist/libs/sections/Icon/src/Section.ios.js +0 -17
- package/dist/libs/sections/Icon/src/index.d.ts +0 -3
- package/dist/libs/sections/Icon/src/index.ios.d.ts +0 -3
- package/dist/libs/sections/Icon/src/index.ios.js +0 -26
- package/dist/libs/sections/Icon/src/index.js +0 -59
- package/dist/libs/sections/Icon/types.d.ts +0 -25
- package/dist/libs/sections/Icon/types.js +0 -1
- 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 -3
- 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 -3
- package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +0 -3
- 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 -3
- 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 -3
- 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 -3
- 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 -10
- 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 -10
- package/dist/libs/swiftui/index.js +0 -10
- package/dist/libs/swiftui/src/components/ChevronRight.d.ts +0 -2
- package/dist/libs/swiftui/src/components/ChevronRight.js +0 -4
- package/dist/libs/swiftui/src/components/Dialog/index.d.ts +0 -3
- 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 -9
- package/dist/libs/swiftui/src/components/Icon.js +0 -8
- package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +0 -24
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +0 -26
- package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +0 -6
- 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 -9
- 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 -3
- 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 -4
- 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 -3
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +0 -14
- package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +0 -3
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +0 -17
- package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +0 -39
- package/dist/libs/swiftui/src/components/NavigationLink/types.js +0 -1
- package/dist/libs/swiftui/src/components/Picker.d.ts +0 -10
- package/dist/libs/swiftui/src/components/Picker.js +0 -14
- package/dist/libs/swiftui/src/components/Text.d.ts +0 -5
- package/dist/libs/swiftui/src/components/Text.js +0 -10
- package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +0 -21
- 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 -5
- package/dist/libs/table/src/components/Borders.js +0 -84
- package/dist/libs/table/src/components/Delete/index.d.ts +0 -3
- 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 -109
- package/dist/libs/table/src/components/Option/types.d.ts +0 -66
- package/dist/libs/table/src/components/Option/types.js +0 -1
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +0 -5
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +0 -14
- package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +0 -5
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +0 -18
- package/dist/libs/table/src/components/OptionComponents/icon.d.ts +0 -9
- package/dist/libs/table/src/components/OptionComponents/icon.js +0 -12
- package/dist/libs/table/src/components/OptionComponents/image.d.ts +0 -8
- 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 -21
- package/dist/libs/table/src/components/OptionComponents/text.js +0 -27
- package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +0 -24
- package/dist/libs/table/src/components/OptionComponents/textInput.js +0 -49
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +0 -7
- 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 -74
- package/dist/libs/table/src/components/Table/types.js +0 -1
- package/dist/libs/table/src/components/Wrapper.d.ts +0 -6
- 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
package/dist/libs/table/index.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { useValue } from '@legendapp/state/react';
|
|
2
|
-
import { memo, useEffect, useState } from 'react';
|
|
3
|
-
import { PixelRatio, View, StyleSheet } from 'react-native';
|
|
4
|
-
import colors from '../constants';
|
|
5
|
-
import Hooks from '../../../../libs/constants/hooks';
|
|
6
|
-
import { useApp } from '../../../../libs/providers/App';
|
|
7
|
-
import { useStore, useTable } from '../context/table';
|
|
8
|
-
import { useBorder } from '../context/borders';
|
|
9
|
-
import { left, right } from './Option';
|
|
10
|
-
const heightPixel = PixelRatio.roundToNearestPixel(1);
|
|
11
|
-
export default memo(({ id, borders }) => {
|
|
12
|
-
if (borders.color)
|
|
13
|
-
return <Component id={id} borders={borders}/>;
|
|
14
|
-
const { colorScheme } = useApp();
|
|
15
|
-
const { colorThemeType } = useTable();
|
|
16
|
-
borders.color = colors.table[colorThemeType][colorScheme].border;
|
|
17
|
-
return <Component id={id} borders={borders}/>;
|
|
18
|
-
});
|
|
19
|
-
const Component = memo(({ id, borders }) => {
|
|
20
|
-
const shownTop = borders?.shownTop;
|
|
21
|
-
const shownBottom = borders?.shownBottom;
|
|
22
|
-
const justTop = shownTop === true && shownBottom === false;
|
|
23
|
-
const justBottom = shownTop === false && shownBottom === true;
|
|
24
|
-
const styleSpaces = { left: borders?.left ?? left, right: borders?.right ?? right };
|
|
25
|
-
//Si solo hay 1 border y ambos estan predefinidos...
|
|
26
|
-
if (justTop || justBottom) {
|
|
27
|
-
//Version super light
|
|
28
|
-
const style = justTop ? { bottom: null } : { top: null }; //Cancela el bottom o el top de styles.space
|
|
29
|
-
return <View style={[styles.space, styles.border, styleSpaces, style, { backgroundColor: borders.color }]}/>;
|
|
30
|
-
}
|
|
31
|
-
return (<View style={[styles.space, styleSpaces]}>
|
|
32
|
-
{shownTop == null ?
|
|
33
|
-
<BorderExtended isTop={true} id={id} color={borders.color}/> :
|
|
34
|
-
<Border show={borders.shownTop} color={borders.color}/>}
|
|
35
|
-
{shownBottom == null ?
|
|
36
|
-
<BorderExtended isTop={false} id={id} color={borders.color}/> :
|
|
37
|
-
<Border show={borders.shownBottom} color={borders.color}/>}
|
|
38
|
-
</View>);
|
|
39
|
-
});
|
|
40
|
-
const BorderExtended = memo(({ isTop, id, color }) => {
|
|
41
|
-
const { keys, allBorders } = useTable();
|
|
42
|
-
const store = useStore();
|
|
43
|
-
const hasKeys = keys && keys.length > 0;
|
|
44
|
-
const showStore = useValue(() => {
|
|
45
|
-
if (isTop) {
|
|
46
|
-
const isFirstId = store.deleted.firstId.get() === id;
|
|
47
|
-
return allBorders ? (hasKeys ? isFirstId : false) : !hasKeys;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
const isLastId = store.deleted.lastId.get() === id;
|
|
51
|
-
return allBorders ? true : (hasKeys ? !isLastId : false);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
const [Show, setShow] = useState(showStore);
|
|
55
|
-
const bordersRef = useBorder();
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (isTop)
|
|
58
|
-
bordersRef.current.top = setShow;
|
|
59
|
-
else
|
|
60
|
-
bordersRef.current.bottom = setShow;
|
|
61
|
-
}, []);
|
|
62
|
-
Hooks.useEffectWithoutFirstRender(() => {
|
|
63
|
-
setShow(showStore);
|
|
64
|
-
}, [showStore]);
|
|
65
|
-
return <Border show={Show} color={color}/>;
|
|
66
|
-
});
|
|
67
|
-
const Border = memo(({ show, color }) => {
|
|
68
|
-
return <View style={[styles.border, { backgroundColor: show ? color : 'transparent' }]}/>;
|
|
69
|
-
});
|
|
70
|
-
const styles = StyleSheet.create({
|
|
71
|
-
space: {
|
|
72
|
-
position: 'absolute',
|
|
73
|
-
justifyContent: 'space-between',
|
|
74
|
-
flexDirection: 'column',
|
|
75
|
-
left: left,
|
|
76
|
-
right: right,
|
|
77
|
-
bottom: 0,
|
|
78
|
-
top: -heightPixel,
|
|
79
|
-
pointerEvents: 'none'
|
|
80
|
-
},
|
|
81
|
-
border: {
|
|
82
|
-
height: heightPixel,
|
|
83
|
-
}
|
|
84
|
-
});
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { batch } from '@legendapp/state';
|
|
2
|
-
import { useSelector } from '@legendapp/state/react';
|
|
3
|
-
import { memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
4
|
-
import { Animated, Easing, Platform, Pressable, StyleSheet, Text, View } from 'react-native';
|
|
5
|
-
import Reanimated, { Easing as Reasing, SlideOutLeft } from 'react-native-reanimated';
|
|
6
|
-
import Hooks from '../../../../../libs/constants/hooks';
|
|
7
|
-
import { isLowTier } from '../../../../../libs/constants/consts';
|
|
8
|
-
import colors from '../../constants';
|
|
9
|
-
import { useStore } from '../../context/table';
|
|
10
|
-
import { DeleteProvider } from '../../context/delete';
|
|
11
|
-
const anim = {
|
|
12
|
-
duration: 600,
|
|
13
|
-
easing: Easing.bezier(0.2, 0.2, 0, 1),
|
|
14
|
-
useNativeDriver: true,
|
|
15
|
-
};
|
|
16
|
-
export default memo(({ children, ...props }) => {
|
|
17
|
-
const [deleted, setDeleted] = useState(false);
|
|
18
|
-
if (deleted)
|
|
19
|
-
return null;
|
|
20
|
-
return <Component {...props} setDeleted={setDeleted}>{children}</Component>;
|
|
21
|
-
});
|
|
22
|
-
const Component = memo(({ children, id, removeWidth, onDelete, onDeleteShown, setDeleted, }) => {
|
|
23
|
-
const store = useStore();
|
|
24
|
-
const is_deleted = useSelector(() => store.deleted.id.get() === id);
|
|
25
|
-
Hooks.useLayoutEffectWithoutFirstRender(() => {
|
|
26
|
-
if (is_deleted)
|
|
27
|
-
return;
|
|
28
|
-
onDeleteShown?.(id, false);
|
|
29
|
-
removeStateValue.stopAnimation();
|
|
30
|
-
Animated.timing(removeStateValue, { toValue: 0, ...anim }).start();
|
|
31
|
-
}, [is_deleted]);
|
|
32
|
-
const removeStateValue = useRef(new Animated.Value(0)).current;
|
|
33
|
-
const [widthRemove, setWidthRemove] = useState(removeWidth ? removeWidth + (12 * 2) : 0);
|
|
34
|
-
const animatedRemoveStyle = {
|
|
35
|
-
opacity: removeStateValue.interpolate({
|
|
36
|
-
inputRange: [0, 1],
|
|
37
|
-
outputRange: [0, 1]
|
|
38
|
-
}),
|
|
39
|
-
transform: [
|
|
40
|
-
{
|
|
41
|
-
translateX: removeStateValue.interpolate({
|
|
42
|
-
inputRange: [0, 1],
|
|
43
|
-
outputRange: [-widthRemove, 0]
|
|
44
|
-
})
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
scale: removeStateValue.interpolate({
|
|
48
|
-
inputRange: [0, 1],
|
|
49
|
-
outputRange: [0, 1]
|
|
50
|
-
}),
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
};
|
|
54
|
-
const animatedStyle = {
|
|
55
|
-
transform: [{
|
|
56
|
-
translateX: removeStateValue.interpolate({
|
|
57
|
-
inputRange: [0, 1],
|
|
58
|
-
outputRange: [0, -widthRemove]
|
|
59
|
-
})
|
|
60
|
-
}]
|
|
61
|
-
};
|
|
62
|
-
const onLayputProps = removeWidth ? {} : { onLayout: (e) => setWidthRemove(e.nativeEvent.layout.width) };
|
|
63
|
-
const styleWidthRemove = removeWidth ? { width: removeWidth } : {};
|
|
64
|
-
// Función que los children pueden llamar para iniciar el delete
|
|
65
|
-
const startDelete = useCallback(() => {
|
|
66
|
-
if (store.deleted.setted.peek())
|
|
67
|
-
return;
|
|
68
|
-
store.deleted.id.set(id);
|
|
69
|
-
removeStateValue.stopAnimation();
|
|
70
|
-
Animated.timing(removeStateValue, { toValue: 1, ...anim }).start();
|
|
71
|
-
onDeleteShown?.(id, true);
|
|
72
|
-
}, []);
|
|
73
|
-
const exitingAnimation = isLowTier ? SlideOutLeft.duration(200) : SlideOutLeft.easing(Reasing.bezier(0.2, 0.2, 0, 1)).duration(300);
|
|
74
|
-
// Valor del contexto
|
|
75
|
-
const contextValue = useMemo(() => startDelete, [startDelete]);
|
|
76
|
-
const start = useCallback(() => {
|
|
77
|
-
if (store.deleted.id.peek() === null)
|
|
78
|
-
return;
|
|
79
|
-
store.deleted.setted.set(true);
|
|
80
|
-
store.deleted.id.set(null);
|
|
81
|
-
}, []);
|
|
82
|
-
const end = useCallback(() => { store.deleted.setted.set(false); }, []);
|
|
83
|
-
const viewProps = useMemo(() => (Platform.OS === 'web' ?
|
|
84
|
-
{
|
|
85
|
-
onPointerDown: start,
|
|
86
|
-
onPointerUp: end,
|
|
87
|
-
} : {
|
|
88
|
-
onTouchStart: start,
|
|
89
|
-
onTouchEnd: end,
|
|
90
|
-
}), []);
|
|
91
|
-
return (<>
|
|
92
|
-
<Pressable style={[styles.pressableRemove]} {...onLayputProps} onPress={() => {
|
|
93
|
-
removeStateValue.stopAnimation();
|
|
94
|
-
setDeleted(true);
|
|
95
|
-
onDelete?.(id);
|
|
96
|
-
const oldKeys = store.deleted.keys.peek();
|
|
97
|
-
const newKeys = oldKeys?.filter((key) => key !== id);
|
|
98
|
-
batch(() => {
|
|
99
|
-
store.deleted.keys.set(newKeys);
|
|
100
|
-
store.deleted.id.set(null);
|
|
101
|
-
});
|
|
102
|
-
}}>
|
|
103
|
-
<Animated.View style={[animatedRemoveStyle, styles.containerRemove, styleWidthRemove]}>
|
|
104
|
-
<Text style={styles.text}>Eliminar</Text>
|
|
105
|
-
</Animated.View>
|
|
106
|
-
</Pressable>
|
|
107
|
-
|
|
108
|
-
<Animated.View style={[{ position: 'relative' }, animatedStyle]}>
|
|
109
|
-
<Reanimated.View exiting={exitingAnimation}>
|
|
110
|
-
<View {...viewProps}>
|
|
111
|
-
<DeleteProvider value={contextValue}>
|
|
112
|
-
{children}
|
|
113
|
-
</DeleteProvider>
|
|
114
|
-
</View>
|
|
115
|
-
</Reanimated.View>
|
|
116
|
-
</Animated.View>
|
|
117
|
-
</>);
|
|
118
|
-
}, (prev, next) => prev.id === next.id);
|
|
119
|
-
const styles = StyleSheet.create({
|
|
120
|
-
pressableRemove: {
|
|
121
|
-
position: 'absolute',
|
|
122
|
-
right: 0,
|
|
123
|
-
top: 0,
|
|
124
|
-
bottom: 0,
|
|
125
|
-
flex: 1
|
|
126
|
-
},
|
|
127
|
-
containerRemove: {
|
|
128
|
-
paddingHorizontal: 12,
|
|
129
|
-
backgroundColor: colors.especiales.rojo,
|
|
130
|
-
margin: 6,
|
|
131
|
-
marginHorizontal: 10,
|
|
132
|
-
flex: 1,
|
|
133
|
-
borderRadius: 16,
|
|
134
|
-
justifyContent: 'center',
|
|
135
|
-
alignItems: 'center'
|
|
136
|
-
},
|
|
137
|
-
text: {
|
|
138
|
-
fontSize: 13,
|
|
139
|
-
color: 'white'
|
|
140
|
-
}
|
|
141
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface DeleteProps {
|
|
3
|
-
/**
|
|
4
|
-
Opcion que se renderiza dentro del context.
|
|
5
|
-
*/
|
|
6
|
-
children: React.ReactElement | React.ReactElement[] | null;
|
|
7
|
-
/**
|
|
8
|
-
Id de la opción.
|
|
9
|
-
*/
|
|
10
|
-
id: string;
|
|
11
|
-
/**
|
|
12
|
-
Ancho del botón de eliminar.
|
|
13
|
-
*/
|
|
14
|
-
removeWidth?: number;
|
|
15
|
-
/**
|
|
16
|
-
Función que se ejecuta al eliminar la opción.
|
|
17
|
-
*/
|
|
18
|
-
onDelete?: ((key: string) => void) | undefined;
|
|
19
|
-
/**
|
|
20
|
-
Función que se ejecuta para indicar que el componente se ha eliminado.
|
|
21
|
-
*/
|
|
22
|
-
onDeleteShown?: ((id: string, isDeleted: boolean) => void) | undefined;
|
|
23
|
-
/**
|
|
24
|
-
Función que se ejecuta para indicar que el componente se ha eliminado.
|
|
25
|
-
*/
|
|
26
|
-
setDeleted: (deleted: boolean) => void;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { memo } from "react";
|
|
2
|
-
import { Text } from "react-native";
|
|
3
|
-
import { useApp } from '../../../../libs/providers/App';
|
|
4
|
-
import colors from "../constants";
|
|
5
|
-
export default memo(({ text }) => {
|
|
6
|
-
const { colorScheme } = useApp();
|
|
7
|
-
const Theme = colors.theme[colorScheme];
|
|
8
|
-
return (<Text style={{ color: Theme.text2, fontSize: 13, lineHeight: 16 }}>
|
|
9
|
-
{text}
|
|
10
|
-
</Text>);
|
|
11
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Props from './types';
|
|
3
|
-
export declare const left = 16;
|
|
4
|
-
export declare const right = 16;
|
|
5
|
-
declare const _default: React.MemoExoticComponent<({ children, childrenLeft, childrenRight, onPress, style, backgroundColorPressed, LinearGradientProps, colorScheme, hasTextView, hasNavigationArrow, }: Props) => React.JSX.Element>;
|
|
6
|
-
export default _default;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { LinearGradient } from 'expo-linear-gradient';
|
|
2
|
-
import React, { memo, useCallback, useMemo } from 'react';
|
|
3
|
-
import { Pressable, StyleSheet, View } from 'react-native';
|
|
4
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
5
|
-
import colors from '../../constants';
|
|
6
|
-
import Table from '../Table';
|
|
7
|
-
import { useTable } from '../../context/table';
|
|
8
|
-
export const left = 16;
|
|
9
|
-
export const right = 16;
|
|
10
|
-
const flattenChildren = (children) => {
|
|
11
|
-
return React.Children.toArray(children).flatMap((child) => {
|
|
12
|
-
if (React.isValidElement(child) && child.type === React.Fragment) {
|
|
13
|
-
const props = child.props;
|
|
14
|
-
return flattenChildren(props.children);
|
|
15
|
-
}
|
|
16
|
-
return [child];
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
const AddTextView = memo(({ children, hasTextView }) => {
|
|
20
|
-
const hasTextView_ = hasTextView ?? flattenChildren(children).some((child) => React.isValidElement(child) && child.type === Table.Option.Components.TextView);
|
|
21
|
-
const viewChildren = useCallback((children) => <View style={styles.izq}>{children}</View>, []);
|
|
22
|
-
if (hasTextView_)
|
|
23
|
-
return viewChildren(children);
|
|
24
|
-
return (viewChildren(<Table.Option.Components.TextView>
|
|
25
|
-
{children}
|
|
26
|
-
</Table.Option.Components.TextView>));
|
|
27
|
-
});
|
|
28
|
-
export default memo(({ children, childrenLeft, childrenRight, onPress, style, backgroundColorPressed, LinearGradientProps, colorScheme, hasTextView, hasNavigationArrow = false, }) => {
|
|
29
|
-
const content = <>
|
|
30
|
-
{childrenLeft && <AddTextView hasTextView={hasTextView}>{childrenLeft}</AddTextView>}
|
|
31
|
-
{childrenRight || hasNavigationArrow ? (<View style={[styles.der, !childrenLeft ? { flex: 1, paddingVertical: 16.35 } : {}]}>
|
|
32
|
-
{childrenRight}
|
|
33
|
-
{hasNavigationArrow && <Ionicons name='chevron-forward' size={20} color={colors.theme[colorScheme].icon}/>}
|
|
34
|
-
</View>) : null}
|
|
35
|
-
{children}
|
|
36
|
-
</>;
|
|
37
|
-
const styleView = useMemo(() => [styles.Item_View, style], [style]);
|
|
38
|
-
const childrenOption = onPress === undefined ? <View style={styleView}>{content}</View>
|
|
39
|
-
: (backgroundColorPressed ? (<Pressable onPress={onPress} style={({ pressed }) => !pressed ? styleView : [styleView, { backgroundColor: backgroundColorPressed }]}>
|
|
40
|
-
{content}
|
|
41
|
-
</Pressable>) : (<PressableView onPress={onPress} colorScheme={colorScheme} styleView={styleView}>
|
|
42
|
-
{content}
|
|
43
|
-
</PressableView>));
|
|
44
|
-
return (LinearGradientProps ?
|
|
45
|
-
<LinearGradient {...LinearGradientProps}>
|
|
46
|
-
{childrenOption}
|
|
47
|
-
</LinearGradient>
|
|
48
|
-
: childrenOption);
|
|
49
|
-
});
|
|
50
|
-
const PressableView = memo(({ children, onPress, colorScheme, styleView }) => {
|
|
51
|
-
const { colorThemeType } = useTable();
|
|
52
|
-
const backgroundColorPressed = colors.table[colorThemeType][colorScheme].background_pressed;
|
|
53
|
-
return (<Pressable onPress={onPress} style={({ pressed }) => !pressed ? styleView : [styleView, { backgroundColor: backgroundColorPressed }]}>
|
|
54
|
-
{children}
|
|
55
|
-
</Pressable>);
|
|
56
|
-
});
|
|
57
|
-
/*
|
|
58
|
-
const pressableChildren = useCallback(({ pressed }: { pressed: boolean }) => (
|
|
59
|
-
<>
|
|
60
|
-
{!pressed ?
|
|
61
|
-
<NotPressedView /> :
|
|
62
|
-
<OnPressView backgroundColorPressed={backgroundColorPressed} colorScheme={colorScheme} />
|
|
63
|
-
}
|
|
64
|
-
{content}
|
|
65
|
-
</>
|
|
66
|
-
), [backgroundColorPressed, content, colorScheme])
|
|
67
|
-
|
|
68
|
-
const NotPressedView = memo(() => <View style={styles.onPressView} />)
|
|
69
|
-
const OnPressView = memo(({ backgroundColorPressed, colorScheme }: { backgroundColorPressed: OptionProps['backgroundColorPressed'], colorScheme: ColorSchemeType }) => {
|
|
70
|
-
const { colorThemeType } = useTable()
|
|
71
|
-
return <View style={[styles.onPressView, { backgroundColor: backgroundColorPressed ? backgroundColorPressed : Colors.table[colorThemeType][colorScheme].background_pressed }]} />
|
|
72
|
-
|
|
73
|
-
})
|
|
74
|
-
*/
|
|
75
|
-
//(20.3 - 0.5) / 2 = 9.9
|
|
76
|
-
//const paddingVertical = (24.1 - paddingTopItem - gap) / 2
|
|
77
|
-
const styles = StyleSheet.create({
|
|
78
|
-
Item_View: {
|
|
79
|
-
flex: 1,
|
|
80
|
-
paddingLeft: left,
|
|
81
|
-
paddingRight: right,
|
|
82
|
-
flexDirection: 'row',
|
|
83
|
-
alignItems: 'center',
|
|
84
|
-
justifyContent: 'center',
|
|
85
|
-
gap: 10
|
|
86
|
-
},
|
|
87
|
-
izq: {
|
|
88
|
-
marginRight: 'auto',
|
|
89
|
-
flex: 1,
|
|
90
|
-
flexDirection: 'row',
|
|
91
|
-
alignItems: 'center',
|
|
92
|
-
gap: 11,
|
|
93
|
-
//paddingBottom: 2,
|
|
94
|
-
},
|
|
95
|
-
der: {
|
|
96
|
-
marginLeft: 'auto',
|
|
97
|
-
flexDirection: 'row',
|
|
98
|
-
alignItems: 'center',
|
|
99
|
-
gap: 11
|
|
100
|
-
},
|
|
101
|
-
onPressView: {
|
|
102
|
-
position: 'absolute',
|
|
103
|
-
top: -1,
|
|
104
|
-
left: 0,
|
|
105
|
-
right: 0,
|
|
106
|
-
bottom: 0,
|
|
107
|
-
backgroundColor: 'transparent'
|
|
108
|
-
}
|
|
109
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { LinearGradientProps } from 'expo-linear-gradient';
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { GestureResponderEvent, StyleProp, ViewStyle } from "react-native";
|
|
4
|
-
import { LinearTransition } from "react-native-reanimated";
|
|
5
|
-
import { type ColorSchemeType } from "../../constants";
|
|
6
|
-
type Props = {
|
|
7
|
-
/**
|
|
8
|
-
Lo que se va a renderizar dentro de la opción.
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactElement;
|
|
11
|
-
/**
|
|
12
|
-
Lo que se va a renderizar dentro de la view de la izquierda.
|
|
13
|
-
*/
|
|
14
|
-
childrenLeft?: React.ReactElement | null;
|
|
15
|
-
/**
|
|
16
|
-
Lo que se va a renderizar dentro de la view de la derecha.
|
|
17
|
-
*/
|
|
18
|
-
childrenRight?: React.ReactElement | null;
|
|
19
|
-
/**
|
|
20
|
-
Función que se ejecuta al presionar la opción.
|
|
21
|
-
*/
|
|
22
|
-
onPress?: ((event: GestureResponderEvent) => void) | undefined;
|
|
23
|
-
/**
|
|
24
|
-
Función que se ejecuta al eliminar la opción.
|
|
25
|
-
*/
|
|
26
|
-
onDelete?: ((key: string) => void) | undefined;
|
|
27
|
-
/**
|
|
28
|
-
Función que se ejecuta para indicar que el componente se ha eliminado.
|
|
29
|
-
*/
|
|
30
|
-
onDeleteShown?: ((id: string, isDeleted: boolean) => void) | undefined;
|
|
31
|
-
/**
|
|
32
|
-
Ancho del botón de eliminar.
|
|
33
|
-
*/
|
|
34
|
-
removeWidth?: number;
|
|
35
|
-
/**
|
|
36
|
-
Estilos de la opción.
|
|
37
|
-
Es un Animated.View.
|
|
38
|
-
*/
|
|
39
|
-
style?: StyleProp<ViewStyle>;
|
|
40
|
-
/**
|
|
41
|
-
Color de fondo de la opción cuando está presionada.
|
|
42
|
-
*/
|
|
43
|
-
backgroundColorPressed?: string;
|
|
44
|
-
/**
|
|
45
|
-
Props para el LinearGradient.
|
|
46
|
-
*/
|
|
47
|
-
LinearGradientProps?: LinearGradientProps;
|
|
48
|
-
/**
|
|
49
|
-
LayoutAnimation de la opción.
|
|
50
|
-
*/
|
|
51
|
-
layoutAnimation?: LinearTransition;
|
|
52
|
-
/**
|
|
53
|
-
Indica si la opción tiene un TextView en el childrenLeft.
|
|
54
|
-
*/
|
|
55
|
-
hasTextView?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
Color del tema de la opción.
|
|
58
|
-
*/
|
|
59
|
-
colorScheme: ColorSchemeType;
|
|
60
|
-
/**
|
|
61
|
-
Si es True se muestra una flecha de navegación en el children Right.
|
|
62
|
-
@default false
|
|
63
|
-
*/
|
|
64
|
-
hasNavigationArrow?: boolean;
|
|
65
|
-
};
|
|
66
|
-
export default Props;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
|
-
import { Pressable } from 'react-native';
|
|
3
|
-
import { useDelete } from '../../context/delete';
|
|
4
|
-
import RemoveCircle from '../../../../../libs/assets/components/RemoveCircle';
|
|
5
|
-
import colors from '../../constants';
|
|
6
|
-
/**
|
|
7
|
-
Icono de eliminar.
|
|
8
|
-
*/
|
|
9
|
-
export default memo(() => {
|
|
10
|
-
const startDelete = useDelete();
|
|
11
|
-
return (<Pressable onPress={() => startDelete()}>
|
|
12
|
-
<RemoveCircle size={30} color={colors.especiales.rojo} insideColor='white'/>
|
|
13
|
-
</Pressable>);
|
|
14
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { Pressable } from 'react-native';
|
|
4
|
-
//import { useDrag } from '@/libs/ReorderableList'
|
|
5
|
-
import colors from '../../constants';
|
|
6
|
-
import { useApp } from '../../../../../libs/providers/App';
|
|
7
|
-
/**
|
|
8
|
-
Icono de drag.
|
|
9
|
-
*/
|
|
10
|
-
export default memo(() => {
|
|
11
|
-
const { colorScheme } = useApp();
|
|
12
|
-
const Theme = colors.theme[colorScheme];
|
|
13
|
-
//const pressableProps = useDrag() as unknown as PressableProps
|
|
14
|
-
const pressableProps = {};
|
|
15
|
-
return (<Pressable {...pressableProps}>
|
|
16
|
-
<Ionicons name='menu-outline' size={28} color={Theme.borderColorContCliente}/>
|
|
17
|
-
</Pressable>);
|
|
18
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
2
|
-
/**
|
|
3
|
-
Pone el color según el tema.
|
|
4
|
-
*/
|
|
5
|
-
declare const _default: import("react").MemoExoticComponent<({ name, size }: {
|
|
6
|
-
name: keyof typeof Ionicons.glyphMap;
|
|
7
|
-
size: number;
|
|
8
|
-
}) => import("react").JSX.Element>;
|
|
9
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import colors from '../../constants';
|
|
4
|
-
import { useApp } from '../../../../../libs/providers/App';
|
|
5
|
-
/**
|
|
6
|
-
Pone el color según el tema.
|
|
7
|
-
*/
|
|
8
|
-
export default memo(({ name, size = 30 }) => {
|
|
9
|
-
const { colorScheme } = useApp();
|
|
10
|
-
const Theme = colors.theme[colorScheme];
|
|
11
|
-
return (<Ionicons name={name} size={size} color={Theme.icon}/>);
|
|
12
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ImageSourcePropType } from 'react-native';
|
|
2
|
-
/**
|
|
3
|
-
Pone el tintColor según el tema.
|
|
4
|
-
*/
|
|
5
|
-
declare const _default: import("react").MemoExoticComponent<({ source }: {
|
|
6
|
-
source: ImageSourcePropType;
|
|
7
|
-
}) => import("react").JSX.Element>;
|
|
8
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
|
-
import { Image } from 'react-native';
|
|
3
|
-
import colors from '../../constants';
|
|
4
|
-
import { useApp } from '../../../../../libs/providers/App';
|
|
5
|
-
/**
|
|
6
|
-
Pone el tintColor según el tema.
|
|
7
|
-
*/
|
|
8
|
-
export default memo(({ source }) => {
|
|
9
|
-
const { colorScheme } = useApp();
|
|
10
|
-
const Theme = colors.theme[colorScheme];
|
|
11
|
-
return (<Image source={source} style={{ width: 12.1, height: 12.1 }} tintColor={Theme.icon}/>);
|
|
12
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as DeleteIcon } from './deleteIcon';
|
|
2
|
-
export { default as DragIcon } from './dragIcon';
|
|
3
|
-
export { default as Icon } from './icon';
|
|
4
|
-
export { default as Image } from './image';
|
|
5
|
-
export { default as Text } from './text';
|
|
6
|
-
export { default as TextInput } from './textInput';
|
|
7
|
-
export { default as TextInputCurrency } from './textInputCurrency';
|
|
8
|
-
export { default as TextView } from './textView';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as DeleteIcon } from './deleteIcon';
|
|
2
|
-
export { default as DragIcon } from './dragIcon';
|
|
3
|
-
export { default as Icon } from './icon';
|
|
4
|
-
export { default as Image } from './image';
|
|
5
|
-
export { default as Text } from './text';
|
|
6
|
-
export { default as TextInput } from './textInput';
|
|
7
|
-
export { default as TextInputCurrency } from './textInputCurrency';
|
|
8
|
-
export { default as TextView } from './textView';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { StyleProp, TextProps, TextStyle } from 'react-native';
|
|
2
|
-
import { type ColorSchemeType } from '../../constants';
|
|
3
|
-
/**
|
|
4
|
-
Pone el color del texto según el tema.
|
|
5
|
-
*/
|
|
6
|
-
type Props = {
|
|
7
|
-
text: string;
|
|
8
|
-
/**
|
|
9
|
-
@default true
|
|
10
|
-
*/
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
fontScale?: string;
|
|
13
|
-
/**
|
|
14
|
-
@default {}
|
|
15
|
-
*/
|
|
16
|
-
style?: StyleProp<TextStyle>;
|
|
17
|
-
};
|
|
18
|
-
declare const _default: import("react").MemoExoticComponent<({ ...props }: Props & {
|
|
19
|
-
colorScheme?: ColorSchemeType;
|
|
20
|
-
} & TextProps) => import("react").JSX.Element>;
|
|
21
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { memo, useMemo } from 'react';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
|
-
import colors from '../../constants';
|
|
4
|
-
import Text$ from '../../../../../libs/components/Text';
|
|
5
|
-
import ThemeComponent from '../../../../../libs/components/Theme';
|
|
6
|
-
export default memo(({ ...props }) => {
|
|
7
|
-
return <ThemeComponent component={Component} {...props}/>;
|
|
8
|
-
});
|
|
9
|
-
const Component = memo(({ text, enabled = true, style = {}, colorScheme, fontScale, ...props }) => {
|
|
10
|
-
const Theme = colors.theme[colorScheme];
|
|
11
|
-
const textStyle = useMemo(() => [
|
|
12
|
-
styles.text,
|
|
13
|
-
{
|
|
14
|
-
color: enabled ? Theme.text : Theme.text2
|
|
15
|
-
},
|
|
16
|
-
style
|
|
17
|
-
], [enabled, Theme, style]);
|
|
18
|
-
return (<Text$ fontScale={fontScale} style={textStyle} {...props}>
|
|
19
|
-
{text}
|
|
20
|
-
</Text$>);
|
|
21
|
-
});
|
|
22
|
-
const styles = StyleSheet.create({
|
|
23
|
-
text: {
|
|
24
|
-
fontSize: 17,
|
|
25
|
-
userSelect: 'none'
|
|
26
|
-
}
|
|
27
|
-
});
|