@umituz/react-native-auth 2.7.0 → 2.7.2
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": "@umituz/react-native-auth",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "Authentication service for React Native apps - Secure, type-safe, and production-ready. Provider-agnostic design with dependency injection, configurable validation, and comprehensive error handling.",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@umituz/react-native-design-system": "latest",
|
|
38
38
|
"@umituz/react-native-firebase": "latest",
|
|
39
39
|
"@umituz/react-native-localization": "latest",
|
|
40
|
-
"@umituz/react-native-avatar": "latest",
|
|
41
40
|
"@umituz/react-native-sentry": "latest",
|
|
42
41
|
"@umituz/react-native-storage": "latest",
|
|
43
42
|
"@umituz/react-native-validation": "latest",
|
|
@@ -58,7 +57,6 @@
|
|
|
58
57
|
"@react-navigation/stack": "^6.0.0",
|
|
59
58
|
"@types/node": "^20.0.0",
|
|
60
59
|
"@types/react": "~19.1.0",
|
|
61
|
-
"@umituz/react-native-avatar": "latest",
|
|
62
60
|
"@umituz/react-native-design-system": "latest",
|
|
63
61
|
"@umituz/react-native-firebase": "latest",
|
|
64
62
|
"@umituz/react-native-localization": "latest",
|
|
@@ -21,10 +21,6 @@ export const styles = StyleSheet.create({
|
|
|
21
21
|
padding: 8,
|
|
22
22
|
zIndex: 10,
|
|
23
23
|
},
|
|
24
|
-
closeIcon: {
|
|
25
|
-
fontSize: 24,
|
|
26
|
-
fontWeight: "400",
|
|
27
|
-
},
|
|
28
24
|
header: {
|
|
29
25
|
alignItems: "center",
|
|
30
26
|
marginBottom: 24,
|
|
@@ -32,13 +28,10 @@ export const styles = StyleSheet.create({
|
|
|
32
28
|
paddingTop: 16,
|
|
33
29
|
},
|
|
34
30
|
title: {
|
|
35
|
-
fontSize: 28,
|
|
36
|
-
fontWeight: "700",
|
|
37
31
|
marginBottom: 8,
|
|
38
32
|
textAlign: "center",
|
|
39
33
|
},
|
|
40
34
|
subtitle: {
|
|
41
|
-
fontSize: 15,
|
|
42
35
|
textAlign: "center",
|
|
43
36
|
lineHeight: 22,
|
|
44
37
|
},
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useEffect, useCallback, useRef, useState, useMemo } from "react";
|
|
7
|
-
import { View,
|
|
7
|
+
import { View, TouchableOpacity } from "react-native";
|
|
8
8
|
import {
|
|
9
9
|
BottomSheetModal,
|
|
10
10
|
BottomSheetBackdrop,
|
|
11
11
|
BottomSheetScrollView,
|
|
12
12
|
} from "@gorhom/bottom-sheet";
|
|
13
13
|
import type { BottomSheetBackdropProps } from "@gorhom/bottom-sheet";
|
|
14
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
14
|
+
import { useAppDesignTokens, AtomicText, AtomicIcon } from "@umituz/react-native-design-system";
|
|
15
15
|
import { useLocalization } from "@umituz/react-native-localization";
|
|
16
16
|
import { useAuthModalStore } from "../stores/authModalStore";
|
|
17
17
|
import { useAuth } from "../hooks/useAuth";
|
|
@@ -138,19 +138,19 @@ export const AuthBottomSheet: React.FC<AuthBottomSheetProps> = ({
|
|
|
138
138
|
style={styles.closeButton}
|
|
139
139
|
onPress={handleClose}
|
|
140
140
|
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
141
|
+
accessibilityLabel={t("common.close") || "Close"}
|
|
142
|
+
accessibilityRole="button"
|
|
141
143
|
>
|
|
142
|
-
<
|
|
143
|
-
✕
|
|
144
|
-
</Text>
|
|
144
|
+
<AtomicIcon name="close" size="md" color="secondary" />
|
|
145
145
|
</TouchableOpacity>
|
|
146
146
|
|
|
147
147
|
<View style={styles.header}>
|
|
148
|
-
<
|
|
148
|
+
<AtomicText type="headlineLarge" color="primary" style={styles.title}>
|
|
149
149
|
{mode === "login" ? t("auth.signIn") : t("auth.createAccount")}
|
|
150
|
-
</
|
|
151
|
-
<
|
|
150
|
+
</AtomicText>
|
|
151
|
+
<AtomicText type="bodyLarge" color="secondary" style={styles.subtitle}>
|
|
152
152
|
{mode === "login" ? t("auth.signInSubtitle") : t("auth.createAccountSubtitle")}
|
|
153
|
-
</
|
|
153
|
+
</AtomicText>
|
|
154
154
|
</View>
|
|
155
155
|
|
|
156
156
|
<View style={styles.formContainer}>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
|
|
9
9
|
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
10
|
-
import { Avatar } from "@umituz/react-native-
|
|
10
|
+
import { Avatar } from "@umituz/react-native-design-system";
|
|
11
11
|
|
|
12
12
|
export interface ProfileSectionConfig {
|
|
13
13
|
displayName: string;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ActivityIndicator,
|
|
16
16
|
} from "react-native";
|
|
17
17
|
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
18
|
-
import { Avatar } from "@umituz/react-native-
|
|
18
|
+
import { Avatar } from "@umituz/react-native-design-system";
|
|
19
19
|
|
|
20
20
|
export interface EditProfileConfig {
|
|
21
21
|
displayName: string;
|