@xaui/native 0.9.1-alpha.35 → 0.9.1-alpha.37
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-ZC35YYKS.js → chunk-2PMXMKS5.js} +13 -8
- package/dist/{chunk-CYS6U374.cjs → chunk-3P6M2R4S.cjs} +6 -6
- package/dist/{chunk-7CTIE42J.cjs → chunk-437QULXO.cjs} +16 -8
- package/dist/{chunk-M2BGCN77.js → chunk-4PTWZCOK.js} +9 -9
- package/dist/{chunk-ZA6RT3XQ.js → chunk-5PPNDKRX.js} +16 -16
- package/dist/{chunk-AYOVBZAX.js → chunk-6G3XWPNP.js} +5 -5
- package/dist/{chunk-PCWT2YBE.cjs → chunk-7B3UBUC6.cjs} +3 -3
- package/dist/{chunk-HXL2QCMR.js → chunk-7LSY4WFL.js} +14 -14
- package/dist/{chunk-OHEHPQLC.cjs → chunk-ACAPTWE3.cjs} +16 -12
- package/dist/{chunk-I66VMLHE.cjs → chunk-AP6RVIIK.cjs} +21 -21
- package/dist/{chunk-UR6DNU2M.js → chunk-BORJJYDW.js} +4 -4
- package/dist/{chunk-XWMB66ZM.cjs → chunk-C5VDFRAD.cjs} +3 -3
- package/dist/{chunk-PBR44KVV.cjs → chunk-CUQTAPBU.cjs} +22 -22
- package/dist/{chunk-QY4MN7X3.cjs → chunk-DKH6BNPF.cjs} +15 -15
- package/dist/{chunk-6M7RUU7V.cjs → chunk-DRMT346W.cjs} +64 -64
- package/dist/chunk-DVDQSW7U.cjs +1006 -0
- package/dist/{chunk-NMAZ2TQF.js → chunk-E3X5ODKQ.js} +3 -3
- package/dist/{chunk-U3RDU3HU.js → chunk-EOJ5MYAQ.js} +5 -5
- package/dist/{chunk-UORTYL63.cjs → chunk-FTQHDJYL.cjs} +14 -14
- package/dist/{chunk-DBXFFJTC.cjs → chunk-GTT4NHS2.cjs} +11 -11
- package/dist/{chunk-WJPQARJ5.js → chunk-HXW4ANVB.js} +3 -3
- package/dist/{chunk-MSMZBUZO.cjs → chunk-IGLKACSR.cjs} +7 -7
- package/dist/{chunk-HNW4HIMO.js → chunk-IKJVLJKT.js} +15 -15
- package/dist/{chunk-CNNLMMFV.cjs → chunk-ITURCQMQ.cjs} +7 -7
- package/dist/{chunk-DUQUCOUY.cjs → chunk-JB5LGQ54.cjs} +3 -3
- package/dist/{chunk-NLASSGA7.js → chunk-JDSE4TQL.js} +10 -2
- package/dist/{chunk-GBFQZQ77.js → chunk-JXNFOOKC.js} +7 -7
- package/dist/{chunk-Q3D6KIVF.cjs → chunk-LEWW24RQ.cjs} +105 -99
- package/dist/{chunk-MEYCZS32.js → chunk-M63GFNKV.js} +19 -4
- package/dist/chunk-MESKS6AI.js +0 -0
- package/dist/{chunk-MHEL3NAN.js → chunk-NKPTXTTS.js} +53 -53
- package/dist/{chunk-VSALV7VO.cjs → chunk-NTD3NPRX.cjs} +3 -3
- package/dist/{chunk-HVD5EX7V.js → chunk-O3A3DBSZ.js} +3 -3
- package/dist/chunk-OJCCV65P.cjs +1 -0
- package/dist/{chunk-JCYWU5TO.js → chunk-OULTSBKU.js} +3 -3
- package/dist/{chunk-CM4LI5OH.cjs → chunk-P747CRAY.cjs} +9 -9
- package/dist/{chunk-BA2MPBCO.js → chunk-RGKWNK4T.js} +58 -58
- package/dist/{chunk-NFFL3E4N.js → chunk-RVRVGG73.js} +4 -4
- package/dist/{chunk-L55CDXNI.js → chunk-SMW6ZWMH.js} +110 -104
- package/dist/{chunk-YUG22AXX.cjs → chunk-SNIHUKDA.cjs} +16 -16
- package/dist/{chunk-SLUJFE6R.js → chunk-SO5UAGIU.js} +15 -15
- package/dist/{chunk-2IWL6R3D.js → chunk-TDYPY2J7.js} +8 -8
- package/dist/{chunk-LZK77LFX.js → chunk-TJHYSSBZ.js} +3 -3
- package/dist/{chunk-I6ZB3FZI.cjs → chunk-TK44VBIE.cjs} +22 -7
- package/dist/{chunk-OX2YNMNS.cjs → chunk-UBOXW5WO.cjs} +63 -63
- package/dist/{chunk-XNNJM5DQ.js → chunk-UGF35NSE.js} +75 -75
- package/dist/{chunk-AOEXU5UV.cjs → chunk-VFTT3Q4B.cjs} +4 -4
- package/dist/{chunk-4SLOOIE5.cjs → chunk-WDDXU3OH.cjs} +14 -9
- package/dist/{chunk-TZG3DERP.js → chunk-WKCQ6VGW.js} +15 -11
- package/dist/{chunk-TVCS5UOE.cjs → chunk-WVLSQO6K.cjs} +49 -49
- package/dist/chunk-XWY4DF37.js +1143 -0
- package/dist/{chunk-K7LLERKT.cjs → chunk-ZJWEVFAO.cjs} +12 -12
- package/dist/components/alert/index.cjs +7 -8
- package/dist/components/alert/index.d.cts +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +6 -7
- package/dist/components/avatar/index.cjs +4 -5
- 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 -4
- package/dist/components/badge/index.cjs +3 -4
- 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 -3
- package/dist/components/button/index.cjs +6 -7
- package/dist/components/button/index.d.cts +168 -168
- package/dist/components/button/index.d.ts +168 -168
- package/dist/components/button/index.js +5 -6
- package/dist/components/card/index.cjs +5 -6
- package/dist/components/card/index.d.cts +169 -169
- package/dist/components/card/index.d.ts +169 -169
- package/dist/components/card/index.js +4 -5
- package/dist/components/checkbox/index.cjs +5 -6
- package/dist/components/checkbox/index.d.cts +336 -336
- package/dist/components/checkbox/index.d.ts +336 -336
- package/dist/components/checkbox/index.js +4 -5
- package/dist/components/chip/index.cjs +7 -8
- package/dist/components/chip/index.d.cts +169 -169
- package/dist/components/chip/index.d.ts +169 -169
- package/dist/components/chip/index.js +6 -7
- package/dist/components/divider/index.cjs +3 -4
- package/dist/components/divider/index.d.cts +1 -1
- package/dist/components/divider/index.d.ts +1 -1
- package/dist/components/divider/index.js +2 -3
- package/dist/components/field-group/index.cjs +27 -0
- package/dist/components/{input-group → field-group}/index.d.cts +66 -66
- package/dist/components/{input-group → field-group}/index.d.ts +66 -66
- package/dist/components/field-group/index.js +27 -0
- package/dist/components/input-otp/index.cjs +3 -4
- package/dist/components/input-otp/index.d.cts +1 -1
- package/dist/components/input-otp/index.d.ts +1 -1
- package/dist/components/input-otp/index.js +2 -3
- package/dist/components/radio/index.cjs +5 -6
- package/dist/components/radio/index.d.cts +336 -336
- package/dist/components/radio/index.d.ts +336 -336
- package/dist/components/radio/index.js +4 -5
- package/dist/components/select/index.cjs +47 -0
- package/dist/components/select/index.d.cts +519 -0
- package/dist/components/select/index.d.ts +519 -0
- package/dist/components/select/index.js +47 -0
- package/dist/components/skeleton/index.cjs +3 -4
- package/dist/components/skeleton/index.d.cts +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +2 -3
- package/dist/components/spinner/index.cjs +4 -5
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +3 -4
- package/dist/components/switch/index.cjs +5 -6
- package/dist/components/switch/index.d.cts +338 -338
- package/dist/components/switch/index.d.ts +338 -338
- package/dist/components/switch/index.js +4 -5
- package/dist/components/text-area/index.cjs +4 -5
- package/dist/components/text-area/index.d.cts +10 -10
- package/dist/components/text-area/index.d.ts +10 -10
- package/dist/components/text-area/index.js +3 -4
- package/dist/components/text-field/index.cjs +25 -0
- package/dist/components/text-field/index.d.cts +205 -0
- package/dist/components/text-field/index.d.ts +205 -0
- package/dist/components/text-field/index.js +25 -0
- package/dist/components/typography/index.cjs +3 -4
- package/dist/components/typography/index.d.cts +2 -2
- package/dist/components/typography/index.d.ts +2 -2
- package/dist/components/typography/index.js +2 -3
- package/dist/components/view/index.cjs +3 -4
- package/dist/components/view/index.d.cts +6 -6
- package/dist/components/view/index.d.ts +6 -6
- package/dist/components/view/index.js +2 -3
- package/dist/index.cjs +64 -28
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +100 -64
- package/dist/system/index.cjs +10 -10
- package/dist/system/index.d.cts +15 -2
- package/dist/system/index.d.ts +15 -2
- package/dist/system/index.js +8 -8
- package/dist/{input.type-D2qgi03E.d.ts → text-field.type-0l73acce.d.ts} +24 -24
- package/dist/{input.type-BUMDlzL9.d.cts → text-field.type-DBh06DU5.d.cts} +24 -24
- package/dist/theme/index.cjs +4 -3
- package/dist/theme/index.d.cts +21 -1
- package/dist/theme/index.d.ts +21 -1
- package/dist/theme/index.js +3 -2
- package/package.json +26 -16
- package/dist/chunk-GGW42MY4.js +0 -20
- package/dist/chunk-MC7SY2QH.cjs +0 -20
- package/dist/components/input/index.cjs +0 -26
- package/dist/components/input/index.d.cts +0 -205
- package/dist/components/input/index.d.ts +0 -205
- package/dist/components/input/index.js +0 -26
- package/dist/components/input-group/index.cjs +0 -28
- package/dist/components/input-group/index.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
|
-
import { PressableFeedback } from "./chunk-
|
|
2
|
+
import { PressableFeedback } from "./chunk-UGF35NSE.js";
|
|
3
3
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
4
4
|
import { childrenToString, createSlotContext } from "./chunk-YXPYOOHU.js";
|
|
5
5
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
6
|
-
import { useStyleProps } from "./chunk-MEYCZS32.js";
|
|
7
6
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
7
|
+
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
8
8
|
|
|
9
9
|
// src/components/switch/switch-label.tsx
|
|
10
10
|
import { forwardRef } from "react";
|
|
@@ -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_5122025712059_init_data = {
|
|
86
|
+
code: "function chunkRGKWNK4TJs1(){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-RGKWNK4T.js",
|
|
88
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.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_3210226997465_init_data = {
|
|
91
|
+
code: "function chunkRGKWNK4TJs2(){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-RGKWNK4T.js",
|
|
93
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.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 chunkRGKWNK4TJs1Factory({
|
|
104
|
+
_worklet_5122025712059_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 chunkRGKWNK4TJs1 = function () {
|
|
111
111
|
return withTiming(isSelected ? 1 : 0, {
|
|
112
112
|
duration: SWITCH_DURATION
|
|
113
113
|
});
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
chunkRGKWNK4TJs1.__closure = {
|
|
116
116
|
withTiming,
|
|
117
117
|
isSelected,
|
|
118
118
|
SWITCH_DURATION
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return
|
|
120
|
+
chunkRGKWNK4TJs1.__workletHash = 5122025712059;
|
|
121
|
+
chunkRGKWNK4TJs1.__pluginVersion = "0.7.4";
|
|
122
|
+
chunkRGKWNK4TJs1.__initData = _worklet_5122025712059_init_data;
|
|
123
|
+
chunkRGKWNK4TJs1.__stackDetails = _e;
|
|
124
|
+
return chunkRGKWNK4TJs1;
|
|
125
125
|
}({
|
|
126
|
-
|
|
126
|
+
_worklet_5122025712059_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 chunkRGKWNK4TJs2Factory({
|
|
132
|
+
_worklet_3210226997465_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 chunkRGKWNK4TJs2 = 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
|
+
chunkRGKWNK4TJs2.__closure = {
|
|
148
148
|
progress,
|
|
149
149
|
distance,
|
|
150
150
|
interpolateColor,
|
|
151
151
|
colors
|
|
152
152
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return
|
|
153
|
+
chunkRGKWNK4TJs2.__workletHash = 3210226997465;
|
|
154
|
+
chunkRGKWNK4TJs2.__pluginVersion = "0.7.4";
|
|
155
|
+
chunkRGKWNK4TJs2.__initData = _worklet_3210226997465_init_data;
|
|
156
|
+
chunkRGKWNK4TJs2.__stackDetails = _e;
|
|
157
|
+
return chunkRGKWNK4TJs2;
|
|
158
158
|
}({
|
|
159
|
-
|
|
159
|
+
_worklet_3210226997465_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_3849939612857_init_data = {
|
|
212
|
+
code: "function chunkRGKWNK4TJs3(){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-RGKWNK4T.js",
|
|
214
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.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_4205781271071_init_data = {
|
|
217
|
+
code: "function chunkRGKWNK4TJs4(){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-RGKWNK4T.js",
|
|
219
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.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 chunkRGKWNK4TJs3Factory({
|
|
229
|
+
_worklet_3849939612857_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 chunkRGKWNK4TJs3 = function () {
|
|
236
236
|
return withTiming2(isSelected ? 1 : 0, {
|
|
237
237
|
duration: SWITCH_DURATION
|
|
238
238
|
});
|
|
239
239
|
};
|
|
240
|
-
|
|
240
|
+
chunkRGKWNK4TJs3.__closure = {
|
|
241
241
|
withTiming2,
|
|
242
242
|
isSelected,
|
|
243
243
|
SWITCH_DURATION
|
|
244
244
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return
|
|
245
|
+
chunkRGKWNK4TJs3.__workletHash = 3849939612857;
|
|
246
|
+
chunkRGKWNK4TJs3.__pluginVersion = "0.7.4";
|
|
247
|
+
chunkRGKWNK4TJs3.__initData = _worklet_3849939612857_init_data;
|
|
248
|
+
chunkRGKWNK4TJs3.__stackDetails = _e;
|
|
249
|
+
return chunkRGKWNK4TJs3;
|
|
250
250
|
}({
|
|
251
|
-
|
|
251
|
+
_worklet_3849939612857_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 chunkRGKWNK4TJs4Factory({
|
|
257
|
+
_worklet_4205781271071_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 chunkRGKWNK4TJs4 = function () {
|
|
264
264
|
return {
|
|
265
265
|
backgroundColor: interpolateColor2(progress.value, [0, 1], [colors.off, colors.on])
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
chunkRGKWNK4TJs4.__closure = {
|
|
269
269
|
interpolateColor2,
|
|
270
270
|
progress,
|
|
271
271
|
colors
|
|
272
272
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
return
|
|
273
|
+
chunkRGKWNK4TJs4.__workletHash = 4205781271071;
|
|
274
|
+
chunkRGKWNK4TJs4.__pluginVersion = "0.7.4";
|
|
275
|
+
chunkRGKWNK4TJs4.__initData = _worklet_4205781271071_init_data;
|
|
276
|
+
chunkRGKWNK4TJs4.__stackDetails = _e;
|
|
277
|
+
return chunkRGKWNK4TJs4;
|
|
278
278
|
}({
|
|
279
|
-
|
|
279
|
+
_worklet_4205781271071_init_data,
|
|
280
280
|
interpolateColor2,
|
|
281
281
|
progress,
|
|
282
282
|
colors
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-F6W3JQ7K.js";
|
|
7
7
|
import {
|
|
8
8
|
PressableFeedback
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UGF35NSE.js";
|
|
10
10
|
import {
|
|
11
11
|
usePressState
|
|
12
12
|
} from "./chunk-423RQBOX.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
createRecipe,
|
|
19
19
|
radiusAxis
|
|
20
20
|
} from "./chunk-4GTAZM2C.js";
|
|
21
|
-
import {
|
|
22
|
-
useStyleProps
|
|
23
|
-
} from "./chunk-MEYCZS32.js";
|
|
24
21
|
import {
|
|
25
22
|
useXAUITheme
|
|
26
23
|
} from "./chunk-A3EGFI6T.js";
|
|
24
|
+
import {
|
|
25
|
+
useStyleProps
|
|
26
|
+
} from "./chunk-M63GFNKV.js";
|
|
27
27
|
|
|
28
28
|
// src/components/radio/radio-indicator.tsx
|
|
29
29
|
import { forwardRef } from "react";
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
createRecipe,
|
|
7
7
|
radiusAxis
|
|
8
8
|
} from "./chunk-4GTAZM2C.js";
|
|
9
|
-
import {
|
|
10
|
-
useStyleProps
|
|
11
|
-
} from "./chunk-MEYCZS32.js";
|
|
12
9
|
import {
|
|
13
10
|
useXAUITheme
|
|
14
11
|
} from "./chunk-A3EGFI6T.js";
|
|
12
|
+
import {
|
|
13
|
+
useStyleProps
|
|
14
|
+
} from "./chunk-M63GFNKV.js";
|
|
15
15
|
|
|
16
|
-
// src/components/
|
|
16
|
+
// src/components/text-field/text-field-description.tsx
|
|
17
17
|
import { forwardRef } from "react";
|
|
18
18
|
import { Text } from "react-native";
|
|
19
19
|
|
|
20
|
-
// src/components/
|
|
21
|
-
var [
|
|
20
|
+
// src/components/text-field/text-field.context.ts
|
|
21
|
+
var [TextFieldProvider, useTextField] = createSlotContext("TextField");
|
|
22
22
|
|
|
23
|
-
// src/components/
|
|
23
|
+
// src/components/text-field/text-field-description.tsx
|
|
24
24
|
import { jsx } from "react/jsx-runtime";
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
const { descriptionStyle, descriptionId } =
|
|
25
|
+
var TextFieldDescription = forwardRef(
|
|
26
|
+
function TextFieldDescription2({ children, style, nativeID, ...props }, ref) {
|
|
27
|
+
const { descriptionStyle, descriptionId } = useTextField();
|
|
28
28
|
const [styleProps, rest] = useStyleProps(props);
|
|
29
29
|
return /* @__PURE__ */ jsx(
|
|
30
30
|
Text,
|
|
@@ -38,93 +38,99 @@ var InputDescription = forwardRef(
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
|
|
41
|
+
TextFieldDescription.displayName = "XAUI.TextField.Description";
|
|
42
42
|
|
|
43
|
-
// src/components/
|
|
43
|
+
// src/components/text-field/text-field-error.tsx
|
|
44
44
|
import { forwardRef as forwardRef2 } from "react";
|
|
45
45
|
import { Text as Text2 } from "react-native";
|
|
46
46
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
52
|
-
|
|
47
|
+
var TextFieldError = forwardRef2(
|
|
48
|
+
function TextFieldError2({ children, style, ...props }, ref) {
|
|
49
|
+
const { errorStyle } = useTextField();
|
|
50
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
51
|
+
return /* @__PURE__ */ jsx2(Text2, { ref, style: [errorStyle, styleProps, style], ...rest, children });
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
TextFieldError.displayName = "XAUI.TextField.Error";
|
|
53
55
|
|
|
54
|
-
// src/components/
|
|
56
|
+
// src/components/text-field/text-field-field.tsx
|
|
55
57
|
import { forwardRef as forwardRef3, useCallback } from "react";
|
|
56
58
|
import { TextInput } from "react-native";
|
|
57
59
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
60
|
+
var TextFieldField = forwardRef3(
|
|
61
|
+
function TextFieldField2({ style, onFocus, onBlur, placeholderTextColor, ...props }, ref) {
|
|
62
|
+
const {
|
|
63
|
+
fieldStyle,
|
|
64
|
+
placeholderTextColor: resolvedPlaceholder,
|
|
65
|
+
onFieldFocus,
|
|
66
|
+
onFieldBlur,
|
|
67
|
+
labelId,
|
|
68
|
+
descriptionId,
|
|
69
|
+
isDisabled,
|
|
70
|
+
isInvalid
|
|
71
|
+
} = useTextField();
|
|
72
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
73
|
+
const handleFocus = useCallback(
|
|
74
|
+
(event) => {
|
|
75
|
+
onFieldFocus(event);
|
|
76
|
+
onFocus?.(event);
|
|
77
|
+
},
|
|
78
|
+
[onFieldFocus, onFocus]
|
|
79
|
+
);
|
|
80
|
+
const handleBlur = useCallback(
|
|
81
|
+
(event) => {
|
|
82
|
+
onFieldBlur(event);
|
|
83
|
+
onBlur?.(event);
|
|
84
|
+
},
|
|
85
|
+
[onFieldBlur, onBlur]
|
|
86
|
+
);
|
|
87
|
+
return /* @__PURE__ */ jsx3(
|
|
88
|
+
TextInput,
|
|
89
|
+
{
|
|
90
|
+
ref,
|
|
91
|
+
"aria-labelledby": labelId,
|
|
92
|
+
"aria-describedby": descriptionId,
|
|
93
|
+
"aria-invalid": isInvalid,
|
|
94
|
+
editable: !isDisabled,
|
|
95
|
+
accessibilityState: { disabled: isDisabled },
|
|
96
|
+
placeholderTextColor: placeholderTextColor ?? resolvedPlaceholder,
|
|
97
|
+
...rest,
|
|
98
|
+
style: [fieldStyle, styleProps, style],
|
|
99
|
+
onFocus: handleFocus,
|
|
100
|
+
onBlur: handleBlur
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
TextFieldField.displayName = "XAUI.TextField.Field";
|
|
102
106
|
|
|
103
|
-
// src/components/
|
|
107
|
+
// src/components/text-field/text-field-label.tsx
|
|
104
108
|
import { forwardRef as forwardRef4 } from "react";
|
|
105
109
|
import { Text as Text3 } from "react-native";
|
|
106
110
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
111
|
+
var TextFieldLabel = forwardRef4(
|
|
112
|
+
function TextFieldLabel2({ children, style, nativeID, ...props }, ref) {
|
|
113
|
+
const { labelStyle, labelId } = useTextField();
|
|
114
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
115
|
+
return /* @__PURE__ */ jsx4(
|
|
116
|
+
Text3,
|
|
117
|
+
{
|
|
118
|
+
ref,
|
|
119
|
+
nativeID: nativeID ?? labelId,
|
|
120
|
+
style: [labelStyle, styleProps, style],
|
|
121
|
+
...rest,
|
|
122
|
+
children
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
TextFieldLabel.displayName = "XAUI.TextField.Label";
|
|
122
128
|
|
|
123
|
-
// src/components/
|
|
129
|
+
// src/components/text-field/text-field.tsx
|
|
124
130
|
import { forwardRef as forwardRef5, useCallback as useCallback2, useId, useMemo, useState } from "react";
|
|
125
131
|
import { StyleSheet, View } from "react-native";
|
|
126
132
|
|
|
127
|
-
// src/components/
|
|
133
|
+
// src/components/text-field/text-field.recipe.ts
|
|
128
134
|
var SLOTS = [
|
|
129
135
|
"root",
|
|
130
136
|
"label",
|
|
@@ -184,7 +190,7 @@ function sizeAxis(step) {
|
|
|
184
190
|
paddingHorizontal: theme.spacing(padding),
|
|
185
191
|
fontSize: theme.fontSizes[field]
|
|
186
192
|
},
|
|
187
|
-
// Only what a multiline field *adds* — `
|
|
193
|
+
// Only what a multiline field *adds* — `TextField.TextArea` layers this over the field's
|
|
188
194
|
// own style rather than restating it, so the colours, the border and the radius are
|
|
189
195
|
// resolved once for both. The height is not here: `rows` is a raw value, and the
|
|
190
196
|
// slot computes it from the two numbers below.
|
|
@@ -285,14 +291,14 @@ function insideLabel(step) {
|
|
|
285
291
|
paddingTop: block,
|
|
286
292
|
paddingBottom: top
|
|
287
293
|
},
|
|
288
|
-
// The same room, because `
|
|
294
|
+
// The same room, because `TextField.TextArea` layers its own padding over the field's
|
|
289
295
|
// and would otherwise put the first line back under the label.
|
|
290
296
|
textArea: { paddingTop: block, paddingBottom: top }
|
|
291
297
|
};
|
|
292
298
|
};
|
|
293
299
|
}
|
|
294
300
|
var LABEL_INSIDE_TOP = 1.5;
|
|
295
|
-
var
|
|
301
|
+
var textFieldRecipe = createRecipe({
|
|
296
302
|
slots: SLOTS,
|
|
297
303
|
base: (theme) => ({
|
|
298
304
|
root: { flexDirection: "column" },
|
|
@@ -419,9 +425,9 @@ var inputRecipe = createRecipe({
|
|
|
419
425
|
defaultVariants: { variant: "secondary", size: "md", labelPlacement: "outside" }
|
|
420
426
|
});
|
|
421
427
|
|
|
422
|
-
// src/components/
|
|
428
|
+
// src/components/text-field/text-field.tsx
|
|
423
429
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
424
|
-
var
|
|
430
|
+
var TextFieldRoot = forwardRef5(function TextField({
|
|
425
431
|
children,
|
|
426
432
|
variant,
|
|
427
433
|
size,
|
|
@@ -450,8 +456,8 @@ var InputRoot = forwardRef5(function Input({
|
|
|
450
456
|
isInvalid: isInvalid ? "true" : void 0
|
|
451
457
|
};
|
|
452
458
|
const states = { focused: isFocused && !isInvalid, disabled: isDisabled };
|
|
453
|
-
const styles =
|
|
454
|
-
const tint = color ?
|
|
459
|
+
const styles = textFieldRecipe.resolve({ theme, selection, states });
|
|
460
|
+
const tint = color ? textFieldRecipe.tint({ theme, color, selection, states }) : void 0;
|
|
455
461
|
const context = useMemo(() => {
|
|
456
462
|
const placeholder = StyleSheet.flatten(styles.placeholder);
|
|
457
463
|
const icon = StyleSheet.flatten(styles.icon);
|
|
@@ -501,25 +507,25 @@ var InputRoot = forwardRef5(function Input({
|
|
|
501
507
|
// R12 — the caller's element *is* the column.
|
|
502
508
|
/* @__PURE__ */ jsx5(Slot, { ref, ...rest, style: rootStyle, children })
|
|
503
509
|
) : /* @__PURE__ */ jsx5(View, { ref, ...rest, style: rootStyle, children });
|
|
504
|
-
return /* @__PURE__ */ jsx5(
|
|
510
|
+
return /* @__PURE__ */ jsx5(TextFieldProvider, { value: context, children: surface });
|
|
505
511
|
});
|
|
506
|
-
|
|
512
|
+
TextFieldRoot.displayName = "XAUI.TextField.Root";
|
|
507
513
|
|
|
508
|
-
// src/components/
|
|
509
|
-
var
|
|
510
|
-
Label:
|
|
511
|
-
Field:
|
|
512
|
-
Description:
|
|
513
|
-
Error:
|
|
514
|
+
// src/components/text-field/index.ts
|
|
515
|
+
var TextField2 = Object.assign(TextFieldRoot, {
|
|
516
|
+
Label: TextFieldLabel,
|
|
517
|
+
Field: TextFieldField,
|
|
518
|
+
Description: TextFieldDescription,
|
|
519
|
+
Error: TextFieldError
|
|
514
520
|
});
|
|
515
521
|
|
|
516
522
|
export {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
523
|
+
useTextField,
|
|
524
|
+
TextFieldDescription,
|
|
525
|
+
TextFieldError,
|
|
526
|
+
TextFieldField,
|
|
527
|
+
TextFieldLabel,
|
|
528
|
+
textFieldRecipe,
|
|
529
|
+
TextFieldRoot,
|
|
530
|
+
TextField2 as TextField
|
|
525
531
|
};
|
|
@@ -30,8 +30,8 @@ function _optionalChain(ops) {
|
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
32
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
33
|
-
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
34
33
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
34
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
35
35
|
|
|
36
36
|
// src/components/skeleton/skeleton.tsx
|
|
37
37
|
var _react = require('react');
|
|
@@ -95,7 +95,7 @@ var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
|
|
|
95
95
|
...props
|
|
96
96
|
}, ref) {
|
|
97
97
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
|
|
98
|
-
const [styleProps, rest] =
|
|
98
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
99
99
|
const selection = {
|
|
100
100
|
radius
|
|
101
101
|
};
|
|
@@ -132,10 +132,10 @@ var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
|
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
Skeleton.displayName = "XAUI.Skeleton";
|
|
135
|
-
const
|
|
136
|
-
code: "function
|
|
137
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
138
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
135
|
+
const _worklet_8636613549176_init_data = {
|
|
136
|
+
code: "function chunkSNIHUKDACjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
137
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SNIHUKDA.cjs",
|
|
138
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkSNIHUKDACjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SNIHUKDA.cjs\"],\"mappings\":\"AAyF+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
139
139
|
};
|
|
140
140
|
var PulsingBlock = _react.forwardRef.call(void 0, function PulsingBlock2({
|
|
141
141
|
style,
|
|
@@ -151,26 +151,26 @@ var PulsingBlock = _react.forwardRef.call(void 0, function PulsingBlock2({
|
|
|
151
151
|
true);
|
|
152
152
|
return () => _reactnativereanimated.cancelAnimation.call(void 0, opacity);
|
|
153
153
|
}, [opacity]);
|
|
154
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
155
|
-
|
|
154
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkSNIHUKDACjs1Factory({
|
|
155
|
+
_worklet_8636613549176_init_data,
|
|
156
156
|
opacity
|
|
157
157
|
}) {
|
|
158
158
|
const _e = [new global.Error(), -2, -27];
|
|
159
|
-
const
|
|
159
|
+
const chunkSNIHUKDACjs1 = function () {
|
|
160
160
|
return {
|
|
161
161
|
opacity: opacity.value
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
|
-
|
|
164
|
+
chunkSNIHUKDACjs1.__closure = {
|
|
165
165
|
opacity
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
return
|
|
167
|
+
chunkSNIHUKDACjs1.__workletHash = 8636613549176;
|
|
168
|
+
chunkSNIHUKDACjs1.__pluginVersion = "0.7.4";
|
|
169
|
+
chunkSNIHUKDACjs1.__initData = _worklet_8636613549176_init_data;
|
|
170
|
+
chunkSNIHUKDACjs1.__stackDetails = _e;
|
|
171
|
+
return chunkSNIHUKDACjs1;
|
|
172
172
|
}({
|
|
173
|
-
|
|
173
|
+
_worklet_8636613549176_init_data,
|
|
174
174
|
opacity
|
|
175
175
|
}), [opacity]);
|
|
176
176
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|