native-pytech 1.0.129 → 1.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/components/removeCircle.d.ts +2 -0
- package/dist/app/assets/components/removeCircle.js +2 -0
- package/dist/app/assets/components/reorderThreeOutline.d.ts +2 -0
- package/dist/app/assets/components/reorderThreeOutline.js +2 -0
- package/dist/app/assets/ionicons.d.ts +2 -0
- package/dist/app/assets/ionicons.js +2 -0
- package/dist/app/colorPage.d.ts +1 -0
- package/dist/app/colorPage.js +1 -0
- package/dist/app/components/closeButton.d.ts +2 -0
- package/dist/app/components/closeButton.js +2 -0
- package/dist/app/components/gradient.d.ts +2 -0
- package/dist/app/components/gradient.js +2 -0
- package/dist/app/components/link.d.ts +2 -0
- package/dist/app/components/link.js +2 -0
- package/dist/app/components/text.d.ts +2 -0
- package/dist/app/components/text.js +2 -0
- package/dist/app/components/theme.d.ts +2 -0
- package/dist/app/components/theme.js +2 -0
- package/dist/app/constants/colors.d.ts +2 -0
- package/dist/app/constants/colors.js +2 -0
- package/dist/app/constants/consts.d.ts +1 -0
- package/dist/app/constants/consts.js +1 -0
- package/dist/app/constants/formats.d.ts +1 -0
- package/dist/app/constants/formats.js +1 -0
- package/dist/app/constants/hooks.d.ts +1 -0
- package/dist/app/constants/hooks.js +1 -0
- package/dist/app/constants/utils.d.ts +1 -0
- package/dist/app/constants/utils.js +1 -0
- package/dist/app/editPage.d.ts +1 -0
- package/dist/app/editPage.js +1 -0
- package/dist/app/footer.d.ts +2 -0
- package/dist/app/footer.js +2 -0
- package/dist/app/login.d.ts +2 -0
- package/dist/app/login.js +2 -0
- package/dist/app/page.d.ts +2 -0
- package/dist/app/page.js +2 -0
- package/dist/app/pickerPage.d.ts +1 -0
- package/dist/app/pickerPage.js +1 -0
- package/dist/app/providers/app.d.ts +2 -0
- package/dist/app/providers/app.js +2 -0
- package/dist/app/segmentedControl.d.ts +2 -0
- package/dist/app/segmentedControl.js +2 -0
- package/dist/app/sql.d.ts +2 -0
- package/dist/app/sql.js +2 -0
- package/dist/app/supabase.d.ts +2 -0
- package/dist/app/supabase.js +2 -0
- package/dist/app/swiftui.d.ts +1 -0
- package/dist/app/swiftui.js +1 -0
- package/dist/app/table.d.ts +2 -0
- package/dist/app/table.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/libs/assets/components/RemoveCircle.d.ts +6 -0
- package/dist/libs/assets/components/RemoveCircle.js +25 -0
- package/dist/libs/assets/components/ReorderThreeOutline.d.ts +5 -0
- package/dist/libs/assets/components/ReorderThreeOutline.js +15 -0
- package/dist/libs/assets/ionicons/Ionicons.d.ts +35 -0
- package/dist/libs/assets/ionicons/Ionicons.js +16 -0
- package/dist/libs/assets/ionicons/index.d.ts +6 -0
- package/dist/libs/assets/ionicons/index.js +23 -0
- package/dist/libs/colorPage/index.d.ts +1 -0
- package/dist/libs/colorPage/index.js +1 -0
- package/dist/libs/colorPage/src/Content/index.android.d.ts +4 -0
- package/dist/libs/colorPage/src/Content/index.android.js +13 -0
- package/dist/libs/colorPage/src/Content/index.d.ts +3 -0
- package/dist/libs/colorPage/src/Content/index.ios.d.ts +4 -0
- package/dist/libs/colorPage/src/Content/index.ios.js +16 -0
- package/dist/libs/colorPage/src/Content/index.js +1 -0
- package/dist/libs/colorPage/src/Content/types.d.ts +10 -0
- package/dist/libs/colorPage/src/Content/types.js +1 -0
- package/dist/libs/colorPage/src/Item/index.android.d.ts +4 -0
- package/dist/libs/colorPage/src/Item/index.android.js +40 -0
- package/dist/libs/colorPage/src/Item/index.d.ts +3 -0
- package/dist/libs/colorPage/src/Item/index.ios.d.ts +4 -0
- package/dist/libs/colorPage/src/Item/index.ios.js +31 -0
- package/dist/libs/colorPage/src/Item/index.js +1 -0
- package/dist/libs/colorPage/src/Item/types.d.ts +13 -0
- package/dist/libs/colorPage/src/Item/types.js +1 -0
- package/dist/libs/colorPage/src/Page/index.d.ts +4 -0
- package/dist/libs/colorPage/src/Page/index.js +17 -0
- package/dist/libs/colorPage/src/Page/types.d.ts +27 -0
- package/dist/libs/colorPage/src/Page/types.js +1 -0
- package/dist/libs/components/CloseButton.d.ts +9 -0
- package/dist/libs/components/CloseButton.js +18 -0
- package/dist/libs/components/Gradient/components/Gradient/index.d.ts +4 -0
- package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +4 -0
- package/dist/libs/components/Gradient/components/Gradient/index.ios.js +35 -0
- package/dist/libs/components/Gradient/components/Gradient/index.js +32 -0
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +30 -0
- package/dist/libs/components/Gradient/components/Gradient/types.js +1 -0
- package/dist/libs/components/Gradient/components/Icon.d.ts +21 -0
- package/dist/libs/components/Gradient/components/Icon.js +1 -0
- package/dist/libs/components/Gradient/constants.d.ts +97 -0
- package/dist/libs/components/Gradient/constants.js +98 -0
- package/dist/libs/components/Gradient/index.d.ts +3 -0
- package/dist/libs/components/Gradient/index.js +2 -0
- package/dist/libs/components/Link.d.ts +13 -0
- package/dist/libs/components/Link.js +20 -0
- package/dist/libs/components/Text.d.ts +6 -0
- package/dist/libs/components/Text.js +11 -0
- package/dist/libs/components/Theme.d.ts +9 -0
- package/dist/libs/components/Theme.js +10 -0
- package/dist/libs/constants/colors.d.ts +218 -0
- package/dist/libs/constants/colors.js +170 -0
- package/dist/libs/constants/consts.d.ts +13 -0
- package/dist/libs/constants/consts.js +23 -0
- package/dist/libs/constants/formats.d.ts +11 -0
- package/dist/libs/constants/formats.js +84 -0
- package/dist/libs/constants/hooks.d.ts +8 -0
- package/dist/libs/constants/hooks.js +59 -0
- package/dist/libs/constants/utils.d.ts +12 -0
- package/dist/libs/constants/utils.js +75 -0
- package/dist/libs/editPage/index.d.ts +9 -0
- package/dist/libs/editPage/index.js +7 -0
- package/dist/libs/editPage/src/components/Item/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/Item/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/Item/index.ios.js +12 -0
- package/dist/libs/editPage/src/components/Item/index.js +1 -0
- package/dist/libs/editPage/src/components/Item/types.d.ts +14 -0
- package/dist/libs/editPage/src/components/Item/types.js +1 -0
- package/dist/libs/editPage/src/components/ItemDate/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemDate/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/ItemDate/index.ios.js +29 -0
- package/dist/libs/editPage/src/components/ItemDate/index.js +1 -0
- package/dist/libs/editPage/src/components/ItemDate/types.d.ts +25 -0
- package/dist/libs/editPage/src/components/ItemDate/types.js +1 -0
- package/dist/libs/editPage/src/components/Screen/index.d.ts +4 -0
- package/dist/libs/editPage/src/components/Screen/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/Screen/index.ios.js +8 -0
- package/dist/libs/editPage/src/components/Screen/index.js +1 -0
- package/dist/libs/editPage/src/components/Screen/types.d.ts +27 -0
- package/dist/libs/editPage/src/components/Screen/types.js +1 -0
- package/dist/libs/editPage/src/components/TextField/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/TextField/index.ios.js +35 -0
- package/dist/libs/editPage/src/components/TextField/index.js +1 -0
- package/dist/libs/editPage/src/components/TextField/types.d.ts +32 -0
- package/dist/libs/editPage/src/components/TextField/types.js +1 -0
- package/dist/libs/editPage/src/components/Wrapper/index.d.ts +4 -0
- package/dist/libs/editPage/src/components/Wrapper/index.js +84 -0
- package/dist/libs/editPage/src/components/Wrapper/types.d.ts +23 -0
- package/dist/libs/editPage/src/components/Wrapper/types.js +1 -0
- package/dist/libs/editPage/src/context/page.d.ts +13 -0
- package/dist/libs/editPage/src/context/page.js +2 -0
- package/dist/libs/footer/index.d.ts +1 -0
- package/dist/libs/footer/index.js +1 -0
- package/dist/libs/footer/src/components/Background/index.d.ts +4 -0
- package/dist/libs/footer/src/components/Background/index.ios.d.ts +4 -0
- package/dist/libs/footer/src/components/Background/index.ios.js +22 -0
- package/dist/libs/footer/src/components/Background/index.js +21 -0
- package/dist/libs/footer/src/components/Button/Text.d.ts +3 -0
- package/dist/libs/footer/src/components/Button/Text.js +18 -0
- package/dist/libs/footer/src/components/Button/index.d.ts +3 -0
- package/dist/libs/footer/src/components/Button/index.ios.d.ts +4 -0
- package/dist/libs/footer/src/components/Button/index.ios.js +30 -0
- package/dist/libs/footer/src/components/Button/index.js +55 -0
- package/dist/libs/footer/src/components/Button/types.d.ts +22 -0
- package/dist/libs/footer/src/components/Button/types.js +1 -0
- package/dist/libs/footer/src/components/Footer/index.d.ts +6 -0
- package/dist/libs/footer/src/components/Footer/index.ios.d.ts +7 -0
- package/dist/libs/footer/src/components/Footer/index.ios.js +9 -0
- package/dist/libs/footer/src/components/Footer/index.js +38 -0
- package/dist/libs/footer/src/components/View.d.ts +5 -0
- package/dist/libs/footer/src/components/View.js +11 -0
- package/dist/libs/footer/src/constants.d.ts +20 -0
- package/dist/libs/footer/src/constants.js +21 -0
- package/dist/libs/footer/src/index.d.ts +9 -0
- package/dist/libs/footer/src/index.js +7 -0
- package/dist/libs/login/index.d.ts +3 -0
- package/dist/libs/login/index.js +3 -0
- package/dist/libs/login/src/Pages/Home/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/Home/index.js +20 -0
- package/dist/libs/login/src/Pages/Home/types.d.ts +19 -0
- package/dist/libs/login/src/Pages/Home/types.js +1 -0
- package/dist/libs/login/src/Pages/Perfil.d.ts +5 -0
- package/dist/libs/login/src/Pages/Perfil.js +19 -0
- package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +9 -0
- package/dist/libs/login/src/Pages/SignIn/Form/Input.js +10 -0
- package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +6 -0
- package/dist/libs/login/src/Pages/SignIn/Form/index.js +34 -0
- package/dist/libs/login/src/Pages/SignIn/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/SignIn/index.js +149 -0
- package/dist/libs/login/src/Pages/SignIn/types.d.ts +31 -0
- package/dist/libs/login/src/Pages/SignIn/types.js +1 -0
- package/dist/libs/login/src/Pages/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/index.js +3 -0
- package/dist/libs/login/src/Pages/utils.d.ts +22 -0
- package/dist/libs/login/src/Pages/utils.js +24 -0
- package/dist/libs/login/src/Screen/Container.d.ts +4 -0
- package/dist/libs/login/src/Screen/Container.ios.d.ts +4 -0
- package/dist/libs/login/src/Screen/Container.ios.js +20 -0
- package/dist/libs/login/src/Screen/Container.js +25 -0
- package/dist/libs/login/src/Screen/components/Gradient.d.ts +6 -0
- package/dist/libs/login/src/Screen/components/Gradient.js +23 -0
- package/dist/libs/login/src/Screen/components/Input/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/Input/index.js +128 -0
- package/dist/libs/login/src/Screen/components/Input/types.d.ts +46 -0
- package/dist/libs/login/src/Screen/components/Input/types.js +1 -0
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +11 -0
- package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/SvgPytech.js +11 -0
- package/dist/libs/login/src/Screen/components/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/index.js +4 -0
- package/dist/libs/login/src/Screen/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/index.js +59 -0
- package/dist/libs/login/src/Screen/types.d.ts +14 -0
- package/dist/libs/login/src/Screen/types.js +1 -0
- package/dist/libs/login/src/constants.d.ts +98 -0
- package/dist/libs/login/src/constants.js +48 -0
- package/dist/libs/page/index.d.ts +1 -0
- package/dist/libs/page/index.js +1 -0
- package/dist/libs/page/src/components/Page/index.android.d.ts +4 -0
- package/dist/libs/page/src/components/Page/index.android.js +11 -0
- package/dist/libs/page/src/components/Page/index.d.ts +4 -0
- package/dist/libs/page/src/components/Page/index.js +7 -0
- package/dist/libs/page/src/components/PageWrapper/index.d.ts +6 -0
- package/dist/libs/page/src/components/PageWrapper/index.js +13 -0
- package/dist/libs/page/src/components/PageWrapper/types.d.ts +16 -0
- package/dist/libs/page/src/components/PageWrapper/types.js +1 -0
- package/dist/libs/page/src/components/Subtitle.d.ts +5 -0
- package/dist/libs/page/src/components/Subtitle.js +9 -0
- package/dist/libs/page/src/components/WithIcon/index.d.ts +3 -0
- package/dist/libs/page/src/components/WithIcon/index.js +47 -0
- package/dist/libs/page/src/components/WithIcon/types.d.ts +15 -0
- package/dist/libs/page/src/components/WithIcon/types.js +1 -0
- package/dist/libs/page/src/constants.d.ts +12 -0
- package/dist/libs/page/src/constants.js +12 -0
- package/dist/libs/pickerPage/index.d.ts +7 -0
- package/dist/libs/pickerPage/index.js +5 -0
- package/dist/libs/pickerPage/src/components/Content/index.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Content/index.ios.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Content/index.ios.js +19 -0
- package/dist/libs/pickerPage/src/components/Content/index.js +14 -0
- package/dist/libs/pickerPage/src/components/Content/types.d.ts +3 -0
- package/dist/libs/pickerPage/src/components/Content/types.js +1 -0
- package/dist/libs/pickerPage/src/components/Item/index.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Item/index.ios.d.ts +8 -0
- package/dist/libs/pickerPage/src/components/Item/index.ios.js +8 -0
- package/dist/libs/pickerPage/src/components/Item/index.js +14 -0
- package/dist/libs/pickerPage/src/components/Item/types.d.ts +28 -0
- package/dist/libs/pickerPage/src/components/Item/types.js +1 -0
- package/dist/libs/pickerPage/src/components/Page/index.d.ts +4 -0
- package/dist/libs/pickerPage/src/components/Page/index.js +22 -0
- package/dist/libs/pickerPage/src/components/Page/types.d.ts +30 -0
- package/dist/libs/pickerPage/src/components/Page/types.js +1 -0
- package/dist/libs/pickerPage/src/context/page.d.ts +7 -0
- package/dist/libs/pickerPage/src/context/page.js +2 -0
- package/dist/libs/providers/App/index.d.ts +10 -0
- package/dist/libs/providers/App/index.js +58 -0
- package/dist/libs/providers/App/types.d.ts +35 -0
- package/dist/libs/providers/App/types.js +1 -0
- package/dist/libs/providers/constants.d.ts +10 -0
- package/dist/libs/providers/constants.js +10 -0
- package/dist/libs/segmentedControl/index.d.ts +2 -0
- package/dist/libs/segmentedControl/index.js +2 -0
- package/dist/libs/segmentedControl/src/colors.d.ts +15 -0
- package/dist/libs/segmentedControl/src/colors.js +16 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +79 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +28 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Container/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Container/index.ios.js +15 -0
- package/dist/libs/segmentedControl/src/components/Container/index.js +18 -0
- package/dist/libs/segmentedControl/src/components/Container/types.d.ts +16 -0
- package/dist/libs/segmentedControl/src/components/Container/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Item/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Item/index.js +26 -0
- package/dist/libs/segmentedControl/src/components/Item/types.d.ts +20 -0
- package/dist/libs/segmentedControl/src/components/Item/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Segmented/index.js +93 -0
- package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +12 -0
- package/dist/libs/segmentedControl/src/components/Segmented/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +4 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/index.js +21 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +38 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/types.js +1 -0
- package/dist/libs/segmentedControl/src/context/shared.d.ts +11 -0
- package/dist/libs/segmentedControl/src/context/shared.js +13 -0
- package/dist/libs/segmentedControl/src/utils.d.ts +10 -0
- package/dist/libs/segmentedControl/src/utils.js +29 -0
- package/dist/libs/sql/index.d.ts +4 -0
- package/dist/libs/sql/index.js +4 -0
- package/dist/libs/sql/src/init.d.ts +24 -0
- package/dist/libs/sql/src/init.js +31 -0
- package/dist/libs/sql/src/queryLocal.d.ts +6 -0
- package/dist/libs/sql/src/queryLocal.js +15 -0
- package/dist/libs/sql/src/utils.d.ts +11 -0
- package/dist/libs/sql/src/utils.js +60 -0
- package/dist/libs/supabase/index.d.ts +4 -0
- package/dist/libs/supabase/index.js +2 -0
- package/dist/libs/supabase/src/clients/admin/config.d.ts +2 -0
- package/dist/libs/supabase/src/clients/admin/config.js +18 -0
- package/dist/libs/supabase/src/clients/admin/index.d.ts +9 -0
- package/dist/libs/supabase/src/clients/admin/index.js +7 -0
- package/dist/libs/supabase/src/clients/admin/utils.d.ts +5 -0
- package/dist/libs/supabase/src/clients/admin/utils.js +6 -0
- package/dist/libs/supabase/src/clients/app/config.d.ts +3 -0
- package/dist/libs/supabase/src/clients/app/config.js +31 -0
- package/dist/libs/supabase/src/clients/app/index.d.ts +16 -0
- package/dist/libs/supabase/src/clients/app/index.js +7 -0
- package/dist/libs/supabase/src/clients/app/utils.d.ts +12 -0
- package/dist/libs/supabase/src/clients/app/utils.js +10 -0
- package/dist/libs/supabase/src/utils/index.d.ts +20 -0
- package/dist/libs/supabase/src/utils/index.js +23 -0
- package/dist/libs/supabase/src/utils/types.d.ts +22 -0
- package/dist/libs/supabase/src/utils/types.js +1 -0
- package/dist/libs/swiftui/index.d.ts +9 -0
- package/dist/libs/swiftui/index.js +9 -0
- package/dist/libs/swiftui/src/components/Dialog/index.d.ts +4 -0
- package/dist/libs/swiftui/src/components/Dialog/index.js +22 -0
- package/dist/libs/swiftui/src/components/Dialog/types.d.ts +21 -0
- package/dist/libs/swiftui/src/components/Dialog/types.js +1 -0
- package/dist/libs/swiftui/src/components/Host.d.ts +6 -0
- package/dist/libs/swiftui/src/components/Host.js +5 -0
- package/dist/libs/swiftui/src/components/Icon.d.ts +10 -0
- package/dist/libs/swiftui/src/components/Icon.js +8 -0
- package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +25 -0
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +26 -0
- package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +7 -0
- package/dist/libs/swiftui/src/components/IconSection/Section.js +17 -0
- package/dist/libs/swiftui/src/components/IconSection/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/IconSection/index.js +5 -0
- package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +10 -0
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +20 -0
- package/dist/libs/swiftui/src/components/List/BaseList/types.d.ts +16 -0
- package/dist/libs/swiftui/src/components/List/BaseList/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +4 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/index.js +19 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/types.d.ts +16 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +5 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +36 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.d.ts +42 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/List/Editable/index.js +5 -0
- package/dist/libs/swiftui/src/components/List/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/List/index.js +5 -0
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +4 -0
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +14 -0
- package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +4 -0
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +14 -0
- package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +31 -0
- package/dist/libs/swiftui/src/components/NavigationLink/types.js +1 -0
- package/dist/libs/swiftui/src/components/Picker.d.ts +11 -0
- package/dist/libs/swiftui/src/components/Picker.js +14 -0
- package/dist/libs/swiftui/src/components/Text.d.ts +6 -0
- package/dist/libs/swiftui/src/components/Text.js +10 -0
- package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +22 -0
- package/dist/libs/swiftui/src/components/TextSubtitle.js +9 -0
- package/dist/libs/swiftui/src/context/ListEditable.d.ts +7 -0
- package/dist/libs/swiftui/src/context/ListEditable.js +2 -0
- package/dist/libs/table/index.d.ts +5 -0
- package/dist/libs/table/index.js +5 -0
- package/dist/libs/table/src/components/Borders.d.ts +6 -0
- package/dist/libs/table/src/components/Borders.js +84 -0
- package/dist/libs/table/src/components/Delete/index.d.ts +4 -0
- package/dist/libs/table/src/components/Delete/index.js +141 -0
- package/dist/libs/table/src/components/Delete/types.d.ts +27 -0
- package/dist/libs/table/src/components/Delete/types.js +1 -0
- package/dist/libs/table/src/components/Detail.d.ts +4 -0
- package/dist/libs/table/src/components/Detail.js +11 -0
- package/dist/libs/table/src/components/Option/index.d.ts +6 -0
- package/dist/libs/table/src/components/Option/index.js +106 -0
- package/dist/libs/table/src/components/Option/types.d.ts +61 -0
- package/dist/libs/table/src/components/Option/types.js +1 -0
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +6 -0
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +14 -0
- package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +6 -0
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +18 -0
- package/dist/libs/table/src/components/OptionComponents/icon.d.ts +10 -0
- package/dist/libs/table/src/components/OptionComponents/icon.js +12 -0
- package/dist/libs/table/src/components/OptionComponents/image.d.ts +9 -0
- package/dist/libs/table/src/components/OptionComponents/image.js +12 -0
- package/dist/libs/table/src/components/OptionComponents/index.d.ts +8 -0
- package/dist/libs/table/src/components/OptionComponents/index.js +8 -0
- package/dist/libs/table/src/components/OptionComponents/text.d.ts +22 -0
- package/dist/libs/table/src/components/OptionComponents/text.js +20 -0
- package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +25 -0
- package/dist/libs/table/src/components/OptionComponents/textInput.js +49 -0
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +8 -0
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +10 -0
- package/dist/libs/table/src/components/OptionComponents/textView.d.ts +14 -0
- package/dist/libs/table/src/components/OptionComponents/textView.js +18 -0
- package/dist/libs/table/src/components/OptionWrapper/index.d.ts +3 -0
- package/dist/libs/table/src/components/OptionWrapper/index.js +9 -0
- package/dist/libs/table/src/components/OptionWrapper/types.d.ts +37 -0
- package/dist/libs/table/src/components/OptionWrapper/types.js +1 -0
- package/dist/libs/table/src/components/Table/index.d.ts +3 -0
- package/dist/libs/table/src/components/Table/index.js +90 -0
- package/dist/libs/table/src/components/Table/types.d.ts +70 -0
- package/dist/libs/table/src/components/Table/types.js +1 -0
- package/dist/libs/table/src/components/Wrapper.d.ts +4 -0
- package/dist/libs/table/src/components/Wrapper.js +49 -0
- package/dist/libs/table/src/constants.d.ts +108 -0
- package/dist/libs/table/src/constants.js +107 -0
- package/dist/libs/table/src/context/borders.d.ts +10 -0
- package/dist/libs/table/src/context/borders.js +11 -0
- package/dist/libs/table/src/context/delete.d.ts +1 -0
- package/dist/libs/table/src/context/delete.js +2 -0
- package/dist/libs/table/src/context/table.d.ts +21 -0
- package/dist/libs/table/src/context/table.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type Props from './types';
|
|
3
|
+
/**
|
|
4
|
+
Wrapper de List que aplica un padding superior negativo por defecto.
|
|
5
|
+
|
|
6
|
+
Este componente extiende "List" de @expo/ui/swift-ui y agrega automáticamente:
|
|
7
|
+
- padding({ top: -15 })
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ children, modifiers, disablePaddingTop, listStyle, onRefresh, ...listProps }: Props) => React.JSX.Element>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { List } from '@expo/ui/swift-ui';
|
|
2
|
+
import { listStyle as listStyleModifier, padding, refreshable } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
Wrapper de List que aplica un padding superior negativo por defecto.
|
|
6
|
+
|
|
7
|
+
Este componente extiende "List" de @expo/ui/swift-ui y agrega automáticamente:
|
|
8
|
+
- padding({ top: -15 })
|
|
9
|
+
*/
|
|
10
|
+
export default memo(({ children, modifiers, disablePaddingTop, listStyle, onRefresh, ...listProps }) => {
|
|
11
|
+
const _modifiers = useMemo(() => [
|
|
12
|
+
...(modifiers ?? []),
|
|
13
|
+
...(listStyle ? [listStyleModifier(listStyle)] : []),
|
|
14
|
+
...(disablePaddingTop ? [] : [padding({ top: -15 })]),
|
|
15
|
+
...(onRefresh ? [refreshable(onRefresh)] : []),
|
|
16
|
+
], [modifiers, disablePaddingTop, onRefresh]);
|
|
17
|
+
return (<List modifiers={_modifiers} {...listProps}>
|
|
18
|
+
{children}
|
|
19
|
+
</List>);
|
|
20
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ListProps } from "@expo/ui/swift-ui";
|
|
2
|
+
type Props = ListProps & {
|
|
3
|
+
/**
|
|
4
|
+
Whether to disable the padding top of the list.
|
|
5
|
+
*/
|
|
6
|
+
disablePaddingTop?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
The style of the list.
|
|
9
|
+
*/
|
|
10
|
+
listStyle?: 'plain' | 'inset' | 'grouped';
|
|
11
|
+
/**
|
|
12
|
+
The function to handle the refresh event.
|
|
13
|
+
*/
|
|
14
|
+
onRefresh?: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { listStyle, environment, moveDisabled, deleteDisabled } from "@expo/ui/swift-ui/modifiers";
|
|
2
|
+
import React, { memo, useMemo } from "react";
|
|
3
|
+
import BaseList from "../../BaseList";
|
|
4
|
+
import { Provider } from '../../../../context/ListEditable';
|
|
5
|
+
export default memo(({ children, editMode, moveEnabled = false, deleteEnabled = false, modifiers, ...listProps }) => {
|
|
6
|
+
const _modifiers = useMemo(() => [
|
|
7
|
+
...(modifiers ?? []),
|
|
8
|
+
listStyle('inset'),
|
|
9
|
+
environment('editMode', editMode ? 'active' : 'inactive'),
|
|
10
|
+
...(moveEnabled ? [moveDisabled(false)] : []),
|
|
11
|
+
...(deleteEnabled ? [deleteDisabled(false)] : []),
|
|
12
|
+
], [modifiers, editMode, moveEnabled, deleteEnabled]);
|
|
13
|
+
const value = useMemo(() => ({ enableMove: moveEnabled, enableDelete: deleteEnabled }), [moveEnabled, deleteEnabled]);
|
|
14
|
+
return (<BaseList {...listProps} modifiers={_modifiers}>
|
|
15
|
+
<Provider value={value}>
|
|
16
|
+
{children}
|
|
17
|
+
</Provider>
|
|
18
|
+
</BaseList>);
|
|
19
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type BaseListProps from '../../BaseList/types';
|
|
2
|
+
type Props = BaseListProps & {
|
|
3
|
+
/**
|
|
4
|
+
Whether the list is on edit mode.
|
|
5
|
+
*/
|
|
6
|
+
editMode?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
Whether to enable the move of the items.
|
|
9
|
+
*/
|
|
10
|
+
moveEnabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
Whether to enable the delete of the items.
|
|
13
|
+
*/
|
|
14
|
+
deleteEnabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { List, Section } from "@expo/ui/swift-ui";
|
|
2
|
+
import { moveDisabled, tag, deleteDisabled } from "@expo/ui/swift-ui/modifiers";
|
|
3
|
+
import React, { memo, useCallback, useState } from "react";
|
|
4
|
+
import Hooks from '../../../../../../../libs/constants/hooks';
|
|
5
|
+
import { useListEditable } from "../../../../context/ListEditable";
|
|
6
|
+
function Component({ data = [], keyExtractor, onDelete, onMove, renderItem, sectionProps, }) {
|
|
7
|
+
// ---------------------- Variables ----------------------
|
|
8
|
+
const { enableMove, enableDelete } = useListEditable();
|
|
9
|
+
const [_data, setData] = useState(data ?? []);
|
|
10
|
+
Hooks.useEffectWithoutFirstRender(() => setData(data ?? []), [data]);
|
|
11
|
+
// ---------------------- Functions ----------------------
|
|
12
|
+
const handleDelete = useCallback((indices) => {
|
|
13
|
+
setData(prev => prev.filter((_, i) => !indices.includes(i)));
|
|
14
|
+
for (const index of indices)
|
|
15
|
+
onDelete?.({ index });
|
|
16
|
+
}, [onDelete]);
|
|
17
|
+
const handleMove = useCallback((sourceIndices, destination) => {
|
|
18
|
+
const adjustedDest = sourceIndices[0] < destination ? destination - 1 : destination;
|
|
19
|
+
setData(prev => {
|
|
20
|
+
const newData = [...prev];
|
|
21
|
+
const [removed] = newData.splice(sourceIndices[0], 1);
|
|
22
|
+
newData.splice(adjustedDest, 0, removed);
|
|
23
|
+
return newData;
|
|
24
|
+
});
|
|
25
|
+
onMove?.({ listIndexes: sourceIndices, destinationIndex: adjustedDest });
|
|
26
|
+
}, [onMove]);
|
|
27
|
+
return (<Section {...sectionProps}>
|
|
28
|
+
<List.ForEach onDelete={handleDelete} onMove={handleMove} modifiers={[moveDisabled(!enableMove), deleteDisabled(!enableDelete)]}>
|
|
29
|
+
{_data.map((item, index) => {
|
|
30
|
+
const key = keyExtractor?.(item) ?? index;
|
|
31
|
+
return renderItem?.({ item, tagModifier: tag(key) });
|
|
32
|
+
})}
|
|
33
|
+
</List.ForEach>
|
|
34
|
+
</Section>);
|
|
35
|
+
}
|
|
36
|
+
export default memo(Component);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ViewModifier } from "@expo/ui/swift-ui/modifiers";
|
|
2
|
+
import { SectionProps } from "@expo/ui/swift-ui";
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
/**
|
|
5
|
+
The data items to be rendered inside the list.
|
|
6
|
+
@default []
|
|
7
|
+
*/
|
|
8
|
+
data?: T[];
|
|
9
|
+
/**
|
|
10
|
+
The function to extract the key from the data item.
|
|
11
|
+
@example
|
|
12
|
+
keyExtractor={(item) => item.id}
|
|
13
|
+
*/
|
|
14
|
+
keyExtractor?: (item: T) => string | number;
|
|
15
|
+
/**
|
|
16
|
+
The function to handle the delete event.
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
onDelete?: ({ index }: {
|
|
20
|
+
index: number;
|
|
21
|
+
}) => void;
|
|
22
|
+
/**
|
|
23
|
+
The function to handle the move event.
|
|
24
|
+
*/
|
|
25
|
+
onMove?: ({ listIndexes, destinationIndex }: {
|
|
26
|
+
listIndexes: number[];
|
|
27
|
+
destinationIndex: number;
|
|
28
|
+
}) => void;
|
|
29
|
+
/**
|
|
30
|
+
The function to render the item.
|
|
31
|
+
The prop "modifier" is the modifier to be applied to the item [tag(key)].
|
|
32
|
+
*/
|
|
33
|
+
renderItem?: ({ item, tagModifier }: {
|
|
34
|
+
item: T;
|
|
35
|
+
tagModifier: ViewModifier;
|
|
36
|
+
}) => React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
The props to apply to the Section.
|
|
39
|
+
*/
|
|
40
|
+
sectionProps?: Omit<SectionProps, 'children'>;
|
|
41
|
+
};
|
|
42
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Spacer, Image, HStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import { Color } from 'expo-router';
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import Text from '../Text';
|
|
5
|
+
export default memo(({ text, textProps }) => {
|
|
6
|
+
return (<>
|
|
7
|
+
<Spacer />
|
|
8
|
+
{text ? (<HStack spacing={10}>
|
|
9
|
+
<Text {...textProps} secondary>{text}</Text>
|
|
10
|
+
<ChevronRight />
|
|
11
|
+
</HStack>) : (<ChevronRight />)}
|
|
12
|
+
</>);
|
|
13
|
+
});
|
|
14
|
+
const ChevronRight = memo(() => (<Image systemName='chevron.right' size={16} color={Color.ios.opaqueSeparator}/>));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Button, HStack, Label } from '@expo/ui/swift-ui';
|
|
2
|
+
import { listRowInsets as listRowInsetsModifier, foregroundStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
import Trailing from './Trailing';
|
|
5
|
+
export default memo(({ children, onPress, icon, label, systemImage, listRowInsets = false, trailingText, trailingTextProps }) => {
|
|
6
|
+
const modifiers = useMemo(() => listRowInsets ? [listRowInsetsModifier({ top: 20, bottom: 20, leading: 25, trailing: 20 })] : [], [listRowInsets]);
|
|
7
|
+
return (<HStack modifiers={modifiers}>
|
|
8
|
+
<Button onPress={onPress} modifiers={[foregroundStyle({ type: 'hierarchical', style: 'primary' })]}>
|
|
9
|
+
{children ?? (!systemImage ? <Label title={label} icon={icon}/> : undefined)}
|
|
10
|
+
</Button>
|
|
11
|
+
{systemImage && <Label title={label} systemImage={systemImage} icon={icon}/>}
|
|
12
|
+
<Trailing text={trailingText} textProps={trailingTextProps}/>
|
|
13
|
+
</HStack>);
|
|
14
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ButtonProps, LabelProps, TextProps } from "@expo/ui/swift-ui";
|
|
2
|
+
export type TrailingProps = {
|
|
3
|
+
/**
|
|
4
|
+
Text to display on the Trailing Stack.
|
|
5
|
+
*/
|
|
6
|
+
text?: string;
|
|
7
|
+
/**
|
|
8
|
+
TextProps to apply to the Trailing Stack text.
|
|
9
|
+
*/
|
|
10
|
+
textProps?: TextProps;
|
|
11
|
+
};
|
|
12
|
+
type Props = Pick<ButtonProps, 'children' | 'onPress' | 'systemImage' | 'label'> & {
|
|
13
|
+
/**
|
|
14
|
+
Whether to apply the listRowInsets modifier to the HStack.
|
|
15
|
+
@default false
|
|
16
|
+
*/
|
|
17
|
+
listRowInsets?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
Icon to display on the Label.
|
|
20
|
+
*/
|
|
21
|
+
icon?: LabelProps['icon'];
|
|
22
|
+
/**
|
|
23
|
+
Text to display on the Trailing Stack.
|
|
24
|
+
*/
|
|
25
|
+
trailingText?: TrailingProps['text'];
|
|
26
|
+
/**
|
|
27
|
+
TextProps to apply to the Trailing Stack text.
|
|
28
|
+
*/
|
|
29
|
+
trailingTextProps?: TrailingProps['textProps'];
|
|
30
|
+
};
|
|
31
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PickerProps } from '@expo/ui/swift-ui';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type Props = Omit<PickerProps, 'children'> & {
|
|
4
|
+
/**
|
|
5
|
+
The data items to be rendered inside the picker.
|
|
6
|
+
@default []
|
|
7
|
+
*/
|
|
8
|
+
data?: (string | number)[];
|
|
9
|
+
};
|
|
10
|
+
declare const _default: React.MemoExoticComponent<({ modifiers, data, ...pickerProps }: Props) => React.JSX.Element>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Picker, Text } from '@expo/ui/swift-ui';
|
|
2
|
+
import { pickerStyle, tag } from "@expo/ui/swift-ui/modifiers";
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
export default memo(({ modifiers, data = [], ...pickerProps }) => {
|
|
5
|
+
const _modifiers = useMemo(() => [
|
|
6
|
+
...(modifiers ?? []),
|
|
7
|
+
pickerStyle('menu'),
|
|
8
|
+
], [modifiers]);
|
|
9
|
+
return (<Picker modifiers={_modifiers} {...pickerProps}>
|
|
10
|
+
{data.map(item => (<Text key={item} modifiers={[tag(item)]}>
|
|
11
|
+
{item}
|
|
12
|
+
</Text>))}
|
|
13
|
+
</Picker>);
|
|
14
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Text } from '@expo/ui/swift-ui';
|
|
2
|
+
import { foregroundStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
export default memo(({ modifiers, secondary = false, ...restProps }) => {
|
|
5
|
+
const _modifiers = useMemo(() => [
|
|
6
|
+
...(modifiers ?? []),
|
|
7
|
+
...(secondary ? [foregroundStyle({ type: 'hierarchical', style: 'secondary' })] : []),
|
|
8
|
+
], [modifiers, secondary]);
|
|
9
|
+
return (<Text modifiers={_modifiers} {...restProps}/>);
|
|
10
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TextProps } from '@expo/ui/swift-ui';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
/**
|
|
5
|
+
Title to display in the label.
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
Subtitle to display in the label.
|
|
10
|
+
*/
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/**
|
|
13
|
+
Props to apply to the title.
|
|
14
|
+
*/
|
|
15
|
+
titleTextProps?: TextProps;
|
|
16
|
+
/**
|
|
17
|
+
Props to apply to the subtitle.
|
|
18
|
+
*/
|
|
19
|
+
subtitleTextProps?: TextProps;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.MemoExoticComponent<({ title, subtitle, titleTextProps, subtitleTextProps }: Props) => React.JSX.Element>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import React, { memo } from 'react';
|
|
3
|
+
import Text from './Text';
|
|
4
|
+
export default memo(({ title, subtitle, titleTextProps, subtitleTextProps }) => {
|
|
5
|
+
return (<VStack alignment='leading' spacing={2}>
|
|
6
|
+
<Text {...titleTextProps}>{title}</Text>
|
|
7
|
+
<Text {...subtitleTextProps} secondary>{subtitle}</Text>
|
|
8
|
+
</VStack>);
|
|
9
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default } from './src/components/Table';
|
|
2
|
+
export { useBorders, useStore, useTable } from './src/context/table';
|
|
3
|
+
export { useDelete } from './src/context/delete';
|
|
4
|
+
export { useBorder } from './src/context/borders';
|
|
5
|
+
export { type ColorThemeType, type ColorSchemeType, colors } from './src/constants';
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { useValue } from '@legendapp/state/react';
|
|
2
|
+
import React, { 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
|
+
});
|