@xaui/native 0.2.3 → 0.2.5
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/dist/alert/index.d.cts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/app-bar/index.d.cts +1 -1
- package/dist/app-bar/index.d.ts +1 -1
- package/dist/autocomplete/index.d.cts +1 -1
- package/dist/autocomplete/index.d.ts +1 -1
- package/dist/avatar/index.d.cts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/badge/index.d.cts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/bottom-sheet/index.d.cts +1 -1
- package/dist/bottom-sheet/index.d.ts +1 -1
- package/dist/bottom-tab-bar/index.d.cts +1 -1
- package/dist/bottom-tab-bar/index.d.ts +1 -1
- package/dist/button/index.d.cts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/card/index.d.cts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/carousel/index.d.cts +1 -1
- package/dist/carousel/index.d.ts +1 -1
- package/dist/checkbox/index.d.cts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/chip/index.d.cts +1 -1
- package/dist/chip/index.d.ts +1 -1
- package/dist/color-picker/index.d.cts +2 -2
- package/dist/color-picker/index.d.ts +2 -2
- package/dist/container/index.cjs +203 -0
- package/dist/container/index.d.cts +40 -0
- package/dist/container/index.d.ts +40 -0
- package/dist/container/index.js +203 -0
- package/dist/datepicker/index.d.cts +1 -1
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/dialog/index.d.cts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/divider/index.d.cts +1 -1
- package/dist/divider/index.d.ts +1 -1
- package/dist/drawer/index.d.cts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/fab/index.d.cts +3 -3
- package/dist/fab/index.d.ts +3 -3
- package/dist/fab-menu/index.d.cts +2 -2
- package/dist/fab-menu/index.d.ts +2 -2
- package/dist/{fab.type-CgIYqQlT.d.ts → fab.type-CkUHmXU_.d.ts} +1 -1
- package/dist/{fab.type-l2vjG8-p.d.cts → fab.type-DN0vtAh6.d.cts} +1 -1
- package/dist/feature-discovery/index.d.cts +1 -1
- package/dist/feature-discovery/index.d.ts +1 -1
- package/dist/indicator/index.d.cts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/input/index.d.cts +10 -9
- package/dist/input/index.d.ts +10 -9
- package/dist/input-trigger/index.d.cts +3 -3
- package/dist/input-trigger/index.d.ts +3 -3
- package/dist/{input-trigger.type-DlSqg2eG.d.ts → input-trigger.type-Ba4bM3Qp.d.cts} +1 -1
- package/dist/{input-trigger.type-By_1ZjKd.d.cts → input-trigger.type-Ba4bM3Qp.d.ts} +1 -1
- package/dist/list/index.d.cts +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/menubox/index.d.cts +1 -1
- package/dist/menubox/index.d.ts +1 -1
- package/dist/picker/index.d.cts +2 -2
- package/dist/picker/index.d.ts +2 -2
- package/dist/progress/index.d.cts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/radio/index.d.cts +1 -1
- package/dist/radio/index.d.ts +1 -1
- package/dist/refresh-control/index.d.cts +1 -1
- package/dist/refresh-control/index.d.ts +1 -1
- package/dist/segment-button/index.d.cts +1 -1
- package/dist/segment-button/index.d.ts +1 -1
- package/dist/select/index.d.cts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/skeleton/index.d.cts +1 -1
- package/dist/skeleton/index.d.ts +1 -1
- package/dist/slider/index.d.cts +1 -1
- package/dist/slider/index.d.ts +1 -1
- package/dist/snackbar/index.d.cts +1 -1
- package/dist/snackbar/index.d.ts +1 -1
- package/dist/snippet/index.d.cts +1 -1
- package/dist/snippet/index.d.ts +1 -1
- package/dist/stepper/index.d.cts +1 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/switch/index.d.cts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/tabs/index.cjs +3 -2
- package/dist/tabs/index.d.cts +5 -1
- package/dist/tabs/index.d.ts +5 -1
- package/dist/tabs/index.js +3 -2
- package/dist/timepicker/index.d.cts +1 -1
- package/dist/timepicker/index.d.ts +1 -1
- package/dist/toolbar/index.d.cts +1 -1
- package/dist/toolbar/index.d.ts +1 -1
- package/dist/typography/index.d.cts +1 -1
- package/dist/typography/index.d.ts +1 -1
- package/dist/view/index.cjs +5 -15
- package/dist/view/index.d.cts +1 -1
- package/dist/view/index.d.ts +1 -1
- package/dist/view/index.js +5 -15
- package/package.json +9 -5
- package/dist/index-BOw6tbkc.d.cts +0 -5
- package/dist/index-BOw6tbkc.d.ts +0 -5
- package/dist/index-DyU3sW3_.d.cts +0 -4
- package/dist/index-DyU3sW3_.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { RefreshControlProps } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SupportedChildProps = {
|
|
6
6
|
refreshControl?: ReactElement | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { RefreshControlProps } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SupportedChildProps = {
|
|
6
6
|
refreshControl?: ReactElement | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SegmentButtonVariant = 'outlined' | 'flat' | 'light' | 'faded';
|
|
6
6
|
type ElevationLevel = 0 | 1 | 2 | 3 | 4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SegmentButtonVariant = 'outlined' | 'flat' | 'light' | 'faded';
|
|
6
6
|
type ElevationLevel = 0 | 1 | 2 | 3 | 4;
|
package/dist/select/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SelectVariant = 'bordered' | 'colored' | 'light' | 'underlined';
|
|
6
6
|
type SelectLabelPlacement = 'inside' | 'outside' | 'outside-left' | 'outside-top';
|
package/dist/select/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SelectVariant = 'bordered' | 'colored' | 'light' | 'underlined';
|
|
6
6
|
type SelectLabelPlacement = 'inside' | 'outside' | 'outside-left' | 'outside-top';
|
package/dist/skeleton/index.d.ts
CHANGED
package/dist/slider/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { Size, ThemeColor, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SliderOrientation = 'horizontal' | 'vertical';
|
|
6
6
|
type SliderMark = {
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { Size, ThemeColor, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SliderOrientation = 'horizontal' | 'vertical';
|
|
6
6
|
type SliderMark = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SnackbarPosition = 'top' | 'bottom';
|
|
6
6
|
type SnackbarCustomAppearance = {
|
package/dist/snackbar/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SnackbarPosition = 'top' | 'bottom';
|
|
6
6
|
type SnackbarCustomAppearance = {
|
package/dist/snippet/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextStyle, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SnippetVariant = 'outlined' | 'flat' | 'light';
|
|
6
6
|
type CopyButtonPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'inline-left' | 'inline-right';
|
package/dist/snippet/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextStyle, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SnippetVariant = 'outlined' | 'flat' | 'light';
|
|
6
6
|
type CopyButtonPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'inline-left' | 'inline-right';
|
package/dist/stepper/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type StepperDirection = 'horizontal' | 'vertical';
|
|
6
6
|
type StepperLineDisplayMode = 'progress' | 'all';
|
package/dist/stepper/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type StepperDirection = 'horizontal' | 'vertical';
|
|
6
6
|
type StepperLineDisplayMode = 'progress' | 'all';
|
package/dist/switch/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SwitchVariant = 'inside' | 'overlap';
|
|
6
6
|
type SwitchSize = 'sm' | 'md' | 'lg';
|
package/dist/switch/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type SwitchVariant = 'inside' | 'overlap';
|
|
6
6
|
type SwitchSize = 'sm' | 'md' | 'lg';
|
package/dist/tabs/index.cjs
CHANGED
|
@@ -197,12 +197,13 @@ function toTabItems(children) {
|
|
|
197
197
|
if (!_react2.default.isValidElement(child) || child.type !== Tab) {
|
|
198
198
|
return [];
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
const tabKey = child.props.tabKey;
|
|
201
|
+
if (!tabKey) {
|
|
201
202
|
return [];
|
|
202
203
|
}
|
|
203
204
|
return [
|
|
204
205
|
{
|
|
205
|
-
key:
|
|
206
|
+
key: tabKey,
|
|
206
207
|
title: child.props.title,
|
|
207
208
|
startContent: child.props.startContent,
|
|
208
209
|
endContent: child.props.endContent,
|
package/dist/tabs/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type TabsVariant = 'solid' | 'bordered' | 'light' | 'underlined';
|
|
6
6
|
type TabsItem = {
|
|
@@ -31,6 +31,10 @@ type TabsItem = {
|
|
|
31
31
|
content?: ReactNode;
|
|
32
32
|
};
|
|
33
33
|
type TabProps = {
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the tab. Used for selection, disabled state, and content rendering.
|
|
36
|
+
*/
|
|
37
|
+
tabKey: string;
|
|
34
38
|
/**
|
|
35
39
|
* Label content for the tab trigger.
|
|
36
40
|
*/
|
package/dist/tabs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Size, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type TabsVariant = 'solid' | 'bordered' | 'light' | 'underlined';
|
|
6
6
|
type TabsItem = {
|
|
@@ -31,6 +31,10 @@ type TabsItem = {
|
|
|
31
31
|
content?: ReactNode;
|
|
32
32
|
};
|
|
33
33
|
type TabProps = {
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the tab. Used for selection, disabled state, and content rendering.
|
|
36
|
+
*/
|
|
37
|
+
tabKey: string;
|
|
34
38
|
/**
|
|
35
39
|
* Label content for the tab trigger.
|
|
36
40
|
*/
|
package/dist/tabs/index.js
CHANGED
|
@@ -197,12 +197,13 @@ function toTabItems(children) {
|
|
|
197
197
|
if (!React.isValidElement(child) || child.type !== Tab) {
|
|
198
198
|
return [];
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
const tabKey = child.props.tabKey;
|
|
201
|
+
if (!tabKey) {
|
|
201
202
|
return [];
|
|
202
203
|
}
|
|
203
204
|
return [
|
|
204
205
|
{
|
|
205
|
-
key:
|
|
206
|
+
key: tabKey,
|
|
206
207
|
title: child.props.title,
|
|
207
208
|
startContent: child.props.startContent,
|
|
208
209
|
endContent: child.props.endContent,
|
package/dist/toolbar/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, GestureResponderEvent } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type ToolbarVariant = 'floating' | 'docked' | 'vertical';
|
|
6
6
|
type ToolbarPosition = 'top' | 'bottom' | 'left' | 'right';
|
package/dist/toolbar/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, GestureResponderEvent } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type ToolbarVariant = 'floating' | 'docked' | 'vertical';
|
|
6
6
|
type ToolbarPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type TypographyAlign = 'center' | 'justify' | 'left' | 'right';
|
|
6
6
|
type TypographyVariant = 'displayLarge' | 'displayMedium' | 'displaySmall' | 'caption' | 'headlineLarge' | 'headlineMedium' | 'headlineSmall' | 'subtitleLarge' | 'subtitleMedium' | 'subtitleSmall' | 'bodyLarge' | 'bodyMedium' | 'bodySmall';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type TypographyAlign = 'center' | 'justify' | 'left' | 'right';
|
|
6
6
|
type TypographyVariant = 'displayLarge' | 'displayMedium' | 'displaySmall' | 'caption' | 'headlineLarge' | 'headlineMedium' | 'headlineSmall' | 'subtitleLarge' | 'subtitleMedium' | 'subtitleSmall' | 'bodyLarge' | 'bodyMedium' | 'bodySmall';
|
package/dist/view/index.cjs
CHANGED
|
@@ -443,21 +443,11 @@ var Screen = ({
|
|
|
443
443
|
}) => {
|
|
444
444
|
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
445
445
|
const resolvedBackgroundColor = _nullishCoalesce(backgroundColor, () => ( theme.colors.background));
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
{
|
|
452
|
-
flex: 1,
|
|
453
|
-
backgroundColor: resolvedBackgroundColor,
|
|
454
|
-
padding
|
|
455
|
-
},
|
|
456
|
-
style
|
|
457
|
-
]
|
|
458
|
-
},
|
|
459
|
-
children
|
|
460
|
-
);
|
|
446
|
+
const containerStyle = [{ flex: 1, backgroundColor: resolvedBackgroundColor, padding }, style];
|
|
447
|
+
if (safeArea) {
|
|
448
|
+
return /* @__PURE__ */ _react2.default.createElement(_reactnativesafeareacontext.SafeAreaView, { style: containerStyle }, children);
|
|
449
|
+
}
|
|
450
|
+
return /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: containerStyle }, children);
|
|
461
451
|
};
|
|
462
452
|
Screen.displayName = "Screen";
|
|
463
453
|
|
package/dist/view/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement, ComponentType } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, ColorValue, ScrollViewProps } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type MainAxisAlignment = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
6
6
|
type CrossAxisAlignment = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
package/dist/view/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement, ComponentType } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, ColorValue, ScrollViewProps } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor, Radius } from '@xaui/core/types';
|
|
4
4
|
|
|
5
5
|
type MainAxisAlignment = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
6
6
|
type CrossAxisAlignment = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
package/dist/view/index.js
CHANGED
|
@@ -443,21 +443,11 @@ var Screen = ({
|
|
|
443
443
|
}) => {
|
|
444
444
|
const theme = useXUITheme();
|
|
445
445
|
const resolvedBackgroundColor = backgroundColor ?? theme.colors.background;
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
{
|
|
452
|
-
flex: 1,
|
|
453
|
-
backgroundColor: resolvedBackgroundColor,
|
|
454
|
-
padding
|
|
455
|
-
},
|
|
456
|
-
style
|
|
457
|
-
]
|
|
458
|
-
},
|
|
459
|
-
children
|
|
460
|
-
);
|
|
446
|
+
const containerStyle = [{ flex: 1, backgroundColor: resolvedBackgroundColor, padding }, style];
|
|
447
|
+
if (safeArea) {
|
|
448
|
+
return /* @__PURE__ */ React12.createElement(SafeAreaView, { style: containerStyle }, children);
|
|
449
|
+
}
|
|
450
|
+
return /* @__PURE__ */ React12.createElement(View12, { style: containerStyle }, children);
|
|
461
451
|
};
|
|
462
452
|
Screen.displayName = "Screen";
|
|
463
453
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaui/native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Flutter-inspired React Native UI components with native animations powered by React Native Reanimated",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -182,6 +182,11 @@
|
|
|
182
182
|
"import": "./dist/card/index.js",
|
|
183
183
|
"require": "./dist/card/index.js"
|
|
184
184
|
},
|
|
185
|
+
"./container": {
|
|
186
|
+
"types": "./dist/container/index.d.ts",
|
|
187
|
+
"import": "./dist/container/index.js",
|
|
188
|
+
"require": "./dist/container/index.js"
|
|
189
|
+
},
|
|
185
190
|
"./input": {
|
|
186
191
|
"types": "./dist/input/index.d.ts",
|
|
187
192
|
"import": "./dist/input/index.js",
|
|
@@ -268,8 +273,8 @@
|
|
|
268
273
|
"directory": "packages/native"
|
|
269
274
|
},
|
|
270
275
|
"dependencies": {
|
|
271
|
-
"@xaui/core": "0.2.
|
|
272
|
-
"@xaui/icons": "0.0.
|
|
276
|
+
"@xaui/core": "0.2.1",
|
|
277
|
+
"@xaui/icons": "0.0.10"
|
|
273
278
|
},
|
|
274
279
|
"peerDependencies": {
|
|
275
280
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -282,9 +287,8 @@
|
|
|
282
287
|
},
|
|
283
288
|
"devDependencies": {
|
|
284
289
|
"@types/react": "^19.1.0",
|
|
285
|
-
"@types/react-native": "^0.73.0",
|
|
286
290
|
"react": "19.1.0",
|
|
287
|
-
"react-native": "
|
|
291
|
+
"react-native": "0.83.6",
|
|
288
292
|
"react-native-gesture-handler": "^2.28.0",
|
|
289
293
|
"react-native-reanimated": "^4.0.0",
|
|
290
294
|
"react-native-safe-area-context": "^5.6.0",
|
package/dist/index-BOw6tbkc.d.ts
DELETED
package/dist/index-DyU3sW3_.d.ts
DELETED