@idealyst/components 1.0.99 → 1.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/package.json +4 -4
- package/src/Accordion/Accordion.native.tsx +15 -0
- package/src/Accordion/Accordion.styles.tsx +17 -0
- package/src/Accordion/Accordion.web.tsx +15 -0
- package/src/Accordion/types.ts +2 -1
- package/src/Button/Button.native.tsx +55 -2
- package/src/Button/Button.styles.tsx +22 -0
- package/src/Button/Button.web.tsx +6 -2
- package/src/Button/types.ts +15 -0
- package/src/Card/Card.native.tsx +18 -5
- package/src/Card/Card.styles.tsx +123 -131
- package/src/Card/Card.web.tsx +17 -4
- package/src/Card/types.ts +3 -8
- package/src/Checkbox/Checkbox.native.tsx +7 -0
- package/src/Checkbox/Checkbox.styles.tsx +11 -0
- package/src/Checkbox/Checkbox.web.tsx +7 -0
- package/src/Checkbox/types.ts +2 -1
- package/src/Input/Input.native.tsx +7 -0
- package/src/Input/Input.styles.tsx +9 -0
- package/src/Input/Input.web.tsx +7 -0
- package/src/Input/types.ts +2 -1
- package/src/List/List.native.tsx +15 -0
- package/src/List/List.styles.tsx +17 -0
- package/src/List/List.web.tsx +15 -0
- package/src/List/types.ts +2 -1
- package/src/Pressable/Pressable.native.tsx +13 -1
- package/src/Pressable/Pressable.styles.tsx +24 -0
- package/src/Pressable/Pressable.web.tsx +24 -6
- package/src/Pressable/types.ts +3 -2
- package/src/RadioButton/RadioButton.native.tsx +7 -0
- package/src/RadioButton/RadioButton.styles.tsx +9 -0
- package/src/RadioButton/RadioButton.web.tsx +7 -0
- package/src/RadioButton/types.ts +2 -1
- package/src/Screen/Screen.native.tsx +25 -12
- package/src/Screen/Screen.styles.tsx +28 -16
- package/src/Screen/Screen.web.tsx +16 -3
- package/src/Screen/types.ts +4 -8
- package/src/Select/Select.native.tsx +7 -0
- package/src/Select/Select.styles.tsx +11 -0
- package/src/Select/Select.web.tsx +7 -0
- package/src/Select/types.ts +2 -1
- package/src/Slider/Slider.native.tsx +7 -0
- package/src/Slider/Slider.styles.tsx +11 -0
- package/src/Slider/Slider.web.tsx +7 -0
- package/src/Slider/types.ts +2 -1
- package/src/Switch/Switch.native.tsx +7 -0
- package/src/Switch/Switch.styles.tsx +11 -0
- package/src/Switch/Switch.web.tsx +7 -0
- package/src/Switch/types.ts +2 -1
- package/src/TabBar/TabBar.native.tsx +19 -1
- package/src/TabBar/TabBar.styles.tsx +17 -0
- package/src/TabBar/TabBar.web.tsx +20 -1
- package/src/TabBar/types.ts +2 -1
- package/src/Table/Table.native.tsx +15 -0
- package/src/Table/Table.styles.tsx +27 -0
- package/src/Table/Table.web.tsx +15 -0
- package/src/Table/types.ts +2 -1
- package/src/Text/Text.native.tsx +14 -3
- package/src/Text/Text.styles.tsx +36 -12
- package/src/Text/Text.web.tsx +15 -4
- package/src/Text/types.ts +15 -4
- package/src/TextArea/TextArea.native.tsx +7 -0
- package/src/TextArea/TextArea.styles.tsx +11 -0
- package/src/TextArea/TextArea.web.tsx +7 -0
- package/src/TextArea/types.ts +2 -1
- package/src/View/View.native.tsx +35 -12
- package/src/View/View.styles.tsx +78 -75
- package/src/View/View.web.tsx +18 -9
- package/src/View/types.ts +8 -23
- package/src/examples/AccordionExamples.tsx +32 -32
- package/src/examples/AlertExamples.tsx +42 -42
- package/src/examples/AvatarExamples.tsx +18 -18
- package/src/examples/BadgeExamples.tsx +30 -30
- package/src/examples/BreadcrumbExamples.tsx +64 -64
- package/src/examples/ButtonExamples.tsx +128 -16
- package/src/examples/CardExamples.tsx +28 -28
- package/src/examples/CheckboxExamples.tsx +25 -25
- package/src/examples/ChipExamples.tsx +17 -17
- package/src/examples/DialogExamples.tsx +17 -17
- package/src/examples/DividerExamples.tsx +21 -21
- package/src/examples/IconExamples.tsx +113 -113
- package/src/examples/ImageExamples.tsx +34 -34
- package/src/examples/InputExamples.tsx +20 -20
- package/src/examples/LinkExamples.tsx +23 -23
- package/src/examples/ListExamples.tsx +42 -42
- package/src/examples/MenuExamples.tsx +15 -15
- package/src/examples/PopoverExamples.tsx +23 -23
- package/src/examples/ProgressExamples.tsx +41 -41
- package/src/examples/RadioButtonExamples.tsx +21 -21
- package/src/examples/SVGImageExamples.tsx +25 -25
- package/src/examples/ScreenExamples.tsx +41 -41
- package/src/examples/SelectExamples.tsx +59 -59
- package/src/examples/SkeletonExamples.tsx +30 -30
- package/src/examples/SliderExamples.tsx +54 -54
- package/src/examples/SwitchExamples.tsx +20 -20
- package/src/examples/TabBarExamples.tsx +26 -26
- package/src/examples/TableExamples.tsx +36 -36
- package/src/examples/TextAreaExamples.tsx +25 -25
- package/src/examples/TextExamples.tsx +61 -66
- package/src/examples/ThemeExtensionExamples.tsx +12 -12
- package/src/examples/TooltipExamples.tsx +21 -21
- package/src/examples/VideoExamples.tsx +28 -28
- package/src/examples/ViewExamples.tsx +59 -59
- package/src/index.ts +4 -0
- package/src/utils/buildViewStyleVariants.ts +148 -0
- package/src/utils/viewStyleProps.ts +63 -0
|
@@ -10,15 +10,15 @@ export const CheckboxExamples = () => {
|
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
12
|
<Screen background="primary" padding="lg">
|
|
13
|
-
<View
|
|
14
|
-
<Text
|
|
13
|
+
<View gap="xl">
|
|
14
|
+
<Text typography="h4" align="center">
|
|
15
15
|
Checkbox Examples
|
|
16
16
|
</Text>
|
|
17
17
|
|
|
18
18
|
{/* Basic Checkbox */}
|
|
19
|
-
<View
|
|
20
|
-
<Text
|
|
21
|
-
<View
|
|
19
|
+
<View gap="md">
|
|
20
|
+
<Text typography="subtitle1">Basic Checkbox</Text>
|
|
21
|
+
<View gap="sm" style={{ gap: 10 }}>
|
|
22
22
|
<Checkbox
|
|
23
23
|
checked={basicChecked}
|
|
24
24
|
onCheckedChange={setBasicChecked}
|
|
@@ -38,9 +38,9 @@ export const CheckboxExamples = () => {
|
|
|
38
38
|
</View>
|
|
39
39
|
|
|
40
40
|
{/* Checkbox Sizes */}
|
|
41
|
-
<View
|
|
42
|
-
<Text
|
|
43
|
-
<View
|
|
41
|
+
<View gap="md">
|
|
42
|
+
<Text typography="subtitle1">Sizes</Text>
|
|
43
|
+
<View gap="sm" style={{ gap: 10 }}>
|
|
44
44
|
<Checkbox
|
|
45
45
|
size="sm"
|
|
46
46
|
checked={true}
|
|
@@ -63,9 +63,9 @@ export const CheckboxExamples = () => {
|
|
|
63
63
|
</View>
|
|
64
64
|
|
|
65
65
|
{/* Checkbox Intents */}
|
|
66
|
-
<View
|
|
67
|
-
<Text
|
|
68
|
-
<View
|
|
66
|
+
<View gap="md">
|
|
67
|
+
<Text typography="subtitle1">Intents</Text>
|
|
68
|
+
<View gap="sm" style={{ gap: 10 }}>
|
|
69
69
|
<Checkbox
|
|
70
70
|
intent="primary"
|
|
71
71
|
checked={primaryChecked}
|
|
@@ -106,9 +106,9 @@ export const CheckboxExamples = () => {
|
|
|
106
106
|
</View>
|
|
107
107
|
|
|
108
108
|
{/* Checkbox Variants */}
|
|
109
|
-
<View
|
|
110
|
-
<Text
|
|
111
|
-
<View
|
|
109
|
+
<View gap="md">
|
|
110
|
+
<Text typography="subtitle1">Variants</Text>
|
|
111
|
+
<View gap="sm" style={{ gap: 10 }}>
|
|
112
112
|
<Checkbox
|
|
113
113
|
variant="default"
|
|
114
114
|
checked={true}
|
|
@@ -125,9 +125,9 @@ export const CheckboxExamples = () => {
|
|
|
125
125
|
</View>
|
|
126
126
|
|
|
127
127
|
{/* Checkbox States */}
|
|
128
|
-
<View
|
|
129
|
-
<Text
|
|
130
|
-
<View
|
|
128
|
+
<View gap="md">
|
|
129
|
+
<Text typography="subtitle1">States</Text>
|
|
130
|
+
<View gap="sm" style={{ gap: 10 }}>
|
|
131
131
|
<Checkbox
|
|
132
132
|
checked={false}
|
|
133
133
|
onCheckedChange={() => {}}
|
|
@@ -160,9 +160,9 @@ export const CheckboxExamples = () => {
|
|
|
160
160
|
</View>
|
|
161
161
|
|
|
162
162
|
{/* Checkbox with Custom Children */}
|
|
163
|
-
<View
|
|
164
|
-
<Text
|
|
165
|
-
<View
|
|
163
|
+
<View gap="md">
|
|
164
|
+
<Text typography="subtitle1">Custom Content</Text>
|
|
165
|
+
<View gap="sm" style={{ gap: 10 }}>
|
|
166
166
|
<Checkbox
|
|
167
167
|
checked={true}
|
|
168
168
|
onCheckedChange={() => {}}
|
|
@@ -175,9 +175,9 @@ export const CheckboxExamples = () => {
|
|
|
175
175
|
checked={false}
|
|
176
176
|
onCheckedChange={() => {}}
|
|
177
177
|
>
|
|
178
|
-
<View>
|
|
178
|
+
<View gap="sm">
|
|
179
179
|
<Text weight="semibold">Multi-line Label</Text>
|
|
180
|
-
<Text
|
|
180
|
+
<Text typography="caption" color="secondary">
|
|
181
181
|
This checkbox has a more complex label with multiple lines
|
|
182
182
|
</Text>
|
|
183
183
|
</View>
|
|
@@ -186,9 +186,9 @@ export const CheckboxExamples = () => {
|
|
|
186
186
|
</View>
|
|
187
187
|
|
|
188
188
|
{/* Checkbox with Helper Text and Errors */}
|
|
189
|
-
<View
|
|
190
|
-
<Text
|
|
191
|
-
<View
|
|
189
|
+
<View gap="md">
|
|
190
|
+
<Text typography="subtitle1">With Helper Text</Text>
|
|
191
|
+
<View gap="sm" style={{ gap: 10 }}>
|
|
192
192
|
<Checkbox
|
|
193
193
|
checked={true}
|
|
194
194
|
onCheckedChange={() => {}}
|
|
@@ -21,11 +21,11 @@ export const ChipExamples = () => {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<Screen background="primary" safeArea>
|
|
24
|
-
<View
|
|
25
|
-
<Text
|
|
24
|
+
<View gap="lg" style={{ maxWidth: 800, width: '100%', paddingHorizontal: 16, marginHorizontal: 'auto' }}>
|
|
25
|
+
<Text typography="h3">Chip Examples</Text>
|
|
26
26
|
|
|
27
27
|
<Divider spacing="md" />
|
|
28
|
-
<Text
|
|
28
|
+
<Text typography="h5">Basic Chips</Text>
|
|
29
29
|
|
|
30
30
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
31
31
|
<Chip label="Default" />
|
|
@@ -37,23 +37,23 @@ export const ChipExamples = () => {
|
|
|
37
37
|
</View>
|
|
38
38
|
|
|
39
39
|
<Divider spacing="md" />
|
|
40
|
-
<Text
|
|
40
|
+
<Text typography="h5">Variants</Text>
|
|
41
41
|
|
|
42
|
-
<Text
|
|
42
|
+
<Text typography="subtitle1">Filled (Default)</Text>
|
|
43
43
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
44
44
|
<Chip label="Filled Primary" type="filled" intent="primary" />
|
|
45
45
|
<Chip label="Filled Success" type="filled" intent="success" />
|
|
46
46
|
<Chip label="Filled Error" type="filled" intent="error" />
|
|
47
47
|
</View>
|
|
48
48
|
|
|
49
|
-
<Text
|
|
49
|
+
<Text typography="subtitle1">Outlined</Text>
|
|
50
50
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
51
51
|
<Chip label="Outlined Primary" type="outlined" intent="primary" />
|
|
52
52
|
<Chip label="Outlined Success" type="outlined" intent="success" />
|
|
53
53
|
<Chip label="Outlined Error" type="outlined" intent="error" />
|
|
54
54
|
</View>
|
|
55
55
|
|
|
56
|
-
<Text
|
|
56
|
+
<Text typography="subtitle1">Soft</Text>
|
|
57
57
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
58
58
|
<Chip label="Soft Primary" type="soft" intent="primary" />
|
|
59
59
|
<Chip label="Soft Success" type="soft" intent="success" />
|
|
@@ -61,7 +61,7 @@ export const ChipExamples = () => {
|
|
|
61
61
|
</View>
|
|
62
62
|
|
|
63
63
|
<Divider spacing="md" />
|
|
64
|
-
<Text
|
|
64
|
+
<Text typography="h5">Sizes</Text>
|
|
65
65
|
|
|
66
66
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8, alignItems: 'center' }}>
|
|
67
67
|
<Chip label="Small" size="sm" />
|
|
@@ -70,7 +70,7 @@ export const ChipExamples = () => {
|
|
|
70
70
|
</View>
|
|
71
71
|
|
|
72
72
|
<Divider spacing="md" />
|
|
73
|
-
<Text
|
|
73
|
+
<Text typography="h5">With Icons</Text>
|
|
74
74
|
|
|
75
75
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
76
76
|
<Chip label="Star" icon="star" />
|
|
@@ -80,7 +80,7 @@ export const ChipExamples = () => {
|
|
|
80
80
|
</View>
|
|
81
81
|
|
|
82
82
|
<Divider spacing="md" />
|
|
83
|
-
<Text
|
|
83
|
+
<Text typography="h5">Deletable Chips</Text>
|
|
84
84
|
|
|
85
85
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
86
86
|
{tags.map(tag => (
|
|
@@ -94,10 +94,10 @@ export const ChipExamples = () => {
|
|
|
94
94
|
/>
|
|
95
95
|
))}
|
|
96
96
|
</View>
|
|
97
|
-
<Text
|
|
97
|
+
<Text typography="caption" color="secondary">Click the X to remove tags</Text>
|
|
98
98
|
|
|
99
99
|
<Divider spacing="md" />
|
|
100
|
-
<Text
|
|
100
|
+
<Text typography="h5">Selectable Chips</Text>
|
|
101
101
|
|
|
102
102
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
103
103
|
{['Option 1', 'Option 2', 'Option 3', 'Option 4'].map(option => (
|
|
@@ -112,12 +112,12 @@ export const ChipExamples = () => {
|
|
|
112
112
|
/>
|
|
113
113
|
))}
|
|
114
114
|
</View>
|
|
115
|
-
<Text
|
|
115
|
+
<Text typography="caption" color="secondary">
|
|
116
116
|
Selected: {Array.from(selectedChips).join(', ') || 'None'}
|
|
117
117
|
</Text>
|
|
118
118
|
|
|
119
119
|
<Divider spacing="md" />
|
|
120
|
-
<Text
|
|
120
|
+
<Text typography="h5">Clickable Chips</Text>
|
|
121
121
|
|
|
122
122
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
123
123
|
<Chip
|
|
@@ -134,7 +134,7 @@ export const ChipExamples = () => {
|
|
|
134
134
|
</View>
|
|
135
135
|
|
|
136
136
|
<Divider spacing="md" />
|
|
137
|
-
<Text
|
|
137
|
+
<Text typography="h5">Disabled State</Text>
|
|
138
138
|
|
|
139
139
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
140
140
|
<Chip label="Disabled" disabled />
|
|
@@ -144,7 +144,7 @@ export const ChipExamples = () => {
|
|
|
144
144
|
</View>
|
|
145
145
|
|
|
146
146
|
<Divider spacing="md" />
|
|
147
|
-
<Text
|
|
147
|
+
<Text typography="h5">Filter Example</Text>
|
|
148
148
|
|
|
149
149
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
150
150
|
<Chip
|
|
@@ -182,7 +182,7 @@ export const ChipExamples = () => {
|
|
|
182
182
|
</View>
|
|
183
183
|
|
|
184
184
|
<Divider spacing="md" />
|
|
185
|
-
<Text
|
|
185
|
+
<Text typography="h5">Category Tags</Text>
|
|
186
186
|
|
|
187
187
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
|
|
188
188
|
<Chip label="Design" type="soft" intent="primary" size="sm" />
|
|
@@ -9,14 +9,14 @@ export const DialogExamples = () => {
|
|
|
9
9
|
|
|
10
10
|
return (
|
|
11
11
|
<Screen background="primary" padding="lg">
|
|
12
|
-
<View
|
|
13
|
-
<Text
|
|
12
|
+
<View gap="xl">
|
|
13
|
+
<Text typography="h4" align="center">
|
|
14
14
|
Dialog Examples
|
|
15
15
|
</Text>
|
|
16
16
|
|
|
17
17
|
{/* Basic Dialog */}
|
|
18
|
-
<View
|
|
19
|
-
<Text
|
|
18
|
+
<View gap="md">
|
|
19
|
+
<Text typography="subtitle1">Basic Dialog</Text>
|
|
20
20
|
<Button onPress={() => setBasicOpen(true)}>
|
|
21
21
|
Open Basic Dialog
|
|
22
22
|
</Button>
|
|
@@ -26,7 +26,7 @@ export const DialogExamples = () => {
|
|
|
26
26
|
title="Basic Dialog"
|
|
27
27
|
>
|
|
28
28
|
<Text>This is a basic dialog with a title and some content.</Text>
|
|
29
|
-
<View
|
|
29
|
+
<View gap="md" style={{ marginTop: 16 }}>
|
|
30
30
|
<Button
|
|
31
31
|
type="contained"
|
|
32
32
|
intent="primary"
|
|
@@ -39,8 +39,8 @@ export const DialogExamples = () => {
|
|
|
39
39
|
</View>
|
|
40
40
|
|
|
41
41
|
{/* Dialog Variants */}
|
|
42
|
-
<View
|
|
43
|
-
<Text
|
|
42
|
+
<View gap="md">
|
|
43
|
+
<Text typography="subtitle1">Dialog Variants</Text>
|
|
44
44
|
<View style={{ flexDirection: 'row', gap: 12, flexWrap: 'wrap' }}>
|
|
45
45
|
<Button onPress={() => setAlertOpen(true)}>
|
|
46
46
|
Alert Dialog
|
|
@@ -58,7 +58,7 @@ export const DialogExamples = () => {
|
|
|
58
58
|
type="alert"
|
|
59
59
|
>
|
|
60
60
|
<Text>This is an alert dialog. It has a top border to indicate importance.</Text>
|
|
61
|
-
<View
|
|
61
|
+
<View gap="md" style={{ marginTop: 16 }}>
|
|
62
62
|
<Button
|
|
63
63
|
type="contained"
|
|
64
64
|
intent="primary"
|
|
@@ -98,8 +98,8 @@ export const DialogExamples = () => {
|
|
|
98
98
|
</View>
|
|
99
99
|
|
|
100
100
|
{/* Dialog Sizes */}
|
|
101
|
-
<View
|
|
102
|
-
<Text
|
|
101
|
+
<View gap="md">
|
|
102
|
+
<Text typography="subtitle1">Dialog Sizes</Text>
|
|
103
103
|
<View style={{ flexDirection: 'row', gap: 12, flexWrap: 'wrap' }}>
|
|
104
104
|
{['sm', 'md', 'lg'].map((size) => (
|
|
105
105
|
<Button
|
|
@@ -121,7 +121,7 @@ export const DialogExamples = () => {
|
|
|
121
121
|
<Text>
|
|
122
122
|
This is a {sizesOpen} dialog. The width and maximum width are adjusted based on the size prop.
|
|
123
123
|
</Text>
|
|
124
|
-
<View
|
|
124
|
+
<View gap="md" style={{ marginTop: 16 }}>
|
|
125
125
|
<Button
|
|
126
126
|
type="contained"
|
|
127
127
|
intent="primary"
|
|
@@ -136,18 +136,18 @@ export const DialogExamples = () => {
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
{/* Dialog Options */}
|
|
139
|
-
<View
|
|
140
|
-
<Text
|
|
141
|
-
<Text
|
|
139
|
+
<View gap="md">
|
|
140
|
+
<Text typography="subtitle1">Dialog Options</Text>
|
|
141
|
+
<Text typography="caption" color="secondary">
|
|
142
142
|
• Close on backdrop click: Enabled by default, disabled for confirmation dialog above
|
|
143
143
|
</Text>
|
|
144
|
-
<Text
|
|
144
|
+
<Text typography="caption" color="secondary">
|
|
145
145
|
• Close on escape key: Enabled by default (web only)
|
|
146
146
|
</Text>
|
|
147
|
-
<Text
|
|
147
|
+
<Text typography="caption" color="secondary">
|
|
148
148
|
• Hardware back button: Handled automatically (native only)
|
|
149
149
|
</Text>
|
|
150
|
-
<Text
|
|
150
|
+
<Text typography="caption" color="secondary">
|
|
151
151
|
• Focus management: Automatic focus trapping and restoration (web only)
|
|
152
152
|
</Text>
|
|
153
153
|
</View>
|
|
@@ -4,14 +4,14 @@ import { Screen, View, Text, Divider, Card } from '../index';
|
|
|
4
4
|
export const DividerExamples = () => {
|
|
5
5
|
return (
|
|
6
6
|
<Screen background="primary" padding="lg">
|
|
7
|
-
<View
|
|
8
|
-
<Text
|
|
7
|
+
<View gap="xl">
|
|
8
|
+
<Text typography="h4" align="center">
|
|
9
9
|
Divider Examples
|
|
10
10
|
</Text>
|
|
11
11
|
|
|
12
12
|
{/* Horizontal Dividers */}
|
|
13
|
-
<View
|
|
14
|
-
<Text
|
|
13
|
+
<View gap="md">
|
|
14
|
+
<Text typography="subtitle1">Horizontal Dividers</Text>
|
|
15
15
|
<View style={{ gap: 10 }}>
|
|
16
16
|
<Card type="outlined" padding="md">
|
|
17
17
|
<Text>Content above</Text>
|
|
@@ -32,8 +32,8 @@ export const DividerExamples = () => {
|
|
|
32
32
|
</View>
|
|
33
33
|
|
|
34
34
|
{/* Divider Variants */}
|
|
35
|
-
<View
|
|
36
|
-
<Text
|
|
35
|
+
<View gap="md">
|
|
36
|
+
<Text typography="subtitle1">Variants</Text>
|
|
37
37
|
<View style={{ gap: 10 }}>
|
|
38
38
|
<Card type="outlined" padding="md">
|
|
39
39
|
<Text>Solid divider</Text>
|
|
@@ -54,8 +54,8 @@ export const DividerExamples = () => {
|
|
|
54
54
|
</View>
|
|
55
55
|
|
|
56
56
|
{/* Divider Thickness */}
|
|
57
|
-
<View
|
|
58
|
-
<Text
|
|
57
|
+
<View gap="md">
|
|
58
|
+
<Text typography="subtitle1">Thickness</Text>
|
|
59
59
|
<View style={{ gap: 10 }}>
|
|
60
60
|
<Card type="outlined" padding="md">
|
|
61
61
|
<Text>Thin divider</Text>
|
|
@@ -76,8 +76,8 @@ export const DividerExamples = () => {
|
|
|
76
76
|
</View>
|
|
77
77
|
|
|
78
78
|
{/* Divider Intents */}
|
|
79
|
-
<View
|
|
80
|
-
<Text
|
|
79
|
+
<View gap="md">
|
|
80
|
+
<Text typography="subtitle1">Intents</Text>
|
|
81
81
|
<View style={{ gap: 10 }}>
|
|
82
82
|
<Card type="outlined" padding="md">
|
|
83
83
|
<Text>Primary divider</Text>
|
|
@@ -124,12 +124,12 @@ export const DividerExamples = () => {
|
|
|
124
124
|
</View>
|
|
125
125
|
|
|
126
126
|
{/* Divider Spacing */}
|
|
127
|
-
<View
|
|
128
|
-
<Text
|
|
127
|
+
<View gap="md">
|
|
128
|
+
<Text typography="subtitle1">Spacing</Text>
|
|
129
129
|
<View style={{ gap: 10 }}>
|
|
130
130
|
<Card type="outlined" padding="md">
|
|
131
131
|
<Text>No spacing</Text>
|
|
132
|
-
<Divider
|
|
132
|
+
<Divider />
|
|
133
133
|
<Text>Content immediately after</Text>
|
|
134
134
|
</Card>
|
|
135
135
|
|
|
@@ -154,13 +154,13 @@ export const DividerExamples = () => {
|
|
|
154
154
|
</View>
|
|
155
155
|
|
|
156
156
|
{/* Divider with Content */}
|
|
157
|
-
<View
|
|
158
|
-
<Text
|
|
157
|
+
<View gap="md">
|
|
158
|
+
<Text typography="subtitle1">With Content</Text>
|
|
159
159
|
<View style={{ gap: 10 }}>
|
|
160
160
|
<Card type="outlined" padding="md">
|
|
161
161
|
<Text>Content above</Text>
|
|
162
162
|
<Divider spacing="md">
|
|
163
|
-
<Text
|
|
163
|
+
<Text typography="caption" color="secondary">OR</Text>
|
|
164
164
|
</Divider>
|
|
165
165
|
<Text>Content below</Text>
|
|
166
166
|
</Card>
|
|
@@ -168,7 +168,7 @@ export const DividerExamples = () => {
|
|
|
168
168
|
<Card type="outlined" padding="md">
|
|
169
169
|
<Text>Content above</Text>
|
|
170
170
|
<Divider spacing="md" intent="primary">
|
|
171
|
-
<Text
|
|
171
|
+
<Text typography="subtitle2" color="primary">SECTION</Text>
|
|
172
172
|
</Divider>
|
|
173
173
|
<Text>Content below</Text>
|
|
174
174
|
</Card>
|
|
@@ -176,8 +176,8 @@ export const DividerExamples = () => {
|
|
|
176
176
|
</View>
|
|
177
177
|
|
|
178
178
|
{/* Vertical Dividers */}
|
|
179
|
-
<View
|
|
180
|
-
<Text
|
|
179
|
+
<View gap="md">
|
|
180
|
+
<Text typography="subtitle1">Vertical Dividers</Text>
|
|
181
181
|
<Card type="outlined" padding="md">
|
|
182
182
|
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
183
183
|
<Text>Left</Text>
|
|
@@ -190,8 +190,8 @@ export const DividerExamples = () => {
|
|
|
190
190
|
</View>
|
|
191
191
|
|
|
192
192
|
{/* Custom Length */}
|
|
193
|
-
<View
|
|
194
|
-
<Text
|
|
193
|
+
<View gap="md">
|
|
194
|
+
<Text typography="subtitle1">Custom Length</Text>
|
|
195
195
|
<View style={{ gap: 10 }}>
|
|
196
196
|
<Card type="outlined" padding="md">
|
|
197
197
|
<Text>Auto length</Text>
|