@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,5 +1,5 @@
|
|
|
1
|
-
import { Slot, createSlotContext } from "./chunk-K72UDPVN.js";
|
|
2
1
|
import { contrastOn, isHex, useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
2
|
+
import { Slot, createSlotContext } from "./chunk-K72UDPVN.js";
|
|
3
3
|
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
4
4
|
|
|
5
5
|
// src/system/pressable-feedback/pressable-feedback-context.ts
|
|
@@ -11,13 +11,13 @@ var DisableAllContext = createContext(false);
|
|
|
11
11
|
var PRESS_SCALE = 0.985;
|
|
12
12
|
var PRESS_DURATION = 300;
|
|
13
13
|
var SCALE_REFERENCE_WIDTH = 300;
|
|
14
|
-
const
|
|
15
|
-
code: "function
|
|
16
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
17
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
14
|
+
const _worklet_10204734304331_init_data = {
|
|
15
|
+
code: "function pressScaleFor_chunk6UEZJRVIJs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
|
|
16
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js",
|
|
17
|
+
sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunk6UEZJRVIJs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js\"],\"mappings\":\"AAsBA,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\":[]}"
|
|
18
18
|
};
|
|
19
|
-
const pressScaleFor = function
|
|
20
|
-
|
|
19
|
+
const pressScaleFor = function pressScaleFor_chunk6UEZJRVIJs1Factory({
|
|
20
|
+
_worklet_10204734304331_init_data,
|
|
21
21
|
SCALE_REFERENCE_WIDTH,
|
|
22
22
|
PRESS_SCALE
|
|
23
23
|
}) {
|
|
@@ -30,13 +30,13 @@ const pressScaleFor = function pressScaleFor_chunkLIUO6D3DJs1Factory({
|
|
|
30
30
|
SCALE_REFERENCE_WIDTH,
|
|
31
31
|
PRESS_SCALE
|
|
32
32
|
};
|
|
33
|
-
pressScaleFor.__workletHash =
|
|
33
|
+
pressScaleFor.__workletHash = 10204734304331;
|
|
34
34
|
pressScaleFor.__pluginVersion = "0.7.4";
|
|
35
|
-
pressScaleFor.__initData =
|
|
35
|
+
pressScaleFor.__initData = _worklet_10204734304331_init_data;
|
|
36
36
|
pressScaleFor.__stackDetails = _e;
|
|
37
37
|
return pressScaleFor;
|
|
38
38
|
}({
|
|
39
|
-
|
|
39
|
+
_worklet_10204734304331_init_data,
|
|
40
40
|
SCALE_REFERENCE_WIDTH,
|
|
41
41
|
PRESS_SCALE
|
|
42
42
|
});
|
|
@@ -49,26 +49,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
|
|
|
49
49
|
var RIPPLE_FADE_IN = 75;
|
|
50
50
|
var RIPPLE_FADE_OUT_DELAY = 225;
|
|
51
51
|
var RIPPLE_FADE_OUT = 150;
|
|
52
|
-
const
|
|
53
|
-
code: "function
|
|
54
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
55
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
52
|
+
const _worklet_5727627969008_init_data = {
|
|
53
|
+
code: "function rippleRadiusFor_chunk6UEZJRVIJs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
|
|
54
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js",
|
|
55
|
+
sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunk6UEZJRVIJs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js\"],\"mappings\":\"AAoCA,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\":[]}"
|
|
56
56
|
};
|
|
57
|
-
const rippleRadiusFor = function
|
|
58
|
-
|
|
57
|
+
const rippleRadiusFor = function rippleRadiusFor_chunk6UEZJRVIJs2Factory({
|
|
58
|
+
_worklet_5727627969008_init_data
|
|
59
59
|
}) {
|
|
60
60
|
const _e = [new global.Error(), 1, -27];
|
|
61
61
|
const rippleRadiusFor = function (width, height) {
|
|
62
62
|
return Math.sqrt(width * width + height * height) / 2 + 5;
|
|
63
63
|
};
|
|
64
64
|
rippleRadiusFor.__closure = {};
|
|
65
|
-
rippleRadiusFor.__workletHash =
|
|
65
|
+
rippleRadiusFor.__workletHash = 5727627969008;
|
|
66
66
|
rippleRadiusFor.__pluginVersion = "0.7.4";
|
|
67
|
-
rippleRadiusFor.__initData =
|
|
67
|
+
rippleRadiusFor.__initData = _worklet_5727627969008_init_data;
|
|
68
68
|
rippleRadiusFor.__stackDetails = _e;
|
|
69
69
|
return rippleRadiusFor;
|
|
70
70
|
}({
|
|
71
|
-
|
|
71
|
+
_worklet_5727627969008_init_data
|
|
72
72
|
});
|
|
73
73
|
var ALL_OFF = {
|
|
74
74
|
scale: false,
|
|
@@ -242,15 +242,15 @@ var StaticFeedback = forwardRef(function StaticFeedback2({
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
|
-
const
|
|
246
|
-
code: "function
|
|
247
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
248
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
245
|
+
const _worklet_10033516032453_init_data = {
|
|
246
|
+
code: "function chunk6UEZJRVIJs3(){const{pressScaleFor,size}=this.__closure;return pressScaleFor(size.value.width);}",
|
|
247
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js",
|
|
248
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6UEZJRVIJs3\",\"pressScaleFor\",\"size\",\"__closure\",\"value\",\"width\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js\"],\"mappings\":\"AAkNuC,SAAAA,iBAAA,QAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,OAAM,CAAAF,aAAc,CAAAC,IAAK,CAAAE,KAAM,CAAAC,KAAK\",\"ignoreList\":[]}"
|
|
249
249
|
};
|
|
250
|
-
const
|
|
251
|
-
code: "function
|
|
252
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
253
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
250
|
+
const _worklet_10361673705493_init_data = {
|
|
251
|
+
code: "function chunk6UEZJRVIJs4(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
|
|
252
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js",
|
|
253
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6UEZJRVIJs4\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js\"],\"mappings\":\"AAmNyC,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\":[]}"
|
|
254
254
|
};
|
|
255
255
|
var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
256
256
|
isPressed = false,
|
|
@@ -278,35 +278,35 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
|
278
278
|
easing: Easing.out(Easing.ease)
|
|
279
279
|
});
|
|
280
280
|
}, [isPressed, progress]);
|
|
281
|
-
const pressedScale = useDerivedValue(function
|
|
282
|
-
|
|
281
|
+
const pressedScale = useDerivedValue(function chunk6UEZJRVIJs3Factory({
|
|
282
|
+
_worklet_10033516032453_init_data,
|
|
283
283
|
pressScaleFor,
|
|
284
284
|
size
|
|
285
285
|
}) {
|
|
286
286
|
const _e = [new global.Error(), -3, -27];
|
|
287
|
-
const
|
|
288
|
-
|
|
287
|
+
const chunk6UEZJRVIJs3 = () => pressScaleFor(size.value.width);
|
|
288
|
+
chunk6UEZJRVIJs3.__closure = {
|
|
289
289
|
pressScaleFor,
|
|
290
290
|
size
|
|
291
291
|
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return
|
|
292
|
+
chunk6UEZJRVIJs3.__workletHash = 10033516032453;
|
|
293
|
+
chunk6UEZJRVIJs3.__pluginVersion = "0.7.4";
|
|
294
|
+
chunk6UEZJRVIJs3.__initData = _worklet_10033516032453_init_data;
|
|
295
|
+
chunk6UEZJRVIJs3.__stackDetails = _e;
|
|
296
|
+
return chunk6UEZJRVIJs3;
|
|
297
297
|
}({
|
|
298
|
-
|
|
298
|
+
_worklet_10033516032453_init_data,
|
|
299
299
|
pressScaleFor,
|
|
300
300
|
size
|
|
301
301
|
}));
|
|
302
|
-
const animatedStyle = useAnimatedStyle(function
|
|
303
|
-
|
|
302
|
+
const animatedStyle = useAnimatedStyle(function chunk6UEZJRVIJs4Factory({
|
|
303
|
+
_worklet_10361673705493_init_data,
|
|
304
304
|
animation,
|
|
305
305
|
pressedScale,
|
|
306
306
|
progress
|
|
307
307
|
}) {
|
|
308
308
|
const _e = [new global.Error(), -4, -27];
|
|
309
|
-
const
|
|
309
|
+
const chunk6UEZJRVIJs4 = function () {
|
|
310
310
|
if (!animation.scale) return {};
|
|
311
311
|
return {
|
|
312
312
|
transform: [{
|
|
@@ -314,18 +314,18 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
|
314
314
|
}]
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
|
-
|
|
317
|
+
chunk6UEZJRVIJs4.__closure = {
|
|
318
318
|
animation,
|
|
319
319
|
pressedScale,
|
|
320
320
|
progress
|
|
321
321
|
};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return
|
|
322
|
+
chunk6UEZJRVIJs4.__workletHash = 10361673705493;
|
|
323
|
+
chunk6UEZJRVIJs4.__pluginVersion = "0.7.4";
|
|
324
|
+
chunk6UEZJRVIJs4.__initData = _worklet_10361673705493_init_data;
|
|
325
|
+
chunk6UEZJRVIJs4.__stackDetails = _e;
|
|
326
|
+
return chunk6UEZJRVIJs4;
|
|
327
327
|
}({
|
|
328
|
-
|
|
328
|
+
_worklet_10361673705493_init_data,
|
|
329
329
|
animation,
|
|
330
330
|
pressedScale,
|
|
331
331
|
progress
|
|
@@ -470,10 +470,10 @@ function PressableFeedbackHighlight({
|
|
|
470
470
|
}
|
|
471
471
|
PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
|
|
472
472
|
markOverlay(PressableFeedbackHighlight);
|
|
473
|
-
const
|
|
474
|
-
code: "function
|
|
475
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
476
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
473
|
+
const _worklet_9195774527589_init_data = {
|
|
474
|
+
code: "function chunk6UEZJRVIJs5(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
|
|
475
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js",
|
|
476
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6UEZJRVIJs5\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js\"],\"mappings\":\"AAiW0C,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE5C,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
|
|
477
477
|
};
|
|
478
478
|
function AnimatedHighlight({
|
|
479
479
|
base,
|
|
@@ -489,28 +489,28 @@ function AnimatedHighlight({
|
|
|
489
489
|
duration
|
|
490
490
|
});
|
|
491
491
|
}, [isPressed, shown, duration]);
|
|
492
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
493
|
-
|
|
492
|
+
const animatedStyle = useAnimatedStyle2(function chunk6UEZJRVIJs5Factory({
|
|
493
|
+
_worklet_9195774527589_init_data,
|
|
494
494
|
shown,
|
|
495
495
|
opacity
|
|
496
496
|
}) {
|
|
497
497
|
const _e = [new global.Error(), -3, -27];
|
|
498
|
-
const
|
|
498
|
+
const chunk6UEZJRVIJs5 = function () {
|
|
499
499
|
return {
|
|
500
500
|
opacity: shown.value * opacity
|
|
501
501
|
};
|
|
502
502
|
};
|
|
503
|
-
|
|
503
|
+
chunk6UEZJRVIJs5.__closure = {
|
|
504
504
|
shown,
|
|
505
505
|
opacity
|
|
506
506
|
};
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
return
|
|
507
|
+
chunk6UEZJRVIJs5.__workletHash = 9195774527589;
|
|
508
|
+
chunk6UEZJRVIJs5.__pluginVersion = "0.7.4";
|
|
509
|
+
chunk6UEZJRVIJs5.__initData = _worklet_9195774527589_init_data;
|
|
510
|
+
chunk6UEZJRVIJs5.__stackDetails = _e;
|
|
511
|
+
return chunk6UEZJRVIJs5;
|
|
512
512
|
}({
|
|
513
|
-
|
|
513
|
+
_worklet_9195774527589_init_data,
|
|
514
514
|
shown,
|
|
515
515
|
opacity
|
|
516
516
|
}), [shown, opacity]);
|
|
@@ -577,10 +577,10 @@ function PressableFeedbackRipple({
|
|
|
577
577
|
}
|
|
578
578
|
PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
|
|
579
579
|
markOverlay(PressableFeedbackRipple);
|
|
580
|
-
const
|
|
581
|
-
code: "function
|
|
582
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
583
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
580
|
+
const _worklet_5341060347434_init_data = {
|
|
581
|
+
code: "function chunk6UEZJRVIJs6(){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}]};}",
|
|
582
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6UEZJRVI.js",
|
|
583
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6UEZJRVIJs6\",\"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-6UEZJRVI.js\"],\"mappings\":\"AAia0C,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\":[]}"
|
|
584
584
|
};
|
|
585
585
|
function RippleWave({
|
|
586
586
|
wave,
|
|
@@ -590,8 +590,8 @@ function RippleWave({
|
|
|
590
590
|
opacity,
|
|
591
591
|
style
|
|
592
592
|
}) {
|
|
593
|
-
const animatedStyle = useAnimatedStyle3(function
|
|
594
|
-
|
|
593
|
+
const animatedStyle = useAnimatedStyle3(function chunk6UEZJRVIJs6Factory({
|
|
594
|
+
_worklet_5341060347434_init_data,
|
|
595
595
|
wave,
|
|
596
596
|
RIPPLE_START_SCALE,
|
|
597
597
|
center,
|
|
@@ -599,7 +599,7 @@ function RippleWave({
|
|
|
599
599
|
radius
|
|
600
600
|
}) {
|
|
601
601
|
const _e = [new global.Error(), -6, -27];
|
|
602
|
-
const
|
|
602
|
+
const chunk6UEZJRVIJs6 = function () {
|
|
603
603
|
const t = wave.expand.value;
|
|
604
604
|
const from = wave.origin.value;
|
|
605
605
|
const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
|
|
@@ -617,20 +617,20 @@ function RippleWave({
|
|
|
617
617
|
}]
|
|
618
618
|
};
|
|
619
619
|
};
|
|
620
|
-
|
|
620
|
+
chunk6UEZJRVIJs6.__closure = {
|
|
621
621
|
wave,
|
|
622
622
|
RIPPLE_START_SCALE,
|
|
623
623
|
center,
|
|
624
624
|
opacity,
|
|
625
625
|
radius
|
|
626
626
|
};
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
return
|
|
627
|
+
chunk6UEZJRVIJs6.__workletHash = 5341060347434;
|
|
628
|
+
chunk6UEZJRVIJs6.__pluginVersion = "0.7.4";
|
|
629
|
+
chunk6UEZJRVIJs6.__initData = _worklet_5341060347434_init_data;
|
|
630
|
+
chunk6UEZJRVIJs6.__stackDetails = _e;
|
|
631
|
+
return chunk6UEZJRVIJs6;
|
|
632
632
|
}({
|
|
633
|
-
|
|
633
|
+
_worklet_5341060347434_init_data,
|
|
634
634
|
wave,
|
|
635
635
|
RIPPLE_START_SCALE,
|
|
636
636
|
center,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// src/hooks/use-anchor-ref.ts
|
|
2
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
3
|
+
function useAnchorRef({ isOpen, onAnchor, onLayout }) {
|
|
4
|
+
const node = useRef(null);
|
|
5
|
+
const latest = useRef(onAnchor);
|
|
6
|
+
latest.current = onAnchor;
|
|
7
|
+
const measure = useCallback(() => {
|
|
8
|
+
node.current?.measureInWindow((x, y, width, height) => {
|
|
9
|
+
latest.current({ x, y, width, height });
|
|
10
|
+
});
|
|
11
|
+
}, []);
|
|
12
|
+
const handleLayout = useCallback(
|
|
13
|
+
(event) => {
|
|
14
|
+
onLayout?.(event);
|
|
15
|
+
measure();
|
|
16
|
+
},
|
|
17
|
+
[measure, onLayout]
|
|
18
|
+
);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (isOpen) measure();
|
|
21
|
+
}, [isOpen, measure]);
|
|
22
|
+
return { node, measure, onLayout: handleLayout };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
useAnchorRef
|
|
27
|
+
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJ3MB4PI5cjs = require('./chunk-J3MB4PI5.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
@@ -23,7 +23,7 @@ var [TextAreaProvider, useTextArea] = _chunk7GHM4GKLcjs.createSlotContext.call(v
|
|
|
23
23
|
var _jsxruntime = require('react/jsx-runtime');
|
|
24
24
|
var TextAreaField = _react.forwardRef.call(void 0,
|
|
25
25
|
function TextAreaField2({ style, scrollEnabled, ...props }, ref) {
|
|
26
|
-
const { textAreaStyle, textArea } =
|
|
26
|
+
const { textAreaStyle, textArea } = _chunkJ3MB4PI5cjs.useTextField.call(void 0, );
|
|
27
27
|
const { rows, maxRows } = useTextArea();
|
|
28
28
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
29
29
|
const height = _react.useMemo.call(void 0, () => {
|
|
@@ -37,7 +37,7 @@ var TextAreaField = _react.forwardRef.call(void 0,
|
|
|
37
37
|
};
|
|
38
38
|
}, [rows, maxRows, textArea]);
|
|
39
39
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunkJ3MB4PI5cjs.TextFieldField,
|
|
41
41
|
{
|
|
42
42
|
ref,
|
|
43
43
|
multiline: true,
|
|
@@ -56,16 +56,16 @@ TextAreaField.displayName = "XAUI.TextArea.Field";
|
|
|
56
56
|
var DEFAULT_ROWS = 3;
|
|
57
57
|
var TextAreaRoot = _react.forwardRef.call(void 0, function TextArea({ rows = DEFAULT_ROWS, maxRows, children, ...props }, ref) {
|
|
58
58
|
const context = _react.useMemo.call(void 0, () => ({ rows, maxRows }), [rows, maxRows]);
|
|
59
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ3MB4PI5cjs.TextFieldRoot, { ref, ...props, children }) });
|
|
60
60
|
});
|
|
61
61
|
TextAreaRoot.displayName = "XAUI.TextArea.Root";
|
|
62
62
|
|
|
63
63
|
// src/components/text-area/index.ts
|
|
64
64
|
var TextArea2 = Object.assign(TextAreaRoot, {
|
|
65
|
-
Label:
|
|
65
|
+
Label: _chunkJ3MB4PI5cjs.TextFieldLabel,
|
|
66
66
|
Field: TextAreaField,
|
|
67
|
-
Description:
|
|
68
|
-
Error:
|
|
67
|
+
Description: _chunkJ3MB4PI5cjs.TextFieldDescription,
|
|
68
|
+
Error: _chunkJ3MB4PI5cjs.TextFieldError
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
|
|
@@ -37,9 +37,9 @@ function _optionalChain(ops) {
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
40
|
-
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
41
40
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
42
41
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
42
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
43
43
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
44
44
|
|
|
45
45
|
// src/components/input-otp/input-otp-box.tsx
|
|
@@ -78,10 +78,10 @@ function InputOTPCaret({
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
InputOTPCaret.displayName = "XAUI.InputOTP.Caret";
|
|
81
|
-
const
|
|
82
|
-
code: "function
|
|
83
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
84
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
81
|
+
const _worklet_9856484408150_init_data = {
|
|
82
|
+
code: "function chunkABAGZTXZCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
83
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ABAGZTXZ.cjs",
|
|
84
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkABAGZTXZCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ABAGZTXZ.cjs\"],\"mappings\":\"AA8D6E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
85
85
|
};
|
|
86
86
|
function BlinkingCaret({
|
|
87
87
|
style
|
|
@@ -94,26 +94,26 @@ function BlinkingCaret({
|
|
|
94
94
|
}), -1, true);
|
|
95
95
|
return () => _reactnativereanimated.cancelAnimation.call(void 0, opacity);
|
|
96
96
|
}, [opacity]);
|
|
97
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
98
|
-
|
|
97
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkABAGZTXZCjs1Factory({
|
|
98
|
+
_worklet_9856484408150_init_data,
|
|
99
99
|
opacity
|
|
100
100
|
}) {
|
|
101
101
|
const _e = [new global.Error(), -2, -27];
|
|
102
|
-
const
|
|
102
|
+
const chunkABAGZTXZCjs1 = function () {
|
|
103
103
|
return {
|
|
104
104
|
opacity: opacity.value
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
chunkABAGZTXZCjs1.__closure = {
|
|
108
108
|
opacity
|
|
109
109
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
110
|
+
chunkABAGZTXZCjs1.__workletHash = 9856484408150;
|
|
111
|
+
chunkABAGZTXZCjs1.__pluginVersion = "0.7.4";
|
|
112
|
+
chunkABAGZTXZCjs1.__initData = _worklet_9856484408150_init_data;
|
|
113
|
+
chunkABAGZTXZCjs1.__stackDetails = _e;
|
|
114
|
+
return chunkABAGZTXZCjs1;
|
|
115
115
|
}({
|
|
116
|
-
|
|
116
|
+
_worklet_9856484408150_init_data,
|
|
117
117
|
opacity
|
|
118
118
|
}), [opacity]);
|
|
119
119
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CloseButton,
|
|
3
3
|
closeButtonBase
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KCMYU7WF.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
7
|
} from "./chunk-FHUYHV6J.js";
|
|
8
8
|
import {
|
|
9
9
|
PressableFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6UEZJRVI.js";
|
|
11
11
|
import {
|
|
12
12
|
usePressState
|
|
13
13
|
} from "./chunk-423RQBOX.js";
|
|
14
14
|
import {
|
|
15
15
|
warnDev
|
|
16
16
|
} from "./chunk-EGLLDKN6.js";
|
|
17
|
-
import {
|
|
18
|
-
Slot,
|
|
19
|
-
childrenToString,
|
|
20
|
-
createSlotContext
|
|
21
|
-
} from "./chunk-K72UDPVN.js";
|
|
22
17
|
import {
|
|
23
18
|
createRecipe,
|
|
24
19
|
radiusAxis
|
|
@@ -26,6 +21,11 @@ import {
|
|
|
26
21
|
import {
|
|
27
22
|
useXAUITheme
|
|
28
23
|
} from "./chunk-A3EGFI6T.js";
|
|
24
|
+
import {
|
|
25
|
+
Slot,
|
|
26
|
+
childrenToString,
|
|
27
|
+
createSlotContext
|
|
28
|
+
} from "./chunk-K72UDPVN.js";
|
|
29
29
|
import {
|
|
30
30
|
useStyleProps
|
|
31
31
|
} from "./chunk-M63GFNKV.js";
|
|
@@ -6,21 +6,21 @@ var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
|
|
|
6
6
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3E7CDKFOcjs = require('./chunk-3E7CDKFO.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
19
20
|
|
|
20
|
-
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -252,7 +252,7 @@ var RadioRoot = _react.forwardRef.call(void 0, function Radio({
|
|
|
252
252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioLabel, { children: text })
|
|
253
253
|
] }) : _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioIndicator, {})));
|
|
254
254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
255
|
-
|
|
255
|
+
_chunk3E7CDKFOcjs.PressableFeedback,
|
|
256
256
|
{
|
|
257
257
|
ref,
|
|
258
258
|
isPressed,
|