@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,8 +1,8 @@
|
|
|
1
1
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
2
|
import { createSlotContext } from "./chunk-YXPYOOHU.js";
|
|
3
3
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
4
|
-
import { useStyleProps } from "./chunk-MEYCZS32.js";
|
|
5
4
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
5
|
+
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
6
6
|
|
|
7
7
|
// src/components/input-otp/input-otp-box.tsx
|
|
8
8
|
import { forwardRef as forwardRef3, useMemo } from "react";
|
|
@@ -40,10 +40,10 @@ function InputOTPCaret({
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
InputOTPCaret.displayName = "XAUI.InputOTP.Caret";
|
|
43
|
-
const
|
|
44
|
-
code: "function
|
|
45
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
46
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
43
|
+
const _worklet_8081278029978_init_data = {
|
|
44
|
+
code: "function chunkSO5UAGIUJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
45
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SO5UAGIU.js",
|
|
46
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkSO5UAGIUJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SO5UAGIU.js\"],\"mappings\":\"AA8DyC,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
47
47
|
};
|
|
48
48
|
function BlinkingCaret({
|
|
49
49
|
style
|
|
@@ -56,26 +56,26 @@ function BlinkingCaret({
|
|
|
56
56
|
}), -1, true);
|
|
57
57
|
return () => cancelAnimation(opacity);
|
|
58
58
|
}, [opacity]);
|
|
59
|
-
const animatedStyle = useAnimatedStyle(function
|
|
60
|
-
|
|
59
|
+
const animatedStyle = useAnimatedStyle(function chunkSO5UAGIUJs1Factory({
|
|
60
|
+
_worklet_8081278029978_init_data,
|
|
61
61
|
opacity
|
|
62
62
|
}) {
|
|
63
63
|
const _e = [new global.Error(), -2, -27];
|
|
64
|
-
const
|
|
64
|
+
const chunkSO5UAGIUJs1 = function () {
|
|
65
65
|
return {
|
|
66
66
|
opacity: opacity.value
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
chunkSO5UAGIUJs1.__closure = {
|
|
70
70
|
opacity
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
72
|
+
chunkSO5UAGIUJs1.__workletHash = 8081278029978;
|
|
73
|
+
chunkSO5UAGIUJs1.__pluginVersion = "0.7.4";
|
|
74
|
+
chunkSO5UAGIUJs1.__initData = _worklet_8081278029978_init_data;
|
|
75
|
+
chunkSO5UAGIUJs1.__stackDetails = _e;
|
|
76
|
+
return chunkSO5UAGIUJs1;
|
|
77
77
|
}({
|
|
78
|
-
|
|
78
|
+
_worklet_8081278029978_init_data,
|
|
79
79
|
opacity
|
|
80
80
|
}), [opacity]);
|
|
81
81
|
return /* @__PURE__ */jsx(Animated.View, {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-PPWXLZGL.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HXW4ANVB.js";
|
|
7
7
|
import {
|
|
8
8
|
PressableFeedback
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
usePressState
|
|
12
|
-
} from "./chunk-423RQBOX.js";
|
|
9
|
+
} from "./chunk-UGF35NSE.js";
|
|
13
10
|
import {
|
|
14
11
|
warnDev
|
|
15
12
|
} from "./chunk-EGLLDKN6.js";
|
|
13
|
+
import {
|
|
14
|
+
usePressState
|
|
15
|
+
} from "./chunk-423RQBOX.js";
|
|
16
16
|
import {
|
|
17
17
|
childrenToString,
|
|
18
18
|
createSlotContext
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
createRecipe,
|
|
22
22
|
radiusAxis
|
|
23
23
|
} from "./chunk-4GTAZM2C.js";
|
|
24
|
-
import {
|
|
25
|
-
useStyleProps
|
|
26
|
-
} from "./chunk-MEYCZS32.js";
|
|
27
24
|
import {
|
|
28
25
|
useXAUITheme
|
|
29
26
|
} from "./chunk-A3EGFI6T.js";
|
|
27
|
+
import {
|
|
28
|
+
useStyleProps
|
|
29
|
+
} from "./chunk-M63GFNKV.js";
|
|
30
30
|
|
|
31
31
|
// src/components/button/button.context.ts
|
|
32
32
|
var [ButtonProvider, useButton] = createSlotContext("Button");
|
|
@@ -6,12 +6,12 @@ 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
16
|
// src/components/badge/badge.tsx
|
|
17
17
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkMC7SY2QHcjs = require('./chunk-MC7SY2QH.cjs');
|
|
4
|
-
|
|
5
|
-
// src/system/style-props/use-style-props.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/system/style-props/use-style-props.ts
|
|
6
2
|
var _react = require('react');
|
|
7
3
|
|
|
4
|
+
// src/utils/stable-hash.ts
|
|
5
|
+
function canonical(value) {
|
|
6
|
+
if (value === null || typeof value !== "object")
|
|
7
|
+
return _nullishCoalesce(JSON.stringify(value), () => ( "null"));
|
|
8
|
+
if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;
|
|
9
|
+
const entries = Object.entries(value).filter(([, v]) => typeof v !== "function").sort(([a], [b]) => a < b ? -1 : 1).map(([k, v]) => `${JSON.stringify(k)}:${canonical(v)}`);
|
|
10
|
+
return `{${entries.join(",")}}`;
|
|
11
|
+
}
|
|
12
|
+
function stableHash(value) {
|
|
13
|
+
const input = canonical(value);
|
|
14
|
+
let hash = 2166136261;
|
|
15
|
+
for (let i = 0; i < input.length; i++) {
|
|
16
|
+
hash ^= input.charCodeAt(i);
|
|
17
|
+
hash = Math.imul(hash, 16777619) >>> 0;
|
|
18
|
+
}
|
|
19
|
+
return hash.toString(36);
|
|
20
|
+
}
|
|
21
|
+
|
|
8
22
|
// src/utils/style-props.ts
|
|
9
23
|
var STYLE_PROP_KEYS = [
|
|
10
24
|
// Flex and layout
|
|
@@ -170,10 +184,11 @@ function splitStyleProps(props) {
|
|
|
170
184
|
// src/system/style-props/use-style-props.ts
|
|
171
185
|
function useStyleProps(props) {
|
|
172
186
|
const [styleProps, rest] = splitStyleProps(props);
|
|
173
|
-
const key =
|
|
187
|
+
const key = stableHash(styleProps);
|
|
174
188
|
return [_react.useMemo.call(void 0, () => styleProps, [key]), rest];
|
|
175
189
|
}
|
|
176
190
|
|
|
177
191
|
|
|
178
192
|
|
|
179
|
-
|
|
193
|
+
|
|
194
|
+
exports.stableHash = stableHash; exports.useStyleProps = useStyleProps;
|
|
@@ -37,12 +37,12 @@ function _optionalChain(ops) {
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
40
|
-
var
|
|
40
|
+
var _chunkDRMT346Wcjs = require('./chunk-DRMT346W.cjs');
|
|
41
41
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
42
42
|
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
43
43
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
44
|
-
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.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');
|
|
@@ -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_2832015839190_init_data = {
|
|
124
|
+
code: "function chunkUBOXW5WOCjs1(){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-UBOXW5WO.cjs",
|
|
126
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUBOXW5WOCjs1\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UBOXW5WO.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_14535790199004_init_data = {
|
|
129
|
+
code: "function chunkUBOXW5WOCjs2(){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-UBOXW5WO.cjs",
|
|
131
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUBOXW5WOCjs2\",\"progress\",\"distance\",\"_reactnativereanimated\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"interpolateColor\",\"call\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UBOXW5WO.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 chunkUBOXW5WOCjs1Factory({
|
|
142
|
+
_worklet_2832015839190_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 chunkUBOXW5WOCjs1 = function () {
|
|
149
149
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
150
150
|
duration: SWITCH_DURATION
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
chunkUBOXW5WOCjs1.__closure = {
|
|
154
154
|
_reactnativereanimated,
|
|
155
155
|
isSelected,
|
|
156
156
|
SWITCH_DURATION
|
|
157
157
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return
|
|
158
|
+
chunkUBOXW5WOCjs1.__workletHash = 2832015839190;
|
|
159
|
+
chunkUBOXW5WOCjs1.__pluginVersion = "0.7.4";
|
|
160
|
+
chunkUBOXW5WOCjs1.__initData = _worklet_2832015839190_init_data;
|
|
161
|
+
chunkUBOXW5WOCjs1.__stackDetails = _e;
|
|
162
|
+
return chunkUBOXW5WOCjs1;
|
|
163
163
|
}({
|
|
164
|
-
|
|
164
|
+
_worklet_2832015839190_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 chunkUBOXW5WOCjs2Factory({
|
|
170
|
+
_worklet_14535790199004_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 chunkUBOXW5WOCjs2 = 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
|
+
chunkUBOXW5WOCjs2.__closure = {
|
|
186
186
|
progress,
|
|
187
187
|
distance,
|
|
188
188
|
_reactnativereanimated,
|
|
189
189
|
colors
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return
|
|
191
|
+
chunkUBOXW5WOCjs2.__workletHash = 14535790199004;
|
|
192
|
+
chunkUBOXW5WOCjs2.__pluginVersion = "0.7.4";
|
|
193
|
+
chunkUBOXW5WOCjs2.__initData = _worklet_14535790199004_init_data;
|
|
194
|
+
chunkUBOXW5WOCjs2.__stackDetails = _e;
|
|
195
|
+
return chunkUBOXW5WOCjs2;
|
|
196
196
|
}({
|
|
197
|
-
|
|
197
|
+
_worklet_14535790199004_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_8071130190100_init_data = {
|
|
247
|
+
code: "function chunkUBOXW5WOCjs3(){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-UBOXW5WO.cjs",
|
|
249
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUBOXW5WOCjs3\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UBOXW5WO.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_1890901985850_init_data = {
|
|
252
|
+
code: "function chunkUBOXW5WOCjs4(){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-UBOXW5WO.cjs",
|
|
254
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUBOXW5WOCjs4\",\"_reactnativereanimated\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"interpolateColor\",\"call\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UBOXW5WO.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 chunkUBOXW5WOCjs3Factory({
|
|
264
|
+
_worklet_8071130190100_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 chunkUBOXW5WOCjs3 = function () {
|
|
271
271
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
272
272
|
duration: SWITCH_DURATION
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
chunkUBOXW5WOCjs3.__closure = {
|
|
276
276
|
_reactnativereanimated,
|
|
277
277
|
isSelected,
|
|
278
278
|
SWITCH_DURATION
|
|
279
279
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
return
|
|
280
|
+
chunkUBOXW5WOCjs3.__workletHash = 8071130190100;
|
|
281
|
+
chunkUBOXW5WOCjs3.__pluginVersion = "0.7.4";
|
|
282
|
+
chunkUBOXW5WOCjs3.__initData = _worklet_8071130190100_init_data;
|
|
283
|
+
chunkUBOXW5WOCjs3.__stackDetails = _e;
|
|
284
|
+
return chunkUBOXW5WOCjs3;
|
|
285
285
|
}({
|
|
286
|
-
|
|
286
|
+
_worklet_8071130190100_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 chunkUBOXW5WOCjs4Factory({
|
|
292
|
+
_worklet_1890901985850_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 chunkUBOXW5WOCjs4 = 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
|
+
chunkUBOXW5WOCjs4.__closure = {
|
|
304
304
|
_reactnativereanimated,
|
|
305
305
|
progress,
|
|
306
306
|
colors
|
|
307
307
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return
|
|
308
|
+
chunkUBOXW5WOCjs4.__workletHash = 1890901985850;
|
|
309
|
+
chunkUBOXW5WOCjs4.__pluginVersion = "0.7.4";
|
|
310
|
+
chunkUBOXW5WOCjs4.__initData = _worklet_1890901985850_init_data;
|
|
311
|
+
chunkUBOXW5WOCjs4.__stackDetails = _e;
|
|
312
|
+
return chunkUBOXW5WOCjs4;
|
|
313
313
|
}({
|
|
314
|
-
|
|
314
|
+
_worklet_1890901985850_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
|
|
@@ -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, _chunkDRMT346Wcjs.PressableFeedback, {
|
|
654
654
|
ref,
|
|
655
655
|
isPressed,
|
|
656
656
|
isDisabled,
|