@xaui/native 0.9.1-alpha.18 → 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-MBLPPOSO.js → chunk-4EPS7UBO.js} +18 -17
- package/dist/{chunk-6N5JXRUZ.cjs → chunk-57SJ4LJF.cjs} +2 -20
- package/dist/{chunk-ODH5WAVM.cjs → chunk-6ARON3XT.cjs} +27 -26
- package/dist/{chunk-XJARE6SC.js → chunk-A3EGFI6T.js} +0 -18
- package/dist/{chunk-P5MKOLIW.cjs → chunk-A4VD4MHK.cjs} +73 -73
- 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-VQPP6FCB.js → chunk-WXAME7KB.js} +76 -76
- 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 +2 -1
- package/dist/components/typography/index.d.ts +2 -1
- 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-UwqIG6ES.d.ts → pressable-feedback.type-1K8YEOb8.d.cts} +1 -1
- package/dist/{pressable-feedback.type-lgW5wQx5.d.cts → pressable-feedback.type-BwkKLQlX.d.ts} +1 -1
- 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 +5 -4
- package/dist/system/index.d.ts +5 -4
- 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
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
import { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
1
|
import { X as XAUITheme, a as XAUIColors } from './theme.type-C2gNHpEx.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* R13 — React Native mirrors a layout under RTL through the Start/End properties and only
|
|
6
|
-
* those. A props API is exactly where someone writes `paddingLeft` without thinking, so
|
|
7
|
-
* the type removes the temptation instead of leaving it to a review.
|
|
8
|
-
*/
|
|
9
|
-
type DirectionalStyleKey = 'left' | 'right' | 'paddingLeft' | 'paddingRight' | 'marginLeft' | 'marginRight' | 'borderLeftWidth' | 'borderRightWidth' | 'borderLeftColor' | 'borderRightColor' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius';
|
|
10
|
-
/**
|
|
11
|
-
* `pointerEvents` is a style key *and* a `View` prop. R14 says the component's own prop
|
|
12
|
-
* wins, so it stays the prop it has always been and is not exposed twice — the one name
|
|
13
|
-
* where the two vocabularies collide.
|
|
14
|
-
*/
|
|
15
|
-
type ComponentOwnedStyleKey = 'pointerEvents';
|
|
16
|
-
/**
|
|
17
|
-
* The style keys of a node, exposed as props (R14). Not a maintained list: it derives
|
|
18
|
-
* from the React Native type, minus what R13 forbids.
|
|
19
|
-
*
|
|
20
|
-
* ```ts
|
|
21
|
-
* type CardProps = ViewStyleProps & { variant?: CardVariant }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
type StyleProps<Style> = Omit<Style, DirectionalStyleKey | ComponentOwnedStyleKey>;
|
|
25
|
-
/** A root, or any slot that renders a view. */
|
|
26
|
-
type ViewStyleProps = StyleProps<ViewStyle>;
|
|
27
|
-
/** A text slot — `color`, `fontSize`, `letterSpacing`… */
|
|
28
|
-
type TextStyleProps = StyleProps<TextStyle>;
|
|
29
|
-
/** An image slot — `resizeMode`, `tintColor`… */
|
|
30
|
-
type ImageStyleProps = StyleProps<ImageStyle>;
|
|
2
|
+
import { ViewStyle, TextStyle } from 'react-native';
|
|
31
3
|
|
|
32
4
|
/**
|
|
33
5
|
* A slot is a view or a text node, and a recipe writes one object per slot, so the two
|
|
@@ -114,4 +86,4 @@ type Recipe<Slot extends string, Variant extends string, A extends Axes<Slot>> =
|
|
|
114
86
|
*/
|
|
115
87
|
declare function createRecipe<Slot extends string, Variant extends string, const A extends Axes<Slot>>(config: RecipeConfig<Slot, Variant, A>): Recipe<Slot, Variant, A>;
|
|
116
88
|
|
|
117
|
-
export { type Axes as A, type CompoundVariant as C, type
|
|
89
|
+
export { type Axes as A, type CompoundVariant as C, type Recipe as R, type Selection as S, type TintArgs as T, type VariantColors as V, type ResolveArgs as a, type RecipeConfig as b, createRecipe as c, type ResolvedSelection as d, type ResolvedStyles as e, type SlotStyle as f, type SlotStyles as g, type StateName as h, type States as i, type StyleFn as j, type VariantRole as k, type VariantTokens as l };
|
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
import { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
1
|
import { X as XAUITheme, a as XAUIColors } from './theme.type-C2gNHpEx.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* R13 — React Native mirrors a layout under RTL through the Start/End properties and only
|
|
6
|
-
* those. A props API is exactly where someone writes `paddingLeft` without thinking, so
|
|
7
|
-
* the type removes the temptation instead of leaving it to a review.
|
|
8
|
-
*/
|
|
9
|
-
type DirectionalStyleKey = 'left' | 'right' | 'paddingLeft' | 'paddingRight' | 'marginLeft' | 'marginRight' | 'borderLeftWidth' | 'borderRightWidth' | 'borderLeftColor' | 'borderRightColor' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius';
|
|
10
|
-
/**
|
|
11
|
-
* `pointerEvents` is a style key *and* a `View` prop. R14 says the component's own prop
|
|
12
|
-
* wins, so it stays the prop it has always been and is not exposed twice — the one name
|
|
13
|
-
* where the two vocabularies collide.
|
|
14
|
-
*/
|
|
15
|
-
type ComponentOwnedStyleKey = 'pointerEvents';
|
|
16
|
-
/**
|
|
17
|
-
* The style keys of a node, exposed as props (R14). Not a maintained list: it derives
|
|
18
|
-
* from the React Native type, minus what R13 forbids.
|
|
19
|
-
*
|
|
20
|
-
* ```ts
|
|
21
|
-
* type CardProps = ViewStyleProps & { variant?: CardVariant }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
type StyleProps<Style> = Omit<Style, DirectionalStyleKey | ComponentOwnedStyleKey>;
|
|
25
|
-
/** A root, or any slot that renders a view. */
|
|
26
|
-
type ViewStyleProps = StyleProps<ViewStyle>;
|
|
27
|
-
/** A text slot — `color`, `fontSize`, `letterSpacing`… */
|
|
28
|
-
type TextStyleProps = StyleProps<TextStyle>;
|
|
29
|
-
/** An image slot — `resizeMode`, `tintColor`… */
|
|
30
|
-
type ImageStyleProps = StyleProps<ImageStyle>;
|
|
2
|
+
import { ViewStyle, TextStyle } from 'react-native';
|
|
31
3
|
|
|
32
4
|
/**
|
|
33
5
|
* A slot is a view or a text node, and a recipe writes one object per slot, so the two
|
|
@@ -114,4 +86,4 @@ type Recipe<Slot extends string, Variant extends string, A extends Axes<Slot>> =
|
|
|
114
86
|
*/
|
|
115
87
|
declare function createRecipe<Slot extends string, Variant extends string, const A extends Axes<Slot>>(config: RecipeConfig<Slot, Variant, A>): Recipe<Slot, Variant, A>;
|
|
116
88
|
|
|
117
|
-
export { type Axes as A, type CompoundVariant as C, type
|
|
89
|
+
export { type Axes as A, type CompoundVariant as C, type Recipe as R, type Selection as S, type TintArgs as T, type VariantColors as V, type ResolveArgs as a, type RecipeConfig as b, createRecipe as c, type ResolvedSelection as d, type ResolvedStyles as e, type SlotStyle as f, type SlotStyles as g, type StateName as h, type States as i, type StyleFn as j, type VariantRole as k, type VariantTokens as l };
|
package/dist/index.cjs
CHANGED
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6ARON3XTcjs = require('./chunk-6ARON3XT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkUBA6AEY6cjs = require('./chunk-UBA6AEY6.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
var _chunkBFB6K4M7cjs = require('./chunk-BFB6K4M7.cjs');
|
|
16
17
|
|
|
17
|
-
var _chunkM2VYRHVScjs = require('./chunk-M2VYRHVS.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
var _chunk2WMVDMFVcjs = require('./chunk-2WMVDMFV.cjs');
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
|
|
@@ -39,20 +40,21 @@ var _chunkM2VYRHVScjs = require('./chunk-M2VYRHVS.cjs');
|
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
var _chunkP5MKOLIWcjs = require('./chunk-P5MKOLIW.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
var _chunkA4VD4MHKcjs = require('./chunk-A4VD4MHK.cjs');
|
|
46
47
|
|
|
47
48
|
|
|
49
|
+
var _chunkUVO4GFSWcjs = require('./chunk-UVO4GFSW.cjs');
|
|
48
50
|
|
|
49
51
|
|
|
50
52
|
|
|
51
|
-
var _chunk5SU7FXWHcjs = require('./chunk-5SU7FXWH.cjs');
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
|
|
57
|
+
var _chunkEVXZGNPAcjs = require('./chunk-EVXZGNPA.cjs');
|
|
56
58
|
|
|
57
59
|
|
|
58
60
|
|
|
@@ -60,14 +62,19 @@ var _chunk5SU7FXWHcjs = require('./chunk-5SU7FXWH.cjs');
|
|
|
60
62
|
|
|
61
63
|
|
|
62
64
|
|
|
63
|
-
var _chunkBHAHJHAIcjs = require('./chunk-BHAHJHAI.cjs');
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
|
|
69
|
+
var _chunkBHTFIZTQcjs = require('./chunk-BHTFIZTQ.cjs');
|
|
68
70
|
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
77
|
+
require('./chunk-MC7SY2QH.cjs');
|
|
71
78
|
|
|
72
79
|
// src/hooks/use-controllable-state.ts
|
|
73
80
|
var _react = require('react');
|
|
@@ -97,7 +104,7 @@ function useControllableState({
|
|
|
97
104
|
function useControlWarning(isControlled) {
|
|
98
105
|
const wasControlled = _react.useRef.call(void 0, isControlled);
|
|
99
106
|
if (wasControlled.current !== isControlled) {
|
|
100
|
-
|
|
107
|
+
_chunk6ARON3XTcjs.warnDev.call(void 0,
|
|
101
108
|
`a component switched from ${wasControlled.current ? "controlled" : "uncontrolled"} to ${isControlled ? "controlled" : "uncontrolled"}. Decide for the life of the component: pass \`value\` always, or never. Passing \`undefined\` for a value you do control reads as "uncontrolled" here.`
|
|
102
109
|
);
|
|
103
110
|
wasControlled.current = isControlled;
|
|
@@ -107,7 +114,7 @@ function useControlWarning(isControlled) {
|
|
|
107
114
|
// src/hooks/use-merged-ref.ts
|
|
108
115
|
|
|
109
116
|
function useMergedRef(...refs) {
|
|
110
|
-
return _react.useMemo.call(void 0, () =>
|
|
117
|
+
return _react.useMemo.call(void 0, () => _chunkEVXZGNPAcjs.mergeRefs.call(void 0, ...refs), refs);
|
|
111
118
|
}
|
|
112
119
|
|
|
113
120
|
// src/hooks/use-previous.ts
|
|
@@ -178,4 +185,6 @@ function usePrevious(value) {
|
|
|
178
185
|
|
|
179
186
|
|
|
180
187
|
|
|
181
|
-
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
exports.Button = _chunk6ARON3XTcjs.Button; exports.Column = _chunkBFB6K4M7cjs.Column; 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.Row = _chunkBFB6K4M7cjs.Row; exports.SCALE_REFERENCE_WIDTH = _chunkA4VD4MHKcjs.SCALE_REFERENCE_WIDTH; exports.Slot = _chunkEVXZGNPAcjs.Slot; exports.TextSpan = _chunkUBA6AEY6cjs.TextSpan; exports.ThemeContext = _chunk57SJ4LJFcjs.ThemeContext; exports.Typography = _chunkUBA6AEY6cjs.Typography; exports.XAUIProvider = _chunkBHTFIZTQcjs.XAUIProvider; exports.buildRadius = _chunkBHTFIZTQcjs.buildRadius; exports.buildShadows = _chunkBHTFIZTQcjs.buildShadows; exports.buttonRecipe = _chunk6ARON3XTcjs.buttonRecipe; exports.childrenToString = _chunkEVXZGNPAcjs.childrenToString; exports.createRecipe = _chunkUVO4GFSWcjs.createRecipe; exports.createSlotContext = _chunkEVXZGNPAcjs.createSlotContext; exports.createTheme = _chunkBHTFIZTQcjs.createTheme; exports.defaultTheme = _chunkBHTFIZTQcjs.defaultTheme; exports.deriveColors = _chunkBHTFIZTQcjs.deriveColors; exports.deriveTint = _chunk57SJ4LJFcjs.deriveTint; exports.markOverlay = _chunkA4VD4MHKcjs.markOverlay; exports.mergeProps = _chunkEVXZGNPAcjs.mergeProps; exports.mergeRefs = _chunkEVXZGNPAcjs.mergeRefs; exports.palette = _chunkBHTFIZTQcjs.palette; exports.pressScaleFor = _chunkA4VD4MHKcjs.pressScaleFor; exports.primitives = _chunkBHTFIZTQcjs.primitives; exports.resolveAnimation = _chunkA4VD4MHKcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkA4VD4MHKcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkA4VD4MHKcjs.rippleRadiusFor; exports.sourceKeys = _chunkBHTFIZTQcjs.sourceKeys; exports.tokens = _chunkBHTFIZTQcjs.tokens; exports.typographyRecipe = _chunkUBA6AEY6cjs.typographyRecipe; exports.useButton = _chunk6ARON3XTcjs.useButton; exports.useColorMode = _chunk57SJ4LJFcjs.useColorMode; exports.useControllableState = useControllableState; exports.useFeedback = _chunkA4VD4MHKcjs.useFeedback; exports.useIconContext = _chunkA4VD4MHKcjs.useIconContext; exports.useMergedRef = useMergedRef; exports.usePressState = _chunk6ARON3XTcjs.usePressState; exports.usePrevious = usePrevious; exports.useStyleProps = _chunkEVXZGNPAcjs.useStyleProps; exports.useThemeColor = _chunk57SJ4LJFcjs.useThemeColor; exports.useXAUITheme = _chunk57SJ4LJFcjs.useXAUITheme;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export { Button, ButtonContextValue, ButtonIconProps, ButtonLabelProps, ButtonProps, ButtonSize, ButtonSlot, ButtonSpinnerProps, ButtonVariant, buttonRecipe, useButton } from './components/button/index.cjs';
|
|
2
2
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.cjs';
|
|
3
|
+
export { AxisProps, Column, ColumnProps, Row, RowProps } from './components/view/index.cjs';
|
|
3
4
|
import { RefCallback } from 'react';
|
|
4
5
|
import { PossibleRef } from './system/index.cjs';
|
|
5
6
|
export { AsChildProps, FEEDBACK_OVERLAY, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, SCALE_REFERENCE_WIDTH, Slot, SlotProps, childrenToString, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps } from './system/index.cjs';
|
|
6
7
|
import { GestureResponderEvent } from 'react-native';
|
|
7
|
-
export { A as AnimationConfig, c as AnimationProp, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, P as PressableFeedbackProps, R as RadiusStyle, d as ResolvedAnimation, e as RippleWave, S as SlotAnimation } from './pressable-feedback.type-
|
|
8
|
-
export { A as Axes, C as CompoundVariant,
|
|
8
|
+
export { A as AnimationConfig, c as AnimationProp, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, P as PressableFeedbackProps, R as RadiusStyle, d as ResolvedAnimation, e as RippleWave, S as SlotAnimation } from './pressable-feedback.type-1K8YEOb8.cjs';
|
|
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';
|
|
10
|
+
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps, V as ViewStyleProps } from './style-props.type-B1BG5TCm.cjs';
|
|
9
11
|
export { ColorModePreference, PaletteFamily, PaletteShade, ThemeContext, XAUIProvider, XAUIProviderProps, XAUITint, buildRadius, buildShadows, createTheme, defaultTheme, deriveColors, deriveTint, palette, primitives, sourceKeys, tokens, useColorMode, useThemeColor, useXAUITheme } from './theme/index.cjs';
|
|
10
12
|
export { C as ColorMode, F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, a as XAUIColors, c as XAUIDerivedColors, d as XAUIPrimitiveColors, e as XAUIRadius, f as XAUIShadow, g as XAUISourceColors, X as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C2gNHpEx.cjs';
|
|
11
13
|
import 'react-native-reanimated';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export { Button, ButtonContextValue, ButtonIconProps, ButtonLabelProps, ButtonProps, ButtonSize, ButtonSlot, ButtonSpinnerProps, ButtonVariant, buttonRecipe, useButton } from './components/button/index.js';
|
|
2
2
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.js';
|
|
3
|
+
export { AxisProps, Column, ColumnProps, Row, RowProps } from './components/view/index.js';
|
|
3
4
|
import { RefCallback } from 'react';
|
|
4
5
|
import { PossibleRef } from './system/index.js';
|
|
5
6
|
export { AsChildProps, FEEDBACK_OVERLAY, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, SCALE_REFERENCE_WIDTH, Slot, SlotProps, childrenToString, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps } from './system/index.js';
|
|
6
7
|
import { GestureResponderEvent } from 'react-native';
|
|
7
|
-
export { A as AnimationConfig, c as AnimationProp, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, P as PressableFeedbackProps, R as RadiusStyle, d as ResolvedAnimation, e as RippleWave, S as SlotAnimation } from './pressable-feedback.type-
|
|
8
|
-
export { A as Axes, C as CompoundVariant,
|
|
8
|
+
export { A as AnimationConfig, c as AnimationProp, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, P as PressableFeedbackProps, R as RadiusStyle, d as ResolvedAnimation, e as RippleWave, S as SlotAnimation } from './pressable-feedback.type-BwkKLQlX.js';
|
|
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';
|
|
10
|
+
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps, V as ViewStyleProps } from './style-props.type-B1BG5TCm.js';
|
|
9
11
|
export { ColorModePreference, PaletteFamily, PaletteShade, ThemeContext, XAUIProvider, XAUIProviderProps, XAUITint, buildRadius, buildShadows, createTheme, defaultTheme, deriveColors, deriveTint, palette, primitives, sourceKeys, tokens, useColorMode, useThemeColor, useXAUITheme } from './theme/index.js';
|
|
10
12
|
export { C as ColorMode, F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, a as XAUIColors, c as XAUIDerivedColors, d as XAUIPrimitiveColors, e as XAUIRadius, f as XAUIShadow, g as XAUISourceColors, X as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C2gNHpEx.js';
|
|
11
13
|
import 'react-native-reanimated';
|
package/dist/index.js
CHANGED
|
@@ -4,17 +4,21 @@ import {
|
|
|
4
4
|
useButton,
|
|
5
5
|
usePressState,
|
|
6
6
|
warnDev
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4EPS7UBO.js";
|
|
8
8
|
import {
|
|
9
9
|
TextSpan,
|
|
10
10
|
Typography,
|
|
11
11
|
typographyRecipe
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RMLFMRWL.js";
|
|
13
|
+
import {
|
|
14
|
+
Column,
|
|
15
|
+
Row
|
|
16
|
+
} from "./chunk-MAYVGK6W.js";
|
|
13
17
|
import {
|
|
14
18
|
Portal,
|
|
15
19
|
PortalContext,
|
|
16
20
|
PortalHost
|
|
17
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XHZBXYVU.js";
|
|
18
22
|
import {
|
|
19
23
|
FEEDBACK_OVERLAY,
|
|
20
24
|
HIGHLIGHT_DURATION,
|
|
@@ -39,16 +43,18 @@ import {
|
|
|
39
43
|
rippleRadiusFor,
|
|
40
44
|
useFeedback,
|
|
41
45
|
useIconContext
|
|
42
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-WXAME7KB.js";
|
|
47
|
+
import {
|
|
48
|
+
createRecipe
|
|
49
|
+
} from "./chunk-N7C4UNUL.js";
|
|
43
50
|
import {
|
|
44
51
|
Slot,
|
|
45
52
|
childrenToString,
|
|
46
|
-
createRecipe,
|
|
47
53
|
createSlotContext,
|
|
48
54
|
mergeProps,
|
|
49
55
|
mergeRefs,
|
|
50
56
|
useStyleProps
|
|
51
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-EXX6ATAS.js";
|
|
52
58
|
import {
|
|
53
59
|
XAUIProvider,
|
|
54
60
|
buildRadius,
|
|
@@ -60,14 +66,15 @@ import {
|
|
|
60
66
|
primitives,
|
|
61
67
|
sourceKeys,
|
|
62
68
|
tokens
|
|
63
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-MWXE7D4L.js";
|
|
64
70
|
import {
|
|
65
71
|
ThemeContext,
|
|
66
72
|
deriveTint,
|
|
67
73
|
useColorMode,
|
|
68
74
|
useThemeColor,
|
|
69
75
|
useXAUITheme
|
|
70
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-A3EGFI6T.js";
|
|
77
|
+
import "./chunk-GGW42MY4.js";
|
|
71
78
|
|
|
72
79
|
// src/hooks/use-controllable-state.ts
|
|
73
80
|
import { useCallback, useRef, useState } from "react";
|
|
@@ -121,6 +128,7 @@ function usePrevious(value) {
|
|
|
121
128
|
}
|
|
122
129
|
export {
|
|
123
130
|
Button,
|
|
131
|
+
Column,
|
|
124
132
|
FEEDBACK_OVERLAY,
|
|
125
133
|
HIGHLIGHT_DURATION,
|
|
126
134
|
HIGHLIGHT_OPACITY,
|
|
@@ -139,6 +147,7 @@ export {
|
|
|
139
147
|
RIPPLE_FADE_OUT_DELAY,
|
|
140
148
|
RIPPLE_OPACITY,
|
|
141
149
|
RIPPLE_START_SCALE,
|
|
150
|
+
Row,
|
|
142
151
|
SCALE_REFERENCE_WIDTH,
|
|
143
152
|
Slot,
|
|
144
153
|
TextSpan,
|
package/dist/{pressable-feedback.type-UwqIG6ES.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
|
/**
|
package/dist/{pressable-feedback.type-lgW5wQx5.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
|
/**
|
|
@@ -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
|
|
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
|
|
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",
|