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,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Below are the colors that are used in the app. The colors are defined in the light and dark mode.
|
|
3
|
+
* There are many other ways to style your app. For example, [Nativewind](https://www.nativewind.dev/), [Tamagui](https://tamagui.dev/), [unistyles](https://reactnativeunistyles.vercel.app), etc.
|
|
4
|
+
*/
|
|
5
|
+
declare const Colors: {
|
|
6
|
+
light: {
|
|
7
|
+
text: string;
|
|
8
|
+
textInvert: string;
|
|
9
|
+
background: string;
|
|
10
|
+
tint: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
tabIconDefault: string;
|
|
13
|
+
tabIconSelected: string;
|
|
14
|
+
focusColor: string;
|
|
15
|
+
text2: string;
|
|
16
|
+
borderColorError: string;
|
|
17
|
+
backgroundColor2Error: string;
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
backgroundColor2: string;
|
|
20
|
+
description: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
borderColor9: string;
|
|
23
|
+
borderColor8: string;
|
|
24
|
+
borderColor7: string;
|
|
25
|
+
borderColor6: string;
|
|
26
|
+
borderColor5: string;
|
|
27
|
+
borderColor4: string;
|
|
28
|
+
borderColor3: string;
|
|
29
|
+
borderColor2: string;
|
|
30
|
+
borderColor1: string;
|
|
31
|
+
backgroundColor3: string;
|
|
32
|
+
backgroundColorContactos: string;
|
|
33
|
+
backgroundColorModal: string;
|
|
34
|
+
backgroundColorModal2: string;
|
|
35
|
+
FiltroColorSeleccionado: string;
|
|
36
|
+
FiltroIconoSeleccionado: string;
|
|
37
|
+
FiltroColorNoSeleccionado: string;
|
|
38
|
+
FiltroIconoNoSeleccionado: string;
|
|
39
|
+
FiltroColorMensaje: string;
|
|
40
|
+
SearchBar: string;
|
|
41
|
+
SearchBarText: string;
|
|
42
|
+
text2Libretas: string;
|
|
43
|
+
contLibretas: string;
|
|
44
|
+
contTable: string;
|
|
45
|
+
contTableModal: string;
|
|
46
|
+
contTableModal2: string;
|
|
47
|
+
contTableLight: string;
|
|
48
|
+
contLibretasPressed: string;
|
|
49
|
+
skeletonGradientStart: string;
|
|
50
|
+
skeletonGradientEnd: string;
|
|
51
|
+
skeletonGradientStart2: string;
|
|
52
|
+
skeletonGradientEnd2: string;
|
|
53
|
+
pildoraVacia: string;
|
|
54
|
+
contTableLightBlue: string;
|
|
55
|
+
pressableLightBlue: string;
|
|
56
|
+
contTableOrange: string;
|
|
57
|
+
pressableOrange: string;
|
|
58
|
+
};
|
|
59
|
+
dark: {
|
|
60
|
+
text: string;
|
|
61
|
+
textInvert: string;
|
|
62
|
+
background: string;
|
|
63
|
+
tint: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
tabIconDefault: string;
|
|
66
|
+
tabIconSelected: string;
|
|
67
|
+
focusColor: string;
|
|
68
|
+
text2: string;
|
|
69
|
+
borderColorError: string;
|
|
70
|
+
backgroundColor2Error: string;
|
|
71
|
+
backgroundColor: string;
|
|
72
|
+
backgroundColor2: string;
|
|
73
|
+
description: string;
|
|
74
|
+
borderColor: string;
|
|
75
|
+
borderColor9: string;
|
|
76
|
+
borderColor8: string;
|
|
77
|
+
borderColor7: string;
|
|
78
|
+
borderColor6: string;
|
|
79
|
+
borderColor5: string;
|
|
80
|
+
borderColor4: string;
|
|
81
|
+
borderColor3: string;
|
|
82
|
+
borderColor2: string;
|
|
83
|
+
borderColor1: string;
|
|
84
|
+
backgroundColor3: string;
|
|
85
|
+
backgroundColorContactos: string;
|
|
86
|
+
backgroundColorModal: string;
|
|
87
|
+
backgroundColorModal2: string;
|
|
88
|
+
FiltroColorSeleccionado: string;
|
|
89
|
+
FiltroIconoSeleccionado: string;
|
|
90
|
+
FiltroColorNoSeleccionado: string;
|
|
91
|
+
FiltroIconoNoSeleccionado: string;
|
|
92
|
+
FiltroColorMensaje: string;
|
|
93
|
+
SearchBar: string;
|
|
94
|
+
SearchBarText: string;
|
|
95
|
+
text2Libretas: string;
|
|
96
|
+
contLibretas: string;
|
|
97
|
+
contTable: string;
|
|
98
|
+
contTableModal: string;
|
|
99
|
+
contTableModal2: string;
|
|
100
|
+
contTableLight: string;
|
|
101
|
+
contLibretasPressed: string;
|
|
102
|
+
skeletonGradientStart: string;
|
|
103
|
+
skeletonGradientEnd: string;
|
|
104
|
+
skeletonGradientStart2: string;
|
|
105
|
+
skeletonGradientEnd2: string;
|
|
106
|
+
pildoraVacia: string;
|
|
107
|
+
contTableLightBlue: string;
|
|
108
|
+
pressableLightBlue: string;
|
|
109
|
+
contTableOrange: string;
|
|
110
|
+
pressableOrange: string;
|
|
111
|
+
};
|
|
112
|
+
perfil: {
|
|
113
|
+
default: {
|
|
114
|
+
dark: string;
|
|
115
|
+
light: string;
|
|
116
|
+
};
|
|
117
|
+
rojo: {
|
|
118
|
+
dark: string;
|
|
119
|
+
light: string;
|
|
120
|
+
};
|
|
121
|
+
amarillo: {
|
|
122
|
+
dark: string;
|
|
123
|
+
light: string;
|
|
124
|
+
};
|
|
125
|
+
azul_oscuro: {
|
|
126
|
+
dark: string;
|
|
127
|
+
light: string;
|
|
128
|
+
};
|
|
129
|
+
naranja: {
|
|
130
|
+
dark: string;
|
|
131
|
+
light: string;
|
|
132
|
+
};
|
|
133
|
+
marron_claro: {
|
|
134
|
+
dark: string;
|
|
135
|
+
light: string;
|
|
136
|
+
};
|
|
137
|
+
verde_agua: {
|
|
138
|
+
dark: string;
|
|
139
|
+
light: string;
|
|
140
|
+
};
|
|
141
|
+
marron_oscuro: {
|
|
142
|
+
dark: string;
|
|
143
|
+
light: string;
|
|
144
|
+
};
|
|
145
|
+
rosa: {
|
|
146
|
+
dark: string;
|
|
147
|
+
light: string;
|
|
148
|
+
};
|
|
149
|
+
azul_claro: {
|
|
150
|
+
dark: string;
|
|
151
|
+
light: string;
|
|
152
|
+
};
|
|
153
|
+
violeta: {
|
|
154
|
+
dark: string;
|
|
155
|
+
light: string;
|
|
156
|
+
};
|
|
157
|
+
celeste_oscuro: {
|
|
158
|
+
dark: string;
|
|
159
|
+
light: string;
|
|
160
|
+
};
|
|
161
|
+
gris: {
|
|
162
|
+
dark: string;
|
|
163
|
+
light: string;
|
|
164
|
+
};
|
|
165
|
+
celeste_claro: {
|
|
166
|
+
dark: string;
|
|
167
|
+
light: string;
|
|
168
|
+
};
|
|
169
|
+
verde_oscuro: {
|
|
170
|
+
dark: string;
|
|
171
|
+
light: string;
|
|
172
|
+
};
|
|
173
|
+
verde_claro: {
|
|
174
|
+
dark: string;
|
|
175
|
+
light: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
filtros: {
|
|
179
|
+
azul: string;
|
|
180
|
+
verde: string;
|
|
181
|
+
violeta: string;
|
|
182
|
+
rosa: string;
|
|
183
|
+
naranja: string;
|
|
184
|
+
amarillo: string;
|
|
185
|
+
celeste: string;
|
|
186
|
+
rojo: string;
|
|
187
|
+
light: {
|
|
188
|
+
azul_bg: string;
|
|
189
|
+
verde_bg: string;
|
|
190
|
+
violeta_bg: string;
|
|
191
|
+
rosa_bg: string;
|
|
192
|
+
naranja_bg: string;
|
|
193
|
+
amarillo_bg: string;
|
|
194
|
+
celeste_bg: string;
|
|
195
|
+
};
|
|
196
|
+
dark: {
|
|
197
|
+
azul_bg: string;
|
|
198
|
+
verde_bg: string;
|
|
199
|
+
violeta_bg: string;
|
|
200
|
+
rosa_bg: string;
|
|
201
|
+
naranja_bg: string;
|
|
202
|
+
amarillo_bg: string;
|
|
203
|
+
celeste_bg: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
especiales: {
|
|
207
|
+
azul: string;
|
|
208
|
+
rojo: string;
|
|
209
|
+
rosa_claro: string;
|
|
210
|
+
verde: string;
|
|
211
|
+
verde_claro: string;
|
|
212
|
+
celeste: string;
|
|
213
|
+
azul_pressed: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
export type ColorSchemeType = keyof Pick<typeof Colors, "light" | "dark">;
|
|
217
|
+
export type ThemeType = typeof Colors["light"];
|
|
218
|
+
export default Colors;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Below are the colors that are used in the app. The colors are defined in the light and dark mode.
|
|
3
|
+
* There are many other ways to style your app. For example, [Nativewind](https://www.nativewind.dev/), [Tamagui](https://tamagui.dev/), [unistyles](https://reactnativeunistyles.vercel.app), etc.
|
|
4
|
+
*/
|
|
5
|
+
const tintColorLight = '#0a7ea4';
|
|
6
|
+
const tintColorDark = '#fff';
|
|
7
|
+
const Colors = {
|
|
8
|
+
light: {
|
|
9
|
+
text: 'black',
|
|
10
|
+
textInvert: 'white',
|
|
11
|
+
background: '#fff',
|
|
12
|
+
tint: tintColorLight,
|
|
13
|
+
icon: 'hsl(206, 6.30%, 43.50%)',
|
|
14
|
+
tabIconDefault: '#687076',
|
|
15
|
+
tabIconSelected: tintColorLight,
|
|
16
|
+
focusColor: '#0076df',
|
|
17
|
+
text2: 'hsl(0, 0%, 10%)',
|
|
18
|
+
borderColorError: '#e30000',
|
|
19
|
+
backgroundColor2Error: '#fff2f4',
|
|
20
|
+
backgroundColor: 'white',
|
|
21
|
+
backgroundColor2: 'white',
|
|
22
|
+
description: 'hsl(240, 1.70%, 53.30%)',
|
|
23
|
+
borderColor: 'rgba(150, 150, 150, 1)',
|
|
24
|
+
borderColor9: 'rgba(150, 150, 150, 0.9)',
|
|
25
|
+
borderColor8: 'rgba(150, 150, 150, 0.8)',
|
|
26
|
+
borderColor7: 'rgba(150, 150, 150, 0.7)',
|
|
27
|
+
borderColor6: 'rgba(150, 150, 150, 0.6)',
|
|
28
|
+
borderColor5: 'rgba(150, 150, 150, 0.5)',
|
|
29
|
+
borderColor4: 'rgba(150, 150, 150, 0.4)',
|
|
30
|
+
borderColor3: 'rgba(150, 150, 150, 0.3)',
|
|
31
|
+
borderColor2: 'rgba(150, 150, 150, 0.2)',
|
|
32
|
+
borderColor1: 'rgba(150, 150, 150, 0.1)',
|
|
33
|
+
backgroundColor3: '#f1eff5',
|
|
34
|
+
backgroundColorContactos: 'white',
|
|
35
|
+
backgroundColorModal: 'hsl(252, 22%, 95%)',
|
|
36
|
+
backgroundColorModal2: 'white',
|
|
37
|
+
FiltroColorSeleccionado: 'hsl(240, 1.70%, 23.10%)',
|
|
38
|
+
FiltroIconoSeleccionado: 'white',
|
|
39
|
+
FiltroColorNoSeleccionado: 'hsl(0, 0.00%, 91.40%)',
|
|
40
|
+
FiltroIconoNoSeleccionado: '#7d7d7f',
|
|
41
|
+
FiltroColorMensaje: 'hsl(252, 22%, 95%)',
|
|
42
|
+
SearchBar: '#f4f4f4',
|
|
43
|
+
SearchBarText: '#86868a',
|
|
44
|
+
text2Libretas: 'hsl(240, 1%, 55%)',
|
|
45
|
+
contLibretas: 'white',
|
|
46
|
+
contTable: 'white',
|
|
47
|
+
contTableModal: 'white',
|
|
48
|
+
contTableModal2: 'hsl(252, 22%, 95%)',
|
|
49
|
+
contTableLight: 'hsl(252, 22%, 95%)',
|
|
50
|
+
contLibretasPressed: 'hsl(252, 5%, 81%)',
|
|
51
|
+
skeletonGradientStart: 'hsl(0, 0.00%, 100%)',
|
|
52
|
+
skeletonGradientEnd: 'hsl(0, 0.00%, 91.40%)',
|
|
53
|
+
skeletonGradientStart2: 'hsl(0, 0.00%, 80%)',
|
|
54
|
+
skeletonGradientEnd2: 'hsl(0, 0.00%, 70%)',
|
|
55
|
+
pildoraVacia: 'hsl(252, 22%, 95%)',
|
|
56
|
+
contTableLightBlue: 'hsl(190, 79%, 94%)',
|
|
57
|
+
pressableLightBlue: 'hsl(189, 82%, 89%)',
|
|
58
|
+
contTableOrange: 'hsl(37, 76.50%, 90%)',
|
|
59
|
+
pressableOrange: 'hsl(36, 80%, 85%)'
|
|
60
|
+
},
|
|
61
|
+
dark: {
|
|
62
|
+
text: 'white',
|
|
63
|
+
textInvert: 'black',
|
|
64
|
+
background: '#151718',
|
|
65
|
+
tint: tintColorDark,
|
|
66
|
+
icon: '#9BA1A6',
|
|
67
|
+
tabIconDefault: '#9BA1A6',
|
|
68
|
+
tabIconSelected: tintColorDark,
|
|
69
|
+
focusColor: '#0076df',
|
|
70
|
+
text2: 'hsl(0, 0%, 90%)',
|
|
71
|
+
borderColorError: '#ff3037',
|
|
72
|
+
backgroundColor2Error: '#300',
|
|
73
|
+
backgroundColor: 'hsl(240, 3.40%, 11.40%)',
|
|
74
|
+
backgroundColor2: 'hsl(240, 2.60%, 14.90%)',
|
|
75
|
+
description: 'hsl(228, 2.70%, 63.30%)',
|
|
76
|
+
borderColor: 'rgba(150, 150, 150, 1)',
|
|
77
|
+
borderColor9: 'rgba(150, 150, 150, 0.9)',
|
|
78
|
+
borderColor8: 'rgba(150, 150, 150, 0.8)',
|
|
79
|
+
borderColor7: 'rgba(150, 150, 150, 0.7)',
|
|
80
|
+
borderColor6: 'rgba(150, 150, 150, 0.6)',
|
|
81
|
+
borderColor5: 'rgba(150, 150, 150, 0.5)',
|
|
82
|
+
borderColor4: 'rgba(150, 150, 150, 0.4)',
|
|
83
|
+
borderColor3: 'rgba(150, 150, 150, 0.3)',
|
|
84
|
+
borderColor2: 'rgba(150, 150, 150, 0.2)',
|
|
85
|
+
borderColor1: 'rgba(150, 150, 150, 0.1)',
|
|
86
|
+
backgroundColor3: '#000000',
|
|
87
|
+
backgroundColorContactos: 'hsl(0, 0%, 0%)',
|
|
88
|
+
backgroundColorModal: 'hsl(240, 3%, 11%)',
|
|
89
|
+
backgroundColorModal2: 'hsl(240, 3%, 11%)',
|
|
90
|
+
FiltroColorSeleccionado: 'white',
|
|
91
|
+
FiltroIconoSeleccionado: 'hsl(240, 3.40%, 11.40%)',
|
|
92
|
+
FiltroColorNoSeleccionado: 'hsl(0, 0.00%, 14.90%)',
|
|
93
|
+
FiltroIconoNoSeleccionado: 'hsl(228, 2.70%, 63.30%)',
|
|
94
|
+
FiltroColorMensaje: 'hsl(0, 0.00%, 14.90%)',
|
|
95
|
+
SearchBar: '#f4f4f4',
|
|
96
|
+
SearchBarText: '#86868a',
|
|
97
|
+
text2Libretas: 'hsl(252, 3%, 62%)',
|
|
98
|
+
contLibretas: 'hsl(240, 3%, 11%)',
|
|
99
|
+
contTable: 'hsl(240, 3%, 11%)',
|
|
100
|
+
contTableModal: 'hsl(240, 2%, 18%)',
|
|
101
|
+
contTableModal2: 'hsl(240, 2%, 18%)',
|
|
102
|
+
contTableLight: 'hsl(240, 2%, 18%)',
|
|
103
|
+
contLibretasPressed: 'hsl(240, 2%, 22%)',
|
|
104
|
+
skeletonGradientStart: 'hsl(0, 0.00%, 14.90%)',
|
|
105
|
+
skeletonGradientEnd: 'hsl(0, 0.00%, 24.90%)',
|
|
106
|
+
skeletonGradientStart2: 'hsl(0, 0.00%, 14.90%)',
|
|
107
|
+
skeletonGradientEnd2: 'hsl(0, 0.00%, 24.90%)',
|
|
108
|
+
pildoraVacia: 'hsl(240, 3%, 11%)',
|
|
109
|
+
contTableLightBlue: 'hsl(195, 62%, 13%)',
|
|
110
|
+
pressableLightBlue: 'hsl(193, 63%, 18%)',
|
|
111
|
+
contTableOrange: 'hsl(38, 63.60%, 17.30%)',
|
|
112
|
+
pressableOrange: 'hsl(36, 64.60%, 22.30%)'
|
|
113
|
+
},
|
|
114
|
+
perfil: {
|
|
115
|
+
default: { dark: '#7580ba', light: '#b1c6e4' },
|
|
116
|
+
rojo: { dark: '#b12309', light: '#ff856a' },
|
|
117
|
+
amarillo: { dark: '#c97c00', light: '#ffe535' },
|
|
118
|
+
azul_oscuro: { dark: '#0f236d', light: '#6a7ec9' },
|
|
119
|
+
naranja: { dark: '#9c4d00', light: '#ffba53' },
|
|
120
|
+
marron_claro: { dark: '#75582e', light: '#e4c79d' },
|
|
121
|
+
verde_agua: { dark: '#105951', light: '#80c3ba' },
|
|
122
|
+
marron_oscuro: { dark: '#4f2a00', light: '#aa855a' },
|
|
123
|
+
rosa: { dark: '#892466', light: '#f08bcc' },
|
|
124
|
+
azul_claro: { dark: '#334696', light: '#9eb1ff' },
|
|
125
|
+
violeta: { dark: '#482d76', light: '#ac90d9' },
|
|
126
|
+
celeste_oscuro: { dark: '#005095', light: '#6dbfff' },
|
|
127
|
+
gris: { dark: '#445255', light: '#b0bec1' },
|
|
128
|
+
celeste_claro: { dark: '#237286', light: '#98e7fb' },
|
|
129
|
+
verde_oscuro: { dark: '#215b1d', light: '#8ac487' },
|
|
130
|
+
verde_claro: { dark: '#4b5f13', light: '#bbce82' }
|
|
131
|
+
},
|
|
132
|
+
filtros: {
|
|
133
|
+
azul: 'hsl(208, 75.80%, 57.80%)',
|
|
134
|
+
verde: 'hsl(140, 39.70%, 46.90%)',
|
|
135
|
+
violeta: 'hsl(243, 31.80%, 58.60%)',
|
|
136
|
+
rosa: 'hsl(337, 61.50%, 57.30%)',
|
|
137
|
+
naranja: ' hsl(28, 72.40%, 56.10%)',
|
|
138
|
+
amarillo: 'hsl(48, 64.30%, 45.70%)',
|
|
139
|
+
celeste: 'hsl(190, 65.20%, 53.40%)',
|
|
140
|
+
rojo: 'hsl(3, 97.70%, 65.30%)',
|
|
141
|
+
light: {
|
|
142
|
+
azul_bg: 'hsl(208, 75.80%, 95%)',
|
|
143
|
+
verde_bg: 'hsl(140, 33%, 89%)',
|
|
144
|
+
violeta_bg: 'hsl(244, 33%, 92%)',
|
|
145
|
+
rosa_bg: 'hsl(340, 71%, 92%)',
|
|
146
|
+
naranja_bg: 'hsl(28, 72.40%, 95%)',
|
|
147
|
+
amarillo_bg: 'hsl(48, 64.30%, 95%)',
|
|
148
|
+
celeste_bg: 'hsl(190, 65.20%, 95%)',
|
|
149
|
+
},
|
|
150
|
+
dark: {
|
|
151
|
+
azul_bg: 'hsl(208, 75.80%, 10%)',
|
|
152
|
+
verde_bg: 'hsl(144, 45%, 9%)',
|
|
153
|
+
violeta_bg: 'hsl(240, 21%, 11%)',
|
|
154
|
+
rosa_bg: 'hsl(339, 45%, 11%)',
|
|
155
|
+
naranja_bg: 'hsl(28, 72.40%, 10%)',
|
|
156
|
+
amarillo_bg: 'hsl(48, 64.30%, 10%)',
|
|
157
|
+
celeste_bg: 'hsl(190, 65.20%, 10%)',
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
especiales: {
|
|
161
|
+
azul: 'hsl(207, 100%, 50%)',
|
|
162
|
+
rojo: 'hsl(358, 100%, 62%)',
|
|
163
|
+
rosa_claro: 'hsl(329, 86.5%, 74.4%)',
|
|
164
|
+
verde: 'hsl(135, 58.70%, 49.40%)',
|
|
165
|
+
verde_claro: 'hsl(132, 65%, 64%)',
|
|
166
|
+
celeste: 'hsl(179, 100%, 76%)',
|
|
167
|
+
azul_pressed: 'hsl(197, 100%, 50%)',
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
export default Colors;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NativeStackNavigationOptions } from '@react-navigation/native-stack';
|
|
2
|
+
export declare const deviceTier: "low" | "medium" | "high";
|
|
3
|
+
export declare const isLowTier: boolean;
|
|
4
|
+
type ExpoEnv = {
|
|
5
|
+
SUPABASE_USERNAME_LOGIN: string;
|
|
6
|
+
SUPABASE_PASSWORD_LOGIN: string;
|
|
7
|
+
SUPABASE_URL: string;
|
|
8
|
+
SUPABASE_KEY: string;
|
|
9
|
+
SUPABASE_SERVICE_ROLE_KEY: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const expoEnv: Partial<ExpoEnv>;
|
|
12
|
+
export declare const screenOptions: NativeStackNavigationOptions;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import { _getDeviceTier } from './utils';
|
|
3
|
+
import Constants from 'expo-constants';
|
|
4
|
+
export const deviceTier = _getDeviceTier();
|
|
5
|
+
export const isLowTier = Platform.OS === 'android' && deviceTier === 'low';
|
|
6
|
+
const getExpoEnv = () => {
|
|
7
|
+
const expoEnv = Constants.expoConfig?.extra || {};
|
|
8
|
+
return {
|
|
9
|
+
SUPABASE_USERNAME_LOGIN: expoEnv.SUPABASE_USERNAME_LOGIN || process.env.SUPABASE_USERNAME_LOGIN,
|
|
10
|
+
SUPABASE_PASSWORD_LOGIN: expoEnv.SUPABASE_PASSWORD_LOGIN || process.env.SUPABASE_PASSWORD_LOGIN,
|
|
11
|
+
SUPABASE_URL: expoEnv.SUPABASE_URL || process.env.SUPABASE_URL,
|
|
12
|
+
SUPABASE_KEY: expoEnv.SUPABASE_KEY || process.env.SUPABASE_KEY,
|
|
13
|
+
SUPABASE_SERVICE_ROLE_KEY: expoEnv.SUPABASE_SERVICE_ROLE_KEY || process.env.SUPABASE_SERVICE_ROLE_KEY,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export const expoEnv = getExpoEnv();
|
|
17
|
+
export const screenOptions = {
|
|
18
|
+
headerTitleAlign: "center",
|
|
19
|
+
headerBackButtonMenuEnabled: true,
|
|
20
|
+
headerBackButtonDisplayMode: 'minimal',
|
|
21
|
+
headerTransparent: Platform.OS === 'ios',
|
|
22
|
+
headerLargeTitle: true,
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import FontFaceObserver from 'fontfaceobserver';
|
|
2
|
+
export default () => {
|
|
3
|
+
// Solo ejecutarlo en Web
|
|
4
|
+
if (typeof document === 'undefined')
|
|
5
|
+
return;
|
|
6
|
+
// Sobrescribimos la función load de FontFaceObserver para capturar todos los errores
|
|
7
|
+
const OriginalLoad = FontFaceObserver.prototype.load;
|
|
8
|
+
FontFaceObserver.prototype.load = function (testString, timeout) {
|
|
9
|
+
// Si no pasaron timeout, ponemos 15000ms por defecto
|
|
10
|
+
const actualTimeout = timeout || 15000;
|
|
11
|
+
return OriginalLoad.call(this, testString, actualTimeout)
|
|
12
|
+
.catch(err => {
|
|
13
|
+
console.warn(`FontFaceObserver ignoró error de fuente "${this.family}"`, err);
|
|
14
|
+
// Retornamos un resolved Promise para que la app no rompa
|
|
15
|
+
return Promise.resolve();
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useEffectWithoutFirstRender: (effect: () => void, deps: any[]) => void;
|
|
2
|
+
export declare const useLayoutEffectWithoutFirstRender: (effect: () => void, deps: any[]) => void;
|
|
3
|
+
export declare const useAsyncEffect: (effect: (isMounted: () => boolean) => Promise<void>, deps: any[]) => void;
|
|
4
|
+
export declare const useAsyncFocusEffect: (effect: (isMounted: () => boolean) => Promise<void>) => void;
|
|
5
|
+
export declare const useAsyncFocusEffectWithoutFirstRender: (effect: (isMounted: () => boolean) => Promise<void>) => void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useCallback, useEffect, useLayoutEffect, useRef } from 'react';
|
|
2
|
+
import { useFocusEffect } from 'expo-router';
|
|
3
|
+
export const useEffectWithoutFirstRender = (effect, deps) => {
|
|
4
|
+
const isFirstRender = useRef(true);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
if (isFirstRender.current) {
|
|
7
|
+
isFirstRender.current = false;
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
return effect();
|
|
11
|
+
}, deps);
|
|
12
|
+
};
|
|
13
|
+
export const useLayoutEffectWithoutFirstRender = (effect, deps) => {
|
|
14
|
+
const isFirstRender = useRef(true);
|
|
15
|
+
useLayoutEffect(() => {
|
|
16
|
+
if (isFirstRender.current) {
|
|
17
|
+
isFirstRender.current = false;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
return effect();
|
|
21
|
+
}, deps);
|
|
22
|
+
};
|
|
23
|
+
export const useAsyncEffect = (effect, deps) => {
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
let mounted = true;
|
|
26
|
+
const isMounted = () => mounted;
|
|
27
|
+
effect(isMounted);
|
|
28
|
+
return () => { mounted = false; };
|
|
29
|
+
}, deps);
|
|
30
|
+
};
|
|
31
|
+
export const useAsyncFocusEffect = (effect) => {
|
|
32
|
+
useFocusEffect(useCallback(() => {
|
|
33
|
+
let mounted = true;
|
|
34
|
+
const isMounted = () => mounted;
|
|
35
|
+
void effect(isMounted);
|
|
36
|
+
return () => { mounted = false; };
|
|
37
|
+
}, [effect]));
|
|
38
|
+
};
|
|
39
|
+
export const useAsyncFocusEffectWithoutFirstRender = (effect) => {
|
|
40
|
+
const isFirstFocus = useRef(true);
|
|
41
|
+
useFocusEffect(useCallback(() => {
|
|
42
|
+
let mounted = true;
|
|
43
|
+
const isMounted = () => mounted;
|
|
44
|
+
if (isFirstFocus.current)
|
|
45
|
+
isFirstFocus.current = false;
|
|
46
|
+
else
|
|
47
|
+
void effect(isMounted);
|
|
48
|
+
return () => { mounted = false; };
|
|
49
|
+
}, [effect]));
|
|
50
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StyleProp } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const addProps: (element: React.ReactElement | null, additionalStyles?: StyleProp<any>, extraProps?: Record<string, any>) => React.ReactElement | null;
|
|
4
|
+
export declare const numberFormat: (value: number) => string;
|
|
5
|
+
export declare function applyOpacity(color: string, opacity: number): string;
|
|
6
|
+
export declare function adjustLightness(color: string, percentage: number): string;
|
|
7
|
+
export declare const _getDeviceTier: () => "low" | "medium" | "high";
|
|
8
|
+
export declare const createCtx: <T>() => readonly [React.Provider<T>, () => T];
|
|
9
|
+
export declare const createUseContext: <T>(context: React.Context<T | null>) => T;
|
|
10
|
+
export declare const capitalize: (string: string) => string;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import React, { createContext as reactCreateContext, useContext } from 'react';
|
|
3
|
+
import * as Device from 'expo-device';
|
|
4
|
+
import { hsla, parseToHsla, parseToRgba } from 'color2k';
|
|
5
|
+
export const addProps = (element, additionalStyles = [], extraProps = {}) => {
|
|
6
|
+
if (!React.isValidElement(element))
|
|
7
|
+
return null;
|
|
8
|
+
return React.cloneElement(element, {
|
|
9
|
+
style: [
|
|
10
|
+
element.props.style,
|
|
11
|
+
...additionalStyles
|
|
12
|
+
],
|
|
13
|
+
...extraProps
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const formatter = new Intl.NumberFormat('es-AR');
|
|
17
|
+
export const numberFormat = (value) => {
|
|
18
|
+
const abs = formatter.format(Math.abs(value));
|
|
19
|
+
return value < 0 ? `(${abs})` : abs;
|
|
20
|
+
};
|
|
21
|
+
export function applyOpacity(color, opacity) {
|
|
22
|
+
try {
|
|
23
|
+
const [r, g, b] = parseToRgba(color); // ignoro alpha original
|
|
24
|
+
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
|
|
25
|
+
}
|
|
26
|
+
catch (e) {
|
|
27
|
+
console.error('Color inválido:', color);
|
|
28
|
+
return color;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function adjustLightness(color, percentage) {
|
|
32
|
+
try {
|
|
33
|
+
const [h, s, l, a] = parseToHsla(color);
|
|
34
|
+
// Ajustar luminosidad: percentage puede ser positivo (aclarar) o negativo (oscurecer)
|
|
35
|
+
// l está en rango 0-1, percentage es de -100 a +100
|
|
36
|
+
const newL = Math.max(0, Math.min(1, l + (percentage / 100)));
|
|
37
|
+
return hsla(h, s, newL, a);
|
|
38
|
+
}
|
|
39
|
+
catch (e) {
|
|
40
|
+
console.error('Color inválido:', color);
|
|
41
|
+
return color;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export const _getDeviceTier = () => {
|
|
45
|
+
if (Platform.OS !== 'android')
|
|
46
|
+
return 'high';
|
|
47
|
+
const ramGB = Device.totalMemory
|
|
48
|
+
? Device.totalMemory / 1024 / 1024 / 1024
|
|
49
|
+
: 0;
|
|
50
|
+
if (ramGB > 0 && ramGB <= 4)
|
|
51
|
+
return 'low';
|
|
52
|
+
if (ramGB <= 6)
|
|
53
|
+
return 'medium';
|
|
54
|
+
return 'high';
|
|
55
|
+
};
|
|
56
|
+
export const createCtx = () => {
|
|
57
|
+
const context = reactCreateContext(null);
|
|
58
|
+
const useCtx = () => createUseContext(context);
|
|
59
|
+
return [context.Provider, useCtx];
|
|
60
|
+
};
|
|
61
|
+
export const createUseContext = (context) => {
|
|
62
|
+
const ctx = useContext(context);
|
|
63
|
+
if (!ctx)
|
|
64
|
+
throw new Error('useContext debe usarse dentro de un context.Provider');
|
|
65
|
+
return ctx;
|
|
66
|
+
};
|
|
67
|
+
export const capitalize = (string) => {
|
|
68
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MeshGradientView } from 'expo-mesh-gradient';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { applyOpacity } from '../../../../libs/constants/utils';
|
|
5
|
+
export default memo(({ backgroundColorPage }) => {
|
|
6
|
+
const c06 = applyOpacity(backgroundColorPage, 0.6);
|
|
7
|
+
const c08 = applyOpacity(backgroundColorPage, 0.8);
|
|
8
|
+
const c09 = applyOpacity(backgroundColorPage, 0.9);
|
|
9
|
+
return (<MeshGradientView style={[StyleSheet.absoluteFillObject]} columns={2} rows={5} colors={[
|
|
10
|
+
'transparent', 'transparent',
|
|
11
|
+
c06, c06,
|
|
12
|
+
c08, c08,
|
|
13
|
+
c09, c09,
|
|
14
|
+
c09, c09
|
|
15
|
+
]} points={[
|
|
16
|
+
[0.0, 0.0], [1.0, 0.0],
|
|
17
|
+
[0.0, 0.25], [1.0, 0.25],
|
|
18
|
+
[0.0, 0.5], [1.0, 0.5],
|
|
19
|
+
[0.0, 0.75], [1.0, 0.75],
|
|
20
|
+
[0.0, 1.0], [1.0, 1.0],
|
|
21
|
+
]}/>);
|
|
22
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import MaskedView from '@react-native-masked-view/masked-view';
|
|
2
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { applyOpacity } from '../../../../libs/constants/utils';
|
|
6
|
+
export default memo(({ backgroundColorPage }) => {
|
|
7
|
+
const c06 = applyOpacity(backgroundColorPage, 0.6);
|
|
8
|
+
const c08 = applyOpacity(backgroundColorPage, 0.8);
|
|
9
|
+
const c09 = applyOpacity(backgroundColorPage, 0.9);
|
|
10
|
+
return (<MaskedView style={[StyleSheet.absoluteFillObject]} maskElement={<LinearGradient colors={[
|
|
11
|
+
'transparent',
|
|
12
|
+
c06,
|
|
13
|
+
c08,
|
|
14
|
+
c09,
|
|
15
|
+
c09
|
|
16
|
+
]} start={{ x: 0.5, y: 0 }} // arriba-centro
|
|
17
|
+
end={{ x: 0.5, y: 1 }} // abajo-centro
|
|
18
|
+
style={[StyleSheet.absoluteFillObject]}/>}>
|
|
19
|
+
<View style={[StyleSheet.absoluteFillObject, { backgroundColor: backgroundColorPage }]}></View>
|
|
20
|
+
</MaskedView>);
|
|
21
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import colors from '../constants';
|
|
2
|
+
import { useApp } from "../../../../libs/providers/App";
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
|
+
import { StyleSheet, Text } from 'react-native';
|
|
5
|
+
export default memo(({ text, enabled, themeColor = 'default' }) => {
|
|
6
|
+
const { colorScheme } = useApp();
|
|
7
|
+
const Theme = colors.theme[colorScheme];
|
|
8
|
+
const color = useMemo(() => enabled ? (themeColor === 'default' ? colors.especiales.celeste : Theme.text2) : Theme.colorTextButtonFooterDisabled, [enabled, themeColor]);
|
|
9
|
+
return (<Text style={[styles.text, { color: color }]}>
|
|
10
|
+
{text}
|
|
11
|
+
</Text>);
|
|
12
|
+
});
|
|
13
|
+
const styles = StyleSheet.create({
|
|
14
|
+
text: {
|
|
15
|
+
fontSize: 17,
|
|
16
|
+
fontWeight: '600',
|
|
17
|
+
},
|
|
18
|
+
});
|