aport-tools 4.0.33 → 4.1.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/dist/fonts/Text.d.ts +57 -0
- package/dist/index.esm.js +217 -500
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +217 -500
- package/dist/index.js.map +1 -1
- package/dist/styles/colors.d.ts +4 -0
- package/package.json +4 -3
@@ -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 {};
|