@xaui/native 0.9.1-alpha.12 → 0.9.1-alpha.14

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.
@@ -1,8 +1,36 @@
1
1
  import { ComponentType, ReactNode } from 'react';
2
- import { ImageSourcePropType, StyleProp, ImageStyle, PressableProps, ViewStyle, TextStyle } from 'react-native';
2
+ import { ImageStyle, TextStyle, ViewStyle, ImageSourcePropType, StyleProp, PressableProps } from 'react-native';
3
3
  import { SharedValue } from 'react-native-reanimated';
4
4
  import { g as XAUITheme, X as XAUIColors } from './theme.type-C9bFJKFm.js';
5
5
 
6
+ /**
7
+ * R13 — React Native mirrors a layout under RTL through the Start/End properties and only
8
+ * those. A props API is exactly where someone writes `paddingLeft` without thinking, so
9
+ * the type removes the temptation instead of leaving it to a review.
10
+ */
11
+ type DirectionalStyleKey = 'left' | 'right' | 'paddingLeft' | 'paddingRight' | 'marginLeft' | 'marginRight' | 'borderLeftWidth' | 'borderRightWidth' | 'borderLeftColor' | 'borderRightColor' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius';
12
+ /**
13
+ * `pointerEvents` is a style key *and* a `View` prop. R14 says the component's own prop
14
+ * wins, so it stays the prop it has always been and is not exposed twice — the one name
15
+ * where the two vocabularies collide.
16
+ */
17
+ type ComponentOwnedStyleKey = 'pointerEvents';
18
+ /**
19
+ * The style keys of a node, exposed as props (R14). Not a maintained list: it derives
20
+ * from the React Native type, minus what R13 forbids.
21
+ *
22
+ * ```ts
23
+ * type CardProps = ViewStyleProps & { variant?: CardVariant }
24
+ * ```
25
+ */
26
+ type StyleProps<Style> = Omit<Style, DirectionalStyleKey | ComponentOwnedStyleKey>;
27
+ /** A root, or any slot that renders a view. */
28
+ type ViewStyleProps = StyleProps<ViewStyle>;
29
+ /** A text slot — `color`, `fontSize`, `letterSpacing`… */
30
+ type TextStyleProps = StyleProps<TextStyle>;
31
+ /** An image slot — `resizeMode`, `tintColor`… */
32
+ type ImageStyleProps = StyleProps<ImageStyle>;
33
+
6
34
  /**
7
35
  * The props Lucide, Ionicons and `react-native-vector-icons` all accept — the shape
8
36
  * `as` is handed. It is a convention rather than an interface anyone published, which is
@@ -12,7 +40,12 @@ type IconComponentProps = {
12
40
  size?: number;
13
41
  color?: string;
14
42
  };
15
- type IconProps = {
43
+ /**
44
+ * R14 reaches the **`source` form only**, exactly like `style` below and for the same
45
+ * reason: it is the one of the three forms where we render the node. On the other two,
46
+ * `size` and `color` are what shapes the icon.
47
+ */
48
+ type IconProps = ImageStyleProps & {
16
49
  /** An icon component. `size` and `color` are injected into it. */
17
50
  as?: ComponentType<IconComponentProps>;
18
51
  /** A raw `react-native-svg` element, cloned with the resolved size and colour. */
@@ -59,7 +92,12 @@ type ResolvedAnimation = {
59
92
  /** Propagated to descendants through context. */
60
93
  disableAll: boolean;
61
94
  };
62
- type PressableFeedbackProps = Omit<PressableProps, 'style' | 'children' | 'disabled'> & {
95
+ /**
96
+ * R14 — it renders a `Pressable`, so it takes that node's style keys as props. The
97
+ * primitive every pressable component in the library is built on cannot be the one place
98
+ * where `padding={16}` has to become an object again.
99
+ */
100
+ type PressableFeedbackProps = Omit<PressableProps, 'style' | 'children' | 'disabled'> & ViewStyleProps & {
63
101
  /** Controlled: the root owns the state, because its recipe resolves on it (R5). */
64
102
  isPressed?: boolean;
65
103
  /** R8: `disabled` is not part of the public vocabulary, `isX` is. */
@@ -154,34 +192,6 @@ type FeedbackContext = {
154
192
  waves?: readonly [RippleWave, RippleWave];
155
193
  };
156
194
 
157
- /**
158
- * R13 — React Native mirrors a layout under RTL through the Start/End properties and only
159
- * those. A props API is exactly where someone writes `paddingLeft` without thinking, so
160
- * the type removes the temptation instead of leaving it to a review.
161
- */
162
- type DirectionalStyleKey = 'left' | 'right' | 'paddingLeft' | 'paddingRight' | 'marginLeft' | 'marginRight' | 'borderLeftWidth' | 'borderRightWidth' | 'borderLeftColor' | 'borderRightColor' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius';
163
- /**
164
- * `pointerEvents` is a style key *and* a `View` prop. R14 says the component's own prop
165
- * wins, so it stays the prop it has always been and is not exposed twice — the one name
166
- * where the two vocabularies collide.
167
- */
168
- type ComponentOwnedStyleKey = 'pointerEvents';
169
- /**
170
- * The style keys of a node, exposed as props (R14). Not a maintained list: it derives
171
- * from the React Native type, minus what R13 forbids.
172
- *
173
- * ```ts
174
- * type CardProps = ViewStyleProps & { variant?: CardVariant }
175
- * ```
176
- */
177
- type StyleProps<Style> = Omit<Style, DirectionalStyleKey | ComponentOwnedStyleKey>;
178
- /** A root, or any slot that renders a view. */
179
- type ViewStyleProps = StyleProps<ViewStyle>;
180
- /** A text slot — `color`, `fontSize`, `letterSpacing`… */
181
- type TextStyleProps = StyleProps<TextStyle>;
182
- /** An image slot — `resizeMode`, `tintColor`… */
183
- type ImageStyleProps = StyleProps<ImageStyle>;
184
-
185
195
  /**
186
196
  * A slot is a view or a text node, and a recipe writes one object per slot, so the two
187
197
  * RN style shapes are merged rather than discriminated per slot.
package/dist/index.cjs CHANGED
@@ -4,12 +4,12 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkCTULMYVIcjs = require('./chunk-CTULMYVI.cjs');
7
+ var _chunkMMSNVFXUcjs = require('./chunk-MMSNVFXU.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunk2FOEFUPMcjs = require('./chunk-2FOEFUPM.cjs');
12
+ var _chunkF2TPUVVOcjs = require('./chunk-F2TPUVVO.cjs');
13
13
 
14
14
 
15
15
 
@@ -41,7 +41,7 @@ var _chunk2FOEFUPMcjs = require('./chunk-2FOEFUPM.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunkGZIOB63Ocjs = require('./chunk-GZIOB63O.cjs');
44
+ var _chunkGRXC6J5Mcjs = require('./chunk-GRXC6J5M.cjs');
45
45
 
46
46
 
47
47
 
@@ -53,14 +53,14 @@ var _chunkGZIOB63Ocjs = require('./chunk-GZIOB63O.cjs');
53
53
 
54
54
 
55
55
 
56
- var _chunkESOOMXV4cjs = require('./chunk-ESOOMXV4.cjs');
56
+ var _chunkDDYMIWLWcjs = require('./chunk-DDYMIWLW.cjs');
57
57
 
58
58
 
59
59
 
60
60
 
61
61
 
62
62
 
63
- var _chunkFDUI4IAMcjs = require('./chunk-FDUI4IAM.cjs');
63
+ var _chunk6N5JXRUZcjs = require('./chunk-6N5JXRUZ.cjs');
64
64
 
65
65
  // src/hooks/use-controllable-state.ts
66
66
  var _react = require('react');
@@ -90,7 +90,7 @@ function useControllableState({
90
90
  function useControlWarning(isControlled) {
91
91
  const wasControlled = _react.useRef.call(void 0, isControlled);
92
92
  if (wasControlled.current !== isControlled) {
93
- _chunkCTULMYVIcjs.warnDev.call(void 0,
93
+ _chunkMMSNVFXUcjs.warnDev.call(void 0,
94
94
  `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.`
95
95
  );
96
96
  wasControlled.current = isControlled;
@@ -100,7 +100,7 @@ function useControlWarning(isControlled) {
100
100
  // src/hooks/use-merged-ref.ts
101
101
 
102
102
  function useMergedRef(...refs) {
103
- return _react.useMemo.call(void 0, () => _chunkGZIOB63Ocjs.mergeRefs.call(void 0, ...refs), refs);
103
+ return _react.useMemo.call(void 0, () => _chunkGRXC6J5Mcjs.mergeRefs.call(void 0, ...refs), refs);
104
104
  }
105
105
 
106
106
  // src/hooks/use-previous.ts
@@ -168,4 +168,4 @@ function usePrevious(value) {
168
168
 
169
169
 
170
170
 
171
- exports.Button = _chunkCTULMYVIcjs.Button; exports.FEEDBACK_OVERLAY = _chunkGZIOB63Ocjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkGZIOB63Ocjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkGZIOB63Ocjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkGZIOB63Ocjs.Icon; exports.IconContext = _chunkGZIOB63Ocjs.IconContext; exports.PRESS_DURATION = _chunkGZIOB63Ocjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkGZIOB63Ocjs.PRESS_SCALE; exports.Portal = _chunk2FOEFUPMcjs.Portal; exports.PortalContext = _chunk2FOEFUPMcjs.PortalContext; exports.PortalHost = _chunk2FOEFUPMcjs.PortalHost; exports.PressableFeedback = _chunkGZIOB63Ocjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkGZIOB63Ocjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkGZIOB63Ocjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkGZIOB63Ocjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkGZIOB63Ocjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkGZIOB63Ocjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkGZIOB63Ocjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkGZIOB63Ocjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkGZIOB63Ocjs.SCALE_REFERENCE_WIDTH; exports.Slot = _chunkGZIOB63Ocjs.Slot; exports.ThemeContext = _chunkFDUI4IAMcjs.ThemeContext; exports.XAUIProvider = _chunkESOOMXV4cjs.XAUIProvider; exports.buildRadius = _chunkESOOMXV4cjs.buildRadius; exports.buildShadows = _chunkESOOMXV4cjs.buildShadows; exports.buttonRecipe = _chunkCTULMYVIcjs.buttonRecipe; exports.childrenToString = _chunkGZIOB63Ocjs.childrenToString; exports.createRecipe = _chunkGZIOB63Ocjs.createRecipe; exports.createSlotContext = _chunkGZIOB63Ocjs.createSlotContext; exports.createTheme = _chunkESOOMXV4cjs.createTheme; exports.defaultTheme = _chunkESOOMXV4cjs.defaultTheme; exports.deriveColors = _chunkESOOMXV4cjs.deriveColors; exports.deriveTint = _chunkFDUI4IAMcjs.deriveTint; exports.markOverlay = _chunkGZIOB63Ocjs.markOverlay; exports.mergeProps = _chunkGZIOB63Ocjs.mergeProps; exports.mergeRefs = _chunkGZIOB63Ocjs.mergeRefs; exports.palette = _chunkESOOMXV4cjs.palette; exports.pressScaleFor = _chunkGZIOB63Ocjs.pressScaleFor; exports.primitives = _chunkESOOMXV4cjs.primitives; exports.resolveAnimation = _chunkGZIOB63Ocjs.resolveAnimation; exports.resolveSlotAnimation = _chunkGZIOB63Ocjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkGZIOB63Ocjs.rippleRadiusFor; exports.sourceKeys = _chunkESOOMXV4cjs.sourceKeys; exports.tokens = _chunkESOOMXV4cjs.tokens; exports.useButton = _chunkCTULMYVIcjs.useButton; exports.useColorMode = _chunkFDUI4IAMcjs.useColorMode; exports.useControllableState = useControllableState; exports.useFeedback = _chunkGZIOB63Ocjs.useFeedback; exports.useIconContext = _chunkGZIOB63Ocjs.useIconContext; exports.useMergedRef = useMergedRef; exports.usePressState = _chunkCTULMYVIcjs.usePressState; exports.usePrevious = usePrevious; exports.useStyleProps = _chunkGZIOB63Ocjs.useStyleProps; exports.useThemeColor = _chunkFDUI4IAMcjs.useThemeColor; exports.useXAUITheme = _chunkFDUI4IAMcjs.useXAUITheme;
171
+ exports.Button = _chunkMMSNVFXUcjs.Button; exports.FEEDBACK_OVERLAY = _chunkGRXC6J5Mcjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkGRXC6J5Mcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkGRXC6J5Mcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkGRXC6J5Mcjs.Icon; exports.IconContext = _chunkGRXC6J5Mcjs.IconContext; exports.PRESS_DURATION = _chunkGRXC6J5Mcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkGRXC6J5Mcjs.PRESS_SCALE; exports.Portal = _chunkF2TPUVVOcjs.Portal; exports.PortalContext = _chunkF2TPUVVOcjs.PortalContext; exports.PortalHost = _chunkF2TPUVVOcjs.PortalHost; exports.PressableFeedback = _chunkGRXC6J5Mcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkGRXC6J5Mcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkGRXC6J5Mcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkGRXC6J5Mcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkGRXC6J5Mcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkGRXC6J5Mcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkGRXC6J5Mcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkGRXC6J5Mcjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkGRXC6J5Mcjs.SCALE_REFERENCE_WIDTH; exports.Slot = _chunkGRXC6J5Mcjs.Slot; exports.ThemeContext = _chunk6N5JXRUZcjs.ThemeContext; exports.XAUIProvider = _chunkDDYMIWLWcjs.XAUIProvider; exports.buildRadius = _chunkDDYMIWLWcjs.buildRadius; exports.buildShadows = _chunkDDYMIWLWcjs.buildShadows; exports.buttonRecipe = _chunkMMSNVFXUcjs.buttonRecipe; exports.childrenToString = _chunkGRXC6J5Mcjs.childrenToString; exports.createRecipe = _chunkGRXC6J5Mcjs.createRecipe; exports.createSlotContext = _chunkGRXC6J5Mcjs.createSlotContext; exports.createTheme = _chunkDDYMIWLWcjs.createTheme; exports.defaultTheme = _chunkDDYMIWLWcjs.defaultTheme; exports.deriveColors = _chunkDDYMIWLWcjs.deriveColors; exports.deriveTint = _chunk6N5JXRUZcjs.deriveTint; exports.markOverlay = _chunkGRXC6J5Mcjs.markOverlay; exports.mergeProps = _chunkGRXC6J5Mcjs.mergeProps; exports.mergeRefs = _chunkGRXC6J5Mcjs.mergeRefs; exports.palette = _chunkDDYMIWLWcjs.palette; exports.pressScaleFor = _chunkGRXC6J5Mcjs.pressScaleFor; exports.primitives = _chunkDDYMIWLWcjs.primitives; exports.resolveAnimation = _chunkGRXC6J5Mcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkGRXC6J5Mcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkGRXC6J5Mcjs.rippleRadiusFor; exports.sourceKeys = _chunkDDYMIWLWcjs.sourceKeys; exports.tokens = _chunkDDYMIWLWcjs.tokens; exports.useButton = _chunkMMSNVFXUcjs.useButton; exports.useColorMode = _chunk6N5JXRUZcjs.useColorMode; exports.useControllableState = useControllableState; exports.useFeedback = _chunkGRXC6J5Mcjs.useFeedback; exports.useIconContext = _chunkGRXC6J5Mcjs.useIconContext; exports.useMergedRef = useMergedRef; exports.usePressState = _chunkMMSNVFXUcjs.usePressState; exports.usePrevious = usePrevious; exports.useStyleProps = _chunkGRXC6J5Mcjs.useStyleProps; exports.useThemeColor = _chunk6N5JXRUZcjs.useThemeColor; exports.useXAUITheme = _chunk6N5JXRUZcjs.useXAUITheme;
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { RefCallback } from 'react';
3
3
  import { PossibleRef } from './system/index.cjs';
4
4
  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';
5
5
  import { GestureResponderEvent } from 'react-native';
6
- export { A as AnimationConfig, c as AnimationProp, i as Axes, C as CompoundVariant, D as DirectionalStyleKey, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, u as ImageStyleProps, P as PressableFeedbackProps, R as RadiusStyle, g as Recipe, j as RecipeConfig, h as ResolveArgs, d as ResolvedAnimation, k as ResolvedSelection, l as ResolvedStyles, e as RippleWave, m as Selection, S as SlotAnimation, n as SlotStyle, o as SlotStyles, p as StateName, q as States, r as StyleFn, v as StyleProps, w as TextStyleProps, T as TintArgs, V as VariantColors, s as VariantRole, t as VariantTokens, x as ViewStyleProps, f as createRecipe } from './create-recipe-oiLAlJ4u.cjs';
6
+ export { A as AnimationConfig, c as AnimationProp, i as Axes, C as CompoundVariant, D as DirectionalStyleKey, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, u as ImageStyleProps, P as PressableFeedbackProps, R as RadiusStyle, g as Recipe, j as RecipeConfig, h as ResolveArgs, d as ResolvedAnimation, k as ResolvedSelection, l as ResolvedStyles, e as RippleWave, m as Selection, S as SlotAnimation, n as SlotStyle, o as SlotStyles, p as StateName, q as States, r as StyleFn, v as StyleProps, w as TextStyleProps, T as TintArgs, V as VariantColors, s as VariantRole, t as VariantTokens, x as ViewStyleProps, f as createRecipe } from './create-recipe-BcUu9b2I.cjs';
7
7
  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';
8
8
  export { C as ColorMode, F as FontSizeKey, a as FontWeightKey, R as RadiusKey, S as Size, X as XAUIColors, b as XAUIDerivedColors, c as XAUIPrimitiveColors, d as XAUIRadius, e as XAUIShadow, f as XAUISourceColors, g as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C9bFJKFm.cjs';
9
9
  import 'react-native-reanimated';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { RefCallback } from 'react';
3
3
  import { PossibleRef } from './system/index.js';
4
4
  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';
5
5
  import { GestureResponderEvent } from 'react-native';
6
- export { A as AnimationConfig, c as AnimationProp, i as Axes, C as CompoundVariant, D as DirectionalStyleKey, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, u as ImageStyleProps, P as PressableFeedbackProps, R as RadiusStyle, g as Recipe, j as RecipeConfig, h as ResolveArgs, d as ResolvedAnimation, k as ResolvedSelection, l as ResolvedStyles, e as RippleWave, m as Selection, S as SlotAnimation, n as SlotStyle, o as SlotStyles, p as StateName, q as States, r as StyleFn, v as StyleProps, w as TextStyleProps, T as TintArgs, V as VariantColors, s as VariantRole, t as VariantTokens, x as ViewStyleProps, f as createRecipe } from './create-recipe-3OPwcC6P.js';
6
+ export { A as AnimationConfig, c as AnimationProp, i as Axes, C as CompoundVariant, D as DirectionalStyleKey, F as FeedbackContext, I as IconComponentProps, a as IconContextValue, b as IconProps, u as ImageStyleProps, P as PressableFeedbackProps, R as RadiusStyle, g as Recipe, j as RecipeConfig, h as ResolveArgs, d as ResolvedAnimation, k as ResolvedSelection, l as ResolvedStyles, e as RippleWave, m as Selection, S as SlotAnimation, n as SlotStyle, o as SlotStyles, p as StateName, q as States, r as StyleFn, v as StyleProps, w as TextStyleProps, T as TintArgs, V as VariantColors, s as VariantRole, t as VariantTokens, x as ViewStyleProps, f as createRecipe } from './create-recipe-DD9W6m9b.js';
7
7
  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';
8
8
  export { C as ColorMode, F as FontSizeKey, a as FontWeightKey, R as RadiusKey, S as Size, X as XAUIColors, b as XAUIDerivedColors, c as XAUIPrimitiveColors, d as XAUIRadius, e as XAUIShadow, f as XAUISourceColors, g as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C9bFJKFm.js';
9
9
  import 'react-native-reanimated';
package/dist/index.js CHANGED
@@ -4,12 +4,12 @@ import {
4
4
  useButton,
5
5
  usePressState,
6
6
  warnDev
7
- } from "./chunk-SKVKAJ5Y.js";
7
+ } from "./chunk-H2USQQUD.js";
8
8
  import {
9
9
  Portal,
10
10
  PortalContext,
11
11
  PortalHost
12
- } from "./chunk-TO6DAGFB.js";
12
+ } from "./chunk-5XAFRH2H.js";
13
13
  import {
14
14
  FEEDBACK_OVERLAY,
15
15
  HIGHLIGHT_DURATION,
@@ -41,7 +41,7 @@ import {
41
41
  useFeedback,
42
42
  useIconContext,
43
43
  useStyleProps
44
- } from "./chunk-KLHHV4RU.js";
44
+ } from "./chunk-CLU6QDYC.js";
45
45
  import {
46
46
  XAUIProvider,
47
47
  buildRadius,
@@ -53,14 +53,14 @@ import {
53
53
  primitives,
54
54
  sourceKeys,
55
55
  tokens
56
- } from "./chunk-5TKZV7IC.js";
56
+ } from "./chunk-4O3PXFQ7.js";
57
57
  import {
58
58
  ThemeContext,
59
59
  deriveTint,
60
60
  useColorMode,
61
61
  useThemeColor,
62
62
  useXAUITheme
63
- } from "./chunk-EMXBFHIP.js";
63
+ } from "./chunk-XJARE6SC.js";
64
64
 
65
65
  // src/hooks/use-controllable-state.ts
66
66
  import { useCallback, useRef, useState } from "react";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2FOEFUPMcjs = require('../chunk-2FOEFUPM.cjs');
5
+ var _chunkF2TPUVVOcjs = require('../chunk-F2TPUVVO.cjs');
6
6
 
7
7
 
8
8
 
@@ -34,8 +34,8 @@ var _chunk2FOEFUPMcjs = require('../chunk-2FOEFUPM.cjs');
34
34
 
35
35
 
36
36
 
37
- var _chunkGZIOB63Ocjs = require('../chunk-GZIOB63O.cjs');
38
- require('../chunk-FDUI4IAM.cjs');
37
+ var _chunkGRXC6J5Mcjs = require('../chunk-GRXC6J5M.cjs');
38
+ require('../chunk-6N5JXRUZ.cjs');
39
39
 
40
40
 
41
41
 
@@ -70,4 +70,4 @@ require('../chunk-FDUI4IAM.cjs');
70
70
 
71
71
 
72
72
 
73
- exports.FEEDBACK_OVERLAY = _chunkGZIOB63Ocjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkGZIOB63Ocjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkGZIOB63Ocjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkGZIOB63Ocjs.Icon; exports.IconContext = _chunkGZIOB63Ocjs.IconContext; exports.PRESS_DURATION = _chunkGZIOB63Ocjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkGZIOB63Ocjs.PRESS_SCALE; exports.Portal = _chunk2FOEFUPMcjs.Portal; exports.PortalContext = _chunk2FOEFUPMcjs.PortalContext; exports.PortalHost = _chunk2FOEFUPMcjs.PortalHost; exports.PressableFeedback = _chunkGZIOB63Ocjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkGZIOB63Ocjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkGZIOB63Ocjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkGZIOB63Ocjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkGZIOB63Ocjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkGZIOB63Ocjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkGZIOB63Ocjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkGZIOB63Ocjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkGZIOB63Ocjs.SCALE_REFERENCE_WIDTH; exports.Slot = _chunkGZIOB63Ocjs.Slot; exports.childrenToString = _chunkGZIOB63Ocjs.childrenToString; exports.createRecipe = _chunkGZIOB63Ocjs.createRecipe; exports.createSlotContext = _chunkGZIOB63Ocjs.createSlotContext; exports.markOverlay = _chunkGZIOB63Ocjs.markOverlay; exports.mergeProps = _chunkGZIOB63Ocjs.mergeProps; exports.mergeRefs = _chunkGZIOB63Ocjs.mergeRefs; exports.pressScaleFor = _chunkGZIOB63Ocjs.pressScaleFor; exports.resolveAnimation = _chunkGZIOB63Ocjs.resolveAnimation; exports.resolveSlotAnimation = _chunkGZIOB63Ocjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkGZIOB63Ocjs.rippleRadiusFor; exports.useFeedback = _chunkGZIOB63Ocjs.useFeedback; exports.useIconContext = _chunkGZIOB63Ocjs.useIconContext; exports.useStyleProps = _chunkGZIOB63Ocjs.useStyleProps;
73
+ exports.FEEDBACK_OVERLAY = _chunkGRXC6J5Mcjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkGRXC6J5Mcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkGRXC6J5Mcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkGRXC6J5Mcjs.Icon; exports.IconContext = _chunkGRXC6J5Mcjs.IconContext; exports.PRESS_DURATION = _chunkGRXC6J5Mcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkGRXC6J5Mcjs.PRESS_SCALE; exports.Portal = _chunkF2TPUVVOcjs.Portal; exports.PortalContext = _chunkF2TPUVVOcjs.PortalContext; exports.PortalHost = _chunkF2TPUVVOcjs.PortalHost; exports.PressableFeedback = _chunkGRXC6J5Mcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkGRXC6J5Mcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkGRXC6J5Mcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkGRXC6J5Mcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkGRXC6J5Mcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkGRXC6J5Mcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkGRXC6J5Mcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkGRXC6J5Mcjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkGRXC6J5Mcjs.SCALE_REFERENCE_WIDTH; exports.Slot = _chunkGRXC6J5Mcjs.Slot; exports.childrenToString = _chunkGRXC6J5Mcjs.childrenToString; exports.createRecipe = _chunkGRXC6J5Mcjs.createRecipe; exports.createSlotContext = _chunkGRXC6J5Mcjs.createSlotContext; exports.markOverlay = _chunkGRXC6J5Mcjs.markOverlay; exports.mergeProps = _chunkGRXC6J5Mcjs.mergeProps; exports.mergeRefs = _chunkGRXC6J5Mcjs.mergeRefs; exports.pressScaleFor = _chunkGRXC6J5Mcjs.pressScaleFor; exports.resolveAnimation = _chunkGRXC6J5Mcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkGRXC6J5Mcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkGRXC6J5Mcjs.rippleRadiusFor; exports.useFeedback = _chunkGRXC6J5Mcjs.useFeedback; exports.useIconContext = _chunkGRXC6J5Mcjs.useIconContext; exports.useStyleProps = _chunkGRXC6J5Mcjs.useStyleProps;