native-pytech 1.0.136 → 1.0.138
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/app/sections/icon.d.ts +1 -0
- package/dist/app/sections/icon.js +1 -0
- package/dist/libs/assets/ionicons/Ionicons.d.ts +2 -2
- package/dist/libs/assets/ionicons/Ionicons.js +0 -1
- package/dist/libs/colorPage/src/Content/index.android.d.ts +1 -2
- package/dist/libs/colorPage/src/Content/index.android.js +1 -1
- package/dist/libs/colorPage/src/Content/index.ios.d.ts +1 -2
- package/dist/libs/colorPage/src/Content/index.ios.js +1 -1
- package/dist/libs/colorPage/src/Item/index.ios.d.ts +1 -2
- package/dist/libs/colorPage/src/Item/index.ios.js +1 -1
- package/dist/libs/colorPage/src/Page/index.d.ts +1 -2
- package/dist/libs/colorPage/src/Page/index.js +1 -1
- package/dist/libs/components/CloseButton.d.ts +2 -3
- package/dist/libs/components/CloseButton.js +1 -1
- package/dist/libs/components/Gradient/components/Gradient/index.d.ts +1 -2
- package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +1 -2
- package/dist/libs/components/Gradient/components/Gradient/index.ios.js +1 -1
- package/dist/libs/components/Gradient/components/Gradient/index.js +1 -1
- package/dist/libs/editPage/src/components/Item/index.ios.d.ts +1 -2
- package/dist/libs/editPage/src/components/Item/index.ios.js +1 -1
- package/dist/libs/editPage/src/components/ItemDate/index.ios.d.ts +1 -2
- package/dist/libs/editPage/src/components/ItemDate/index.ios.js +1 -1
- package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +1 -2
- package/dist/libs/editPage/src/components/TextField/index.ios.js +1 -1
- package/dist/libs/editPage/src/components/Wrapper/index.d.ts +1 -2
- package/dist/libs/editPage/src/components/Wrapper/index.js +1 -1
- package/dist/libs/footer/src/components/Button/index.ios.d.ts +1 -2
- package/dist/libs/footer/src/components/Button/index.ios.js +1 -1
- package/dist/libs/footer/src/components/Footer/index.ios.d.ts +1 -2
- package/dist/libs/footer/src/components/Footer/index.ios.js +1 -1
- package/dist/libs/footer/src/components/View.d.ts +2 -3
- package/dist/libs/footer/src/components/View.js +1 -1
- package/dist/libs/login/src/Screen/components/Input/index.d.ts +1 -2
- package/dist/libs/login/src/Screen/components/Input/index.js +1 -1
- package/dist/libs/page/src/components/Page/index.android.d.ts +1 -2
- package/dist/libs/page/src/components/Page/index.android.js +1 -1
- package/dist/libs/page/src/components/Page/index.d.ts +1 -2
- package/dist/libs/page/src/components/Page/index.js +1 -1
- package/dist/libs/page/src/components/PageWrapper/index.js +1 -1
- package/dist/libs/page/src/components/Subtitle.d.ts +2 -3
- package/dist/libs/page/src/components/Subtitle.js +1 -1
- package/dist/libs/page/src/components/WithIcon/index.js +1 -1
- package/dist/libs/pickerPage/src/components/Content/index.d.ts +1 -2
- package/dist/libs/pickerPage/src/components/Content/index.ios.d.ts +1 -2
- package/dist/libs/pickerPage/src/components/Content/index.ios.js +1 -1
- package/dist/libs/pickerPage/src/components/Content/index.js +1 -1
- package/dist/libs/pickerPage/src/components/Item/index.d.ts +1 -2
- package/dist/libs/pickerPage/src/components/Item/index.ios.d.ts +1 -2
- package/dist/libs/pickerPage/src/components/Item/index.ios.js +1 -1
- package/dist/libs/pickerPage/src/components/Item/index.js +1 -1
- package/dist/libs/pickerPage/src/components/Page/index.d.ts +1 -2
- package/dist/libs/pickerPage/src/components/Page/index.js +1 -1
- package/dist/libs/providers/App/index.d.ts +1 -2
- package/dist/libs/providers/App/index.js +1 -1
- package/dist/libs/sections/Icon/index.d.ts +1 -0
- package/dist/libs/sections/Icon/index.js +1 -0
- package/dist/libs/sections/Icon/src/Section.ios.d.ts +6 -0
- package/dist/libs/sections/Icon/src/Section.ios.js +17 -0
- package/dist/libs/sections/Icon/src/index.d.ts +3 -0
- package/dist/libs/sections/Icon/src/index.ios.d.ts +3 -0
- package/dist/libs/sections/Icon/src/index.ios.js +26 -0
- package/dist/libs/sections/Icon/src/index.js +59 -0
- package/dist/libs/sections/Icon/types.d.ts +25 -0
- package/dist/libs/sections/Icon/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +1 -2
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +1 -1
- package/dist/libs/segmentedControl/src/components/Container/index.d.ts +1 -2
- package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +1 -2
- package/dist/libs/segmentedControl/src/components/Container/index.ios.js +1 -1
- package/dist/libs/segmentedControl/src/components/Container/index.js +1 -1
- package/dist/libs/segmentedControl/src/components/Item/index.d.ts +1 -2
- package/dist/libs/segmentedControl/src/components/Item/index.js +1 -1
- package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +1 -2
- package/dist/libs/segmentedControl/src/components/Segmented/index.js +1 -1
- package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +1 -2
- package/dist/libs/segmentedControl/src/components/Wrapper/index.js +1 -1
- package/dist/libs/segmentedControl/src/context/shared.d.ts +2 -3
- package/dist/libs/segmentedControl/src/context/shared.js +1 -1
- package/dist/libs/swiftui/src/components/Dialog/index.d.ts +1 -2
- package/dist/libs/swiftui/src/components/Dialog/index.js +1 -1
- package/dist/libs/swiftui/src/components/Icon.d.ts +1 -2
- package/dist/libs/swiftui/src/components/Icon.js +1 -1
- package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +1 -2
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +1 -1
- package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +1 -2
- package/dist/libs/swiftui/src/components/IconSection/Section.js +1 -1
- package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +1 -2
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +1 -1
- package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +1 -2
- package/dist/libs/swiftui/src/components/List/Editable/List/index.js +1 -1
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +1 -2
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +1 -1
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +1 -2
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +1 -1
- package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +1 -2
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +1 -1
- package/dist/libs/swiftui/src/components/Picker.d.ts +1 -2
- package/dist/libs/swiftui/src/components/Picker.js +1 -1
- package/dist/libs/swiftui/src/components/Text.d.ts +2 -3
- package/dist/libs/swiftui/src/components/Text.js +1 -1
- package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +1 -2
- package/dist/libs/swiftui/src/components/TextSubtitle.js +1 -1
- package/dist/libs/table/src/components/Borders.d.ts +2 -3
- package/dist/libs/table/src/components/Borders.js +1 -1
- package/dist/libs/table/src/components/Delete/index.d.ts +1 -2
- package/dist/libs/table/src/components/Delete/index.js +1 -1
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +1 -2
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +1 -1
- package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +1 -2
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +1 -1
- package/dist/libs/table/src/components/OptionComponents/icon.d.ts +2 -3
- package/dist/libs/table/src/components/OptionComponents/icon.js +1 -1
- package/dist/libs/table/src/components/OptionComponents/image.d.ts +2 -3
- package/dist/libs/table/src/components/OptionComponents/image.js +1 -1
- package/dist/libs/table/src/components/OptionComponents/text.d.ts +2 -3
- package/dist/libs/table/src/components/OptionComponents/text.js +1 -1
- package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +2 -3
- package/dist/libs/table/src/components/OptionComponents/textInput.js +1 -1
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +1 -2
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +1 -1
- package/dist/libs/table/src/components/OptionWrapper/index.js +1 -1
- package/dist/libs/table/src/components/Table/index.js +1 -1
- package/dist/libs/table/src/components/Wrapper.d.ts +1 -2
- package/dist/libs/table/src/components/Wrapper.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../libs/sections/Icon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../libs/sections/Icon';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ionicons as IoniconsExpo } from '@expo/vector-icons';
|
|
2
|
-
import
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
import { OpaqueColorValue } from 'react-native';
|
|
4
4
|
type IoniconsExpoProps = ComponentProps<typeof IoniconsExpo>;
|
|
5
5
|
export interface IoniconsProps {
|
|
@@ -31,5 +31,5 @@ export interface IoniconsProps {
|
|
|
31
31
|
*/
|
|
32
32
|
y?: number;
|
|
33
33
|
}
|
|
34
|
-
export declare const Ionicons: ({ name, color, size, y, x }: IoniconsProps) =>
|
|
34
|
+
export declare const Ionicons: ({ name, color, size, y, x }: IoniconsProps) => import("react").JSX.Element;
|
|
35
35
|
export default Ionicons;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ colorRows, ...pageProps }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ colorRows, ...pageProps }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Host, HStack, VStack, Spacer } from '@expo/ui/swift-ui';
|
|
2
|
-
import
|
|
2
|
+
import { memo, Fragment } from 'react';
|
|
3
3
|
import Item from '../Item';
|
|
4
4
|
export default memo(({ colorRows, ...pageProps }) => {
|
|
5
5
|
return (<Host style={{ flex: 1 }}>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ color, size, selectedColor, onSelectColor, }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { background, clipShape, buttonStyle, controlSize, frame, glassEffect, padding, foregroundStyle } from '@expo/ui/swift-ui/modifiers';
|
|
2
2
|
import { Text, Button } from '@expo/ui/swift-ui';
|
|
3
|
-
import
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
4
|
import { colors } from '../../../../libs/components/Gradient';
|
|
5
5
|
export default memo(({ color, size, selectedColor, onSelectColor, }) => {
|
|
6
6
|
const modifiersButton = useMemo(() => [
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ onSelectColor, ...restProps }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { UnknownOutputParams, ImperativeRouter } from 'expo-router';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ onclick }: {
|
|
4
3
|
onclick: ({ router, localSearchParams }: {
|
|
5
4
|
router: ImperativeRouter;
|
|
6
5
|
localSearchParams: UnknownOutputParams;
|
|
7
6
|
}) => void;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => import("react").JSX.Element>;
|
|
9
8
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ text, color, type, sizeDiameter, icon, iconSize, ionIconName, }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ text, color, type, sizeDiameter, systemName, iconSize, }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { memo, useMemo } from 'react';
|
|
2
2
|
import { frame, font, foregroundStyle, background, clipShape } from '@expo/ui/swift-ui/modifiers';
|
|
3
3
|
import { Text, Image } from '@expo/ui/swift-ui';
|
|
4
4
|
import colors, { sizes } from '../../constants';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ label, minLengthSpacer, ...textFieldProps }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ itemKey, label, defaultValue, minDate, maxDate, }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Section, DatePicker } from '@expo/ui/swift-ui';
|
|
2
|
-
import
|
|
2
|
+
import { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { environment } from '@expo/ui/swift-ui/modifiers';
|
|
4
4
|
import { usePage } from '../../context/page';
|
|
5
5
|
export default memo(({ itemKey, label, defaultValue, minDate = new Date(new Date().setFullYear(new Date().getFullYear() - 100)), maxDate = new Date(), }) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ itemKey, defaultValue, placeholder, keyboardType, autocapitalization, secureTextEntry, isValid, }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useMemo, memo, useRef, useCallback, useEffect } from "react";
|
|
2
2
|
import { useValue } from "@legendapp/state/react";
|
|
3
3
|
import { SecureField, TextField } from "@expo/ui/swift-ui";
|
|
4
4
|
import { keyboardType as keyboardTypeModifier, submitLabel, textInputAutocapitalization, onSubmit } from '@expo/ui/swift-ui/modifiers';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, onSave }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useObservable, useValue } from '@legendapp/state/react';
|
|
2
2
|
import { Stack, router } from 'expo-router';
|
|
3
|
-
import
|
|
3
|
+
import { memo, useCallback, useMemo, useRef } from 'react';
|
|
4
4
|
import { Provider } from '../../context/page';
|
|
5
5
|
import Screen from '../Screen';
|
|
6
6
|
export default memo(({ children, onSave }) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Props } from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ text, onPress, onSubmit, backgroundColorPage, enabled, themeColor }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, Text } from '@expo/ui/swift-ui';
|
|
2
2
|
import { frame, font, foregroundStyle, buttonStyle, controlSize, disabled } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
-
import
|
|
3
|
+
import { memo, useCallback, useMemo } from 'react';
|
|
4
4
|
import { useWindowDimensions } from 'react-native';
|
|
5
5
|
export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = true, themeColor = 'default' }) => {
|
|
6
6
|
const { width } = useWindowDimensions();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
type Props = {
|
|
3
2
|
children: React.ReactNode;
|
|
4
3
|
backgroundColorPage?: string;
|
|
5
4
|
};
|
|
6
|
-
declare const _default:
|
|
5
|
+
declare const _default: import("react").MemoExoticComponent<({ children, backgroundColorPage }: Props) => import("react").JSX.Element>;
|
|
7
6
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: React.MemoExoticComponent<({ children }: {
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<({ children }: {
|
|
3
2
|
children: React.ReactNode;
|
|
4
|
-
}) =>
|
|
3
|
+
}) => import("react").JSX.Element>;
|
|
5
4
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ placeholder, buttonSend, handleSubmit, messageError, onFocus, onChangeText, onBlur, styleMessageError, ...props }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { memo, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { ActivityIndicator, Image, Keyboard, Pressable, StyleSheet, Text, TextInput, View } from 'react-native';
|
|
3
3
|
import Animated, { Easing, interpolate, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
4
4
|
import { useApp } from "../../../../../../libs/providers/App";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Props from '../PageWrapper/types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, style }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Props from '../PageWrapper/types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, style }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { memo } from 'react';
|
|
2
2
|
import { ScrollView } from 'react-native';
|
|
3
3
|
export default memo(({ children, style }) => {
|
|
4
4
|
return (<ScrollView style={{ flex: 1 }} automaticallyAdjustKeyboardInsets={true} contentContainerStyle={style} showsVerticalScrollIndicator={false}>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: React.MemoExoticComponent<({ text }: {
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<({ text }: {
|
|
3
2
|
text: string;
|
|
4
|
-
}) =>
|
|
3
|
+
}) => import("react").JSX.Element>;
|
|
5
4
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, selected, onSelectionChange }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, selected, onSelectionChange, adjustRowInsets }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Host, Section, Picker } from '@expo/ui/swift-ui';
|
|
2
2
|
import { listRowInsets, listStyle, pickerStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
-
import
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
4
|
import { List } from "../../../../../libs/swiftui";
|
|
5
5
|
export default memo(({ children, selected, onSelectionChange, adjustRowInsets }) => {
|
|
6
6
|
const _modifiersPicker = useMemo(() => [
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type Props from "./types";
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ itemKey, title, ionIconName, icon }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type Props from "./types";
|
|
3
2
|
/**
|
|
4
3
|
Item component for the picker page.
|
|
5
4
|
It is necessary to use the tag modifier to display the item in the picker.
|
|
6
5
|
*/
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import("react").MemoExoticComponent<({ itemKey, title, systemImage, icon }: Props) => import("react").JSX.Element>;
|
|
8
7
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, onChangeSearchText, onSelectionChange, placeholderSearchBar, ...props }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stack, router } from "expo-router";
|
|
2
|
-
import
|
|
2
|
+
import { memo } from "react";
|
|
3
3
|
import Content from '../Content';
|
|
4
4
|
export default memo(({ children, onChangeSearchText, onSelectionChange, placeholderSearchBar = 'Buscar', ...props }) => {
|
|
5
5
|
const _onSelectionChange = async (selection) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { ColorSchemeType } from "../constants";
|
|
3
2
|
import type Props from './types';
|
|
4
3
|
declare const useApp: () => {
|
|
@@ -6,5 +5,5 @@ declare const useApp: () => {
|
|
|
6
5
|
fontScale: number;
|
|
7
6
|
};
|
|
8
7
|
export { useApp };
|
|
9
|
-
declare const _default:
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<({ listStackNames, getBackgroundColor, getSession, renderItemLoading, onLoadingRealsed, }: Props) => import("react").JSX.Element>;
|
|
10
9
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { memo, useMemo, useState, useRef } from "react";
|
|
2
2
|
import { Stack, useRouter } from "expo-router";
|
|
3
3
|
import { useColorScheme, useWindowDimensions, View, StyleSheet } from "react-native";
|
|
4
4
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VStackProps } from '@expo/ui/swift-ui';
|
|
2
|
+
type Props = VStackProps & {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("react").MemoExoticComponent<({ children, modifiers, ...vStackProps }: Props) => import("react").JSX.Element>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Section, VStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import { containerRelativeFrame, listRowBackground, frame, listRowInsets } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
|
+
export default memo(({ children, modifiers, ...vStackProps }) => {
|
|
5
|
+
const _modifiers = useMemo(() => [
|
|
6
|
+
...(modifiers ?? []),
|
|
7
|
+
frame({ alignment: 'center' }),
|
|
8
|
+
containerRelativeFrame({ axes: 'horizontal' }),
|
|
9
|
+
listRowBackground('transparent'),
|
|
10
|
+
listRowInsets({ bottom: 0.1 })
|
|
11
|
+
], [modifiers]);
|
|
12
|
+
return (<Section>
|
|
13
|
+
<VStack spacing={20} modifiers={_modifiers} {...vStackProps}>
|
|
14
|
+
{children}
|
|
15
|
+
</VStack>
|
|
16
|
+
</Section>);
|
|
17
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Button, VStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import { frame, font, buttonStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import Gradient from '../../../../libs/components/Gradient';
|
|
5
|
+
import Text from '../../../../libs/swiftui/src/components/Text';
|
|
6
|
+
import Section from './Section.ios';
|
|
7
|
+
export default memo(({ title, subtitle, gradientProps, buttonProps }) => {
|
|
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')]}/>)}
|
|
20
|
+
</Section>);
|
|
21
|
+
});
|
|
22
|
+
const Title = memo(({ title }) => {
|
|
23
|
+
return (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
|
|
24
|
+
{title}
|
|
25
|
+
</Text>);
|
|
26
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { View, Text, Pressable, StyleSheet } from "react-native";
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import Gradient from "native-pytech/components/gradient";
|
|
4
|
+
import Colors from "native-pytech/constants/colors";
|
|
5
|
+
import { useApp } from "native-pytech/providers/app";
|
|
6
|
+
export default memo(({ title, subtitle, gradientProps, buttonProps }) => {
|
|
7
|
+
const { colorScheme } = useApp();
|
|
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>)}
|
|
22
|
+
</View>);
|
|
23
|
+
});
|
|
24
|
+
const Title = memo(({ title, colorScheme }) => {
|
|
25
|
+
return (<Text style={[styles.title, { color: Colors[colorScheme].text }]}>
|
|
26
|
+
{title}
|
|
27
|
+
</Text>);
|
|
28
|
+
});
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
container: {
|
|
31
|
+
padding: 16,
|
|
32
|
+
flex: 1,
|
|
33
|
+
marginBottom: 30,
|
|
34
|
+
justifyContent: 'center',
|
|
35
|
+
alignItems: 'center'
|
|
36
|
+
},
|
|
37
|
+
containerTitle: {
|
|
38
|
+
flexDirection: 'column',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
gap: 2
|
|
41
|
+
},
|
|
42
|
+
title: {
|
|
43
|
+
fontWeight: 'bold',
|
|
44
|
+
fontSize: 30
|
|
45
|
+
},
|
|
46
|
+
subtitle: {
|
|
47
|
+
fontSize: 17
|
|
48
|
+
},
|
|
49
|
+
pressable: {
|
|
50
|
+
backgroundColor: Colors.especiales.azul,
|
|
51
|
+
padding: 10,
|
|
52
|
+
borderRadius: 10
|
|
53
|
+
},
|
|
54
|
+
label: {
|
|
55
|
+
color: 'white',
|
|
56
|
+
fontSize: 17,
|
|
57
|
+
fontWeight: 'semibold'
|
|
58
|
+
}
|
|
59
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Props as GradientProps } from '../../../libs/components/Gradient';
|
|
2
|
+
type Props = {
|
|
3
|
+
/**
|
|
4
|
+
The title of the icon section.
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
The subtitle of the icon section.
|
|
9
|
+
*/
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
/**
|
|
12
|
+
If it is given, displays a gradient.
|
|
13
|
+
*/
|
|
14
|
+
gradientProps?: Omit<GradientProps, 'type'> & {
|
|
15
|
+
type: 'extraLarge' | 'extraExtraLarge';
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
If it is given, displays a button.
|
|
19
|
+
*/
|
|
20
|
+
buttonProps?: {
|
|
21
|
+
label: string;
|
|
22
|
+
onPress: () => void;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Props from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ isScrollable, onFinishedSelectedIndex, onChangeEqualWidths, widthsShared, widthContainerShared }: Props) => import("react").JSX.Element>;
|
|
4
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { memo } from 'react';
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
3
|
import Animated, { interpolate, useAnimatedStyle, useDerivedValue, useAnimatedReaction } from 'react-native-reanimated';
|
|
4
4
|
import { scheduleOnRN } from 'react-native-worklets';
|