@xaui/native 0.9.1-alpha.30 → 0.9.1-alpha.32
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-36PRYGAM.js +13 -0
- package/dist/{chunk-E4TS6632.cjs → chunk-4MPSXDAB.cjs} +16 -16
- package/dist/{chunk-XQFAUDR2.cjs → chunk-4SLOOIE5.cjs} +2 -2
- package/dist/{chunk-FMZQW35T.js → chunk-4YJLNYUS.js} +13 -13
- package/dist/{chunk-ZP2E2H2G.cjs → chunk-54FJOKAN.cjs} +3 -3
- package/dist/{chunk-GPVNCJ3Z.cjs → chunk-6M7RUU7V.cjs} +68 -68
- package/dist/{chunk-XFSW3ZNI.cjs → chunk-7CTIE42J.cjs} +12 -12
- package/dist/{chunk-QGN2BBJO.cjs → chunk-AOEXU5UV.cjs} +8 -8
- package/dist/{chunk-Q3WFY5N3.js → chunk-AYOVBZAX.js} +10 -10
- package/dist/{chunk-6RVCGLKZ.js → chunk-BA2MPBCO.js} +60 -60
- package/dist/{chunk-5GO7MAVY.cjs → chunk-CM4LI5OH.cjs} +11 -11
- package/dist/{chunk-NBFWWQFW.cjs → chunk-CNNLMMFV.cjs} +13 -13
- package/dist/{chunk-TGZZ3RZU.cjs → chunk-CYS6U374.cjs} +4 -4
- package/dist/{chunk-UBQLKIZC.cjs → chunk-ETSYP3NH.cjs} +19 -19
- package/dist/{chunk-VJEER76X.js → chunk-GBFQZQ77.js} +9 -9
- package/dist/chunk-H4E4HDEP.cjs +13 -0
- package/dist/{chunk-NYRXUGVL.js → chunk-HVD5EX7V.js} +6 -6
- package/dist/{chunk-GVQOD3VW.js → chunk-HXL2QCMR.js} +3 -3
- package/dist/{chunk-GLGU2WFL.cjs → chunk-I6ZB3FZI.cjs} +1 -12
- package/dist/chunk-JCYWU5TO.js +92 -0
- package/dist/{chunk-7XKQJQF2.cjs → chunk-K4TWKF5U.cjs} +16 -16
- package/dist/{chunk-N527BTY4.cjs → chunk-K7LLERKT.cjs} +17 -17
- package/dist/chunk-KQKD3KB3.js +152 -0
- package/dist/{chunk-A5OCK3C2.js → chunk-L55CDXNI.js} +7 -7
- package/dist/chunk-LT6XHFXJ.cjs +185 -0
- package/dist/{chunk-URSKA2VR.js → chunk-MEYCZS32.js} +0 -11
- package/dist/{chunk-DFME724B.js → chunk-MHEL3NAN.js} +4 -4
- package/dist/{chunk-KWCHSIMI.cjs → chunk-MSMZBUZO.cjs} +13 -13
- package/dist/{chunk-27ZRTZEE.js → chunk-NFFL3E4N.js} +10 -10
- package/dist/{chunk-G7K652GC.js → chunk-NLASSGA7.js} +2 -2
- package/dist/{chunk-KOC3KQIT.js → chunk-NMAZ2TQF.js} +4 -4
- package/dist/{chunk-ZSLNGBDS.cjs → chunk-OX2YNMNS.cjs} +67 -67
- package/dist/{chunk-VZBWYWEI.cjs → chunk-PBR44KVV.cjs} +25 -25
- package/dist/{chunk-WR7YLDVV.cjs → chunk-PCWT2YBE.cjs} +3 -3
- package/dist/{chunk-BVJQ3UPZ.js → chunk-PPWXLZGL.js} +15 -15
- package/dist/{chunk-5Z4P6WHR.cjs → chunk-Q3D6KIVF.cjs} +11 -11
- package/dist/{chunk-X4HQ4H2V.js → chunk-SLUJFE6R.js} +16 -16
- package/dist/{chunk-4XPLPQLM.cjs → chunk-TVCS5UOE.cjs} +12 -12
- package/dist/{chunk-V4WDMM6Z.js → chunk-U3RDU3HU.js} +2 -2
- package/dist/{chunk-5RQ7AZPN.cjs → chunk-UORTYL63.cjs} +17 -17
- package/dist/{chunk-YKL6XHM6.js → chunk-UR6DNU2M.js} +10 -10
- package/dist/chunk-VSALV7VO.cjs +92 -0
- package/dist/{chunk-3FV4COTM.js → chunk-WJPQARJ5.js} +3 -3
- package/dist/{chunk-BFMTUMTU.js → chunk-XNNJM5DQ.js} +76 -76
- package/dist/{chunk-KPWZLUES.cjs → chunk-XWMB66ZM.cjs} +5 -5
- package/dist/{chunk-GI24YJPE.js → chunk-Y2B4XM3Y.js} +12 -12
- package/dist/{chunk-E2CWBQTV.js → chunk-YXPYOOHU.js} +1 -1
- package/dist/{chunk-7SEZGVTY.js → chunk-ZC35YYKS.js} +1 -1
- package/dist/components/alert/index.cjs +8 -7
- package/dist/components/alert/index.js +7 -6
- package/dist/components/button/index.cjs +9 -8
- package/dist/components/button/index.js +8 -7
- package/dist/components/card/index.cjs +6 -5
- package/dist/components/card/index.js +5 -4
- package/dist/components/checkbox/index.cjs +7 -6
- package/dist/components/checkbox/index.js +6 -5
- package/dist/components/chip/index.cjs +8 -7
- package/dist/components/chip/index.js +7 -6
- package/dist/components/divider/index.cjs +14 -0
- package/dist/components/divider/index.d.cts +117 -0
- package/dist/components/divider/index.d.ts +117 -0
- package/dist/components/divider/index.js +14 -0
- package/dist/components/input/index.cjs +5 -4
- package/dist/components/input/index.js +4 -3
- package/dist/components/input-group/index.cjs +7 -6
- package/dist/components/input-group/index.js +6 -5
- package/dist/components/input-otp/index.cjs +5 -4
- package/dist/components/input-otp/index.js +4 -3
- package/dist/components/radio/index.cjs +7 -6
- package/dist/components/radio/index.js +6 -5
- package/dist/components/skeleton/index.cjs +12 -0
- package/dist/components/skeleton/index.d.cts +120 -0
- package/dist/components/skeleton/index.d.ts +120 -0
- package/dist/components/skeleton/index.js +12 -0
- package/dist/components/spinner/index.cjs +6 -5
- package/dist/components/spinner/index.js +5 -4
- package/dist/components/switch/index.cjs +7 -6
- package/dist/components/switch/index.js +6 -5
- package/dist/components/text-area/index.cjs +6 -5
- package/dist/components/text-area/index.js +5 -4
- package/dist/components/typography/index.cjs +5 -4
- package/dist/components/typography/index.js +4 -3
- package/dist/components/view/index.cjs +5 -4
- package/dist/components/view/index.js +4 -3
- package/dist/index.cjs +43 -29
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +65 -51
- package/dist/system/index.cjs +12 -10
- package/dist/system/index.js +15 -13
- package/package.json +21 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
|
-
var
|
|
3
|
+
var _chunkK4TWKF5Ucjs = require('./chunk-K4TWKF5U.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6M7RUU7Vcjs = require('./chunk-6M7RUU7V.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkPCWT2YBEcjs = require('./chunk-PCWT2YBE.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
23
22
|
|
|
23
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
30
30
|
|
|
31
31
|
// src/components/button/button.context.ts
|
|
32
|
-
var [ButtonProvider, useButton] =
|
|
32
|
+
var [ButtonProvider, useButton] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "Button");
|
|
33
33
|
|
|
34
34
|
// src/components/button/button-icon.tsx
|
|
35
35
|
var _jsxruntime = require('react/jsx-runtime');
|
|
36
36
|
function ButtonIcon({ size, color, ...rest }) {
|
|
37
37
|
const { icon } = useButton();
|
|
38
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPCWT2YBEcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
39
39
|
}
|
|
40
40
|
ButtonIcon.displayName = "XAUI.Button.Icon";
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ var _reactnative = require('react-native');
|
|
|
45
45
|
|
|
46
46
|
var ButtonLabel = _react.forwardRef.call(void 0, function ButtonLabel2({ children, style, numberOfLines = 1, ...props }, ref) {
|
|
47
47
|
const { labelStyle } = useButton();
|
|
48
|
-
const [styleProps, rest] =
|
|
48
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
49
49
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
50
50
|
_reactnative.Text,
|
|
51
51
|
{
|
|
@@ -69,14 +69,14 @@ function ButtonSpinner({
|
|
|
69
69
|
...props
|
|
70
70
|
}) {
|
|
71
71
|
const { spinnerStyle } = useButton();
|
|
72
|
-
const [styleProps] =
|
|
72
|
+
const [styleProps] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
73
73
|
const ringStyle = [spinnerStyle, styleProps, style];
|
|
74
74
|
if (!animation) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: ringStyle });
|
|
75
75
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SpinningRing, { style: ringStyle });
|
|
76
76
|
}
|
|
77
77
|
ButtonSpinner.displayName = "XAUI.Button.Spinner";
|
|
78
78
|
function SpinningRing({ style }) {
|
|
79
|
-
const rotation =
|
|
79
|
+
const rotation = _chunkK4TWKF5Ucjs.useRotation.call(void 0, );
|
|
80
80
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { style: [style, rotation] });
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -235,7 +235,7 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
|
|
|
235
235
|
...props
|
|
236
236
|
}, ref) {
|
|
237
237
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
238
|
-
const [styleProps, rest] =
|
|
238
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
239
239
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
240
240
|
const selection = {
|
|
241
241
|
variant,
|
|
@@ -267,7 +267,7 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
|
|
|
267
267
|
styleProps,
|
|
268
268
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
269
269
|
];
|
|
270
|
-
const text =
|
|
270
|
+
const text = _chunk54FJOKANcjs.childrenToString.call(void 0, children);
|
|
271
271
|
const showSpinner = isLoading && !containsElementOfType(children, ButtonSpinner);
|
|
272
272
|
if (isIconOnly && !rest.accessibilityLabel && !rest["aria-label"]) {
|
|
273
273
|
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
@@ -275,7 +275,7 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
|
|
|
275
275
|
);
|
|
276
276
|
}
|
|
277
277
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ButtonProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
278
|
-
|
|
278
|
+
_chunk6M7RUU7Vcjs.PressableFeedback,
|
|
279
279
|
{
|
|
280
280
|
ref,
|
|
281
281
|
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 _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
4
4
|
|
|
5
5
|
// src/system/portal/portal.tsx
|
|
6
6
|
var _react = require('react');
|
|
@@ -31,7 +31,7 @@ var styles = _reactnative.StyleSheet.create({
|
|
|
31
31
|
container: { flex: 1 }
|
|
32
32
|
});
|
|
33
33
|
function PortalHost({ children, ...props }) {
|
|
34
|
-
const [styleProps] =
|
|
34
|
+
const [styleProps] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
35
35
|
const [portals, setPortals] = _react.useState.call(void 0, /* @__PURE__ */ new Map());
|
|
36
36
|
const addPortal = _react.useCallback.call(void 0, (key, element) => {
|
|
37
37
|
setPortals((current) => new Map(current).set(key, element));
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CloseButton,
|
|
3
3
|
closeButtonBase
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U3RDU3HU.js";
|
|
5
5
|
import {
|
|
6
6
|
PressableFeedback
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XNNJM5DQ.js";
|
|
8
8
|
import {
|
|
9
9
|
usePressState
|
|
10
10
|
} from "./chunk-423RQBOX.js";
|
|
11
|
-
import {
|
|
12
|
-
Icon
|
|
13
|
-
} from "./chunk-3FV4COTM.js";
|
|
14
11
|
import {
|
|
15
12
|
warnDev
|
|
16
13
|
} from "./chunk-EGLLDKN6.js";
|
|
17
14
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./chunk-4GTAZM2C.js";
|
|
21
|
-
import {
|
|
22
|
-
useXAUITheme
|
|
23
|
-
} from "./chunk-A3EGFI6T.js";
|
|
15
|
+
Icon
|
|
16
|
+
} from "./chunk-WJPQARJ5.js";
|
|
24
17
|
import {
|
|
25
18
|
Slot,
|
|
26
19
|
childrenToString,
|
|
27
20
|
createSlotContext
|
|
28
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YXPYOOHU.js";
|
|
22
|
+
import {
|
|
23
|
+
createRecipe,
|
|
24
|
+
radiusAxis
|
|
25
|
+
} from "./chunk-4GTAZM2C.js";
|
|
29
26
|
import {
|
|
30
27
|
useStyleProps
|
|
31
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MEYCZS32.js";
|
|
29
|
+
import {
|
|
30
|
+
useXAUITheme
|
|
31
|
+
} from "./chunk-A3EGFI6T.js";
|
|
32
32
|
|
|
33
33
|
// src/components/chip/chip-avatar.tsx
|
|
34
34
|
import { forwardRef } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkH4E4HDEPcjs = require('./chunk-H4E4HDEP.cjs');
|
|
4
4
|
|
|
5
5
|
// src/system/slot/create-slot-context.ts
|
|
6
6
|
var _react = require('react');
|
|
@@ -36,7 +36,7 @@ function mergeProps(ours, theirs) {
|
|
|
36
36
|
} else if (key === "style") {
|
|
37
37
|
merged[key] = mergeStyles(ourValue, theirValue);
|
|
38
38
|
} else if (key === "ref") {
|
|
39
|
-
merged[key] =
|
|
39
|
+
merged[key] = _chunkH4E4HDEPcjs.mergeRefs.call(void 0,
|
|
40
40
|
ourValue,
|
|
41
41
|
theirValue
|
|
42
42
|
);
|
|
@@ -78,7 +78,7 @@ var Slot = _react.forwardRef.call(void 0, function Slot2({ children, ...ours },
|
|
|
78
78
|
}
|
|
79
79
|
const child = children;
|
|
80
80
|
const merged = mergeProps(ours, child.props);
|
|
81
|
-
merged.ref =
|
|
81
|
+
merged.ref = _chunkH4E4HDEPcjs.mergeRefs.call(void 0, ref, refOf(child));
|
|
82
82
|
return _react.cloneElement.call(void 0, child, merged);
|
|
83
83
|
});
|
|
84
84
|
Slot.displayName = "XAUI.Slot";
|
|
@@ -36,26 +36,26 @@ function _optionalChain(ops) {
|
|
|
36
36
|
}
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
40
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
39
41
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
40
|
-
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
41
|
-
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
42
42
|
|
|
43
43
|
// src/system/pressable-feedback/pressable-feedback-context.ts
|
|
44
44
|
var _react = require('react');
|
|
45
|
-
var [FeedbackProvider, useFeedback] =
|
|
45
|
+
var [FeedbackProvider, useFeedback] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "PressableFeedback");
|
|
46
46
|
var DisableAllContext = _react.createContext.call(void 0, false);
|
|
47
47
|
|
|
48
48
|
// src/system/pressable-feedback/pressable-feedback.animation.ts
|
|
49
49
|
var PRESS_SCALE = 0.985;
|
|
50
50
|
var PRESS_DURATION = 300;
|
|
51
51
|
var SCALE_REFERENCE_WIDTH = 300;
|
|
52
|
-
const
|
|
53
|
-
code: "function
|
|
54
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
55
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
52
|
+
const _worklet_17163289770924_init_data = {
|
|
53
|
+
code: "function pressScaleFor_chunk6M7RUU7VCjs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
|
|
54
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs",
|
|
55
|
+
sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunk6M7RUU7VCjs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs\"],\"mappings\":\"AAsBA,SAAAA,+BAA8BA,CAAAC,KAAA,QAAAC,qBAAA,CAAAC,WAAA,OAAAC,SAAA,CAE5B,KAAM,CAAAC,WAAW,CAAGJ,KAAK,CAAG,CAAC,CAAGC,qBAAqB,CAAGD,KAAK,CAAG,CAAC,CACjE,MAAO,EAAC,CAAG,CAAC,CAAC,CAAGE,WAAW,EAAIE,WAAW,CAC5C\",\"ignoreList\":[]}"
|
|
56
56
|
};
|
|
57
|
-
const pressScaleFor = function
|
|
58
|
-
|
|
57
|
+
const pressScaleFor = function pressScaleFor_chunk6M7RUU7VCjs1Factory({
|
|
58
|
+
_worklet_17163289770924_init_data,
|
|
59
59
|
SCALE_REFERENCE_WIDTH,
|
|
60
60
|
PRESS_SCALE
|
|
61
61
|
}) {
|
|
@@ -68,13 +68,13 @@ const pressScaleFor = function pressScaleFor_chunkGPVNCJ3ZCjs1Factory({
|
|
|
68
68
|
SCALE_REFERENCE_WIDTH,
|
|
69
69
|
PRESS_SCALE
|
|
70
70
|
};
|
|
71
|
-
pressScaleFor.__workletHash =
|
|
71
|
+
pressScaleFor.__workletHash = 17163289770924;
|
|
72
72
|
pressScaleFor.__pluginVersion = "0.7.4";
|
|
73
|
-
pressScaleFor.__initData =
|
|
73
|
+
pressScaleFor.__initData = _worklet_17163289770924_init_data;
|
|
74
74
|
pressScaleFor.__stackDetails = _e;
|
|
75
75
|
return pressScaleFor;
|
|
76
76
|
}({
|
|
77
|
-
|
|
77
|
+
_worklet_17163289770924_init_data,
|
|
78
78
|
SCALE_REFERENCE_WIDTH,
|
|
79
79
|
PRESS_SCALE
|
|
80
80
|
});
|
|
@@ -87,26 +87,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
|
|
|
87
87
|
var RIPPLE_FADE_IN = 75;
|
|
88
88
|
var RIPPLE_FADE_OUT_DELAY = 225;
|
|
89
89
|
var RIPPLE_FADE_OUT = 150;
|
|
90
|
-
const
|
|
91
|
-
code: "function
|
|
92
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
93
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
90
|
+
const _worklet_937870689431_init_data = {
|
|
91
|
+
code: "function rippleRadiusFor_chunk6M7RUU7VCjs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
|
|
92
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs",
|
|
93
|
+
sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunk6M7RUU7VCjs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs\"],\"mappings\":\"AAoCA,SAAAA,iCAAwCA,CAAAC,KAAA,CAAAC,MAAA,EAEtC,MAAO,CAAAC,IAAI,CAACC,IAAI,CAACH,KAAK,CAAGA,KAAK,CAAGC,MAAM,CAAGA,MAAM,CAAC,CAAG,CAAC,CAAG,CAAC,CAC3D\",\"ignoreList\":[]}"
|
|
94
94
|
};
|
|
95
|
-
const rippleRadiusFor = function
|
|
96
|
-
|
|
95
|
+
const rippleRadiusFor = function rippleRadiusFor_chunk6M7RUU7VCjs2Factory({
|
|
96
|
+
_worklet_937870689431_init_data
|
|
97
97
|
}) {
|
|
98
98
|
const _e = [new global.Error(), 1, -27];
|
|
99
99
|
const rippleRadiusFor = function (width, height) {
|
|
100
100
|
return Math.sqrt(width * width + height * height) / 2 + 5;
|
|
101
101
|
};
|
|
102
102
|
rippleRadiusFor.__closure = {};
|
|
103
|
-
rippleRadiusFor.__workletHash =
|
|
103
|
+
rippleRadiusFor.__workletHash = 937870689431;
|
|
104
104
|
rippleRadiusFor.__pluginVersion = "0.7.4";
|
|
105
|
-
rippleRadiusFor.__initData =
|
|
105
|
+
rippleRadiusFor.__initData = _worklet_937870689431_init_data;
|
|
106
106
|
rippleRadiusFor.__stackDetails = _e;
|
|
107
107
|
return rippleRadiusFor;
|
|
108
108
|
}({
|
|
109
|
-
|
|
109
|
+
_worklet_937870689431_init_data
|
|
110
110
|
});
|
|
111
111
|
var ALL_OFF = {
|
|
112
112
|
scale: false,
|
|
@@ -233,7 +233,7 @@ function radiusFrom(style) {
|
|
|
233
233
|
// src/system/pressable-feedback/pressable-feedback.tsx
|
|
234
234
|
var _jsxruntime = require('react/jsx-runtime');
|
|
235
235
|
var AnimatedPressable = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.Pressable);
|
|
236
|
-
var AnimatedSlot = _reactnativereanimated2.default.createAnimatedComponent(
|
|
236
|
+
var AnimatedSlot = _reactnativereanimated2.default.createAnimatedComponent(_chunk54FJOKANcjs.Slot);
|
|
237
237
|
var PressableFeedback = _react.forwardRef.call(void 0, function PressableFeedback2({
|
|
238
238
|
animation,
|
|
239
239
|
style,
|
|
@@ -241,7 +241,7 @@ var PressableFeedback = _react.forwardRef.call(void 0, function PressableFeedbac
|
|
|
241
241
|
}, ref) {
|
|
242
242
|
const inheritedDisableAll = _react.useContext.call(void 0, DisableAllContext);
|
|
243
243
|
const resolved = resolveAnimation(animation, inheritedDisableAll);
|
|
244
|
-
const [styleProps, rest] =
|
|
244
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
245
245
|
const Feedback = resolved.none ? StaticFeedback : AnimatedFeedback;
|
|
246
246
|
const body = /* @__PURE__ */_jsxruntime.jsx.call(void 0, Feedback, {
|
|
247
247
|
ref,
|
|
@@ -269,7 +269,7 @@ var StaticFeedback = _react.forwardRef.call(void 0, function StaticFeedback2({
|
|
|
269
269
|
animation,
|
|
270
270
|
...surface
|
|
271
271
|
}), [isPressed, animation, surface]);
|
|
272
|
-
const Root = asChild ?
|
|
272
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.Pressable;
|
|
273
273
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, FeedbackProvider, {
|
|
274
274
|
value: context,
|
|
275
275
|
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, Root, {
|
|
@@ -281,10 +281,10 @@ var StaticFeedback = _react.forwardRef.call(void 0, function StaticFeedback2({
|
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
283
|
});
|
|
284
|
-
const
|
|
285
|
-
code: "function
|
|
286
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
287
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
284
|
+
const _worklet_2994713196469_init_data = {
|
|
285
|
+
code: "function chunk6M7RUU7VCjs3(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
|
|
286
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs",
|
|
287
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6M7RUU7VCjs3\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs\"],\"mappings\":\"AAmN6E,SAAAA,iBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE/E,GAAI,CAACH,SAAS,CAACI,KAAK,CAAE,MAAO,CAAC,CAAC,CAC/B,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAED,KAAK,CAAE,CAAC,CAAG,CAAC,CAAC,CAAGH,YAAY,CAACK,KAAK,EAAIJ,QAAQ,CAACI,KAAM,CAAC,CAAE,CAAC,CAClF\",\"ignoreList\":[]}"
|
|
288
288
|
};
|
|
289
289
|
var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2({
|
|
290
290
|
isPressed = false,
|
|
@@ -313,14 +313,14 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
|
|
|
313
313
|
});
|
|
314
314
|
}, [isPressed, progress]);
|
|
315
315
|
const pressedScale = _reactnativereanimated.useDerivedValue.call(void 0, () => pressScaleFor(size.value.width));
|
|
316
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
317
|
-
|
|
316
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk6M7RUU7VCjs3Factory({
|
|
317
|
+
_worklet_2994713196469_init_data,
|
|
318
318
|
animation,
|
|
319
319
|
pressedScale,
|
|
320
320
|
progress
|
|
321
321
|
}) {
|
|
322
322
|
const _e = [new global.Error(), -4, -27];
|
|
323
|
-
const
|
|
323
|
+
const chunk6M7RUU7VCjs3 = function () {
|
|
324
324
|
if (!animation.scale) return {};
|
|
325
325
|
return {
|
|
326
326
|
transform: [{
|
|
@@ -328,18 +328,18 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
|
|
|
328
328
|
}]
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
|
-
|
|
331
|
+
chunk6M7RUU7VCjs3.__closure = {
|
|
332
332
|
animation,
|
|
333
333
|
pressedScale,
|
|
334
334
|
progress
|
|
335
335
|
};
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return
|
|
336
|
+
chunk6M7RUU7VCjs3.__workletHash = 2994713196469;
|
|
337
|
+
chunk6M7RUU7VCjs3.__pluginVersion = "0.7.4";
|
|
338
|
+
chunk6M7RUU7VCjs3.__initData = _worklet_2994713196469_init_data;
|
|
339
|
+
chunk6M7RUU7VCjs3.__stackDetails = _e;
|
|
340
|
+
return chunk6M7RUU7VCjs3;
|
|
341
341
|
}({
|
|
342
|
-
|
|
342
|
+
_worklet_2994713196469_init_data,
|
|
343
343
|
animation,
|
|
344
344
|
pressedScale,
|
|
345
345
|
progress
|
|
@@ -456,7 +456,7 @@ function PressableFeedbackHighlight({
|
|
|
456
456
|
ink,
|
|
457
457
|
corners
|
|
458
458
|
} = useFeedback();
|
|
459
|
-
const [styleProps] =
|
|
459
|
+
const [styleProps] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
460
460
|
const settings = resolveSlotAnimation(override, animation.highlight, HIGHLIGHT_OPACITY, HIGHLIGHT_DURATION);
|
|
461
461
|
const base = [_reactnative.StyleSheet.absoluteFillObject, {
|
|
462
462
|
backgroundColor: ink,
|
|
@@ -481,10 +481,10 @@ function PressableFeedbackHighlight({
|
|
|
481
481
|
}
|
|
482
482
|
PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
|
|
483
483
|
markOverlay(PressableFeedbackHighlight);
|
|
484
|
-
const
|
|
485
|
-
code: "function
|
|
486
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
487
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
484
|
+
const _worklet_10753722716163_init_data = {
|
|
485
|
+
code: "function chunk6M7RUU7VCjs4(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
|
|
486
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs",
|
|
487
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6M7RUU7VCjs4\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs\"],\"mappings\":\"AAiW6E,SAAAA,iBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
|
|
488
488
|
};
|
|
489
489
|
function AnimatedHighlight({
|
|
490
490
|
base,
|
|
@@ -500,28 +500,28 @@ function AnimatedHighlight({
|
|
|
500
500
|
duration
|
|
501
501
|
});
|
|
502
502
|
}, [isPressed, shown, duration]);
|
|
503
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
504
|
-
|
|
503
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk6M7RUU7VCjs4Factory({
|
|
504
|
+
_worklet_10753722716163_init_data,
|
|
505
505
|
shown,
|
|
506
506
|
opacity
|
|
507
507
|
}) {
|
|
508
508
|
const _e = [new global.Error(), -3, -27];
|
|
509
|
-
const
|
|
509
|
+
const chunk6M7RUU7VCjs4 = function () {
|
|
510
510
|
return {
|
|
511
511
|
opacity: shown.value * opacity
|
|
512
512
|
};
|
|
513
513
|
};
|
|
514
|
-
|
|
514
|
+
chunk6M7RUU7VCjs4.__closure = {
|
|
515
515
|
shown,
|
|
516
516
|
opacity
|
|
517
517
|
};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
return
|
|
518
|
+
chunk6M7RUU7VCjs4.__workletHash = 10753722716163;
|
|
519
|
+
chunk6M7RUU7VCjs4.__pluginVersion = "0.7.4";
|
|
520
|
+
chunk6M7RUU7VCjs4.__initData = _worklet_10753722716163_init_data;
|
|
521
|
+
chunk6M7RUU7VCjs4.__stackDetails = _e;
|
|
522
|
+
return chunk6M7RUU7VCjs4;
|
|
523
523
|
}({
|
|
524
|
-
|
|
524
|
+
_worklet_10753722716163_init_data,
|
|
525
525
|
shown,
|
|
526
526
|
opacity
|
|
527
527
|
}), [shown, opacity]);
|
|
@@ -544,7 +544,7 @@ function PressableFeedbackRipple({
|
|
|
544
544
|
ink,
|
|
545
545
|
corners
|
|
546
546
|
} = useFeedback();
|
|
547
|
-
const [styleProps] =
|
|
547
|
+
const [styleProps] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
548
548
|
const waveStyle = [styleProps, style];
|
|
549
549
|
const settings = resolveSlotAnimation(override, animation.ripple, RIPPLE_OPACITY);
|
|
550
550
|
const [size, setSize] = _react.useState.call(void 0, {
|
|
@@ -585,10 +585,10 @@ function PressableFeedbackRipple({
|
|
|
585
585
|
}
|
|
586
586
|
PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
|
|
587
587
|
markOverlay(PressableFeedbackRipple);
|
|
588
|
-
const
|
|
589
|
-
code: "function
|
|
590
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
591
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
588
|
+
const _worklet_4161778642606_init_data = {
|
|
589
|
+
code: "function chunk6M7RUU7VCjs5(){const{wave,RIPPLE_START_SCALE,center,opacity,radius}=this.__closure;const t=wave.expand.value;const from=wave.origin.value;const scale=RIPPLE_START_SCALE+(1-RIPPLE_START_SCALE)*t;const x=from.x+(center.x-from.x)*t;const y=from.y+(center.y-from.y)*t;return{opacity:wave.alpha.value*opacity,transform:[{translateX:x-radius},{translateY:y-radius},{scale:scale}]};}",
|
|
590
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs",
|
|
591
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk6M7RUU7VCjs5\",\"wave\",\"RIPPLE_START_SCALE\",\"center\",\"opacity\",\"radius\",\"__closure\",\"t\",\"expand\",\"value\",\"from\",\"origin\",\"scale\",\"x\",\"y\",\"alpha\",\"transform\",\"translateX\",\"translateY\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-6M7RUU7V.cjs\"],\"mappings\":\"AAia6E,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,KAAM,CAAAC,CAAC,CAAGN,IAAI,CAACO,MAAM,CAACC,KAAK,CAC3B,KAAM,CAAAC,IAAI,CAAGT,IAAI,CAACU,MAAM,CAACF,KAAK,CAC9B,KAAM,CAAAG,KAAK,CAAGV,kBAAkB,CAAG,CAAC,CAAC,CAAGA,kBAAkB,EAAIK,CAAC,CAC/D,KAAM,CAAAM,CAAC,CAAGH,IAAI,CAACG,CAAC,CAAG,CAACV,MAAM,CAACU,CAAC,CAAGH,IAAI,CAACG,CAAC,EAAIN,CAAC,CAC1C,KAAM,CAAAO,CAAC,CAAGJ,IAAI,CAACI,CAAC,CAAG,CAACX,MAAM,CAACW,CAAC,CAAGJ,IAAI,CAACI,CAAC,EAAIP,CAAC,CAC1C,MAAO,CAELH,OAAO,CAAEH,IAAI,CAACc,KAAK,CAACN,KAAK,CAAGL,OAAO,CACnCY,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEJ,CAAC,CAAGR,MAAO,CAAC,CAAE,CAAEa,UAAU,CAAEJ,CAAC,CAAGT,MAAO,CAAC,CAAE,CAAEO,KAAA,CAAAA,KAAM,CAAC,CAC/E,CAAC,CACH\",\"ignoreList\":[]}"
|
|
592
592
|
};
|
|
593
593
|
function RippleWave({
|
|
594
594
|
wave,
|
|
@@ -598,8 +598,8 @@ function RippleWave({
|
|
|
598
598
|
opacity,
|
|
599
599
|
style
|
|
600
600
|
}) {
|
|
601
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
602
|
-
|
|
601
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk6M7RUU7VCjs5Factory({
|
|
602
|
+
_worklet_4161778642606_init_data,
|
|
603
603
|
wave,
|
|
604
604
|
RIPPLE_START_SCALE,
|
|
605
605
|
center,
|
|
@@ -607,7 +607,7 @@ function RippleWave({
|
|
|
607
607
|
radius
|
|
608
608
|
}) {
|
|
609
609
|
const _e = [new global.Error(), -6, -27];
|
|
610
|
-
const
|
|
610
|
+
const chunk6M7RUU7VCjs5 = function () {
|
|
611
611
|
const t = wave.expand.value;
|
|
612
612
|
const from = wave.origin.value;
|
|
613
613
|
const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
|
|
@@ -625,20 +625,20 @@ function RippleWave({
|
|
|
625
625
|
}]
|
|
626
626
|
};
|
|
627
627
|
};
|
|
628
|
-
|
|
628
|
+
chunk6M7RUU7VCjs5.__closure = {
|
|
629
629
|
wave,
|
|
630
630
|
RIPPLE_START_SCALE,
|
|
631
631
|
center,
|
|
632
632
|
opacity,
|
|
633
633
|
radius
|
|
634
634
|
};
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
return
|
|
635
|
+
chunk6M7RUU7VCjs5.__workletHash = 4161778642606;
|
|
636
|
+
chunk6M7RUU7VCjs5.__pluginVersion = "0.7.4";
|
|
637
|
+
chunk6M7RUU7VCjs5.__initData = _worklet_4161778642606_init_data;
|
|
638
|
+
chunk6M7RUU7VCjs5.__stackDetails = _e;
|
|
639
|
+
return chunk6M7RUU7VCjs5;
|
|
640
640
|
}({
|
|
641
|
-
|
|
641
|
+
_worklet_4161778642606_init_data,
|
|
642
642
|
wave,
|
|
643
643
|
RIPPLE_START_SCALE,
|
|
644
644
|
center,
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
7
7
|
|
|
8
8
|
// src/components/view/grid.tsx
|
|
9
9
|
var _react = require('react');
|
|
@@ -32,7 +32,7 @@ function spanWidth({ cellWidth, columns, gap }, span) {
|
|
|
32
32
|
var _jsxruntime = require('react/jsx-runtime');
|
|
33
33
|
var GridRoot = _react.forwardRef.call(void 0, function Grid({ children, columns = 2, gap = 0, style, onLayout, ...props }, ref) {
|
|
34
34
|
const [width, setWidth] = _react.useState.call(void 0, );
|
|
35
|
-
const [styleProps, rest] =
|
|
35
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
36
36
|
const safeColumns = Math.max(Math.floor(columns), 1);
|
|
37
37
|
const cellWidth = width === void 0 ? void 0 : (width - gap * (safeColumns - 1)) / safeColumns;
|
|
38
38
|
const context = _react.useMemo.call(void 0,
|
|
@@ -75,7 +75,7 @@ function isGridItem(child) {
|
|
|
75
75
|
|
|
76
76
|
var GridItem = _react.forwardRef.call(void 0, function GridItem2({ children, span = 1, style, ...props }, ref) {
|
|
77
77
|
const grid = useGrid();
|
|
78
|
-
const [styleProps, rest] =
|
|
78
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
79
79
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
80
80
|
_reactnative.View,
|
|
81
81
|
{
|
|
@@ -93,8 +93,8 @@ GridItem.displayName = "XAUI.Grid.Item";
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var StackRoot = _react.forwardRef.call(void 0, function Stack({ children, asChild = false, style, ...props }, ref) {
|
|
96
|
-
const [styleProps, rest] =
|
|
97
|
-
const Root = asChild ?
|
|
96
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
97
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
98
98
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "relative" }, styleProps, style], ...rest, children });
|
|
99
99
|
});
|
|
100
100
|
StackRoot.displayName = "XAUI.Stack";
|
|
@@ -104,8 +104,8 @@ StackRoot.displayName = "XAUI.Stack";
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
var StackItem = _react.forwardRef.call(void 0, function StackItem2({ children, asChild = false, style, ...props }, ref) {
|
|
107
|
-
const [styleProps, rest] =
|
|
108
|
-
const Root = asChild ?
|
|
107
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
108
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
109
109
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "absolute" }, styleProps, style], ...rest, children });
|
|
110
110
|
});
|
|
111
111
|
StackItem.displayName = "XAUI.Stack.Item";
|
|
@@ -115,8 +115,8 @@ StackItem.displayName = "XAUI.Stack.Item";
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
var Row = _react.forwardRef.call(void 0, function Row2({ children, asChild = false, style, ...props }, ref) {
|
|
118
|
-
const [styleProps, rest] =
|
|
119
|
-
const Root = asChild ?
|
|
118
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
119
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
120
120
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ flexDirection: "row" }, styleProps, style], ...rest, children });
|
|
121
121
|
});
|
|
122
122
|
Row.displayName = "XAUI.Row";
|
|
@@ -126,8 +126,8 @@ Row.displayName = "XAUI.Row";
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
var Column = _react.forwardRef.call(void 0, function Column2({ children, asChild = false, style, ...props }, ref) {
|
|
129
|
-
const [styleProps, rest] =
|
|
130
|
-
const Root = asChild ?
|
|
129
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
130
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
131
131
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ flexDirection: "column" }, styleProps, style], ...rest, children });
|
|
132
132
|
});
|
|
133
133
|
Column.displayName = "XAUI.Column";
|