@towsila/expo-ui-library 3.3.11 → 3.3.12

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": "3.3.11",
3
+ "version": "3.3.12",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -40,6 +40,7 @@ export default function TemplateSubPage({
40
40
  style={{ flex: 1 }}
41
41
  showsVerticalScrollIndicator={false}
42
42
  contentContainerStyle={{ flexGrow: 1 }}
43
+ keyboardShouldPersistTaps="handled"
43
44
  >
44
45
  <View style={{ flex: 1, gap: 20, marginTop: 20 }}>
45
46
  {error && (
@@ -47,7 +48,7 @@ export default function TemplateSubPage({
47
48
  )}
48
49
  {children}
49
50
  </View>
50
-
51
+ </ScrollView>
51
52
  {buttonText && (
52
53
  <View style={{ marginTop: 32 }}>
53
54
  <SharpButton
@@ -59,7 +60,7 @@ export default function TemplateSubPage({
59
60
  />
60
61
  </View>
61
62
  )}
62
- </ScrollView>
63
+
63
64
  </View>
64
65
  );
65
66
  }
@@ -3,6 +3,7 @@ import { useResetPasswordForm } from "../../hooks/useResetPasswordForm";
3
3
  import PasswordRequirementsCard from "../ui/passwordRequirmentCard";
4
4
  import SharpInput from "../ui/sharpInput";
5
5
  import {LockClosed, EyeOff, Eye} from "@towsila/icons";
6
+ import Input from "../ui/input";
6
7
 
7
8
 
8
9
  interface ResetPasswordScreenProps {
@@ -55,15 +56,15 @@ export default function ResetPasswordScreen({
55
56
  loading={form.loading}
56
57
  >
57
58
  {includeOldPassword && (
58
- <SharpInput
59
+ <Input
59
60
  label={oldPasswordLabel}
60
61
  value={form.oldPassword}
61
62
  onChangeText={form.setOldPassword}
62
63
  placeholder={oldPasswordPlaceholder}
63
- iconLeft={(color) => <LockClosed width={18} height={18} color={color} />}
64
+ iconLeft={"lock-closed-outline"}
64
65
  iconRight={form.showOldPassword
65
- ? (color) => <EyeOff width={18} height={18} color={color} />
66
- : (color) => <Eye width={18} height={18} color={color} />
66
+ ? "eye-off-outline"
67
+ : "eye-outline"
67
68
  }
68
69
  onPressIconRight={() => form.setShowOldPassword(!form.showOldPassword)}
69
70
  secureTextEntry={!form.showOldPassword}
@@ -2,6 +2,7 @@ import { View, Text } from "react-native";
2
2
  import { Ionicons } from "@expo/vector-icons";
3
3
  import { useAppTheme } from "../../context/ThemeContext";
4
4
  import { textSize, Fonts } from "../../tokens/typography";
5
+ import { useLanguage } from "../../context/LanguageContext";
5
6
 
6
7
  interface PasswordRequirementsCardProps {
7
8
  checks: boolean[]; // ← array of booleans instead of named object
@@ -15,12 +16,13 @@ export default function PasswordRequirementsCard({
15
16
  cardTitle,
16
17
  }: PasswordRequirementsCardProps) {
17
18
  const { colors } = useAppTheme();
18
-
19
+ const {isRTL} = useLanguage();
19
20
  return (
20
21
  <View style={{
21
22
  backgroundColor: colors.background.card,
22
23
  borderRadius: 14,
23
24
  padding: 16,
25
+ justifyContent:isRTL? "flex-start":"flex-end",
24
26
  gap: 10,
25
27
  }}>
26
28
  {cardTitle && (
@@ -35,7 +37,7 @@ export default function PasswordRequirementsCard({
35
37
  )}
36
38
 
37
39
  {cardItems.map((item, index) => (
38
- <View key={index} style={{ flexDirection: "row", alignItems: "center", gap: 8 }}>
40
+ <View key={index} style={{ flexDirection:isRTL ?"row": "row-reverse", alignItems: "center", gap: 8 }}>
39
41
  <Ionicons
40
42
  name={checks[index] ? "checkmark-circle" : "ellipse-outline"}
41
43
  size={16}