@xaui/native 0.0.24 → 0.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
CHANGED
|
@@ -102,7 +102,6 @@ function Banner() {
|
|
|
102
102
|
|
|
103
103
|
```tsx
|
|
104
104
|
import { ExpansionPanel, ExpansionPanelItem } from '@xaui/native/expansion-panel'
|
|
105
|
-
|
|
106
105
|
;<ExpansionPanel variant="light" selectionMode="toggle" showDivider>
|
|
107
106
|
<ExpansionPanelItem title="Section 1" itemKey="section1">
|
|
108
107
|
<Text>Content for section 1</Text>
|
|
@@ -159,7 +158,6 @@ import { Badge } from '@xaui/native/badge'
|
|
|
159
158
|
|
|
160
159
|
```tsx
|
|
161
160
|
import { Checkbox } from '@xaui/native/checkbox'
|
|
162
|
-
|
|
163
161
|
;<Checkbox
|
|
164
162
|
isSelected={isChecked}
|
|
165
163
|
onValueChange={setIsChecked}
|
|
@@ -202,7 +200,6 @@ import { Divider } from '@xaui/native/divider'
|
|
|
202
200
|
|
|
203
201
|
```tsx
|
|
204
202
|
import { Radio, RadioGroup } from '@xaui/native/radio'
|
|
205
|
-
|
|
206
203
|
;<RadioGroup value={selected} onValueChange={setSelected}>
|
|
207
204
|
<Radio value="option1" themeColor="primary">
|
|
208
205
|
Option 1
|
|
@@ -220,7 +217,6 @@ import { Radio, RadioGroup } from '@xaui/native/radio'
|
|
|
220
217
|
|
|
221
218
|
```tsx
|
|
222
219
|
import { Switch } from '@xaui/native/switch'
|
|
223
|
-
|
|
224
220
|
;<Switch
|
|
225
221
|
isSelected={isEnabled}
|
|
226
222
|
onValueChange={setIsEnabled}
|
|
@@ -237,7 +233,6 @@ Centers its child both vertically and horizontally.
|
|
|
237
233
|
|
|
238
234
|
```tsx
|
|
239
235
|
import { Center } from '@xaui/native/center'
|
|
240
|
-
|
|
241
236
|
;<Center style={{ flex: 1 }}>
|
|
242
237
|
<Text>Centered content</Text>
|
|
243
238
|
</Center>
|
|
@@ -283,7 +278,6 @@ View with rounded corners and optional border.
|
|
|
283
278
|
|
|
284
279
|
```tsx
|
|
285
280
|
import { RoundedView } from '@xaui/native/rounded-view'
|
|
286
|
-
|
|
287
281
|
;<RoundedView borderRadius={16} borderWidth={2} borderColor="#E5E7EB" padding={20}>
|
|
288
282
|
<Text>Content with rounded corners</Text>
|
|
289
283
|
</RoundedView>
|
|
@@ -116,8 +116,6 @@ var useExpansionPanelStyles = ({
|
|
|
116
116
|
base.borderRadius = theme.borderRadius.md;
|
|
117
117
|
base.paddingHorizontal = theme.spacing.sm;
|
|
118
118
|
base.overflow = "hidden";
|
|
119
|
-
} else if (variant === "light") {
|
|
120
|
-
base.paddingHorizontal = theme.spacing.sm;
|
|
121
119
|
}
|
|
122
120
|
return base;
|
|
123
121
|
}, [variant, fullWidth, theme]);
|
|
@@ -42,8 +42,6 @@ var useExpansionPanelStyles = ({
|
|
|
42
42
|
base.borderRadius = theme.borderRadius.md;
|
|
43
43
|
base.paddingHorizontal = theme.spacing.sm;
|
|
44
44
|
base.overflow = "hidden";
|
|
45
|
-
} else if (variant === "light") {
|
|
46
|
-
base.paddingHorizontal = theme.spacing.sm;
|
|
47
45
|
}
|
|
48
46
|
return base;
|
|
49
47
|
}, [variant, fullWidth, theme]);
|