@xaui/native 0.9.1-alpha.14 → 0.9.1-alpha.16
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-CLU6QDYC.js → chunk-64L44HEI.js} +95 -94
- package/dist/{chunk-F2TPUVVO.cjs → chunk-BAACHVM4.cjs} +2 -2
- package/dist/{chunk-H2USQQUD.js → chunk-E3756MJC.js} +15 -15
- package/dist/{chunk-4O3PXFQ7.js → chunk-EHHSY2KB.js} +4 -4
- package/dist/{chunk-DDYMIWLW.cjs → chunk-KCUT47FY.cjs} +4 -4
- package/dist/{chunk-MMSNVFXU.cjs → chunk-NLFE3CRM.cjs} +23 -23
- package/dist/{chunk-GRXC6J5M.cjs → chunk-PUER6Y4M.cjs} +73 -72
- package/dist/{chunk-5XAFRH2H.js → chunk-UOJBK5Z4.js} +1 -1
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +4 -4
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.js +2 -2
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.d.cts +4 -4
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/index.js +1 -1
- package/package.json +1 -1
|
@@ -214,13 +214,13 @@ var DisableAllContext = createContext3(false);
|
|
|
214
214
|
var PRESS_SCALE = 0.985;
|
|
215
215
|
var PRESS_DURATION = 300;
|
|
216
216
|
var SCALE_REFERENCE_WIDTH = 300;
|
|
217
|
-
const
|
|
218
|
-
code: "function
|
|
219
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
220
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
217
|
+
const _worklet_7139534127642_init_data = {
|
|
218
|
+
code: "function pressScaleFor_chunk64L44HEIJs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
|
|
219
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js",
|
|
220
|
+
sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunk64L44HEIJs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js\"],\"mappings\":\"AA2WA,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\":[]}"
|
|
221
221
|
};
|
|
222
|
-
const pressScaleFor = function
|
|
223
|
-
|
|
222
|
+
const pressScaleFor = function pressScaleFor_chunk64L44HEIJs1Factory({
|
|
223
|
+
_worklet_7139534127642_init_data,
|
|
224
224
|
SCALE_REFERENCE_WIDTH,
|
|
225
225
|
PRESS_SCALE
|
|
226
226
|
}) {
|
|
@@ -233,13 +233,13 @@ const pressScaleFor = function pressScaleFor_chunkCLU6QDYCJs1Factory({
|
|
|
233
233
|
SCALE_REFERENCE_WIDTH,
|
|
234
234
|
PRESS_SCALE
|
|
235
235
|
};
|
|
236
|
-
pressScaleFor.__workletHash =
|
|
236
|
+
pressScaleFor.__workletHash = 7139534127642;
|
|
237
237
|
pressScaleFor.__pluginVersion = "0.7.4";
|
|
238
|
-
pressScaleFor.__initData =
|
|
238
|
+
pressScaleFor.__initData = _worklet_7139534127642_init_data;
|
|
239
239
|
pressScaleFor.__stackDetails = _e;
|
|
240
240
|
return pressScaleFor;
|
|
241
241
|
}({
|
|
242
|
-
|
|
242
|
+
_worklet_7139534127642_init_data,
|
|
243
243
|
SCALE_REFERENCE_WIDTH,
|
|
244
244
|
PRESS_SCALE
|
|
245
245
|
});
|
|
@@ -252,26 +252,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
|
|
|
252
252
|
var RIPPLE_FADE_IN = 75;
|
|
253
253
|
var RIPPLE_FADE_OUT_DELAY = 225;
|
|
254
254
|
var RIPPLE_FADE_OUT = 150;
|
|
255
|
-
const
|
|
256
|
-
code: "function
|
|
257
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
258
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
255
|
+
const _worklet_8530012985633_init_data = {
|
|
256
|
+
code: "function rippleRadiusFor_chunk64L44HEIJs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
|
|
257
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js",
|
|
258
|
+
sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunk64L44HEIJs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js\"],\"mappings\":\"AAyXA,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\":[]}"
|
|
259
259
|
};
|
|
260
|
-
const rippleRadiusFor = function
|
|
261
|
-
|
|
260
|
+
const rippleRadiusFor = function rippleRadiusFor_chunk64L44HEIJs2Factory({
|
|
261
|
+
_worklet_8530012985633_init_data
|
|
262
262
|
}) {
|
|
263
263
|
const _e = [new global.Error(), 1, -27];
|
|
264
264
|
const rippleRadiusFor = function (width, height) {
|
|
265
265
|
return Math.sqrt(width * width + height * height) / 2 + 5;
|
|
266
266
|
};
|
|
267
267
|
rippleRadiusFor.__closure = {};
|
|
268
|
-
rippleRadiusFor.__workletHash =
|
|
268
|
+
rippleRadiusFor.__workletHash = 8530012985633;
|
|
269
269
|
rippleRadiusFor.__pluginVersion = "0.7.4";
|
|
270
|
-
rippleRadiusFor.__initData =
|
|
270
|
+
rippleRadiusFor.__initData = _worklet_8530012985633_init_data;
|
|
271
271
|
rippleRadiusFor.__stackDetails = _e;
|
|
272
272
|
return rippleRadiusFor;
|
|
273
273
|
}({
|
|
274
|
-
|
|
274
|
+
_worklet_8530012985633_init_data
|
|
275
275
|
});
|
|
276
276
|
var ALL_OFF = {
|
|
277
277
|
scale: false,
|
|
@@ -336,7 +336,7 @@ function resolveSlotAnimation(override, enabledByRoot, defaultOpacity, defaultDu
|
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
// src/system/pressable-feedback/pressable-feedback.overlay.ts
|
|
339
|
-
import { Children, isValidElement as isValidElement4 } from "react";
|
|
339
|
+
import { Children, Fragment, createElement, isValidElement as isValidElement4 } from "react";
|
|
340
340
|
var FEEDBACK_OVERLAY = /* @__PURE__ */Symbol.for("xaui.PressableFeedback.overlay");
|
|
341
341
|
function markOverlay(component) {
|
|
342
342
|
return Object.assign(component, {
|
|
@@ -363,6 +363,15 @@ function partitionOverlays(children) {
|
|
|
363
363
|
content: all.filter(node => !isBareOverlay(node))
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
+
function feedbackChildren(children, asChild) {
|
|
367
|
+
if (asChild) return children;
|
|
368
|
+
const {
|
|
369
|
+
overlays,
|
|
370
|
+
content
|
|
371
|
+
} = partitionOverlays(children);
|
|
372
|
+
if (overlays === null) return content;
|
|
373
|
+
return createElement(Fragment, null, overlays, content);
|
|
374
|
+
}
|
|
366
375
|
|
|
367
376
|
// src/system/pressable-feedback/pressable-feedback.tsx
|
|
368
377
|
import { forwardRef as forwardRef2, useContext as useContext3, useEffect, useMemo as useMemo2, useRef } from "react";
|
|
@@ -386,7 +395,7 @@ function radiusFrom(style) {
|
|
|
386
395
|
}
|
|
387
396
|
|
|
388
397
|
// src/system/pressable-feedback/pressable-feedback.tsx
|
|
389
|
-
import { jsx as jsx2
|
|
398
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
390
399
|
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
391
400
|
var AnimatedSlot = Animated.createAnimatedComponent(Slot);
|
|
392
401
|
var PressableFeedback = forwardRef2(function PressableFeedback2({
|
|
@@ -425,30 +434,26 @@ var StaticFeedback = forwardRef2(function StaticFeedback2({
|
|
|
425
434
|
...surface
|
|
426
435
|
}), [isPressed, animation, surface]);
|
|
427
436
|
const Root = asChild ? Slot : Pressable;
|
|
428
|
-
const {
|
|
429
|
-
overlays,
|
|
430
|
-
content
|
|
431
|
-
} = partitionOverlays(children);
|
|
432
437
|
return /* @__PURE__ */jsx2(FeedbackProvider, {
|
|
433
438
|
value: context,
|
|
434
|
-
children: /* @__PURE__ */
|
|
439
|
+
children: /* @__PURE__ */jsx2(Root, {
|
|
435
440
|
ref,
|
|
436
441
|
style,
|
|
437
442
|
disabled: isDisabled,
|
|
438
443
|
...rest,
|
|
439
|
-
children:
|
|
444
|
+
children: feedbackChildren(children, asChild)
|
|
440
445
|
})
|
|
441
446
|
});
|
|
442
447
|
});
|
|
443
|
-
const
|
|
444
|
-
code: "function
|
|
445
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
446
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
448
|
+
const _worklet_17549026676436_init_data = {
|
|
449
|
+
code: "function chunk64L44HEIJs3(){const{pressScaleFor,size}=this.__closure;return pressScaleFor(size.value.width);}",
|
|
450
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js",
|
|
451
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk64L44HEIJs3\",\"pressScaleFor\",\"size\",\"__closure\",\"value\",\"width\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js\"],\"mappings\":\"AAuiBuC,SAAAA,iBAAA,QAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,OAAM,CAAAF,aAAc,CAAAC,IAAK,CAAAE,KAAM,CAAAC,KAAK\",\"ignoreList\":[]}"
|
|
447
452
|
};
|
|
448
|
-
const
|
|
449
|
-
code: "function
|
|
450
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
451
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
453
|
+
const _worklet_11319249043844_init_data = {
|
|
454
|
+
code: "function chunk64L44HEIJs4(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
|
|
455
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js",
|
|
456
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk64L44HEIJs4\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js\"],\"mappings\":\"AAwiByC,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\":[]}"
|
|
452
457
|
};
|
|
453
458
|
var AnimatedFeedback = forwardRef2(function AnimatedFeedback2({
|
|
454
459
|
isPressed = false,
|
|
@@ -476,35 +481,35 @@ var AnimatedFeedback = forwardRef2(function AnimatedFeedback2({
|
|
|
476
481
|
easing: Easing.out(Easing.ease)
|
|
477
482
|
});
|
|
478
483
|
}, [isPressed, progress]);
|
|
479
|
-
const pressedScale = useDerivedValue(function
|
|
480
|
-
|
|
484
|
+
const pressedScale = useDerivedValue(function chunk64L44HEIJs3Factory({
|
|
485
|
+
_worklet_17549026676436_init_data,
|
|
481
486
|
pressScaleFor,
|
|
482
487
|
size
|
|
483
488
|
}) {
|
|
484
489
|
const _e = [new global.Error(), -3, -27];
|
|
485
|
-
const
|
|
486
|
-
|
|
490
|
+
const chunk64L44HEIJs3 = () => pressScaleFor(size.value.width);
|
|
491
|
+
chunk64L44HEIJs3.__closure = {
|
|
487
492
|
pressScaleFor,
|
|
488
493
|
size
|
|
489
494
|
};
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
return
|
|
495
|
+
chunk64L44HEIJs3.__workletHash = 17549026676436;
|
|
496
|
+
chunk64L44HEIJs3.__pluginVersion = "0.7.4";
|
|
497
|
+
chunk64L44HEIJs3.__initData = _worklet_17549026676436_init_data;
|
|
498
|
+
chunk64L44HEIJs3.__stackDetails = _e;
|
|
499
|
+
return chunk64L44HEIJs3;
|
|
495
500
|
}({
|
|
496
|
-
|
|
501
|
+
_worklet_17549026676436_init_data,
|
|
497
502
|
pressScaleFor,
|
|
498
503
|
size
|
|
499
504
|
}));
|
|
500
|
-
const animatedStyle = useAnimatedStyle(function
|
|
501
|
-
|
|
505
|
+
const animatedStyle = useAnimatedStyle(function chunk64L44HEIJs4Factory({
|
|
506
|
+
_worklet_11319249043844_init_data,
|
|
502
507
|
animation,
|
|
503
508
|
pressedScale,
|
|
504
509
|
progress
|
|
505
510
|
}) {
|
|
506
511
|
const _e = [new global.Error(), -4, -27];
|
|
507
|
-
const
|
|
512
|
+
const chunk64L44HEIJs4 = function () {
|
|
508
513
|
if (!animation.scale) return {};
|
|
509
514
|
return {
|
|
510
515
|
transform: [{
|
|
@@ -512,18 +517,18 @@ var AnimatedFeedback = forwardRef2(function AnimatedFeedback2({
|
|
|
512
517
|
}]
|
|
513
518
|
};
|
|
514
519
|
};
|
|
515
|
-
|
|
520
|
+
chunk64L44HEIJs4.__closure = {
|
|
516
521
|
animation,
|
|
517
522
|
pressedScale,
|
|
518
523
|
progress
|
|
519
524
|
};
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
return
|
|
525
|
+
chunk64L44HEIJs4.__workletHash = 11319249043844;
|
|
526
|
+
chunk64L44HEIJs4.__pluginVersion = "0.7.4";
|
|
527
|
+
chunk64L44HEIJs4.__initData = _worklet_11319249043844_init_data;
|
|
528
|
+
chunk64L44HEIJs4.__stackDetails = _e;
|
|
529
|
+
return chunk64L44HEIJs4;
|
|
525
530
|
}({
|
|
526
|
-
|
|
531
|
+
_worklet_11319249043844_init_data,
|
|
527
532
|
animation,
|
|
528
533
|
pressedScale,
|
|
529
534
|
progress
|
|
@@ -588,13 +593,9 @@ var AnimatedFeedback = forwardRef2(function AnimatedFeedback2({
|
|
|
588
593
|
onLayout?.(event);
|
|
589
594
|
};
|
|
590
595
|
const Root = asChild ? AnimatedSlot : AnimatedPressable;
|
|
591
|
-
const {
|
|
592
|
-
overlays,
|
|
593
|
-
content
|
|
594
|
-
} = partitionOverlays(children);
|
|
595
596
|
return /* @__PURE__ */jsx2(FeedbackProvider, {
|
|
596
597
|
value: context,
|
|
597
|
-
children: /* @__PURE__ */
|
|
598
|
+
children: /* @__PURE__ */jsx2(Root, {
|
|
598
599
|
ref,
|
|
599
600
|
style: [style, animatedStyle],
|
|
600
601
|
disabled: isDisabled,
|
|
@@ -603,7 +604,7 @@ var AnimatedFeedback = forwardRef2(function AnimatedFeedback2({
|
|
|
603
604
|
onTouchEnd: handleTouchEnd,
|
|
604
605
|
onTouchCancel: handleTouchCancel,
|
|
605
606
|
...rest,
|
|
606
|
-
children:
|
|
607
|
+
children: feedbackChildren(children, asChild)
|
|
607
608
|
})
|
|
608
609
|
});
|
|
609
610
|
});
|
|
@@ -633,7 +634,7 @@ function useSurface(style) {
|
|
|
633
634
|
import { useEffect as useEffect2 } from "react";
|
|
634
635
|
import { StyleSheet as StyleSheet2, View as View2 } from "react-native";
|
|
635
636
|
import Animated2, { useAnimatedStyle as useAnimatedStyle2, useSharedValue as useSharedValue2, withTiming as withTiming2 } from "react-native-reanimated";
|
|
636
|
-
import { Fragment, jsx as jsx3, jsxs
|
|
637
|
+
import { Fragment as Fragment2, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
637
638
|
function PressableFeedbackHighlight({
|
|
638
639
|
style,
|
|
639
640
|
animation: override,
|
|
@@ -654,7 +655,7 @@ function PressableFeedbackHighlight({
|
|
|
654
655
|
pointerEvents: "none"
|
|
655
656
|
}, corners, styleProps, style];
|
|
656
657
|
if (!progress || !settings.enabled) {
|
|
657
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */jsxs(Fragment2, {
|
|
658
659
|
children: [/* @__PURE__ */jsx3(View2, {
|
|
659
660
|
style: [base, {
|
|
660
661
|
opacity: isPressed ? settings.opacity : 0
|
|
@@ -662,7 +663,7 @@ function PressableFeedbackHighlight({
|
|
|
662
663
|
}), children]
|
|
663
664
|
});
|
|
664
665
|
}
|
|
665
|
-
return /* @__PURE__ */
|
|
666
|
+
return /* @__PURE__ */jsxs(Fragment2, {
|
|
666
667
|
children: [/* @__PURE__ */jsx3(AnimatedHighlight, {
|
|
667
668
|
base,
|
|
668
669
|
duration: settings.duration,
|
|
@@ -672,10 +673,10 @@ function PressableFeedbackHighlight({
|
|
|
672
673
|
}
|
|
673
674
|
PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
|
|
674
675
|
markOverlay(PressableFeedbackHighlight);
|
|
675
|
-
const
|
|
676
|
-
code: "function
|
|
677
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
678
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
676
|
+
const _worklet_1017691592244_init_data = {
|
|
677
|
+
code: "function chunk64L44HEIJs5(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
|
|
678
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js",
|
|
679
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk64L44HEIJs5\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js\"],\"mappings\":\"AAsrB0C,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE5C,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
|
|
679
680
|
};
|
|
680
681
|
function AnimatedHighlight({
|
|
681
682
|
base,
|
|
@@ -691,28 +692,28 @@ function AnimatedHighlight({
|
|
|
691
692
|
duration
|
|
692
693
|
});
|
|
693
694
|
}, [isPressed, shown, duration]);
|
|
694
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
695
|
-
|
|
695
|
+
const animatedStyle = useAnimatedStyle2(function chunk64L44HEIJs5Factory({
|
|
696
|
+
_worklet_1017691592244_init_data,
|
|
696
697
|
shown,
|
|
697
698
|
opacity
|
|
698
699
|
}) {
|
|
699
700
|
const _e = [new global.Error(), -3, -27];
|
|
700
|
-
const
|
|
701
|
+
const chunk64L44HEIJs5 = function () {
|
|
701
702
|
return {
|
|
702
703
|
opacity: shown.value * opacity
|
|
703
704
|
};
|
|
704
705
|
};
|
|
705
|
-
|
|
706
|
+
chunk64L44HEIJs5.__closure = {
|
|
706
707
|
shown,
|
|
707
708
|
opacity
|
|
708
709
|
};
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
return
|
|
710
|
+
chunk64L44HEIJs5.__workletHash = 1017691592244;
|
|
711
|
+
chunk64L44HEIJs5.__pluginVersion = "0.7.4";
|
|
712
|
+
chunk64L44HEIJs5.__initData = _worklet_1017691592244_init_data;
|
|
713
|
+
chunk64L44HEIJs5.__stackDetails = _e;
|
|
714
|
+
return chunk64L44HEIJs5;
|
|
714
715
|
}({
|
|
715
|
-
|
|
716
|
+
_worklet_1017691592244_init_data,
|
|
716
717
|
shown,
|
|
717
718
|
opacity
|
|
718
719
|
}), [shown, opacity]);
|
|
@@ -725,7 +726,7 @@ function AnimatedHighlight({
|
|
|
725
726
|
import { useState } from "react";
|
|
726
727
|
import { StyleSheet as StyleSheet3, View as View3 } from "react-native";
|
|
727
728
|
import Animated3, { useAnimatedStyle as useAnimatedStyle3 } from "react-native-reanimated";
|
|
728
|
-
import { Fragment as
|
|
729
|
+
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
729
730
|
function PressableFeedbackRipple({
|
|
730
731
|
style,
|
|
731
732
|
animation: override,
|
|
@@ -755,11 +756,11 @@ function PressableFeedbackRipple({
|
|
|
755
756
|
height
|
|
756
757
|
});
|
|
757
758
|
};
|
|
758
|
-
if (!waves || !settings.enabled) return /* @__PURE__ */jsx4(
|
|
759
|
+
if (!waves || !settings.enabled) return /* @__PURE__ */jsx4(Fragment3, {
|
|
759
760
|
children
|
|
760
761
|
});
|
|
761
762
|
const radius = rippleRadiusFor(size.width, size.height);
|
|
762
|
-
return /* @__PURE__ */
|
|
763
|
+
return /* @__PURE__ */jsxs2(Fragment3, {
|
|
763
764
|
children: [/* @__PURE__ */jsx4(View3, {
|
|
764
765
|
style: [StyleSheet3.absoluteFill, styles.clip, corners],
|
|
765
766
|
onLayout: handleLayout,
|
|
@@ -779,10 +780,10 @@ function PressableFeedbackRipple({
|
|
|
779
780
|
}
|
|
780
781
|
PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
|
|
781
782
|
markOverlay(PressableFeedbackRipple);
|
|
782
|
-
const
|
|
783
|
-
code: "function
|
|
784
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
785
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
783
|
+
const _worklet_12261780159803_init_data = {
|
|
784
|
+
code: "function chunk64L44HEIJs6(){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}]};}",
|
|
785
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-64L44HEI.js",
|
|
786
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk64L44HEIJs6\",\"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-64L44HEI.js\"],\"mappings\":\"AAsvB0C,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\":[]}"
|
|
786
787
|
};
|
|
787
788
|
function RippleWave({
|
|
788
789
|
wave,
|
|
@@ -792,8 +793,8 @@ function RippleWave({
|
|
|
792
793
|
opacity,
|
|
793
794
|
style
|
|
794
795
|
}) {
|
|
795
|
-
const animatedStyle = useAnimatedStyle3(function
|
|
796
|
-
|
|
796
|
+
const animatedStyle = useAnimatedStyle3(function chunk64L44HEIJs6Factory({
|
|
797
|
+
_worklet_12261780159803_init_data,
|
|
797
798
|
wave,
|
|
798
799
|
RIPPLE_START_SCALE,
|
|
799
800
|
center,
|
|
@@ -801,7 +802,7 @@ function RippleWave({
|
|
|
801
802
|
radius
|
|
802
803
|
}) {
|
|
803
804
|
const _e = [new global.Error(), -6, -27];
|
|
804
|
-
const
|
|
805
|
+
const chunk64L44HEIJs6 = function () {
|
|
805
806
|
const t = wave.expand.value;
|
|
806
807
|
const from = wave.origin.value;
|
|
807
808
|
const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
|
|
@@ -819,20 +820,20 @@ function RippleWave({
|
|
|
819
820
|
}]
|
|
820
821
|
};
|
|
821
822
|
};
|
|
822
|
-
|
|
823
|
+
chunk64L44HEIJs6.__closure = {
|
|
823
824
|
wave,
|
|
824
825
|
RIPPLE_START_SCALE,
|
|
825
826
|
center,
|
|
826
827
|
opacity,
|
|
827
828
|
radius
|
|
828
829
|
};
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
return
|
|
830
|
+
chunk64L44HEIJs6.__workletHash = 12261780159803;
|
|
831
|
+
chunk64L44HEIJs6.__pluginVersion = "0.7.4";
|
|
832
|
+
chunk64L44HEIJs6.__initData = _worklet_12261780159803_init_data;
|
|
833
|
+
chunk64L44HEIJs6.__stackDetails = _e;
|
|
834
|
+
return chunk64L44HEIJs6;
|
|
834
835
|
}({
|
|
835
|
-
|
|
836
|
+
_worklet_12261780159803_init_data,
|
|
836
837
|
wave,
|
|
837
838
|
RIPPLE_START_SCALE,
|
|
838
839
|
center,
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkPUER6Y4Mcjs = require('./chunk-PUER6Y4M.cjs');
|
|
4
4
|
|
|
5
5
|
// src/system/portal/portal.tsx
|
|
6
6
|
var _react = require('react');
|
|
@@ -31,7 +31,7 @@ var styles = _reactnative.StyleSheet.create({
|
|
|
31
31
|
container: { flex: 1 }
|
|
32
32
|
});
|
|
33
33
|
function PortalHost({ children, ...props }) {
|
|
34
|
-
const [styleProps] =
|
|
34
|
+
const [styleProps] = _chunkPUER6Y4Mcjs.useStyleProps.call(void 0, props);
|
|
35
35
|
const [portals, setPortals] = _react.useState.call(void 0, /* @__PURE__ */ new Map());
|
|
36
36
|
const addPortal = _react.useCallback.call(void 0, (key, element) => {
|
|
37
37
|
setPortals((current) => new Map(current).set(key, element));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Icon, PressableFeedback, childrenToString, createRecipe, createSlotContext, useStyleProps } from "./chunk-
|
|
1
|
+
import { Icon, PressableFeedback, childrenToString, createRecipe, createSlotContext, useStyleProps } from "./chunk-64L44HEI.js";
|
|
2
2
|
import { useXAUITheme } from "./chunk-XJARE6SC.js";
|
|
3
3
|
|
|
4
4
|
// src/components/button/button.context.ts
|
|
@@ -70,10 +70,10 @@ function ButtonSpinner({
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
ButtonSpinner.displayName = "XAUI.Button.Spinner";
|
|
73
|
-
const
|
|
74
|
-
code: "function
|
|
75
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
76
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
73
|
+
const _worklet_6495167332289_init_data = {
|
|
74
|
+
code: "function chunkE3756MJCJs1(){const{angle}=this.__closure;return{transform:[{rotate:angle.value+\"deg\"}]};}",
|
|
75
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-E3756MJC.js",
|
|
76
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkE3756MJCJs1\",\"angle\",\"__closure\",\"transform\",\"rotate\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-E3756MJC.js\"],\"mappings\":\"AA0EyC,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,OAAAC,SAAA,CAE3C,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,MAAM,CAAKH,KAAK,CAACI,KAAK,MAAM,CAAC,CAAE,CAAC,CACzD\",\"ignoreList\":[]}"
|
|
77
77
|
};
|
|
78
78
|
function SpinningRing({
|
|
79
79
|
style
|
|
@@ -86,28 +86,28 @@ function SpinningRing({
|
|
|
86
86
|
}), -1, false);
|
|
87
87
|
return () => cancelAnimation(angle);
|
|
88
88
|
}, [angle]);
|
|
89
|
-
const animatedStyle = useAnimatedStyle(function
|
|
90
|
-
|
|
89
|
+
const animatedStyle = useAnimatedStyle(function chunkE3756MJCJs1Factory({
|
|
90
|
+
_worklet_6495167332289_init_data,
|
|
91
91
|
angle
|
|
92
92
|
}) {
|
|
93
93
|
const _e = [new global.Error(), -2, -27];
|
|
94
|
-
const
|
|
94
|
+
const chunkE3756MJCJs1 = function () {
|
|
95
95
|
return {
|
|
96
96
|
transform: [{
|
|
97
97
|
rotate: `${angle.value}deg`
|
|
98
98
|
}]
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
chunkE3756MJCJs1.__closure = {
|
|
102
102
|
angle
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return
|
|
104
|
+
chunkE3756MJCJs1.__workletHash = 6495167332289;
|
|
105
|
+
chunkE3756MJCJs1.__pluginVersion = "0.7.4";
|
|
106
|
+
chunkE3756MJCJs1.__initData = _worklet_6495167332289_init_data;
|
|
107
|
+
chunkE3756MJCJs1.__stackDetails = _e;
|
|
108
|
+
return chunkE3756MJCJs1;
|
|
109
109
|
}({
|
|
110
|
-
|
|
110
|
+
_worklet_6495167332289_init_data,
|
|
111
111
|
angle
|
|
112
112
|
}), [angle]);
|
|
113
113
|
return /* @__PURE__ */jsx3(Animated.View, {
|
|
@@ -163,7 +163,7 @@ var tokens = {
|
|
|
163
163
|
overlayForeground: "#18181b",
|
|
164
164
|
backdrop: "rgba(0, 0, 0, 0.2)",
|
|
165
165
|
muted: "#71717a",
|
|
166
|
-
default: "#
|
|
166
|
+
default: "#e4e4e7",
|
|
167
167
|
defaultForeground: "#18181b",
|
|
168
168
|
accent: "#9333ea",
|
|
169
169
|
accentForeground: "#faf5ff",
|
|
@@ -187,11 +187,11 @@ var tokens = {
|
|
|
187
187
|
successPressed: "#1b753a",
|
|
188
188
|
warningPressed: "#a34d13",
|
|
189
189
|
dangerPressed: "#c72927",
|
|
190
|
-
defaultPressed: "#
|
|
190
|
+
defaultPressed: "#dbdbde",
|
|
191
191
|
surfacePressed: "#eaeaea",
|
|
192
|
-
defaultSoft: "rgba(
|
|
192
|
+
defaultSoft: "rgba(228, 228, 231, 0.5)",
|
|
193
193
|
defaultSoftForeground: "#18181b",
|
|
194
|
-
defaultSoftPressed: "rgba(
|
|
194
|
+
defaultSoftPressed: "rgba(228, 228, 231, 0.6)",
|
|
195
195
|
accentSoft: "rgba(147, 51, 234, 0.15)",
|
|
196
196
|
accentSoftForeground: "#7833bc",
|
|
197
197
|
accentSoftPressed: "rgba(147, 51, 234, 0.2)",
|
|
@@ -163,7 +163,7 @@ var tokens = {
|
|
|
163
163
|
overlayForeground: "#18181b",
|
|
164
164
|
backdrop: "rgba(0, 0, 0, 0.2)",
|
|
165
165
|
muted: "#71717a",
|
|
166
|
-
default: "#
|
|
166
|
+
default: "#e4e4e7",
|
|
167
167
|
defaultForeground: "#18181b",
|
|
168
168
|
accent: "#9333ea",
|
|
169
169
|
accentForeground: "#faf5ff",
|
|
@@ -187,11 +187,11 @@ var tokens = {
|
|
|
187
187
|
successPressed: "#1b753a",
|
|
188
188
|
warningPressed: "#a34d13",
|
|
189
189
|
dangerPressed: "#c72927",
|
|
190
|
-
defaultPressed: "#
|
|
190
|
+
defaultPressed: "#dbdbde",
|
|
191
191
|
surfacePressed: "#eaeaea",
|
|
192
|
-
defaultSoft: "rgba(
|
|
192
|
+
defaultSoft: "rgba(228, 228, 231, 0.5)",
|
|
193
193
|
defaultSoftForeground: "#18181b",
|
|
194
|
-
defaultSoftPressed: "rgba(
|
|
194
|
+
defaultSoftPressed: "rgba(228, 228, 231, 0.6)",
|
|
195
195
|
accentSoft: "rgba(147, 51, 234, 0.15)",
|
|
196
196
|
accentSoftForeground: "#7833bc",
|
|
197
197
|
accentSoftPressed: "rgba(147, 51, 234, 0.2)",
|