@towsila/expo-ui-library 1.5.4 → 1.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towsila/expo-ui-library",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -26,7 +26,8 @@
26
26
  "react-native-keyboard-aware-scroll-view": "*",
27
27
  "react-native-reanimated": "*",
28
28
  "react-native-safe-area-context": "*",
29
- "react-native-svg": "*"
29
+ "react-native-svg": "*",
30
+ "expo-font": "*"
30
31
  },
31
32
  "scripts": {
32
33
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -45,8 +46,7 @@
45
46
  "homepage": "https://gitlab.com/depanini/mobile/expo-ui-library#readme",
46
47
  "devDependencies": {
47
48
  "@types/react": "^19.2.17",
48
- "@types/react-native": "^0.72.8",
49
- "expo-location": "~17.0.0",
49
+ "react-native-svg": "^15.15.5",
50
50
  "typescript": "^6.0.3"
51
51
  },
52
52
  "dependencies": {
@@ -1,4 +1,4 @@
1
- import { KeyboardAvoidingView, Platform, ScrollView, View, Text, Image } from "react-native";
1
+ import { KeyboardAvoidingView, Platform, ScrollView, View, Text } from "react-native";
2
2
  import { Fonts, textSize } from "../../tokens/typography";
3
3
  import { useAppTheme } from "../../context/ThemeContext";
4
4
  import BgDark from "../../assets/images/bg_dark.svg";
@@ -1,6 +1,5 @@
1
- import { View, Text, ScrollView } from "react-native";
1
+ import { View, ScrollView } from "react-native";
2
2
  import PageTopBar from "../ui/PageTopBar";
3
- import Button from "../ui/button";
4
3
  import { useAppTheme } from "../../context/ThemeContext";
5
4
  import ErrorMessage from "../ui/error";
6
5
  import { textSize } from "../../tokens/typography";
@@ -1,5 +1,4 @@
1
- import { ScrollView, Text, StyleSheet, View } from "react-native";
2
- import { useState } from "react";
1
+ import { Text, View } from "react-native";
3
2
  import { useAppTheme } from "../../context/ThemeContext";
4
3
  import { Fonts, textSize } from "../../tokens/typography";
5
4
  import TemplateSubPage from "../reusable/templateSubPage";
@@ -1,9 +1,8 @@
1
- import { useEffect, useState } from "react";
2
- import { Text, TouchableOpacity, View } from "react-native";
1
+ import { useState } from "react";
2
+ import { Text, TouchableOpacity } from "react-native";
3
3
  import { useAppTheme } from "../../context/ThemeContext";
4
4
  import { textSize, Fonts} from "../../tokens/typography";
5
5
  import TemplateSubPage from "../reusable/templateSubPage";
6
- import OtpInput from "../ui/OTPInput";
7
6
  import { useCountdown } from "../../hooks/useCountdown";
8
7
  import SharpOtpInput from "../ui/sharpOtpInput";
9
8
 
@@ -1,5 +1,4 @@
1
1
  import TemplateSubPage from "../reusable/templateSubPage";
2
- import Input from "../ui/input";
3
2
  import "../../utils/inputValidator/customValidator";
4
3
  import { useForgotPasswordForm } from "../../hooks/useForgotPasswordForm";
5
4
  import SharpInput from "../ui/sharpInput";
@@ -1,6 +1,5 @@
1
- import { Text, TouchableOpacity, View, StyleSheet, ImageSourcePropType, Image } from "react-native";
1
+ import { Text, TouchableOpacity, View, StyleSheet } from "react-native";
2
2
  import PageIndicator from "../ui/pageIndicator";
3
- import Button from "../ui/button";
4
3
  import { useAppTheme } from "../../context/ThemeContext";
5
4
  import { Fonts, textSize } from "../../tokens/typography";
6
5
  import {Arrow} from "@towsila/icons";
@@ -1,6 +1,6 @@
1
1
  import {Settings } from "../../types/settingsFields"
2
2
  import { useAppTheme } from "../../context/ThemeContext";
3
- import { Text, View, TouchableOpacity, ScrollView } from "react-native"
3
+ import { Text, View, TouchableOpacity } from "react-native"
4
4
  import { textSize, Fonts } from "../../tokens/typography"
5
5
  import SharpButton from "../ui/sharpButton";
6
6
  import TemplatePage from "../reusable/templatePage";
@@ -1,12 +1,10 @@
1
1
  // import { useRouter } from "expo-router";
2
- import React, { useState, useEffect } from "react";
2
+ import React, { useState } from "react";
3
3
  import TemplatePage from "../reusable/templatePage";
4
4
  import { Text, TouchableOpacity, View } from "react-native";
5
5
  import TermsPopup from "../ui/termsPopup";
6
6
  import { Fonts, textSize } from "../../tokens/typography";
7
7
  import { useAppTheme } from "../../context/ThemeContext";
8
- import Button from "../ui/button";
9
- import { DynamicForm } from "../ui/dynamicForm";
10
8
  import { Field } from "../../types/formFields";
11
9
  import { useFormSubmit } from "../../hooks/useSignup";
12
10
  import ErrorMessage from "../ui/error";
@@ -1,4 +1,4 @@
1
- import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, TouchableOpacityProps, StyleProp, ViewStyle } from "react-native";
1
+ import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, StyleProp, ViewStyle } from "react-native";
2
2
  import { Fonts, textSize } from "../../tokens/typography";
3
3
  type ButtonProps = {
4
4
  text: string;
@@ -1,7 +1,6 @@
1
1
  import { View, Text, StyleSheet, Modal, Animated, Dimensions, ViewStyle } from "react-native";
2
2
  import { useAppTheme } from "../../context/ThemeContext";
3
3
  import { textSize, Fonts } from "../../tokens/typography";
4
- import Button from "../ui/button";
5
4
  import { useEffect, useRef } from "react";
6
5
  import SharpButton from "./sharpButton";
7
6
 
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { Text, TouchableOpacity, View } from "react-native";
2
+ import { ScrollView, Text, TouchableOpacity, View } from "react-native";
3
3
  import Input from "./input";
4
4
  import { Field } from "../../types/formFields";
5
5
  import { useAppTheme } from "../../context/ThemeContext";
@@ -87,7 +87,12 @@ export const DynamicForm: React.FC<Props> = ({
87
87
  );
88
88
 
89
89
  return (
90
- <View style={{ gap: 4 }}>
90
+ <ScrollView
91
+ contentContainerStyle={{ flexGrow: 1 }}
92
+ showsVerticalScrollIndicator={false}
93
+ bounces={false}
94
+ >
95
+ <View style={{ gap: 4, paddingBottom: 20 }}>
91
96
 
92
97
  {/* Stepper — only show if more than 1 step */}
93
98
  {totalSteps > 1 && (
@@ -137,5 +142,6 @@ export const DynamicForm: React.FC<Props> = ({
137
142
  </View>
138
143
  )}
139
144
  </View>
145
+ </ScrollView>
140
146
  );
141
147
  };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, View, LayoutChangeEvent, ViewStyle } from "react-native";
2
+ import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, View, ViewStyle } from "react-native";
3
3
  import { Fonts, textSize } from "../../tokens/typography";
4
4
  import { useAppTheme } from "../../context/ThemeContext";
5
5
  import SharpContainer from "./sharpContainer"
@@ -1,10 +1,8 @@
1
1
  import { useState } from "react";
2
- import { ScrollView, Text, TouchableOpacity, View } from "react-native";
3
- import Input from "./input";
2
+ import { Text, TouchableOpacity, View } from "react-native";
4
3
  import { Field } from "../../types/formFields";
5
4
  import { useAppTheme } from "../../context/ThemeContext";
6
5
  import { validateForm } from "../../utils/inputValidator/registerValidator";
7
- import { Ionicons } from "@expo/vector-icons";
8
6
  import { Fonts, textSize } from "../../tokens/typography";
9
7
  import SharpInput from "./sharpInput";
10
8
  import {Arrow, ArrowBack, Eye, EyeOff} from "@towsila/icons";
@@ -1,4 +1,4 @@
1
- import React, { useState, ComponentProps } from "react";
1
+ import React, { useState } from "react";
2
2
  import { Text, TextInput, TextInputProps, View, StyleSheet, TouchableOpacity } from "react-native";
3
3
  import { useAppTheme } from "../../context/ThemeContext";
4
4
  import { textSize, Fonts } from "../../tokens/typography";