@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,8 +1,8 @@
|
|
|
1
1
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
|
+
import { createSlotContext } from "./chunk-YXPYOOHU.js";
|
|
2
3
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
4
|
+
import { useStyleProps } from "./chunk-MEYCZS32.js";
|
|
3
5
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
4
|
-
import { createSlotContext } from "./chunk-E2CWBQTV.js";
|
|
5
|
-
import { useStyleProps } from "./chunk-URSKA2VR.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_11424396762619_init_data = {
|
|
44
|
+
code: "function chunkSLUJFE6RJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
45
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SLUJFE6R.js",
|
|
46
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkSLUJFE6RJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SLUJFE6R.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 chunkSLUJFE6RJs1Factory({
|
|
60
|
+
_worklet_11424396762619_init_data,
|
|
61
61
|
opacity
|
|
62
62
|
}) {
|
|
63
63
|
const _e = [new global.Error(), -2, -27];
|
|
64
|
-
const
|
|
64
|
+
const chunkSLUJFE6RJs1 = function () {
|
|
65
65
|
return {
|
|
66
66
|
opacity: opacity.value
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
chunkSLUJFE6RJs1.__closure = {
|
|
70
70
|
opacity
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
72
|
+
chunkSLUJFE6RJs1.__workletHash = 11424396762619;
|
|
73
|
+
chunkSLUJFE6RJs1.__pluginVersion = "0.7.4";
|
|
74
|
+
chunkSLUJFE6RJs1.__initData = _worklet_11424396762619_init_data;
|
|
75
|
+
chunkSLUJFE6RJs1.__stackDetails = _e;
|
|
76
|
+
return chunkSLUJFE6RJs1;
|
|
77
77
|
}({
|
|
78
|
-
|
|
78
|
+
_worklet_11424396762619_init_data,
|
|
79
79
|
opacity
|
|
80
80
|
}), [opacity]);
|
|
81
81
|
return /* @__PURE__ */jsx(Animated.View, {
|
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunkQ3D6KIVFcjs = require('./chunk-Q3D6KIVF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPCWT2YBEcjs = require('./chunk-PCWT2YBE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
15
15
|
|
|
16
16
|
// src/components/input-group/input-group-field.tsx
|
|
17
17
|
var _react = require('react');
|
|
18
18
|
|
|
19
19
|
// src/components/input-group/input-group.context.ts
|
|
20
|
-
var [InputGroupProvider, useInputGroup] =
|
|
20
|
+
var [InputGroupProvider, useInputGroup] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "InputGroup");
|
|
21
21
|
|
|
22
22
|
// src/components/input-group/input-group.utils.ts
|
|
23
23
|
function decoratorPadding(prefixWidth, suffixWidth) {
|
|
@@ -36,7 +36,7 @@ var InputGroupField = _react.forwardRef.call(void 0,
|
|
|
36
36
|
() => decoratorPadding(prefixWidth, suffixWidth),
|
|
37
37
|
[prefixWidth, suffixWidth]
|
|
38
38
|
);
|
|
39
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ3D6KIVFcjs.InputField, { ref, ...props, style: [padding, style] });
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
InputGroupField.displayName = "XAUI.InputGroup.Field";
|
|
@@ -44,8 +44,8 @@ InputGroupField.displayName = "XAUI.InputGroup.Field";
|
|
|
44
44
|
// src/components/input-group/input-group-icon.tsx
|
|
45
45
|
|
|
46
46
|
function InputGroupIcon({ size, color, ...rest }) {
|
|
47
|
-
const { icon } =
|
|
48
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47
|
+
const { icon } = _chunkQ3D6KIVFcjs.useInput.call(void 0, );
|
|
48
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPCWT2YBEcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
49
49
|
}
|
|
50
50
|
InputGroupIcon.displayName = "XAUI.InputGroup.Icon";
|
|
51
51
|
|
|
@@ -58,9 +58,9 @@ var _reactnative = require('react-native');
|
|
|
58
58
|
|
|
59
59
|
var InputGroupDecorator = _react.forwardRef.call(void 0,
|
|
60
60
|
function InputGroupDecorator2({ side, children, isDecorative = false, onLayout, style, ...props }, ref) {
|
|
61
|
-
const { prefixStyle, suffixStyle, isDisabled } =
|
|
61
|
+
const { prefixStyle, suffixStyle, isDisabled } = _chunkQ3D6KIVFcjs.useInput.call(void 0, );
|
|
62
62
|
const { setPrefixWidth, setSuffixWidth } = useInputGroup();
|
|
63
|
-
const [styleProps, rest] =
|
|
63
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
64
64
|
const report = side === "prefix" ? setPrefixWidth : setSuffixWidth;
|
|
65
65
|
const handleLayout = _react.useCallback.call(void 0,
|
|
66
66
|
(event) => {
|
|
@@ -111,7 +111,7 @@ InputGroupSuffix.displayName = "XAUI.InputGroup.Suffix";
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
var InputGroupRoot = _react.forwardRef.call(void 0, function InputGroup({ children, asChild = false, style, ...props }, ref) {
|
|
114
|
-
const [styleProps, rest] =
|
|
114
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
115
115
|
const [prefixWidth, setPrefixWidth] = _react.useState.call(void 0, 0);
|
|
116
116
|
const [suffixWidth, setSuffixWidth] = _react.useState.call(void 0, 0);
|
|
117
117
|
const context = _react.useMemo.call(void 0,
|
|
@@ -121,7 +121,7 @@ var InputGroupRoot = _react.forwardRef.call(void 0, function InputGroup({ childr
|
|
|
121
121
|
const rootStyle = [styleProps, style];
|
|
122
122
|
const surface = asChild ? (
|
|
123
123
|
// R12 — the caller's element *is* the row.
|
|
124
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk54FJOKANcjs.Slot, { ref, ...rest, style: rootStyle, children })
|
|
125
125
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: rootStyle, children });
|
|
126
126
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputGroupProvider, { value: context, children: surface });
|
|
127
127
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PressableFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XNNJM5DQ.js";
|
|
4
4
|
import {
|
|
5
5
|
usePressState
|
|
6
6
|
} from "./chunk-423RQBOX.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-EGLLDKN6.js";
|
|
10
10
|
import {
|
|
11
11
|
useStyleProps
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MEYCZS32.js";
|
|
13
13
|
|
|
14
14
|
// src/system/close-button/close-button.tsx
|
|
15
15
|
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 _chunk6M7RUU7Vcjs = require('./chunk-6M7RUU7V.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -9,18 +9,18 @@ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
|
9
9
|
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
var
|
|
14
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
16
15
|
|
|
17
16
|
|
|
17
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
24
24
|
|
|
25
25
|
// src/components/card/card-background.tsx
|
|
26
26
|
var _react = require('react');
|
|
@@ -50,7 +50,7 @@ function partitionBackground(children) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// src/components/card/card.context.ts
|
|
53
|
-
var [CardProvider, useCard] =
|
|
53
|
+
var [CardProvider, useCard] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "Card");
|
|
54
54
|
|
|
55
55
|
// src/components/card/card.style.ts
|
|
56
56
|
|
|
@@ -63,7 +63,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
63
63
|
var CardBackground = markBackground(
|
|
64
64
|
_react.forwardRef.call(void 0, function CardBackground2({ children, source, style, ...props }, ref) {
|
|
65
65
|
const { backgroundStyle } = useCard();
|
|
66
|
-
const [styleProps, rest] =
|
|
66
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
67
67
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
68
68
|
_reactnative.View,
|
|
69
69
|
{
|
|
@@ -85,7 +85,7 @@ CardBackground.displayName = "XAUI.Card.Background";
|
|
|
85
85
|
|
|
86
86
|
var CardBody = _react.forwardRef.call(void 0, function CardBody2({ children, style, ...props }, ref) {
|
|
87
87
|
const { bodyStyle } = useCard();
|
|
88
|
-
const [styleProps, rest] =
|
|
88
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
89
89
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [bodyStyle, styleProps, style], ...rest, children });
|
|
90
90
|
});
|
|
91
91
|
CardBody.displayName = "XAUI.Card.Body";
|
|
@@ -97,7 +97,7 @@ CardBody.displayName = "XAUI.Card.Body";
|
|
|
97
97
|
var CardDescription = _react.forwardRef.call(void 0,
|
|
98
98
|
function CardDescription2({ children, style, ...props }, ref) {
|
|
99
99
|
const { descriptionStyle } = useCard();
|
|
100
|
-
const [styleProps, rest] =
|
|
100
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
101
101
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [descriptionStyle, styleProps, style], ...rest, children });
|
|
102
102
|
}
|
|
103
103
|
);
|
|
@@ -109,7 +109,7 @@ CardDescription.displayName = "XAUI.Card.Description";
|
|
|
109
109
|
|
|
110
110
|
var CardFooter = _react.forwardRef.call(void 0, function CardFooter2({ children, style, ...props }, ref) {
|
|
111
111
|
const { footerStyle } = useCard();
|
|
112
|
-
const [styleProps, rest] =
|
|
112
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
113
113
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [footerStyle, styleProps, style], ...rest, children });
|
|
114
114
|
});
|
|
115
115
|
CardFooter.displayName = "XAUI.Card.Footer";
|
|
@@ -120,7 +120,7 @@ CardFooter.displayName = "XAUI.Card.Footer";
|
|
|
120
120
|
|
|
121
121
|
var CardHeader = _react.forwardRef.call(void 0, function CardHeader2({ children, style, ...props }, ref) {
|
|
122
122
|
const { headerStyle } = useCard();
|
|
123
|
-
const [styleProps, rest] =
|
|
123
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
124
124
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [headerStyle, styleProps, style], ...rest, children });
|
|
125
125
|
});
|
|
126
126
|
CardHeader.displayName = "XAUI.Card.Header";
|
|
@@ -131,7 +131,7 @@ CardHeader.displayName = "XAUI.Card.Header";
|
|
|
131
131
|
|
|
132
132
|
var CardTitle = _react.forwardRef.call(void 0, function CardTitle2({ children, style, ...props }, ref) {
|
|
133
133
|
const { titleStyle } = useCard();
|
|
134
|
-
const [styleProps, rest] =
|
|
134
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
135
135
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [titleStyle, styleProps, style], ...rest, children });
|
|
136
136
|
});
|
|
137
137
|
CardTitle.displayName = "XAUI.Card.Title";
|
|
@@ -351,7 +351,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
|
|
|
351
351
|
...props
|
|
352
352
|
}, ref) {
|
|
353
353
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
354
|
-
const [styleProps, rest] =
|
|
354
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
355
355
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
356
356
|
const selection = { variant, size, radius };
|
|
357
357
|
const states = { disabled: isDisabled };
|
|
@@ -375,7 +375,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
|
|
|
375
375
|
styleProps,
|
|
376
376
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
377
377
|
];
|
|
378
|
-
const text =
|
|
378
|
+
const text = _chunk54FJOKANcjs.childrenToString.call(void 0, children);
|
|
379
379
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { children: text }) : children;
|
|
380
380
|
if (!isPressable && !asChild && (onPressIn || onPressOut || rest.onPress || rest.onLongPress)) {
|
|
381
381
|
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
@@ -388,7 +388,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
|
|
|
388
388
|
body
|
|
389
389
|
] });
|
|
390
390
|
const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
391
|
-
|
|
391
|
+
_chunk6M7RUU7Vcjs.PressableFeedback,
|
|
392
392
|
{
|
|
393
393
|
ref,
|
|
394
394
|
isPressed,
|
|
@@ -403,7 +403,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
|
|
|
403
403
|
onPressOut: press.onPressOut,
|
|
404
404
|
children: asChild ? children : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
405
405
|
background,
|
|
406
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6M7RUU7Vcjs.PressableFeedback.Highlight, {}),
|
|
407
407
|
body
|
|
408
408
|
] })
|
|
409
409
|
}
|
|
@@ -411,7 +411,7 @@ var CardRoot = _react.forwardRef.call(void 0, function Card({
|
|
|
411
411
|
// R12 — the caller's element is the card, so it takes the children it was written
|
|
412
412
|
// with and the auto-wrap does not apply.
|
|
413
413
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
414
|
-
|
|
414
|
+
_chunk54FJOKANcjs.Slot,
|
|
415
415
|
{
|
|
416
416
|
ref,
|
|
417
417
|
accessibilityRole,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectionFill
|
|
3
3
|
} from "./chunk-BA2DBSAN.js";
|
|
4
|
+
import {
|
|
5
|
+
useControllableState
|
|
6
|
+
} from "./chunk-F6W3JQ7K.js";
|
|
4
7
|
import {
|
|
5
8
|
PressableFeedback
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XNNJM5DQ.js";
|
|
7
10
|
import {
|
|
8
11
|
usePressState
|
|
9
12
|
} from "./chunk-423RQBOX.js";
|
|
10
13
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
childrenToString,
|
|
15
|
+
createSlotContext
|
|
16
|
+
} from "./chunk-YXPYOOHU.js";
|
|
13
17
|
import {
|
|
14
18
|
createRecipe,
|
|
15
19
|
radiusAxis
|
|
16
20
|
} from "./chunk-4GTAZM2C.js";
|
|
21
|
+
import {
|
|
22
|
+
useStyleProps
|
|
23
|
+
} from "./chunk-MEYCZS32.js";
|
|
17
24
|
import {
|
|
18
25
|
useXAUITheme
|
|
19
26
|
} from "./chunk-A3EGFI6T.js";
|
|
20
|
-
import {
|
|
21
|
-
childrenToString,
|
|
22
|
-
createSlotContext
|
|
23
|
-
} from "./chunk-E2CWBQTV.js";
|
|
24
|
-
import {
|
|
25
|
-
useStyleProps
|
|
26
|
-
} from "./chunk-URSKA2VR.js";
|
|
27
27
|
|
|
28
28
|
// src/components/checkbox/checkbox-indicator.tsx
|
|
29
29
|
import { forwardRef } from "react";
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
13
|
+
|
|
14
|
+
// src/components/divider/divider.tsx
|
|
15
|
+
var _react = require('react');
|
|
16
|
+
var _reactnative = require('react-native');
|
|
17
|
+
|
|
18
|
+
// src/components/divider/divider.recipe.ts
|
|
19
|
+
|
|
20
|
+
var SLOTS = ["root"];
|
|
21
|
+
var VARIANT_TOKENS = { default: { bg: "separator" } };
|
|
22
|
+
var HAIRLINE = _reactnative.StyleSheet.hairlineWidth;
|
|
23
|
+
function thickness(of) {
|
|
24
|
+
return (theme) => {
|
|
25
|
+
const value = of(theme);
|
|
26
|
+
return { root: { height: value, width: value } };
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var dividerRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
30
|
+
slots: SLOTS,
|
|
31
|
+
base: () => ({
|
|
32
|
+
// One line for both orientations. In a column the cross axis is horizontal, so a
|
|
33
|
+
// stretched child is full width; in a row it is vertical, so the same word makes a
|
|
34
|
+
// vertical rule full height. `stretch` is ignored on the axis the thickness fixes,
|
|
35
|
+
// which is what lets one declaration serve both.
|
|
36
|
+
root: { alignSelf: "stretch" }
|
|
37
|
+
}),
|
|
38
|
+
variantTokens: VARIANT_TOKENS,
|
|
39
|
+
paint: (_theme, colors) => ({ root: { backgroundColor: colors.bg } }),
|
|
40
|
+
variants: {
|
|
41
|
+
// Multiples of `borderWidth.default`, so a theme that thickens its edges thickens
|
|
42
|
+
// these with it. Only the hairline stands outside the scale, being a device pixel.
|
|
43
|
+
size: {
|
|
44
|
+
xs: thickness(() => HAIRLINE),
|
|
45
|
+
sm: thickness((theme) => theme.borderWidth.default),
|
|
46
|
+
md: thickness((theme) => theme.borderWidth.default * 2),
|
|
47
|
+
lg: thickness((theme) => theme.borderWidth.default * 6)
|
|
48
|
+
},
|
|
49
|
+
/** Second, so it releases the axis `size` had to write blind. */
|
|
50
|
+
orientation: {
|
|
51
|
+
horizontal: () => ({ root: { width: "auto" } }),
|
|
52
|
+
vertical: () => ({ root: { height: "auto" } })
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* `xs` where every other component defaults to `md`, and it is the one place in the
|
|
57
|
+
* library that departs from that: a rule you notice is a rule that is too thick, and
|
|
58
|
+
* the hairline is what a separator is at rest.
|
|
59
|
+
*
|
|
60
|
+
* `variant` is named here and nowhere else — there is one, the caller cannot choose it,
|
|
61
|
+
* and the recipe still needs it selected for `paint` and the tint to resolve.
|
|
62
|
+
*/
|
|
63
|
+
defaultVariants: { variant: "default", size: "xs", orientation: "horizontal" }
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// src/components/divider/divider.tsx
|
|
67
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
68
|
+
var Divider = _react.forwardRef.call(void 0, function Divider2({ children, orientation, size, color, asChild = false, style, ...props }, ref) {
|
|
69
|
+
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
70
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
71
|
+
const selection = { orientation, size };
|
|
72
|
+
const styles = dividerRecipe.resolve({ theme, selection });
|
|
73
|
+
const tint = color ? dividerRecipe.tint({ theme, color, selection }) : void 0;
|
|
74
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
75
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
76
|
+
Root,
|
|
77
|
+
{
|
|
78
|
+
ref,
|
|
79
|
+
accessibilityElementsHidden: true,
|
|
80
|
+
importantForAccessibility: "no",
|
|
81
|
+
...rest,
|
|
82
|
+
style: [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), styleProps, style],
|
|
83
|
+
children: asChild ? children : null
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
});
|
|
87
|
+
Divider.displayName = "XAUI.Divider";
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
exports.dividerRecipe = dividerRecipe; exports.Divider = Divider;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useStyleProps
|
|
3
|
+
} from "./chunk-MEYCZS32.js";
|
|
1
4
|
import {
|
|
2
5
|
useXAUITheme
|
|
3
6
|
} from "./chunk-A3EGFI6T.js";
|
|
4
|
-
import {
|
|
5
|
-
useStyleProps
|
|
6
|
-
} from "./chunk-URSKA2VR.js";
|
|
7
7
|
|
|
8
8
|
// src/system/icon/icon-context.ts
|
|
9
9
|
import { createContext, useContext } from "react";
|