native-pytech 1.0.125 → 1.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/app/assets/components/removeCircle.d.ts +0 -2
- package/dist/app/assets/components/removeCircle.js +0 -2
- package/dist/app/assets/components/reorderThreeOutline.d.ts +0 -2
- package/dist/app/assets/components/reorderThreeOutline.js +0 -2
- package/dist/app/assets/ionicons.d.ts +0 -2
- package/dist/app/assets/ionicons.js +0 -2
- package/dist/app/colorPage.d.ts +0 -1
- package/dist/app/colorPage.js +0 -1
- package/dist/app/components/closeButton.d.ts +0 -2
- package/dist/app/components/closeButton.js +0 -2
- package/dist/app/components/gradient.d.ts +0 -2
- package/dist/app/components/gradient.js +0 -2
- package/dist/app/components/link.d.ts +0 -2
- package/dist/app/components/link.js +0 -2
- package/dist/app/components/text.d.ts +0 -2
- package/dist/app/components/text.js +0 -2
- package/dist/app/components/theme.d.ts +0 -2
- package/dist/app/components/theme.js +0 -2
- package/dist/app/constants/colors.d.ts +0 -2
- package/dist/app/constants/colors.js +0 -2
- package/dist/app/constants/consts.d.ts +0 -1
- package/dist/app/constants/consts.js +0 -1
- package/dist/app/constants/formats.d.ts +0 -1
- package/dist/app/constants/formats.js +0 -1
- package/dist/app/constants/hooks.d.ts +0 -1
- package/dist/app/constants/hooks.js +0 -1
- package/dist/app/constants/utils.d.ts +0 -1
- package/dist/app/constants/utils.js +0 -1
- package/dist/app/editPage.d.ts +0 -1
- package/dist/app/editPage.js +0 -1
- package/dist/app/footer.d.ts +0 -2
- package/dist/app/footer.js +0 -2
- package/dist/app/login.d.ts +0 -2
- package/dist/app/login.js +0 -2
- package/dist/app/page.d.ts +0 -2
- package/dist/app/page.js +0 -2
- package/dist/app/pickerPage.d.ts +0 -1
- package/dist/app/pickerPage.js +0 -1
- package/dist/app/providers/app.d.ts +0 -2
- package/dist/app/providers/app.js +0 -2
- package/dist/app/segmentedControl.d.ts +0 -2
- package/dist/app/segmentedControl.js +0 -2
- package/dist/app/sql.d.ts +0 -2
- package/dist/app/sql.js +0 -2
- package/dist/app/supabase.d.ts +0 -2
- package/dist/app/supabase.js +0 -2
- package/dist/app/swiftui.d.ts +0 -1
- package/dist/app/swiftui.js +0 -1
- package/dist/app/table.d.ts +0 -2
- package/dist/app/table.js +0 -2
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -8
- package/dist/libs/assets/components/RemoveCircle.d.ts +0 -6
- package/dist/libs/assets/components/RemoveCircle.js +0 -25
- package/dist/libs/assets/components/ReorderThreeOutline.d.ts +0 -5
- package/dist/libs/assets/components/ReorderThreeOutline.js +0 -15
- package/dist/libs/assets/ionicons/Ionicons.d.ts +0 -35
- package/dist/libs/assets/ionicons/Ionicons.js +0 -16
- package/dist/libs/assets/ionicons/index.d.ts +0 -6
- package/dist/libs/assets/ionicons/index.js +0 -23
- package/dist/libs/colorPage/index.d.ts +0 -1
- package/dist/libs/colorPage/index.js +0 -1
- package/dist/libs/colorPage/src/Content/index.android.d.ts +0 -4
- package/dist/libs/colorPage/src/Content/index.android.js +0 -13
- package/dist/libs/colorPage/src/Content/index.d.ts +0 -3
- package/dist/libs/colorPage/src/Content/index.ios.d.ts +0 -4
- package/dist/libs/colorPage/src/Content/index.ios.js +0 -16
- package/dist/libs/colorPage/src/Content/index.js +0 -1
- package/dist/libs/colorPage/src/Content/types.d.ts +0 -10
- package/dist/libs/colorPage/src/Content/types.js +0 -1
- package/dist/libs/colorPage/src/Item/index.android.d.ts +0 -4
- package/dist/libs/colorPage/src/Item/index.android.js +0 -40
- package/dist/libs/colorPage/src/Item/index.d.ts +0 -3
- package/dist/libs/colorPage/src/Item/index.ios.d.ts +0 -4
- package/dist/libs/colorPage/src/Item/index.ios.js +0 -31
- package/dist/libs/colorPage/src/Item/index.js +0 -1
- package/dist/libs/colorPage/src/Item/types.d.ts +0 -13
- package/dist/libs/colorPage/src/Item/types.js +0 -1
- package/dist/libs/colorPage/src/Page/index.d.ts +0 -4
- package/dist/libs/colorPage/src/Page/index.js +0 -17
- package/dist/libs/colorPage/src/Page/types.d.ts +0 -27
- package/dist/libs/colorPage/src/Page/types.js +0 -1
- package/dist/libs/components/CloseButton.d.ts +0 -9
- package/dist/libs/components/CloseButton.js +0 -18
- package/dist/libs/components/Gradient/components/Gradient/index.d.ts +0 -4
- package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +0 -4
- package/dist/libs/components/Gradient/components/Gradient/index.ios.js +0 -35
- package/dist/libs/components/Gradient/components/Gradient/index.js +0 -33
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +0 -30
- package/dist/libs/components/Gradient/components/Gradient/types.js +0 -1
- package/dist/libs/components/Gradient/components/Icon/index.d.ts +0 -3
- package/dist/libs/components/Gradient/components/Icon/index.js +0 -1
- package/dist/libs/components/Gradient/components/Icon/types.d.ts +0 -16
- package/dist/libs/components/Gradient/components/Icon/types.js +0 -1
- package/dist/libs/components/Gradient/constants.d.ts +0 -97
- package/dist/libs/components/Gradient/constants.js +0 -98
- package/dist/libs/components/Gradient/index.d.ts +0 -3
- package/dist/libs/components/Gradient/index.js +0 -2
- package/dist/libs/components/Link.d.ts +0 -13
- package/dist/libs/components/Link.js +0 -20
- package/dist/libs/components/Text.d.ts +0 -6
- package/dist/libs/components/Text.js +0 -11
- package/dist/libs/components/Theme.d.ts +0 -9
- package/dist/libs/components/Theme.js +0 -10
- package/dist/libs/constants/colors.d.ts +0 -218
- package/dist/libs/constants/colors.js +0 -170
- package/dist/libs/constants/consts.d.ts +0 -13
- package/dist/libs/constants/consts.js +0 -23
- package/dist/libs/constants/formats.d.ts +0 -11
- package/dist/libs/constants/formats.js +0 -84
- package/dist/libs/constants/hooks.d.ts +0 -8
- package/dist/libs/constants/hooks.js +0 -59
- package/dist/libs/constants/utils.d.ts +0 -12
- package/dist/libs/constants/utils.js +0 -75
- package/dist/libs/editPage/index.d.ts +0 -9
- package/dist/libs/editPage/index.js +0 -7
- package/dist/libs/editPage/src/components/Item/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/Item/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/Item/index.ios.js +0 -12
- package/dist/libs/editPage/src/components/Item/index.js +0 -1
- package/dist/libs/editPage/src/components/Item/types.d.ts +0 -14
- package/dist/libs/editPage/src/components/Item/types.js +0 -1
- package/dist/libs/editPage/src/components/ItemDate/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/ItemDate/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/ItemDate/index.ios.js +0 -29
- package/dist/libs/editPage/src/components/ItemDate/index.js +0 -1
- package/dist/libs/editPage/src/components/ItemDate/types.d.ts +0 -25
- package/dist/libs/editPage/src/components/ItemDate/types.js +0 -1
- package/dist/libs/editPage/src/components/Screen/index.d.ts +0 -4
- package/dist/libs/editPage/src/components/Screen/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/Screen/index.ios.js +0 -8
- package/dist/libs/editPage/src/components/Screen/index.js +0 -1
- package/dist/libs/editPage/src/components/Screen/types.d.ts +0 -27
- package/dist/libs/editPage/src/components/Screen/types.js +0 -1
- package/dist/libs/editPage/src/components/TextField/index.d.ts +0 -3
- package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +0 -4
- package/dist/libs/editPage/src/components/TextField/index.ios.js +0 -35
- package/dist/libs/editPage/src/components/TextField/index.js +0 -1
- package/dist/libs/editPage/src/components/TextField/types.d.ts +0 -32
- package/dist/libs/editPage/src/components/TextField/types.js +0 -1
- package/dist/libs/editPage/src/components/Wrapper/index.d.ts +0 -4
- package/dist/libs/editPage/src/components/Wrapper/index.js +0 -84
- package/dist/libs/editPage/src/components/Wrapper/types.d.ts +0 -23
- package/dist/libs/editPage/src/components/Wrapper/types.js +0 -1
- package/dist/libs/editPage/src/context/page.d.ts +0 -13
- package/dist/libs/editPage/src/context/page.js +0 -2
- package/dist/libs/footer/index.d.ts +0 -1
- package/dist/libs/footer/index.js +0 -1
- package/dist/libs/footer/src/components/Background/index.d.ts +0 -4
- package/dist/libs/footer/src/components/Background/index.ios.d.ts +0 -4
- package/dist/libs/footer/src/components/Background/index.ios.js +0 -22
- package/dist/libs/footer/src/components/Background/index.js +0 -21
- package/dist/libs/footer/src/components/Button/Text.d.ts +0 -3
- package/dist/libs/footer/src/components/Button/Text.js +0 -18
- package/dist/libs/footer/src/components/Button/index.d.ts +0 -3
- package/dist/libs/footer/src/components/Button/index.ios.d.ts +0 -4
- package/dist/libs/footer/src/components/Button/index.ios.js +0 -30
- package/dist/libs/footer/src/components/Button/index.js +0 -55
- package/dist/libs/footer/src/components/Button/types.d.ts +0 -22
- package/dist/libs/footer/src/components/Button/types.js +0 -1
- package/dist/libs/footer/src/components/Footer/index.d.ts +0 -6
- package/dist/libs/footer/src/components/Footer/index.ios.d.ts +0 -7
- package/dist/libs/footer/src/components/Footer/index.ios.js +0 -9
- package/dist/libs/footer/src/components/Footer/index.js +0 -38
- package/dist/libs/footer/src/components/View.d.ts +0 -5
- package/dist/libs/footer/src/components/View.js +0 -11
- package/dist/libs/footer/src/constants.d.ts +0 -20
- package/dist/libs/footer/src/constants.js +0 -21
- package/dist/libs/footer/src/index.d.ts +0 -9
- package/dist/libs/footer/src/index.js +0 -7
- package/dist/libs/login/index.d.ts +0 -3
- package/dist/libs/login/index.js +0 -3
- package/dist/libs/login/src/Pages/Home/index.d.ts +0 -3
- package/dist/libs/login/src/Pages/Home/index.js +0 -20
- package/dist/libs/login/src/Pages/Home/types.d.ts +0 -19
- package/dist/libs/login/src/Pages/Home/types.js +0 -1
- package/dist/libs/login/src/Pages/Perfil.d.ts +0 -5
- package/dist/libs/login/src/Pages/Perfil.js +0 -19
- package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +0 -9
- package/dist/libs/login/src/Pages/SignIn/Form/Input.js +0 -10
- package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +0 -6
- package/dist/libs/login/src/Pages/SignIn/Form/index.js +0 -34
- package/dist/libs/login/src/Pages/SignIn/index.d.ts +0 -3
- package/dist/libs/login/src/Pages/SignIn/index.js +0 -149
- package/dist/libs/login/src/Pages/SignIn/types.d.ts +0 -31
- package/dist/libs/login/src/Pages/SignIn/types.js +0 -1
- package/dist/libs/login/src/Pages/index.d.ts +0 -3
- package/dist/libs/login/src/Pages/index.js +0 -3
- package/dist/libs/login/src/Pages/utils.d.ts +0 -22
- package/dist/libs/login/src/Pages/utils.js +0 -24
- package/dist/libs/login/src/Screen/Container.d.ts +0 -4
- package/dist/libs/login/src/Screen/Container.ios.d.ts +0 -4
- package/dist/libs/login/src/Screen/Container.ios.js +0 -20
- package/dist/libs/login/src/Screen/Container.js +0 -25
- package/dist/libs/login/src/Screen/components/Gradient.d.ts +0 -6
- package/dist/libs/login/src/Screen/components/Gradient.js +0 -23
- package/dist/libs/login/src/Screen/components/Input/index.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/Input/index.js +0 -128
- package/dist/libs/login/src/Screen/components/Input/types.d.ts +0 -46
- package/dist/libs/login/src/Screen/components/Input/types.js +0 -1
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +0 -11
- package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/SvgPytech.js +0 -11
- package/dist/libs/login/src/Screen/components/index.d.ts +0 -4
- package/dist/libs/login/src/Screen/components/index.js +0 -4
- package/dist/libs/login/src/Screen/index.d.ts +0 -4
- package/dist/libs/login/src/Screen/index.js +0 -59
- package/dist/libs/login/src/Screen/types.d.ts +0 -14
- package/dist/libs/login/src/Screen/types.js +0 -1
- package/dist/libs/login/src/constants.d.ts +0 -98
- package/dist/libs/login/src/constants.js +0 -48
- package/dist/libs/page/index.d.ts +0 -1
- package/dist/libs/page/index.js +0 -1
- package/dist/libs/page/src/components/Page/index.android.d.ts +0 -4
- package/dist/libs/page/src/components/Page/index.android.js +0 -11
- package/dist/libs/page/src/components/Page/index.d.ts +0 -4
- package/dist/libs/page/src/components/Page/index.js +0 -7
- package/dist/libs/page/src/components/PageWrapper/index.d.ts +0 -6
- package/dist/libs/page/src/components/PageWrapper/index.js +0 -13
- package/dist/libs/page/src/components/PageWrapper/types.d.ts +0 -16
- package/dist/libs/page/src/components/PageWrapper/types.js +0 -1
- package/dist/libs/page/src/components/Subtitle.d.ts +0 -5
- package/dist/libs/page/src/components/Subtitle.js +0 -9
- package/dist/libs/page/src/components/WithIcon/index.d.ts +0 -3
- package/dist/libs/page/src/components/WithIcon/index.js +0 -47
- package/dist/libs/page/src/components/WithIcon/types.d.ts +0 -15
- package/dist/libs/page/src/components/WithIcon/types.js +0 -1
- package/dist/libs/page/src/constants.d.ts +0 -12
- package/dist/libs/page/src/constants.js +0 -12
- package/dist/libs/pickerPage/index.d.ts +0 -7
- package/dist/libs/pickerPage/index.js +0 -5
- package/dist/libs/pickerPage/src/Content/index.d.ts +0 -3
- package/dist/libs/pickerPage/src/Content/index.ios.d.ts +0 -4
- package/dist/libs/pickerPage/src/Content/index.ios.js +0 -19
- package/dist/libs/pickerPage/src/Content/index.js +0 -1
- package/dist/libs/pickerPage/src/Content/types.d.ts +0 -3
- package/dist/libs/pickerPage/src/Content/types.js +0 -1
- package/dist/libs/pickerPage/src/Item/index.d.ts +0 -3
- package/dist/libs/pickerPage/src/Item/index.ios.d.ts +0 -8
- package/dist/libs/pickerPage/src/Item/index.ios.js +0 -8
- package/dist/libs/pickerPage/src/Item/index.js +0 -1
- package/dist/libs/pickerPage/src/Item/types.d.ts +0 -23
- package/dist/libs/pickerPage/src/Item/types.js +0 -1
- package/dist/libs/pickerPage/src/Page/index.d.ts +0 -4
- package/dist/libs/pickerPage/src/Page/index.js +0 -22
- package/dist/libs/pickerPage/src/Page/types.d.ts +0 -30
- package/dist/libs/pickerPage/src/Page/types.js +0 -1
- package/dist/libs/providers/App/index.d.ts +0 -10
- package/dist/libs/providers/App/index.js +0 -58
- package/dist/libs/providers/App/types.d.ts +0 -35
- package/dist/libs/providers/App/types.js +0 -1
- package/dist/libs/providers/constants.d.ts +0 -10
- package/dist/libs/providers/constants.js +0 -10
- package/dist/libs/segmentedControl/index.d.ts +0 -2
- package/dist/libs/segmentedControl/index.js +0 -2
- package/dist/libs/segmentedControl/src/colors.d.ts +0 -15
- package/dist/libs/segmentedControl/src/colors.js +0 -16
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +0 -79
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +0 -28
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Container/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Container/index.ios.js +0 -15
- package/dist/libs/segmentedControl/src/components/Container/index.js +0 -18
- package/dist/libs/segmentedControl/src/components/Container/types.d.ts +0 -16
- package/dist/libs/segmentedControl/src/components/Container/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Item/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Item/index.js +0 -26
- package/dist/libs/segmentedControl/src/components/Item/types.d.ts +0 -20
- package/dist/libs/segmentedControl/src/components/Item/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Segmented/index.js +0 -93
- package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +0 -12
- package/dist/libs/segmentedControl/src/components/Segmented/types.js +0 -1
- package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +0 -4
- package/dist/libs/segmentedControl/src/components/Wrapper/index.js +0 -21
- package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +0 -38
- package/dist/libs/segmentedControl/src/components/Wrapper/types.js +0 -1
- package/dist/libs/segmentedControl/src/context/shared.d.ts +0 -11
- package/dist/libs/segmentedControl/src/context/shared.js +0 -13
- package/dist/libs/segmentedControl/src/utils.d.ts +0 -10
- package/dist/libs/segmentedControl/src/utils.js +0 -29
- package/dist/libs/sql/index.d.ts +0 -4
- package/dist/libs/sql/index.js +0 -4
- package/dist/libs/sql/src/init.d.ts +0 -24
- package/dist/libs/sql/src/init.js +0 -31
- package/dist/libs/sql/src/queryLocal.d.ts +0 -6
- package/dist/libs/sql/src/queryLocal.js +0 -15
- package/dist/libs/sql/src/utils.d.ts +0 -11
- package/dist/libs/sql/src/utils.js +0 -60
- package/dist/libs/supabase/index.d.ts +0 -4
- package/dist/libs/supabase/index.js +0 -2
- package/dist/libs/supabase/src/clients/admin/config.d.ts +0 -2
- package/dist/libs/supabase/src/clients/admin/config.js +0 -18
- package/dist/libs/supabase/src/clients/admin/index.d.ts +0 -9
- package/dist/libs/supabase/src/clients/admin/index.js +0 -7
- package/dist/libs/supabase/src/clients/admin/utils.d.ts +0 -5
- package/dist/libs/supabase/src/clients/admin/utils.js +0 -6
- package/dist/libs/supabase/src/clients/app/config.d.ts +0 -3
- package/dist/libs/supabase/src/clients/app/config.js +0 -31
- package/dist/libs/supabase/src/clients/app/index.d.ts +0 -16
- package/dist/libs/supabase/src/clients/app/index.js +0 -7
- package/dist/libs/supabase/src/clients/app/utils.d.ts +0 -12
- package/dist/libs/supabase/src/clients/app/utils.js +0 -10
- package/dist/libs/supabase/src/utils/index.d.ts +0 -20
- package/dist/libs/supabase/src/utils/index.js +0 -23
- package/dist/libs/supabase/src/utils/types.d.ts +0 -22
- package/dist/libs/supabase/src/utils/types.js +0 -1
- package/dist/libs/swiftui/index.d.ts +0 -9
- package/dist/libs/swiftui/index.js +0 -9
- package/dist/libs/swiftui/src/components/Dialog/index.d.ts +0 -4
- package/dist/libs/swiftui/src/components/Dialog/index.js +0 -22
- package/dist/libs/swiftui/src/components/Dialog/types.d.ts +0 -21
- package/dist/libs/swiftui/src/components/Dialog/types.js +0 -1
- package/dist/libs/swiftui/src/components/Host.d.ts +0 -6
- package/dist/libs/swiftui/src/components/Host.js +0 -5
- package/dist/libs/swiftui/src/components/Icon.d.ts +0 -10
- package/dist/libs/swiftui/src/components/Icon.js +0 -8
- package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +0 -25
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +0 -26
- package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +0 -7
- package/dist/libs/swiftui/src/components/IconSection/Section.js +0 -17
- package/dist/libs/swiftui/src/components/IconSection/index.d.ts +0 -7
- package/dist/libs/swiftui/src/components/IconSection/index.js +0 -5
- package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +0 -10
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +0 -20
- package/dist/libs/swiftui/src/components/List/BaseList/types.d.ts +0 -16
- package/dist/libs/swiftui/src/components/List/BaseList/types.js +0 -1
- package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +0 -4
- package/dist/libs/swiftui/src/components/List/Editable/List/index.js +0 -19
- package/dist/libs/swiftui/src/components/List/Editable/List/types.d.ts +0 -16
- package/dist/libs/swiftui/src/components/List/Editable/List/types.js +0 -1
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +0 -5
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +0 -36
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.d.ts +0 -42
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.js +0 -1
- package/dist/libs/swiftui/src/components/List/Editable/index.d.ts +0 -7
- package/dist/libs/swiftui/src/components/List/Editable/index.js +0 -5
- package/dist/libs/swiftui/src/components/List/index.d.ts +0 -7
- package/dist/libs/swiftui/src/components/List/index.js +0 -5
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +0 -4
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +0 -14
- package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +0 -4
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +0 -14
- package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +0 -31
- package/dist/libs/swiftui/src/components/NavigationLink/types.js +0 -1
- package/dist/libs/swiftui/src/components/Picker.d.ts +0 -11
- package/dist/libs/swiftui/src/components/Picker.js +0 -14
- package/dist/libs/swiftui/src/components/Text.d.ts +0 -6
- package/dist/libs/swiftui/src/components/Text.js +0 -10
- package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +0 -22
- package/dist/libs/swiftui/src/components/TextSubtitle.js +0 -9
- package/dist/libs/swiftui/src/context/ListEditable.d.ts +0 -7
- package/dist/libs/swiftui/src/context/ListEditable.js +0 -2
- package/dist/libs/table/index.d.ts +0 -5
- package/dist/libs/table/index.js +0 -5
- package/dist/libs/table/src/components/Borders.d.ts +0 -6
- package/dist/libs/table/src/components/Borders.js +0 -84
- package/dist/libs/table/src/components/Delete/index.d.ts +0 -4
- package/dist/libs/table/src/components/Delete/index.js +0 -141
- package/dist/libs/table/src/components/Delete/types.d.ts +0 -27
- package/dist/libs/table/src/components/Delete/types.js +0 -1
- package/dist/libs/table/src/components/Detail.d.ts +0 -4
- package/dist/libs/table/src/components/Detail.js +0 -11
- package/dist/libs/table/src/components/Option/index.d.ts +0 -6
- package/dist/libs/table/src/components/Option/index.js +0 -106
- package/dist/libs/table/src/components/Option/types.d.ts +0 -61
- package/dist/libs/table/src/components/Option/types.js +0 -1
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +0 -6
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +0 -14
- package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +0 -6
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +0 -18
- package/dist/libs/table/src/components/OptionComponents/icon.d.ts +0 -10
- package/dist/libs/table/src/components/OptionComponents/icon.js +0 -12
- package/dist/libs/table/src/components/OptionComponents/image.d.ts +0 -9
- package/dist/libs/table/src/components/OptionComponents/image.js +0 -12
- package/dist/libs/table/src/components/OptionComponents/index.d.ts +0 -8
- package/dist/libs/table/src/components/OptionComponents/index.js +0 -8
- package/dist/libs/table/src/components/OptionComponents/text.d.ts +0 -22
- package/dist/libs/table/src/components/OptionComponents/text.js +0 -20
- package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +0 -25
- package/dist/libs/table/src/components/OptionComponents/textInput.js +0 -49
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +0 -8
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +0 -10
- package/dist/libs/table/src/components/OptionComponents/textView.d.ts +0 -14
- package/dist/libs/table/src/components/OptionComponents/textView.js +0 -18
- package/dist/libs/table/src/components/OptionWrapper/index.d.ts +0 -3
- package/dist/libs/table/src/components/OptionWrapper/index.js +0 -9
- package/dist/libs/table/src/components/OptionWrapper/types.d.ts +0 -37
- package/dist/libs/table/src/components/OptionWrapper/types.js +0 -1
- package/dist/libs/table/src/components/Table/index.d.ts +0 -3
- package/dist/libs/table/src/components/Table/index.js +0 -90
- package/dist/libs/table/src/components/Table/types.d.ts +0 -70
- package/dist/libs/table/src/components/Table/types.js +0 -1
- package/dist/libs/table/src/components/Wrapper.d.ts +0 -4
- package/dist/libs/table/src/components/Wrapper.js +0 -49
- package/dist/libs/table/src/constants.d.ts +0 -108
- package/dist/libs/table/src/constants.js +0 -107
- package/dist/libs/table/src/context/borders.d.ts +0 -10
- package/dist/libs/table/src/context/borders.js +0 -11
- package/dist/libs/table/src/context/delete.d.ts +0 -1
- package/dist/libs/table/src/context/delete.js +0 -2
- package/dist/libs/table/src/context/table.d.ts +0 -21
- package/dist/libs/table/src/context/table.js +0 -4
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
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);
|
|
@@ -1,42 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
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}/>));
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,5 +0,0 @@
|
|
|
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';
|
package/dist/libs/table/index.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
});
|