@idealyst/components 1.0.24 → 1.0.26
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/README.md +567 -567
- package/package.json +2 -2
- package/plugin/web.js +319 -185
- package/src/Avatar/Avatar.native.tsx +43 -43
- package/src/Avatar/Avatar.styles.tsx +66 -66
- package/src/Avatar/Avatar.web.tsx +50 -50
- package/src/Avatar/index.native.ts +1 -1
- package/src/Avatar/index.ts +1 -1
- package/src/Avatar/index.web.ts +1 -1
- package/src/Avatar/types.ts +42 -42
- package/src/Badge/Badge.native.tsx +42 -42
- package/src/Badge/Badge.styles.tsx +153 -153
- package/src/Badge/Badge.web.tsx +44 -44
- package/src/Badge/index.native.ts +1 -1
- package/src/Badge/index.ts +1 -1
- package/src/Badge/index.web.ts +1 -1
- package/src/Badge/types.ts +33 -33
- package/src/Button/Button.native.tsx +38 -38
- package/src/Button/Button.styles.tsx +214 -214
- package/src/Button/Button.types.ts +11 -11
- package/src/Button/Button.web.tsx +55 -55
- package/src/Button/index.native.ts +2 -2
- package/src/Button/index.ts +4 -4
- package/src/Button/index.web.ts +2 -2
- package/src/Button/types.ts +48 -48
- package/src/Card/Card.native.tsx +51 -51
- package/src/Card/Card.styles.tsx +239 -239
- package/src/Card/Card.web.tsx +61 -61
- package/src/Card/index.native.ts +2 -2
- package/src/Card/index.ts +4 -4
- package/src/Card/index.web.ts +2 -2
- package/src/Card/types.ts +58 -58
- package/src/Checkbox/Checkbox.native.tsx +98 -98
- package/src/Checkbox/Checkbox.styles.tsx +291 -291
- package/src/Checkbox/Checkbox.web.tsx +130 -130
- package/src/Checkbox/index.native.ts +2 -2
- package/src/Checkbox/index.ts +4 -4
- package/src/Checkbox/index.web.ts +2 -2
- package/src/Checkbox/types.ts +78 -78
- package/src/Divider/Divider.native.tsx +144 -144
- package/src/Divider/Divider.styles.tsx +601 -601
- package/src/Divider/Divider.web.tsx +72 -72
- package/src/Divider/index.native.ts +2 -2
- package/src/Divider/index.ts +4 -4
- package/src/Divider/index.web.ts +2 -2
- package/src/Divider/types.ts +53 -53
- package/src/Icon/Icon.native.tsx +38 -38
- package/src/Icon/Icon.styles.tsx +49 -49
- package/src/Icon/Icon.web.tsx +46 -46
- package/src/Icon/icon-types.ts +7452 -7452
- package/src/Icon/index.native.ts +2 -2
- package/src/Icon/index.ts +4 -4
- package/src/Icon/index.web.ts +2 -2
- package/src/Icon/types.ts +35 -35
- package/src/Input/Input.native.tsx +74 -74
- package/src/Input/Input.styles.tsx +176 -176
- package/src/Input/Input.web.tsx +70 -70
- package/src/Input/index.native.ts +2 -2
- package/src/Input/index.ts +4 -4
- package/src/Input/index.web.ts +2 -2
- package/src/Input/types.ts +68 -68
- package/src/Screen/Screen.native.tsx +40 -40
- package/src/Screen/Screen.styles.tsx +59 -59
- package/src/Screen/Screen.web.tsx +32 -32
- package/src/Screen/index.native.ts +1 -1
- package/src/Screen/index.ts +1 -1
- package/src/Screen/index.web.ts +1 -1
- package/src/Screen/types.ts +37 -37
- package/src/Text/Text.native.tsx +35 -35
- package/src/Text/Text.styles.tsx +66 -66
- package/src/Text/Text.web.tsx +40 -40
- package/src/Text/index.native.ts +2 -2
- package/src/Text/index.ts +4 -4
- package/src/Text/index.web.ts +2 -2
- package/src/Text/types.ts +38 -38
- package/src/View/View.native.tsx +55 -55
- package/src/View/View.styles.tsx +102 -102
- package/src/View/View.web.tsx +59 -59
- package/src/View/index.native.ts +2 -2
- package/src/View/index.ts +4 -4
- package/src/View/index.web.ts +2 -2
- package/src/View/types.ts +72 -72
- package/src/examples/AllExamples.tsx +71 -71
- package/src/examples/AvatarExamples.tsx +96 -96
- package/src/examples/BadgeExamples.tsx +199 -199
- package/src/examples/ButtonExamples.tsx +149 -149
- package/src/examples/CardExamples.tsx +175 -175
- package/src/examples/CheckboxExamples.tsx +216 -216
- package/src/examples/DividerExamples.tsx +217 -217
- package/src/examples/IconExamples.tsx +341 -341
- package/src/examples/InputExamples.tsx +133 -133
- package/src/examples/README.md +135 -135
- package/src/examples/ScreenExamples.tsx +153 -153
- package/src/examples/TextExamples.tsx +88 -88
- package/src/examples/ThemeExtensionExamples.tsx +90 -90
- package/src/examples/ValidationExamples.tsx +94 -94
- package/src/examples/ViewExamples.tsx +128 -128
- package/src/examples/extendedTheme.ts +328 -328
- package/src/examples/index.ts +14 -14
- package/src/index.native.ts +48 -48
- package/src/index.ts +47 -47
- package/src/theme/breakpoints.ts +8 -8
- package/src/theme/colorResolver.ts +217 -217
- package/src/theme/colors.ts +314 -314
- package/src/theme/defaultThemes.ts +325 -325
- package/src/theme/index.ts +187 -187
- package/src/theme/themeBuilder.ts +601 -601
- package/src/theme/unistyles.d.ts +5 -5
- package/src/theme/variantHelpers.ts +583 -583
- package/src/theme/variants.ts +55 -55
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Screen, View, Text } from '../index';
|
|
3
|
-
|
|
4
|
-
export const ScreenExamples = () => {
|
|
5
|
-
return (
|
|
6
|
-
<Screen background="primary" padding="lg">
|
|
7
|
-
<View spacing="lg">
|
|
8
|
-
<Text size="large" weight="bold" align="center">
|
|
9
|
-
Screen Examples
|
|
10
|
-
</Text>
|
|
11
|
-
|
|
12
|
-
{/* Background Examples */}
|
|
13
|
-
<View spacing="md">
|
|
14
|
-
<Text size="medium" weight="semibold">Background Variants</Text>
|
|
15
|
-
<Text size="small" color="secondary">
|
|
16
|
-
Each Screen should have a different background color
|
|
17
|
-
</Text>
|
|
18
|
-
|
|
19
|
-
<View style={{ flexDirection: 'row', gap: 8, flexWrap: 'wrap' }}>
|
|
20
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
21
|
-
<Screen background="primary" padding="sm">
|
|
22
|
-
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
23
|
-
<Text size="small" weight="bold">Primary</Text>
|
|
24
|
-
<Text size="small" color="secondary">Surface</Text>
|
|
25
|
-
</View>
|
|
26
|
-
</Screen>
|
|
27
|
-
</View>
|
|
28
|
-
|
|
29
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
30
|
-
<Screen background="secondary" padding="sm">
|
|
31
|
-
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
32
|
-
<Text size="small" weight="bold">Secondary</Text>
|
|
33
|
-
<Text size="small" color="secondary">Surface</Text>
|
|
34
|
-
</View>
|
|
35
|
-
</Screen>
|
|
36
|
-
</View>
|
|
37
|
-
|
|
38
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
39
|
-
<Screen background="tertiary" padding="sm">
|
|
40
|
-
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
41
|
-
<Text size="small" weight="bold">Tertiary</Text>
|
|
42
|
-
<Text size="small" color="secondary">Surface</Text>
|
|
43
|
-
</View>
|
|
44
|
-
</Screen>
|
|
45
|
-
</View>
|
|
46
|
-
|
|
47
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
48
|
-
<Screen background="inverse" padding="sm">
|
|
49
|
-
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
50
|
-
<Text size="small" weight="bold" color="primary">Inverse</Text>
|
|
51
|
-
<Text size="small" color="secondary">Surface</Text>
|
|
52
|
-
</View>
|
|
53
|
-
</Screen>
|
|
54
|
-
</View>
|
|
55
|
-
</View>
|
|
56
|
-
</View>
|
|
57
|
-
|
|
58
|
-
{/* Padding Examples */}
|
|
59
|
-
<View spacing="md">
|
|
60
|
-
<Text size="medium" weight="semibold">Padding Variants</Text>
|
|
61
|
-
<Text size="small" color="secondary">
|
|
62
|
-
Different padding options for Screen content
|
|
63
|
-
</Text>
|
|
64
|
-
|
|
65
|
-
<View style={{ flexDirection: 'row', gap: 8, flexWrap: 'wrap' }}>
|
|
66
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
67
|
-
<Screen background="secondary" padding="none">
|
|
68
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
69
|
-
<Text size="small" weight="bold">None</Text>
|
|
70
|
-
<Text size="small" color="secondary">No padding</Text>
|
|
71
|
-
</View>
|
|
72
|
-
</Screen>
|
|
73
|
-
</View>
|
|
74
|
-
|
|
75
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
76
|
-
<Screen background="secondary" padding="sm">
|
|
77
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
78
|
-
<Text size="small" weight="bold">Small</Text>
|
|
79
|
-
<Text size="small" color="secondary">8px</Text>
|
|
80
|
-
</View>
|
|
81
|
-
</Screen>
|
|
82
|
-
</View>
|
|
83
|
-
|
|
84
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
85
|
-
<Screen background="secondary" padding="md">
|
|
86
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
87
|
-
<Text size="small" weight="bold">Medium</Text>
|
|
88
|
-
<Text size="small" color="secondary">16px</Text>
|
|
89
|
-
</View>
|
|
90
|
-
</Screen>
|
|
91
|
-
</View>
|
|
92
|
-
|
|
93
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
94
|
-
<Screen background="secondary" padding="lg">
|
|
95
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
96
|
-
<Text size="small" weight="bold">Large</Text>
|
|
97
|
-
<Text size="small" color="secondary">24px</Text>
|
|
98
|
-
</View>
|
|
99
|
-
</Screen>
|
|
100
|
-
</View>
|
|
101
|
-
</View>
|
|
102
|
-
</View>
|
|
103
|
-
|
|
104
|
-
{/* Safe Area Examples */}
|
|
105
|
-
<View spacing="md">
|
|
106
|
-
<Text size="medium" weight="semibold">Safe Area</Text>
|
|
107
|
-
<Text size="small" color="secondary">
|
|
108
|
-
Safe area padding for mobile devices
|
|
109
|
-
</Text>
|
|
110
|
-
|
|
111
|
-
<View style={{ flexDirection: 'row', gap: 8, flexWrap: 'wrap' }}>
|
|
112
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
113
|
-
<Screen background="tertiary" padding="sm" safeArea={false}>
|
|
114
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(0,255,0,0.1)' }}>
|
|
115
|
-
<Text size="small" weight="bold">No Safe Area</Text>
|
|
116
|
-
<Text size="small" color="secondary">Standard</Text>
|
|
117
|
-
</View>
|
|
118
|
-
</Screen>
|
|
119
|
-
</View>
|
|
120
|
-
|
|
121
|
-
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
122
|
-
<Screen background="tertiary" padding="sm" safeArea={true}>
|
|
123
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(0,255,0,0.1)' }}>
|
|
124
|
-
<Text size="small" weight="bold">Safe Area</Text>
|
|
125
|
-
<Text size="small" color="secondary">Mobile</Text>
|
|
126
|
-
</View>
|
|
127
|
-
</Screen>
|
|
128
|
-
</View>
|
|
129
|
-
</View>
|
|
130
|
-
</View>
|
|
131
|
-
|
|
132
|
-
{/* Usage Examples */}
|
|
133
|
-
<View spacing="md">
|
|
134
|
-
<Text size="medium" weight="semibold">Common Usage</Text>
|
|
135
|
-
<View style={{ height: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
136
|
-
<Screen background="primary" padding="lg">
|
|
137
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
138
|
-
<Text size="large" weight="bold" align="center">
|
|
139
|
-
App Screen Layout
|
|
140
|
-
</Text>
|
|
141
|
-
<Text size="medium" color="secondary" align="center">
|
|
142
|
-
Primary background with large padding
|
|
143
|
-
</Text>
|
|
144
|
-
<Text size="small" color="secondary" align="center">
|
|
145
|
-
Perfect for main app screens
|
|
146
|
-
</Text>
|
|
147
|
-
</View>
|
|
148
|
-
</Screen>
|
|
149
|
-
</View>
|
|
150
|
-
</View>
|
|
151
|
-
</View>
|
|
152
|
-
</Screen>
|
|
153
|
-
);
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Screen, View, Text } from '../index';
|
|
3
|
+
|
|
4
|
+
export const ScreenExamples = () => {
|
|
5
|
+
return (
|
|
6
|
+
<Screen background="primary" padding="lg">
|
|
7
|
+
<View spacing="lg">
|
|
8
|
+
<Text size="large" weight="bold" align="center">
|
|
9
|
+
Screen Examples
|
|
10
|
+
</Text>
|
|
11
|
+
|
|
12
|
+
{/* Background Examples */}
|
|
13
|
+
<View spacing="md">
|
|
14
|
+
<Text size="medium" weight="semibold">Background Variants</Text>
|
|
15
|
+
<Text size="small" color="secondary">
|
|
16
|
+
Each Screen should have a different background color
|
|
17
|
+
</Text>
|
|
18
|
+
|
|
19
|
+
<View style={{ flexDirection: 'row', gap: 8, flexWrap: 'wrap' }}>
|
|
20
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
21
|
+
<Screen background="primary" padding="sm">
|
|
22
|
+
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
23
|
+
<Text size="small" weight="bold">Primary</Text>
|
|
24
|
+
<Text size="small" color="secondary">Surface</Text>
|
|
25
|
+
</View>
|
|
26
|
+
</Screen>
|
|
27
|
+
</View>
|
|
28
|
+
|
|
29
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
30
|
+
<Screen background="secondary" padding="sm">
|
|
31
|
+
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
32
|
+
<Text size="small" weight="bold">Secondary</Text>
|
|
33
|
+
<Text size="small" color="secondary">Surface</Text>
|
|
34
|
+
</View>
|
|
35
|
+
</Screen>
|
|
36
|
+
</View>
|
|
37
|
+
|
|
38
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
39
|
+
<Screen background="tertiary" padding="sm">
|
|
40
|
+
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
41
|
+
<Text size="small" weight="bold">Tertiary</Text>
|
|
42
|
+
<Text size="small" color="secondary">Surface</Text>
|
|
43
|
+
</View>
|
|
44
|
+
</Screen>
|
|
45
|
+
</View>
|
|
46
|
+
|
|
47
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
48
|
+
<Screen background="inverse" padding="sm">
|
|
49
|
+
<View spacing="sm" style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
50
|
+
<Text size="small" weight="bold" color="primary">Inverse</Text>
|
|
51
|
+
<Text size="small" color="secondary">Surface</Text>
|
|
52
|
+
</View>
|
|
53
|
+
</Screen>
|
|
54
|
+
</View>
|
|
55
|
+
</View>
|
|
56
|
+
</View>
|
|
57
|
+
|
|
58
|
+
{/* Padding Examples */}
|
|
59
|
+
<View spacing="md">
|
|
60
|
+
<Text size="medium" weight="semibold">Padding Variants</Text>
|
|
61
|
+
<Text size="small" color="secondary">
|
|
62
|
+
Different padding options for Screen content
|
|
63
|
+
</Text>
|
|
64
|
+
|
|
65
|
+
<View style={{ flexDirection: 'row', gap: 8, flexWrap: 'wrap' }}>
|
|
66
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
67
|
+
<Screen background="secondary" padding="none">
|
|
68
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
69
|
+
<Text size="small" weight="bold">None</Text>
|
|
70
|
+
<Text size="small" color="secondary">No padding</Text>
|
|
71
|
+
</View>
|
|
72
|
+
</Screen>
|
|
73
|
+
</View>
|
|
74
|
+
|
|
75
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
76
|
+
<Screen background="secondary" padding="sm">
|
|
77
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
78
|
+
<Text size="small" weight="bold">Small</Text>
|
|
79
|
+
<Text size="small" color="secondary">8px</Text>
|
|
80
|
+
</View>
|
|
81
|
+
</Screen>
|
|
82
|
+
</View>
|
|
83
|
+
|
|
84
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
85
|
+
<Screen background="secondary" padding="md">
|
|
86
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
87
|
+
<Text size="small" weight="bold">Medium</Text>
|
|
88
|
+
<Text size="small" color="secondary">16px</Text>
|
|
89
|
+
</View>
|
|
90
|
+
</Screen>
|
|
91
|
+
</View>
|
|
92
|
+
|
|
93
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
94
|
+
<Screen background="secondary" padding="lg">
|
|
95
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(255,0,0,0.1)' }}>
|
|
96
|
+
<Text size="small" weight="bold">Large</Text>
|
|
97
|
+
<Text size="small" color="secondary">24px</Text>
|
|
98
|
+
</View>
|
|
99
|
+
</Screen>
|
|
100
|
+
</View>
|
|
101
|
+
</View>
|
|
102
|
+
</View>
|
|
103
|
+
|
|
104
|
+
{/* Safe Area Examples */}
|
|
105
|
+
<View spacing="md">
|
|
106
|
+
<Text size="medium" weight="semibold">Safe Area</Text>
|
|
107
|
+
<Text size="small" color="secondary">
|
|
108
|
+
Safe area padding for mobile devices
|
|
109
|
+
</Text>
|
|
110
|
+
|
|
111
|
+
<View style={{ flexDirection: 'row', gap: 8, flexWrap: 'wrap' }}>
|
|
112
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
113
|
+
<Screen background="tertiary" padding="sm" safeArea={false}>
|
|
114
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(0,255,0,0.1)' }}>
|
|
115
|
+
<Text size="small" weight="bold">No Safe Area</Text>
|
|
116
|
+
<Text size="small" color="secondary">Standard</Text>
|
|
117
|
+
</View>
|
|
118
|
+
</Screen>
|
|
119
|
+
</View>
|
|
120
|
+
|
|
121
|
+
<View style={{ height: 100, width: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
122
|
+
<Screen background="tertiary" padding="sm" safeArea={true}>
|
|
123
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: 'rgba(0,255,0,0.1)' }}>
|
|
124
|
+
<Text size="small" weight="bold">Safe Area</Text>
|
|
125
|
+
<Text size="small" color="secondary">Mobile</Text>
|
|
126
|
+
</View>
|
|
127
|
+
</Screen>
|
|
128
|
+
</View>
|
|
129
|
+
</View>
|
|
130
|
+
</View>
|
|
131
|
+
|
|
132
|
+
{/* Usage Examples */}
|
|
133
|
+
<View spacing="md">
|
|
134
|
+
<Text size="medium" weight="semibold">Common Usage</Text>
|
|
135
|
+
<View style={{ height: 120, borderWidth: 1, borderColor: '#ccc' }}>
|
|
136
|
+
<Screen background="primary" padding="lg">
|
|
137
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1 }}>
|
|
138
|
+
<Text size="large" weight="bold" align="center">
|
|
139
|
+
App Screen Layout
|
|
140
|
+
</Text>
|
|
141
|
+
<Text size="medium" color="secondary" align="center">
|
|
142
|
+
Primary background with large padding
|
|
143
|
+
</Text>
|
|
144
|
+
<Text size="small" color="secondary" align="center">
|
|
145
|
+
Perfect for main app screens
|
|
146
|
+
</Text>
|
|
147
|
+
</View>
|
|
148
|
+
</Screen>
|
|
149
|
+
</View>
|
|
150
|
+
</View>
|
|
151
|
+
</View>
|
|
152
|
+
</Screen>
|
|
153
|
+
);
|
|
154
154
|
};
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Screen, View, Text } from '../index';
|
|
3
|
-
|
|
4
|
-
export const TextExamples = () => {
|
|
5
|
-
return (
|
|
6
|
-
<Screen background="primary" padding="lg">
|
|
7
|
-
<View spacing="none">
|
|
8
|
-
<Text size="large" weight="bold" align="center">
|
|
9
|
-
Text Examples
|
|
10
|
-
</Text>
|
|
11
|
-
|
|
12
|
-
{/* Text Sizes */}
|
|
13
|
-
<View spacing="md">
|
|
14
|
-
<Text size="medium" weight="semibold">Sizes</Text>
|
|
15
|
-
<View spacing="sm" style={{ gap: 10 }}>
|
|
16
|
-
<Text size="small">Small text - Lorem ipsum dolor sit amet</Text>
|
|
17
|
-
<Text size="medium">Medium text - Lorem ipsum dolor sit amet</Text>
|
|
18
|
-
<Text size="large">Large text - Lorem ipsum dolor sit amet</Text>
|
|
19
|
-
<Text size="xlarge">Extra large text - Lorem ipsum dolor sit amet</Text>
|
|
20
|
-
</View>
|
|
21
|
-
</View>
|
|
22
|
-
|
|
23
|
-
{/* Text Weights */}
|
|
24
|
-
<View spacing="md">
|
|
25
|
-
<Text size="medium" weight="semibold">Weights</Text>
|
|
26
|
-
<View spacing="sm" style={{ gap: 10 }}>
|
|
27
|
-
<Text weight="light">Light weight text</Text>
|
|
28
|
-
<Text weight="normal">Normal weight text</Text>
|
|
29
|
-
<Text weight="medium">Medium weight text</Text>
|
|
30
|
-
<Text weight="semibold">Semibold weight text</Text>
|
|
31
|
-
<Text weight="bold">Bold weight text</Text>
|
|
32
|
-
</View>
|
|
33
|
-
</View>
|
|
34
|
-
|
|
35
|
-
{/* Text Colors */}
|
|
36
|
-
<View spacing="md">
|
|
37
|
-
<Text size="medium" weight="semibold">Color Variants</Text>
|
|
38
|
-
<View spacing="sm" style={{ gap: 10 }}>
|
|
39
|
-
<Text color="primary">Primary color text</Text>
|
|
40
|
-
<Text color="secondary">Secondary color text</Text>
|
|
41
|
-
<Text color="blue">Blue color text</Text>
|
|
42
|
-
<Text color="green">Green color text</Text>
|
|
43
|
-
<Text color="red">Red color text</Text>
|
|
44
|
-
<Text color="orange">Orange color text</Text>
|
|
45
|
-
</View>
|
|
46
|
-
</View>
|
|
47
|
-
|
|
48
|
-
{/* Text Color Shades */}
|
|
49
|
-
<View spacing="md">
|
|
50
|
-
<Text size="medium" weight="semibold">Color Shades</Text>
|
|
51
|
-
<View spacing="sm" style={{ gap: 10 }}>
|
|
52
|
-
<Text color="blue.300">Blue 300 text</Text>
|
|
53
|
-
<Text color="blue.500">Blue 500 text</Text>
|
|
54
|
-
<Text color="blue.700">Blue 700 text</Text>
|
|
55
|
-
<Text color="red.200">Red 200 text</Text>
|
|
56
|
-
<Text color="red.600">Red 600 text</Text>
|
|
57
|
-
<Text color="red.900">Red 900 text</Text>
|
|
58
|
-
</View>
|
|
59
|
-
</View>
|
|
60
|
-
|
|
61
|
-
{/* Text Alignment */}
|
|
62
|
-
<View spacing="md">
|
|
63
|
-
<Text size="medium" weight="semibold">Alignment</Text>
|
|
64
|
-
<View spacing="sm" style={{ gap: 10 }}>
|
|
65
|
-
<Text align="left">Left aligned text</Text>
|
|
66
|
-
<Text align="center">Center aligned text</Text>
|
|
67
|
-
<Text align="right">Right aligned text</Text>
|
|
68
|
-
</View>
|
|
69
|
-
</View>
|
|
70
|
-
|
|
71
|
-
{/* Combined Examples */}
|
|
72
|
-
<View spacing="md">
|
|
73
|
-
<Text size="medium" weight="semibold">Combined Examples</Text>
|
|
74
|
-
<View spacing="sm" style={{ gap: 10 }}>
|
|
75
|
-
<Text size="large" weight="bold" color="primary" align="center">
|
|
76
|
-
Large Bold Primary Centered
|
|
77
|
-
</Text>
|
|
78
|
-
<Text size="small" weight="light" color="secondary" align="right">
|
|
79
|
-
Small Light Secondary Right
|
|
80
|
-
</Text>
|
|
81
|
-
<Text size="medium" weight="semibold" color="green">
|
|
82
|
-
Medium Semibold Green
|
|
83
|
-
</Text>
|
|
84
|
-
</View>
|
|
85
|
-
</View>
|
|
86
|
-
</View>
|
|
87
|
-
</Screen>
|
|
88
|
-
);
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Screen, View, Text } from '../index';
|
|
3
|
+
|
|
4
|
+
export const TextExamples = () => {
|
|
5
|
+
return (
|
|
6
|
+
<Screen background="primary" padding="lg">
|
|
7
|
+
<View spacing="none">
|
|
8
|
+
<Text size="large" weight="bold" align="center">
|
|
9
|
+
Text Examples
|
|
10
|
+
</Text>
|
|
11
|
+
|
|
12
|
+
{/* Text Sizes */}
|
|
13
|
+
<View spacing="md">
|
|
14
|
+
<Text size="medium" weight="semibold">Sizes</Text>
|
|
15
|
+
<View spacing="sm" style={{ gap: 10 }}>
|
|
16
|
+
<Text size="small">Small text - Lorem ipsum dolor sit amet</Text>
|
|
17
|
+
<Text size="medium">Medium text - Lorem ipsum dolor sit amet</Text>
|
|
18
|
+
<Text size="large">Large text - Lorem ipsum dolor sit amet</Text>
|
|
19
|
+
<Text size="xlarge">Extra large text - Lorem ipsum dolor sit amet</Text>
|
|
20
|
+
</View>
|
|
21
|
+
</View>
|
|
22
|
+
|
|
23
|
+
{/* Text Weights */}
|
|
24
|
+
<View spacing="md">
|
|
25
|
+
<Text size="medium" weight="semibold">Weights</Text>
|
|
26
|
+
<View spacing="sm" style={{ gap: 10 }}>
|
|
27
|
+
<Text weight="light">Light weight text</Text>
|
|
28
|
+
<Text weight="normal">Normal weight text</Text>
|
|
29
|
+
<Text weight="medium">Medium weight text</Text>
|
|
30
|
+
<Text weight="semibold">Semibold weight text</Text>
|
|
31
|
+
<Text weight="bold">Bold weight text</Text>
|
|
32
|
+
</View>
|
|
33
|
+
</View>
|
|
34
|
+
|
|
35
|
+
{/* Text Colors */}
|
|
36
|
+
<View spacing="md">
|
|
37
|
+
<Text size="medium" weight="semibold">Color Variants</Text>
|
|
38
|
+
<View spacing="sm" style={{ gap: 10 }}>
|
|
39
|
+
<Text color="primary">Primary color text</Text>
|
|
40
|
+
<Text color="secondary">Secondary color text</Text>
|
|
41
|
+
<Text color="blue">Blue color text</Text>
|
|
42
|
+
<Text color="green">Green color text</Text>
|
|
43
|
+
<Text color="red">Red color text</Text>
|
|
44
|
+
<Text color="orange">Orange color text</Text>
|
|
45
|
+
</View>
|
|
46
|
+
</View>
|
|
47
|
+
|
|
48
|
+
{/* Text Color Shades */}
|
|
49
|
+
<View spacing="md">
|
|
50
|
+
<Text size="medium" weight="semibold">Color Shades</Text>
|
|
51
|
+
<View spacing="sm" style={{ gap: 10 }}>
|
|
52
|
+
<Text color="blue.300">Blue 300 text</Text>
|
|
53
|
+
<Text color="blue.500">Blue 500 text</Text>
|
|
54
|
+
<Text color="blue.700">Blue 700 text</Text>
|
|
55
|
+
<Text color="red.200">Red 200 text</Text>
|
|
56
|
+
<Text color="red.600">Red 600 text</Text>
|
|
57
|
+
<Text color="red.900">Red 900 text</Text>
|
|
58
|
+
</View>
|
|
59
|
+
</View>
|
|
60
|
+
|
|
61
|
+
{/* Text Alignment */}
|
|
62
|
+
<View spacing="md">
|
|
63
|
+
<Text size="medium" weight="semibold">Alignment</Text>
|
|
64
|
+
<View spacing="sm" style={{ gap: 10 }}>
|
|
65
|
+
<Text align="left">Left aligned text</Text>
|
|
66
|
+
<Text align="center">Center aligned text</Text>
|
|
67
|
+
<Text align="right">Right aligned text</Text>
|
|
68
|
+
</View>
|
|
69
|
+
</View>
|
|
70
|
+
|
|
71
|
+
{/* Combined Examples */}
|
|
72
|
+
<View spacing="md">
|
|
73
|
+
<Text size="medium" weight="semibold">Combined Examples</Text>
|
|
74
|
+
<View spacing="sm" style={{ gap: 10 }}>
|
|
75
|
+
<Text size="large" weight="bold" color="primary" align="center">
|
|
76
|
+
Large Bold Primary Centered
|
|
77
|
+
</Text>
|
|
78
|
+
<Text size="small" weight="light" color="secondary" align="right">
|
|
79
|
+
Small Light Secondary Right
|
|
80
|
+
</Text>
|
|
81
|
+
<Text size="medium" weight="semibold" color="green">
|
|
82
|
+
Medium Semibold Green
|
|
83
|
+
</Text>
|
|
84
|
+
</View>
|
|
85
|
+
</View>
|
|
86
|
+
</View>
|
|
87
|
+
</Screen>
|
|
88
|
+
);
|
|
89
89
|
};
|