@towsila/expo-ui-library 3.5.2 → 3.5.4

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.5.2",
3
+ "version": "3.5.4",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1,10 +1,10 @@
1
1
  import { Text, View } from "react-native";
2
- import AnimatedSuccessIcon from "../ui/AnimatedSuccessIcon";
3
2
  import { useAppTheme } from "../../context/ThemeContext";
4
3
  import { useLanguage } from "../../context/LanguageContext";
5
- import ScreenHeader from "../ui/PageTopBar";
6
- import SharpButton from "../ui/sharpButton";
7
4
  import { Fonts, textSize } from "../../tokens/typography";
5
+ import AnimatedSuccessIcon from "../ui/AnimatedSuccessIcon";
6
+ import SharpButton from "../ui/sharpButton";
7
+
8
8
 
9
9
  interface SuccessScreenProps {
10
10
  title?: string;
@@ -29,10 +29,17 @@ export default function SuccessScreen({
29
29
  const {isRTL} = useLanguage();
30
30
  return (
31
31
  <View style={{ flex: 1, paddingHorizontal: 32, paddingVertical: 60 }}>
32
- <ScreenHeader title={title} description={subtitle} />
33
- <View style={{ flex: 1, marginTop: 30, alignItems: isRTL ? "flex-start" : "flex-end", gap: 20 }}>
34
- <View style={{ backgroundColor: colors.primary + "30", padding: 20, borderRadius: 20 }}>
35
- <AnimatedSuccessIcon color={colors.primary} size={50} strokeWidth={2} />
32
+ <Text style={{color: colors.text.primary, textAlign: isRTL ? "left" : "right", fontFamily: Fonts.montserrat.semiBold, fontSize: textSize.xxl}}>{title}</Text>
33
+ {subtitle && (
34
+ <Text
35
+ style={{fontSize: textSize.md, fontFamily: Fonts.montserrat.regular, color: colors.text.secondary, textAlign: isRTL ? "left" : "right"}}
36
+ >
37
+ {subtitle}
38
+ </Text>
39
+ )}
40
+ <View style={{ flex: 1, marginTop: 70, alignItems: isRTL ? "flex-start" : "flex-end", gap: 20 }}>
41
+ <View style={{ backgroundColor: colors.primary + "30", padding: 25, borderRadius: 30 }}>
42
+ <AnimatedSuccessIcon color={colors.primary} size={37} strokeWidth={2} />
36
43
  </View>
37
44
  <Text style={{ color: colors.text.secondary, textAlign: isRTL ? "left" : "right", fontFamily: Fonts.montserrat.regular, fontSize: textSize.md }}>
38
45
  {description}
@@ -72,6 +72,6 @@ const createStyles = (colors: any) =>
72
72
  borderWidth: 1,
73
73
  fontSize: textSize.md,
74
74
  color: colors.text.primary,
75
- backgroundColor: colors.background.main,
75
+ backgroundColor: colors.background.card,
76
76
  },
77
77
  });
@@ -89,7 +89,7 @@ export default function Input({
89
89
  height: 50,
90
90
  borderRadius: 10,
91
91
  fontSize: textSize.sm,
92
- backgroundColor: bgColor,
92
+ backgroundColor: bgColor ?? colors.background.card,
93
93
  color: colors.text.primary,
94
94
  fontFamily: textFontFamily,
95
95