native-pytech 1.0.1
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/LICENSE +21 -0
- package/README.md +30 -0
- 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/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/handleFontObserver.d.ts +2 -0
- package/dist/app/constants/handleFontObserver.js +2 -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/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/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/images/android-icon-background-nuevo.png +0 -0
- package/dist/libs/assets/images/android-icon-background.png +0 -0
- package/dist/libs/assets/images/android-icon-foreground-nuevo.png +0 -0
- package/dist/libs/assets/images/android-icon-foreground-nuevo2.png +0 -0
- package/dist/libs/assets/images/android-icon-foreground.png +0 -0
- package/dist/libs/assets/images/android-icon-monochrome.png +0 -0
- package/dist/libs/assets/images/arrow.png +0 -0
- package/dist/libs/assets/images/check.svg +1 -0
- package/dist/libs/assets/images/favicon.ico +0 -0
- package/dist/libs/assets/images/favicon.png +0 -0
- package/dist/libs/assets/images/flecha-hacia-abajo.png +0 -0
- package/dist/libs/assets/images/icon-viejo.png +0 -0
- package/dist/libs/assets/images/icon.png +0 -0
- package/dist/libs/assets/images/icono_tango.svg +1 -0
- package/dist/libs/assets/images/incoming-call.png +0 -0
- package/dist/libs/assets/images/incoming.png +0 -0
- package/dist/libs/assets/images/login.png +0 -0
- package/dist/libs/assets/images/login_apple.svg +28 -0
- package/dist/libs/assets/images/login_letras.svg +41 -0
- package/dist/libs/assets/images/login_letras_dark.svg +41 -0
- package/dist/libs/assets/images/login_sol.svg +59 -0
- package/dist/libs/assets/images/login_transparente.png +0 -0
- package/dist/libs/assets/images/logo_letras.svg +29 -0
- package/dist/libs/assets/images/logo_letras_dark.svg +29 -0
- package/dist/libs/assets/images/partial-react-logo.png +0 -0
- package/dist/libs/assets/images/pencil.png +0 -0
- package/dist/libs/assets/images/react-logo.png +0 -0
- package/dist/libs/assets/images/react-logo@2x.png +0 -0
- package/dist/libs/assets/images/react-logo@3x.png +0 -0
- package/dist/libs/assets/images/remove-circle.svg +4 -0
- package/dist/libs/assets/images/splash-icon.png +0 -0
- package/dist/libs/assets/images/test.svg +22 -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/components/CloseButton.d.ts +9 -0
- package/dist/libs/components/CloseButton.js +19 -0
- package/dist/libs/components/Gradient/constants.d.ts +80 -0
- package/dist/libs/components/Gradient/constants.js +34 -0
- package/dist/libs/components/Gradient/index.d.ts +21 -0
- package/dist/libs/components/Gradient/index.js +33 -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/handleFontObserver.d.ts +2 -0
- package/dist/libs/constants/handleFontObserver.js +18 -0
- package/dist/libs/constants/hooks.d.ts +5 -0
- package/dist/libs/constants/hooks.js +50 -0
- package/dist/libs/constants/utils.d.ts +10 -0
- package/dist/libs/constants/utils.js +69 -0
- package/dist/libs/footer/index.d.ts +1 -0
- package/dist/libs/footer/index.js +1 -0
- package/dist/libs/footer/src/Background/index.d.ts +4 -0
- package/dist/libs/footer/src/Background/index.ios.d.ts +4 -0
- package/dist/libs/footer/src/Background/index.ios.js +22 -0
- package/dist/libs/footer/src/Background/index.js +21 -0
- package/dist/libs/footer/src/Button/Text.d.ts +3 -0
- package/dist/libs/footer/src/Button/Text.js +18 -0
- package/dist/libs/footer/src/Button/index.d.ts +3 -0
- package/dist/libs/footer/src/Button/index.ios.d.ts +3 -0
- package/dist/libs/footer/src/Button/index.ios.js +52 -0
- package/dist/libs/footer/src/Button/index.js +55 -0
- package/dist/libs/footer/src/Button/types.d.ts +20 -0
- package/dist/libs/footer/src/Button/types.js +1 -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 +3 -0
- package/dist/libs/footer/src/index.js +40 -0
- package/dist/libs/footer/src/types.d.ts +9 -0
- package/dist/libs/footer/src/types.js +1 -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 +20 -0
- package/dist/libs/login/src/Pages/utils.js +49 -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/providers/App/index.d.ts +10 -0
- package/dist/libs/providers/App/index.js +62 -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 +56 -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 +8 -0
- package/dist/libs/supabase/src/clients/admin/index.js +7 -0
- package/dist/libs/supabase/src/clients/admin/utils.d.ts +4 -0
- package/dist/libs/supabase/src/clients/admin/utils.js +5 -0
- package/dist/libs/supabase/src/clients/app/config.d.ts +3 -0
- package/dist/libs/supabase/src/clients/app/config.js +30 -0
- package/dist/libs/supabase/src/clients/app/index.d.ts +15 -0
- package/dist/libs/supabase/src/clients/app/index.js +7 -0
- package/dist/libs/supabase/src/clients/app/utils.d.ts +11 -0
- package/dist/libs/supabase/src/clients/app/utils.js +9 -0
- package/dist/libs/supabase/src/utils/index.d.ts +18 -0
- package/dist/libs/supabase/src/utils/index.js +21 -0
- package/dist/libs/supabase/src/utils/types.d.ts +20 -0
- package/dist/libs/supabase/src/utils/types.js +1 -0
- package/dist/libs/swiftui/index.d.ts +7 -0
- package/dist/libs/swiftui/index.js +7 -0
- package/dist/libs/swiftui/src/Icon.d.ts +10 -0
- package/dist/libs/swiftui/src/Icon.js +8 -0
- package/dist/libs/swiftui/src/IconSection/Icon.d.ts +27 -0
- package/dist/libs/swiftui/src/IconSection/Icon.js +31 -0
- package/dist/libs/swiftui/src/IconSection/Section.d.ts +7 -0
- package/dist/libs/swiftui/src/IconSection/Section.js +16 -0
- package/dist/libs/swiftui/src/IconSection/index.d.ts +7 -0
- package/dist/libs/swiftui/src/IconSection/index.js +5 -0
- package/dist/libs/swiftui/src/List/Editable/index.d.ts +5 -0
- package/dist/libs/swiftui/src/List/Editable/index.js +51 -0
- package/dist/libs/swiftui/src/List/Editable/types.d.ts +76 -0
- package/dist/libs/swiftui/src/List/Editable/types.js +1 -0
- package/dist/libs/swiftui/src/List/index.d.ts +16 -0
- package/dist/libs/swiftui/src/List/index.js +21 -0
- package/dist/libs/swiftui/src/NavigationLink/Trailing.d.ts +4 -0
- package/dist/libs/swiftui/src/NavigationLink/Trailing.js +14 -0
- package/dist/libs/swiftui/src/NavigationLink/index.d.ts +4 -0
- package/dist/libs/swiftui/src/NavigationLink/index.js +20 -0
- package/dist/libs/swiftui/src/NavigationLink/types.d.ts +27 -0
- package/dist/libs/swiftui/src/NavigationLink/types.js +1 -0
- package/dist/libs/swiftui/src/Picker.d.ts +11 -0
- package/dist/libs/swiftui/src/Picker.js +11 -0
- package/dist/libs/swiftui/src/Text.d.ts +6 -0
- package/dist/libs/swiftui/src/Text.js +7 -0
- package/dist/libs/swiftui/src/TextSubtitle.d.ts +22 -0
- package/dist/libs/swiftui/src/TextSubtitle.js +9 -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 +83 -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 +16 -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 +9 -0
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +17 -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 +35 -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 +73 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
Pone el padding según el typeOption.
|
|
5
|
+
*/
|
|
6
|
+
export default memo(({ children, style = {}, isSingleLine, ...props }) => {
|
|
7
|
+
isSingleLine = useMemo(() => isSingleLine ?? (React.Children.count(children) <= 1), [children]);
|
|
8
|
+
const containerStyle = useMemo(() => [styles.container, { paddingVertical: isSingleLine ? 16.35 : 10 }, style], [isSingleLine, style]);
|
|
9
|
+
return (<View style={containerStyle} {...props}>
|
|
10
|
+
{children}
|
|
11
|
+
</View>);
|
|
12
|
+
});
|
|
13
|
+
const styles = StyleSheet.create({
|
|
14
|
+
container: {
|
|
15
|
+
flexDirection: 'column',
|
|
16
|
+
gap: 2,
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import ThemeComponent from '../../../../../libs/components/Theme';
|
|
3
|
+
import * as OptionComponents from '../OptionComponents';
|
|
4
|
+
import Wrapper from '../Wrapper';
|
|
5
|
+
const OptionWrapper = memo(({ ...props }) => {
|
|
6
|
+
return <ThemeComponent component={Wrapper} {...props}/>;
|
|
7
|
+
});
|
|
8
|
+
OptionWrapper.Components = OptionComponents;
|
|
9
|
+
export default OptionWrapper;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ViewProps } from "react-native";
|
|
3
|
+
import { type ColorSchemeType } from "../../constants";
|
|
4
|
+
import OptionProps from "../Option/types";
|
|
5
|
+
import { DeleteIcon, DragIcon, Icon, Image, Text, TextInput, TextInputCurrency, TextView } from '../OptionComponents';
|
|
6
|
+
export type Props = OptionProps & {
|
|
7
|
+
id: string;
|
|
8
|
+
isAnimated: boolean;
|
|
9
|
+
/**
|
|
10
|
+
Borde de la opción.
|
|
11
|
+
Es un dict con { left: 17, right: 16 } por defecto.
|
|
12
|
+
*/
|
|
13
|
+
borders: {
|
|
14
|
+
color: string | null;
|
|
15
|
+
shownTop: boolean | null;
|
|
16
|
+
shownBottom: boolean | null;
|
|
17
|
+
left: number;
|
|
18
|
+
right: number;
|
|
19
|
+
} | undefined;
|
|
20
|
+
} & ViewProps;
|
|
21
|
+
export type OptionComponent = React.MemoExoticComponent<React.FC<Props & {
|
|
22
|
+
colorScheme?: ColorSchemeType;
|
|
23
|
+
}>> & {
|
|
24
|
+
Components: {
|
|
25
|
+
DeleteIcon: typeof DeleteIcon;
|
|
26
|
+
DragIcon: typeof DragIcon;
|
|
27
|
+
Icon: typeof Icon;
|
|
28
|
+
Image: typeof Image;
|
|
29
|
+
Text: typeof Text;
|
|
30
|
+
TextInput: typeof TextInput;
|
|
31
|
+
TextInputCurrency: typeof TextInputCurrency;
|
|
32
|
+
TextView: typeof TextView;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { useObservable } from '@legendapp/state/react';
|
|
2
|
+
import React, { memo, useMemo } from 'react';
|
|
3
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
4
|
+
import Animated, { Easing, FadeIn, FadeOut, LinearTransition } from 'react-native-reanimated';
|
|
5
|
+
import colors from '../../constants';
|
|
6
|
+
import { useEffectWithoutFirstRender } from '../../../../../libs/constants/hooks';
|
|
7
|
+
import { useApp } from '../../../../../libs/providers/App';
|
|
8
|
+
import { isLowTier } from '../../../../../libs/constants/consts';
|
|
9
|
+
import { BordersProvider, StoreProvider, TableProvider } from '../../context/table';
|
|
10
|
+
import OptionWrapper from '../OptionWrapper';
|
|
11
|
+
import Detail from '../Detail';
|
|
12
|
+
const Table = memo(({ children, title, renderDetail, colorThemeType = 'default', type = 'default', style, contentContainerStyle, allBorders = false, keys, }) => {
|
|
13
|
+
// ------------- Variables -------------
|
|
14
|
+
const { colorScheme } = useApp();
|
|
15
|
+
const Theme = colors.theme[colorScheme];
|
|
16
|
+
const store = useObservable({
|
|
17
|
+
pressed_id: null,
|
|
18
|
+
deleted: {
|
|
19
|
+
setted: false,
|
|
20
|
+
id: null,
|
|
21
|
+
keys: keys,
|
|
22
|
+
lastId: (() => {
|
|
23
|
+
const newKeys = store.deleted.keys.get();
|
|
24
|
+
return (newKeys?.[newKeys.length - 1] ?? null);
|
|
25
|
+
}),
|
|
26
|
+
firstId: (() => {
|
|
27
|
+
const newKeys = store.deleted.keys.get();
|
|
28
|
+
return (newKeys?.[0] ?? null);
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
borders: new Map()
|
|
32
|
+
});
|
|
33
|
+
const layoutAnimation = isLowTier ? LinearTransition.duration(500) : LinearTransition.easing(Easing.bezier(0.2, 0.2, 0, 1)).duration(600);
|
|
34
|
+
// ------------- useEffect -------------
|
|
35
|
+
useEffectWithoutFirstRender(() => store.deleted.keys.set(keys), [keys]);
|
|
36
|
+
const value = useMemo(() => ({ colorThemeType, type, keys, allBorders }), [colorThemeType, type, keys, allBorders]);
|
|
37
|
+
return (<Animated.View key={title || 'title'} layout={Platform.OS === 'web' ? undefined : LinearTransition.duration(100).easing(Easing.bezier(0.1, 0.1, 0, 1))} style={[
|
|
38
|
+
styles.container,
|
|
39
|
+
type === 'default' ? { marginRight: 16, marginLeft: 16, marginBottom: renderDetail ? 20 : 30 } : {},
|
|
40
|
+
style
|
|
41
|
+
]}>
|
|
42
|
+
{title &&
|
|
43
|
+
<Animated.Text key={title} style={[styles.title, { color: Theme.text2 }]} exiting={FadeOut.duration(100)} entering={FadeIn.duration(100)}>
|
|
44
|
+
{title}
|
|
45
|
+
</Animated.Text>}
|
|
46
|
+
|
|
47
|
+
<Animated.View exiting={FadeOut.duration(100)} entering={FadeIn.duration(100)} layout={layoutAnimation} style={[
|
|
48
|
+
styles.contentContainer,
|
|
49
|
+
{ backgroundColor: colors.table[colorThemeType][colorScheme].background },
|
|
50
|
+
contentContainerStyle,
|
|
51
|
+
type === 'default' ? { borderRadius: 26 } : {},
|
|
52
|
+
]}>
|
|
53
|
+
<TableProvider value={value}>
|
|
54
|
+
<StoreProvider value={store}>
|
|
55
|
+
<BordersProvider value={store.borders}>
|
|
56
|
+
{children}
|
|
57
|
+
</BordersProvider>
|
|
58
|
+
</StoreProvider>
|
|
59
|
+
</TableProvider>
|
|
60
|
+
</Animated.View>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
{renderDetail &&
|
|
64
|
+
<Animated.View entering={FadeIn.duration(100)} exiting={FadeOut.duration(100)}>
|
|
65
|
+
{renderDetail()}
|
|
66
|
+
</Animated.View>}
|
|
67
|
+
</Animated.View>);
|
|
68
|
+
});
|
|
69
|
+
const styles = StyleSheet.create({
|
|
70
|
+
container: {
|
|
71
|
+
gap: 6,
|
|
72
|
+
},
|
|
73
|
+
title: {
|
|
74
|
+
marginLeft: 16,
|
|
75
|
+
fontSize: 17,
|
|
76
|
+
fontWeight: '600',
|
|
77
|
+
},
|
|
78
|
+
contentContainer: {
|
|
79
|
+
overflow: 'hidden',
|
|
80
|
+
position: 'relative',
|
|
81
|
+
},
|
|
82
|
+
viewDetail: {
|
|
83
|
+
marginTop: 1.5,
|
|
84
|
+
marginLeft: 15,
|
|
85
|
+
marginRight: 16
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
Table.Detail = Detail;
|
|
89
|
+
Table.Option = OptionWrapper;
|
|
90
|
+
export default Table;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import { type ColorThemeType } from '../../constants';
|
|
4
|
+
import OptionWrapper from '../OptionWrapper';
|
|
5
|
+
import Detail from '../Detail';
|
|
6
|
+
type Props = {
|
|
7
|
+
/**
|
|
8
|
+
Opciones de la tabla.
|
|
9
|
+
Tiene que ser una lista de Options.
|
|
10
|
+
*/
|
|
11
|
+
children?: (React.ReactElement<typeof OptionWrapper>)[];
|
|
12
|
+
/**
|
|
13
|
+
Texto que aparece arriba de la tabla.
|
|
14
|
+
Si es null, no se muestra.
|
|
15
|
+
*/
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
Item que aparece abajo de la tabla.
|
|
19
|
+
Si es null, no se muestra.
|
|
20
|
+
Tiene que ser un Animated.Text.
|
|
21
|
+
*/
|
|
22
|
+
renderDetail?: () => React.ReactElement<typeof Detail>;
|
|
23
|
+
/**
|
|
24
|
+
Tipo de tema de la tabla.
|
|
25
|
+
*/
|
|
26
|
+
colorThemeType?: ColorThemeType;
|
|
27
|
+
/**
|
|
28
|
+
Tipo de tema de la tabla.
|
|
29
|
+
'default' | 'full'.
|
|
30
|
+
*/
|
|
31
|
+
type?: 'default' | 'full';
|
|
32
|
+
/**
|
|
33
|
+
Estilos de la contTable.
|
|
34
|
+
Es un Animated.View.
|
|
35
|
+
*/
|
|
36
|
+
style?: StyleProp<ViewStyle>;
|
|
37
|
+
/**
|
|
38
|
+
Estilos de la contTable.
|
|
39
|
+
Es un Animated.View.
|
|
40
|
+
*/
|
|
41
|
+
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
42
|
+
/**
|
|
43
|
+
Lista de keys de los children. Sirve para el delete.
|
|
44
|
+
*/
|
|
45
|
+
keys?: string[] | undefined;
|
|
46
|
+
/**
|
|
47
|
+
Indica si se muestran todos los bordes de las opciones.
|
|
48
|
+
Se muestran todos los bottom y el top del primero
|
|
49
|
+
*/
|
|
50
|
+
allBorders?: boolean;
|
|
51
|
+
};
|
|
52
|
+
export type Component = React.MemoExoticComponent<React.FC<Props>> & {
|
|
53
|
+
Option: typeof OptionWrapper;
|
|
54
|
+
Detail: typeof Detail;
|
|
55
|
+
};
|
|
56
|
+
export type Store = {
|
|
57
|
+
pressed_id: string | null;
|
|
58
|
+
deleted: {
|
|
59
|
+
setted: boolean;
|
|
60
|
+
id: string | null;
|
|
61
|
+
keys: string[] | undefined;
|
|
62
|
+
lastId: string | null;
|
|
63
|
+
firstId: string | null;
|
|
64
|
+
};
|
|
65
|
+
borders: Map<string, {
|
|
66
|
+
top: (show: boolean) => void;
|
|
67
|
+
bottom: (show: boolean) => void;
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
70
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Props from './OptionWrapper/types';
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ children, childrenLeft, childrenRight, onPress, onDelete, onDeleteShown, removeWidth, id, style, isAnimated, borders, backgroundColorPressed, LinearGradientProps, layoutAnimation, colorScheme, hasTextView, ...props }: Props) => React.JSX.Element>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import Animated, { Easing, FadeIn, FadeOut, LinearTransition } from 'react-native-reanimated';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import colors from '../constants';
|
|
5
|
+
import { isLowTier } from '../../../../libs/constants/consts';
|
|
6
|
+
import { useTable } from '../context/table';
|
|
7
|
+
import Delete from './Delete';
|
|
8
|
+
import BordersContextWrapper from '../context/borders';
|
|
9
|
+
import Borders from './Borders';
|
|
10
|
+
import Option, { left, right } from './Option';
|
|
11
|
+
const ViewDelete = memo(({ children, colorScheme, ...props }) => {
|
|
12
|
+
const { colorThemeType } = useTable();
|
|
13
|
+
return (<View style={{ backgroundColor: colors.table[colorThemeType][colorScheme].background }} {...props}>
|
|
14
|
+
{children}
|
|
15
|
+
</View>);
|
|
16
|
+
});
|
|
17
|
+
export default memo(({ children, childrenLeft, childrenRight, onPress, onDelete, onDeleteShown, removeWidth, id, style, isAnimated = true, borders = {
|
|
18
|
+
left: left,
|
|
19
|
+
right: right,
|
|
20
|
+
shownTop: null,
|
|
21
|
+
shownBottom: null,
|
|
22
|
+
color: null
|
|
23
|
+
}, backgroundColorPressed, LinearGradientProps, layoutAnimation = isLowTier ?
|
|
24
|
+
LinearTransition.duration(500) : LinearTransition.easing(Easing.bezier(0.2, 0.2, 0, 1)).duration(600), colorScheme, hasTextView, ...props }) => {
|
|
25
|
+
// Restricciones
|
|
26
|
+
if (onDelete && onPress)
|
|
27
|
+
throw new Error('onDelete y onPress no pueden ser usados juntos');
|
|
28
|
+
let content = (<>
|
|
29
|
+
<Option colorScheme={colorScheme} hasTextView={hasTextView} childrenLeft={childrenLeft} childrenRight={childrenRight} onPress={onPress} style={style} backgroundColorPressed={backgroundColorPressed} LinearGradientProps={LinearGradientProps}>
|
|
30
|
+
{children}
|
|
31
|
+
</Option>
|
|
32
|
+
{borders && <Borders id={id} borders={borders}/>}
|
|
33
|
+
</>);
|
|
34
|
+
// onDelete
|
|
35
|
+
content = onDelete ? (<Delete id={id} removeWidth={removeWidth} onDelete={onDelete} onDeleteShown={onDeleteShown}>
|
|
36
|
+
<ViewDelete colorScheme={colorScheme} {...props}>
|
|
37
|
+
{content}
|
|
38
|
+
</ViewDelete>
|
|
39
|
+
</Delete>) : (props ? <View {...props}>{content}</View> : content);
|
|
40
|
+
// Borders
|
|
41
|
+
content = borders && (borders?.shownTop == null || borders?.shownBottom == null) ? (<BordersContextWrapper>
|
|
42
|
+
{content}
|
|
43
|
+
</BordersContextWrapper>) : content;
|
|
44
|
+
if (!isAnimated)
|
|
45
|
+
return content;
|
|
46
|
+
return (<Animated.View layout={layoutAnimation} exiting={FadeOut.duration(100)} entering={FadeIn.duration(100)}>
|
|
47
|
+
{content}
|
|
48
|
+
</Animated.View>);
|
|
49
|
+
});
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
theme: {
|
|
3
|
+
light: {
|
|
4
|
+
text: string;
|
|
5
|
+
text2: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
borderColorContCliente: string;
|
|
8
|
+
};
|
|
9
|
+
dark: {
|
|
10
|
+
text: string;
|
|
11
|
+
text2: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
borderColorContCliente: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
especiales: {
|
|
17
|
+
rojo: string;
|
|
18
|
+
};
|
|
19
|
+
table: {
|
|
20
|
+
default: {
|
|
21
|
+
light: {
|
|
22
|
+
background: string;
|
|
23
|
+
background_pressed: string;
|
|
24
|
+
border: string;
|
|
25
|
+
};
|
|
26
|
+
dark: {
|
|
27
|
+
background: string;
|
|
28
|
+
background_pressed: string;
|
|
29
|
+
border: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
modal: {
|
|
33
|
+
light: {
|
|
34
|
+
background: string;
|
|
35
|
+
background_pressed: string;
|
|
36
|
+
border: string;
|
|
37
|
+
};
|
|
38
|
+
dark: {
|
|
39
|
+
background: string;
|
|
40
|
+
background_pressed: string;
|
|
41
|
+
border: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
modal2: {
|
|
45
|
+
light: {
|
|
46
|
+
background: string;
|
|
47
|
+
background_pressed: string;
|
|
48
|
+
border: string;
|
|
49
|
+
};
|
|
50
|
+
dark: {
|
|
51
|
+
background: string;
|
|
52
|
+
background_pressed: string;
|
|
53
|
+
border: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
light: {
|
|
57
|
+
light: {
|
|
58
|
+
background: string;
|
|
59
|
+
background_pressed: string;
|
|
60
|
+
border: string;
|
|
61
|
+
};
|
|
62
|
+
dark: {
|
|
63
|
+
background: string;
|
|
64
|
+
background_pressed: string;
|
|
65
|
+
border: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
lightBlue: {
|
|
69
|
+
light: {
|
|
70
|
+
background: string;
|
|
71
|
+
background_pressed: string;
|
|
72
|
+
border: string;
|
|
73
|
+
};
|
|
74
|
+
dark: {
|
|
75
|
+
background: string;
|
|
76
|
+
background_pressed: string;
|
|
77
|
+
border: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
orange: {
|
|
81
|
+
light: {
|
|
82
|
+
background: string;
|
|
83
|
+
background_pressed: string;
|
|
84
|
+
border: string;
|
|
85
|
+
};
|
|
86
|
+
dark: {
|
|
87
|
+
background: string;
|
|
88
|
+
background_pressed: string;
|
|
89
|
+
border: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
full: {
|
|
93
|
+
light: {
|
|
94
|
+
background: string;
|
|
95
|
+
background_pressed: string;
|
|
96
|
+
border: string;
|
|
97
|
+
};
|
|
98
|
+
dark: {
|
|
99
|
+
background: string;
|
|
100
|
+
background_pressed: string;
|
|
101
|
+
border: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export { type ColorSchemeType } from "../../../libs/constants/colors";
|
|
107
|
+
export type ColorThemeType = keyof typeof colors.table;
|
|
108
|
+
export default colors;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import colorsLib from "../../../libs/constants/colors";
|
|
2
|
+
export const colors = {
|
|
3
|
+
theme: {
|
|
4
|
+
light: {
|
|
5
|
+
text: colorsLib.light.text,
|
|
6
|
+
text2: colorsLib.light.text2Libretas,
|
|
7
|
+
icon: 'hsl(0, 0%, 76%)',
|
|
8
|
+
borderColorContCliente: 'hsl(240, 2.40%, 92.00%)',
|
|
9
|
+
},
|
|
10
|
+
dark: {
|
|
11
|
+
text: colorsLib.dark.text,
|
|
12
|
+
text2: colorsLib.dark.text2Libretas,
|
|
13
|
+
icon: 'hsl(252, 3%, 35%)',
|
|
14
|
+
borderColorContCliente: 'hsl(252, 3%, 30%)', //'hsl(240, 2%, 22%)',
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
especiales: {
|
|
18
|
+
rojo: colorsLib.especiales.rojo
|
|
19
|
+
},
|
|
20
|
+
table: {
|
|
21
|
+
default: {
|
|
22
|
+
light: {
|
|
23
|
+
background: 'hsl(120, 100%, 100%)',
|
|
24
|
+
background_pressed: 'hsl(240, 5%, 83%)',
|
|
25
|
+
border: 'hsl(240, 2%, 91%)'
|
|
26
|
+
},
|
|
27
|
+
dark: {
|
|
28
|
+
background: 'hsl(240, 3%, 10.5%)',
|
|
29
|
+
background_pressed: 'hsl(240, 2%, 22.5%)',
|
|
30
|
+
border: 'hsl(240, 3%, 22.5%)'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
modal: {
|
|
34
|
+
light: {
|
|
35
|
+
background: 'hsl(120, 100%, 100%)',
|
|
36
|
+
background_pressed: 'hsl(240, 5%, 83%)',
|
|
37
|
+
border: 'hsl(240, 2%, 91%)'
|
|
38
|
+
},
|
|
39
|
+
dark: {
|
|
40
|
+
background: 'hsl(240, 2%, 17.5%)',
|
|
41
|
+
background_pressed: 'hsl(240, 2%, 29.5%)',
|
|
42
|
+
border: 'hsl(240, 2%, 25.5%)'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
modal2: {
|
|
46
|
+
light: {
|
|
47
|
+
background: 'hsl(240, 18%, 96%)',
|
|
48
|
+
background_pressed: 'hsl(252, 22%, 79%)',
|
|
49
|
+
border: 'hsl(240, 10%, 88%)'
|
|
50
|
+
},
|
|
51
|
+
dark: {
|
|
52
|
+
background: 'hsl(240, 2%, 17.5%)',
|
|
53
|
+
background_pressed: 'hsl(240, 2%, 29.5%)',
|
|
54
|
+
border: 'hsl(240, 2%, 25.5%)'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
light: {
|
|
58
|
+
light: {
|
|
59
|
+
background: 'hsl(240, 18%, 96%)',
|
|
60
|
+
background_pressed: 'hsl(240, 8%, 91%)',
|
|
61
|
+
border: 'hsl(240, 10%, 88%)'
|
|
62
|
+
},
|
|
63
|
+
dark: {
|
|
64
|
+
background: 'hsl(240, 3%, 10.5%)',
|
|
65
|
+
background_pressed: 'hsl(240, 2%, 22.5%)',
|
|
66
|
+
border: 'hsl(240, 3%, 22.5%)'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
lightBlue: {
|
|
70
|
+
light: {
|
|
71
|
+
background: 'hsl(190, 79%, 94%)',
|
|
72
|
+
background_pressed: 'hsl(190, 82%, 89%)',
|
|
73
|
+
border: ''
|
|
74
|
+
},
|
|
75
|
+
dark: {
|
|
76
|
+
background: 'hsl(194, 62%, 11.5%)',
|
|
77
|
+
background_pressed: 'hsl(193, 62%, 18%)',
|
|
78
|
+
border: ''
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
orange: {
|
|
82
|
+
light: {
|
|
83
|
+
background: 'hsl(37, 76.5%, 90%)',
|
|
84
|
+
background_pressed: 'hsl(36, 80%, 85%)',
|
|
85
|
+
border: ''
|
|
86
|
+
},
|
|
87
|
+
dark: {
|
|
88
|
+
background: 'hsl(38, 63.6%, 16.8%)',
|
|
89
|
+
background_pressed: 'hsl(36, 64.6%, 22.3%)',
|
|
90
|
+
border: ''
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
full: {
|
|
94
|
+
light: {
|
|
95
|
+
background: 'hsl(0, 0.00%, 100.00%)',
|
|
96
|
+
background_pressed: 'hsl(240, 5%, 83%)',
|
|
97
|
+
border: 'hsl(240, 2%, 91%)'
|
|
98
|
+
},
|
|
99
|
+
dark: {
|
|
100
|
+
background: 'hsl(0, 0.00%, 0.00%)',
|
|
101
|
+
background_pressed: 'hsl(240, 2%, 22.5%)',
|
|
102
|
+
border: 'hsl(240, 3%, 22.5%)'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
export default colors;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction, RefObject } from "react";
|
|
2
|
+
declare const useBorder: () => RefObject<Record<string, any> | {
|
|
3
|
+
top: Dispatch<SetStateAction<boolean>>;
|
|
4
|
+
bottom: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
}>;
|
|
6
|
+
export { useBorder };
|
|
7
|
+
declare const _default: ({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useMemo, useRef } from "react";
|
|
2
|
+
import { createCtx } from "../../../../libs/constants/utils";
|
|
3
|
+
const [Provider, useBorder] = createCtx();
|
|
4
|
+
export { useBorder };
|
|
5
|
+
export default ({ children }) => {
|
|
6
|
+
const bordersRef = useRef({});
|
|
7
|
+
const valueBorders = useMemo(() => (bordersRef), []);
|
|
8
|
+
return (<Provider value={valueBorders}>
|
|
9
|
+
{children}
|
|
10
|
+
</Provider>);
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DeleteProvider: import("react").Provider<() => void>, useDelete: () => () => void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Observable } from '@legendapp/state';
|
|
2
|
+
import Props, { Store } from '../components/Table/types';
|
|
3
|
+
export declare const StoreProvider: import("react").Provider<Observable<Store>>, useStore: () => Observable<Store>;
|
|
4
|
+
export declare const BordersProvider: import("react").Provider<Observable<Map<string, {
|
|
5
|
+
top: (show: boolean) => void;
|
|
6
|
+
bottom: (show: boolean) => void;
|
|
7
|
+
}>>>, useBorders: () => Observable<Map<string, {
|
|
8
|
+
top: (show: boolean) => void;
|
|
9
|
+
bottom: (show: boolean) => void;
|
|
10
|
+
}>>;
|
|
11
|
+
export declare const TableProvider: import("react").Provider<{
|
|
12
|
+
colorThemeType: Exclude<Props["colorThemeType"], undefined>;
|
|
13
|
+
allBorders: Props["allBorders"];
|
|
14
|
+
type: Props["type"];
|
|
15
|
+
keys: Props["keys"];
|
|
16
|
+
}>, useTable: () => {
|
|
17
|
+
colorThemeType: Exclude<Props["colorThemeType"], undefined>;
|
|
18
|
+
allBorders: Props["allBorders"];
|
|
19
|
+
type: Props["type"];
|
|
20
|
+
keys: Props["keys"];
|
|
21
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "native-pytech",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Libreria de React Native Pytech",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"author": "Matias Tobias Gutierrez",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "node scripts/build.js",
|
|
11
|
+
"typecheck": "tsc --noEmit",
|
|
12
|
+
"prepublishOnly": "npm run build"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@expo/vector-icons": "^15.0.3",
|
|
21
|
+
"@legendapp/list": "^2.0.19",
|
|
22
|
+
"@legendapp/state": "^3.0.0-beta.45",
|
|
23
|
+
"@react-native-async-storage/async-storage": "~2.2.0",
|
|
24
|
+
"@react-native-masked-view/masked-view": "0.3.2",
|
|
25
|
+
"@supabase/supabase-js": "^2.104.1",
|
|
26
|
+
"color2k": "^2.0.3",
|
|
27
|
+
"expo": "~55.0.16",
|
|
28
|
+
"expo-blur": "~55.0.0",
|
|
29
|
+
"expo-constants": "~55.0.15",
|
|
30
|
+
"expo-device": "~55.0.15",
|
|
31
|
+
"expo-glass-effect": "~55.0.0",
|
|
32
|
+
"expo-linear-gradient": "~55.0.0",
|
|
33
|
+
"expo-mesh-gradient": "~55.0.0",
|
|
34
|
+
"expo-router": "~55.0.0",
|
|
35
|
+
"expo-sqlite": "*",
|
|
36
|
+
"react": "~19.2.0",
|
|
37
|
+
"react-native": "^0.83.6",
|
|
38
|
+
"react-native-reanimated": "^4.2.1",
|
|
39
|
+
"react-native-reorderable-list": "^0.17.0",
|
|
40
|
+
"react-native-svg": "^15.15.0",
|
|
41
|
+
"react-native-url-polyfill": "^3.0.0",
|
|
42
|
+
"react-native-worklets": "^0.7.4"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/fontfaceobserver": "^2.1.3",
|
|
46
|
+
"@types/react": "~19.2.10",
|
|
47
|
+
"babel-plugin-module-resolver": "^5.0.3",
|
|
48
|
+
"copyfiles": "^2.4.1",
|
|
49
|
+
"expo": "~55.0.0",
|
|
50
|
+
"react": "~19.2.0",
|
|
51
|
+
"react-native": "0.83.6",
|
|
52
|
+
"react-native-svg-transformer": "^1.5.3",
|
|
53
|
+
"rimraf": "^6.1.3",
|
|
54
|
+
"tsc-alias": "^1.8.16",
|
|
55
|
+
"typescript": "~5.9.2"
|
|
56
|
+
},
|
|
57
|
+
"exports": {
|
|
58
|
+
".": {
|
|
59
|
+
"types": "./dist/index.d.ts",
|
|
60
|
+
"default": "./dist/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./*": {
|
|
63
|
+
"types": "./dist/app/*.d.ts",
|
|
64
|
+
"default": "./dist/app/*.js"
|
|
65
|
+
},
|
|
66
|
+
"./assets/images/*": {
|
|
67
|
+
"default": "./dist/libs/assets/images/*"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@expo/ui": "~55.0.12"
|
|
72
|
+
}
|
|
73
|
+
}
|