native-pytech 1.0.229 → 1.0.233

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.
@@ -14,7 +14,8 @@ const addProps = (element, additionalStyles = [], extraProps = {}) => {
14
14
  });
15
15
  };
16
16
  const isValidMail = (mail) => {
17
- return mail.includes('@') && mail.endsWith('.com');
17
+ const at = mail.indexOf('@');
18
+ return at !== -1 && mail.lastIndexOf('.') > at && /\.[a-zA-Z]+$/.test(mail);
18
19
  };
19
20
  const applyOpacity = (color, opacity) => {
20
21
  try {
@@ -1,8 +1,8 @@
1
1
  import { Host, List, Section } from '@expo/ui/swift-ui';
2
- export default ({ children }) => (<Host style={{ flex: 1 }}>
3
- <List>
4
- <Section>
5
- {children}
6
- </Section>
7
- </List>
2
+ export default ({ children }) => (<Host style={{ flex: 1 }}>
3
+ <List>
4
+ <Section>
5
+ {children}
6
+ </Section>
7
+ </List>
8
8
  </Host>);
@@ -62,12 +62,12 @@ export default memo(({ children, saveEnabled, onSave }) => {
62
62
  next(itemKey);
63
63
  };
64
64
  const value = useMemo(() => ({ store, onSubmit, registerItem }), []);
65
- return (<>
66
- <Header saveEnabled={_saveEnabled && (saveEnabled ?? true)} onPressSave={onPressSave}/>
67
- <Screen>
68
- <Provider value={value}>
69
- {children}
70
- </Provider>
71
- </Screen>
65
+ return (<>
66
+ <Header saveEnabled={_saveEnabled && (saveEnabled ?? true)} onPressSave={onPressSave}/>
67
+ <Screen>
68
+ <Provider value={value}>
69
+ {children}
70
+ </Provider>
71
+ </Screen>
72
72
  </>);
73
73
  });
@@ -83,6 +83,7 @@ const OnPressView = memo(({ backgroundColorPressed, colorScheme }: { backgroundC
83
83
  const styles = StyleSheet.create({
84
84
  Item_View: {
85
85
  flex: 1,
86
+ display: 'flex',
86
87
  paddingLeft: left,
87
88
  paddingRight: right,
88
89
  flexDirection: 'row',
@@ -97,13 +98,17 @@ const styles = StyleSheet.create({
97
98
  flexDirection: 'row',
98
99
  alignItems: 'center',
99
100
  gap: 11,
100
- //paddingBottom: 2,
101
+ flexGrow: 0,
102
+ flexShrink: 0,
103
+ flexBasis: 'auto',
101
104
  },
102
105
  der: {
103
106
  marginLeft: 'auto',
104
107
  flexDirection: 'row',
105
108
  alignItems: 'center',
106
- gap: 11
109
+ gap: 11,
110
+ flex: 1,
111
+ justifyContent: 'flex-end',
107
112
  },
108
113
  onPressView: {
109
114
  position: 'absolute',
@@ -22,6 +22,10 @@ const Component = memo(({ text, enabled = true, style = {}, colorScheme, fontSca
22
22
  const styles = StyleSheet.create({
23
23
  text: {
24
24
  fontSize: 17,
25
- userSelect: 'none'
26
- }
25
+ userSelect: 'none',
26
+ overflow: 'hidden',
27
+ textOverflow: 'ellipsis',
28
+ whiteSpace: 'nowrap',
29
+ minWidth: 0,
30
+ },
27
31
  });
@@ -21,12 +21,12 @@ export const colors = {
21
21
  default: {
22
22
  light: {
23
23
  background: '#FFFFFF', // secondarySystemGroupedBackground
24
- background_pressed: 'hsl(0, 0%, 85%)',
24
+ background_pressed: 'hsl(0, 0%, 85%)', // secondarySystemGroupedBackground
25
25
  border: 'hsl(240, 2%, 91%)'
26
26
  },
27
27
  dark: {
28
- background: '#1C1C1E', // tertiarySystemGroupedBackground
29
- background_pressed: 'hsl(240, 2.20%, 22.60%)',
28
+ background: '#1C1C1E', // secondarySystemGroupedBackground
29
+ background_pressed: 'hsl(240, 2.20%, 22.60%)', // tertiarySystemGroupedBackground
30
30
  border: 'hsl(240, 3%, 22.5%)'
31
31
  }
32
32
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.229",
3
+ "version": "1.0.233",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",