native-pytech 1.0.43 → 1.0.45
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/dist/libs/footer/src/{Background → components/Background}/index.ios.js +1 -1
- package/dist/libs/footer/src/{Background → components/Background}/index.js +1 -1
- package/dist/libs/footer/src/{Button → components/Button}/Text.js +2 -2
- package/dist/libs/footer/src/{Button → components/Button}/index.ios.js +3 -3
- package/dist/libs/footer/src/{Button → components/Button}/index.js +3 -3
- package/dist/libs/footer/src/components/Footer.d.ts +6 -0
- package/dist/libs/footer/src/components/Footer.js +38 -0
- package/dist/libs/footer/src/components/View.d.ts +5 -0
- package/dist/libs/footer/src/components/View.js +11 -0
- package/dist/libs/footer/src/index.d.ts +9 -3
- package/dist/libs/footer/src/index.js +7 -40
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +1 -1
- package/package.json +1 -1
- package/dist/libs/footer/src/types.d.ts +0 -9
- package/dist/libs/footer/src/types.js +0 -1
- /package/dist/libs/footer/src/{Background → components/Background}/index.d.ts +0 -0
- /package/dist/libs/footer/src/{Background → components/Background}/index.ios.d.ts +0 -0
- /package/dist/libs/footer/src/{Button → components/Button}/Text.d.ts +0 -0
- /package/dist/libs/footer/src/{Button → components/Button}/index.d.ts +0 -0
- /package/dist/libs/footer/src/{Button → components/Button}/index.ios.d.ts +0 -0
- /package/dist/libs/footer/src/{Button → components/Button}/types.d.ts +0 -0
- /package/dist/libs/footer/src/{Button → components/Button}/types.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MeshGradientView } from 'expo-mesh-gradient';
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
|
-
import Utils from '
|
|
4
|
+
import Utils from '../../../../../libs/constants/utils';
|
|
5
5
|
export default memo(({ backgroundColorPage }) => {
|
|
6
6
|
const c06 = Utils.applyOpacity(backgroundColorPage, 0.6);
|
|
7
7
|
const c08 = Utils.applyOpacity(backgroundColorPage, 0.8);
|
|
@@ -2,7 +2,7 @@ import MaskedView from '@react-native-masked-view/masked-view';
|
|
|
2
2
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
3
3
|
import { memo } from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import Utils from '
|
|
5
|
+
import Utils from '../../../../../libs/constants/utils';
|
|
6
6
|
export default memo(({ backgroundColorPage }) => {
|
|
7
7
|
const c06 = Utils.applyOpacity(backgroundColorPage, 0.6);
|
|
8
8
|
const c08 = Utils.applyOpacity(backgroundColorPage, 0.8);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import colors from '
|
|
2
|
-
import { useApp } from "
|
|
1
|
+
import colors from '../../constants';
|
|
2
|
+
import { useApp } from "../../../../../libs/providers/App";
|
|
3
3
|
import { memo, useMemo } from 'react';
|
|
4
4
|
import { StyleSheet, Text } from 'react-native';
|
|
5
5
|
export default memo(({ text, enabled, themeColor = 'default' }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import colors from '
|
|
1
|
+
import colors from '../../constants';
|
|
2
2
|
import { GlassView } from 'expo-glass-effect';
|
|
3
|
-
import { useApp } from "
|
|
3
|
+
import { useApp } from "../../../../../libs/providers/App";
|
|
4
4
|
import { memo, useCallback, useMemo, useState } from 'react';
|
|
5
5
|
import { ActivityIndicator, Pressable, StyleSheet } from 'react-native';
|
|
6
|
-
import Utils from '
|
|
6
|
+
import Utils from '../../../../../libs/constants/utils';
|
|
7
7
|
import Text from './Text';
|
|
8
8
|
export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = true, themeColor = 'default' }) => {
|
|
9
9
|
const { colorScheme } = useApp();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import colors from '
|
|
2
|
-
import { useApp } from "
|
|
1
|
+
import colors from '../../constants';
|
|
2
|
+
import { useApp } from "../../../../../libs/providers/App";
|
|
3
3
|
import { memo, useCallback, useMemo, useState } from 'react';
|
|
4
4
|
import { ActivityIndicator, Pressable, StyleSheet } from 'react-native';
|
|
5
|
-
import Utils from '
|
|
5
|
+
import Utils from '../../../../../libs/constants/utils';
|
|
6
6
|
import Text from './Text';
|
|
7
7
|
export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = true, themeColor = 'default' }) => {
|
|
8
8
|
const { colorScheme } = useApp();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { View, StyleSheet } from 'react-native';
|
|
2
|
+
import MaskedView from '@react-native-masked-view/masked-view';
|
|
3
|
+
import { BlurView } from 'expo-blur';
|
|
4
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
5
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
+
import { memo } from 'react';
|
|
7
|
+
import Background from './Background';
|
|
8
|
+
import ButtonView from './View';
|
|
9
|
+
export default memo(({ children, backgroundColorPage }) => {
|
|
10
|
+
const insets = useSafeAreaInsets();
|
|
11
|
+
return (<View style={styles.footer}>
|
|
12
|
+
<MaskedView style={[StyleSheet.absoluteFillObject]} maskElement={<LinearGradient colors={['transparent', 'transparent', 'rgba(0, 0, 0, 0.8)', 'black', 'black']} locations={[0, 0.05, 0.2, 0.5, 1]} style={StyleSheet.absoluteFillObject}/>}>
|
|
13
|
+
<BlurView intensity={6} tint='dark' style={StyleSheet.absoluteFillObject}/>
|
|
14
|
+
</MaskedView>
|
|
15
|
+
|
|
16
|
+
{backgroundColorPage && <Background backgroundColorPage={backgroundColorPage}/>}
|
|
17
|
+
|
|
18
|
+
<View style={[styles.view, { paddingBottom: insets.bottom + 5 }]}>
|
|
19
|
+
<ButtonView>
|
|
20
|
+
{children}
|
|
21
|
+
</ButtonView>
|
|
22
|
+
</View>
|
|
23
|
+
|
|
24
|
+
</View>);
|
|
25
|
+
});
|
|
26
|
+
const styles = StyleSheet.create({
|
|
27
|
+
footer: {
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
bottom: 0,
|
|
30
|
+
width: '100%',
|
|
31
|
+
},
|
|
32
|
+
view: {
|
|
33
|
+
position: 'relative',
|
|
34
|
+
paddingTop: 70,
|
|
35
|
+
justifyContent: 'center',
|
|
36
|
+
alignItems: 'center'
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { View, StyleSheet } from 'react-native';
|
|
2
|
+
import React, { memo } from 'react';
|
|
3
|
+
export default memo(({ children }) => (<View style={styles.view}>
|
|
4
|
+
{children}
|
|
5
|
+
</View>));
|
|
6
|
+
const styles = StyleSheet.create({
|
|
7
|
+
view: {
|
|
8
|
+
paddingHorizontal: 17 * 2,
|
|
9
|
+
gap: 10,
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import Footer from './components/Footer';
|
|
2
|
+
import View from './components/View';
|
|
3
|
+
import Button from './components/Button';
|
|
4
|
+
type Component = typeof Footer & {
|
|
5
|
+
ButtonView: typeof View;
|
|
6
|
+
Button: typeof Button;
|
|
7
|
+
};
|
|
8
|
+
declare const FooterComponent: Component;
|
|
9
|
+
export default FooterComponent;
|
|
@@ -1,40 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import Button from './Button';
|
|
9
|
-
const Footer = memo(({ children, backgroundColorPage }) => {
|
|
10
|
-
const insets = useSafeAreaInsets();
|
|
11
|
-
return (<View style={styles.footer}>
|
|
12
|
-
<MaskedView style={[StyleSheet.absoluteFillObject]} maskElement={<LinearGradient colors={['transparent', 'transparent', 'rgba(0, 0, 0, 0.8)', 'black', 'black']} locations={[0, 0.05, 0.2, 0.5, 1]} style={StyleSheet.absoluteFillObject}/>}>
|
|
13
|
-
<BlurView intensity={6} tint='dark' style={StyleSheet.absoluteFillObject}/>
|
|
14
|
-
</MaskedView>
|
|
15
|
-
|
|
16
|
-
{backgroundColorPage && <Background backgroundColorPage={backgroundColorPage}/>}
|
|
17
|
-
|
|
18
|
-
<View style={[styles.view, { paddingBottom: insets.bottom + 5 }]}>
|
|
19
|
-
{children}
|
|
20
|
-
</View>
|
|
21
|
-
|
|
22
|
-
</View>);
|
|
23
|
-
});
|
|
24
|
-
Footer.Button = Button;
|
|
25
|
-
export default Footer;
|
|
26
|
-
const styles = StyleSheet.create({
|
|
27
|
-
footer: {
|
|
28
|
-
position: 'absolute',
|
|
29
|
-
bottom: 0,
|
|
30
|
-
width: '100%',
|
|
31
|
-
},
|
|
32
|
-
view: {
|
|
33
|
-
position: 'relative',
|
|
34
|
-
paddingHorizontal: 17 * 2,
|
|
35
|
-
paddingTop: 70,
|
|
36
|
-
justifyContent: 'center',
|
|
37
|
-
alignItems: 'center',
|
|
38
|
-
gap: 10,
|
|
39
|
-
}
|
|
40
|
-
});
|
|
1
|
+
import Footer from './components/Footer';
|
|
2
|
+
import View from './components/View';
|
|
3
|
+
import Button from './components/Button';
|
|
4
|
+
const FooterComponent = Footer;
|
|
5
|
+
FooterComponent.ButtonView = View;
|
|
6
|
+
FooterComponent.Button = Button;
|
|
7
|
+
export default FooterComponent;
|
|
@@ -10,7 +10,7 @@ import React, { memo, useMemo } from 'react';
|
|
|
10
10
|
export default memo(({ children, modifiers, disablePaddingTop, onRefresh, ...listProps }) => {
|
|
11
11
|
const _modifiers = useMemo(() => [
|
|
12
12
|
...(modifiers ?? []),
|
|
13
|
-
...(disablePaddingTop ? [padding({ top: -15 })]
|
|
13
|
+
...(disablePaddingTop ? [] : [padding({ top: -15 })]),
|
|
14
14
|
...(onRefresh ? [refreshable(onRefresh)] : []),
|
|
15
15
|
], [modifiers, disablePaddingTop, onRefresh]);
|
|
16
16
|
return (<List modifiers={_modifiers} {...listProps}>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|