@xaui/native 0.9.1-alpha.17 → 0.9.1-alpha.19
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/{chunk-M2VYRHVS.cjs → chunk-2WMVDMFV.cjs} +2 -2
- package/dist/{chunk-ASXK7XU4.js → chunk-4EPS7UBO.js} +18 -17
- package/dist/{chunk-6N5JXRUZ.cjs → chunk-57SJ4LJF.cjs} +2 -20
- package/dist/{chunk-IZYRU7S2.cjs → chunk-6ARON3XT.cjs} +27 -26
- package/dist/{chunk-XJARE6SC.js → chunk-A3EGFI6T.js} +0 -18
- package/dist/{chunk-2UICXD3Q.cjs → chunk-A4VD4MHK.cjs} +109 -102
- package/dist/chunk-BFB6K4M7.cjs +31 -0
- package/dist/{chunk-BHAHJHAI.cjs → chunk-BHTFIZTQ.cjs} +34 -32
- package/dist/{chunk-5SU7FXWH.cjs → chunk-EVXZGNPA.cjs} +3 -148
- package/dist/{chunk-4K3LZS7M.js → chunk-EXX6ATAS.js} +2 -147
- package/dist/chunk-GGW42MY4.js +20 -0
- package/dist/chunk-MAYVGK6W.js +31 -0
- package/dist/chunk-MC7SY2QH.cjs +20 -0
- package/dist/{chunk-XQE5PXOD.js → chunk-MWXE7D4L.js} +4 -2
- package/dist/chunk-N7C4UNUL.js +150 -0
- package/dist/{chunk-6PZF4PI7.js → chunk-RMLFMRWL.js} +5 -3
- package/dist/{chunk-6VTBGBPP.cjs → chunk-UBA6AEY6.cjs} +10 -8
- package/dist/chunk-UVO4GFSW.cjs +150 -0
- package/dist/{chunk-F432IDIW.js → chunk-WXAME7KB.js} +113 -106
- package/dist/{chunk-L3AQNVRN.js → chunk-XHZBXYVU.js} +1 -1
- package/dist/components/button/index.cjs +7 -5
- package/dist/components/button/index.d.cts +3 -2
- package/dist/components/button/index.d.ts +3 -2
- package/dist/components/button/index.js +6 -4
- package/dist/components/typography/index.cjs +6 -4
- package/dist/components/typography/index.d.cts +4 -3
- package/dist/components/typography/index.d.ts +4 -3
- package/dist/components/typography/index.js +5 -3
- package/dist/components/view/index.cjs +10 -0
- package/dist/components/view/index.d.cts +77 -0
- package/dist/components/view/index.d.ts +77 -0
- package/dist/components/view/index.js +10 -0
- package/dist/{create-recipe-3_ElpCYt.d.cts → create-recipe-C0XXjuow.d.cts} +2 -30
- package/dist/{create-recipe-DImq1AZA.d.ts → create-recipe-CPXFo2rk.d.ts} +2 -30
- package/dist/index.cjs +19 -10
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +17 -8
- package/dist/{pressable-feedback.type-KcPvFf6f.d.ts → pressable-feedback.type-1K8YEOb8.d.cts} +48 -20
- package/dist/{pressable-feedback.type-C9kjAuVQ.d.cts → pressable-feedback.type-BwkKLQlX.d.ts} +48 -20
- package/dist/style-props.type-B1BG5TCm.d.cts +31 -0
- package/dist/style-props.type-B1BG5TCm.d.ts +31 -0
- package/dist/system/index.cjs +8 -5
- package/dist/system/index.d.cts +11 -6
- package/dist/system/index.d.ts +11 -6
- package/dist/system/index.js +8 -5
- package/dist/theme/index.cjs +4 -3
- package/dist/theme/index.js +3 -2
- package/package.json +11 -1
package/dist/{pressable-feedback.type-KcPvFf6f.d.ts → pressable-feedback.type-1K8YEOb8.d.cts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { ImageSourcePropType, StyleProp, ImageStyle, PressableProps, ViewStyle } from 'react-native';
|
|
3
|
-
import { I as ImageStyleProps, V as ViewStyleProps } from './
|
|
3
|
+
import { I as ImageStyleProps, V as ViewStyleProps } from './style-props.type-B1BG5TCm.cjs';
|
|
4
4
|
import { SharedValue } from 'react-native-reanimated';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -12,31 +12,59 @@ type IconComponentProps = {
|
|
|
12
12
|
size?: number;
|
|
13
13
|
color?: string;
|
|
14
14
|
};
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
* reason: it is the one of the three forms where we render the node. On the other two,
|
|
18
|
-
* `size` and `color` are what shapes the icon.
|
|
19
|
-
*/
|
|
20
|
-
type IconProps = ImageStyleProps & {
|
|
21
|
-
/** An icon component. `size` and `color` are injected into it. */
|
|
22
|
-
as?: ComponentType<IconComponentProps>;
|
|
23
|
-
/** A raw `react-native-svg` element, cloned with the resolved size and colour. */
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
/** An image, tinted with the resolved colour. */
|
|
26
|
-
source?: ImageSourcePropType;
|
|
15
|
+
/** What every form takes, and the only lever the two non-rendering ones have. */
|
|
16
|
+
type IconBase = {
|
|
27
17
|
/** Overrides what the surrounding slot asked for. */
|
|
28
18
|
size?: number;
|
|
29
19
|
/** A raw value (R7), never a token. Overrides the slot's. */
|
|
30
20
|
color?: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* An icon component — `size` and `color` are injected into it.
|
|
24
|
+
*
|
|
25
|
+
* No style props and no `style`: we do not render this node, the third party does, and
|
|
26
|
+
* there is no published interface that says it would accept either. Wrapping it in a view
|
|
27
|
+
* to make them work would add a level of depth to every icon in the library.
|
|
28
|
+
*/
|
|
29
|
+
type IconAsProps = IconBase & {
|
|
30
|
+
as: ComponentType<IconComponentProps>;
|
|
31
|
+
children?: never;
|
|
32
|
+
source?: never;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A raw `react-native-svg` element, cloned with the resolved size and colour.
|
|
36
|
+
*
|
|
37
|
+
* No style props and no `style` either: the node is the caller's own element, and they can
|
|
38
|
+
* style it where they wrote it.
|
|
39
|
+
*/
|
|
40
|
+
type IconChildrenProps = IconBase & {
|
|
41
|
+
as?: never;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
source?: never;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* An image, tinted with the resolved colour — **the one form that carries R14**, because
|
|
47
|
+
* it is the one where we render the node.
|
|
48
|
+
*/
|
|
49
|
+
type IconSourceProps = IconBase & ImageStyleProps & {
|
|
50
|
+
as?: never;
|
|
51
|
+
children?: never;
|
|
52
|
+
source: ImageSourcePropType;
|
|
38
53
|
style?: StyleProp<ImageStyle>;
|
|
39
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Three forms, and the type says which one you are in.
|
|
57
|
+
*
|
|
58
|
+
* The union is what makes R14's boundary checkable rather than merely documented. When
|
|
59
|
+
* every form declared the style props, `<Icon as={Trash2} marginEnd={8} />` compiled and
|
|
60
|
+
* did nothing at all — the prop was dropped on the two forms that do not render the node,
|
|
61
|
+
* silently, and only a comment said so. Now it is a compile error that points at `size`
|
|
62
|
+
* and `color`, which are the levers those forms actually have.
|
|
63
|
+
*
|
|
64
|
+
* It also makes the three mutually exclusive, which they always were at runtime: `as`
|
|
65
|
+
* wins over children, and children over `source`.
|
|
66
|
+
*/
|
|
67
|
+
type IconProps = IconAsProps | IconChildrenProps | IconSourceProps;
|
|
40
68
|
/** What a component root publishes so the icons inside it need no props at all. */
|
|
41
69
|
type IconContextValue = {
|
|
42
70
|
size?: number;
|
package/dist/{pressable-feedback.type-C9kjAuVQ.d.cts → pressable-feedback.type-BwkKLQlX.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { ImageSourcePropType, StyleProp, ImageStyle, PressableProps, ViewStyle } from 'react-native';
|
|
3
|
-
import { I as ImageStyleProps, V as ViewStyleProps } from './
|
|
3
|
+
import { I as ImageStyleProps, V as ViewStyleProps } from './style-props.type-B1BG5TCm.js';
|
|
4
4
|
import { SharedValue } from 'react-native-reanimated';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -12,31 +12,59 @@ type IconComponentProps = {
|
|
|
12
12
|
size?: number;
|
|
13
13
|
color?: string;
|
|
14
14
|
};
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
* reason: it is the one of the three forms where we render the node. On the other two,
|
|
18
|
-
* `size` and `color` are what shapes the icon.
|
|
19
|
-
*/
|
|
20
|
-
type IconProps = ImageStyleProps & {
|
|
21
|
-
/** An icon component. `size` and `color` are injected into it. */
|
|
22
|
-
as?: ComponentType<IconComponentProps>;
|
|
23
|
-
/** A raw `react-native-svg` element, cloned with the resolved size and colour. */
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
/** An image, tinted with the resolved colour. */
|
|
26
|
-
source?: ImageSourcePropType;
|
|
15
|
+
/** What every form takes, and the only lever the two non-rendering ones have. */
|
|
16
|
+
type IconBase = {
|
|
27
17
|
/** Overrides what the surrounding slot asked for. */
|
|
28
18
|
size?: number;
|
|
29
19
|
/** A raw value (R7), never a token. Overrides the slot's. */
|
|
30
20
|
color?: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* An icon component — `size` and `color` are injected into it.
|
|
24
|
+
*
|
|
25
|
+
* No style props and no `style`: we do not render this node, the third party does, and
|
|
26
|
+
* there is no published interface that says it would accept either. Wrapping it in a view
|
|
27
|
+
* to make them work would add a level of depth to every icon in the library.
|
|
28
|
+
*/
|
|
29
|
+
type IconAsProps = IconBase & {
|
|
30
|
+
as: ComponentType<IconComponentProps>;
|
|
31
|
+
children?: never;
|
|
32
|
+
source?: never;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A raw `react-native-svg` element, cloned with the resolved size and colour.
|
|
36
|
+
*
|
|
37
|
+
* No style props and no `style` either: the node is the caller's own element, and they can
|
|
38
|
+
* style it where they wrote it.
|
|
39
|
+
*/
|
|
40
|
+
type IconChildrenProps = IconBase & {
|
|
41
|
+
as?: never;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
source?: never;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* An image, tinted with the resolved colour — **the one form that carries R14**, because
|
|
47
|
+
* it is the one where we render the node.
|
|
48
|
+
*/
|
|
49
|
+
type IconSourceProps = IconBase & ImageStyleProps & {
|
|
50
|
+
as?: never;
|
|
51
|
+
children?: never;
|
|
52
|
+
source: ImageSourcePropType;
|
|
38
53
|
style?: StyleProp<ImageStyle>;
|
|
39
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Three forms, and the type says which one you are in.
|
|
57
|
+
*
|
|
58
|
+
* The union is what makes R14's boundary checkable rather than merely documented. When
|
|
59
|
+
* every form declared the style props, `<Icon as={Trash2} marginEnd={8} />` compiled and
|
|
60
|
+
* did nothing at all — the prop was dropped on the two forms that do not render the node,
|
|
61
|
+
* silently, and only a comment said so. Now it is a compile error that points at `size`
|
|
62
|
+
* and `color`, which are the levers those forms actually have.
|
|
63
|
+
*
|
|
64
|
+
* It also makes the three mutually exclusive, which they always were at runtime: `as`
|
|
65
|
+
* wins over children, and children over `source`.
|
|
66
|
+
*/
|
|
67
|
+
type IconProps = IconAsProps | IconChildrenProps | IconSourceProps;
|
|
40
68
|
/** What a component root publishes so the icons inside it need no props at all. */
|
|
41
69
|
type IconContextValue = {
|
|
42
70
|
size?: number;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* R13 — React Native mirrors a layout under RTL through the Start/End properties and only
|
|
5
|
+
* those. A props API is exactly where someone writes `paddingLeft` without thinking, so
|
|
6
|
+
* the type removes the temptation instead of leaving it to a review.
|
|
7
|
+
*/
|
|
8
|
+
type DirectionalStyleKey = 'left' | 'right' | 'paddingLeft' | 'paddingRight' | 'marginLeft' | 'marginRight' | 'borderLeftWidth' | 'borderRightWidth' | 'borderLeftColor' | 'borderRightColor' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius';
|
|
9
|
+
/**
|
|
10
|
+
* `pointerEvents` is a style key *and* a `View` prop. R14 says the component's own prop
|
|
11
|
+
* wins, so it stays the prop it has always been and is not exposed twice — the one name
|
|
12
|
+
* where the two vocabularies collide.
|
|
13
|
+
*/
|
|
14
|
+
type ComponentOwnedStyleKey = 'pointerEvents';
|
|
15
|
+
/**
|
|
16
|
+
* The style keys of a node, exposed as props (R14). Not a maintained list: it derives
|
|
17
|
+
* from the React Native type, minus what R13 forbids.
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* type CardProps = ViewStyleProps & { variant?: CardVariant }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
type StyleProps<Style> = Omit<Style, DirectionalStyleKey | ComponentOwnedStyleKey>;
|
|
24
|
+
/** A root, or any slot that renders a view. */
|
|
25
|
+
type ViewStyleProps = StyleProps<ViewStyle>;
|
|
26
|
+
/** A text slot — `color`, `fontSize`, `letterSpacing`… */
|
|
27
|
+
type TextStyleProps = StyleProps<TextStyle>;
|
|
28
|
+
/** An image slot — `resizeMode`, `tintColor`… */
|
|
29
|
+
type ImageStyleProps = StyleProps<ImageStyle>;
|
|
30
|
+
|
|
31
|
+
export type { DirectionalStyleKey as D, ImageStyleProps as I, StyleProps as S, TextStyleProps as T, ViewStyleProps as V };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* R13 — React Native mirrors a layout under RTL through the Start/End properties and only
|
|
5
|
+
* those. A props API is exactly where someone writes `paddingLeft` without thinking, so
|
|
6
|
+
* the type removes the temptation instead of leaving it to a review.
|
|
7
|
+
*/
|
|
8
|
+
type DirectionalStyleKey = 'left' | 'right' | 'paddingLeft' | 'paddingRight' | 'marginLeft' | 'marginRight' | 'borderLeftWidth' | 'borderRightWidth' | 'borderLeftColor' | 'borderRightColor' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius';
|
|
9
|
+
/**
|
|
10
|
+
* `pointerEvents` is a style key *and* a `View` prop. R14 says the component's own prop
|
|
11
|
+
* wins, so it stays the prop it has always been and is not exposed twice — the one name
|
|
12
|
+
* where the two vocabularies collide.
|
|
13
|
+
*/
|
|
14
|
+
type ComponentOwnedStyleKey = 'pointerEvents';
|
|
15
|
+
/**
|
|
16
|
+
* The style keys of a node, exposed as props (R14). Not a maintained list: it derives
|
|
17
|
+
* from the React Native type, minus what R13 forbids.
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* type CardProps = ViewStyleProps & { variant?: CardVariant }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
type StyleProps<Style> = Omit<Style, DirectionalStyleKey | ComponentOwnedStyleKey>;
|
|
24
|
+
/** A root, or any slot that renders a view. */
|
|
25
|
+
type ViewStyleProps = StyleProps<ViewStyle>;
|
|
26
|
+
/** A text slot — `color`, `fontSize`, `letterSpacing`… */
|
|
27
|
+
type TextStyleProps = StyleProps<TextStyle>;
|
|
28
|
+
/** An image slot — `resizeMode`, `tintColor`… */
|
|
29
|
+
type ImageStyleProps = StyleProps<ImageStyle>;
|
|
30
|
+
|
|
31
|
+
export type { DirectionalStyleKey as D, ImageStyleProps as I, StyleProps as S, TextStyleProps as T, ViewStyleProps as V };
|
package/dist/system/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2WMVDMFVcjs = require('../chunk-2WMVDMFV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -27,18 +27,20 @@ var _chunkM2VYRHVScjs = require('../chunk-M2VYRHVS.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkA4VD4MHKcjs = require('../chunk-A4VD4MHK.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
var _chunkUVO4GFSWcjs = require('../chunk-UVO4GFSW.cjs');
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
|
|
39
|
-
var _chunk5SU7FXWHcjs = require('../chunk-5SU7FXWH.cjs');
|
|
40
|
-
require('../chunk-6N5JXRUZ.cjs');
|
|
41
40
|
|
|
41
|
+
var _chunkEVXZGNPAcjs = require('../chunk-EVXZGNPA.cjs');
|
|
42
|
+
require('../chunk-57SJ4LJF.cjs');
|
|
43
|
+
require('../chunk-MC7SY2QH.cjs');
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
|
|
@@ -72,4 +74,5 @@ require('../chunk-6N5JXRUZ.cjs');
|
|
|
72
74
|
|
|
73
75
|
|
|
74
76
|
|
|
75
|
-
|
|
77
|
+
|
|
78
|
+
exports.FEEDBACK_OVERLAY = _chunkA4VD4MHKcjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkA4VD4MHKcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkA4VD4MHKcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkA4VD4MHKcjs.Icon; exports.IconContext = _chunkA4VD4MHKcjs.IconContext; exports.PRESS_DURATION = _chunkA4VD4MHKcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkA4VD4MHKcjs.PRESS_SCALE; exports.Portal = _chunk2WMVDMFVcjs.Portal; exports.PortalContext = _chunk2WMVDMFVcjs.PortalContext; exports.PortalHost = _chunk2WMVDMFVcjs.PortalHost; exports.PressableFeedback = _chunkA4VD4MHKcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkA4VD4MHKcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkA4VD4MHKcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkA4VD4MHKcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkA4VD4MHKcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkA4VD4MHKcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkA4VD4MHKcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkA4VD4MHKcjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkA4VD4MHKcjs.SCALE_REFERENCE_WIDTH; exports.Slot = _chunkEVXZGNPAcjs.Slot; exports.childrenToString = _chunkEVXZGNPAcjs.childrenToString; exports.createRecipe = _chunkUVO4GFSWcjs.createRecipe; exports.createSlotContext = _chunkEVXZGNPAcjs.createSlotContext; exports.markOverlay = _chunkA4VD4MHKcjs.markOverlay; exports.mergeProps = _chunkEVXZGNPAcjs.mergeProps; exports.mergeRefs = _chunkEVXZGNPAcjs.mergeRefs; exports.pressScaleFor = _chunkA4VD4MHKcjs.pressScaleFor; exports.resolveAnimation = _chunkA4VD4MHKcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkA4VD4MHKcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkA4VD4MHKcjs.rippleRadiusFor; exports.useFeedback = _chunkA4VD4MHKcjs.useFeedback; exports.useIconContext = _chunkA4VD4MHKcjs.useIconContext; exports.useStyleProps = _chunkEVXZGNPAcjs.useStyleProps;
|
package/dist/system/index.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, Provider, Ref, RefCallback } from 'react';
|
|
3
|
-
import { b as IconProps, a as IconContextValue, S as SlotAnimation, F as FeedbackContext, c as AnimationProp, d as ResolvedAnimation } from '../pressable-feedback.type-
|
|
4
|
-
export { A as AnimationConfig, I as IconComponentProps, P as PressableFeedbackProps, R as RadiusStyle, e as RippleWave } from '../pressable-feedback.type-
|
|
5
|
-
import { V as ViewStyleProps } from '../
|
|
6
|
-
export {
|
|
3
|
+
import { b as IconProps, a as IconContextValue, S as SlotAnimation, F as FeedbackContext, c as AnimationProp, d as ResolvedAnimation } from '../pressable-feedback.type-1K8YEOb8.cjs';
|
|
4
|
+
export { A as AnimationConfig, I as IconComponentProps, P as PressableFeedbackProps, R as RadiusStyle, e as RippleWave } from '../pressable-feedback.type-1K8YEOb8.cjs';
|
|
5
|
+
import { V as ViewStyleProps } from '../style-props.type-B1BG5TCm.cjs';
|
|
6
|
+
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps } from '../style-props.type-B1BG5TCm.cjs';
|
|
7
7
|
import * as react_native from 'react-native';
|
|
8
8
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
9
|
+
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, f as SlotStyle, g as SlotStyles, h as StateName, i as States, j as StyleFn, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from '../create-recipe-C0XXjuow.cjs';
|
|
9
10
|
import 'react-native-reanimated';
|
|
10
11
|
import '../theme.type-C2gNHpEx.cjs';
|
|
11
12
|
|
|
@@ -55,8 +56,12 @@ declare function useStyleProps<P extends object>(props: P): [StylePropsOf<P>, Re
|
|
|
55
56
|
* Three accepted forms — a component through `as`, a raw SVG as children, or an image
|
|
56
57
|
* through `source` — and the resolution is the same for all three: an explicit prop, else
|
|
57
58
|
* what the surrounding slot published, else the theme.
|
|
59
|
+
*
|
|
60
|
+
* The props are taken whole rather than destructured, because they are a union: which
|
|
61
|
+
* keys exist depends on the form, and narrowing is what lets `style` be reachable in the
|
|
62
|
+
* one branch that renders a node and unwritable in the two that do not.
|
|
58
63
|
*/
|
|
59
|
-
declare function Icon(
|
|
64
|
+
declare function Icon(props: IconProps): react.JSX.Element;
|
|
60
65
|
declare namespace Icon {
|
|
61
66
|
var displayName: string;
|
|
62
67
|
}
|
|
@@ -378,7 +383,7 @@ declare function resolveSlotAnimation(override: SlotAnimation | undefined, enabl
|
|
|
378
383
|
* off — and it is the only shape that survives `asChild`, where the caller's own element
|
|
379
384
|
* is the pressable and there is no sibling for the primitive to inject.
|
|
380
385
|
*/
|
|
381
|
-
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "
|
|
386
|
+
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "style" | "children" | "disabled"> & ViewStyleProps & {
|
|
382
387
|
isPressed?: boolean;
|
|
383
388
|
isDisabled?: boolean;
|
|
384
389
|
asChild?: boolean;
|
package/dist/system/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, Provider, Ref, RefCallback } from 'react';
|
|
3
|
-
import { b as IconProps, a as IconContextValue, S as SlotAnimation, F as FeedbackContext, c as AnimationProp, d as ResolvedAnimation } from '../pressable-feedback.type-
|
|
4
|
-
export { A as AnimationConfig, I as IconComponentProps, P as PressableFeedbackProps, R as RadiusStyle, e as RippleWave } from '../pressable-feedback.type-
|
|
5
|
-
import { V as ViewStyleProps } from '../
|
|
6
|
-
export {
|
|
3
|
+
import { b as IconProps, a as IconContextValue, S as SlotAnimation, F as FeedbackContext, c as AnimationProp, d as ResolvedAnimation } from '../pressable-feedback.type-BwkKLQlX.js';
|
|
4
|
+
export { A as AnimationConfig, I as IconComponentProps, P as PressableFeedbackProps, R as RadiusStyle, e as RippleWave } from '../pressable-feedback.type-BwkKLQlX.js';
|
|
5
|
+
import { V as ViewStyleProps } from '../style-props.type-B1BG5TCm.js';
|
|
6
|
+
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps } from '../style-props.type-B1BG5TCm.js';
|
|
7
7
|
import * as react_native from 'react-native';
|
|
8
8
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
9
|
+
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, f as SlotStyle, g as SlotStyles, h as StateName, i as States, j as StyleFn, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from '../create-recipe-CPXFo2rk.js';
|
|
9
10
|
import 'react-native-reanimated';
|
|
10
11
|
import '../theme.type-C2gNHpEx.js';
|
|
11
12
|
|
|
@@ -55,8 +56,12 @@ declare function useStyleProps<P extends object>(props: P): [StylePropsOf<P>, Re
|
|
|
55
56
|
* Three accepted forms — a component through `as`, a raw SVG as children, or an image
|
|
56
57
|
* through `source` — and the resolution is the same for all three: an explicit prop, else
|
|
57
58
|
* what the surrounding slot published, else the theme.
|
|
59
|
+
*
|
|
60
|
+
* The props are taken whole rather than destructured, because they are a union: which
|
|
61
|
+
* keys exist depends on the form, and narrowing is what lets `style` be reachable in the
|
|
62
|
+
* one branch that renders a node and unwritable in the two that do not.
|
|
58
63
|
*/
|
|
59
|
-
declare function Icon(
|
|
64
|
+
declare function Icon(props: IconProps): react.JSX.Element;
|
|
60
65
|
declare namespace Icon {
|
|
61
66
|
var displayName: string;
|
|
62
67
|
}
|
|
@@ -378,7 +383,7 @@ declare function resolveSlotAnimation(override: SlotAnimation | undefined, enabl
|
|
|
378
383
|
* off — and it is the only shape that survives `asChild`, where the caller's own element
|
|
379
384
|
* is the pressable and there is no sibling for the primitive to inject.
|
|
380
385
|
*/
|
|
381
|
-
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "
|
|
386
|
+
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "style" | "children" | "disabled"> & ViewStyleProps & {
|
|
382
387
|
isPressed?: boolean;
|
|
383
388
|
isDisabled?: boolean;
|
|
384
389
|
asChild?: boolean;
|
package/dist/system/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Portal,
|
|
3
3
|
PortalContext,
|
|
4
4
|
PortalHost
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-XHZBXYVU.js";
|
|
6
6
|
import {
|
|
7
7
|
FEEDBACK_OVERLAY,
|
|
8
8
|
HIGHLIGHT_DURATION,
|
|
@@ -27,17 +27,20 @@ import {
|
|
|
27
27
|
rippleRadiusFor,
|
|
28
28
|
useFeedback,
|
|
29
29
|
useIconContext
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-WXAME7KB.js";
|
|
31
|
+
import {
|
|
32
|
+
createRecipe
|
|
33
|
+
} from "../chunk-N7C4UNUL.js";
|
|
31
34
|
import {
|
|
32
35
|
Slot,
|
|
33
36
|
childrenToString,
|
|
34
|
-
createRecipe,
|
|
35
37
|
createSlotContext,
|
|
36
38
|
mergeProps,
|
|
37
39
|
mergeRefs,
|
|
38
40
|
useStyleProps
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
+
} from "../chunk-EXX6ATAS.js";
|
|
42
|
+
import "../chunk-A3EGFI6T.js";
|
|
43
|
+
import "../chunk-GGW42MY4.js";
|
|
41
44
|
export {
|
|
42
45
|
FEEDBACK_OVERLAY,
|
|
43
46
|
HIGHLIGHT_DURATION,
|
package/dist/theme/index.cjs
CHANGED
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkBHTFIZTQcjs = require('../chunk-BHTFIZTQ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk57SJ4LJFcjs = require('../chunk-57SJ4LJF.cjs');
|
|
20
|
+
require('../chunk-MC7SY2QH.cjs');
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
@@ -33,4 +34,4 @@ var _chunk6N5JXRUZcjs = require('../chunk-6N5JXRUZ.cjs');
|
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
|
|
36
|
-
exports.ThemeContext =
|
|
37
|
+
exports.ThemeContext = _chunk57SJ4LJFcjs.ThemeContext; exports.XAUIProvider = _chunkBHTFIZTQcjs.XAUIProvider; exports.buildRadius = _chunkBHTFIZTQcjs.buildRadius; exports.buildShadows = _chunkBHTFIZTQcjs.buildShadows; exports.createTheme = _chunkBHTFIZTQcjs.createTheme; exports.defaultTheme = _chunkBHTFIZTQcjs.defaultTheme; exports.deriveColors = _chunkBHTFIZTQcjs.deriveColors; exports.deriveTint = _chunk57SJ4LJFcjs.deriveTint; exports.palette = _chunkBHTFIZTQcjs.palette; exports.primitives = _chunkBHTFIZTQcjs.primitives; exports.sourceKeys = _chunkBHTFIZTQcjs.sourceKeys; exports.tokens = _chunkBHTFIZTQcjs.tokens; exports.useColorMode = _chunk57SJ4LJFcjs.useColorMode; exports.useThemeColor = _chunk57SJ4LJFcjs.useThemeColor; exports.useXAUITheme = _chunk57SJ4LJFcjs.useXAUITheme;
|
package/dist/theme/index.js
CHANGED
|
@@ -9,14 +9,15 @@ import {
|
|
|
9
9
|
primitives,
|
|
10
10
|
sourceKeys,
|
|
11
11
|
tokens
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-MWXE7D4L.js";
|
|
13
13
|
import {
|
|
14
14
|
ThemeContext,
|
|
15
15
|
deriveTint,
|
|
16
16
|
useColorMode,
|
|
17
17
|
useThemeColor,
|
|
18
18
|
useXAUITheme
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-A3EGFI6T.js";
|
|
20
|
+
import "../chunk-GGW42MY4.js";
|
|
20
21
|
export {
|
|
21
22
|
ThemeContext,
|
|
22
23
|
XAUIProvider,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaui/native",
|
|
3
|
-
"version": "0.9.1-alpha.
|
|
3
|
+
"version": "0.9.1-alpha.19",
|
|
4
4
|
"description": "Composition-first React Native UI components with native animations powered by Reanimated",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -47,6 +47,16 @@
|
|
|
47
47
|
"default": "./dist/components/typography/index.cjs"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
"./view": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/components/view/index.d.ts",
|
|
53
|
+
"default": "./dist/components/view/index.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/components/view/index.d.cts",
|
|
57
|
+
"default": "./dist/components/view/index.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
50
60
|
"./system": {
|
|
51
61
|
"import": {
|
|
52
62
|
"types": "./dist/system/index.d.ts",
|