aport-tools 4.0.33 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+ import { TextProps, TextStyle } from 'react-native';
3
+ import { ThemeColors } from '../styles/colors';
4
+ interface CustomTextProps extends TextProps {
5
+ /**
6
+ * Content to be displayed inside the Text component.
7
+ */
8
+ children: React.ReactNode;
9
+ /**
10
+ * Size of the text. Defaults to 14.
11
+ */
12
+ size?: number;
13
+ /**
14
+ * If true, applies bold styling to the text.
15
+ */
16
+ b?: boolean;
17
+ /**
18
+ * If true, applies italic styling to the text.
19
+ */
20
+ i?: boolean;
21
+ /**
22
+ * If true, applies underline styling to the text.
23
+ */
24
+ u?: boolean;
25
+ /**
26
+ * Paragraph alignment. Can be 'left', 'center', or 'right'. Defaults to 'left'.
27
+ */
28
+ align?: 'left' | 'center' | 'right' | 'justify';
29
+ /**
30
+ * Text type. Defaults to 'text'. Should match the keys in ThemeColors.
31
+ * This restricts type to known color keys like 'primary', 'error', etc.
32
+ */
33
+ type?: keyof ThemeColors;
34
+ /**
35
+ * Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.
36
+ */
37
+ h?: 0 | 1 | 2 | 3;
38
+ /**
39
+ * Additional styles to apply to the Text component.
40
+ */
41
+ style?: TextStyle;
42
+ }
43
+ /**
44
+ * A dynamic Text component that supports HTML-like formatting.
45
+ * Integrates with the Theme system for consistent styling.
46
+ *
47
+ * @param children - The content to be displayed inside the Text component.
48
+ * @param size - Size of the text. Defaults to 'medium'.
49
+ * @param b - If true, applies bold styling.
50
+ * @param i - If true, applies italic styling.
51
+ * @param u - If true, applies underline styling.
52
+ * @param align - Paragraph alignment. Defaults to 'left'.
53
+ * @param h - Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.
54
+ * @param style - Additional styles to apply.
55
+ */
56
+ export declare const Text: React.FC<CustomTextProps>;
57
+ export {};
@@ -0,0 +1 @@
1
+ export { Text } from "./Text";
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './theme';
2
2
  export * from './buttons';
3
3
  export * from './cards';
4
+ export * from './fonts';