@umituz/react-native-ai-generation-content 1.35.3 → 1.35.5
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-ai-generation-content",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.5",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React, { useMemo } from "react";
|
|
9
9
|
import { View, StyleSheet, ActivityIndicator, TouchableOpacity } from "react-native";
|
|
10
|
-
import { useAppDesignTokens, AtomicText
|
|
10
|
+
import { useAppDesignTokens, AtomicText } from "@umituz/react-native-design-system";
|
|
11
11
|
import { useGenerationPhase } from "../hooks/useGenerationPhase";
|
|
12
12
|
import { IndeterminateProgressBar } from "../components/IndeterminateProgressBar";
|
|
13
13
|
|
|
@@ -70,17 +70,6 @@ export const GeneratingScreen: React.FC<GeneratingScreenProps> = ({
|
|
|
70
70
|
|
|
71
71
|
return (
|
|
72
72
|
<View style={[styles.container, { backgroundColor: tokens.colors.backgroundPrimary }]}>
|
|
73
|
-
{/* Close button - allows user to dismiss and continue in background */}
|
|
74
|
-
{onDismiss && (
|
|
75
|
-
<TouchableOpacity
|
|
76
|
-
style={styles.closeButton}
|
|
77
|
-
onPress={onDismiss}
|
|
78
|
-
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
79
|
-
>
|
|
80
|
-
<AtomicIcon name="close" size="md" customColor={tokens.colors.textSecondary} />
|
|
81
|
-
</TouchableOpacity>
|
|
82
|
-
)}
|
|
83
|
-
|
|
84
73
|
<View style={styles.content}>
|
|
85
74
|
<ActivityIndicator size="large" color={tokens.colors.primary} />
|
|
86
75
|
|
|
@@ -111,8 +100,11 @@ export const GeneratingScreen: React.FC<GeneratingScreenProps> = ({
|
|
|
111
100
|
|
|
112
101
|
{/* Background hint - tap to dismiss */}
|
|
113
102
|
{onDismiss && (
|
|
114
|
-
<TouchableOpacity
|
|
115
|
-
|
|
103
|
+
<TouchableOpacity
|
|
104
|
+
style={[styles.backgroundHintButton, { borderColor: tokens.colors.primary }]}
|
|
105
|
+
onPress={onDismiss}
|
|
106
|
+
>
|
|
107
|
+
<AtomicText type="bodyLarge" style={[styles.backgroundHint, { color: tokens.colors.primary }]}>
|
|
116
108
|
{messages.backgroundHint}
|
|
117
109
|
</AtomicText>
|
|
118
110
|
</TouchableOpacity>
|
|
@@ -128,13 +120,6 @@ const styles = StyleSheet.create({
|
|
|
128
120
|
justifyContent: "center",
|
|
129
121
|
alignItems: "center",
|
|
130
122
|
},
|
|
131
|
-
closeButton: {
|
|
132
|
-
position: "absolute",
|
|
133
|
-
top: 16,
|
|
134
|
-
right: 16,
|
|
135
|
-
zIndex: 10,
|
|
136
|
-
padding: 8,
|
|
137
|
-
},
|
|
138
123
|
content: {
|
|
139
124
|
width: "80%",
|
|
140
125
|
maxWidth: 400,
|
|
@@ -157,12 +142,14 @@ const styles = StyleSheet.create({
|
|
|
157
142
|
marginTop: 8,
|
|
158
143
|
},
|
|
159
144
|
backgroundHintButton: {
|
|
160
|
-
marginTop:
|
|
161
|
-
paddingVertical:
|
|
162
|
-
paddingHorizontal:
|
|
145
|
+
marginTop: 32,
|
|
146
|
+
paddingVertical: 16,
|
|
147
|
+
paddingHorizontal: 24,
|
|
148
|
+
borderWidth: 1,
|
|
149
|
+
borderRadius: 12,
|
|
163
150
|
},
|
|
164
151
|
backgroundHint: {
|
|
165
152
|
textAlign: "center",
|
|
166
|
-
fontWeight: "
|
|
153
|
+
fontWeight: "700",
|
|
167
154
|
},
|
|
168
155
|
});
|