@xaui/native 0.9.1-alpha.37 → 0.9.1-alpha.38
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-TJHYSSBZ.js → chunk-346QBNUD.js} +1 -1
- 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-ZJWEVFAO.cjs → chunk-66FOASTP.cjs} +9 -9
- package/dist/{chunk-5PPNDKRX.js → chunk-6CO6FM67.js} +16 -16
- package/dist/{chunk-54FJOKAN.cjs → chunk-7GHM4GKL.cjs} +25 -25
- 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-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-6G3XWPNP.js → chunk-HA6BFY3A.js} +3 -3
- package/dist/{chunk-FTQHDJYL.cjs → chunk-HOI5425P.cjs} +9 -9
- 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-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-Q3MQ7S2D.cjs +476 -0
- package/dist/{chunk-NKPTXTTS.js → chunk-QZ24MZRX.js} +3 -3
- package/dist/{chunk-7LSY4WFL.js → chunk-R7BU4CPS.js} +2 -2
- package/dist/{chunk-DVDQSW7U.cjs → chunk-RAWGK2XK.cjs} +25 -60
- 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-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/chunk-ZF6KIHXH.js +591 -0
- package/dist/{chunk-XWY4DF37.js → chunk-ZNZ7HVRW.js} +51 -88
- package/dist/components/accordion/index.cjs +34 -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 +34 -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/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 +8 -7
- package/dist/components/select/index.d.cts +12 -22
- package/dist/components/select/index.d.ts +12 -22
- package/dist/components/select/index.js +7 -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 +51 -27
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +69 -45
- package/dist/system/index.cjs +9 -7
- package/dist/system/index.d.cts +46 -33
- package/dist/system/index.d.ts +46 -33
- package/dist/system/index.js +10 -8
- package/package.json +11 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconContext } from "./chunk-
|
|
2
|
-
import { Slot, childrenToString, createSlotContext } from "./chunk-
|
|
1
|
+
import { IconContext } from "./chunk-FHUYHV6J.js";
|
|
2
|
+
import { Slot, childrenToString, createSlotContext } from "./chunk-K72UDPVN.js";
|
|
3
3
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
4
4
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
5
5
|
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
@@ -105,10 +105,10 @@ var AvatarImage = forwardRef3(function AvatarImage2({
|
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
AvatarImage.displayName = "XAUI.Avatar.Image";
|
|
108
|
-
const
|
|
109
|
-
code: "function
|
|
110
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
111
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
108
|
+
const _worklet_6864369992346_init_data = {
|
|
109
|
+
code: "function chunk6CO6FM67Js1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
110
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6CO6FM67.js",
|
|
111
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6CO6FM67Js1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6CO6FM67.js\"],\"mappings\":\"AAoG2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
112
112
|
};
|
|
113
113
|
var FadingImage = forwardRef3(function FadingImage2({
|
|
114
114
|
onLoad,
|
|
@@ -122,26 +122,26 @@ var FadingImage = forwardRef3(function FadingImage2({
|
|
|
122
122
|
});
|
|
123
123
|
onLoad?.(event);
|
|
124
124
|
}, [opacity, onLoad]);
|
|
125
|
-
const animatedStyle = useAnimatedStyle(function
|
|
126
|
-
|
|
125
|
+
const animatedStyle = useAnimatedStyle(function chunk6CO6FM67Js1Factory({
|
|
126
|
+
_worklet_6864369992346_init_data,
|
|
127
127
|
opacity
|
|
128
128
|
}) {
|
|
129
129
|
const _e = [new global.Error(), -2, -27];
|
|
130
|
-
const
|
|
130
|
+
const chunk6CO6FM67Js1 = function () {
|
|
131
131
|
return {
|
|
132
132
|
opacity: opacity.value
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
chunk6CO6FM67Js1.__closure = {
|
|
136
136
|
opacity
|
|
137
137
|
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return
|
|
138
|
+
chunk6CO6FM67Js1.__workletHash = 6864369992346;
|
|
139
|
+
chunk6CO6FM67Js1.__pluginVersion = "0.7.4";
|
|
140
|
+
chunk6CO6FM67Js1.__initData = _worklet_6864369992346_init_data;
|
|
141
|
+
chunk6CO6FM67Js1.__stackDetails = _e;
|
|
142
|
+
return chunk6CO6FM67Js1;
|
|
143
143
|
}({
|
|
144
|
-
|
|
144
|
+
_worklet_6864369992346_init_data,
|
|
145
145
|
opacity
|
|
146
146
|
}), [opacity]);
|
|
147
147
|
return /* @__PURE__ */jsx3(Animated.Image, {
|
|
@@ -2,8 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkH4E4HDEPcjs = require('./chunk-H4E4HDEP.cjs');
|
|
4
4
|
|
|
5
|
-
// src/system/slot/
|
|
5
|
+
// src/system/slot/children-to-string.ts
|
|
6
6
|
var _react = require('react');
|
|
7
|
+
function childrenToString(children) {
|
|
8
|
+
const text = stringify(children);
|
|
9
|
+
return text === null || text === "" ? null : text;
|
|
10
|
+
}
|
|
11
|
+
function stringify(node) {
|
|
12
|
+
if (node === null || node === void 0 || typeof node === "boolean") return "";
|
|
13
|
+
if (typeof node === "string") return node;
|
|
14
|
+
if (typeof node === "number") return String(node);
|
|
15
|
+
if (_react.isValidElement.call(void 0, node)) return null;
|
|
16
|
+
if (Array.isArray(node)) {
|
|
17
|
+
let text = "";
|
|
18
|
+
for (const child of node) {
|
|
19
|
+
const part = stringify(child);
|
|
20
|
+
if (part === null) return null;
|
|
21
|
+
text += part;
|
|
22
|
+
}
|
|
23
|
+
return text;
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// src/system/slot/create-slot-context.ts
|
|
29
|
+
|
|
7
30
|
function createSlotContext(name) {
|
|
8
31
|
const Context = _react.createContext.call(void 0, null);
|
|
9
32
|
Context.displayName = `XAUI.${name}.Context`;
|
|
@@ -88,32 +111,9 @@ function refOf(element) {
|
|
|
88
111
|
return _nullishCoalesce(fromProps, () => ( fromElement));
|
|
89
112
|
}
|
|
90
113
|
|
|
91
|
-
// src/system/slot/children-to-string.ts
|
|
92
|
-
|
|
93
|
-
function childrenToString(children) {
|
|
94
|
-
const text = stringify(children);
|
|
95
|
-
return text === null || text === "" ? null : text;
|
|
96
|
-
}
|
|
97
|
-
function stringify(node) {
|
|
98
|
-
if (node === null || node === void 0 || typeof node === "boolean") return "";
|
|
99
|
-
if (typeof node === "string") return node;
|
|
100
|
-
if (typeof node === "number") return String(node);
|
|
101
|
-
if (_react.isValidElement.call(void 0, node)) return null;
|
|
102
|
-
if (Array.isArray(node)) {
|
|
103
|
-
let text = "";
|
|
104
|
-
for (const child of node) {
|
|
105
|
-
const part = stringify(child);
|
|
106
|
-
if (part === null) return null;
|
|
107
|
-
text += part;
|
|
108
|
-
}
|
|
109
|
-
return text;
|
|
110
|
-
}
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
exports.
|
|
119
|
+
exports.childrenToString = childrenToString; exports.createSlotContext = createSlotContext; exports.mergeProps = mergeProps; exports.Slot = Slot;
|
|
@@ -29,8 +29,8 @@ function _optionalChain(ops) {
|
|
|
29
29
|
}
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
var
|
|
32
|
+
var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
|
|
33
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
34
34
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
35
35
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
36
36
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -42,7 +42,7 @@ var _reactnative = require('react-native');
|
|
|
42
42
|
// src/components/avatar/avatar-initials.tsx
|
|
43
43
|
|
|
44
44
|
// src/components/avatar/avatar.context.ts
|
|
45
|
-
var [AvatarProvider, useAvatar] =
|
|
45
|
+
var [AvatarProvider, useAvatar] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Avatar");
|
|
46
46
|
|
|
47
47
|
// src/components/avatar/avatar-initials.tsx
|
|
48
48
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -79,7 +79,7 @@ var AvatarFallback = _react.forwardRef.call(void 0, function AvatarFallback2({
|
|
|
79
79
|
icon
|
|
80
80
|
} = useAvatar();
|
|
81
81
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
82
|
-
const text =
|
|
82
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
83
83
|
const content = text !== null ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, AvatarInitials, {
|
|
84
84
|
children: text
|
|
85
85
|
}) : children;
|
|
@@ -87,7 +87,7 @@ var AvatarFallback = _react.forwardRef.call(void 0, function AvatarFallback2({
|
|
|
87
87
|
ref,
|
|
88
88
|
style: [fallbackStyle, styleProps, style],
|
|
89
89
|
...rest,
|
|
90
|
-
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
90
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.IconContext.Provider, {
|
|
91
91
|
value: icon,
|
|
92
92
|
children: content
|
|
93
93
|
})
|
|
@@ -134,10 +134,10 @@ var AvatarImage = _react.forwardRef.call(void 0, function AvatarImage2({
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
AvatarImage.displayName = "XAUI.Avatar.Image";
|
|
137
|
-
const
|
|
138
|
-
code: "function
|
|
139
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
140
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
137
|
+
const _worklet_11644836485943_init_data = {
|
|
138
|
+
code: "function chunk7TOG4TVUCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
139
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-7TOG4TVU.cjs",
|
|
140
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk7TOG4TVUCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-7TOG4TVU.cjs\"],\"mappings\":\"AAoG+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
141
141
|
};
|
|
142
142
|
var FadingImage = _react.forwardRef.call(void 0, function FadingImage2({
|
|
143
143
|
onLoad,
|
|
@@ -151,26 +151,26 @@ var FadingImage = _react.forwardRef.call(void 0, function FadingImage2({
|
|
|
151
151
|
});
|
|
152
152
|
_optionalChain([onLoad, 'optionalCall', _ => _(event)]);
|
|
153
153
|
}, [opacity, onLoad]);
|
|
154
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
155
|
-
|
|
154
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk7TOG4TVUCjs1Factory({
|
|
155
|
+
_worklet_11644836485943_init_data,
|
|
156
156
|
opacity
|
|
157
157
|
}) {
|
|
158
158
|
const _e = [new global.Error(), -2, -27];
|
|
159
|
-
const
|
|
159
|
+
const chunk7TOG4TVUCjs1 = function () {
|
|
160
160
|
return {
|
|
161
161
|
opacity: opacity.value
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
|
-
|
|
164
|
+
chunk7TOG4TVUCjs1.__closure = {
|
|
165
165
|
opacity
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
return
|
|
167
|
+
chunk7TOG4TVUCjs1.__workletHash = 11644836485943;
|
|
168
|
+
chunk7TOG4TVUCjs1.__pluginVersion = "0.7.4";
|
|
169
|
+
chunk7TOG4TVUCjs1.__initData = _worklet_11644836485943_init_data;
|
|
170
|
+
chunk7TOG4TVUCjs1.__stackDetails = _e;
|
|
171
|
+
return chunk7TOG4TVUCjs1;
|
|
172
172
|
}({
|
|
173
|
-
|
|
173
|
+
_worklet_11644836485943_init_data,
|
|
174
174
|
opacity
|
|
175
175
|
}), [opacity]);
|
|
176
176
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.Image, {
|
|
@@ -382,11 +382,11 @@ var AvatarRoot = _react.forwardRef.call(void 0, function Avatar({
|
|
|
382
382
|
};
|
|
383
383
|
}, [styles, tint]);
|
|
384
384
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _3 => _3.root]), styleProps, style];
|
|
385
|
-
const text =
|
|
385
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
386
386
|
const content = text !== null ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, AvatarFallback, {
|
|
387
387
|
children: text
|
|
388
388
|
}) : children;
|
|
389
|
-
const Root = asChild ?
|
|
389
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.Slot : _reactnative.View;
|
|
390
390
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AvatarProvider, {
|
|
391
391
|
value: context,
|
|
392
392
|
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, Root, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -18,7 +18,7 @@ var _react = require('react');
|
|
|
18
18
|
var _reactnative = require('react-native');
|
|
19
19
|
|
|
20
20
|
// src/components/text-field/text-field.context.ts
|
|
21
|
-
var [TextFieldProvider, useTextField] =
|
|
21
|
+
var [TextFieldProvider, useTextField] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "TextField");
|
|
22
22
|
|
|
23
23
|
// src/components/text-field/text-field-description.tsx
|
|
24
24
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -505,7 +505,7 @@ var TextFieldRoot = _react.forwardRef.call(void 0, function TextField({
|
|
|
505
505
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _3 => _3.root]), styleProps, style];
|
|
506
506
|
const surface = asChild ? (
|
|
507
507
|
// R12 — the caller's element *is* the column.
|
|
508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
508
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7GHM4GKLcjs.Slot, { ref, ...rest, style: rootStyle, children })
|
|
509
509
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: rootStyle, children });
|
|
510
510
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextFieldProvider, { value: context, children: surface });
|
|
511
511
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -45,7 +45,7 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
|
|
48
|
+
_chunkTGMVEHV7cjs.PressableFeedback,
|
|
49
49
|
{
|
|
50
50
|
ref,
|
|
51
51
|
isPressed,
|
|
@@ -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 _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
@@ -81,7 +81,7 @@ var Typography = _react.forwardRef.call(void 0, function Typography2({ children,
|
|
|
81
81
|
const styles = typographyRecipe.resolve({ theme, selection });
|
|
82
82
|
const tint = color ? typographyRecipe.tint({ theme, color, selection }) : void 0;
|
|
83
83
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), styleProps, style];
|
|
84
|
-
const Root = asChild ?
|
|
84
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.Slot : _reactnative.Text;
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: rootStyle, ...rest, children });
|
|
86
86
|
});
|
|
87
87
|
Typography.displayName = "XAUI.Typography";
|
|
@@ -92,7 +92,7 @@ Typography.displayName = "XAUI.Typography";
|
|
|
92
92
|
|
|
93
93
|
var TextSpan = _react.forwardRef.call(void 0, function TextSpan2({ children, asChild = false, style, ...props }, ref) {
|
|
94
94
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
95
|
-
const Root = asChild ?
|
|
95
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.Slot : _reactnative.Text;
|
|
96
96
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [styleProps, style], ...rest, children });
|
|
97
97
|
});
|
|
98
98
|
TextSpan.displayName = "XAUI.TextSpan";
|
|
@@ -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";
|
|
@@ -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
|