@umituz/react-native-ai-generation-content 1.17.298 → 1.17.300
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.17.
|
|
3
|
+
"version": "1.17.300",
|
|
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",
|
|
@@ -70,8 +70,8 @@ export const ScenarioGrid: React.FC<ScenarioGridProps> = ({
|
|
|
70
70
|
const isLoadingMore = isLoading && displayedCount > pageSize;
|
|
71
71
|
|
|
72
72
|
const styles = useMemo(
|
|
73
|
-
() => createStyles(tokens, cardWidth, cardSpacing),
|
|
74
|
-
[tokens, cardWidth, cardSpacing],
|
|
73
|
+
() => createStyles(tokens, cardWidth, cardSpacing, horizontalPadding),
|
|
74
|
+
[tokens, cardWidth, cardSpacing, horizontalPadding],
|
|
75
75
|
);
|
|
76
76
|
|
|
77
77
|
const loadMore = useCallback(() => {
|
|
@@ -96,23 +96,23 @@ export const ScenarioGrid: React.FC<ScenarioGridProps> = ({
|
|
|
96
96
|
|
|
97
97
|
const ListEmptyComponent = useMemo(
|
|
98
98
|
() => (
|
|
99
|
-
<View style={styles.centerContainer}>
|
|
99
|
+
<View style={[styles.centerContainer, { paddingHorizontal: horizontalPadding }]}>
|
|
100
100
|
<AtomicText type="bodyMedium" color="textSecondary">
|
|
101
101
|
{t("scenario.empty")}
|
|
102
102
|
</AtomicText>
|
|
103
103
|
</View>
|
|
104
104
|
),
|
|
105
|
-
[t, styles.centerContainer],
|
|
105
|
+
[t, styles.centerContainer, horizontalPadding],
|
|
106
106
|
);
|
|
107
107
|
|
|
108
108
|
const ListFooterComponent = useMemo(
|
|
109
109
|
() =>
|
|
110
110
|
isLoadingMore ? (
|
|
111
|
-
<View style={styles.footerLoader}>
|
|
111
|
+
<View style={[styles.footerLoader, { paddingHorizontal: horizontalPadding }]}>
|
|
112
112
|
<AtomicSkeleton pattern="card" count={2} />
|
|
113
113
|
</View>
|
|
114
114
|
) : null,
|
|
115
|
-
[isLoadingMore, styles.footerLoader],
|
|
115
|
+
[isLoadingMore, styles.footerLoader, horizontalPadding],
|
|
116
116
|
);
|
|
117
117
|
|
|
118
118
|
const ListHeaderComponent = useMemo(
|
|
@@ -184,7 +184,6 @@ export const ScenarioGrid: React.FC<ScenarioGridProps> = ({
|
|
|
184
184
|
styles.listContent,
|
|
185
185
|
{
|
|
186
186
|
paddingBottom: insets.bottom + 100,
|
|
187
|
-
paddingHorizontal: horizontalPadding,
|
|
188
187
|
},
|
|
189
188
|
]}
|
|
190
189
|
initialNumToRender={pageSize}
|
|
@@ -198,6 +197,7 @@ const createStyles = (
|
|
|
198
197
|
tokens: DesignTokens,
|
|
199
198
|
cardWidth: number,
|
|
200
199
|
cardSpacing: number,
|
|
200
|
+
horizontalPadding: number,
|
|
201
201
|
) =>
|
|
202
202
|
StyleSheet.create({
|
|
203
203
|
container: {
|
|
@@ -210,6 +210,7 @@ const createStyles = (
|
|
|
210
210
|
row: {
|
|
211
211
|
gap: cardSpacing,
|
|
212
212
|
marginBottom: cardSpacing,
|
|
213
|
+
paddingHorizontal: horizontalPadding,
|
|
213
214
|
},
|
|
214
215
|
centerContainer: {
|
|
215
216
|
flex: 1,
|