native-pytech 1.0.235 → 1.0.236

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.
Files changed (89) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +66 -66
  3. package/dist/libs/assets/components/RemoveCircle.js +4 -4
  4. package/dist/libs/assets/components/ReorderThreeOutline.js +6 -6
  5. package/dist/libs/assets/images/login_apple.svg +27 -27
  6. package/dist/libs/assets/images/login_letras.svg +40 -40
  7. package/dist/libs/assets/images/login_letras_dark.svg +40 -40
  8. package/dist/libs/assets/images/login_sol.svg +58 -58
  9. package/dist/libs/assets/images/logo_letras.svg +28 -28
  10. package/dist/libs/assets/images/logo_letras_dark.svg +28 -28
  11. package/dist/libs/assets/images/remove-circle.svg +3 -3
  12. package/dist/libs/assets/images/test.svg +22 -22
  13. package/dist/libs/assets/ionicons/Ionicons.js +2 -2
  14. package/dist/libs/colorPage/src/Content/index.android.js +4 -4
  15. package/dist/libs/colorPage/src/Content/index.ios.js +10 -10
  16. package/dist/libs/colorPage/src/Content/index.js +4 -4
  17. package/dist/libs/colorPage/src/Item/index.android.js +15 -15
  18. package/dist/libs/colorPage/src/Item/index.ios.js +2 -2
  19. package/dist/libs/colorPage/src/Item/index.js +2 -2
  20. package/dist/libs/colorPage/src/Page/index.js +3 -3
  21. package/dist/libs/components/CloseButton.js +2 -2
  22. package/dist/libs/components/Gradient/components/Gradient/index.js +5 -5
  23. package/dist/libs/components/Link.js +7 -7
  24. package/dist/libs/components/Text.js +2 -2
  25. package/dist/libs/editPage/src/components/Header/index.js +12 -12
  26. package/dist/libs/editPage/src/components/Header/index.web.js +2 -2
  27. package/dist/libs/editPage/src/components/Item/index.ios.js +4 -4
  28. package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.js +5 -5
  29. package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.js +5 -5
  30. package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.js +5 -5
  31. package/dist/libs/editPage/src/components/Screen/index.js +4 -4
  32. package/dist/libs/footer/src/components/Background/index.js +2 -2
  33. package/dist/libs/footer/src/components/Button/Text.js +2 -2
  34. package/dist/libs/footer/src/components/Button/index.ios.js +4 -4
  35. package/dist/libs/footer/src/components/Button/index.js +2 -2
  36. package/dist/libs/footer/src/components/Footer/index.ios.js +4 -4
  37. package/dist/libs/footer/src/components/Footer/index.js +13 -13
  38. package/dist/libs/footer/src/components/View.js +2 -2
  39. package/dist/libs/login/src/Pages/Home/index.js +3 -3
  40. package/dist/libs/login/src/Pages/SignIn/Form/index.js +13 -13
  41. package/dist/libs/login/src/Pages/SignIn/index.js +24 -24
  42. package/dist/libs/login/src/Screen/Container.ios.js +4 -4
  43. package/dist/libs/login/src/Screen/Container.js +8 -8
  44. package/dist/libs/login/src/Screen/components/Gradient.js +2 -2
  45. package/dist/libs/login/src/Screen/components/Input/index.js +21 -21
  46. package/dist/libs/login/src/Screen/index.js +14 -14
  47. package/dist/libs/page/src/components/Page/index.android.js +4 -4
  48. package/dist/libs/page/src/components/Page/index.js +2 -2
  49. package/dist/libs/page/src/components/PageWrapper/index.js +2 -2
  50. package/dist/libs/page/src/components/WithIcon/index.js +10 -10
  51. package/dist/libs/pickerPage/src/components/Content/index.ios.js +8 -8
  52. package/dist/libs/pickerPage/src/components/Content/index.js +6 -6
  53. package/dist/libs/pickerPage/src/components/Item/index.js +5 -5
  54. package/dist/libs/pickerPage/src/components/Page/index.js +12 -12
  55. package/dist/libs/providers/App/index.js +8 -8
  56. package/dist/libs/providers/App/styles.css +16 -16
  57. package/dist/libs/sections/Icon/src/Section.ios.js +4 -4
  58. package/dist/libs/sections/Icon/src/index.ios.js +13 -13
  59. package/dist/libs/sections/Icon/src/index.js +15 -15
  60. package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +2 -2
  61. package/dist/libs/segmentedControl/src/components/Container/index.ios.js +2 -2
  62. package/dist/libs/segmentedControl/src/components/Container/index.js +2 -2
  63. package/dist/libs/segmentedControl/src/components/Item/index.js +4 -4
  64. package/dist/libs/segmentedControl/src/components/Segmented/index.js +10 -10
  65. package/dist/libs/segmentedControl/src/components/Wrapper/index.js +2 -2
  66. package/dist/libs/segmentedControl/src/context/shared.js +2 -2
  67. package/dist/libs/swiftui/src/components/Dialog/index.js +12 -12
  68. package/dist/libs/swiftui/src/components/Icon.js +3 -3
  69. package/dist/libs/swiftui/src/components/IconSection/Icon.js +13 -13
  70. package/dist/libs/swiftui/src/components/IconSection/Section.js +4 -4
  71. package/dist/libs/swiftui/src/components/List/BaseList/index.js +2 -2
  72. package/dist/libs/swiftui/src/components/List/Editable/List/index.js +4 -4
  73. package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +4 -4
  74. package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +7 -7
  75. package/dist/libs/swiftui/src/components/NavigationLink/index.js +6 -6
  76. package/dist/libs/swiftui/src/components/Picker.js +4 -4
  77. package/dist/libs/swiftui/src/components/TextSubtitle.js +3 -3
  78. package/dist/libs/table/src/components/Borders.js +3 -3
  79. package/dist/libs/table/src/components/Delete/index.js +16 -16
  80. package/dist/libs/table/src/components/Detail.js +2 -2
  81. package/dist/libs/table/src/components/Option/index.js +18 -17
  82. package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +2 -2
  83. package/dist/libs/table/src/components/OptionComponents/dragIcon.js +2 -2
  84. package/dist/libs/table/src/components/OptionComponents/text.js +3 -3
  85. package/dist/libs/table/src/components/OptionComponents/textView.js +2 -2
  86. package/dist/libs/table/src/components/Table/index.js +19 -19
  87. package/dist/libs/table/src/components/Wrapper.js +15 -15
  88. package/dist/libs/table/src/context/borders.js +2 -2
  89. package/package.json +87 -87
@@ -32,16 +32,16 @@ export default memo(({ children, getBackgroundColor, getSession, renderItemLoadi
32
32
  // -------------- Return --------------
33
33
  const value = useMemo(() => ({ colorScheme: colorScheme, fontScale: fontScale }), [colorScheme, fontScale]);
34
34
  if (isLoading) {
35
- return (<View style={[styles.container, { backgroundColor: getBackgroundColor?.({ colorScheme }) || Theme.backgroundColor }]}>
36
- {renderItemLoading({ colorScheme })}
35
+ return (<View style={[styles.container, { backgroundColor: getBackgroundColor?.({ colorScheme }) || Theme.backgroundColor }]}>
36
+ {renderItemLoading({ colorScheme })}
37
37
  </View>);
38
38
  }
39
- return (<SafeAreaProvider>
40
- <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
41
- <Provider value={value}>
42
- {children}
43
- </Provider>
44
- </ThemeProvider>
39
+ return (<SafeAreaProvider>
40
+ <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
41
+ <Provider value={value}>
42
+ {children}
43
+ </Provider>
44
+ </ThemeProvider>
45
45
  </SafeAreaProvider>);
46
46
  });
47
47
  const styles = StyleSheet.create({
@@ -1,17 +1,17 @@
1
- /* Scrollbar */
2
- ::-webkit-scrollbar {
3
- width: 8px;
4
- }
5
-
6
- ::-webkit-scrollbar-track {
7
- background: transparent;
8
- }
9
-
10
- ::-webkit-scrollbar-thumb {
11
- background: hsl(252, 3%, 35%);
12
- border-radius: 999px;
13
- }
14
-
15
- ::-webkit-scrollbar-thumb:hover {
16
- background: hsl(252, 3%, 50%);
1
+ /* Scrollbar */
2
+ ::-webkit-scrollbar {
3
+ width: 8px;
4
+ }
5
+
6
+ ::-webkit-scrollbar-track {
7
+ background: transparent;
8
+ }
9
+
10
+ ::-webkit-scrollbar-thumb {
11
+ background: hsl(252, 3%, 35%);
12
+ border-radius: 999px;
13
+ }
14
+
15
+ ::-webkit-scrollbar-thumb:hover {
16
+ background: hsl(252, 3%, 50%);
17
17
  }
@@ -9,9 +9,9 @@ export default memo(({ children, modifiers, ...vStackProps }) => {
9
9
  listRowBackground('transparent'),
10
10
  listRowInsets({ bottom: 0.1 })
11
11
  ], [modifiers]);
12
- return (<Section>
13
- <VStack spacing={20} modifiers={_modifiers} {...vStackProps}>
14
- {children}
15
- </VStack>
12
+ return (<Section>
13
+ <VStack spacing={20} modifiers={_modifiers} {...vStackProps}>
14
+ {children}
15
+ </VStack>
16
16
  </Section>);
17
17
  });
@@ -6,21 +6,21 @@ import Text from '../../../../libs/swiftui/src/components/Text';
6
6
  import Section from './Section.ios';
7
7
  export default memo(({ title, subtitle, gradientProps, buttonProps }) => {
8
8
  const spacing = gradientProps?.type === 'extraLarge' ? 10 : 20;
9
- return (<Section spacing={spacing}>
10
- {gradientProps && (<Gradient {...gradientProps}/>)}
11
-
12
- {(title || subtitle) && (subtitle ? (<VStack modifiers={[frame({ alignment: 'center' })]} spacing={2}>
13
- <Title title={title}/>
14
- <Text secondary>
15
- {subtitle}
16
- </Text>
17
- </VStack>) : (<Title title={title}/>))}
18
-
19
- {buttonProps && (<Button {...buttonProps} modifiers={[buttonStyle('bordered')]}/>)}
9
+ return (<Section spacing={spacing}>
10
+ {gradientProps && (<Gradient {...gradientProps}/>)}
11
+
12
+ {(title || subtitle) && (subtitle ? (<VStack modifiers={[frame({ alignment: 'center' })]} spacing={2}>
13
+ <Title title={title}/>
14
+ <Text secondary>
15
+ {subtitle}
16
+ </Text>
17
+ </VStack>) : (<Title title={title}/>))}
18
+
19
+ {buttonProps && (<Button {...buttonProps} modifiers={[buttonStyle('bordered')]}/>)}
20
20
  </Section>);
21
21
  });
22
22
  const Title = memo(({ title }) => {
23
- return (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
24
- {title}
23
+ return (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
24
+ {title}
25
25
  </Text>);
26
26
  });
@@ -6,24 +6,24 @@ import { useApp } from "../../../../libs/providers/App";
6
6
  export default memo(({ title, subtitle, gradientProps, buttonProps }) => {
7
7
  const { colorScheme } = useApp();
8
8
  const spacing = gradientProps?.type === 'extraLarge' ? 10 : 20;
9
- return (<View style={[styles.container, { gap: spacing }]}>
10
- {gradientProps && (<Gradient {...gradientProps}/>)}
11
-
12
- {(title || subtitle) && (subtitle ? (<View style={styles.containerTitle}>
13
- <Title title={title} colorScheme={colorScheme}/>
14
- <Text style={[styles.subtitle, { color: Colors[colorScheme].text2 }]}>
15
- {subtitle}
16
- </Text>
17
- </View>) : (<Title title={title} colorScheme={colorScheme}/>))}
18
-
19
- {buttonProps && (<Pressable onPress={buttonProps.onPress} style={styles.pressable}>
20
- <Text style={styles.label}>{buttonProps.label}</Text>
21
- </Pressable>)}
9
+ return (<View style={[styles.container, { gap: spacing }]}>
10
+ {gradientProps && (<Gradient {...gradientProps}/>)}
11
+
12
+ {(title || subtitle) && (subtitle ? (<View style={styles.containerTitle}>
13
+ <Title title={title} colorScheme={colorScheme}/>
14
+ <Text style={[styles.subtitle, { color: Colors[colorScheme].text2 }]}>
15
+ {subtitle}
16
+ </Text>
17
+ </View>) : (<Title title={title} colorScheme={colorScheme}/>))}
18
+
19
+ {buttonProps && (<Pressable onPress={buttonProps.onPress} style={styles.pressable}>
20
+ <Text style={styles.label}>{buttonProps.label}</Text>
21
+ </Pressable>)}
22
22
  </View>);
23
23
  });
24
24
  const Title = memo(({ title, colorScheme }) => {
25
- return (<Text style={[styles.title, { color: Colors[colorScheme].text }]}>
26
- {title}
25
+ return (<Text style={[styles.title, { color: Colors[colorScheme].text }]}>
26
+ {title}
27
27
  </Text>);
28
28
  });
29
29
  const styles = StyleSheet.create({
@@ -63,8 +63,8 @@ export default memo(({ isScrollable, onFinishedSelectedIndex, onChangeEqualWidth
63
63
  const animatedStyle = useAnimatedStyle(() => {
64
64
  return { width: widthChipShared.value, left: leftChipShared.value };
65
65
  });
66
- return (<Animated.View style={[styles.container, animatedStyle]}>
67
- <View style={[styles.chip, { backgroundColor: Theme.chip }]}/>
66
+ return (<Animated.View style={[styles.container, animatedStyle]}>
67
+ <View style={[styles.chip, { backgroundColor: Theme.chip }]}/>
68
68
  </Animated.View>);
69
69
  });
70
70
  const styles = StyleSheet.create({
@@ -2,8 +2,8 @@ import { GlassView } from "expo-glass-effect";
2
2
  import { memo } from "react";
3
3
  import { StyleSheet } from "react-native";
4
4
  export default memo(({ children, onLayout, style }) => {
5
- return (<GlassView glassEffectStyle={'clear'} style={[styles.container, style]} onLayout={onLayout}>
6
- {children}
5
+ return (<GlassView glassEffectStyle={'clear'} style={[styles.container, style]} onLayout={onLayout}>
6
+ {children}
7
7
  </GlassView>);
8
8
  });
9
9
  const styles = StyleSheet.create({
@@ -5,8 +5,8 @@ import colors from "../../colors";
5
5
  export default memo(({ children, onLayout, style }) => {
6
6
  const { colorScheme } = useApp();
7
7
  const Theme = colors[colorScheme];
8
- return (<View style={[styles.container, { backgroundColor: Theme.background }, style]} onLayout={onLayout}>
9
- {children}
8
+ return (<View style={[styles.container, { backgroundColor: Theme.background }, style]} onLayout={onLayout}>
9
+ {children}
10
10
  </View>);
11
11
  });
12
12
  const styles = StyleSheet.create({
@@ -5,10 +5,10 @@ import colors from "../../colors";
5
5
  export default memo(({ text, onPress, onLayout, textStyle, }) => {
6
6
  const { colorScheme } = useApp();
7
7
  const Theme = colors[colorScheme];
8
- return (<Pressable style={styles.pressable} onPress={onPress} onLayout={onLayout}>
9
- <Text numberOfLines={1} style={[styles.text, { color: Theme.text }, textStyle]}>
10
- {text}
11
- </Text>
8
+ return (<Pressable style={styles.pressable} onPress={onPress} onLayout={onLayout}>
9
+ <Text numberOfLines={1} style={[styles.text, { color: Theme.text }, textStyle]}>
10
+ {text}
11
+ </Text>
12
12
  </Pressable>);
13
13
  });
14
14
  const styles = StyleSheet.create({
@@ -53,18 +53,18 @@ export default memo(({ data, selectedIndex, setCurrentSelectedIndex, isScrollabl
53
53
  Hooks.useEffectWithoutFirstRender(() => {
54
54
  onPress(selectedIndex);
55
55
  }, [selectedIndex]);
56
- const content = (<>
57
- <AnimatedChip isScrollable={isScrollable} onFinishedSelectedIndex={(index) => setCurrentSelectedIndex(index)} onChangeEqualWidths={(isEqualWidths) => setEqualWidths(isEqualWidths)} widthsShared={widthsShared} widthContainerShared={widthContainerShared}/>
58
-
59
- {data.map((text, index) => (<Item key={index} text={text} onPress={() => onPress(index)} onLayout={(e) => onLayoutItem(index, e)} {...itemProps}/>))}
56
+ const content = (<>
57
+ <AnimatedChip isScrollable={isScrollable} onFinishedSelectedIndex={(index) => setCurrentSelectedIndex(index)} onChangeEqualWidths={(isEqualWidths) => setEqualWidths(isEqualWidths)} widthsShared={widthsShared} widthContainerShared={widthContainerShared}/>
58
+
59
+ {data.map((text, index) => (<Item key={index} text={text} onPress={() => onPress(index)} onLayout={(e) => onLayoutItem(index, e)} {...itemProps}/>))}
60
60
  </>);
61
61
  return (<Container style={style} onLayout={(e) => widthContainerShared.value = (e.nativeEvent.layout.width - 2 * 2)} // Restamos 4px de margin
62
- >
63
- {equalWidths || !isScrollable ? (<View style={[styles.view, contentContainerStyle]}>
64
- {content}
65
- </View>) : (<ScrollView ref={scrollRef} horizontal={true} showsHorizontalScrollIndicator={false} style={styles.scrollView} contentContainerStyle={[styles.contentContainer, contentContainerStyle]} scrollEventThrottle={16} onScroll={e => scrollXRef.current = e.nativeEvent.contentOffset.x}>
66
- {content}
67
- </ScrollView>)}
62
+ >
63
+ {equalWidths || !isScrollable ? (<View style={[styles.view, contentContainerStyle]}>
64
+ {content}
65
+ </View>) : (<ScrollView ref={scrollRef} horizontal={true} showsHorizontalScrollIndicator={false} style={styles.scrollView} contentContainerStyle={[styles.contentContainer, contentContainerStyle]} scrollEventThrottle={16} onScroll={e => scrollXRef.current = e.nativeEvent.contentOffset.x}>
66
+ {content}
67
+ </ScrollView>)}
68
68
  </Container>);
69
69
  });
70
70
  const styles = StyleSheet.create({
@@ -14,8 +14,8 @@ export default memo(({ data = [], selectedIndex = 0, onChange, ...props }) => {
14
14
  const { selectedIndexShared } = useShared() ?? {};
15
15
  const component = (<Segmented data={data} selectedIndex={_selectedIndex} setCurrentSelectedIndex={setCurrentSelectedIndex} {...props}/>);
16
16
  if (!selectedIndexShared)
17
- return (<Provider selectedIndex={_selectedIndex}>
18
- {component}
17
+ return (<Provider selectedIndex={_selectedIndex}>
18
+ {component}
19
19
  </Provider>);
20
20
  return component;
21
21
  });
@@ -7,7 +7,7 @@ export const useShared = () => useContext(context);
7
7
  export default memo(({ children, selectedIndex = 0 }) => {
8
8
  const _selectedIndex = getIndex(selectedIndex);
9
9
  const selectedIndexShared = useSharedValue(_selectedIndex);
10
- return (<context.Provider value={{ selectedIndexShared }}>
11
- {children}
10
+ return (<context.Provider value={{ selectedIndexShared }}>
11
+ {children}
12
12
  </context.Provider>);
13
13
  });
@@ -6,17 +6,17 @@ export default memo(({ children, buttonTriggerProps, title, message, }) => {
6
6
  buttonTriggerProps?.onPress?.();
7
7
  setIsPresented(true);
8
8
  }, []);
9
- return (<ConfirmationDialog title={title ?? ''} isPresented={isPresented} onIsPresentedChange={setIsPresented} titleVisibility={title ? 'visible' : 'hidden'}>
10
- <ConfirmationDialog.Trigger>
11
- <Button {...buttonTriggerProps} onPress={onPress}/>
12
- </ConfirmationDialog.Trigger>
13
-
14
- <ConfirmationDialog.Actions>
15
- {children}
16
- </ConfirmationDialog.Actions>
17
-
18
- {message && <ConfirmationDialog.Message>
19
- <Text>{message}</Text>
20
- </ConfirmationDialog.Message>}
9
+ return (<ConfirmationDialog title={title ?? ''} isPresented={isPresented} onIsPresentedChange={setIsPresented} titleVisibility={title ? 'visible' : 'hidden'}>
10
+ <ConfirmationDialog.Trigger>
11
+ <Button {...buttonTriggerProps} onPress={onPress}/>
12
+ </ConfirmationDialog.Trigger>
13
+
14
+ <ConfirmationDialog.Actions>
15
+ {children}
16
+ </ConfirmationDialog.Actions>
17
+
18
+ {message && <ConfirmationDialog.Message>
19
+ <Text>{message}</Text>
20
+ </ConfirmationDialog.Message>}
21
21
  </ConfirmationDialog>);
22
22
  });
@@ -1,8 +1,8 @@
1
1
  import { Label, HStack } from '@expo/ui/swift-ui';
2
2
  import { memo } from 'react';
3
3
  export default memo(({ children, ...labelProps }) => {
4
- return (<HStack>
5
- <Label {...labelProps} title=""/>
6
- {children}
4
+ return (<HStack>
5
+ <Label {...labelProps} title=""/>
6
+ {children}
7
7
  </HStack>);
8
8
  });
@@ -6,21 +6,21 @@ import Text from '../Text';
6
6
  import Section from './Section';
7
7
  export default memo(({ title, subtitle, gradientProps, buttonProps, }) => {
8
8
  const spacing = gradientProps?.type === 'extraLarge' ? 10 : 20;
9
- return (<Section spacing={spacing}>
10
- {gradientProps && (<Gradient {...gradientProps}/>)}
11
-
12
- {(title || subtitle) && (subtitle ? (<VStack modifiers={[frame({ alignment: 'center' })]} spacing={2}>
13
- <Title title={title}/>
14
- <Text secondary>
15
- {subtitle}
16
- </Text>
17
- </VStack>) : (<Title title={title}/>))}
18
-
19
- {buttonProps && (<Button {...buttonProps} modifiers={[buttonStyle('bordered'), ...(buttonProps?.modifiers || [])]}/>)}
9
+ return (<Section spacing={spacing}>
10
+ {gradientProps && (<Gradient {...gradientProps}/>)}
11
+
12
+ {(title || subtitle) && (subtitle ? (<VStack modifiers={[frame({ alignment: 'center' })]} spacing={2}>
13
+ <Title title={title}/>
14
+ <Text secondary>
15
+ {subtitle}
16
+ </Text>
17
+ </VStack>) : (<Title title={title}/>))}
18
+
19
+ {buttonProps && (<Button {...buttonProps} modifiers={[buttonStyle('bordered'), ...(buttonProps?.modifiers || [])]}/>)}
20
20
  </Section>);
21
21
  });
22
22
  const Title = memo(({ title }) => {
23
- return (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
24
- {title}
23
+ return (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
24
+ {title}
25
25
  </Text>);
26
26
  });
@@ -9,9 +9,9 @@ export default memo(({ children, modifiers, ...vStackProps }) => {
9
9
  listRowBackground('transparent'),
10
10
  listRowInsets({ bottom: 0.1 })
11
11
  ], [modifiers]);
12
- return (<Section>
13
- <VStack spacing={20} modifiers={_modifiers} {...vStackProps}>
14
- {children}
15
- </VStack>
12
+ return (<Section>
13
+ <VStack spacing={20} modifiers={_modifiers} {...vStackProps}>
14
+ {children}
15
+ </VStack>
16
16
  </Section>);
17
17
  });
@@ -14,7 +14,7 @@ export default memo(({ children, modifiers, disablePaddingTop, listStyle, onRefr
14
14
  ...(disablePaddingTop ? [] : [padding({ top: -15 })]),
15
15
  ...(onRefresh ? [refreshable(onRefresh)] : []),
16
16
  ], [modifiers, disablePaddingTop, onRefresh]);
17
- return (<List modifiers={_modifiers} {...listProps}>
18
- {children}
17
+ return (<List modifiers={_modifiers} {...listProps}>
18
+ {children}
19
19
  </List>);
20
20
  });
@@ -11,9 +11,9 @@ export default memo(({ children, editMode, moveEnabled = false, deleteEnabled =
11
11
  ...(deleteEnabled ? [deleteDisabled(false)] : []),
12
12
  ], [modifiers, editMode, moveEnabled, deleteEnabled]);
13
13
  const value = useMemo(() => ({ enableMove: moveEnabled, enableDelete: deleteEnabled }), [moveEnabled, deleteEnabled]);
14
- return (<BaseList {...listProps} modifiers={_modifiers}>
15
- <Provider value={value}>
16
- {children}
17
- </Provider>
14
+ return (<BaseList {...listProps} modifiers={_modifiers}>
15
+ <Provider value={value}>
16
+ {children}
17
+ </Provider>
18
18
  </BaseList>);
19
19
  });
@@ -24,13 +24,13 @@ function Component({ data = [], keyExtractor, onDelete, onMove, renderItem, sect
24
24
  });
25
25
  onMove?.({ listIndexes: sourceIndices, destinationIndex: adjustedDest });
26
26
  }, [onMove]);
27
- return (<Section {...sectionProps}>
28
- <List.ForEach onDelete={handleDelete} onMove={handleMove} modifiers={[moveDisabled(!enableMove), deleteDisabled(!enableDelete)]}>
27
+ return (<Section {...sectionProps}>
28
+ <List.ForEach onDelete={handleDelete} onMove={handleMove} modifiers={[moveDisabled(!enableMove), deleteDisabled(!enableDelete)]}>
29
29
  {_data.map((item, index) => {
30
30
  const key = keyExtractor?.(item) ?? index;
31
31
  return renderItem?.({ item, tagModifier: tag(key) });
32
- })}
33
- </List.ForEach>
32
+ })}
33
+ </List.ForEach>
34
34
  </Section>);
35
35
  }
36
36
  export default memo(Component);
@@ -3,12 +3,12 @@ import { memo } from 'react';
3
3
  import Text from '../Text';
4
4
  import ChevronRight from '../ChevronRight';
5
5
  export default memo(({ text, textProps, component }) => {
6
- return (<>
7
- <Spacer />
8
- {(text || component) ? (<HStack spacing={10}>
9
- {text && <Text {...textProps} secondary>{text}</Text>}
10
- {component}
11
- <ChevronRight />
12
- </HStack>) : (<ChevronRight />)}
6
+ return (<>
7
+ <Spacer />
8
+ {(text || component) ? (<HStack spacing={10}>
9
+ {text && <Text {...textProps} secondary>{text}</Text>}
10
+ {component}
11
+ <ChevronRight />
12
+ </HStack>) : (<ChevronRight />)}
13
13
  </>);
14
14
  });
@@ -7,11 +7,11 @@ export default memo(({ children, onPress, icon, label, systemImage, listRowInset
7
7
  ...(modifiers ?? []),
8
8
  ...(listRowInsets ? [listRowInsetsModifier({ top: 20, bottom: 20, leading: 25, trailing: 20 })] : []),
9
9
  ], [modifiers, listRowInsets]);
10
- return (<HStack modifiers={_modifiers}>
11
- <Button onPress={onPress} modifiers={[foregroundStyle({ type: 'hierarchical', style: 'primary' })]}>
12
- {children ?? (!systemImage ? <Label title={label} icon={icon}/> : undefined)}
13
- </Button>
14
- {systemImage && <Label title={label} systemImage={systemImage} icon={icon}/>}
15
- <Trailing text={trailingText} textProps={trailingTextProps} component={trailingComponent}/>
10
+ return (<HStack modifiers={_modifiers}>
11
+ <Button onPress={onPress} modifiers={[foregroundStyle({ type: 'hierarchical', style: 'primary' })]}>
12
+ {children ?? (!systemImage ? <Label title={label} icon={icon}/> : undefined)}
13
+ </Button>
14
+ {systemImage && <Label title={label} systemImage={systemImage} icon={icon}/>}
15
+ <Trailing text={trailingText} textProps={trailingTextProps} component={trailingComponent}/>
16
16
  </HStack>);
17
17
  });
@@ -6,9 +6,9 @@ export default memo(({ modifiers, data = [], ...pickerProps }) => {
6
6
  ...(modifiers ?? []),
7
7
  pickerStyle('menu'),
8
8
  ], [modifiers]);
9
- return (<Picker modifiers={_modifiers} {...pickerProps}>
10
- {data.map(item => (<Text key={item} modifiers={[tag(item)]}>
11
- {item}
12
- </Text>))}
9
+ return (<Picker modifiers={_modifiers} {...pickerProps}>
10
+ {data.map(item => (<Text key={item} modifiers={[tag(item)]}>
11
+ {item}
12
+ </Text>))}
13
13
  </Picker>);
14
14
  });
@@ -2,8 +2,8 @@ import { VStack } from '@expo/ui/swift-ui';
2
2
  import { memo } from 'react';
3
3
  import Text from './Text';
4
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>
5
+ return (<VStack alignment='leading' spacing={2}>
6
+ <Text {...titleTextProps}>{title}</Text>
7
+ <Text {...subtitleTextProps} secondary>{subtitle}</Text>
8
8
  </VStack>);
9
9
  });
@@ -28,13 +28,13 @@ const Component = memo(({ id, borders }) => {
28
28
  const style = justTop ? { bottom: null } : { top: null }; //Cancela el bottom o el top de styles.space
29
29
  return <View style={[styles.space, styles.border, styleSpaces, style, { backgroundColor: borders.color }]}/>;
30
30
  }
31
- return (<View style={[styles.space, styleSpaces]}>
31
+ return (<View style={[styles.space, styleSpaces]}>
32
32
  {shownTop == null ?
33
33
  <BorderExtended isTop={true} id={id} color={borders.color}/> :
34
- <Border show={borders.shownTop} color={borders.color}/>}
34
+ <Border show={borders.shownTop} color={borders.color}/>}
35
35
  {shownBottom == null ?
36
36
  <BorderExtended isTop={false} id={id} color={borders.color}/> :
37
- <Border show={borders.shownBottom} color={borders.color}/>}
37
+ <Border show={borders.shownBottom} color={borders.color}/>}
38
38
  </View>);
39
39
  });
40
40
  const BorderExtended = memo(({ isTop, id, color }) => {
@@ -88,7 +88,7 @@ const Component = memo(({ children, id, removeWidth, onDelete, onDeleteShown, se
88
88
  onTouchStart: start,
89
89
  onTouchEnd: end,
90
90
  }), []);
91
- return (<>
91
+ return (<>
92
92
  <Pressable style={[styles.pressableRemove]} {...onLayputProps} onPress={() => {
93
93
  removeStateValue.stopAnimation();
94
94
  setDeleted(true);
@@ -99,21 +99,21 @@ const Component = memo(({ children, id, removeWidth, onDelete, onDeleteShown, se
99
99
  store.deleted.keys.set(newKeys);
100
100
  store.deleted.id.set(null);
101
101
  });
102
- }}>
103
- <Animated.View style={[animatedRemoveStyle, styles.containerRemove, styleWidthRemove]}>
104
- <Text style={styles.text}>Eliminar</Text>
105
- </Animated.View>
106
- </Pressable>
107
-
108
- <Animated.View style={[{ position: 'relative' }, animatedStyle]}>
109
- <Reanimated.View exiting={exitingAnimation}>
110
- <View {...viewProps}>
111
- <DeleteProvider value={contextValue}>
112
- {children}
113
- </DeleteProvider>
114
- </View>
115
- </Reanimated.View>
116
- </Animated.View>
102
+ }}>
103
+ <Animated.View style={[animatedRemoveStyle, styles.containerRemove, styleWidthRemove]}>
104
+ <Text style={styles.text}>Eliminar</Text>
105
+ </Animated.View>
106
+ </Pressable>
107
+
108
+ <Animated.View style={[{ position: 'relative' }, animatedStyle]}>
109
+ <Reanimated.View exiting={exitingAnimation}>
110
+ <View {...viewProps}>
111
+ <DeleteProvider value={contextValue}>
112
+ {children}
113
+ </DeleteProvider>
114
+ </View>
115
+ </Reanimated.View>
116
+ </Animated.View>
117
117
  </>);
118
118
  }, (prev, next) => prev.id === next.id);
119
119
  const styles = StyleSheet.create({
@@ -5,7 +5,7 @@ import colors from "../constants";
5
5
  export default memo(({ text }) => {
6
6
  const { colorScheme } = useApp();
7
7
  const Theme = colors.theme[colorScheme];
8
- return (<Text style={{ color: Theme.text2, fontSize: 13, lineHeight: 16 }}>
9
- {text}
8
+ return (<Text style={{ color: Theme.text2, fontSize: 13, lineHeight: 16 }}>
9
+ {text}
10
10
  </Text>);
11
11
  });
@@ -21,32 +21,32 @@ const AddTextView = memo(({ children, hasTextView }) => {
21
21
  const viewChildren = useCallback((children) => <View style={styles.izq}>{children}</View>, []);
22
22
  if (hasTextView_)
23
23
  return viewChildren(children);
24
- return (viewChildren(<Table.Option.Components.TextView>
25
- {children}
24
+ return (viewChildren(<Table.Option.Components.TextView>
25
+ {children}
26
26
  </Table.Option.Components.TextView>));
27
27
  });
28
28
  export default memo(({ children, childrenLeft, childrenRight, onPress, style, backgroundColorPressed, LinearGradientProps, colorScheme, hasTextView, hasNavigationArrow = false, }) => {
29
- const content = <>
30
- {childrenLeft && <AddTextView hasTextView={hasTextView}>{childrenLeft}</AddTextView>}
31
- {childrenRight || hasNavigationArrow ? (<View style={[styles.der, !childrenLeft ? { flex: 1, paddingVertical: 16.35 } : {}]}>
32
- {childrenRight}
33
- {hasNavigationArrow && <Ionicons name='chevron-forward' size={20} color={colors.theme[colorScheme].icon}/>}
34
- </View>) : null}
35
- {children}
29
+ const content = <>
30
+ {childrenLeft && <AddTextView hasTextView={hasTextView}>{childrenLeft}</AddTextView>}
31
+ {childrenRight || hasNavigationArrow ? (<View style={[styles.der, !childrenLeft ? { flex: 1, paddingVertical: 16.35 } : {}]}>
32
+ {childrenRight}
33
+ {hasNavigationArrow && <Ionicons name='chevron-forward' size={20} color={colors.theme[colorScheme].icon}/>}
34
+ </View>) : null}
35
+ {children}
36
36
  </>;
37
37
  const styleView = useMemo(() => [styles.Item_View, style], [style]);
38
38
  const childrenOption = onPress === undefined ? <View style={styleView}>{content}</View>
39
39
  : (backgroundColorPressed ? (<Pressable onPress={onPress} style={({ pressed, hovered }) => [
40
40
  styleView,
41
41
  (pressed || (Platform.OS === 'web' && hovered)) && { backgroundColor: backgroundColorPressed }
42
- ]}>
43
- {content}
44
- </Pressable>) : (<PressableView onPress={onPress} colorScheme={colorScheme} styleView={styleView}>
45
- {content}
42
+ ]}>
43
+ {content}
44
+ </Pressable>) : (<PressableView onPress={onPress} colorScheme={colorScheme} styleView={styleView}>
45
+ {content}
46
46
  </PressableView>));
47
47
  return (LinearGradientProps ?
48
- <LinearGradient {...LinearGradientProps}>
49
- {childrenOption}
48
+ <LinearGradient {...LinearGradientProps}>
49
+ {childrenOption}
50
50
  </LinearGradient>
51
51
  : childrenOption);
52
52
  });
@@ -56,8 +56,8 @@ const PressableView = memo(({ children, onPress, colorScheme, styleView }) => {
56
56
  return (<Pressable onPress={onPress} style={({ pressed, hovered }) => [
57
57
  styleView,
58
58
  (pressed || (Platform.OS === 'web' && hovered)) && { backgroundColor: backgroundColorPressed }
59
- ]}>
60
- {children}
59
+ ]}>
60
+ {children}
61
61
  </Pressable>);
62
62
  });
63
63
  /*
@@ -109,6 +109,7 @@ const styles = StyleSheet.create({
109
109
  gap: 11,
110
110
  flex: 1,
111
111
  justifyContent: 'flex-end',
112
+ paddingVertical: 10
112
113
  },
113
114
  onPressView: {
114
115
  position: 'absolute',
@@ -8,7 +8,7 @@ import colors from '../../constants';
8
8
  */
9
9
  export default memo(() => {
10
10
  const startDelete = useDelete();
11
- return (<Pressable onPress={() => startDelete()}>
12
- <RemoveCircle size={30} color={colors.especiales.rojo} insideColor='white'/>
11
+ return (<Pressable onPress={() => startDelete()}>
12
+ <RemoveCircle size={30} color={colors.especiales.rojo} insideColor='white'/>
13
13
  </Pressable>);
14
14
  });