@umituz/react-native-auth 2.7.0 → 2.7.1

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.0",
3
+ "version": "2.7.1",
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",
@@ -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, Text, TouchableOpacity } from "react-native";
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
- <Text style={[styles.closeIcon, { color: tokens.colors.textSecondary }]}>
143
-
144
- </Text>
144
+ <AtomicIcon name="close" size="md" color="secondary" />
145
145
  </TouchableOpacity>
146
146
 
147
147
  <View style={styles.header}>
148
- <Text style={[styles.title, { color: tokens.colors.textPrimary }]}>
148
+ <AtomicText type="headlineLarge" color="primary" style={styles.title}>
149
149
  {mode === "login" ? t("auth.signIn") : t("auth.createAccount")}
150
- </Text>
151
- <Text style={[styles.subtitle, { color: tokens.colors.textSecondary }]}>
150
+ </AtomicText>
151
+ <AtomicText type="bodyLarge" color="secondary" style={styles.subtitle}>
152
152
  {mode === "login" ? t("auth.signInSubtitle") : t("auth.createAccountSubtitle")}
153
- </Text>
153
+ </AtomicText>
154
154
  </View>
155
155
 
156
156
  <View style={styles.formContainer}>