@idealyst/components 1.0.24 → 1.0.25
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,218 +1,218 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Screen, View, Text, Divider, Card } from '../index';
|
|
3
|
-
|
|
4
|
-
export const DividerExamples = () => {
|
|
5
|
-
return (
|
|
6
|
-
<Screen background="primary" padding="lg">
|
|
7
|
-
<View spacing="none">
|
|
8
|
-
<Text size="large" weight="bold" align="center">
|
|
9
|
-
Divider Examples
|
|
10
|
-
</Text>
|
|
11
|
-
|
|
12
|
-
{/* Horizontal Dividers */}
|
|
13
|
-
<View spacing="md">
|
|
14
|
-
<Text size="medium" weight="semibold">Horizontal Dividers</Text>
|
|
15
|
-
<View style={{ gap: 10 }}>
|
|
16
|
-
<Card variant="outlined" padding="medium">
|
|
17
|
-
<Text>Content above</Text>
|
|
18
|
-
<Divider orientation="horizontal" />
|
|
19
|
-
<Text>Content below</Text>
|
|
20
|
-
</Card>
|
|
21
|
-
<Card variant="outlined" padding="medium">
|
|
22
|
-
<Text>Content above</Text>
|
|
23
|
-
<Divider orientation="horizontal" variant="dashed" />
|
|
24
|
-
<Text>Content below</Text>
|
|
25
|
-
</Card>
|
|
26
|
-
<Card variant="outlined" padding="medium">
|
|
27
|
-
<Text>Content above</Text>
|
|
28
|
-
<Divider orientation="horizontal" variant="dotted" />
|
|
29
|
-
<Text>Content below</Text>
|
|
30
|
-
</Card>
|
|
31
|
-
</View>
|
|
32
|
-
</View>
|
|
33
|
-
|
|
34
|
-
{/* Divider Variants */}
|
|
35
|
-
<View spacing="md">
|
|
36
|
-
<Text size="medium" weight="semibold">Variants</Text>
|
|
37
|
-
<View style={{ gap: 10 }}>
|
|
38
|
-
<Card variant="outlined" padding="medium">
|
|
39
|
-
<Text>Solid divider</Text>
|
|
40
|
-
<Divider variant="solid" />
|
|
41
|
-
<Text>Content below</Text>
|
|
42
|
-
</Card>
|
|
43
|
-
<Card variant="outlined" padding="medium">
|
|
44
|
-
<Text>Dashed divider</Text>
|
|
45
|
-
<Divider variant="dashed" />
|
|
46
|
-
<Text>Content below</Text>
|
|
47
|
-
</Card>
|
|
48
|
-
<Card variant="outlined" padding="medium">
|
|
49
|
-
<Text>Dotted divider</Text>
|
|
50
|
-
<Divider variant="dotted" />
|
|
51
|
-
<Text>Content below</Text>
|
|
52
|
-
</Card>
|
|
53
|
-
</View>
|
|
54
|
-
</View>
|
|
55
|
-
|
|
56
|
-
{/* Divider Thickness */}
|
|
57
|
-
<View spacing="md">
|
|
58
|
-
<Text size="medium" weight="semibold">Thickness</Text>
|
|
59
|
-
<View style={{ gap: 10 }}>
|
|
60
|
-
<Card variant="outlined" padding="medium">
|
|
61
|
-
<Text>Thin divider</Text>
|
|
62
|
-
<Divider thickness="thin" />
|
|
63
|
-
<Text>Content below</Text>
|
|
64
|
-
</Card>
|
|
65
|
-
<Card variant="outlined" padding="medium">
|
|
66
|
-
<Text>Medium divider</Text>
|
|
67
|
-
<Divider thickness="medium" />
|
|
68
|
-
<Text>Content below</Text>
|
|
69
|
-
</Card>
|
|
70
|
-
<Card variant="outlined" padding="medium">
|
|
71
|
-
<Text>Thick divider</Text>
|
|
72
|
-
<Divider thickness="thick" />
|
|
73
|
-
<Text>Content below</Text>
|
|
74
|
-
</Card>
|
|
75
|
-
</View>
|
|
76
|
-
</View>
|
|
77
|
-
|
|
78
|
-
{/* Divider Intents */}
|
|
79
|
-
<View spacing="md">
|
|
80
|
-
<Text size="medium" weight="semibold">Intents</Text>
|
|
81
|
-
<View style={{ gap: 10 }}>
|
|
82
|
-
<Card variant="outlined" padding="medium">
|
|
83
|
-
<Text>Primary divider</Text>
|
|
84
|
-
<Divider intent="primary" />
|
|
85
|
-
<Text>Content below</Text>
|
|
86
|
-
</Card>
|
|
87
|
-
|
|
88
|
-
<Card variant="outlined" padding="medium">
|
|
89
|
-
<Text>Neutral divider</Text>
|
|
90
|
-
<Divider intent="neutral" />
|
|
91
|
-
<Text>Content below</Text>
|
|
92
|
-
</Card>
|
|
93
|
-
|
|
94
|
-
<Card variant="outlined" padding="medium">
|
|
95
|
-
<Text>Neutral divider</Text>
|
|
96
|
-
<Divider intent="neutral" />
|
|
97
|
-
<Text>Content below</Text>
|
|
98
|
-
</Card>
|
|
99
|
-
|
|
100
|
-
<Card variant="outlined" padding="medium">
|
|
101
|
-
<Text>Success divider</Text>
|
|
102
|
-
<Divider intent="success" />
|
|
103
|
-
<Text>Content below</Text>
|
|
104
|
-
</Card>
|
|
105
|
-
|
|
106
|
-
<Card variant="outlined" padding="medium">
|
|
107
|
-
<Text>Error divider</Text>
|
|
108
|
-
<Divider intent="error" />
|
|
109
|
-
<Text>Content below</Text>
|
|
110
|
-
</Card>
|
|
111
|
-
|
|
112
|
-
<Card variant="outlined" padding="medium">
|
|
113
|
-
<Text>Warning divider</Text>
|
|
114
|
-
<Divider intent="warning" />
|
|
115
|
-
<Text>Content below</Text>
|
|
116
|
-
</Card>
|
|
117
|
-
|
|
118
|
-
<Card variant="outlined" padding="medium">
|
|
119
|
-
<Text>Info divider</Text>
|
|
120
|
-
<Divider intent="info" />
|
|
121
|
-
<Text>Content below</Text>
|
|
122
|
-
</Card>
|
|
123
|
-
</View>
|
|
124
|
-
</View>
|
|
125
|
-
|
|
126
|
-
{/* Divider Spacing */}
|
|
127
|
-
<View spacing="md">
|
|
128
|
-
<Text size="medium" weight="semibold">Spacing</Text>
|
|
129
|
-
<View style={{ gap: 10 }}>
|
|
130
|
-
<Card variant="outlined" padding="medium">
|
|
131
|
-
<Text>No spacing</Text>
|
|
132
|
-
<Divider spacing="none" />
|
|
133
|
-
<Text>Content immediately after</Text>
|
|
134
|
-
</Card>
|
|
135
|
-
|
|
136
|
-
<Card variant="outlined" padding="medium">
|
|
137
|
-
<Text>Small spacing</Text>
|
|
138
|
-
<Divider spacing="small" />
|
|
139
|
-
<Text>Content with small spacing</Text>
|
|
140
|
-
</Card>
|
|
141
|
-
|
|
142
|
-
<Card variant="outlined" padding="medium">
|
|
143
|
-
<Text>Medium spacing</Text>
|
|
144
|
-
<Divider spacing="medium" />
|
|
145
|
-
<Text>Content with medium spacing</Text>
|
|
146
|
-
</Card>
|
|
147
|
-
|
|
148
|
-
<Card variant="outlined" padding="medium">
|
|
149
|
-
<Text>Large spacing</Text>
|
|
150
|
-
<Divider spacing="large" />
|
|
151
|
-
<Text>Content with large spacing</Text>
|
|
152
|
-
</Card>
|
|
153
|
-
</View>
|
|
154
|
-
</View>
|
|
155
|
-
|
|
156
|
-
{/* Divider with Content */}
|
|
157
|
-
<View spacing="md">
|
|
158
|
-
<Text size="medium" weight="semibold">With Content</Text>
|
|
159
|
-
<View style={{ gap: 10 }}>
|
|
160
|
-
<Card variant="outlined" padding="medium">
|
|
161
|
-
<Text>Content above</Text>
|
|
162
|
-
<Divider spacing="medium">
|
|
163
|
-
<Text size="small" color="secondary">OR</Text>
|
|
164
|
-
</Divider>
|
|
165
|
-
<Text>Content below</Text>
|
|
166
|
-
</Card>
|
|
167
|
-
|
|
168
|
-
<Card variant="outlined" padding="medium">
|
|
169
|
-
<Text>Content above</Text>
|
|
170
|
-
<Divider spacing="medium" intent="primary">
|
|
171
|
-
<Text size="small" color="primary" weight="semibold">SECTION</Text>
|
|
172
|
-
</Divider>
|
|
173
|
-
<Text>Content below</Text>
|
|
174
|
-
</Card>
|
|
175
|
-
</View>
|
|
176
|
-
</View>
|
|
177
|
-
|
|
178
|
-
{/* Vertical Dividers */}
|
|
179
|
-
<View spacing="md">
|
|
180
|
-
<Text size="medium" weight="semibold">Vertical Dividers</Text>
|
|
181
|
-
<Card variant="outlined" padding="medium">
|
|
182
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
183
|
-
<Text>Left</Text>
|
|
184
|
-
<Divider orientation="vertical" />
|
|
185
|
-
<Text>Center</Text>
|
|
186
|
-
<Divider orientation="vertical" variant="dashed" />
|
|
187
|
-
<Text>Right</Text>
|
|
188
|
-
</View>
|
|
189
|
-
</Card>
|
|
190
|
-
</View>
|
|
191
|
-
|
|
192
|
-
{/* Custom Length */}
|
|
193
|
-
<View spacing="md">
|
|
194
|
-
<Text size="medium" weight="semibold">Custom Length</Text>
|
|
195
|
-
<View style={{ gap: 10 }}>
|
|
196
|
-
<Card variant="outlined" padding="medium">
|
|
197
|
-
<Text>Auto length</Text>
|
|
198
|
-
<Divider length="auto" />
|
|
199
|
-
<Text>Content below</Text>
|
|
200
|
-
</Card>
|
|
201
|
-
|
|
202
|
-
<Card variant="outlined" padding="medium">
|
|
203
|
-
<Text>Full length</Text>
|
|
204
|
-
<Divider length="full" />
|
|
205
|
-
<Text>Content below</Text>
|
|
206
|
-
</Card>
|
|
207
|
-
|
|
208
|
-
<Card variant="outlined" padding="medium">
|
|
209
|
-
<Text>50% length</Text>
|
|
210
|
-
<Divider length={50} />
|
|
211
|
-
<Text>Content below</Text>
|
|
212
|
-
</Card>
|
|
213
|
-
</View>
|
|
214
|
-
</View>
|
|
215
|
-
</View>
|
|
216
|
-
</Screen>
|
|
217
|
-
);
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Screen, View, Text, Divider, Card } from '../index';
|
|
3
|
+
|
|
4
|
+
export const DividerExamples = () => {
|
|
5
|
+
return (
|
|
6
|
+
<Screen background="primary" padding="lg">
|
|
7
|
+
<View spacing="none">
|
|
8
|
+
<Text size="large" weight="bold" align="center">
|
|
9
|
+
Divider Examples
|
|
10
|
+
</Text>
|
|
11
|
+
|
|
12
|
+
{/* Horizontal Dividers */}
|
|
13
|
+
<View spacing="md">
|
|
14
|
+
<Text size="medium" weight="semibold">Horizontal Dividers</Text>
|
|
15
|
+
<View style={{ gap: 10 }}>
|
|
16
|
+
<Card variant="outlined" padding="medium">
|
|
17
|
+
<Text>Content above</Text>
|
|
18
|
+
<Divider orientation="horizontal" />
|
|
19
|
+
<Text>Content below</Text>
|
|
20
|
+
</Card>
|
|
21
|
+
<Card variant="outlined" padding="medium">
|
|
22
|
+
<Text>Content above</Text>
|
|
23
|
+
<Divider orientation="horizontal" variant="dashed" />
|
|
24
|
+
<Text>Content below</Text>
|
|
25
|
+
</Card>
|
|
26
|
+
<Card variant="outlined" padding="medium">
|
|
27
|
+
<Text>Content above</Text>
|
|
28
|
+
<Divider orientation="horizontal" variant="dotted" />
|
|
29
|
+
<Text>Content below</Text>
|
|
30
|
+
</Card>
|
|
31
|
+
</View>
|
|
32
|
+
</View>
|
|
33
|
+
|
|
34
|
+
{/* Divider Variants */}
|
|
35
|
+
<View spacing="md">
|
|
36
|
+
<Text size="medium" weight="semibold">Variants</Text>
|
|
37
|
+
<View style={{ gap: 10 }}>
|
|
38
|
+
<Card variant="outlined" padding="medium">
|
|
39
|
+
<Text>Solid divider</Text>
|
|
40
|
+
<Divider variant="solid" />
|
|
41
|
+
<Text>Content below</Text>
|
|
42
|
+
</Card>
|
|
43
|
+
<Card variant="outlined" padding="medium">
|
|
44
|
+
<Text>Dashed divider</Text>
|
|
45
|
+
<Divider variant="dashed" />
|
|
46
|
+
<Text>Content below</Text>
|
|
47
|
+
</Card>
|
|
48
|
+
<Card variant="outlined" padding="medium">
|
|
49
|
+
<Text>Dotted divider</Text>
|
|
50
|
+
<Divider variant="dotted" />
|
|
51
|
+
<Text>Content below</Text>
|
|
52
|
+
</Card>
|
|
53
|
+
</View>
|
|
54
|
+
</View>
|
|
55
|
+
|
|
56
|
+
{/* Divider Thickness */}
|
|
57
|
+
<View spacing="md">
|
|
58
|
+
<Text size="medium" weight="semibold">Thickness</Text>
|
|
59
|
+
<View style={{ gap: 10 }}>
|
|
60
|
+
<Card variant="outlined" padding="medium">
|
|
61
|
+
<Text>Thin divider</Text>
|
|
62
|
+
<Divider thickness="thin" />
|
|
63
|
+
<Text>Content below</Text>
|
|
64
|
+
</Card>
|
|
65
|
+
<Card variant="outlined" padding="medium">
|
|
66
|
+
<Text>Medium divider</Text>
|
|
67
|
+
<Divider thickness="medium" />
|
|
68
|
+
<Text>Content below</Text>
|
|
69
|
+
</Card>
|
|
70
|
+
<Card variant="outlined" padding="medium">
|
|
71
|
+
<Text>Thick divider</Text>
|
|
72
|
+
<Divider thickness="thick" />
|
|
73
|
+
<Text>Content below</Text>
|
|
74
|
+
</Card>
|
|
75
|
+
</View>
|
|
76
|
+
</View>
|
|
77
|
+
|
|
78
|
+
{/* Divider Intents */}
|
|
79
|
+
<View spacing="md">
|
|
80
|
+
<Text size="medium" weight="semibold">Intents</Text>
|
|
81
|
+
<View style={{ gap: 10 }}>
|
|
82
|
+
<Card variant="outlined" padding="medium">
|
|
83
|
+
<Text>Primary divider</Text>
|
|
84
|
+
<Divider intent="primary" />
|
|
85
|
+
<Text>Content below</Text>
|
|
86
|
+
</Card>
|
|
87
|
+
|
|
88
|
+
<Card variant="outlined" padding="medium">
|
|
89
|
+
<Text>Neutral divider</Text>
|
|
90
|
+
<Divider intent="neutral" />
|
|
91
|
+
<Text>Content below</Text>
|
|
92
|
+
</Card>
|
|
93
|
+
|
|
94
|
+
<Card variant="outlined" padding="medium">
|
|
95
|
+
<Text>Neutral divider</Text>
|
|
96
|
+
<Divider intent="neutral" />
|
|
97
|
+
<Text>Content below</Text>
|
|
98
|
+
</Card>
|
|
99
|
+
|
|
100
|
+
<Card variant="outlined" padding="medium">
|
|
101
|
+
<Text>Success divider</Text>
|
|
102
|
+
<Divider intent="success" />
|
|
103
|
+
<Text>Content below</Text>
|
|
104
|
+
</Card>
|
|
105
|
+
|
|
106
|
+
<Card variant="outlined" padding="medium">
|
|
107
|
+
<Text>Error divider</Text>
|
|
108
|
+
<Divider intent="error" />
|
|
109
|
+
<Text>Content below</Text>
|
|
110
|
+
</Card>
|
|
111
|
+
|
|
112
|
+
<Card variant="outlined" padding="medium">
|
|
113
|
+
<Text>Warning divider</Text>
|
|
114
|
+
<Divider intent="warning" />
|
|
115
|
+
<Text>Content below</Text>
|
|
116
|
+
</Card>
|
|
117
|
+
|
|
118
|
+
<Card variant="outlined" padding="medium">
|
|
119
|
+
<Text>Info divider</Text>
|
|
120
|
+
<Divider intent="info" />
|
|
121
|
+
<Text>Content below</Text>
|
|
122
|
+
</Card>
|
|
123
|
+
</View>
|
|
124
|
+
</View>
|
|
125
|
+
|
|
126
|
+
{/* Divider Spacing */}
|
|
127
|
+
<View spacing="md">
|
|
128
|
+
<Text size="medium" weight="semibold">Spacing</Text>
|
|
129
|
+
<View style={{ gap: 10 }}>
|
|
130
|
+
<Card variant="outlined" padding="medium">
|
|
131
|
+
<Text>No spacing</Text>
|
|
132
|
+
<Divider spacing="none" />
|
|
133
|
+
<Text>Content immediately after</Text>
|
|
134
|
+
</Card>
|
|
135
|
+
|
|
136
|
+
<Card variant="outlined" padding="medium">
|
|
137
|
+
<Text>Small spacing</Text>
|
|
138
|
+
<Divider spacing="small" />
|
|
139
|
+
<Text>Content with small spacing</Text>
|
|
140
|
+
</Card>
|
|
141
|
+
|
|
142
|
+
<Card variant="outlined" padding="medium">
|
|
143
|
+
<Text>Medium spacing</Text>
|
|
144
|
+
<Divider spacing="medium" />
|
|
145
|
+
<Text>Content with medium spacing</Text>
|
|
146
|
+
</Card>
|
|
147
|
+
|
|
148
|
+
<Card variant="outlined" padding="medium">
|
|
149
|
+
<Text>Large spacing</Text>
|
|
150
|
+
<Divider spacing="large" />
|
|
151
|
+
<Text>Content with large spacing</Text>
|
|
152
|
+
</Card>
|
|
153
|
+
</View>
|
|
154
|
+
</View>
|
|
155
|
+
|
|
156
|
+
{/* Divider with Content */}
|
|
157
|
+
<View spacing="md">
|
|
158
|
+
<Text size="medium" weight="semibold">With Content</Text>
|
|
159
|
+
<View style={{ gap: 10 }}>
|
|
160
|
+
<Card variant="outlined" padding="medium">
|
|
161
|
+
<Text>Content above</Text>
|
|
162
|
+
<Divider spacing="medium">
|
|
163
|
+
<Text size="small" color="secondary">OR</Text>
|
|
164
|
+
</Divider>
|
|
165
|
+
<Text>Content below</Text>
|
|
166
|
+
</Card>
|
|
167
|
+
|
|
168
|
+
<Card variant="outlined" padding="medium">
|
|
169
|
+
<Text>Content above</Text>
|
|
170
|
+
<Divider spacing="medium" intent="primary">
|
|
171
|
+
<Text size="small" color="primary" weight="semibold">SECTION</Text>
|
|
172
|
+
</Divider>
|
|
173
|
+
<Text>Content below</Text>
|
|
174
|
+
</Card>
|
|
175
|
+
</View>
|
|
176
|
+
</View>
|
|
177
|
+
|
|
178
|
+
{/* Vertical Dividers */}
|
|
179
|
+
<View spacing="md">
|
|
180
|
+
<Text size="medium" weight="semibold">Vertical Dividers</Text>
|
|
181
|
+
<Card variant="outlined" padding="medium">
|
|
182
|
+
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
183
|
+
<Text>Left</Text>
|
|
184
|
+
<Divider orientation="vertical" />
|
|
185
|
+
<Text>Center</Text>
|
|
186
|
+
<Divider orientation="vertical" variant="dashed" />
|
|
187
|
+
<Text>Right</Text>
|
|
188
|
+
</View>
|
|
189
|
+
</Card>
|
|
190
|
+
</View>
|
|
191
|
+
|
|
192
|
+
{/* Custom Length */}
|
|
193
|
+
<View spacing="md">
|
|
194
|
+
<Text size="medium" weight="semibold">Custom Length</Text>
|
|
195
|
+
<View style={{ gap: 10 }}>
|
|
196
|
+
<Card variant="outlined" padding="medium">
|
|
197
|
+
<Text>Auto length</Text>
|
|
198
|
+
<Divider length="auto" />
|
|
199
|
+
<Text>Content below</Text>
|
|
200
|
+
</Card>
|
|
201
|
+
|
|
202
|
+
<Card variant="outlined" padding="medium">
|
|
203
|
+
<Text>Full length</Text>
|
|
204
|
+
<Divider length="full" />
|
|
205
|
+
<Text>Content below</Text>
|
|
206
|
+
</Card>
|
|
207
|
+
|
|
208
|
+
<Card variant="outlined" padding="medium">
|
|
209
|
+
<Text>50% length</Text>
|
|
210
|
+
<Divider length={50} />
|
|
211
|
+
<Text>Content below</Text>
|
|
212
|
+
</Card>
|
|
213
|
+
</View>
|
|
214
|
+
</View>
|
|
215
|
+
</View>
|
|
216
|
+
</Screen>
|
|
217
|
+
);
|
|
218
218
|
};
|