@umituz/react-native-ai-creations 1.0.0

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/src/types.d.ts ADDED
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Type declarations for external modules
3
+ */
4
+
5
+ declare module "@umituz/react-native-design-system" {
6
+ import type { FC, ReactNode } from "react";
7
+ import type { StyleProp, ViewStyle, TextStyle } from "react-native";
8
+
9
+ export interface DesignTokens {
10
+ colors: {
11
+ primary: string;
12
+ secondary: string;
13
+ error: string;
14
+ warning: string;
15
+ success: string;
16
+ backgroundPrimary: string;
17
+ backgroundSecondary: string;
18
+ surface: string;
19
+ textPrimary: string;
20
+ textSecondary: string;
21
+ textInverse: string;
22
+ border: string;
23
+ [key: string]: string;
24
+ };
25
+ spacing: {
26
+ xs: number;
27
+ sm: number;
28
+ md: number;
29
+ lg: number;
30
+ xl: number;
31
+ xxl: number;
32
+ [key: string]: number;
33
+ };
34
+ typography: {
35
+ headingLarge: TextStyle;
36
+ headingMedium: TextStyle;
37
+ headingSmall: TextStyle;
38
+ bodyLarge: TextStyle;
39
+ bodyMedium: TextStyle;
40
+ bodySmall: TextStyle;
41
+ [key: string]: TextStyle;
42
+ };
43
+ }
44
+
45
+ export function useAppDesignTokens(): DesignTokens;
46
+
47
+ export interface AtomicTextProps {
48
+ children?: ReactNode;
49
+ style?: StyleProp<TextStyle>;
50
+ }
51
+ export const AtomicText: FC<AtomicTextProps>;
52
+
53
+ export interface AtomicIconProps {
54
+ name: string;
55
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
56
+ color?: string;
57
+ }
58
+ export const AtomicIcon: FC<AtomicIconProps>;
59
+ }
60
+
61
+ declare module "@umituz/react-native-sharing" {
62
+ export interface ShareOptions {
63
+ dialogTitle?: string;
64
+ mimeType?: string;
65
+ }
66
+
67
+ export interface UseSharingResult {
68
+ share: (uri: string, options?: ShareOptions) => Promise<void>;
69
+ }
70
+
71
+ export function useSharing(): UseSharingResult;
72
+ }