@xaui/native 0.9.1-alpha.20 → 0.9.1-alpha.22
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-RMLFMRWL.js → chunk-2U6JR7BF.js} +5 -5
- package/dist/{chunk-N7C4UNUL.js → chunk-3JATAB7S.js} +23 -1
- package/dist/chunk-4MHJOWM4.cjs +364 -0
- package/dist/{chunk-2WMVDMFV.cjs → chunk-6HXWQ5AU.cjs} +2 -2
- package/dist/chunk-6WW4CSPY.cjs +82 -0
- package/dist/chunk-AHL33YAO.js +425 -0
- package/dist/{chunk-XHZBXYVU.js → chunk-AKXG43S4.js} +1 -1
- package/dist/{chunk-A4VD4MHK.cjs → chunk-BH5DSJVX.cjs} +100 -133
- package/dist/chunk-BNWS26PX.cjs +449 -0
- package/dist/chunk-DXGQ43IV.cjs +68 -0
- package/dist/{chunk-4EPS7UBO.js → chunk-FNQF4KQV.js} +20 -97
- package/dist/chunk-FTCTTBLG.js +449 -0
- package/dist/chunk-FVP5FUVS.js +68 -0
- package/dist/{chunk-BHTFIZTQ.cjs → chunk-GBPWTFTU.cjs} +11 -11
- package/dist/{chunk-MWXE7D4L.js → chunk-GG2WWCBK.js} +11 -11
- package/dist/{chunk-EVXZGNPA.cjs → chunk-HUZ4AUM2.cjs} +98 -98
- package/dist/chunk-I6PE5UUH.cjs +425 -0
- package/dist/{chunk-33QILJJH.cjs → chunk-IBEX4XGV.cjs} +11 -11
- package/dist/{chunk-WXAME7KB.js → chunk-KM2TI5IC.js} +126 -159
- package/dist/chunk-OGC4RKE3.js +364 -0
- package/dist/{chunk-JXLRHKCQ.js → chunk-OYZYWWJ6.js} +1 -1
- package/dist/{chunk-EXX6ATAS.js → chunk-PMO62QK4.js} +101 -101
- package/dist/{chunk-UBA6AEY6.cjs → chunk-RAWOJ3N3.cjs} +8 -8
- package/dist/{chunk-6ARON3XT.cjs → chunk-VDRRD6GM.cjs} +31 -110
- package/dist/{chunk-UVO4GFSW.cjs → chunk-YXVKQMCK.cjs} +23 -1
- package/dist/chunk-ZQ3JSWRO.js +82 -0
- package/dist/close-button.type-BUYuoSt2.d.ts +36 -0
- package/dist/close-button.type-CHsgZ3wO.d.cts +36 -0
- package/dist/components/alert/index.cjs +17 -0
- package/dist/components/alert/index.d.cts +169 -0
- package/dist/components/alert/index.d.ts +169 -0
- package/dist/components/alert/index.js +17 -0
- package/dist/components/button/index.cjs +6 -5
- package/dist/components/button/index.d.cts +193 -243
- package/dist/components/button/index.d.ts +193 -243
- package/dist/components/button/index.js +5 -4
- package/dist/components/card/index.cjs +19 -0
- package/dist/components/card/index.d.cts +620 -0
- package/dist/components/card/index.d.ts +620 -0
- package/dist/components/card/index.js +19 -0
- package/dist/components/chip/index.cjs +17 -0
- package/dist/components/chip/index.d.cts +608 -0
- package/dist/components/chip/index.d.ts +608 -0
- package/dist/components/chip/index.js +17 -0
- package/dist/components/typography/index.cjs +4 -4
- package/dist/components/typography/index.d.cts +4 -4
- package/dist/components/typography/index.d.ts +4 -4
- package/dist/components/typography/index.js +3 -3
- package/dist/components/view/index.cjs +3 -3
- package/dist/components/view/index.d.cts +7 -7
- package/dist/components/view/index.d.ts +7 -7
- package/dist/components/view/index.js +2 -2
- package/dist/{create-recipe-CPXFo2rk.d.ts → create-recipe-CbXika57.d.ts} +7 -1
- package/dist/{create-recipe-C0XXjuow.d.cts → create-recipe-jHlk434p.d.cts} +7 -1
- package/dist/icon.type-CF4KiMKl.d.cts +73 -0
- package/dist/icon.type-Dq4_qePa.d.ts +73 -0
- package/dist/index.cjs +49 -11
- package/dist/index.d.cts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +71 -33
- package/dist/{pressable-feedback.type-BwkKLQlX.d.ts → pressable-feedback.type-BA2C9sSz.d.cts} +4 -72
- package/dist/{pressable-feedback.type-1K8YEOb8.d.cts → pressable-feedback.type-Bs4dQlGj.d.ts} +4 -72
- package/dist/{style-props.type-B1BG5TCm.d.cts → style-props.type-CfnoGEP7.d.cts} +1 -1
- package/dist/{style-props.type-B1BG5TCm.d.ts → style-props.type-CfnoGEP7.d.ts} +1 -1
- package/dist/system/index.cjs +16 -6
- package/dist/system/index.d.cts +174 -98
- package/dist/system/index.d.ts +174 -98
- package/dist/system/index.js +20 -10
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.d.cts +11 -11
- package/dist/theme/index.d.ts +11 -11
- package/dist/theme/index.js +1 -1
- package/package.json +31 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/view/grid.tsx
|
|
7
7
|
var _react = require('react');
|
|
@@ -30,7 +30,7 @@ function spanWidth({ cellWidth, columns, gap }, span) {
|
|
|
30
30
|
var _jsxruntime = require('react/jsx-runtime');
|
|
31
31
|
var GridRoot = _react.forwardRef.call(void 0, function Grid({ children, columns = 2, gap = 0, style, onLayout, ...props }, ref) {
|
|
32
32
|
const [width, setWidth] = _react.useState.call(void 0, );
|
|
33
|
-
const [styleProps, rest] =
|
|
33
|
+
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
34
34
|
const safeColumns = Math.max(Math.floor(columns), 1);
|
|
35
35
|
const cellWidth = width === void 0 ? void 0 : (width - gap * (safeColumns - 1)) / safeColumns;
|
|
36
36
|
const context = _react.useMemo.call(void 0,
|
|
@@ -73,7 +73,7 @@ function isGridItem(child) {
|
|
|
73
73
|
|
|
74
74
|
var GridItem = _react.forwardRef.call(void 0, function GridItem2({ children, span = 1, style, ...props }, ref) {
|
|
75
75
|
const grid = useGrid();
|
|
76
|
-
const [styleProps, rest] =
|
|
76
|
+
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
77
77
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
78
|
_reactnative.View,
|
|
79
79
|
{
|
|
@@ -91,8 +91,8 @@ GridItem.displayName = "XAUI.Grid.Item";
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
var StackRoot = _react.forwardRef.call(void 0, function Stack({ children, asChild = false, style, ...props }, ref) {
|
|
94
|
-
const [styleProps, rest] =
|
|
95
|
-
const Root = asChild ?
|
|
94
|
+
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
95
|
+
const Root = asChild ? _chunkHUZ4AUM2cjs.Slot : _reactnative.View;
|
|
96
96
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "relative" }, styleProps, style], ...rest, children });
|
|
97
97
|
});
|
|
98
98
|
StackRoot.displayName = "XAUI.Stack";
|
|
@@ -102,8 +102,8 @@ StackRoot.displayName = "XAUI.Stack";
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
var StackItem = _react.forwardRef.call(void 0, function StackItem2({ children, asChild = false, style, ...props }, ref) {
|
|
105
|
-
const [styleProps, rest] =
|
|
106
|
-
const Root = asChild ?
|
|
105
|
+
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
106
|
+
const Root = asChild ? _chunkHUZ4AUM2cjs.Slot : _reactnative.View;
|
|
107
107
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "absolute" }, styleProps, style], ...rest, children });
|
|
108
108
|
});
|
|
109
109
|
StackItem.displayName = "XAUI.Stack.Item";
|
|
@@ -113,8 +113,8 @@ StackItem.displayName = "XAUI.Stack.Item";
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
var Row = _react.forwardRef.call(void 0, function Row2({ children, asChild = false, style, ...props }, ref) {
|
|
116
|
-
const [styleProps, rest] =
|
|
117
|
-
const Root = asChild ?
|
|
116
|
+
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
117
|
+
const Root = asChild ? _chunkHUZ4AUM2cjs.Slot : _reactnative.View;
|
|
118
118
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ flexDirection: "row" }, styleProps, style], ...rest, children });
|
|
119
119
|
});
|
|
120
120
|
Row.displayName = "XAUI.Row";
|
|
@@ -124,8 +124,8 @@ Row.displayName = "XAUI.Row";
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
var Column = _react.forwardRef.call(void 0, function Column2({ children, asChild = false, style, ...props }, ref) {
|
|
127
|
-
const [styleProps, rest] =
|
|
128
|
-
const Root = asChild ?
|
|
127
|
+
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
128
|
+
const Root = asChild ? _chunkHUZ4AUM2cjs.Slot : _reactnative.View;
|
|
129
129
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ flexDirection: "column" }, styleProps, style], ...rest, children });
|
|
130
130
|
});
|
|
131
131
|
Column.displayName = "XAUI.Column";
|
|
@@ -1,82 +1,43 @@
|
|
|
1
|
-
import { Slot, createSlotContext, useStyleProps } from "./chunk-EXX6ATAS.js";
|
|
2
1
|
import { contrastOn, isHex, useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
2
|
+
import { Slot, createSlotContext, useStyleProps } from "./chunk-PMO62QK4.js";
|
|
3
3
|
|
|
4
|
-
// src/
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return /* @__PURE__ */jsx(Component, {
|
|
24
|
-
size,
|
|
25
|
-
color
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
if (isValidElement(props.children)) {
|
|
29
|
-
return cloneElement(props.children, {
|
|
30
|
-
width: size,
|
|
31
|
-
height: size,
|
|
32
|
-
color
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
if (props.source) return /* @__PURE__ */jsx(IconImage, {
|
|
36
|
-
...props,
|
|
37
|
-
resolved: {
|
|
38
|
-
size,
|
|
39
|
-
color
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
throw new Error("XAUI: Icon needs one of `as` (an icon component), a raw SVG element as its child, or `source` (an image). It renders nothing on its own.");
|
|
43
|
-
}
|
|
44
|
-
Icon.displayName = "XAUI.Icon";
|
|
45
|
-
function IconImage({
|
|
46
|
-
source,
|
|
47
|
-
style,
|
|
48
|
-
resolved,
|
|
49
|
-
size: _size,
|
|
50
|
-
color: _color,
|
|
51
|
-
...props
|
|
52
|
-
}) {
|
|
53
|
-
const [styleProps] = useStyleProps(props);
|
|
54
|
-
return /* @__PURE__ */jsx(Image, {
|
|
55
|
-
source,
|
|
56
|
-
style: [{
|
|
57
|
-
width: resolved.size,
|
|
58
|
-
height: resolved.size,
|
|
59
|
-
tintColor: resolved.color
|
|
60
|
-
}, styleProps, style]
|
|
61
|
-
});
|
|
4
|
+
// src/hooks/use-press-state.ts
|
|
5
|
+
import { useCallback, useRef, useState } from "react";
|
|
6
|
+
function usePressState(handlers = {}) {
|
|
7
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
8
|
+
const latest = useRef(handlers);
|
|
9
|
+
latest.current = handlers;
|
|
10
|
+
const onPressIn = useCallback(event => {
|
|
11
|
+
setIsPressed(true);
|
|
12
|
+
latest.current.onPressIn?.(event);
|
|
13
|
+
}, []);
|
|
14
|
+
const onPressOut = useCallback(event => {
|
|
15
|
+
setIsPressed(false);
|
|
16
|
+
latest.current.onPressOut?.(event);
|
|
17
|
+
}, []);
|
|
18
|
+
const press = useRef({
|
|
19
|
+
onPressIn,
|
|
20
|
+
onPressOut
|
|
21
|
+
}).current;
|
|
22
|
+
return [isPressed, press];
|
|
62
23
|
}
|
|
63
24
|
|
|
64
25
|
// src/system/pressable-feedback/pressable-feedback-context.ts
|
|
65
|
-
import { createContext
|
|
26
|
+
import { createContext } from "react";
|
|
66
27
|
var [FeedbackProvider, useFeedback] = createSlotContext("PressableFeedback");
|
|
67
|
-
var DisableAllContext =
|
|
28
|
+
var DisableAllContext = createContext(false);
|
|
68
29
|
|
|
69
30
|
// src/system/pressable-feedback/pressable-feedback.animation.ts
|
|
70
31
|
var PRESS_SCALE = 0.985;
|
|
71
32
|
var PRESS_DURATION = 300;
|
|
72
33
|
var SCALE_REFERENCE_WIDTH = 300;
|
|
73
|
-
const
|
|
74
|
-
code: "function
|
|
75
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
76
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
34
|
+
const _worklet_17352996968518_init_data = {
|
|
35
|
+
code: "function pressScaleFor_chunkKM2TI5ICJs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
|
|
36
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js",
|
|
37
|
+
sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunkKM2TI5ICJs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js\"],\"mappings\":\"AAsCA,SAAAA,8BAA8BA,CAAAC,KAAA,QAAAC,qBAAA,CAAAC,WAAA,OAAAC,SAAA,CAE5B,KAAM,CAAAC,WAAW,CAAGJ,KAAK,CAAG,CAAC,CAAGC,qBAAqB,CAAGD,KAAK,CAAG,CAAC,CACjE,MAAO,EAAC,CAAG,CAAC,CAAC,CAAGE,WAAW,EAAIE,WAAW,CAC5C\",\"ignoreList\":[]}"
|
|
77
38
|
};
|
|
78
|
-
const pressScaleFor = function
|
|
79
|
-
|
|
39
|
+
const pressScaleFor = function pressScaleFor_chunkKM2TI5ICJs1Factory({
|
|
40
|
+
_worklet_17352996968518_init_data,
|
|
80
41
|
SCALE_REFERENCE_WIDTH,
|
|
81
42
|
PRESS_SCALE
|
|
82
43
|
}) {
|
|
@@ -89,13 +50,13 @@ const pressScaleFor = function pressScaleFor_chunkWXAME7KBJs1Factory({
|
|
|
89
50
|
SCALE_REFERENCE_WIDTH,
|
|
90
51
|
PRESS_SCALE
|
|
91
52
|
};
|
|
92
|
-
pressScaleFor.__workletHash =
|
|
53
|
+
pressScaleFor.__workletHash = 17352996968518;
|
|
93
54
|
pressScaleFor.__pluginVersion = "0.7.4";
|
|
94
|
-
pressScaleFor.__initData =
|
|
55
|
+
pressScaleFor.__initData = _worklet_17352996968518_init_data;
|
|
95
56
|
pressScaleFor.__stackDetails = _e;
|
|
96
57
|
return pressScaleFor;
|
|
97
58
|
}({
|
|
98
|
-
|
|
59
|
+
_worklet_17352996968518_init_data,
|
|
99
60
|
SCALE_REFERENCE_WIDTH,
|
|
100
61
|
PRESS_SCALE
|
|
101
62
|
});
|
|
@@ -108,26 +69,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
|
|
|
108
69
|
var RIPPLE_FADE_IN = 75;
|
|
109
70
|
var RIPPLE_FADE_OUT_DELAY = 225;
|
|
110
71
|
var RIPPLE_FADE_OUT = 150;
|
|
111
|
-
const
|
|
112
|
-
code: "function
|
|
113
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
114
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
72
|
+
const _worklet_9330177075325_init_data = {
|
|
73
|
+
code: "function rippleRadiusFor_chunkKM2TI5ICJs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
|
|
74
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js",
|
|
75
|
+
sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunkKM2TI5ICJs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js\"],\"mappings\":\"AAoDA,SAAAA,gCAAwCA,CAAAC,KAAA,CAAAC,MAAA,EAEtC,MAAO,CAAAC,IAAI,CAACC,IAAI,CAACH,KAAK,CAAGA,KAAK,CAAGC,MAAM,CAAGA,MAAM,CAAC,CAAG,CAAC,CAAG,CAAC,CAC3D\",\"ignoreList\":[]}"
|
|
115
76
|
};
|
|
116
|
-
const rippleRadiusFor = function
|
|
117
|
-
|
|
77
|
+
const rippleRadiusFor = function rippleRadiusFor_chunkKM2TI5ICJs2Factory({
|
|
78
|
+
_worklet_9330177075325_init_data
|
|
118
79
|
}) {
|
|
119
80
|
const _e = [new global.Error(), 1, -27];
|
|
120
81
|
const rippleRadiusFor = function (width, height) {
|
|
121
82
|
return Math.sqrt(width * width + height * height) / 2 + 5;
|
|
122
83
|
};
|
|
123
84
|
rippleRadiusFor.__closure = {};
|
|
124
|
-
rippleRadiusFor.__workletHash =
|
|
85
|
+
rippleRadiusFor.__workletHash = 9330177075325;
|
|
125
86
|
rippleRadiusFor.__pluginVersion = "0.7.4";
|
|
126
|
-
rippleRadiusFor.__initData =
|
|
87
|
+
rippleRadiusFor.__initData = _worklet_9330177075325_init_data;
|
|
127
88
|
rippleRadiusFor.__stackDetails = _e;
|
|
128
89
|
return rippleRadiusFor;
|
|
129
90
|
}({
|
|
130
|
-
|
|
91
|
+
_worklet_9330177075325_init_data
|
|
131
92
|
});
|
|
132
93
|
var ALL_OFF = {
|
|
133
94
|
scale: false,
|
|
@@ -192,7 +153,7 @@ function resolveSlotAnimation(override, enabledByRoot, defaultOpacity, defaultDu
|
|
|
192
153
|
}
|
|
193
154
|
|
|
194
155
|
// src/system/pressable-feedback/pressable-feedback.overlay.ts
|
|
195
|
-
import { Children, Fragment, createElement, isValidElement
|
|
156
|
+
import { Children, Fragment, createElement, isValidElement } from "react";
|
|
196
157
|
var FEEDBACK_OVERLAY = /* @__PURE__ */Symbol.for("xaui.PressableFeedback.overlay");
|
|
197
158
|
function markOverlay(component) {
|
|
198
159
|
return Object.assign(component, {
|
|
@@ -200,7 +161,7 @@ function markOverlay(component) {
|
|
|
200
161
|
});
|
|
201
162
|
}
|
|
202
163
|
function isBareOverlay(node) {
|
|
203
|
-
if (!
|
|
164
|
+
if (!isValidElement(node)) return false;
|
|
204
165
|
const type = node.type;
|
|
205
166
|
if (typeof type !== "function" && typeof type !== "object") return false;
|
|
206
167
|
if (type === null) return false;
|
|
@@ -230,7 +191,7 @@ function feedbackChildren(children, asChild) {
|
|
|
230
191
|
}
|
|
231
192
|
|
|
232
193
|
// src/system/pressable-feedback/pressable-feedback.tsx
|
|
233
|
-
import { forwardRef, useContext
|
|
194
|
+
import { forwardRef, useContext, useEffect, useMemo, useRef as useRef2 } from "react";
|
|
234
195
|
import { Pressable, StyleSheet } from "react-native";
|
|
235
196
|
import Animated, { Easing, useAnimatedStyle, useDerivedValue, useSharedValue, withDelay, withTiming } from "react-native-reanimated";
|
|
236
197
|
|
|
@@ -251,7 +212,7 @@ function radiusFrom(style) {
|
|
|
251
212
|
}
|
|
252
213
|
|
|
253
214
|
// src/system/pressable-feedback/pressable-feedback.tsx
|
|
254
|
-
import { jsx
|
|
215
|
+
import { jsx } from "react/jsx-runtime";
|
|
255
216
|
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
256
217
|
var AnimatedSlot = Animated.createAnimatedComponent(Slot);
|
|
257
218
|
var PressableFeedback = forwardRef(function PressableFeedback2({
|
|
@@ -259,17 +220,17 @@ var PressableFeedback = forwardRef(function PressableFeedback2({
|
|
|
259
220
|
style,
|
|
260
221
|
...props
|
|
261
222
|
}, ref) {
|
|
262
|
-
const inheritedDisableAll =
|
|
223
|
+
const inheritedDisableAll = useContext(DisableAllContext);
|
|
263
224
|
const resolved = resolveAnimation(animation, inheritedDisableAll);
|
|
264
225
|
const [styleProps, rest] = useStyleProps(props);
|
|
265
226
|
const Feedback = resolved.none ? StaticFeedback : AnimatedFeedback;
|
|
266
|
-
const body = /* @__PURE__ */
|
|
227
|
+
const body = /* @__PURE__ */jsx(Feedback, {
|
|
267
228
|
ref,
|
|
268
229
|
animation: resolved,
|
|
269
230
|
style: [styleProps, style],
|
|
270
231
|
...rest
|
|
271
232
|
});
|
|
272
|
-
return resolved.disableAll ? /* @__PURE__ */
|
|
233
|
+
return resolved.disableAll ? /* @__PURE__ */jsx(DisableAllContext.Provider, {
|
|
273
234
|
value: true,
|
|
274
235
|
children: body
|
|
275
236
|
}) : body;
|
|
@@ -290,9 +251,9 @@ var StaticFeedback = forwardRef(function StaticFeedback2({
|
|
|
290
251
|
...surface
|
|
291
252
|
}), [isPressed, animation, surface]);
|
|
292
253
|
const Root = asChild ? Slot : Pressable;
|
|
293
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */jsx(FeedbackProvider, {
|
|
294
255
|
value: context,
|
|
295
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */jsx(Root, {
|
|
296
257
|
ref,
|
|
297
258
|
style,
|
|
298
259
|
disabled: isDisabled,
|
|
@@ -301,15 +262,15 @@ var StaticFeedback = forwardRef(function StaticFeedback2({
|
|
|
301
262
|
})
|
|
302
263
|
});
|
|
303
264
|
});
|
|
304
|
-
const
|
|
305
|
-
code: "function
|
|
306
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
307
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
265
|
+
const _worklet_9447082819528_init_data = {
|
|
266
|
+
code: "function chunkKM2TI5ICJs3(){const{pressScaleFor,size}=this.__closure;return pressScaleFor(size.value.width);}",
|
|
267
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js",
|
|
268
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkKM2TI5ICJs3\",\"pressScaleFor\",\"size\",\"__closure\",\"value\",\"width\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js\"],\"mappings\":\"AAkOuC,SAAAA,iBAAA,QAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,OAAM,CAAAF,aAAc,CAAAC,IAAK,CAAAE,KAAM,CAAAC,KAAK\",\"ignoreList\":[]}"
|
|
308
269
|
};
|
|
309
|
-
const
|
|
310
|
-
code: "function
|
|
311
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
312
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
270
|
+
const _worklet_6524907929752_init_data = {
|
|
271
|
+
code: "function chunkKM2TI5ICJs4(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
|
|
272
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js",
|
|
273
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkKM2TI5ICJs4\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js\"],\"mappings\":\"AAmOyC,SAAAA,gBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE3C,GAAI,CAACH,SAAS,CAACI,KAAK,CAAE,MAAO,CAAC,CAAC,CAC/B,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAED,KAAK,CAAE,CAAC,CAAG,CAAC,CAAC,CAAGH,YAAY,CAACK,KAAK,EAAIJ,QAAQ,CAACI,KAAM,CAAC,CAAE,CAAC,CAClF\",\"ignoreList\":[]}"
|
|
313
274
|
};
|
|
314
275
|
var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
315
276
|
isPressed = false,
|
|
@@ -330,42 +291,42 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
|
330
291
|
height: 0
|
|
331
292
|
});
|
|
332
293
|
const waves = [useWave(), useWave()];
|
|
333
|
-
const nextWave =
|
|
294
|
+
const nextWave = useRef2(0);
|
|
334
295
|
useEffect(() => {
|
|
335
296
|
progress.value = withTiming(isPressed ? 1 : 0, {
|
|
336
297
|
duration: PRESS_DURATION,
|
|
337
298
|
easing: Easing.out(Easing.ease)
|
|
338
299
|
});
|
|
339
300
|
}, [isPressed, progress]);
|
|
340
|
-
const pressedScale = useDerivedValue(function
|
|
341
|
-
|
|
301
|
+
const pressedScale = useDerivedValue(function chunkKM2TI5ICJs3Factory({
|
|
302
|
+
_worklet_9447082819528_init_data,
|
|
342
303
|
pressScaleFor,
|
|
343
304
|
size
|
|
344
305
|
}) {
|
|
345
306
|
const _e = [new global.Error(), -3, -27];
|
|
346
|
-
const
|
|
347
|
-
|
|
307
|
+
const chunkKM2TI5ICJs3 = () => pressScaleFor(size.value.width);
|
|
308
|
+
chunkKM2TI5ICJs3.__closure = {
|
|
348
309
|
pressScaleFor,
|
|
349
310
|
size
|
|
350
311
|
};
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return
|
|
312
|
+
chunkKM2TI5ICJs3.__workletHash = 9447082819528;
|
|
313
|
+
chunkKM2TI5ICJs3.__pluginVersion = "0.7.4";
|
|
314
|
+
chunkKM2TI5ICJs3.__initData = _worklet_9447082819528_init_data;
|
|
315
|
+
chunkKM2TI5ICJs3.__stackDetails = _e;
|
|
316
|
+
return chunkKM2TI5ICJs3;
|
|
356
317
|
}({
|
|
357
|
-
|
|
318
|
+
_worklet_9447082819528_init_data,
|
|
358
319
|
pressScaleFor,
|
|
359
320
|
size
|
|
360
321
|
}));
|
|
361
|
-
const animatedStyle = useAnimatedStyle(function
|
|
362
|
-
|
|
322
|
+
const animatedStyle = useAnimatedStyle(function chunkKM2TI5ICJs4Factory({
|
|
323
|
+
_worklet_6524907929752_init_data,
|
|
363
324
|
animation,
|
|
364
325
|
pressedScale,
|
|
365
326
|
progress
|
|
366
327
|
}) {
|
|
367
328
|
const _e = [new global.Error(), -4, -27];
|
|
368
|
-
const
|
|
329
|
+
const chunkKM2TI5ICJs4 = function () {
|
|
369
330
|
if (!animation.scale) return {};
|
|
370
331
|
return {
|
|
371
332
|
transform: [{
|
|
@@ -373,18 +334,18 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
|
373
334
|
}]
|
|
374
335
|
};
|
|
375
336
|
};
|
|
376
|
-
|
|
337
|
+
chunkKM2TI5ICJs4.__closure = {
|
|
377
338
|
animation,
|
|
378
339
|
pressedScale,
|
|
379
340
|
progress
|
|
380
341
|
};
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
return
|
|
342
|
+
chunkKM2TI5ICJs4.__workletHash = 6524907929752;
|
|
343
|
+
chunkKM2TI5ICJs4.__pluginVersion = "0.7.4";
|
|
344
|
+
chunkKM2TI5ICJs4.__initData = _worklet_6524907929752_init_data;
|
|
345
|
+
chunkKM2TI5ICJs4.__stackDetails = _e;
|
|
346
|
+
return chunkKM2TI5ICJs4;
|
|
386
347
|
}({
|
|
387
|
-
|
|
348
|
+
_worklet_6524907929752_init_data,
|
|
388
349
|
animation,
|
|
389
350
|
pressedScale,
|
|
390
351
|
progress
|
|
@@ -449,9 +410,9 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
|
449
410
|
onLayout?.(event);
|
|
450
411
|
};
|
|
451
412
|
const Root = asChild ? AnimatedSlot : AnimatedPressable;
|
|
452
|
-
return /* @__PURE__ */
|
|
413
|
+
return /* @__PURE__ */jsx(FeedbackProvider, {
|
|
453
414
|
value: context,
|
|
454
|
-
children: /* @__PURE__ */
|
|
415
|
+
children: /* @__PURE__ */jsx(Root, {
|
|
455
416
|
ref,
|
|
456
417
|
style: [style, animatedStyle],
|
|
457
418
|
disabled: isDisabled,
|
|
@@ -490,7 +451,7 @@ function useSurface(style) {
|
|
|
490
451
|
import { useEffect as useEffect2 } from "react";
|
|
491
452
|
import { StyleSheet as StyleSheet2, View as View2 } from "react-native";
|
|
492
453
|
import Animated2, { useAnimatedStyle as useAnimatedStyle2, useSharedValue as useSharedValue2, withTiming as withTiming2 } from "react-native-reanimated";
|
|
493
|
-
import { Fragment as Fragment2, jsx as
|
|
454
|
+
import { Fragment as Fragment2, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
494
455
|
function PressableFeedbackHighlight({
|
|
495
456
|
style,
|
|
496
457
|
animation: override,
|
|
@@ -512,7 +473,7 @@ function PressableFeedbackHighlight({
|
|
|
512
473
|
}, corners, styleProps, style];
|
|
513
474
|
if (!progress || !settings.enabled) {
|
|
514
475
|
return /* @__PURE__ */jsxs(Fragment2, {
|
|
515
|
-
children: [/* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */jsx2(View2, {
|
|
516
477
|
style: [base, {
|
|
517
478
|
opacity: isPressed ? settings.opacity : 0
|
|
518
479
|
}]
|
|
@@ -520,7 +481,7 @@ function PressableFeedbackHighlight({
|
|
|
520
481
|
});
|
|
521
482
|
}
|
|
522
483
|
return /* @__PURE__ */jsxs(Fragment2, {
|
|
523
|
-
children: [/* @__PURE__ */
|
|
484
|
+
children: [/* @__PURE__ */jsx2(AnimatedHighlight, {
|
|
524
485
|
base,
|
|
525
486
|
duration: settings.duration,
|
|
526
487
|
opacity: settings.opacity
|
|
@@ -529,10 +490,10 @@ function PressableFeedbackHighlight({
|
|
|
529
490
|
}
|
|
530
491
|
PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
|
|
531
492
|
markOverlay(PressableFeedbackHighlight);
|
|
532
|
-
const
|
|
533
|
-
code: "function
|
|
534
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
535
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
493
|
+
const _worklet_16041587830056_init_data = {
|
|
494
|
+
code: "function chunkKM2TI5ICJs5(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
|
|
495
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js",
|
|
496
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkKM2TI5ICJs5\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js\"],\"mappings\":\"AAiX0C,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE5C,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
|
|
536
497
|
};
|
|
537
498
|
function AnimatedHighlight({
|
|
538
499
|
base,
|
|
@@ -548,41 +509,41 @@ function AnimatedHighlight({
|
|
|
548
509
|
duration
|
|
549
510
|
});
|
|
550
511
|
}, [isPressed, shown, duration]);
|
|
551
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
552
|
-
|
|
512
|
+
const animatedStyle = useAnimatedStyle2(function chunkKM2TI5ICJs5Factory({
|
|
513
|
+
_worklet_16041587830056_init_data,
|
|
553
514
|
shown,
|
|
554
515
|
opacity
|
|
555
516
|
}) {
|
|
556
517
|
const _e = [new global.Error(), -3, -27];
|
|
557
|
-
const
|
|
518
|
+
const chunkKM2TI5ICJs5 = function () {
|
|
558
519
|
return {
|
|
559
520
|
opacity: shown.value * opacity
|
|
560
521
|
};
|
|
561
522
|
};
|
|
562
|
-
|
|
523
|
+
chunkKM2TI5ICJs5.__closure = {
|
|
563
524
|
shown,
|
|
564
525
|
opacity
|
|
565
526
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
return
|
|
527
|
+
chunkKM2TI5ICJs5.__workletHash = 16041587830056;
|
|
528
|
+
chunkKM2TI5ICJs5.__pluginVersion = "0.7.4";
|
|
529
|
+
chunkKM2TI5ICJs5.__initData = _worklet_16041587830056_init_data;
|
|
530
|
+
chunkKM2TI5ICJs5.__stackDetails = _e;
|
|
531
|
+
return chunkKM2TI5ICJs5;
|
|
571
532
|
}({
|
|
572
|
-
|
|
533
|
+
_worklet_16041587830056_init_data,
|
|
573
534
|
shown,
|
|
574
535
|
opacity
|
|
575
536
|
}), [shown, opacity]);
|
|
576
|
-
return /* @__PURE__ */
|
|
537
|
+
return /* @__PURE__ */jsx2(Animated2.View, {
|
|
577
538
|
style: [base, animatedStyle]
|
|
578
539
|
});
|
|
579
540
|
}
|
|
580
541
|
|
|
581
542
|
// src/system/pressable-feedback/pressable-feedback-ripple.tsx
|
|
582
|
-
import { useState } from "react";
|
|
543
|
+
import { useState as useState2 } from "react";
|
|
583
544
|
import { StyleSheet as StyleSheet3, View as View3 } from "react-native";
|
|
584
545
|
import Animated3, { useAnimatedStyle as useAnimatedStyle3 } from "react-native-reanimated";
|
|
585
|
-
import { Fragment as Fragment3, jsx as
|
|
546
|
+
import { Fragment as Fragment3, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
586
547
|
function PressableFeedbackRipple({
|
|
587
548
|
style,
|
|
588
549
|
animation: override,
|
|
@@ -598,7 +559,7 @@ function PressableFeedbackRipple({
|
|
|
598
559
|
const [styleProps] = useStyleProps(props);
|
|
599
560
|
const waveStyle = [styleProps, style];
|
|
600
561
|
const settings = resolveSlotAnimation(override, animation.ripple, RIPPLE_OPACITY);
|
|
601
|
-
const [size, setSize] =
|
|
562
|
+
const [size, setSize] = useState2({
|
|
602
563
|
width: 0,
|
|
603
564
|
height: 0
|
|
604
565
|
});
|
|
@@ -612,15 +573,15 @@ function PressableFeedbackRipple({
|
|
|
612
573
|
height
|
|
613
574
|
});
|
|
614
575
|
};
|
|
615
|
-
if (!waves || !settings.enabled) return /* @__PURE__ */
|
|
576
|
+
if (!waves || !settings.enabled) return /* @__PURE__ */jsx3(Fragment3, {
|
|
616
577
|
children
|
|
617
578
|
});
|
|
618
579
|
const radius = rippleRadiusFor(size.width, size.height);
|
|
619
580
|
return /* @__PURE__ */jsxs2(Fragment3, {
|
|
620
|
-
children: [/* @__PURE__ */
|
|
581
|
+
children: [/* @__PURE__ */jsx3(View3, {
|
|
621
582
|
style: [StyleSheet3.absoluteFill, styles.clip, corners],
|
|
622
583
|
onLayout: handleLayout,
|
|
623
|
-
children: waves.map((wave, index) => /* @__PURE__ */
|
|
584
|
+
children: waves.map((wave, index) => /* @__PURE__ */jsx3(RippleWave, {
|
|
624
585
|
wave,
|
|
625
586
|
radius,
|
|
626
587
|
center: {
|
|
@@ -636,10 +597,10 @@ function PressableFeedbackRipple({
|
|
|
636
597
|
}
|
|
637
598
|
PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
|
|
638
599
|
markOverlay(PressableFeedbackRipple);
|
|
639
|
-
const
|
|
640
|
-
code: "function
|
|
641
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
642
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
600
|
+
const _worklet_10181885956967_init_data = {
|
|
601
|
+
code: "function chunkKM2TI5ICJs6(){const{wave,RIPPLE_START_SCALE,center,opacity,radius}=this.__closure;const t=wave.expand.value;const from=wave.origin.value;const scale=RIPPLE_START_SCALE+(1-RIPPLE_START_SCALE)*t;const x=from.x+(center.x-from.x)*t;const y=from.y+(center.y-from.y)*t;return{opacity:wave.alpha.value*opacity,transform:[{translateX:x-radius},{translateY:y-radius},{scale:scale}]};}",
|
|
602
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js",
|
|
603
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkKM2TI5ICJs6\",\"wave\",\"RIPPLE_START_SCALE\",\"center\",\"opacity\",\"radius\",\"__closure\",\"t\",\"expand\",\"value\",\"from\",\"origin\",\"scale\",\"x\",\"y\",\"alpha\",\"transform\",\"translateX\",\"translateY\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KM2TI5IC.js\"],\"mappings\":\"AAib0C,SAAAA,gBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,KAAM,CAAAC,CAAC,CAAGN,IAAI,CAACO,MAAM,CAACC,KAAK,CAC3B,KAAM,CAAAC,IAAI,CAAGT,IAAI,CAACU,MAAM,CAACF,KAAK,CAC9B,KAAM,CAAAG,KAAK,CAAGV,kBAAkB,CAAG,CAAC,CAAC,CAAGA,kBAAkB,EAAIK,CAAC,CAC/D,KAAM,CAAAM,CAAC,CAAGH,IAAI,CAACG,CAAC,CAAG,CAACV,MAAM,CAACU,CAAC,CAAGH,IAAI,CAACG,CAAC,EAAIN,CAAC,CAC1C,KAAM,CAAAO,CAAC,CAAGJ,IAAI,CAACI,CAAC,CAAG,CAACX,MAAM,CAACW,CAAC,CAAGJ,IAAI,CAACI,CAAC,EAAIP,CAAC,CAC1C,MAAO,CAELH,OAAO,CAAEH,IAAI,CAACc,KAAK,CAACN,KAAK,CAAGL,OAAO,CACnCY,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEJ,CAAC,CAAGR,MAAO,CAAC,CAAE,CAAEa,UAAU,CAAEJ,CAAC,CAAGT,MAAO,CAAC,CAAE,CAAEO,KAAA,CAAAA,KAAM,CAAC,CAC/E,CAAC,CACH\",\"ignoreList\":[]}"
|
|
643
604
|
};
|
|
644
605
|
function RippleWave({
|
|
645
606
|
wave,
|
|
@@ -649,8 +610,8 @@ function RippleWave({
|
|
|
649
610
|
opacity,
|
|
650
611
|
style
|
|
651
612
|
}) {
|
|
652
|
-
const animatedStyle = useAnimatedStyle3(function
|
|
653
|
-
|
|
613
|
+
const animatedStyle = useAnimatedStyle3(function chunkKM2TI5ICJs6Factory({
|
|
614
|
+
_worklet_10181885956967_init_data,
|
|
654
615
|
wave,
|
|
655
616
|
RIPPLE_START_SCALE,
|
|
656
617
|
center,
|
|
@@ -658,7 +619,7 @@ function RippleWave({
|
|
|
658
619
|
radius
|
|
659
620
|
}) {
|
|
660
621
|
const _e = [new global.Error(), -6, -27];
|
|
661
|
-
const
|
|
622
|
+
const chunkKM2TI5ICJs6 = function () {
|
|
662
623
|
const t = wave.expand.value;
|
|
663
624
|
const from = wave.origin.value;
|
|
664
625
|
const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
|
|
@@ -676,27 +637,27 @@ function RippleWave({
|
|
|
676
637
|
}]
|
|
677
638
|
};
|
|
678
639
|
};
|
|
679
|
-
|
|
640
|
+
chunkKM2TI5ICJs6.__closure = {
|
|
680
641
|
wave,
|
|
681
642
|
RIPPLE_START_SCALE,
|
|
682
643
|
center,
|
|
683
644
|
opacity,
|
|
684
645
|
radius
|
|
685
646
|
};
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
return
|
|
647
|
+
chunkKM2TI5ICJs6.__workletHash = 10181885956967;
|
|
648
|
+
chunkKM2TI5ICJs6.__pluginVersion = "0.7.4";
|
|
649
|
+
chunkKM2TI5ICJs6.__initData = _worklet_10181885956967_init_data;
|
|
650
|
+
chunkKM2TI5ICJs6.__stackDetails = _e;
|
|
651
|
+
return chunkKM2TI5ICJs6;
|
|
691
652
|
}({
|
|
692
|
-
|
|
653
|
+
_worklet_10181885956967_init_data,
|
|
693
654
|
wave,
|
|
694
655
|
RIPPLE_START_SCALE,
|
|
695
656
|
center,
|
|
696
657
|
opacity,
|
|
697
658
|
radius
|
|
698
659
|
}), [wave, radius, center, opacity]);
|
|
699
|
-
return /* @__PURE__ */
|
|
660
|
+
return /* @__PURE__ */jsx3(Animated3.View, {
|
|
700
661
|
style: [styles.wave, {
|
|
701
662
|
backgroundColor: color,
|
|
702
663
|
width: radius * 2,
|
|
@@ -725,4 +686,10 @@ var PressableFeedback3 = Object.assign(PressableFeedback, {
|
|
|
725
686
|
Highlight: PressableFeedbackHighlight,
|
|
726
687
|
Ripple: PressableFeedbackRipple
|
|
727
688
|
});
|
|
728
|
-
|
|
689
|
+
|
|
690
|
+
// src/utils/warn-dev.ts
|
|
691
|
+
function warnDev(message) {
|
|
692
|
+
if (typeof __DEV__ !== "undefined" && !__DEV__) return;
|
|
693
|
+
console.warn(`XAUI: ${message}`);
|
|
694
|
+
}
|
|
695
|
+
export { usePressState, warnDev, useFeedback, PRESS_SCALE, PRESS_DURATION, SCALE_REFERENCE_WIDTH, pressScaleFor, HIGHLIGHT_OPACITY, HIGHLIGHT_DURATION, RIPPLE_OPACITY, RIPPLE_START_SCALE, RIPPLE_EXPAND_DURATION, RIPPLE_CONFIRM_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT_DELAY, RIPPLE_FADE_OUT, rippleRadiusFor, resolveAnimation, resolveSlotAnimation, FEEDBACK_OVERLAY, markOverlay, PressableFeedback3 as PressableFeedback };
|