@xaui/native 0.9.1-alpha.39 → 0.9.1-alpha.40
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-GJSFKH4L.js → chunk-2XPG2243.js} +16 -16
- package/dist/{chunk-TGMVEHV7.cjs → chunk-3E7CDKFO.cjs} +61 -61
- package/dist/{chunk-37L7YGZV.cjs → chunk-5R26NM4M.cjs} +11 -34
- package/dist/chunk-5VKYNBNA.js +607 -0
- package/dist/{chunk-S4QUM4EE.cjs → chunk-6DOLGZVV.cjs} +4 -4
- package/dist/{chunk-LIUO6D3D.js → chunk-6UEZJRVI.js} +75 -75
- package/dist/chunk-734MFAX4.js +27 -0
- package/dist/{chunk-VZK3NLBH.cjs → chunk-7YF5NAHQ.cjs} +7 -7
- package/dist/{chunk-SIP5J7HU.cjs → chunk-ABAGZTXZ.cjs} +15 -15
- package/dist/{chunk-USF6EWYR.js → chunk-BRRXFOBY.js} +7 -7
- package/dist/{chunk-4KSKQD37.cjs → chunk-C5YLPCFC.cjs} +5 -5
- package/dist/{chunk-54CWXA34.cjs → chunk-DA3OKXHV.cjs} +59 -59
- package/dist/{chunk-HA6BFY3A.js → chunk-DD4276RF.js} +6 -6
- package/dist/{chunk-SACDOFGF.js → chunk-DG2I4PJG.js} +15 -15
- package/dist/{chunk-FBCWNXZC.js → chunk-DHGLGSH6.js} +58 -58
- package/dist/{chunk-MXGER5PI.js → chunk-DIBUQ46Y.js} +5 -5
- package/dist/{chunk-XAFP5JLK.js → chunk-EZEYMLO3.js} +13 -36
- package/dist/{chunk-7KLBTMXV.cjs → chunk-G7P3ERYF.cjs} +5 -5
- package/dist/{chunk-QZ24MZRX.js → chunk-GA6PBWNT.js} +1 -1
- package/dist/{chunk-HOI5425P.cjs → chunk-GFUZ3MUT.cjs} +6 -6
- package/dist/chunk-GTR5X65M.cjs +27 -0
- package/dist/{chunk-EYD4H4X6.js → chunk-KCMYU7WF.js} +1 -1
- package/dist/{chunk-JKP4TPIL.js → chunk-LRN3RNDO.js} +16 -16
- package/dist/{chunk-XNMZQSY5.js → chunk-N3KTZMPG.js} +5 -5
- package/dist/{chunk-7TOG4TVU.cjs → chunk-NWGLP6JX.cjs} +15 -15
- package/dist/{chunk-NCCRQK3P.cjs → chunk-R73XQK7X.cjs} +5 -5
- package/dist/{chunk-76XDVA24.cjs → chunk-RU7JCMWC.cjs} +6 -6
- package/dist/chunk-T5FV5F7A.cjs +607 -0
- package/dist/{chunk-3JXI2IHV.cjs → chunk-TJ74XVZN.cjs} +8 -8
- package/dist/{chunk-URA25DU4.cjs → chunk-UAWBAD4E.cjs} +5 -5
- package/dist/{chunk-6CO6FM67.js → chunk-UFTCTTKK.js} +15 -15
- package/dist/{chunk-DY3SUG5P.js → chunk-XFPQFCEK.js} +6 -6
- package/dist/{chunk-66FOASTP.cjs → chunk-XV735BSA.cjs} +6 -6
- package/dist/{chunk-TRETQZEW.js → chunk-YGYYJ3LQ.js} +5 -5
- package/dist/{chunk-R7BU4CPS.js → chunk-YVHT2UVW.js} +1 -1
- package/dist/{chunk-AAVCMCJ3.cjs → chunk-ZFOOJK37.cjs} +2 -2
- package/dist/components/accordion/index.cjs +5 -5
- package/dist/components/accordion/index.js +4 -4
- package/dist/components/alert/index.cjs +6 -6
- package/dist/components/alert/index.js +5 -5
- package/dist/components/avatar/index.cjs +4 -4
- package/dist/components/avatar/index.js +3 -3
- package/dist/components/badge/index.cjs +4 -4
- package/dist/components/badge/index.js +3 -3
- package/dist/components/button/index.cjs +5 -5
- package/dist/components/button/index.js +4 -4
- package/dist/components/card/index.cjs +5 -5
- package/dist/components/card/index.js +4 -4
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/chip/index.cjs +6 -6
- package/dist/components/chip/index.js +5 -5
- package/dist/components/divider/index.cjs +4 -4
- package/dist/components/divider/index.js +3 -3
- package/dist/components/field-group/index.cjs +5 -5
- package/dist/components/field-group/index.js +4 -4
- package/dist/components/input-otp/index.cjs +4 -4
- package/dist/components/input-otp/index.js +3 -3
- package/dist/components/menu/index.cjs +49 -0
- package/dist/components/menu/index.d.cts +351 -0
- package/dist/components/menu/index.d.ts +351 -0
- package/dist/components/menu/index.js +49 -0
- package/dist/components/popover/index.cjs +6 -5
- package/dist/components/popover/index.js +5 -4
- package/dist/components/radio/index.cjs +5 -5
- package/dist/components/radio/index.js +4 -4
- package/dist/components/select/index.cjs +5 -5
- package/dist/components/select/index.d.cts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +4 -4
- package/dist/components/spinner/index.cjs +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/switch/index.cjs +5 -5
- package/dist/components/switch/index.js +4 -4
- package/dist/components/text-area/index.cjs +5 -5
- package/dist/components/text-area/index.js +4 -4
- package/dist/components/text-field/index.cjs +4 -4
- package/dist/components/text-field/index.js +3 -3
- package/dist/components/typography/index.cjs +4 -4
- package/dist/components/typography/index.js +3 -3
- package/dist/index.cjs +61 -28
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +78 -45
- package/dist/system/index.cjs +7 -7
- package/dist/system/index.js +7 -7
- package/package.json +11 -1
- package/dist/{chunk-S2WNWMNT.js → chunk-2NRZKJG7.js} +4 -4
- package/dist/{chunk-26OGEFQI.js → chunk-4CUZZWFW.js} +3 -3
- package/dist/{chunk-KSUV74BE.cjs → chunk-6L2TS2R3.cjs} +3 -3
- package/dist/{chunk-SZLXPF3G.js → chunk-73RKQC5X.js} +3 -3
- package/dist/{chunk-BNFIFRQA.cjs → chunk-AMCSSOJT.cjs} +3 -3
- package/dist/{chunk-346QBNUD.js → chunk-H7DS4IO7.js} +4 -4
- package/dist/{chunk-RKCWYUGA.cjs → chunk-HDVVZG4S.cjs} +3 -3
- package/dist/{chunk-A7YB7YWX.cjs → chunk-J3MB4PI5.cjs} +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { INDICATOR_ROTATION, INDICATOR_SPRING } from "./chunk-64MXEVT3.js";
|
|
2
2
|
import { ChevronDownIcon, Icon, IconContext } from "./chunk-FHUYHV6J.js";
|
|
3
3
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
4
|
-
import { PressableFeedback } from "./chunk-
|
|
4
|
+
import { PressableFeedback } from "./chunk-6UEZJRVI.js";
|
|
5
5
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
6
|
-
import { Slot, createSlotContext } from "./chunk-K72UDPVN.js";
|
|
7
6
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
8
7
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
8
|
+
import { Slot, createSlotContext } from "./chunk-K72UDPVN.js";
|
|
9
9
|
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
10
10
|
|
|
11
11
|
// src/components/accordion/accordion-content.tsx
|
|
@@ -53,10 +53,10 @@ AccordionContent.displayName = "XAUI.Accordion.Content";
|
|
|
53
53
|
import { useEffect } from "react";
|
|
54
54
|
import Animated2, { interpolate, useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
55
55
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
56
|
-
const
|
|
57
|
-
code: "function
|
|
58
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
59
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
56
|
+
const _worklet_11408331723562_init_data = {
|
|
57
|
+
code: "function chunk2XPG2243Js1(){const{interpolate,progress,INDICATOR_ROTATION}=this.__closure;return{transform:[{rotate:interpolate(progress.get(),[0,1],[INDICATOR_ROTATION[0],INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
58
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-2XPG2243.js",
|
|
59
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk2XPG2243Js1\",\"interpolate\",\"progress\",\"INDICATOR_ROTATION\",\"__closure\",\"transform\",\"rotate\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-2XPG2243.js\"],\"mappings\":\"AA8FoC,SAAAA,iBAAA,QAAAC,WAAA,CAAAC,QAAA,CAAAC,kBAAA,OAAAC,SAAA,OAAO,CACvCC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,WAAW,CAACC,QAAQ,CAACK,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACJ,kBAAkB,CAAC,CAAC,CAAC,CAAEA,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MAChG,CAAC,CAEL,CAAC\",\"ignoreList\":[]}"
|
|
60
60
|
};
|
|
61
61
|
function AccordionIndicator({
|
|
62
62
|
as = ChevronDownIcon,
|
|
@@ -72,30 +72,30 @@ function AccordionIndicator({
|
|
|
72
72
|
useEffect(() => {
|
|
73
73
|
progress.set(withSpring(isExpanded ? 1 : 0, INDICATOR_SPRING));
|
|
74
74
|
}, [isExpanded, progress]);
|
|
75
|
-
const rotation = useAnimatedStyle(function
|
|
76
|
-
|
|
75
|
+
const rotation = useAnimatedStyle(function chunk2XPG2243Js1Factory({
|
|
76
|
+
_worklet_11408331723562_init_data,
|
|
77
77
|
interpolate,
|
|
78
78
|
progress,
|
|
79
79
|
INDICATOR_ROTATION
|
|
80
80
|
}) {
|
|
81
81
|
const _e = [new global.Error(), -4, -27];
|
|
82
|
-
const
|
|
82
|
+
const chunk2XPG2243Js1 = () => ({
|
|
83
83
|
transform: [{
|
|
84
84
|
rotate: `${interpolate(progress.get(), [0, 1], [INDICATOR_ROTATION[0], INDICATOR_ROTATION[1]])}deg`
|
|
85
85
|
}]
|
|
86
86
|
});
|
|
87
|
-
|
|
87
|
+
chunk2XPG2243Js1.__closure = {
|
|
88
88
|
interpolate,
|
|
89
89
|
progress,
|
|
90
90
|
INDICATOR_ROTATION
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return
|
|
92
|
+
chunk2XPG2243Js1.__workletHash = 11408331723562;
|
|
93
|
+
chunk2XPG2243Js1.__pluginVersion = "0.7.4";
|
|
94
|
+
chunk2XPG2243Js1.__initData = _worklet_11408331723562_init_data;
|
|
95
|
+
chunk2XPG2243Js1.__stackDetails = _e;
|
|
96
|
+
return chunk2XPG2243Js1;
|
|
97
97
|
}({
|
|
98
|
-
|
|
98
|
+
_worklet_11408331723562_init_data,
|
|
99
99
|
interpolate,
|
|
100
100
|
progress,
|
|
101
101
|
INDICATOR_ROTATION
|
|
@@ -36,8 +36,8 @@ function _optionalChain(ops) {
|
|
|
36
36
|
}
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
|
-
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
40
39
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
40
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
41
41
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
42
42
|
|
|
43
43
|
// src/system/pressable-feedback/pressable-feedback-context.ts
|
|
@@ -49,13 +49,13 @@ var DisableAllContext = _react.createContext.call(void 0, false);
|
|
|
49
49
|
var PRESS_SCALE = 0.985;
|
|
50
50
|
var PRESS_DURATION = 300;
|
|
51
51
|
var SCALE_REFERENCE_WIDTH = 300;
|
|
52
|
-
const
|
|
53
|
-
code: "function
|
|
54
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
55
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
52
|
+
const _worklet_14435407638231_init_data = {
|
|
53
|
+
code: "function pressScaleFor_chunk3E7CDKFOCjs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
|
|
54
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs",
|
|
55
|
+
sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunk3E7CDKFOCjs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs\"],\"mappings\":\"AAsBA,SAAAA,+BAA8BA,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\":[]}"
|
|
56
56
|
};
|
|
57
|
-
const pressScaleFor = function
|
|
58
|
-
|
|
57
|
+
const pressScaleFor = function pressScaleFor_chunk3E7CDKFOCjs1Factory({
|
|
58
|
+
_worklet_14435407638231_init_data,
|
|
59
59
|
SCALE_REFERENCE_WIDTH,
|
|
60
60
|
PRESS_SCALE
|
|
61
61
|
}) {
|
|
@@ -68,13 +68,13 @@ const pressScaleFor = function pressScaleFor_chunkTGMVEHV7Cjs1Factory({
|
|
|
68
68
|
SCALE_REFERENCE_WIDTH,
|
|
69
69
|
PRESS_SCALE
|
|
70
70
|
};
|
|
71
|
-
pressScaleFor.__workletHash =
|
|
71
|
+
pressScaleFor.__workletHash = 14435407638231;
|
|
72
72
|
pressScaleFor.__pluginVersion = "0.7.4";
|
|
73
|
-
pressScaleFor.__initData =
|
|
73
|
+
pressScaleFor.__initData = _worklet_14435407638231_init_data;
|
|
74
74
|
pressScaleFor.__stackDetails = _e;
|
|
75
75
|
return pressScaleFor;
|
|
76
76
|
}({
|
|
77
|
-
|
|
77
|
+
_worklet_14435407638231_init_data,
|
|
78
78
|
SCALE_REFERENCE_WIDTH,
|
|
79
79
|
PRESS_SCALE
|
|
80
80
|
});
|
|
@@ -87,26 +87,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
|
|
|
87
87
|
var RIPPLE_FADE_IN = 75;
|
|
88
88
|
var RIPPLE_FADE_OUT_DELAY = 225;
|
|
89
89
|
var RIPPLE_FADE_OUT = 150;
|
|
90
|
-
const
|
|
91
|
-
code: "function
|
|
92
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
93
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
90
|
+
const _worklet_7514373601452_init_data = {
|
|
91
|
+
code: "function rippleRadiusFor_chunk3E7CDKFOCjs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
|
|
92
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs",
|
|
93
|
+
sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunk3E7CDKFOCjs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs\"],\"mappings\":\"AAoCA,SAAAA,iCAAwCA,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\":[]}"
|
|
94
94
|
};
|
|
95
|
-
const rippleRadiusFor = function
|
|
96
|
-
|
|
95
|
+
const rippleRadiusFor = function rippleRadiusFor_chunk3E7CDKFOCjs2Factory({
|
|
96
|
+
_worklet_7514373601452_init_data
|
|
97
97
|
}) {
|
|
98
98
|
const _e = [new global.Error(), 1, -27];
|
|
99
99
|
const rippleRadiusFor = function (width, height) {
|
|
100
100
|
return Math.sqrt(width * width + height * height) / 2 + 5;
|
|
101
101
|
};
|
|
102
102
|
rippleRadiusFor.__closure = {};
|
|
103
|
-
rippleRadiusFor.__workletHash =
|
|
103
|
+
rippleRadiusFor.__workletHash = 7514373601452;
|
|
104
104
|
rippleRadiusFor.__pluginVersion = "0.7.4";
|
|
105
|
-
rippleRadiusFor.__initData =
|
|
105
|
+
rippleRadiusFor.__initData = _worklet_7514373601452_init_data;
|
|
106
106
|
rippleRadiusFor.__stackDetails = _e;
|
|
107
107
|
return rippleRadiusFor;
|
|
108
108
|
}({
|
|
109
|
-
|
|
109
|
+
_worklet_7514373601452_init_data
|
|
110
110
|
});
|
|
111
111
|
var ALL_OFF = {
|
|
112
112
|
scale: false,
|
|
@@ -281,10 +281,10 @@ var StaticFeedback = _react.forwardRef.call(void 0, function StaticFeedback2({
|
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
283
|
});
|
|
284
|
-
const
|
|
285
|
-
code: "function
|
|
286
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
287
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
284
|
+
const _worklet_9209681642894_init_data = {
|
|
285
|
+
code: "function chunk3E7CDKFOCjs3(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
|
|
286
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs",
|
|
287
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk3E7CDKFOCjs3\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs\"],\"mappings\":\"AAmN6E,SAAAA,iBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE/E,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\":[]}"
|
|
288
288
|
};
|
|
289
289
|
var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2({
|
|
290
290
|
isPressed = false,
|
|
@@ -313,14 +313,14 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
|
|
|
313
313
|
});
|
|
314
314
|
}, [isPressed, progress]);
|
|
315
315
|
const pressedScale = _reactnativereanimated.useDerivedValue.call(void 0, () => pressScaleFor(size.value.width));
|
|
316
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
317
|
-
|
|
316
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk3E7CDKFOCjs3Factory({
|
|
317
|
+
_worklet_9209681642894_init_data,
|
|
318
318
|
animation,
|
|
319
319
|
pressedScale,
|
|
320
320
|
progress
|
|
321
321
|
}) {
|
|
322
322
|
const _e = [new global.Error(), -4, -27];
|
|
323
|
-
const
|
|
323
|
+
const chunk3E7CDKFOCjs3 = function () {
|
|
324
324
|
if (!animation.scale) return {};
|
|
325
325
|
return {
|
|
326
326
|
transform: [{
|
|
@@ -328,18 +328,18 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
|
|
|
328
328
|
}]
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
|
-
|
|
331
|
+
chunk3E7CDKFOCjs3.__closure = {
|
|
332
332
|
animation,
|
|
333
333
|
pressedScale,
|
|
334
334
|
progress
|
|
335
335
|
};
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return
|
|
336
|
+
chunk3E7CDKFOCjs3.__workletHash = 9209681642894;
|
|
337
|
+
chunk3E7CDKFOCjs3.__pluginVersion = "0.7.4";
|
|
338
|
+
chunk3E7CDKFOCjs3.__initData = _worklet_9209681642894_init_data;
|
|
339
|
+
chunk3E7CDKFOCjs3.__stackDetails = _e;
|
|
340
|
+
return chunk3E7CDKFOCjs3;
|
|
341
341
|
}({
|
|
342
|
-
|
|
342
|
+
_worklet_9209681642894_init_data,
|
|
343
343
|
animation,
|
|
344
344
|
pressedScale,
|
|
345
345
|
progress
|
|
@@ -481,10 +481,10 @@ function PressableFeedbackHighlight({
|
|
|
481
481
|
}
|
|
482
482
|
PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
|
|
483
483
|
markOverlay(PressableFeedbackHighlight);
|
|
484
|
-
const
|
|
485
|
-
code: "function
|
|
486
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
487
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
484
|
+
const _worklet_10119725823288_init_data = {
|
|
485
|
+
code: "function chunk3E7CDKFOCjs4(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
|
|
486
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs",
|
|
487
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk3E7CDKFOCjs4\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs\"],\"mappings\":\"AAiW6E,SAAAA,iBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
|
|
488
488
|
};
|
|
489
489
|
function AnimatedHighlight({
|
|
490
490
|
base,
|
|
@@ -500,28 +500,28 @@ function AnimatedHighlight({
|
|
|
500
500
|
duration
|
|
501
501
|
});
|
|
502
502
|
}, [isPressed, shown, duration]);
|
|
503
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
504
|
-
|
|
503
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk3E7CDKFOCjs4Factory({
|
|
504
|
+
_worklet_10119725823288_init_data,
|
|
505
505
|
shown,
|
|
506
506
|
opacity
|
|
507
507
|
}) {
|
|
508
508
|
const _e = [new global.Error(), -3, -27];
|
|
509
|
-
const
|
|
509
|
+
const chunk3E7CDKFOCjs4 = function () {
|
|
510
510
|
return {
|
|
511
511
|
opacity: shown.value * opacity
|
|
512
512
|
};
|
|
513
513
|
};
|
|
514
|
-
|
|
514
|
+
chunk3E7CDKFOCjs4.__closure = {
|
|
515
515
|
shown,
|
|
516
516
|
opacity
|
|
517
517
|
};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
return
|
|
518
|
+
chunk3E7CDKFOCjs4.__workletHash = 10119725823288;
|
|
519
|
+
chunk3E7CDKFOCjs4.__pluginVersion = "0.7.4";
|
|
520
|
+
chunk3E7CDKFOCjs4.__initData = _worklet_10119725823288_init_data;
|
|
521
|
+
chunk3E7CDKFOCjs4.__stackDetails = _e;
|
|
522
|
+
return chunk3E7CDKFOCjs4;
|
|
523
523
|
}({
|
|
524
|
-
|
|
524
|
+
_worklet_10119725823288_init_data,
|
|
525
525
|
shown,
|
|
526
526
|
opacity
|
|
527
527
|
}), [shown, opacity]);
|
|
@@ -585,10 +585,10 @@ function PressableFeedbackRipple({
|
|
|
585
585
|
}
|
|
586
586
|
PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
|
|
587
587
|
markOverlay(PressableFeedbackRipple);
|
|
588
|
-
const
|
|
589
|
-
code: "function
|
|
590
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
591
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
588
|
+
const _worklet_12631975666453_init_data = {
|
|
589
|
+
code: "function chunk3E7CDKFOCjs5(){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}]};}",
|
|
590
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-3E7CDKFO.cjs",
|
|
591
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk3E7CDKFOCjs5\",\"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-3E7CDKFO.cjs\"],\"mappings\":\"AAia6E,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,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\":[]}"
|
|
592
592
|
};
|
|
593
593
|
function RippleWave({
|
|
594
594
|
wave,
|
|
@@ -598,8 +598,8 @@ function RippleWave({
|
|
|
598
598
|
opacity,
|
|
599
599
|
style
|
|
600
600
|
}) {
|
|
601
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
602
|
-
|
|
601
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk3E7CDKFOCjs5Factory({
|
|
602
|
+
_worklet_12631975666453_init_data,
|
|
603
603
|
wave,
|
|
604
604
|
RIPPLE_START_SCALE,
|
|
605
605
|
center,
|
|
@@ -607,7 +607,7 @@ function RippleWave({
|
|
|
607
607
|
radius
|
|
608
608
|
}) {
|
|
609
609
|
const _e = [new global.Error(), -6, -27];
|
|
610
|
-
const
|
|
610
|
+
const chunk3E7CDKFOCjs5 = function () {
|
|
611
611
|
const t = wave.expand.value;
|
|
612
612
|
const from = wave.origin.value;
|
|
613
613
|
const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
|
|
@@ -625,20 +625,20 @@ function RippleWave({
|
|
|
625
625
|
}]
|
|
626
626
|
};
|
|
627
627
|
};
|
|
628
|
-
|
|
628
|
+
chunk3E7CDKFOCjs5.__closure = {
|
|
629
629
|
wave,
|
|
630
630
|
RIPPLE_START_SCALE,
|
|
631
631
|
center,
|
|
632
632
|
opacity,
|
|
633
633
|
radius
|
|
634
634
|
};
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
return
|
|
635
|
+
chunk3E7CDKFOCjs5.__workletHash = 12631975666453;
|
|
636
|
+
chunk3E7CDKFOCjs5.__pluginVersion = "0.7.4";
|
|
637
|
+
chunk3E7CDKFOCjs5.__initData = _worklet_12631975666453_init_data;
|
|
638
|
+
chunk3E7CDKFOCjs5.__stackDetails = _e;
|
|
639
|
+
return chunk3E7CDKFOCjs5;
|
|
640
640
|
}({
|
|
641
|
-
|
|
641
|
+
_worklet_12631975666453_init_data,
|
|
642
642
|
wave,
|
|
643
643
|
RIPPLE_START_SCALE,
|
|
644
644
|
center,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
|
+
var _chunkGTR5X65Mcjs = require('./chunk-GTR5X65M.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkLUPCPLNDcjs = require('./chunk-LUPCPLND.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
@@ -18,15 +21,12 @@ var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
|
18
21
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
var
|
|
24
|
+
var _chunk3E7CDKFOcjs = require('./chunk-3E7CDKFO.cjs');
|
|
22
25
|
|
|
23
26
|
|
|
24
27
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
25
28
|
|
|
26
29
|
|
|
27
|
-
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
28
|
-
|
|
29
|
-
|
|
30
30
|
|
|
31
31
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
32
32
|
|
|
@@ -34,6 +34,9 @@ var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
|
34
34
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
38
|
+
|
|
39
|
+
|
|
37
40
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
38
41
|
|
|
39
42
|
// src/components/popover/popover-close.tsx
|
|
@@ -66,7 +69,7 @@ var PopoverClose = _react.forwardRef.call(void 0,
|
|
|
66
69
|
[close, onPress]
|
|
67
70
|
);
|
|
68
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
69
|
-
|
|
72
|
+
_chunk3E7CDKFOcjs.PressableFeedback,
|
|
70
73
|
{
|
|
71
74
|
ref,
|
|
72
75
|
isPressed,
|
|
@@ -272,32 +275,6 @@ PopoverTitle.displayName = "XAUI.Popover.Title";
|
|
|
272
275
|
// src/components/popover/popover-trigger.tsx
|
|
273
276
|
|
|
274
277
|
|
|
275
|
-
// src/hooks/use-anchor-ref.ts
|
|
276
|
-
|
|
277
|
-
function useAnchorRef({ isOpen, onAnchor, onLayout }) {
|
|
278
|
-
const node = _react.useRef.call(void 0, null);
|
|
279
|
-
const latest = _react.useRef.call(void 0, onAnchor);
|
|
280
|
-
latest.current = onAnchor;
|
|
281
|
-
const measure = _react.useCallback.call(void 0, () => {
|
|
282
|
-
_optionalChain([node, 'access', _3 => _3.current, 'optionalAccess', _4 => _4.measureInWindow, 'call', _5 => _5((x, y, width, height) => {
|
|
283
|
-
latest.current({ x, y, width, height });
|
|
284
|
-
})]);
|
|
285
|
-
}, []);
|
|
286
|
-
const handleLayout = _react.useCallback.call(void 0,
|
|
287
|
-
(event) => {
|
|
288
|
-
_optionalChain([onLayout, 'optionalCall', _6 => _6(event)]);
|
|
289
|
-
measure();
|
|
290
|
-
},
|
|
291
|
-
[measure, onLayout]
|
|
292
|
-
);
|
|
293
|
-
_react.useEffect.call(void 0, () => {
|
|
294
|
-
if (isOpen) measure();
|
|
295
|
-
}, [isOpen, measure]);
|
|
296
|
-
return { node, measure, onLayout: handleLayout };
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
// src/components/popover/popover-trigger.tsx
|
|
300
|
-
|
|
301
278
|
var PopoverTrigger = _react.forwardRef.call(void 0,
|
|
302
279
|
function PopoverTrigger2({
|
|
303
280
|
children,
|
|
@@ -314,18 +291,18 @@ var PopoverTrigger = _react.forwardRef.call(void 0,
|
|
|
314
291
|
const { triggerStyle, isOpen, isDisabled, toggle, setAnchor } = usePopover();
|
|
315
292
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
316
293
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
317
|
-
const anchor = useAnchorRef({ isOpen, onAnchor: setAnchor, onLayout });
|
|
294
|
+
const anchor = _chunkGTR5X65Mcjs.useAnchorRef.call(void 0, { isOpen, onAnchor: setAnchor, onLayout });
|
|
318
295
|
const refs = _chunkWFEMJCXOcjs.useMergedRef.call(void 0, anchor.node, ref);
|
|
319
296
|
const handlePress = _react.useCallback.call(void 0,
|
|
320
297
|
(event) => {
|
|
321
|
-
_optionalChain([onPress, 'optionalCall',
|
|
298
|
+
_optionalChain([onPress, 'optionalCall', _3 => _3(event)]);
|
|
322
299
|
anchor.measure();
|
|
323
300
|
toggle();
|
|
324
301
|
},
|
|
325
302
|
[anchor, onPress, toggle]
|
|
326
303
|
);
|
|
327
304
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
-
|
|
305
|
+
_chunk3E7CDKFOcjs.PressableFeedback,
|
|
329
306
|
{
|
|
330
307
|
ref: refs,
|
|
331
308
|
isPressed,
|