@xaui/native 0.9.1-alpha.37 → 0.9.1-alpha.39
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-OULTSBKU.js → chunk-26OGEFQI.js} +1 -1
- package/dist/chunk-2EGR4LWD.js +145 -0
- package/dist/{chunk-TJHYSSBZ.js → chunk-346QBNUD.js} +1 -1
- package/dist/chunk-37L7YGZV.cjs +425 -0
- package/dist/{chunk-PPWXLZGL.js → chunk-3GFRSZYR.js} +15 -23
- package/dist/{chunk-DKH6BNPF.cjs → chunk-3JXI2IHV.cjs} +13 -13
- package/dist/{chunk-7B3UBUC6.cjs → chunk-4KFKWBN5.cjs} +23 -2
- package/dist/{chunk-IGLKACSR.cjs → chunk-4KSKQD37.cjs} +5 -5
- package/dist/{chunk-UBOXW5WO.cjs → chunk-54CWXA34.cjs} +61 -61
- package/dist/chunk-64MXEVT3.js +66 -0
- package/dist/{chunk-ZJWEVFAO.cjs → chunk-66FOASTP.cjs} +9 -9
- package/dist/{chunk-5PPNDKRX.js → chunk-6CO6FM67.js} +16 -16
- package/dist/{chunk-DVDQSW7U.cjs → chunk-76XDVA24.cjs} +65 -190
- package/dist/{chunk-54FJOKAN.cjs → chunk-7GHM4GKL.cjs} +25 -25
- package/dist/chunk-7KLBTMXV.cjs +478 -0
- package/dist/{chunk-AP6RVIIK.cjs → chunk-7TOG4TVU.cjs} +21 -21
- package/dist/{chunk-LEWW24RQ.cjs → chunk-A7YB7YWX.cjs} +3 -3
- package/dist/{chunk-3P6M2R4S.cjs → chunk-AAVCMCJ3.cjs} +4 -4
- package/dist/{chunk-VFTT3Q4B.cjs → chunk-BNFIFRQA.cjs} +3 -3
- package/dist/{chunk-JXNFOOKC.js → chunk-DY3SUG5P.js} +5 -5
- package/dist/chunk-EKS3W46M.cjs +66 -0
- package/dist/{chunk-EOJ5MYAQ.js → chunk-EYD4H4X6.js} +4 -4
- package/dist/{chunk-RGKWNK4T.js → chunk-FBCWNXZC.js} +58 -58
- package/dist/{chunk-HXW4ANVB.js → chunk-FHUYHV6J.js} +25 -4
- package/dist/chunk-GJSFKH4L.js +586 -0
- package/dist/{chunk-6G3XWPNP.js → chunk-HA6BFY3A.js} +3 -3
- package/dist/{chunk-FTQHDJYL.cjs → chunk-HOI5425P.cjs} +9 -9
- package/dist/{chunk-XWY4DF37.js → chunk-JKP4TPIL.js} +86 -289
- package/dist/{chunk-YXPYOOHU.js → chunk-K72UDPVN.js} +27 -27
- package/dist/{chunk-NTD3NPRX.cjs → chunk-KSUV74BE.cjs} +2 -2
- package/dist/{chunk-UGF35NSE.js → chunk-LIUO6D3D.js} +75 -75
- package/dist/{chunk-E3X5ODKQ.js → chunk-LTX6TB5I.js} +1 -1
- package/dist/chunk-LUPCPLND.cjs +145 -0
- package/dist/{chunk-BORJJYDW.js → chunk-MXGER5PI.js} +2 -2
- package/dist/{chunk-GTT4NHS2.cjs → chunk-NCCRQK3P.cjs} +11 -11
- package/dist/chunk-NCTOTTVW.js +13 -0
- package/dist/{chunk-NKPTXTTS.js → chunk-QZ24MZRX.js} +3 -3
- package/dist/{chunk-7LSY4WFL.js → chunk-R7BU4CPS.js} +2 -2
- package/dist/{chunk-JB5LGQ54.cjs → chunk-RKCWYUGA.cjs} +3 -3
- package/dist/{chunk-SMW6ZWMH.js → chunk-S2WNWMNT.js} +1 -1
- package/dist/{chunk-WVLSQO6K.cjs → chunk-S4QUM4EE.cjs} +9 -9
- package/dist/{chunk-SO5UAGIU.js → chunk-SACDOFGF.js} +15 -15
- package/dist/{chunk-CUQTAPBU.cjs → chunk-SIP5J7HU.cjs} +17 -17
- package/dist/{chunk-O3A3DBSZ.js → chunk-SZLXPF3G.js} +1 -1
- package/dist/{chunk-437QULXO.cjs → chunk-TDTUAIFF.cjs} +5 -5
- package/dist/{chunk-DRMT346W.cjs → chunk-TGMVEHV7.cjs} +64 -64
- package/dist/{chunk-TDYPY2J7.js → chunk-TRETQZEW.js} +7 -7
- package/dist/{chunk-ITURCQMQ.cjs → chunk-URA25DU4.cjs} +5 -5
- package/dist/{chunk-4PTWZCOK.js → chunk-USF6EWYR.js} +7 -7
- package/dist/{chunk-P747CRAY.cjs → chunk-VZK3NLBH.cjs} +9 -9
- package/dist/chunk-WFEMJCXO.cjs +13 -0
- package/dist/chunk-XAFP5JLK.js +425 -0
- package/dist/{chunk-RVRVGG73.js → chunk-XNMZQSY5.js} +2 -2
- package/dist/{chunk-K4TWKF5U.cjs → chunk-XSQPVDFH.cjs} +15 -25
- package/dist/{chunk-JDSE4TQL.js → chunk-XTC2SLFT.js} +1 -1
- package/dist/{chunk-C5VDFRAD.cjs → chunk-XWNG2U4K.cjs} +2 -2
- package/dist/components/accordion/index.cjs +35 -0
- package/dist/components/accordion/index.d.cts +299 -0
- package/dist/components/accordion/index.d.ts +299 -0
- package/dist/components/accordion/index.js +35 -0
- package/dist/components/alert/index.cjs +7 -7
- package/dist/components/alert/index.d.cts +2 -2
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +6 -6
- package/dist/components/avatar/index.cjs +4 -4
- package/dist/components/avatar/index.d.cts +3 -3
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +3 -3
- package/dist/components/badge/index.cjs +3 -3
- package/dist/components/badge/index.d.cts +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.js +2 -2
- package/dist/components/button/index.cjs +8 -7
- package/dist/components/button/index.d.cts +204 -204
- package/dist/components/button/index.d.ts +204 -204
- package/dist/components/button/index.js +7 -6
- package/dist/components/card/index.cjs +5 -5
- package/dist/components/card/index.d.cts +206 -206
- package/dist/components/card/index.d.ts +206 -206
- package/dist/components/card/index.js +4 -4
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.d.cts +408 -408
- package/dist/components/checkbox/index.d.ts +408 -408
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/chip/index.cjs +7 -7
- package/dist/components/chip/index.d.cts +205 -205
- package/dist/components/chip/index.d.ts +205 -205
- package/dist/components/chip/index.js +6 -6
- package/dist/components/divider/index.cjs +3 -3
- package/dist/components/divider/index.d.cts +3 -3
- package/dist/components/divider/index.d.ts +3 -3
- package/dist/components/divider/index.js +2 -2
- package/dist/components/field-group/index.cjs +5 -5
- package/dist/components/field-group/index.d.cts +8 -8
- package/dist/components/field-group/index.d.ts +8 -8
- package/dist/components/field-group/index.js +4 -4
- package/dist/components/input-otp/index.cjs +3 -3
- package/dist/components/input-otp/index.d.cts +2 -2
- package/dist/components/input-otp/index.d.ts +2 -2
- package/dist/components/input-otp/index.js +2 -2
- package/dist/components/popover/index.cjs +37 -0
- package/dist/components/popover/index.d.cts +254 -0
- package/dist/components/popover/index.d.ts +254 -0
- package/dist/components/popover/index.js +37 -0
- package/dist/components/radio/index.cjs +5 -5
- package/dist/components/radio/index.d.cts +419 -419
- package/dist/components/radio/index.d.ts +419 -419
- package/dist/components/radio/index.js +4 -4
- package/dist/components/select/index.cjs +10 -7
- package/dist/components/select/index.d.cts +24 -45
- package/dist/components/select/index.d.ts +24 -45
- package/dist/components/select/index.js +9 -6
- package/dist/components/skeleton/index.d.cts +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/spinner/index.cjs +5 -4
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +4 -3
- package/dist/components/switch/index.cjs +5 -5
- package/dist/components/switch/index.d.cts +409 -409
- package/dist/components/switch/index.d.ts +409 -409
- package/dist/components/switch/index.js +4 -4
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.d.cts +3 -3
- package/dist/components/text-field/index.d.ts +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/typography/index.cjs +3 -3
- package/dist/components/typography/index.d.cts +5 -5
- package/dist/components/typography/index.d.ts +5 -5
- package/dist/components/typography/index.js +2 -2
- package/dist/components/view/index.cjs +3 -3
- package/dist/components/view/index.d.cts +8 -8
- package/dist/components/view/index.d.ts +8 -8
- package/dist/components/view/index.js +2 -2
- package/dist/index.cjs +89 -28
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +109 -48
- package/dist/placement-DHa0Rrh1.d.cts +38 -0
- package/dist/placement-DHa0Rrh1.d.ts +38 -0
- package/dist/system/index.cjs +24 -8
- package/dist/system/index.d.cts +83 -34
- package/dist/system/index.d.ts +83 -34
- package/dist/system/index.js +24 -8
- package/package.json +21 -1
- /package/dist/{chunk-OJCCV65P.cjs → chunk-GGW43Q37.cjs} +0 -0
- /package/dist/{chunk-MESKS6AI.js → chunk-WHJTBTYM.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PressableFeedback
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
warnDev
|
|
6
|
-
} from "./chunk-EGLLDKN6.js";
|
|
3
|
+
} from "./chunk-LIUO6D3D.js";
|
|
7
4
|
import {
|
|
8
5
|
usePressState
|
|
9
6
|
} from "./chunk-423RQBOX.js";
|
|
7
|
+
import {
|
|
8
|
+
warnDev
|
|
9
|
+
} from "./chunk-EGLLDKN6.js";
|
|
10
10
|
import {
|
|
11
11
|
Slot,
|
|
12
12
|
childrenToString,
|
|
13
13
|
createSlotContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K72UDPVN.js";
|
|
15
15
|
import {
|
|
16
16
|
createRecipe
|
|
17
17
|
} from "./chunk-4GTAZM2C.js";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/system/anchored/anchored-motion.ts
|
|
2
|
+
var _reactnativereanimated = require('react-native-reanimated');
|
|
3
|
+
var ENTER_MS = 200;
|
|
4
|
+
var EXIT_MS = 150;
|
|
5
|
+
var TRAVEL = 8;
|
|
6
|
+
function anchoredEntering(placement) {
|
|
7
|
+
const [x, y] = travel(placement);
|
|
8
|
+
return new (0, _reactnativereanimated.Keyframe)({
|
|
9
|
+
0: {
|
|
10
|
+
opacity: 0,
|
|
11
|
+
transform: [{ translateX: x }, { translateY: y }, { scale: 0.95 }]
|
|
12
|
+
},
|
|
13
|
+
100: {
|
|
14
|
+
opacity: 1,
|
|
15
|
+
transform: [{ translateX: 0 }, { translateY: 0 }, { scale: 1 }],
|
|
16
|
+
easing: _reactnativereanimated.Easing.out(_reactnativereanimated.Easing.cubic)
|
|
17
|
+
}
|
|
18
|
+
}).duration(ENTER_MS);
|
|
19
|
+
}
|
|
20
|
+
function anchoredExiting(placement) {
|
|
21
|
+
const [x, y] = travel(placement);
|
|
22
|
+
return new (0, _reactnativereanimated.Keyframe)({
|
|
23
|
+
0: {
|
|
24
|
+
opacity: 1,
|
|
25
|
+
transform: [{ translateX: 0 }, { translateY: 0 }, { scale: 1 }]
|
|
26
|
+
},
|
|
27
|
+
100: {
|
|
28
|
+
opacity: 0,
|
|
29
|
+
transform: [{ translateX: x }, { translateY: y }, { scale: 0.95 }],
|
|
30
|
+
easing: _reactnativereanimated.Easing.in(_reactnativereanimated.Easing.cubic)
|
|
31
|
+
}
|
|
32
|
+
}).duration(EXIT_MS);
|
|
33
|
+
}
|
|
34
|
+
function travel(placement) {
|
|
35
|
+
switch (placement) {
|
|
36
|
+
case "bottom":
|
|
37
|
+
return [0, -TRAVEL];
|
|
38
|
+
case "top":
|
|
39
|
+
return [0, TRAVEL];
|
|
40
|
+
case "end":
|
|
41
|
+
return [-TRAVEL, 0];
|
|
42
|
+
case "start":
|
|
43
|
+
return [TRAVEL, 0];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
var overlayEntering = new (0, _reactnativereanimated.Keyframe)({
|
|
47
|
+
0: { opacity: 0 },
|
|
48
|
+
100: { opacity: 1 }
|
|
49
|
+
}).duration(ENTER_MS);
|
|
50
|
+
var overlayExiting = new (0, _reactnativereanimated.Keyframe)({
|
|
51
|
+
0: { opacity: 1 },
|
|
52
|
+
100: { opacity: 0 }
|
|
53
|
+
}).duration(EXIT_MS);
|
|
54
|
+
|
|
55
|
+
// src/system/anchored/indicator-spring.ts
|
|
56
|
+
var INDICATOR_SPRING = { damping: 140, stiffness: 1e3, mass: 4 };
|
|
57
|
+
var INDICATOR_ROTATION = [0, -180];
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
exports.anchoredEntering = anchoredEntering; exports.anchoredExiting = anchoredExiting; exports.overlayEntering = overlayEntering; exports.overlayExiting = overlayExiting; exports.INDICATOR_SPRING = INDICATOR_SPRING; exports.INDICATOR_ROTATION = INDICATOR_ROTATION;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PressableFeedback
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
warnDev
|
|
6
|
-
} from "./chunk-EGLLDKN6.js";
|
|
3
|
+
} from "./chunk-LIUO6D3D.js";
|
|
7
4
|
import {
|
|
8
5
|
usePressState
|
|
9
6
|
} from "./chunk-423RQBOX.js";
|
|
7
|
+
import {
|
|
8
|
+
warnDev
|
|
9
|
+
} from "./chunk-EGLLDKN6.js";
|
|
10
10
|
import {
|
|
11
11
|
useStyleProps
|
|
12
12
|
} from "./chunk-M63GFNKV.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
|
-
import { PressableFeedback } from "./chunk-
|
|
2
|
+
import { PressableFeedback } from "./chunk-LIUO6D3D.js";
|
|
3
3
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
4
|
-
import { childrenToString, createSlotContext } from "./chunk-
|
|
4
|
+
import { childrenToString, createSlotContext } from "./chunk-K72UDPVN.js";
|
|
5
5
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
6
6
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
7
7
|
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
@@ -82,15 +82,15 @@ var SwitchThumb = forwardRef2(function SwitchThumb2({
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
85
|
-
const
|
|
86
|
-
code: "function
|
|
87
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
88
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
85
|
+
const _worklet_6922637450728_init_data = {
|
|
86
|
+
code: "function chunkFBCWNXZCJs1(){const{withTiming,isSelected,SWITCH_DURATION}=this.__closure;return withTiming(isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
87
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js",
|
|
88
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkFBCWNXZCJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js\"],\"mappings\":\"AA4FmC,SAAAA,gBAAMA,CAAA,QAAAC,UAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAErC,MAAO,CAAAH,UAAU,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACtE\",\"ignoreList\":[]}"
|
|
89
89
|
};
|
|
90
|
-
const
|
|
91
|
-
code: "function
|
|
92
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
93
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
90
|
+
const _worklet_3092827359818_init_data = {
|
|
91
|
+
code: "function chunkFBCWNXZCJs2(){const{progress,distance,interpolateColor,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:interpolateColor(progress.value,[0,1],[colors.off,colors.on])};}",
|
|
92
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js",
|
|
93
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkFBCWNXZCJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js\"],\"mappings\":\"AAgGyC,SAAAA,gBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,gBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE3C,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,gBAAgB,CAC/BF,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
94
94
|
};
|
|
95
95
|
var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
96
96
|
style,
|
|
@@ -100,43 +100,43 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
100
100
|
children,
|
|
101
101
|
...rest
|
|
102
102
|
}, ref) {
|
|
103
|
-
const progress = useDerivedValue(function
|
|
104
|
-
|
|
103
|
+
const progress = useDerivedValue(function chunkFBCWNXZCJs1Factory({
|
|
104
|
+
_worklet_6922637450728_init_data,
|
|
105
105
|
withTiming,
|
|
106
106
|
isSelected,
|
|
107
107
|
SWITCH_DURATION
|
|
108
108
|
}) {
|
|
109
109
|
const _e = [new global.Error(), -4, -27];
|
|
110
|
-
const
|
|
110
|
+
const chunkFBCWNXZCJs1 = function () {
|
|
111
111
|
return withTiming(isSelected ? 1 : 0, {
|
|
112
112
|
duration: SWITCH_DURATION
|
|
113
113
|
});
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
chunkFBCWNXZCJs1.__closure = {
|
|
116
116
|
withTiming,
|
|
117
117
|
isSelected,
|
|
118
118
|
SWITCH_DURATION
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return
|
|
120
|
+
chunkFBCWNXZCJs1.__workletHash = 6922637450728;
|
|
121
|
+
chunkFBCWNXZCJs1.__pluginVersion = "0.7.4";
|
|
122
|
+
chunkFBCWNXZCJs1.__initData = _worklet_6922637450728_init_data;
|
|
123
|
+
chunkFBCWNXZCJs1.__stackDetails = _e;
|
|
124
|
+
return chunkFBCWNXZCJs1;
|
|
125
125
|
}({
|
|
126
|
-
|
|
126
|
+
_worklet_6922637450728_init_data,
|
|
127
127
|
withTiming,
|
|
128
128
|
isSelected,
|
|
129
129
|
SWITCH_DURATION
|
|
130
130
|
}), [isSelected]);
|
|
131
|
-
const animatedStyle = useAnimatedStyle(function
|
|
132
|
-
|
|
131
|
+
const animatedStyle = useAnimatedStyle(function chunkFBCWNXZCJs2Factory({
|
|
132
|
+
_worklet_3092827359818_init_data,
|
|
133
133
|
progress,
|
|
134
134
|
distance,
|
|
135
135
|
interpolateColor,
|
|
136
136
|
colors
|
|
137
137
|
}) {
|
|
138
138
|
const _e = [new global.Error(), -5, -27];
|
|
139
|
-
const
|
|
139
|
+
const chunkFBCWNXZCJs2 = function () {
|
|
140
140
|
return {
|
|
141
141
|
transform: [{
|
|
142
142
|
translateX: progress.value * distance
|
|
@@ -144,19 +144,19 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
144
144
|
backgroundColor: interpolateColor(progress.value, [0, 1], [colors.off, colors.on])
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
chunkFBCWNXZCJs2.__closure = {
|
|
148
148
|
progress,
|
|
149
149
|
distance,
|
|
150
150
|
interpolateColor,
|
|
151
151
|
colors
|
|
152
152
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return
|
|
153
|
+
chunkFBCWNXZCJs2.__workletHash = 3092827359818;
|
|
154
|
+
chunkFBCWNXZCJs2.__pluginVersion = "0.7.4";
|
|
155
|
+
chunkFBCWNXZCJs2.__initData = _worklet_3092827359818_init_data;
|
|
156
|
+
chunkFBCWNXZCJs2.__stackDetails = _e;
|
|
157
|
+
return chunkFBCWNXZCJs2;
|
|
158
158
|
}({
|
|
159
|
-
|
|
159
|
+
_worklet_3092827359818_init_data,
|
|
160
160
|
progress,
|
|
161
161
|
distance,
|
|
162
162
|
interpolateColor,
|
|
@@ -208,15 +208,15 @@ var SwitchTrack = forwardRef3(function SwitchTrack2({
|
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
210
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
211
|
-
const
|
|
212
|
-
code: "function
|
|
213
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
214
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
211
|
+
const _worklet_8760471205610_init_data = {
|
|
212
|
+
code: "function chunkFBCWNXZCJs3(){const{withTiming2,isSelected,SWITCH_DURATION}=this.__closure;return withTiming2(isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
213
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js",
|
|
214
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkFBCWNXZCJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js\"],\"mappings\":\"AAqJoC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEtC,MAAO,CAAAH,WAAW,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACvE\",\"ignoreList\":[]}"
|
|
215
215
|
};
|
|
216
|
-
const
|
|
217
|
-
code: "function
|
|
218
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
219
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
216
|
+
const _worklet_9423454077708_init_data = {
|
|
217
|
+
code: "function chunkFBCWNXZCJs4(){const{interpolateColor2,progress,colors}=this.__closure;return{backgroundColor:interpolateColor2(progress.value,[0,1],[colors.off,colors.on])};}",
|
|
218
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js",
|
|
219
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkFBCWNXZCJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-FBCWNXZC.js\"],\"mappings\":\"AAyJ0C,SAAAA,gBAAMA,CAAA,QAAAC,iBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,MAAO,CACLC,eAAe,CAAEJ,iBAAiB,CAChCC,QAAQ,CAACI,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACH,MAAM,CAACI,GAAG,CAAEJ,MAAM,CAACK,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
220
220
|
};
|
|
221
221
|
var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
222
222
|
style,
|
|
@@ -225,58 +225,58 @@ var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
|
225
225
|
children,
|
|
226
226
|
...rest
|
|
227
227
|
}, ref) {
|
|
228
|
-
const progress = useDerivedValue2(function
|
|
229
|
-
|
|
228
|
+
const progress = useDerivedValue2(function chunkFBCWNXZCJs3Factory({
|
|
229
|
+
_worklet_8760471205610_init_data,
|
|
230
230
|
withTiming2,
|
|
231
231
|
isSelected,
|
|
232
232
|
SWITCH_DURATION
|
|
233
233
|
}) {
|
|
234
234
|
const _e = [new global.Error(), -4, -27];
|
|
235
|
-
const
|
|
235
|
+
const chunkFBCWNXZCJs3 = function () {
|
|
236
236
|
return withTiming2(isSelected ? 1 : 0, {
|
|
237
237
|
duration: SWITCH_DURATION
|
|
238
238
|
});
|
|
239
239
|
};
|
|
240
|
-
|
|
240
|
+
chunkFBCWNXZCJs3.__closure = {
|
|
241
241
|
withTiming2,
|
|
242
242
|
isSelected,
|
|
243
243
|
SWITCH_DURATION
|
|
244
244
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return
|
|
245
|
+
chunkFBCWNXZCJs3.__workletHash = 8760471205610;
|
|
246
|
+
chunkFBCWNXZCJs3.__pluginVersion = "0.7.4";
|
|
247
|
+
chunkFBCWNXZCJs3.__initData = _worklet_8760471205610_init_data;
|
|
248
|
+
chunkFBCWNXZCJs3.__stackDetails = _e;
|
|
249
|
+
return chunkFBCWNXZCJs3;
|
|
250
250
|
}({
|
|
251
|
-
|
|
251
|
+
_worklet_8760471205610_init_data,
|
|
252
252
|
withTiming2,
|
|
253
253
|
isSelected,
|
|
254
254
|
SWITCH_DURATION
|
|
255
255
|
}), [isSelected]);
|
|
256
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
257
|
-
|
|
256
|
+
const animatedStyle = useAnimatedStyle2(function chunkFBCWNXZCJs4Factory({
|
|
257
|
+
_worklet_9423454077708_init_data,
|
|
258
258
|
interpolateColor2,
|
|
259
259
|
progress,
|
|
260
260
|
colors
|
|
261
261
|
}) {
|
|
262
262
|
const _e = [new global.Error(), -4, -27];
|
|
263
|
-
const
|
|
263
|
+
const chunkFBCWNXZCJs4 = function () {
|
|
264
264
|
return {
|
|
265
265
|
backgroundColor: interpolateColor2(progress.value, [0, 1], [colors.off, colors.on])
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
chunkFBCWNXZCJs4.__closure = {
|
|
269
269
|
interpolateColor2,
|
|
270
270
|
progress,
|
|
271
271
|
colors
|
|
272
272
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
return
|
|
273
|
+
chunkFBCWNXZCJs4.__workletHash = 9423454077708;
|
|
274
|
+
chunkFBCWNXZCJs4.__pluginVersion = "0.7.4";
|
|
275
|
+
chunkFBCWNXZCJs4.__initData = _worklet_9423454077708_init_data;
|
|
276
|
+
chunkFBCWNXZCJs4.__stackDetails = _e;
|
|
277
|
+
return chunkFBCWNXZCJs4;
|
|
278
278
|
}({
|
|
279
|
-
|
|
279
|
+
_worklet_9423454077708_init_data,
|
|
280
280
|
interpolateColor2,
|
|
281
281
|
progress,
|
|
282
282
|
colors
|
|
@@ -5,6 +5,26 @@ import {
|
|
|
5
5
|
useStyleProps
|
|
6
6
|
} from "./chunk-M63GFNKV.js";
|
|
7
7
|
|
|
8
|
+
// src/system/icon/chevron-down-icon.tsx
|
|
9
|
+
import { Path, Svg } from "react-native-svg";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
function ChevronDownIcon({
|
|
12
|
+
size = 20,
|
|
13
|
+
color = "currentColor"
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
16
|
+
Path,
|
|
17
|
+
{
|
|
18
|
+
d: "m6 9 6 6 6-6",
|
|
19
|
+
stroke: color,
|
|
20
|
+
strokeWidth: 2,
|
|
21
|
+
strokeLinecap: "round",
|
|
22
|
+
strokeLinejoin: "round"
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
25
|
+
}
|
|
26
|
+
ChevronDownIcon.displayName = "XAUI.ChevronDownIcon";
|
|
27
|
+
|
|
8
28
|
// src/system/icon/icon-context.ts
|
|
9
29
|
import { createContext, useContext } from "react";
|
|
10
30
|
var IconContext = createContext({});
|
|
@@ -16,7 +36,7 @@ function useIconContext() {
|
|
|
16
36
|
// src/system/icon/icon.tsx
|
|
17
37
|
import { cloneElement, isValidElement } from "react";
|
|
18
38
|
import { Image } from "react-native";
|
|
19
|
-
import { jsx } from "react/jsx-runtime";
|
|
39
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
20
40
|
function Icon(props) {
|
|
21
41
|
const inherited = useIconContext();
|
|
22
42
|
const theme = useXAUITheme();
|
|
@@ -24,7 +44,7 @@ function Icon(props) {
|
|
|
24
44
|
const color = props.color ?? inherited.color ?? theme.colors.foreground;
|
|
25
45
|
if (props.as) {
|
|
26
46
|
const Component = props.as;
|
|
27
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ jsx2(Component, { size, color });
|
|
28
48
|
}
|
|
29
49
|
if (isValidElement(props.children)) {
|
|
30
50
|
return cloneElement(props.children, {
|
|
@@ -33,7 +53,7 @@ function Icon(props) {
|
|
|
33
53
|
color
|
|
34
54
|
});
|
|
35
55
|
}
|
|
36
|
-
if (props.source) return /* @__PURE__ */
|
|
56
|
+
if (props.source) return /* @__PURE__ */ jsx2(IconImage, { ...props, resolved: { size, color } });
|
|
37
57
|
throw new Error(
|
|
38
58
|
"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."
|
|
39
59
|
);
|
|
@@ -48,7 +68,7 @@ function IconImage({
|
|
|
48
68
|
...props
|
|
49
69
|
}) {
|
|
50
70
|
const [styleProps] = useStyleProps(props);
|
|
51
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ jsx2(
|
|
52
72
|
Image,
|
|
53
73
|
{
|
|
54
74
|
source,
|
|
@@ -62,6 +82,7 @@ function IconImage({
|
|
|
62
82
|
}
|
|
63
83
|
|
|
64
84
|
export {
|
|
85
|
+
ChevronDownIcon,
|
|
65
86
|
IconContext,
|
|
66
87
|
useIconContext,
|
|
67
88
|
Icon
|