@xaui/native 0.9.1-alpha.36 → 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-B6OKVLC7.js → chunk-26OGEFQI.js} +4 -4
- package/dist/{chunk-V5IVMZQJ.js → chunk-2PMXMKS5.js} +13 -8
- package/dist/{chunk-QZO57TPX.js → chunk-346QBNUD.js} +4 -4
- package/dist/{chunk-PPWXLZGL.js → chunk-3GFRSZYR.js} +15 -23
- package/dist/{chunk-GPZSTEEI.cjs → chunk-3JXI2IHV.cjs} +17 -17
- package/dist/{chunk-ISPOIMGX.cjs → chunk-4KFKWBN5.cjs} +26 -5
- package/dist/{chunk-N2U63JUX.cjs → chunk-4KSKQD37.cjs} +10 -10
- package/dist/{chunk-ZU3XQZ63.cjs → chunk-54CWXA34.cjs} +66 -66
- package/dist/{chunk-EFPWXJAJ.cjs → chunk-66FOASTP.cjs} +16 -16
- package/dist/{chunk-E5ZW7MBW.js → chunk-6CO6FM67.js} +17 -17
- package/dist/{chunk-54FJOKAN.cjs → chunk-7GHM4GKL.cjs} +25 -25
- package/dist/{chunk-2L7FOIWY.cjs → chunk-7TOG4TVU.cjs} +26 -26
- package/dist/{chunk-6N5ZCEAB.cjs → chunk-A7YB7YWX.cjs} +10 -10
- package/dist/{chunk-FVKIQBHS.cjs → chunk-AAVCMCJ3.cjs} +4 -4
- package/dist/{chunk-HQVVQGYV.cjs → chunk-ACAPTWE3.cjs} +16 -12
- package/dist/{chunk-LCDHTLSG.cjs → chunk-BNFIFRQA.cjs} +7 -7
- package/dist/{chunk-6U5IUUAR.js → chunk-DY3SUG5P.js} +5 -5
- package/dist/{chunk-RSGIJ6RI.js → chunk-EYD4H4X6.js} +2 -2
- package/dist/{chunk-DL2PGB5G.js → chunk-FBCWNXZC.js} +59 -59
- package/dist/{chunk-OWE5IID7.js → chunk-FHUYHV6J.js} +28 -7
- package/dist/{chunk-K7GAHNMJ.js → chunk-HA6BFY3A.js} +6 -6
- package/dist/{chunk-MFXZHLOU.cjs → chunk-HOI5425P.cjs} +16 -16
- package/dist/{chunk-VWATEE5O.js → chunk-IKJVLJKT.js} +15 -15
- package/dist/{chunk-YXPYOOHU.js → chunk-K72UDPVN.js} +27 -27
- package/dist/{chunk-2LNE4PWB.cjs → chunk-KSUV74BE.cjs} +5 -5
- package/dist/{chunk-UCW25LL6.js → chunk-LIUO6D3D.js} +76 -76
- package/dist/{chunk-U3HFQHGZ.js → chunk-LTX6TB5I.js} +4 -4
- package/dist/{chunk-OSCW7I4H.js → chunk-M63GFNKV.js} +19 -4
- package/dist/chunk-MESKS6AI.js +0 -0
- package/dist/{chunk-SAGMDVFU.js → chunk-MXGER5PI.js} +5 -5
- package/dist/{chunk-GHKJ6MUH.cjs → chunk-NCCRQK3P.cjs} +14 -14
- package/dist/chunk-NCTOTTVW.js +13 -0
- package/dist/chunk-OJCCV65P.cjs +1 -0
- package/dist/chunk-Q3MQ7S2D.cjs +476 -0
- package/dist/{chunk-CVCE7TW5.js → chunk-QZ24MZRX.js} +4 -4
- package/dist/{chunk-5GMU7ESV.js → chunk-R7BU4CPS.js} +3 -3
- package/dist/chunk-RAWGK2XK.cjs +971 -0
- package/dist/{chunk-PGQWUASE.cjs → chunk-RKCWYUGA.cjs} +6 -6
- package/dist/{chunk-3YZSUDZ2.js → chunk-S2WNWMNT.js} +4 -4
- package/dist/{chunk-XARBUUIE.cjs → chunk-S4QUM4EE.cjs} +12 -12
- package/dist/{chunk-OMV5MUTM.js → chunk-SACDOFGF.js} +16 -16
- package/dist/{chunk-FYCDRRJ2.cjs → chunk-SIP5J7HU.cjs} +25 -25
- package/dist/{chunk-AQXNEV6J.cjs → chunk-SNIHUKDA.cjs} +16 -16
- package/dist/{chunk-2OZPOWFB.js → chunk-SZLXPF3G.js} +4 -4
- package/dist/{chunk-RPOKLFRB.cjs → chunk-TDTUAIFF.cjs} +12 -12
- package/dist/{chunk-2SCE7TFZ.cjs → chunk-TGMVEHV7.cjs} +68 -68
- package/dist/{chunk-K3AVOT6L.cjs → chunk-TK44VBIE.cjs} +22 -7
- package/dist/{chunk-KZVHC4FL.js → chunk-TRETQZEW.js} +7 -7
- package/dist/{chunk-AZRMOWRG.cjs → chunk-URA25DU4.cjs} +10 -10
- package/dist/{chunk-BAPXLO5N.js → chunk-USF6EWYR.js} +7 -7
- package/dist/{chunk-TE7KVFE4.cjs → chunk-VZK3NLBH.cjs} +11 -11
- package/dist/{chunk-5BNIIDQD.cjs → chunk-WDDXU3OH.cjs} +14 -9
- package/dist/chunk-WFEMJCXO.cjs +13 -0
- package/dist/{chunk-JB5XANQY.js → chunk-WKCQ6VGW.js} +15 -11
- package/dist/{chunk-DOLWSO7A.js → chunk-XNMZQSY5.js} +5 -5
- package/dist/{chunk-K4TWKF5U.cjs → chunk-XSQPVDFH.cjs} +15 -25
- package/dist/{chunk-4XFEEBPU.js → chunk-XTC2SLFT.js} +2 -2
- package/dist/{chunk-ADQVA2FQ.cjs → chunk-XWNG2U4K.cjs} +5 -5
- package/dist/chunk-ZF6KIHXH.js +591 -0
- package/dist/chunk-ZNZ7HVRW.js +1106 -0
- 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 -8
- 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 -7
- package/dist/components/avatar/index.cjs +5 -6
- package/dist/components/avatar/index.d.cts +2 -2
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +4 -5
- package/dist/components/badge/index.cjs +4 -5
- package/dist/components/badge/index.d.cts +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.js +3 -4
- package/dist/components/button/index.cjs +8 -8
- package/dist/components/button/index.d.cts +41 -41
- package/dist/components/button/index.d.ts +41 -41
- package/dist/components/button/index.js +7 -7
- package/dist/components/card/index.cjs +5 -6
- package/dist/components/card/index.d.cts +43 -43
- package/dist/components/card/index.d.ts +43 -43
- package/dist/components/card/index.js +4 -5
- package/dist/components/checkbox/index.cjs +5 -6
- package/dist/components/checkbox/index.d.cts +82 -82
- package/dist/components/checkbox/index.d.ts +82 -82
- package/dist/components/checkbox/index.js +4 -5
- package/dist/components/chip/index.cjs +7 -8
- package/dist/components/chip/index.d.cts +42 -42
- package/dist/components/chip/index.d.ts +42 -42
- package/dist/components/chip/index.js +6 -7
- package/dist/components/divider/index.cjs +4 -5
- package/dist/components/divider/index.d.cts +3 -3
- package/dist/components/divider/index.d.ts +3 -3
- package/dist/components/divider/index.js +3 -4
- package/dist/components/field-group/index.cjs +6 -7
- package/dist/components/field-group/index.d.cts +2 -2
- package/dist/components/field-group/index.d.ts +2 -2
- package/dist/components/field-group/index.js +5 -6
- package/dist/components/input-otp/index.cjs +4 -5
- 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 -4
- package/dist/components/radio/index.cjs +5 -6
- package/dist/components/radio/index.d.cts +82 -82
- package/dist/components/radio/index.d.ts +82 -82
- package/dist/components/radio/index.js +4 -5
- package/dist/components/select/index.cjs +48 -0
- package/dist/components/select/index.d.cts +509 -0
- package/dist/components/select/index.d.ts +509 -0
- package/dist/components/select/index.js +48 -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 +5 -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 +4 -4
- package/dist/components/switch/index.cjs +5 -6
- package/dist/components/switch/index.d.cts +81 -81
- package/dist/components/switch/index.d.ts +81 -81
- package/dist/components/switch/index.js +4 -5
- package/dist/components/text-area/index.cjs +5 -6
- package/dist/components/text-area/index.js +4 -5
- package/dist/components/text-field/index.cjs +4 -5
- 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 +3 -4
- package/dist/components/typography/index.cjs +4 -5
- package/dist/components/typography/index.d.cts +5 -5
- package/dist/components/typography/index.d.ts +5 -5
- package/dist/components/typography/index.js +3 -4
- package/dist/components/view/index.cjs +4 -5
- package/dist/components/view/index.d.cts +3 -3
- package/dist/components/view/index.d.ts +3 -3
- package/dist/components/view/index.js +3 -4
- package/dist/index.cjs +91 -31
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +125 -65
- package/dist/system/index.cjs +13 -11
- package/dist/system/index.d.cts +61 -35
- package/dist/system/index.d.ts +61 -35
- package/dist/system/index.js +13 -11
- 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 +21 -1
- package/dist/chunk-FJ5TLRT3.js +0 -21
- package/dist/chunk-HT7H35GU.cjs +0 -21
|
@@ -37,19 +37,19 @@ function _optionalChain(ops) {
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
40
|
-
var
|
|
40
|
+
var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
|
|
41
41
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
42
|
-
var
|
|
42
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
43
43
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
44
|
-
var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
|
|
45
44
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
45
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
46
46
|
|
|
47
47
|
// src/components/switch/switch-label.tsx
|
|
48
48
|
var _react = require('react');
|
|
49
49
|
var _reactnative = require('react-native');
|
|
50
50
|
|
|
51
51
|
// src/components/switch/switch.context.ts
|
|
52
|
-
var [SwitchProvider, useSwitch] =
|
|
52
|
+
var [SwitchProvider, useSwitch] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Switch");
|
|
53
53
|
|
|
54
54
|
// src/components/switch/switch-label.tsx
|
|
55
55
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -61,7 +61,7 @@ var SwitchLabel = _react.forwardRef.call(void 0, function SwitchLabel2({
|
|
|
61
61
|
const {
|
|
62
62
|
labelStyle
|
|
63
63
|
} = useSwitch();
|
|
64
|
-
const [styleProps, rest] =
|
|
64
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
65
65
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
66
66
|
ref,
|
|
67
67
|
style: [labelStyle, styleProps, style],
|
|
@@ -93,7 +93,7 @@ var SwitchThumb = _react.forwardRef.call(void 0, function SwitchThumb2({
|
|
|
93
93
|
travel,
|
|
94
94
|
isSelected
|
|
95
95
|
} = useSwitch();
|
|
96
|
-
const [styleProps, rest] =
|
|
96
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
97
97
|
const base = [thumbStyle, styleProps, style];
|
|
98
98
|
const distance = _reactnative.I18nManager.isRTL ? -travel : travel;
|
|
99
99
|
if (!animation) {
|
|
@@ -120,15 +120,15 @@ var SwitchThumb = _react.forwardRef.call(void 0, function SwitchThumb2({
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
123
|
-
const
|
|
124
|
-
code: "function
|
|
125
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
126
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
123
|
+
const _worklet_10188758397223_init_data = {
|
|
124
|
+
code: "function chunk54CWXA34Cjs1(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
125
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
126
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs1\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AA4FuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
127
127
|
};
|
|
128
|
-
const
|
|
129
|
-
code: "function
|
|
130
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
131
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
128
|
+
const _worklet_1357571651117_init_data = {
|
|
129
|
+
code: "function chunk54CWXA34Cjs2(){const{progress,distance,_reactnativereanimated,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
130
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
131
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs2\",\"progress\",\"distance\",\"_reactnativereanimated\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"interpolateColor\",\"call\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AAgG6E,SAAAA,iBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,sBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,sBAAsB,CAACO,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEV,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACQ,GAAG,CAAER,MAAM,CAACS,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
132
132
|
};
|
|
133
133
|
var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
134
134
|
style,
|
|
@@ -138,43 +138,43 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
138
138
|
children,
|
|
139
139
|
...rest
|
|
140
140
|
}, ref) {
|
|
141
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
142
|
-
|
|
141
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunk54CWXA34Cjs1Factory({
|
|
142
|
+
_worklet_10188758397223_init_data,
|
|
143
143
|
_reactnativereanimated,
|
|
144
144
|
isSelected,
|
|
145
145
|
SWITCH_DURATION
|
|
146
146
|
}) {
|
|
147
147
|
const _e = [new global.Error(), -4, -27];
|
|
148
|
-
const
|
|
148
|
+
const chunk54CWXA34Cjs1 = function () {
|
|
149
149
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
150
150
|
duration: SWITCH_DURATION
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
chunk54CWXA34Cjs1.__closure = {
|
|
154
154
|
_reactnativereanimated,
|
|
155
155
|
isSelected,
|
|
156
156
|
SWITCH_DURATION
|
|
157
157
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return
|
|
158
|
+
chunk54CWXA34Cjs1.__workletHash = 10188758397223;
|
|
159
|
+
chunk54CWXA34Cjs1.__pluginVersion = "0.7.4";
|
|
160
|
+
chunk54CWXA34Cjs1.__initData = _worklet_10188758397223_init_data;
|
|
161
|
+
chunk54CWXA34Cjs1.__stackDetails = _e;
|
|
162
|
+
return chunk54CWXA34Cjs1;
|
|
163
163
|
}({
|
|
164
|
-
|
|
164
|
+
_worklet_10188758397223_init_data,
|
|
165
165
|
_reactnativereanimated,
|
|
166
166
|
isSelected,
|
|
167
167
|
SWITCH_DURATION
|
|
168
168
|
}), [isSelected]);
|
|
169
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
170
|
-
|
|
169
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk54CWXA34Cjs2Factory({
|
|
170
|
+
_worklet_1357571651117_init_data,
|
|
171
171
|
progress,
|
|
172
172
|
distance,
|
|
173
173
|
_reactnativereanimated,
|
|
174
174
|
colors
|
|
175
175
|
}) {
|
|
176
176
|
const _e = [new global.Error(), -5, -27];
|
|
177
|
-
const
|
|
177
|
+
const chunk54CWXA34Cjs2 = function () {
|
|
178
178
|
return {
|
|
179
179
|
transform: [{
|
|
180
180
|
translateX: progress.value * distance
|
|
@@ -182,19 +182,19 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
182
182
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
chunk54CWXA34Cjs2.__closure = {
|
|
186
186
|
progress,
|
|
187
187
|
distance,
|
|
188
188
|
_reactnativereanimated,
|
|
189
189
|
colors
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return
|
|
191
|
+
chunk54CWXA34Cjs2.__workletHash = 1357571651117;
|
|
192
|
+
chunk54CWXA34Cjs2.__pluginVersion = "0.7.4";
|
|
193
|
+
chunk54CWXA34Cjs2.__initData = _worklet_1357571651117_init_data;
|
|
194
|
+
chunk54CWXA34Cjs2.__stackDetails = _e;
|
|
195
|
+
return chunk54CWXA34Cjs2;
|
|
196
196
|
}({
|
|
197
|
-
|
|
197
|
+
_worklet_1357571651117_init_data,
|
|
198
198
|
progress,
|
|
199
199
|
distance,
|
|
200
200
|
_reactnativereanimated,
|
|
@@ -221,7 +221,7 @@ var SwitchTrack = _react.forwardRef.call(void 0, function SwitchTrack2({
|
|
|
221
221
|
track,
|
|
222
222
|
isSelected
|
|
223
223
|
} = useSwitch();
|
|
224
|
-
const [styleProps, rest] =
|
|
224
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
225
225
|
const base = [trackStyle, styleProps, style];
|
|
226
226
|
if (!animation) {
|
|
227
227
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
@@ -243,15 +243,15 @@ var SwitchTrack = _react.forwardRef.call(void 0, function SwitchTrack2({
|
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
245
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
246
|
-
const
|
|
247
|
-
code: "function
|
|
248
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
249
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
246
|
+
const _worklet_9748710936549_init_data = {
|
|
247
|
+
code: "function chunk54CWXA34Cjs3(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
248
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
249
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs3\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AAqJuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
250
250
|
};
|
|
251
|
-
const
|
|
252
|
-
code: "function
|
|
253
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
254
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
251
|
+
const _worklet_674634344651_init_data = {
|
|
252
|
+
code: "function chunk54CWXA34Cjs4(){const{_reactnativereanimated,progress,colors}=this.__closure;return{backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
253
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
254
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs4\",\"_reactnativereanimated\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"interpolateColor\",\"call\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AAyJ6E,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,eAAe,CAAEJ,sBAAsB,CAACK,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEL,QAAQ,CAACM,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACL,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
255
255
|
};
|
|
256
256
|
var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2({
|
|
257
257
|
style,
|
|
@@ -260,58 +260,58 @@ var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2
|
|
|
260
260
|
children,
|
|
261
261
|
...rest
|
|
262
262
|
}, ref) {
|
|
263
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
264
|
-
|
|
263
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunk54CWXA34Cjs3Factory({
|
|
264
|
+
_worklet_9748710936549_init_data,
|
|
265
265
|
_reactnativereanimated,
|
|
266
266
|
isSelected,
|
|
267
267
|
SWITCH_DURATION
|
|
268
268
|
}) {
|
|
269
269
|
const _e = [new global.Error(), -4, -27];
|
|
270
|
-
const
|
|
270
|
+
const chunk54CWXA34Cjs3 = function () {
|
|
271
271
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
272
272
|
duration: SWITCH_DURATION
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
chunk54CWXA34Cjs3.__closure = {
|
|
276
276
|
_reactnativereanimated,
|
|
277
277
|
isSelected,
|
|
278
278
|
SWITCH_DURATION
|
|
279
279
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
return
|
|
280
|
+
chunk54CWXA34Cjs3.__workletHash = 9748710936549;
|
|
281
|
+
chunk54CWXA34Cjs3.__pluginVersion = "0.7.4";
|
|
282
|
+
chunk54CWXA34Cjs3.__initData = _worklet_9748710936549_init_data;
|
|
283
|
+
chunk54CWXA34Cjs3.__stackDetails = _e;
|
|
284
|
+
return chunk54CWXA34Cjs3;
|
|
285
285
|
}({
|
|
286
|
-
|
|
286
|
+
_worklet_9748710936549_init_data,
|
|
287
287
|
_reactnativereanimated,
|
|
288
288
|
isSelected,
|
|
289
289
|
SWITCH_DURATION
|
|
290
290
|
}), [isSelected]);
|
|
291
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
292
|
-
|
|
291
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk54CWXA34Cjs4Factory({
|
|
292
|
+
_worklet_674634344651_init_data,
|
|
293
293
|
_reactnativereanimated,
|
|
294
294
|
progress,
|
|
295
295
|
colors
|
|
296
296
|
}) {
|
|
297
297
|
const _e = [new global.Error(), -4, -27];
|
|
298
|
-
const
|
|
298
|
+
const chunk54CWXA34Cjs4 = function () {
|
|
299
299
|
return {
|
|
300
300
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
|
|
303
|
+
chunk54CWXA34Cjs4.__closure = {
|
|
304
304
|
_reactnativereanimated,
|
|
305
305
|
progress,
|
|
306
306
|
colors
|
|
307
307
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return
|
|
308
|
+
chunk54CWXA34Cjs4.__workletHash = 674634344651;
|
|
309
|
+
chunk54CWXA34Cjs4.__pluginVersion = "0.7.4";
|
|
310
|
+
chunk54CWXA34Cjs4.__initData = _worklet_674634344651_init_data;
|
|
311
|
+
chunk54CWXA34Cjs4.__stackDetails = _e;
|
|
312
|
+
return chunk54CWXA34Cjs4;
|
|
313
313
|
}({
|
|
314
|
-
|
|
314
|
+
_worklet_674634344651_init_data,
|
|
315
315
|
_reactnativereanimated,
|
|
316
316
|
progress,
|
|
317
317
|
colors
|
|
@@ -575,7 +575,7 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
575
575
|
...props
|
|
576
576
|
}, ref) {
|
|
577
577
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
|
|
578
|
-
const [styleProps, rest] =
|
|
578
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
579
579
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
|
|
580
580
|
onPressIn,
|
|
581
581
|
onPressOut
|
|
@@ -638,7 +638,7 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
638
638
|
const rootStyle = [styles.root, styleProps, typeof style === "function" ? style({
|
|
639
639
|
pressed: isPressed
|
|
640
640
|
}) : style];
|
|
641
|
-
const text =
|
|
641
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
642
642
|
const content = text !== null ? /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
|
|
643
643
|
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchTrack, {
|
|
644
644
|
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchThumb, {})
|
|
@@ -650,7 +650,7 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
650
650
|
})));
|
|
651
651
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchProvider, {
|
|
652
652
|
value: context,
|
|
653
|
-
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
653
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkTGMVEHV7cjs.PressableFeedback, {
|
|
654
654
|
ref,
|
|
655
655
|
isPressed,
|
|
656
656
|
isDisabled,
|
|
@@ -1,38 +1,38 @@
|
|
|
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 _chunkAAVCMCJ3cjs = require('./chunk-AAVCMCJ3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
23
23
|
|
|
24
24
|
// src/components/alert/alert-close.tsx
|
|
25
25
|
var _react = require('react');
|
|
26
26
|
|
|
27
27
|
// src/components/alert/alert.context.ts
|
|
28
|
-
var [AlertProvider, useAlert] =
|
|
28
|
+
var [AlertProvider, useAlert] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Alert");
|
|
29
29
|
|
|
30
30
|
// src/components/alert/alert-close.tsx
|
|
31
31
|
var _jsxruntime = require('react/jsx-runtime');
|
|
32
32
|
var AlertClose = _react.forwardRef.call(void 0, function AlertClose2({ isDisabled, ...props }, ref) {
|
|
33
33
|
const { closeStyle, closeGlyphStyle, isDisabled: isAlertDisabled } = useAlert();
|
|
34
34
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35
|
-
|
|
35
|
+
_chunkAAVCMCJ3cjs.CloseButton,
|
|
36
36
|
{
|
|
37
37
|
ref,
|
|
38
38
|
name: "Alert.Close",
|
|
@@ -52,7 +52,7 @@ var _reactnative = require('react-native');
|
|
|
52
52
|
var AlertContent = _react.forwardRef.call(void 0,
|
|
53
53
|
function AlertContent2({ children, style, ...props }, ref) {
|
|
54
54
|
const { contentStyle } = useAlert();
|
|
55
|
-
const [styleProps, rest] =
|
|
55
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
56
56
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [contentStyle, styleProps, style], ...rest, children });
|
|
57
57
|
}
|
|
58
58
|
);
|
|
@@ -65,7 +65,7 @@ AlertContent.displayName = "XAUI.Alert.Content";
|
|
|
65
65
|
var AlertDescription = _react.forwardRef.call(void 0,
|
|
66
66
|
function AlertDescription2({ children, style, ...props }, ref) {
|
|
67
67
|
const { descriptionStyle } = useAlert();
|
|
68
|
-
const [styleProps, rest] =
|
|
68
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
69
69
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [descriptionStyle, styleProps, style], ...rest, children });
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -77,10 +77,10 @@ AlertDescription.displayName = "XAUI.Alert.Description";
|
|
|
77
77
|
|
|
78
78
|
var AlertIcon = _react.forwardRef.call(void 0, function AlertIcon2({ as, children, source, size, color, style, ...props }, ref) {
|
|
79
79
|
const { iconStyle, icon } = useAlert();
|
|
80
|
-
const [styleProps, rest] =
|
|
80
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
81
81
|
const glyphSize = _nullishCoalesce(size, () => ( icon.size));
|
|
82
82
|
const glyphColor = _nullishCoalesce(color, () => ( icon.color));
|
|
83
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [iconStyle, styleProps, style], ...rest, children: as ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [iconStyle, styleProps, style], ...rest, children: as ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { as, size: glyphSize, color: glyphColor }) : source ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { source, size: glyphSize, color: glyphColor }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { size: glyphSize, color: glyphColor, children }) });
|
|
84
84
|
});
|
|
85
85
|
AlertIcon.displayName = "XAUI.Alert.Icon";
|
|
86
86
|
|
|
@@ -90,7 +90,7 @@ AlertIcon.displayName = "XAUI.Alert.Icon";
|
|
|
90
90
|
|
|
91
91
|
var AlertTitle = _react.forwardRef.call(void 0, function AlertTitle2({ children, style, ...props }, ref) {
|
|
92
92
|
const { titleStyle } = useAlert();
|
|
93
|
-
const [styleProps, rest] =
|
|
93
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
94
94
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [titleStyle, styleProps, style], ...rest, children });
|
|
95
95
|
});
|
|
96
96
|
AlertTitle.displayName = "XAUI.Alert.Title";
|
|
@@ -194,7 +194,7 @@ var alertRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
194
194
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
195
195
|
// `CloseButton`; what stays below is the box and bar size this component's scale sets.
|
|
196
196
|
base: (theme) => ({
|
|
197
|
-
...
|
|
197
|
+
..._chunkAAVCMCJ3cjs.closeButtonBase.call(void 0, theme),
|
|
198
198
|
root: {
|
|
199
199
|
flexDirection: "row",
|
|
200
200
|
// Top-aligned, not centred: an alert's message can run to three lines, and an icon
|
|
@@ -295,7 +295,7 @@ var AlertRoot = _react.forwardRef.call(void 0, function Alert({
|
|
|
295
295
|
...props
|
|
296
296
|
}, ref) {
|
|
297
297
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
298
|
-
const [styleProps, rest] =
|
|
298
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
299
299
|
const selection = { variant, size, radius };
|
|
300
300
|
const states = { disabled: isDisabled };
|
|
301
301
|
const styles = alertRecipe.resolve({ theme, selection, states });
|
|
@@ -319,13 +319,13 @@ var AlertRoot = _react.forwardRef.call(void 0, function Alert({
|
|
|
319
319
|
};
|
|
320
320
|
}, [styles, tint, isDisabled]);
|
|
321
321
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _2 => _2.root]), styleProps, style];
|
|
322
|
-
const text =
|
|
322
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
323
323
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: text }) : children;
|
|
324
324
|
const surface = asChild ? (
|
|
325
325
|
// R12 — the caller's element *is* the alert, so it takes the children it was written
|
|
326
326
|
// with and the auto-wrap does not apply.
|
|
327
327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
-
|
|
328
|
+
_chunk7GHM4GKLcjs.Slot,
|
|
329
329
|
{
|
|
330
330
|
ref,
|
|
331
331
|
accessibilityRole,
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
import { useStyleProps } from "./chunk-OSCW7I4H.js";
|
|
5
4
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
5
|
+
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
6
6
|
|
|
7
7
|
// src/components/avatar/avatar-fallback.tsx
|
|
8
8
|
import { forwardRef as forwardRef2 } from "react";
|
|
@@ -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;
|