@xaui/native 0.0.24 → 0.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 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]);
@@ -572,7 +570,7 @@ var ExpansionPanel = (props) => {
572
570
  import_react14.default.isValidElement(child) ? normalizeElementKey(child.key) : void 0,
573
571
  index
574
572
  );
575
- return /* @__PURE__ */ import_react14.default.createElement(import_react_native9.View, { key: resolvedChildKey, style: customAppearance?.item }, isExpansionPanelItem(child) ? import_react14.default.cloneElement(child, { itemKey: resolvedChildKey }) : child, showBottomDivider && /* @__PURE__ */ import_react14.default.createElement(Divider, { color: dividerColor, size: 2 }));
573
+ return /* @__PURE__ */ import_react14.default.createElement(import_react_native9.View, { key: resolvedChildKey, style: customAppearance?.item }, isExpansionPanelItem(child) ? import_react14.default.cloneElement(child, { itemKey: resolvedChildKey }) : child, showBottomDivider && /* @__PURE__ */ import_react14.default.createElement(Divider, { color: dividerColor, size: 1 }));
576
574
  })));
577
575
  };
578
576
  // Annotate the CommonJS export names for ESM import in node:
@@ -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]);
@@ -433,7 +431,7 @@ var ExpansionPanel = (props) => {
433
431
  React4.isValidElement(child) ? normalizeElementKey(child.key) : void 0,
434
432
  index
435
433
  );
436
- return /* @__PURE__ */ React4.createElement(View2, { key: resolvedChildKey, style: customAppearance?.item }, isExpansionPanelItem(child) ? React4.cloneElement(child, { itemKey: resolvedChildKey }) : child, showBottomDivider && /* @__PURE__ */ React4.createElement(Divider, { color: dividerColor, size: 2 }));
434
+ return /* @__PURE__ */ React4.createElement(View2, { key: resolvedChildKey, style: customAppearance?.item }, isExpansionPanelItem(child) ? React4.cloneElement(child, { itemKey: resolvedChildKey }) : child, showBottomDivider && /* @__PURE__ */ React4.createElement(Divider, { color: dividerColor, size: 1 }));
437
435
  })));
438
436
  };
439
437
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/native",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "Flutter-inspired React Native UI components with native animations powered by React Native Reanimated",
5
5
  "keywords": [
6
6
  "react-native",