@xaui/native 0.9.1-alpha.29 → 0.9.1-alpha.30
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-XYFMSRNJ.js → chunk-27ZRTZEE.js} +14 -10
- package/dist/{chunk-ICR42HHG.js → chunk-3FV4COTM.js} +3 -3
- package/dist/chunk-423RQBOX.js +21 -0
- package/dist/{chunk-TFNB2PNI.cjs → chunk-4XPLPQLM.cjs} +13 -11
- package/dist/{chunk-APONC4DB.cjs → chunk-5GO7MAVY.cjs} +12 -10
- package/dist/{chunk-AQNWXJYV.cjs → chunk-5RQ7AZPN.cjs} +20 -16
- package/dist/{chunk-FFEUGWVA.cjs → chunk-5Z4P6WHR.cjs} +11 -9
- package/dist/{chunk-L3Q5TVYE.js → chunk-6RVCGLKZ.js} +60 -58
- package/dist/chunk-7DPL3ZDS.cjs +21 -0
- package/dist/{chunk-Y4BPKSD3.js → chunk-7SEZGVTY.js} +1 -1
- package/dist/chunk-7XKQJQF2.cjs +70 -0
- package/dist/{chunk-7BOFQN2G.js → chunk-A5OCK3C2.js} +7 -5
- package/dist/{chunk-4HELPMAK.js → chunk-BFMTUMTU.js} +81 -101
- package/dist/chunk-BVJQ3UPZ.js +62 -0
- package/dist/{chunk-NG4GFBDR.js → chunk-DFME724B.js} +8 -6
- package/dist/chunk-E2CWBQTV.js +119 -0
- package/dist/chunk-E4TS6632.cjs +314 -0
- package/dist/{chunk-VUEDYW3M.js → chunk-FMZQW35T.js} +15 -11
- package/dist/{chunk-OYZYWWJ6.js → chunk-G7K652GC.js} +4 -2
- package/dist/{chunk-YGOXQSNU.js → chunk-GI24YJPE.js} +100 -206
- package/dist/chunk-GLGU2WFL.cjs +190 -0
- package/dist/{chunk-IG4Q3WQO.cjs → chunk-GPVNCJ3Z.cjs} +74 -95
- package/dist/{chunk-D4SOU26X.js → chunk-GVQOD3VW.js} +5 -3
- package/dist/chunk-KOC3KQIT.js +124 -0
- package/dist/chunk-KPWZLUES.cjs +124 -0
- package/dist/{chunk-SVRZJEDU.cjs → chunk-KWCHSIMI.cjs} +16 -12
- package/dist/{chunk-GCU5A5MM.cjs → chunk-N527BTY4.cjs} +17 -15
- package/dist/{chunk-F3H4TXAY.cjs → chunk-NBFWWQFW.cjs} +16 -12
- package/dist/{chunk-HOIQRGSK.js → chunk-NYRXUGVL.js} +6 -4
- package/dist/{chunk-V56334S3.js → chunk-Q3WFY5N3.js} +9 -7
- package/dist/{chunk-FXHRNUCS.cjs → chunk-QGN2BBJO.cjs} +8 -6
- package/dist/{chunk-J2JJLKLG.cjs → chunk-TGZZ3RZU.cjs} +7 -5
- package/dist/{chunk-YWBTIWT5.cjs → chunk-UBQLKIZC.cjs} +22 -18
- package/dist/{chunk-PMO62QK4.js → chunk-URSKA2VR.js} +1 -114
- package/dist/{chunk-A4RGJBP2.js → chunk-V4WDMM6Z.js} +5 -3
- package/dist/{chunk-FDSQOPJH.js → chunk-VJEER76X.js} +11 -7
- package/dist/{chunk-O5KDIEDH.cjs → chunk-VZBWYWEI.cjs} +25 -24
- package/dist/{chunk-B4W2XNBP.cjs → chunk-WR7YLDVV.cjs} +3 -3
- package/dist/{chunk-5RFRASSB.js → chunk-X4HQ4H2V.js} +16 -15
- package/dist/{chunk-IBEX4XGV.cjs → chunk-XFSW3ZNI.cjs} +13 -11
- package/dist/{chunk-VZGBEGDV.cjs → chunk-XQFAUDR2.cjs} +2 -2
- package/dist/{chunk-V3KS5PPK.js → chunk-YKL6XHM6.js} +14 -10
- package/dist/{chunk-HUZ4AUM2.cjs → chunk-ZP2E2H2G.cjs} +4 -188
- package/dist/{chunk-RZC4VFB5.cjs → chunk-ZSLNGBDS.cjs} +68 -66
- package/dist/components/alert/index.cjs +8 -6
- package/dist/components/alert/index.d.cts +2 -2
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +7 -5
- package/dist/components/button/index.cjs +9 -5
- package/dist/components/button/index.d.cts +9 -4
- package/dist/components/button/index.d.ts +9 -4
- package/dist/components/button/index.js +8 -4
- package/dist/components/card/index.cjs +6 -4
- package/dist/components/card/index.d.cts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +5 -3
- package/dist/components/checkbox/index.cjs +7 -5
- package/dist/components/checkbox/index.d.cts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +6 -4
- package/dist/components/chip/index.cjs +8 -6
- package/dist/components/chip/index.d.cts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/index.js +7 -5
- package/dist/components/input/index.cjs +4 -3
- package/dist/components/input/index.d.cts +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +3 -2
- package/dist/components/input-group/index.cjs +6 -5
- package/dist/components/input-group/index.d.cts +1 -1
- package/dist/components/input-group/index.d.ts +1 -1
- package/dist/components/input-group/index.js +5 -4
- package/dist/components/input-otp/index.cjs +4 -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 +3 -2
- package/dist/components/radio/index.cjs +7 -5
- package/dist/components/radio/index.d.cts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +6 -4
- package/dist/components/spinner/index.cjs +16 -0
- package/dist/components/spinner/index.d.cts +104 -0
- package/dist/components/spinner/index.d.ts +104 -0
- package/dist/components/spinner/index.js +16 -0
- package/dist/components/switch/index.cjs +6 -4
- package/dist/components/switch/index.d.cts +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +5 -3
- package/dist/components/text-area/index.cjs +5 -4
- package/dist/components/text-area/index.js +4 -3
- package/dist/components/typography/index.cjs +4 -3
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +3 -2
- package/dist/components/view/index.cjs +4 -3
- package/dist/components/view/index.js +3 -2
- package/dist/{create-recipe-DUo8doTt.d.ts → create-recipe-BdVd2ffi.d.ts} +1 -1
- package/dist/{create-recipe-CWvI5ot3.d.cts → create-recipe-dC7wMfnj.d.cts} +1 -1
- package/dist/{icon.type-Dq4_qePa.d.ts → icon.type-Kml72iSz.d.ts} +1 -1
- package/dist/{icon.type-CF4KiMKl.d.cts → icon.type-d_i9ma-i.d.cts} +1 -1
- package/dist/index.cjs +39 -37
- package/dist/index.d.cts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +73 -71
- package/dist/system/index.cjs +11 -8
- package/dist/system/index.d.cts +4 -4
- package/dist/system/index.d.ts +4 -4
- package/dist/system/index.js +11 -8
- package/package.json +11 -1
- package/dist/chunk-E25JH7W2.cjs +0 -456
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { PressableFeedback } from "./chunk-BFMTUMTU.js";
|
|
2
|
+
import { usePressState } from "./chunk-423RQBOX.js";
|
|
1
3
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
|
-
import { PressableFeedback, usePressState } from "./chunk-4HELPMAK.js";
|
|
3
4
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
4
|
-
import { childrenToString, createSlotContext, useStyleProps } from "./chunk-PMO62QK4.js";
|
|
5
5
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
6
|
+
import { childrenToString, createSlotContext } from "./chunk-E2CWBQTV.js";
|
|
7
|
+
import { useStyleProps } from "./chunk-URSKA2VR.js";
|
|
6
8
|
|
|
7
9
|
// src/components/switch/switch-label.tsx
|
|
8
10
|
import { forwardRef } from "react";
|
|
@@ -80,15 +82,15 @@ var SwitchThumb = forwardRef2(function SwitchThumb2({
|
|
|
80
82
|
});
|
|
81
83
|
});
|
|
82
84
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
83
|
-
const
|
|
84
|
-
code: "function
|
|
85
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
86
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
85
|
+
const _worklet_9434778564924_init_data = {
|
|
86
|
+
code: "function chunk6RVCGLKZJs1(){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-6RVCGLKZ.js",
|
|
88
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6RVCGLKZJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6RVCGLKZ.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\":[]}"
|
|
87
89
|
};
|
|
88
|
-
const
|
|
89
|
-
code: "function
|
|
90
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
91
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
90
|
+
const _worklet_15838651663966_init_data = {
|
|
91
|
+
code: "function chunk6RVCGLKZJs2(){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-6RVCGLKZ.js",
|
|
93
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6RVCGLKZJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6RVCGLKZ.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\":[]}"
|
|
92
94
|
};
|
|
93
95
|
var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
94
96
|
style,
|
|
@@ -98,43 +100,43 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
98
100
|
children,
|
|
99
101
|
...rest
|
|
100
102
|
}, ref) {
|
|
101
|
-
const progress = useDerivedValue(function
|
|
102
|
-
|
|
103
|
+
const progress = useDerivedValue(function chunk6RVCGLKZJs1Factory({
|
|
104
|
+
_worklet_9434778564924_init_data,
|
|
103
105
|
withTiming,
|
|
104
106
|
isSelected,
|
|
105
107
|
SWITCH_DURATION
|
|
106
108
|
}) {
|
|
107
109
|
const _e = [new global.Error(), -4, -27];
|
|
108
|
-
const
|
|
110
|
+
const chunk6RVCGLKZJs1 = function () {
|
|
109
111
|
return withTiming(isSelected ? 1 : 0, {
|
|
110
112
|
duration: SWITCH_DURATION
|
|
111
113
|
});
|
|
112
114
|
};
|
|
113
|
-
|
|
115
|
+
chunk6RVCGLKZJs1.__closure = {
|
|
114
116
|
withTiming,
|
|
115
117
|
isSelected,
|
|
116
118
|
SWITCH_DURATION
|
|
117
119
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
return
|
|
120
|
+
chunk6RVCGLKZJs1.__workletHash = 9434778564924;
|
|
121
|
+
chunk6RVCGLKZJs1.__pluginVersion = "0.7.4";
|
|
122
|
+
chunk6RVCGLKZJs1.__initData = _worklet_9434778564924_init_data;
|
|
123
|
+
chunk6RVCGLKZJs1.__stackDetails = _e;
|
|
124
|
+
return chunk6RVCGLKZJs1;
|
|
123
125
|
}({
|
|
124
|
-
|
|
126
|
+
_worklet_9434778564924_init_data,
|
|
125
127
|
withTiming,
|
|
126
128
|
isSelected,
|
|
127
129
|
SWITCH_DURATION
|
|
128
130
|
}), [isSelected]);
|
|
129
|
-
const animatedStyle = useAnimatedStyle(function
|
|
130
|
-
|
|
131
|
+
const animatedStyle = useAnimatedStyle(function chunk6RVCGLKZJs2Factory({
|
|
132
|
+
_worklet_15838651663966_init_data,
|
|
131
133
|
progress,
|
|
132
134
|
distance,
|
|
133
135
|
interpolateColor,
|
|
134
136
|
colors
|
|
135
137
|
}) {
|
|
136
138
|
const _e = [new global.Error(), -5, -27];
|
|
137
|
-
const
|
|
139
|
+
const chunk6RVCGLKZJs2 = function () {
|
|
138
140
|
return {
|
|
139
141
|
transform: [{
|
|
140
142
|
translateX: progress.value * distance
|
|
@@ -142,19 +144,19 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
142
144
|
backgroundColor: interpolateColor(progress.value, [0, 1], [colors.off, colors.on])
|
|
143
145
|
};
|
|
144
146
|
};
|
|
145
|
-
|
|
147
|
+
chunk6RVCGLKZJs2.__closure = {
|
|
146
148
|
progress,
|
|
147
149
|
distance,
|
|
148
150
|
interpolateColor,
|
|
149
151
|
colors
|
|
150
152
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return
|
|
153
|
+
chunk6RVCGLKZJs2.__workletHash = 15838651663966;
|
|
154
|
+
chunk6RVCGLKZJs2.__pluginVersion = "0.7.4";
|
|
155
|
+
chunk6RVCGLKZJs2.__initData = _worklet_15838651663966_init_data;
|
|
156
|
+
chunk6RVCGLKZJs2.__stackDetails = _e;
|
|
157
|
+
return chunk6RVCGLKZJs2;
|
|
156
158
|
}({
|
|
157
|
-
|
|
159
|
+
_worklet_15838651663966_init_data,
|
|
158
160
|
progress,
|
|
159
161
|
distance,
|
|
160
162
|
interpolateColor,
|
|
@@ -206,15 +208,15 @@ var SwitchTrack = forwardRef3(function SwitchTrack2({
|
|
|
206
208
|
});
|
|
207
209
|
});
|
|
208
210
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
209
|
-
const
|
|
210
|
-
code: "function
|
|
211
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
212
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
211
|
+
const _worklet_7056859902782_init_data = {
|
|
212
|
+
code: "function chunk6RVCGLKZJs3(){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-6RVCGLKZ.js",
|
|
214
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6RVCGLKZJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6RVCGLKZ.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\":[]}"
|
|
213
215
|
};
|
|
214
|
-
const
|
|
215
|
-
code: "function
|
|
216
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
217
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
216
|
+
const _worklet_14010658373272_init_data = {
|
|
217
|
+
code: "function chunk6RVCGLKZJs4(){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-6RVCGLKZ.js",
|
|
219
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6RVCGLKZJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6RVCGLKZ.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\":[]}"
|
|
218
220
|
};
|
|
219
221
|
var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
220
222
|
style,
|
|
@@ -223,58 +225,58 @@ var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
|
223
225
|
children,
|
|
224
226
|
...rest
|
|
225
227
|
}, ref) {
|
|
226
|
-
const progress = useDerivedValue2(function
|
|
227
|
-
|
|
228
|
+
const progress = useDerivedValue2(function chunk6RVCGLKZJs3Factory({
|
|
229
|
+
_worklet_7056859902782_init_data,
|
|
228
230
|
withTiming2,
|
|
229
231
|
isSelected,
|
|
230
232
|
SWITCH_DURATION
|
|
231
233
|
}) {
|
|
232
234
|
const _e = [new global.Error(), -4, -27];
|
|
233
|
-
const
|
|
235
|
+
const chunk6RVCGLKZJs3 = function () {
|
|
234
236
|
return withTiming2(isSelected ? 1 : 0, {
|
|
235
237
|
duration: SWITCH_DURATION
|
|
236
238
|
});
|
|
237
239
|
};
|
|
238
|
-
|
|
240
|
+
chunk6RVCGLKZJs3.__closure = {
|
|
239
241
|
withTiming2,
|
|
240
242
|
isSelected,
|
|
241
243
|
SWITCH_DURATION
|
|
242
244
|
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
return
|
|
245
|
+
chunk6RVCGLKZJs3.__workletHash = 7056859902782;
|
|
246
|
+
chunk6RVCGLKZJs3.__pluginVersion = "0.7.4";
|
|
247
|
+
chunk6RVCGLKZJs3.__initData = _worklet_7056859902782_init_data;
|
|
248
|
+
chunk6RVCGLKZJs3.__stackDetails = _e;
|
|
249
|
+
return chunk6RVCGLKZJs3;
|
|
248
250
|
}({
|
|
249
|
-
|
|
251
|
+
_worklet_7056859902782_init_data,
|
|
250
252
|
withTiming2,
|
|
251
253
|
isSelected,
|
|
252
254
|
SWITCH_DURATION
|
|
253
255
|
}), [isSelected]);
|
|
254
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
255
|
-
|
|
256
|
+
const animatedStyle = useAnimatedStyle2(function chunk6RVCGLKZJs4Factory({
|
|
257
|
+
_worklet_14010658373272_init_data,
|
|
256
258
|
interpolateColor2,
|
|
257
259
|
progress,
|
|
258
260
|
colors
|
|
259
261
|
}) {
|
|
260
262
|
const _e = [new global.Error(), -4, -27];
|
|
261
|
-
const
|
|
263
|
+
const chunk6RVCGLKZJs4 = function () {
|
|
262
264
|
return {
|
|
263
265
|
backgroundColor: interpolateColor2(progress.value, [0, 1], [colors.off, colors.on])
|
|
264
266
|
};
|
|
265
267
|
};
|
|
266
|
-
|
|
268
|
+
chunk6RVCGLKZJs4.__closure = {
|
|
267
269
|
interpolateColor2,
|
|
268
270
|
progress,
|
|
269
271
|
colors
|
|
270
272
|
};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
return
|
|
273
|
+
chunk6RVCGLKZJs4.__workletHash = 14010658373272;
|
|
274
|
+
chunk6RVCGLKZJs4.__pluginVersion = "0.7.4";
|
|
275
|
+
chunk6RVCGLKZJs4.__initData = _worklet_14010658373272_init_data;
|
|
276
|
+
chunk6RVCGLKZJs4.__stackDetails = _e;
|
|
277
|
+
return chunk6RVCGLKZJs4;
|
|
276
278
|
}({
|
|
277
|
-
|
|
279
|
+
_worklet_14010658373272_init_data,
|
|
278
280
|
interpolateColor2,
|
|
279
281
|
progress,
|
|
280
282
|
colors
|
|
@@ -0,0 +1,21 @@
|
|
|
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; }// src/hooks/use-press-state.ts
|
|
2
|
+
var _react = require('react');
|
|
3
|
+
function usePressState(handlers = {}) {
|
|
4
|
+
const [isPressed, setIsPressed] = _react.useState.call(void 0, false);
|
|
5
|
+
const latest = _react.useRef.call(void 0, handlers);
|
|
6
|
+
latest.current = handlers;
|
|
7
|
+
const onPressIn = _react.useCallback.call(void 0, (event) => {
|
|
8
|
+
setIsPressed(true);
|
|
9
|
+
_optionalChain([latest, 'access', _ => _.current, 'access', _2 => _2.onPressIn, 'optionalCall', _3 => _3(event)]);
|
|
10
|
+
}, []);
|
|
11
|
+
const onPressOut = _react.useCallback.call(void 0, (event) => {
|
|
12
|
+
setIsPressed(false);
|
|
13
|
+
_optionalChain([latest, 'access', _4 => _4.current, 'access', _5 => _5.onPressOut, 'optionalCall', _6 => _6(event)]);
|
|
14
|
+
}, []);
|
|
15
|
+
const press = _react.useRef.call(void 0, { onPressIn, onPressOut }).current;
|
|
16
|
+
return [isPressed, press];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.usePressState = usePressState;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
7
|
+
|
|
8
|
+
// src/hooks/use-merged-ref.ts
|
|
9
|
+
var _react = require('react');
|
|
10
|
+
function useMergedRef(...refs) {
|
|
11
|
+
return _react.useMemo.call(void 0, () => _chunkGLGU2WFLcjs.mergeRefs.call(void 0, ...refs), refs);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// src/hooks/use-previous.ts
|
|
15
|
+
|
|
16
|
+
function usePrevious(value) {
|
|
17
|
+
const previous = _react.useRef.call(void 0, void 0);
|
|
18
|
+
_react.useEffect.call(void 0, () => {
|
|
19
|
+
previous.current = value;
|
|
20
|
+
}, [value]);
|
|
21
|
+
return previous.current;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// src/hooks/use-rotation.ts
|
|
25
|
+
|
|
26
|
+
var _reactnativereanimated = require('react-native-reanimated');
|
|
27
|
+
var ROTATION_DURATION = 900;
|
|
28
|
+
const _worklet_4260628533630_init_data = {
|
|
29
|
+
code: "function chunk7XKQJQF2Cjs1(){const{angle}=this.__closure;return{transform:[{rotate:angle.value+\"deg\"}]};}",
|
|
30
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-7XKQJQF2.cjs",
|
|
31
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk7XKQJQF2Cjs1\",\"angle\",\"__closure\",\"transform\",\"rotate\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-7XKQJQF2.cjs\"],\"mappings\":\"AAyC8D,SAAAA,iBAAMA,CAAA,QAAAC,KAAA,OAAAC,SAAA,CAEhE,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,MAAM,CAAKH,KAAK,CAACI,KAAK,MAAM,CAAC,CAAE,CAAC,CACzD\",\"ignoreList\":[]}"
|
|
32
|
+
};
|
|
33
|
+
function useRotation() {
|
|
34
|
+
const angle = _reactnativereanimated.useSharedValue.call(void 0, 0);
|
|
35
|
+
_react.useEffect.call(void 0, () => {
|
|
36
|
+
angle.value = _reactnativereanimated.withRepeat.call(void 0, _reactnativereanimated.withTiming.call(void 0, 360, {
|
|
37
|
+
duration: ROTATION_DURATION,
|
|
38
|
+
easing: _reactnativereanimated.Easing.linear
|
|
39
|
+
}), -1, false);
|
|
40
|
+
return () => _reactnativereanimated.cancelAnimation.call(void 0, angle);
|
|
41
|
+
}, [angle]);
|
|
42
|
+
return _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk7XKQJQF2Cjs1Factory({
|
|
43
|
+
_worklet_4260628533630_init_data,
|
|
44
|
+
angle
|
|
45
|
+
}) {
|
|
46
|
+
const _e = [new global.Error(), -2, -27];
|
|
47
|
+
const chunk7XKQJQF2Cjs1 = function () {
|
|
48
|
+
return {
|
|
49
|
+
transform: [{
|
|
50
|
+
rotate: `${angle.value}deg`
|
|
51
|
+
}]
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
chunk7XKQJQF2Cjs1.__closure = {
|
|
55
|
+
angle
|
|
56
|
+
};
|
|
57
|
+
chunk7XKQJQF2Cjs1.__workletHash = 4260628533630;
|
|
58
|
+
chunk7XKQJQF2Cjs1.__pluginVersion = "0.7.4";
|
|
59
|
+
chunk7XKQJQF2Cjs1.__initData = _worklet_4260628533630_init_data;
|
|
60
|
+
chunk7XKQJQF2Cjs1.__stackDetails = _e;
|
|
61
|
+
return chunk7XKQJQF2Cjs1;
|
|
62
|
+
}({
|
|
63
|
+
_worklet_4260628533630_init_data,
|
|
64
|
+
angle
|
|
65
|
+
}), [angle]);
|
|
66
|
+
}
|
|
67
|
+
exports.useMergedRef = useMergedRef;
|
|
68
|
+
exports.usePrevious = usePrevious;
|
|
69
|
+
exports.ROTATION_DURATION = ROTATION_DURATION;
|
|
70
|
+
exports.useRotation = useRotation;
|
|
@@ -2,14 +2,16 @@ import {
|
|
|
2
2
|
createRecipe,
|
|
3
3
|
radiusAxis
|
|
4
4
|
} from "./chunk-4GTAZM2C.js";
|
|
5
|
-
import {
|
|
6
|
-
Slot,
|
|
7
|
-
createSlotContext,
|
|
8
|
-
useStyleProps
|
|
9
|
-
} from "./chunk-PMO62QK4.js";
|
|
10
5
|
import {
|
|
11
6
|
useXAUITheme
|
|
12
7
|
} from "./chunk-A3EGFI6T.js";
|
|
8
|
+
import {
|
|
9
|
+
Slot,
|
|
10
|
+
createSlotContext
|
|
11
|
+
} from "./chunk-E2CWBQTV.js";
|
|
12
|
+
import {
|
|
13
|
+
useStyleProps
|
|
14
|
+
} from "./chunk-URSKA2VR.js";
|
|
13
15
|
|
|
14
16
|
// src/components/input/input-description.tsx
|
|
15
17
|
import { forwardRef } from "react";
|