@idealyst/components 1.0.99 → 1.1.1

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.
Files changed (106) hide show
  1. package/package.json +4 -4
  2. package/src/Accordion/Accordion.native.tsx +15 -0
  3. package/src/Accordion/Accordion.styles.tsx +17 -0
  4. package/src/Accordion/Accordion.web.tsx +15 -0
  5. package/src/Accordion/types.ts +2 -1
  6. package/src/Button/Button.native.tsx +55 -2
  7. package/src/Button/Button.styles.tsx +22 -0
  8. package/src/Button/Button.web.tsx +6 -2
  9. package/src/Button/types.ts +15 -0
  10. package/src/Card/Card.native.tsx +18 -5
  11. package/src/Card/Card.styles.tsx +123 -131
  12. package/src/Card/Card.web.tsx +17 -4
  13. package/src/Card/types.ts +3 -8
  14. package/src/Checkbox/Checkbox.native.tsx +7 -0
  15. package/src/Checkbox/Checkbox.styles.tsx +11 -0
  16. package/src/Checkbox/Checkbox.web.tsx +7 -0
  17. package/src/Checkbox/types.ts +2 -1
  18. package/src/Input/Input.native.tsx +7 -0
  19. package/src/Input/Input.styles.tsx +9 -0
  20. package/src/Input/Input.web.tsx +7 -0
  21. package/src/Input/types.ts +2 -1
  22. package/src/List/List.native.tsx +15 -0
  23. package/src/List/List.styles.tsx +17 -0
  24. package/src/List/List.web.tsx +15 -0
  25. package/src/List/types.ts +2 -1
  26. package/src/Pressable/Pressable.native.tsx +13 -1
  27. package/src/Pressable/Pressable.styles.tsx +24 -0
  28. package/src/Pressable/Pressable.web.tsx +24 -6
  29. package/src/Pressable/types.ts +3 -2
  30. package/src/RadioButton/RadioButton.native.tsx +7 -0
  31. package/src/RadioButton/RadioButton.styles.tsx +9 -0
  32. package/src/RadioButton/RadioButton.web.tsx +7 -0
  33. package/src/RadioButton/types.ts +2 -1
  34. package/src/Screen/Screen.native.tsx +25 -12
  35. package/src/Screen/Screen.styles.tsx +28 -16
  36. package/src/Screen/Screen.web.tsx +16 -3
  37. package/src/Screen/types.ts +4 -8
  38. package/src/Select/Select.native.tsx +7 -0
  39. package/src/Select/Select.styles.tsx +11 -0
  40. package/src/Select/Select.web.tsx +7 -0
  41. package/src/Select/types.ts +2 -1
  42. package/src/Slider/Slider.native.tsx +7 -0
  43. package/src/Slider/Slider.styles.tsx +11 -0
  44. package/src/Slider/Slider.web.tsx +7 -0
  45. package/src/Slider/types.ts +2 -1
  46. package/src/Switch/Switch.native.tsx +7 -0
  47. package/src/Switch/Switch.styles.tsx +11 -0
  48. package/src/Switch/Switch.web.tsx +7 -0
  49. package/src/Switch/types.ts +2 -1
  50. package/src/TabBar/TabBar.native.tsx +19 -1
  51. package/src/TabBar/TabBar.styles.tsx +17 -0
  52. package/src/TabBar/TabBar.web.tsx +20 -1
  53. package/src/TabBar/types.ts +2 -1
  54. package/src/Table/Table.native.tsx +15 -0
  55. package/src/Table/Table.styles.tsx +27 -0
  56. package/src/Table/Table.web.tsx +15 -0
  57. package/src/Table/types.ts +2 -1
  58. package/src/Text/Text.native.tsx +14 -3
  59. package/src/Text/Text.styles.tsx +36 -12
  60. package/src/Text/Text.web.tsx +15 -4
  61. package/src/Text/types.ts +15 -4
  62. package/src/TextArea/TextArea.native.tsx +7 -0
  63. package/src/TextArea/TextArea.styles.tsx +11 -0
  64. package/src/TextArea/TextArea.web.tsx +7 -0
  65. package/src/TextArea/types.ts +2 -1
  66. package/src/View/View.native.tsx +35 -12
  67. package/src/View/View.styles.tsx +78 -75
  68. package/src/View/View.web.tsx +18 -9
  69. package/src/View/types.ts +8 -23
  70. package/src/examples/AccordionExamples.tsx +32 -32
  71. package/src/examples/AlertExamples.tsx +42 -42
  72. package/src/examples/AvatarExamples.tsx +18 -18
  73. package/src/examples/BadgeExamples.tsx +30 -30
  74. package/src/examples/BreadcrumbExamples.tsx +64 -64
  75. package/src/examples/ButtonExamples.tsx +128 -16
  76. package/src/examples/CardExamples.tsx +28 -28
  77. package/src/examples/CheckboxExamples.tsx +25 -25
  78. package/src/examples/ChipExamples.tsx +17 -17
  79. package/src/examples/DialogExamples.tsx +17 -17
  80. package/src/examples/DividerExamples.tsx +21 -21
  81. package/src/examples/IconExamples.tsx +113 -113
  82. package/src/examples/ImageExamples.tsx +34 -34
  83. package/src/examples/InputExamples.tsx +20 -20
  84. package/src/examples/LinkExamples.tsx +23 -23
  85. package/src/examples/ListExamples.tsx +42 -42
  86. package/src/examples/MenuExamples.tsx +15 -15
  87. package/src/examples/PopoverExamples.tsx +23 -23
  88. package/src/examples/ProgressExamples.tsx +41 -41
  89. package/src/examples/RadioButtonExamples.tsx +21 -21
  90. package/src/examples/SVGImageExamples.tsx +25 -25
  91. package/src/examples/ScreenExamples.tsx +41 -41
  92. package/src/examples/SelectExamples.tsx +59 -59
  93. package/src/examples/SkeletonExamples.tsx +30 -30
  94. package/src/examples/SliderExamples.tsx +54 -54
  95. package/src/examples/SwitchExamples.tsx +20 -20
  96. package/src/examples/TabBarExamples.tsx +26 -26
  97. package/src/examples/TableExamples.tsx +36 -36
  98. package/src/examples/TextAreaExamples.tsx +25 -25
  99. package/src/examples/TextExamples.tsx +61 -66
  100. package/src/examples/ThemeExtensionExamples.tsx +12 -12
  101. package/src/examples/TooltipExamples.tsx +21 -21
  102. package/src/examples/VideoExamples.tsx +28 -28
  103. package/src/examples/ViewExamples.tsx +59 -59
  104. package/src/index.ts +4 -0
  105. package/src/utils/buildViewStyleVariants.ts +148 -0
  106. 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 spacing="none">
14
- <Text size="lg" weight="bold" align="center">
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 spacing="md">
20
- <Text size="md" weight="semibold">Basic Checkbox</Text>
21
- <View spacing="sm" style={{ gap: 10 }}>
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 spacing="md">
42
- <Text size="md" weight="semibold">Sizes</Text>
43
- <View spacing="sm" style={{ gap: 10 }}>
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 spacing="md">
67
- <Text size="md" weight="semibold">Intents</Text>
68
- <View spacing="sm" style={{ gap: 10 }}>
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 spacing="md">
110
- <Text size="md" weight="semibold">Variants</Text>
111
- <View spacing="sm" style={{ gap: 10 }}>
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 spacing="md">
129
- <Text size="md" weight="semibold">States</Text>
130
- <View spacing="sm" style={{ gap: 10 }}>
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 spacing="md">
164
- <Text size="md" weight="semibold">Custom Content</Text>
165
- <View spacing="sm" style={{ gap: 10 }}>
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 size="sm" color="secondary">
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 spacing="md">
190
- <Text size="md" weight="semibold">With Helper Text</Text>
191
- <View spacing="sm" style={{ gap: 10 }}>
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 spacing="lg" style={{ maxWidth: 800, width: '100%', paddingHorizontal: 16, marginHorizontal: 'auto' }}>
25
- <Text size="xl" weight="bold">Chip Examples</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 size="lg" weight="semibold">Basic Chips</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 size="lg" weight="semibold">Variants</Text>
40
+ <Text typography="h5">Variants</Text>
41
41
 
42
- <Text size="md" weight="semibold">Filled (Default)</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 size="md" weight="semibold">Outlined</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 size="md" weight="semibold">Soft</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 size="lg" weight="semibold">Sizes</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 size="lg" weight="semibold">With Icons</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 size="lg" weight="semibold">Deletable Chips</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 size="sm" color="secondary">Click the X to remove tags</Text>
97
+ <Text typography="caption" color="secondary">Click the X to remove tags</Text>
98
98
 
99
99
  <Divider spacing="md" />
100
- <Text size="lg" weight="semibold">Selectable Chips</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 size="sm" color="secondary">
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 size="lg" weight="semibold">Clickable Chips</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 size="lg" weight="semibold">Disabled State</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 size="lg" weight="semibold">Filter Example</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 size="lg" weight="semibold">Category Tags</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 spacing="none">
13
- <Text size="lg" weight="bold" align="center">
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 spacing="md">
19
- <Text size="md" weight="semibold">Basic Dialog</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 spacing="md" style={{ marginTop: 16 }}>
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 spacing="md">
43
- <Text size="md" weight="semibold">Dialog Variants</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 spacing="md" style={{ marginTop: 16 }}>
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 spacing="md">
102
- <Text size="md" weight="semibold">Dialog Sizes</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 spacing="md" style={{ marginTop: 16 }}>
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 spacing="md">
140
- <Text size="md" weight="semibold">Dialog Options</Text>
141
- <Text size="sm" color="secondary">
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 size="sm" color="secondary">
144
+ <Text typography="caption" color="secondary">
145
145
  • Close on escape key: Enabled by default (web only)
146
146
  </Text>
147
- <Text size="sm" color="secondary">
147
+ <Text typography="caption" color="secondary">
148
148
  • Hardware back button: Handled automatically (native only)
149
149
  </Text>
150
- <Text size="sm" color="secondary">
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 spacing="none">
8
- <Text size="lg" weight="bold" align="center">
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 spacing="md">
14
- <Text size="md" weight="semibold">Horizontal Dividers</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 spacing="md">
36
- <Text size="md" weight="semibold">Variants</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 spacing="md">
58
- <Text size="md" weight="semibold">Thickness</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 spacing="md">
80
- <Text size="md" weight="semibold">Intents</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 spacing="md">
128
- <Text size="md" weight="semibold">Spacing</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 spacing="none" />
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 spacing="md">
158
- <Text size="md" weight="semibold">With Content</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 size="sm" color="secondary">OR</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 size="sm" color="primary" weight="semibold">SECTION</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 spacing="md">
180
- <Text size="md" weight="semibold">Vertical Dividers</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 spacing="md">
194
- <Text size="md" weight="semibold">Custom Length</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>