@umituz/react-native-ai-generation-content 1.74.3 → 1.74.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": "@umituz/react-native-ai-generation-content",
3
- "version": "1.74.3",
3
+ "version": "1.74.4",
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",
@@ -14,7 +14,7 @@ import {
14
14
  HeroSection,
15
15
  NavigationHeader,
16
16
  } from "@umituz/react-native-design-system";
17
- import { ContinueButton } from "../../../../presentation/components/buttons";
17
+ import { WizardContinueButton } from "../../../../domains/generation/wizard/presentation/components/WizardContinueButton";
18
18
  import type { ScenarioData } from "../../domain/scenario.types";
19
19
 
20
20
  export interface ScenarioPreviewTranslations {
@@ -46,7 +46,7 @@ export const ScenarioPreviewScreen: React.FC<ScenarioPreviewScreenProps> = ({
46
46
  title=""
47
47
  onBackPress={onBack}
48
48
  rightElement={
49
- <ContinueButton
49
+ <WizardContinueButton
50
50
  label={translations.continueButton}
51
51
  canContinue={true}
52
52
  onPress={onContinue}
@@ -1,2 +1 @@
1
1
  export { GenerateButton, type GenerateButtonProps } from "./GenerateButton";
2
- export { ContinueButton, type ContinueButtonProps } from "./ContinueButton";
@@ -1,72 +0,0 @@
1
- /**
2
- * ContinueButton Component
3
- * Reusable continue button for wizard flows and forms
4
- */
5
-
6
- import React, { useMemo } from "react";
7
- import { TouchableOpacity, StyleSheet } from "react-native";
8
- import { useAppDesignTokens, AtomicText, AtomicIcon } from "@umituz/react-native-design-system";
9
-
10
- export interface ContinueButtonProps {
11
- readonly label: string;
12
- readonly canContinue: boolean;
13
- readonly onPress: () => void;
14
- readonly iconName?: string;
15
- readonly disabled?: boolean;
16
- }
17
-
18
- export const ContinueButton: React.FC<ContinueButtonProps> = ({
19
- label,
20
- canContinue,
21
- onPress,
22
- iconName = "arrow-forward",
23
- disabled = false,
24
- }) => {
25
- const tokens = useAppDesignTokens();
26
- const isEnabled = canContinue && !disabled;
27
-
28
- const buttonStyle = useMemo(() => [
29
- styles.button,
30
- {
31
- backgroundColor: isEnabled ? tokens.colors.primary : tokens.colors.surfaceVariant,
32
- opacity: isEnabled ? 1 : 0.5,
33
- },
34
- ], [isEnabled, tokens.colors.primary, tokens.colors.surfaceVariant]);
35
-
36
- const textStyle = useMemo(() => [
37
- styles.text,
38
- { color: isEnabled ? tokens.colors.onPrimary : tokens.colors.textSecondary },
39
- ], [isEnabled, tokens.colors.onPrimary, tokens.colors.textSecondary]);
40
-
41
- return (
42
- <TouchableOpacity
43
- onPress={onPress}
44
- activeOpacity={0.7}
45
- disabled={!isEnabled}
46
- style={buttonStyle}
47
- >
48
- <AtomicText type="bodyMedium" style={textStyle}>
49
- {label}
50
- </AtomicText>
51
- <AtomicIcon
52
- name={iconName}
53
- size="sm"
54
- color={isEnabled ? "onPrimary" : "textSecondary"}
55
- />
56
- </TouchableOpacity>
57
- );
58
- };
59
-
60
- const styles = StyleSheet.create({
61
- button: {
62
- flexDirection: "row",
63
- alignItems: "center",
64
- paddingHorizontal: 16,
65
- paddingVertical: 8,
66
- borderRadius: 999,
67
- },
68
- text: {
69
- fontWeight: "800",
70
- marginRight: 4,
71
- },
72
- });