@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
|
@@ -2,7 +2,8 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { TextProps, StyleProp, TextStyle, Text } from 'react-native';
|
|
5
|
-
import {
|
|
5
|
+
import { T as TextStyleProps } from '../../style-props.type-B1BG5TCm.cjs';
|
|
6
|
+
import { R as Recipe } from '../../create-recipe-C0XXjuow.cjs';
|
|
6
7
|
import { X as XAUITheme } from '../../theme.type-C2gNHpEx.cjs';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -75,7 +76,7 @@ declare const Typography: react.ForwardRefExoticComponent<Omit<react_native.Text
|
|
|
75
76
|
asChild?: boolean;
|
|
76
77
|
style?: react_native.StyleProp<react_native.TextStyle>;
|
|
77
78
|
children?: react.ReactNode;
|
|
78
|
-
} & Omit<TextStyleProps, "color" | "pointerEvents" | "
|
|
79
|
+
} & Omit<TextStyleProps, "color" | "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "pressRetentionOffset" | "asChild" | "variant" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "maxFontSizeMultiplier" | "minimumFontScale" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency"> & react.RefAttributes<Text>>;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* A fragment of text, styled apart from the text around it.
|
|
@@ -100,7 +101,7 @@ declare const TextSpan: react.ForwardRefExoticComponent<Omit<react_native.TextPr
|
|
|
100
101
|
asChild?: boolean;
|
|
101
102
|
style?: react_native.StyleProp<react_native.TextStyle>;
|
|
102
103
|
children?: react.ReactNode;
|
|
103
|
-
} & Omit<TextStyleProps, "pointerEvents" | "
|
|
104
|
+
} & Omit<TextStyleProps, "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "pressRetentionOffset" | "asChild" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "maxFontSizeMultiplier" | "minimumFontScale" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency"> & react.RefAttributes<Text>>;
|
|
104
105
|
|
|
105
106
|
/** Every role produces the same one slot, so the recipe's style functions share a shape. */
|
|
106
107
|
type StyleFn = (theme: XAUITheme) => Record<TypographySlot, TextStyle>;
|
|
@@ -2,7 +2,8 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { TextProps, StyleProp, TextStyle, Text } from 'react-native';
|
|
5
|
-
import {
|
|
5
|
+
import { T as TextStyleProps } from '../../style-props.type-B1BG5TCm.js';
|
|
6
|
+
import { R as Recipe } from '../../create-recipe-CPXFo2rk.js';
|
|
6
7
|
import { X as XAUITheme } from '../../theme.type-C2gNHpEx.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -75,7 +76,7 @@ declare const Typography: react.ForwardRefExoticComponent<Omit<react_native.Text
|
|
|
75
76
|
asChild?: boolean;
|
|
76
77
|
style?: react_native.StyleProp<react_native.TextStyle>;
|
|
77
78
|
children?: react.ReactNode;
|
|
78
|
-
} & Omit<TextStyleProps, "color" | "pointerEvents" | "
|
|
79
|
+
} & Omit<TextStyleProps, "color" | "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "pressRetentionOffset" | "asChild" | "variant" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "maxFontSizeMultiplier" | "minimumFontScale" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency"> & react.RefAttributes<Text>>;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* A fragment of text, styled apart from the text around it.
|
|
@@ -100,7 +101,7 @@ declare const TextSpan: react.ForwardRefExoticComponent<Omit<react_native.TextPr
|
|
|
100
101
|
asChild?: boolean;
|
|
101
102
|
style?: react_native.StyleProp<react_native.TextStyle>;
|
|
102
103
|
children?: react.ReactNode;
|
|
103
|
-
} & Omit<TextStyleProps, "pointerEvents" | "
|
|
104
|
+
} & Omit<TextStyleProps, "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "pressRetentionOffset" | "asChild" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "maxFontSizeMultiplier" | "minimumFontScale" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency"> & react.RefAttributes<Text>>;
|
|
104
105
|
|
|
105
106
|
/** Every role produces the same one slot, so the recipe's style functions share a shape. */
|
|
106
107
|
type StyleFn = (theme: XAUITheme) => Record<TypographySlot, TextStyle>;
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
TextSpan,
|
|
3
3
|
Typography,
|
|
4
4
|
typographyRecipe
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-RMLFMRWL.js";
|
|
6
|
+
import "../../chunk-N7C4UNUL.js";
|
|
7
|
+
import "../../chunk-EXX6ATAS.js";
|
|
8
|
+
import "../../chunk-A3EGFI6T.js";
|
|
9
|
+
import "../../chunk-GGW42MY4.js";
|
|
8
10
|
export {
|
|
9
11
|
TextSpan,
|
|
10
12
|
Typography,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkBFB6K4M7cjs = require('../../chunk-BFB6K4M7.cjs');
|
|
5
|
+
require('../../chunk-EVXZGNPA.cjs');
|
|
6
|
+
require('../../chunk-MC7SY2QH.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.Column = _chunkBFB6K4M7cjs.Column; exports.Row = _chunkBFB6K4M7cjs.Row;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { View, ViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
5
|
+
import { V as ViewStyleProps } from '../../style-props.type-B1BG5TCm.cjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A horizontal axis.
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Row gap={8} alignItems="center">
|
|
12
|
+
* <Button.Icon as={Trash2} />
|
|
13
|
+
* <Typography variant="h6">Supprimer</Typography>
|
|
14
|
+
* </Row>
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* **It contributes one declaration**, `flexDirection: 'row'`, and everything else it looks
|
|
18
|
+
* like it offers comes from R14: `gap`, `alignItems`, `justifyContent`, `padding` and the
|
|
19
|
+
* rest are `ViewStyle` keys every node already exposes as props. That is deliberate — the
|
|
20
|
+
* legacy component invented `mainAxisAlignment`, `crossAxisAlignment` and `mainAxisSize`,
|
|
21
|
+
* a vocabulary to learn for saying what React Native already says.
|
|
22
|
+
*
|
|
23
|
+
* There is no `reversed` prop either. `row` already flips in an RTL layout, which is the
|
|
24
|
+
* case that matters, and a genuine reversal is `style={{ flexDirection: 'row-reverse' }}`.
|
|
25
|
+
*/
|
|
26
|
+
declare const Row: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "style"> & {
|
|
27
|
+
asChild?: boolean;
|
|
28
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
29
|
+
children?: react.ReactNode;
|
|
30
|
+
} & Omit<ViewStyleProps, "flexDirection" | "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "hitSlop" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "asChild"> & react.RefAttributes<View>>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A vertical axis.
|
|
34
|
+
*
|
|
35
|
+
* ```tsx
|
|
36
|
+
* <Column gap={16} padding={16}>
|
|
37
|
+
* <Typography variant="h3">Projets</Typography>
|
|
38
|
+
* <Typography variant="body-sm">Trois en cours, un archivé.</Typography>
|
|
39
|
+
* </Column>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* **It contributes one declaration**, `flexDirection: 'column'` — which is React Native's
|
|
43
|
+
* default, so this component exists for what it *says* rather than for what it changes.
|
|
44
|
+
* A column written as a column reads as a deliberate axis, and its siblings in a layout
|
|
45
|
+
* are then all named the same way; a bare `View` leaves the reader to infer it.
|
|
46
|
+
*
|
|
47
|
+
* Everything else comes from R14: `gap`, `alignItems`, `justifyContent`, `padding` are
|
|
48
|
+
* `ViewStyle` keys every node already exposes as props, under React Native's own names.
|
|
49
|
+
*/
|
|
50
|
+
declare const Column: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "style"> & {
|
|
51
|
+
asChild?: boolean;
|
|
52
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
53
|
+
children?: react.ReactNode;
|
|
54
|
+
} & Omit<ViewStyleProps, "flexDirection" | "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "hitSlop" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "asChild"> & react.RefAttributes<View>>;
|
|
55
|
+
|
|
56
|
+
type AxisOwnProps = {
|
|
57
|
+
/** R12 — the child element becomes the axis, keeping its direction. */
|
|
58
|
+
asChild?: boolean;
|
|
59
|
+
style?: StyleProp<ViewStyle>;
|
|
60
|
+
children?: ReactNode;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Everything a `View` can be styled with, as props (R14), **minus `flexDirection`** — that
|
|
64
|
+
* one is the component's identity, and a `Row` that could be told to lay out as a column
|
|
65
|
+
* would only be a `View` with a longer name. Reversal and the rest go through `style`,
|
|
66
|
+
* which is the escape hatch for what has no readable prop.
|
|
67
|
+
*
|
|
68
|
+
* Note what is *not* declared here: no `mainAxisAlignment`, no `crossAxisAlignment`, no
|
|
69
|
+
* `gap` prop of our own. They are `justifyContent`, `alignItems` and `gap` — React
|
|
70
|
+
* Native's own names, carrying React Native's own values, and R14 already exposes every
|
|
71
|
+
* one of them. A vocabulary of ours would be a second set of words for the same thing.
|
|
72
|
+
*/
|
|
73
|
+
type AxisProps = Omit<ViewProps, 'style'> & AxisOwnProps & Omit<ViewStyleProps, keyof AxisOwnProps | keyof ViewProps | 'flexDirection'>;
|
|
74
|
+
type RowProps = AxisProps;
|
|
75
|
+
type ColumnProps = AxisProps;
|
|
76
|
+
|
|
77
|
+
export { type AxisProps, Column, type ColumnProps, Row, type RowProps };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { View, ViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
5
|
+
import { V as ViewStyleProps } from '../../style-props.type-B1BG5TCm.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A horizontal axis.
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Row gap={8} alignItems="center">
|
|
12
|
+
* <Button.Icon as={Trash2} />
|
|
13
|
+
* <Typography variant="h6">Supprimer</Typography>
|
|
14
|
+
* </Row>
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* **It contributes one declaration**, `flexDirection: 'row'`, and everything else it looks
|
|
18
|
+
* like it offers comes from R14: `gap`, `alignItems`, `justifyContent`, `padding` and the
|
|
19
|
+
* rest are `ViewStyle` keys every node already exposes as props. That is deliberate — the
|
|
20
|
+
* legacy component invented `mainAxisAlignment`, `crossAxisAlignment` and `mainAxisSize`,
|
|
21
|
+
* a vocabulary to learn for saying what React Native already says.
|
|
22
|
+
*
|
|
23
|
+
* There is no `reversed` prop either. `row` already flips in an RTL layout, which is the
|
|
24
|
+
* case that matters, and a genuine reversal is `style={{ flexDirection: 'row-reverse' }}`.
|
|
25
|
+
*/
|
|
26
|
+
declare const Row: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "style"> & {
|
|
27
|
+
asChild?: boolean;
|
|
28
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
29
|
+
children?: react.ReactNode;
|
|
30
|
+
} & Omit<ViewStyleProps, "flexDirection" | "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "hitSlop" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "asChild"> & react.RefAttributes<View>>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A vertical axis.
|
|
34
|
+
*
|
|
35
|
+
* ```tsx
|
|
36
|
+
* <Column gap={16} padding={16}>
|
|
37
|
+
* <Typography variant="h3">Projets</Typography>
|
|
38
|
+
* <Typography variant="body-sm">Trois en cours, un archivé.</Typography>
|
|
39
|
+
* </Column>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* **It contributes one declaration**, `flexDirection: 'column'` — which is React Native's
|
|
43
|
+
* default, so this component exists for what it *says* rather than for what it changes.
|
|
44
|
+
* A column written as a column reads as a deliberate axis, and its siblings in a layout
|
|
45
|
+
* are then all named the same way; a bare `View` leaves the reader to infer it.
|
|
46
|
+
*
|
|
47
|
+
* Everything else comes from R14: `gap`, `alignItems`, `justifyContent`, `padding` are
|
|
48
|
+
* `ViewStyle` keys every node already exposes as props, under React Native's own names.
|
|
49
|
+
*/
|
|
50
|
+
declare const Column: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "style"> & {
|
|
51
|
+
asChild?: boolean;
|
|
52
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
53
|
+
children?: react.ReactNode;
|
|
54
|
+
} & Omit<ViewStyleProps, "flexDirection" | "pointerEvents" | "style" | "children" | "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "hitSlop" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "asChild"> & react.RefAttributes<View>>;
|
|
55
|
+
|
|
56
|
+
type AxisOwnProps = {
|
|
57
|
+
/** R12 — the child element becomes the axis, keeping its direction. */
|
|
58
|
+
asChild?: boolean;
|
|
59
|
+
style?: StyleProp<ViewStyle>;
|
|
60
|
+
children?: ReactNode;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Everything a `View` can be styled with, as props (R14), **minus `flexDirection`** — that
|
|
64
|
+
* one is the component's identity, and a `Row` that could be told to lay out as a column
|
|
65
|
+
* would only be a `View` with a longer name. Reversal and the rest go through `style`,
|
|
66
|
+
* which is the escape hatch for what has no readable prop.
|
|
67
|
+
*
|
|
68
|
+
* Note what is *not* declared here: no `mainAxisAlignment`, no `crossAxisAlignment`, no
|
|
69
|
+
* `gap` prop of our own. They are `justifyContent`, `alignItems` and `gap` — React
|
|
70
|
+
* Native's own names, carrying React Native's own values, and R14 already exposes every
|
|
71
|
+
* one of them. A vocabulary of ours would be a second set of words for the same thing.
|
|
72
|
+
*/
|
|
73
|
+
type AxisProps = Omit<ViewProps, 'style'> & AxisOwnProps & Omit<ViewStyleProps, keyof AxisOwnProps | keyof ViewProps | 'flexDirection'>;
|
|
74
|
+
type RowProps = AxisProps;
|
|
75
|
+
type ColumnProps = AxisProps;
|
|
76
|
+
|
|
77
|
+
export { type AxisProps, Column, type ColumnProps, Row, type RowProps };
|
|
@@ -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 _chunk2UICXD3Qcjs = require('./chunk-2UICXD3Q.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,
|