@xaui/native 0.9.1-alpha.37 → 0.9.1-alpha.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-OULTSBKU.js → chunk-26OGEFQI.js} +1 -1
- package/dist/{chunk-TJHYSSBZ.js → chunk-346QBNUD.js} +1 -1
- package/dist/{chunk-PPWXLZGL.js → chunk-3GFRSZYR.js} +15 -23
- package/dist/{chunk-DKH6BNPF.cjs → chunk-3JXI2IHV.cjs} +13 -13
- package/dist/{chunk-7B3UBUC6.cjs → chunk-4KFKWBN5.cjs} +23 -2
- package/dist/{chunk-IGLKACSR.cjs → chunk-4KSKQD37.cjs} +5 -5
- package/dist/{chunk-UBOXW5WO.cjs → chunk-54CWXA34.cjs} +61 -61
- package/dist/{chunk-ZJWEVFAO.cjs → chunk-66FOASTP.cjs} +9 -9
- package/dist/{chunk-5PPNDKRX.js → chunk-6CO6FM67.js} +16 -16
- package/dist/{chunk-54FJOKAN.cjs → chunk-7GHM4GKL.cjs} +25 -25
- package/dist/{chunk-AP6RVIIK.cjs → chunk-7TOG4TVU.cjs} +21 -21
- package/dist/{chunk-LEWW24RQ.cjs → chunk-A7YB7YWX.cjs} +3 -3
- package/dist/{chunk-3P6M2R4S.cjs → chunk-AAVCMCJ3.cjs} +4 -4
- package/dist/{chunk-VFTT3Q4B.cjs → chunk-BNFIFRQA.cjs} +3 -3
- package/dist/{chunk-JXNFOOKC.js → chunk-DY3SUG5P.js} +5 -5
- package/dist/{chunk-EOJ5MYAQ.js → chunk-EYD4H4X6.js} +4 -4
- package/dist/{chunk-RGKWNK4T.js → chunk-FBCWNXZC.js} +58 -58
- package/dist/{chunk-HXW4ANVB.js → chunk-FHUYHV6J.js} +25 -4
- package/dist/{chunk-6G3XWPNP.js → chunk-HA6BFY3A.js} +3 -3
- package/dist/{chunk-FTQHDJYL.cjs → chunk-HOI5425P.cjs} +9 -9
- package/dist/{chunk-YXPYOOHU.js → chunk-K72UDPVN.js} +27 -27
- package/dist/{chunk-NTD3NPRX.cjs → chunk-KSUV74BE.cjs} +2 -2
- package/dist/{chunk-UGF35NSE.js → chunk-LIUO6D3D.js} +75 -75
- package/dist/{chunk-E3X5ODKQ.js → chunk-LTX6TB5I.js} +1 -1
- package/dist/{chunk-BORJJYDW.js → chunk-MXGER5PI.js} +2 -2
- package/dist/{chunk-GTT4NHS2.cjs → chunk-NCCRQK3P.cjs} +11 -11
- package/dist/chunk-NCTOTTVW.js +13 -0
- package/dist/chunk-Q3MQ7S2D.cjs +476 -0
- package/dist/{chunk-NKPTXTTS.js → chunk-QZ24MZRX.js} +3 -3
- package/dist/{chunk-7LSY4WFL.js → chunk-R7BU4CPS.js} +2 -2
- package/dist/{chunk-DVDQSW7U.cjs → chunk-RAWGK2XK.cjs} +25 -60
- package/dist/{chunk-JB5LGQ54.cjs → chunk-RKCWYUGA.cjs} +3 -3
- package/dist/{chunk-SMW6ZWMH.js → chunk-S2WNWMNT.js} +1 -1
- package/dist/{chunk-WVLSQO6K.cjs → chunk-S4QUM4EE.cjs} +9 -9
- package/dist/{chunk-SO5UAGIU.js → chunk-SACDOFGF.js} +15 -15
- package/dist/{chunk-CUQTAPBU.cjs → chunk-SIP5J7HU.cjs} +17 -17
- package/dist/{chunk-O3A3DBSZ.js → chunk-SZLXPF3G.js} +1 -1
- package/dist/{chunk-437QULXO.cjs → chunk-TDTUAIFF.cjs} +5 -5
- package/dist/{chunk-DRMT346W.cjs → chunk-TGMVEHV7.cjs} +64 -64
- package/dist/{chunk-TDYPY2J7.js → chunk-TRETQZEW.js} +7 -7
- package/dist/{chunk-ITURCQMQ.cjs → chunk-URA25DU4.cjs} +5 -5
- package/dist/{chunk-4PTWZCOK.js → chunk-USF6EWYR.js} +7 -7
- package/dist/{chunk-P747CRAY.cjs → chunk-VZK3NLBH.cjs} +9 -9
- package/dist/chunk-WFEMJCXO.cjs +13 -0
- package/dist/{chunk-RVRVGG73.js → chunk-XNMZQSY5.js} +2 -2
- package/dist/{chunk-K4TWKF5U.cjs → chunk-XSQPVDFH.cjs} +15 -25
- package/dist/{chunk-JDSE4TQL.js → chunk-XTC2SLFT.js} +1 -1
- package/dist/{chunk-C5VDFRAD.cjs → chunk-XWNG2U4K.cjs} +2 -2
- package/dist/chunk-ZF6KIHXH.js +591 -0
- package/dist/{chunk-XWY4DF37.js → chunk-ZNZ7HVRW.js} +51 -88
- package/dist/components/accordion/index.cjs +34 -0
- package/dist/components/accordion/index.d.cts +299 -0
- package/dist/components/accordion/index.d.ts +299 -0
- package/dist/components/accordion/index.js +34 -0
- package/dist/components/alert/index.cjs +7 -7
- package/dist/components/alert/index.d.cts +2 -2
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +6 -6
- package/dist/components/avatar/index.cjs +4 -4
- package/dist/components/avatar/index.d.cts +3 -3
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +3 -3
- package/dist/components/badge/index.cjs +3 -3
- package/dist/components/badge/index.d.cts +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.js +2 -2
- package/dist/components/button/index.cjs +8 -7
- package/dist/components/button/index.d.cts +204 -204
- package/dist/components/button/index.d.ts +204 -204
- package/dist/components/button/index.js +7 -6
- package/dist/components/card/index.cjs +5 -5
- package/dist/components/card/index.d.cts +206 -206
- package/dist/components/card/index.d.ts +206 -206
- package/dist/components/card/index.js +4 -4
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.d.cts +408 -408
- package/dist/components/checkbox/index.d.ts +408 -408
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/chip/index.cjs +7 -7
- package/dist/components/chip/index.d.cts +205 -205
- package/dist/components/chip/index.d.ts +205 -205
- package/dist/components/chip/index.js +6 -6
- package/dist/components/divider/index.cjs +3 -3
- package/dist/components/divider/index.d.cts +3 -3
- package/dist/components/divider/index.d.ts +3 -3
- package/dist/components/divider/index.js +2 -2
- package/dist/components/field-group/index.cjs +5 -5
- package/dist/components/field-group/index.d.cts +8 -8
- package/dist/components/field-group/index.d.ts +8 -8
- package/dist/components/field-group/index.js +4 -4
- package/dist/components/input-otp/index.cjs +3 -3
- package/dist/components/input-otp/index.d.cts +2 -2
- package/dist/components/input-otp/index.d.ts +2 -2
- package/dist/components/input-otp/index.js +2 -2
- package/dist/components/radio/index.cjs +5 -5
- package/dist/components/radio/index.d.cts +419 -419
- package/dist/components/radio/index.d.ts +419 -419
- package/dist/components/radio/index.js +4 -4
- package/dist/components/select/index.cjs +8 -7
- package/dist/components/select/index.d.cts +12 -22
- package/dist/components/select/index.d.ts +12 -22
- package/dist/components/select/index.js +7 -6
- package/dist/components/skeleton/index.d.cts +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/spinner/index.cjs +5 -4
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +4 -3
- package/dist/components/switch/index.cjs +5 -5
- package/dist/components/switch/index.d.cts +409 -409
- package/dist/components/switch/index.d.ts +409 -409
- package/dist/components/switch/index.js +4 -4
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.d.cts +3 -3
- package/dist/components/text-field/index.d.ts +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/typography/index.cjs +3 -3
- package/dist/components/typography/index.d.cts +5 -5
- package/dist/components/typography/index.d.ts +5 -5
- package/dist/components/typography/index.js +2 -2
- package/dist/components/view/index.cjs +3 -3
- package/dist/components/view/index.d.cts +8 -8
- package/dist/components/view/index.d.ts +8 -8
- package/dist/components/view/index.js +2 -2
- package/dist/index.cjs +51 -27
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +69 -45
- package/dist/system/index.cjs +9 -7
- package/dist/system/index.d.cts +46 -33
- package/dist/system/index.d.ts +46 -33
- package/dist/system/index.js +10 -8
- package/package.json +11 -1
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { mergeRefs } from "./chunk-36PRYGAM.js";
|
|
2
|
-
|
|
3
|
-
// src/hooks/use-merged-ref.ts
|
|
4
|
-
import { useMemo } from "react";
|
|
5
|
-
function useMergedRef(...refs) {
|
|
6
|
-
return useMemo(() => mergeRefs(...refs), refs);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
1
|
// src/hooks/use-previous.ts
|
|
10
2
|
import { useEffect, useRef } from "react";
|
|
11
3
|
function usePrevious(value) {
|
|
@@ -20,10 +12,10 @@ function usePrevious(value) {
|
|
|
20
12
|
import { useEffect as useEffect2 } from "react";
|
|
21
13
|
import { Easing, cancelAnimation, useAnimatedStyle, useSharedValue, withRepeat, withTiming } from "react-native-reanimated";
|
|
22
14
|
var ROTATION_DURATION = 900;
|
|
23
|
-
const
|
|
24
|
-
code: "function
|
|
25
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
26
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
15
|
+
const _worklet_6356758416325_init_data = {
|
|
16
|
+
code: "function chunk3GFRSZYRJs1(){const{angle}=this.__closure;return{transform:[{rotate:angle.value+\"deg\"}]};}",
|
|
17
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-3GFRSZYR.js",
|
|
18
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk3GFRSZYRJs1\",\"angle\",\"__closure\",\"transform\",\"rotate\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-3GFRSZYR.js\"],\"mappings\":\"AA+B0B,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,OAAAC,SAAA,CAE5B,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,MAAM,CAAKH,KAAK,CAACI,KAAK,MAAM,CAAC,CAAE,CAAC,CACzD\",\"ignoreList\":[]}"
|
|
27
19
|
};
|
|
28
20
|
function useRotation() {
|
|
29
21
|
const angle = useSharedValue(0);
|
|
@@ -34,29 +26,29 @@ function useRotation() {
|
|
|
34
26
|
}), -1, false);
|
|
35
27
|
return () => cancelAnimation(angle);
|
|
36
28
|
}, [angle]);
|
|
37
|
-
return useAnimatedStyle(function
|
|
38
|
-
|
|
29
|
+
return useAnimatedStyle(function chunk3GFRSZYRJs1Factory({
|
|
30
|
+
_worklet_6356758416325_init_data,
|
|
39
31
|
angle
|
|
40
32
|
}) {
|
|
41
33
|
const _e = [new global.Error(), -2, -27];
|
|
42
|
-
const
|
|
34
|
+
const chunk3GFRSZYRJs1 = function () {
|
|
43
35
|
return {
|
|
44
36
|
transform: [{
|
|
45
37
|
rotate: `${angle.value}deg`
|
|
46
38
|
}]
|
|
47
39
|
};
|
|
48
40
|
};
|
|
49
|
-
|
|
41
|
+
chunk3GFRSZYRJs1.__closure = {
|
|
50
42
|
angle
|
|
51
43
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return
|
|
44
|
+
chunk3GFRSZYRJs1.__workletHash = 6356758416325;
|
|
45
|
+
chunk3GFRSZYRJs1.__pluginVersion = "0.7.4";
|
|
46
|
+
chunk3GFRSZYRJs1.__initData = _worklet_6356758416325_init_data;
|
|
47
|
+
chunk3GFRSZYRJs1.__stackDetails = _e;
|
|
48
|
+
return chunk3GFRSZYRJs1;
|
|
57
49
|
}({
|
|
58
|
-
|
|
50
|
+
_worklet_6356758416325_init_data,
|
|
59
51
|
angle
|
|
60
52
|
}), [angle]);
|
|
61
53
|
}
|
|
62
|
-
export {
|
|
54
|
+
export { usePrevious, ROTATION_DURATION, useRotation };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAAVCMCJ3cjs = require('./chunk-AAVCMCJ3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -35,7 +35,7 @@ var _react = require('react');
|
|
|
35
35
|
var _reactnative = require('react-native');
|
|
36
36
|
|
|
37
37
|
// src/components/chip/chip.context.ts
|
|
38
|
-
var [ChipProvider, useChip] =
|
|
38
|
+
var [ChipProvider, useChip] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Chip");
|
|
39
39
|
|
|
40
40
|
// src/components/chip/chip.style.ts
|
|
41
41
|
|
|
@@ -58,7 +58,7 @@ ChipAvatar.displayName = "XAUI.Chip.Avatar";
|
|
|
58
58
|
var ChipClose = _react.forwardRef.call(void 0, function ChipClose2({ isDisabled, ...props }, ref) {
|
|
59
59
|
const { closeStyle, closeGlyphStyle, isDisabled: isChipDisabled } = useChip();
|
|
60
60
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
61
|
-
|
|
61
|
+
_chunkAAVCMCJ3cjs.CloseButton,
|
|
62
62
|
{
|
|
63
63
|
ref,
|
|
64
64
|
name: "Chip.Close",
|
|
@@ -86,7 +86,7 @@ ChipDot.displayName = "XAUI.Chip.Dot";
|
|
|
86
86
|
|
|
87
87
|
function ChipIcon({ size, color, ...rest }) {
|
|
88
88
|
const { icon } = useChip();
|
|
89
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
89
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
90
90
|
}
|
|
91
91
|
ChipIcon.displayName = "XAUI.Chip.Icon";
|
|
92
92
|
|
|
@@ -242,7 +242,7 @@ var chipRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
242
242
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
243
243
|
// `CloseButton`; what stays below is the box and bar size this component's scale sets.
|
|
244
244
|
base: (theme) => ({
|
|
245
|
-
...
|
|
245
|
+
..._chunkAAVCMCJ3cjs.closeButtonBase.call(void 0, theme),
|
|
246
246
|
root: {
|
|
247
247
|
// A chip hugs its content where a `Button` fills its column. The difference is what
|
|
248
248
|
// the two are: a button is a control the layout sizes, a chip is a token *about*
|
|
@@ -363,7 +363,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
363
363
|
styleProps,
|
|
364
364
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
365
365
|
];
|
|
366
|
-
const text =
|
|
366
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
367
367
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChipLabel, { children: text }) : children;
|
|
368
368
|
if (!isPressable && !asChild && (onPressIn || onPressOut || rest.onPress || rest.onLongPress)) {
|
|
369
369
|
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
@@ -371,7 +371,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
373
|
const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
374
|
-
|
|
374
|
+
_chunkTGMVEHV7cjs.PressableFeedback,
|
|
375
375
|
{
|
|
376
376
|
ref,
|
|
377
377
|
isPressed,
|
|
@@ -390,7 +390,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
390
390
|
// R12 — the caller's element is the chip, so it takes the children it was written
|
|
391
391
|
// with and the auto-wrap does not apply.
|
|
392
392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
393
|
-
|
|
393
|
+
_chunk7GHM4GKLcjs.Slot,
|
|
394
394
|
{
|
|
395
395
|
ref,
|
|
396
396
|
accessibilityRole,
|
|
@@ -5,6 +5,26 @@ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
|
5
5
|
|
|
6
6
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
7
7
|
|
|
8
|
+
// src/system/icon/chevron-down-icon.tsx
|
|
9
|
+
var _reactnativesvg = require('react-native-svg');
|
|
10
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
11
|
+
function ChevronDownIcon({
|
|
12
|
+
size = 20,
|
|
13
|
+
color = "currentColor"
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16
|
+
_reactnativesvg.Path,
|
|
17
|
+
{
|
|
18
|
+
d: "m6 9 6 6 6-6",
|
|
19
|
+
stroke: color,
|
|
20
|
+
strokeWidth: 2,
|
|
21
|
+
strokeLinecap: "round",
|
|
22
|
+
strokeLinejoin: "round"
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
25
|
+
}
|
|
26
|
+
ChevronDownIcon.displayName = "XAUI.ChevronDownIcon";
|
|
27
|
+
|
|
8
28
|
// src/system/icon/icon-context.ts
|
|
9
29
|
var _react = require('react');
|
|
10
30
|
var IconContext = _react.createContext.call(void 0, {});
|
|
@@ -16,7 +36,7 @@ function useIconContext() {
|
|
|
16
36
|
// src/system/icon/icon.tsx
|
|
17
37
|
|
|
18
38
|
var _reactnative = require('react-native');
|
|
19
|
-
|
|
39
|
+
|
|
20
40
|
function Icon(props) {
|
|
21
41
|
const inherited = useIconContext();
|
|
22
42
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
@@ -65,4 +85,5 @@ function IconImage({
|
|
|
65
85
|
|
|
66
86
|
|
|
67
87
|
|
|
68
|
-
|
|
88
|
+
|
|
89
|
+
exports.ChevronDownIcon = ChevronDownIcon; exports.IconContext = IconContext; exports.useIconContext = useIconContext; exports.Icon = Icon;
|
|
@@ -6,14 +6,14 @@ var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
|
|
|
6
6
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -30,7 +30,7 @@ var _react = require('react');
|
|
|
30
30
|
var _reactnative = require('react-native');
|
|
31
31
|
|
|
32
32
|
// src/components/radio/radio.context.ts
|
|
33
|
-
var [RadioProvider, useRadio] =
|
|
33
|
+
var [RadioProvider, useRadio] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Radio");
|
|
34
34
|
|
|
35
35
|
// src/components/radio/radio-indicator.tsx
|
|
36
36
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -246,13 +246,13 @@ var RadioRoot = _react.forwardRef.call(void 0, function Radio({
|
|
|
246
246
|
styleProps,
|
|
247
247
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
248
248
|
];
|
|
249
|
-
const text =
|
|
249
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
250
250
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
251
251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioIndicator, {}),
|
|
252
252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioLabel, { children: text })
|
|
253
253
|
] }) : _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioIndicator, {})));
|
|
254
254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
255
|
-
|
|
255
|
+
_chunkTGMVEHV7cjs.PressableFeedback,
|
|
256
256
|
{
|
|
257
257
|
ref,
|
|
258
258
|
isPressed,
|
|
@@ -37,9 +37,9 @@ function _optionalChain(ops) {
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
40
|
-
var
|
|
40
|
+
var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
|
|
41
41
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
42
|
-
var
|
|
42
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
43
43
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
44
44
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
45
45
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -49,7 +49,7 @@ var _react = require('react');
|
|
|
49
49
|
var _reactnative = require('react-native');
|
|
50
50
|
|
|
51
51
|
// src/components/switch/switch.context.ts
|
|
52
|
-
var [SwitchProvider, useSwitch] =
|
|
52
|
+
var [SwitchProvider, useSwitch] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Switch");
|
|
53
53
|
|
|
54
54
|
// src/components/switch/switch-label.tsx
|
|
55
55
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -120,15 +120,15 @@ var SwitchThumb = _react.forwardRef.call(void 0, function SwitchThumb2({
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
123
|
-
const
|
|
124
|
-
code: "function
|
|
125
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
126
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
123
|
+
const _worklet_10188758397223_init_data = {
|
|
124
|
+
code: "function chunk54CWXA34Cjs1(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
125
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
126
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs1\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AA4FuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
127
127
|
};
|
|
128
|
-
const
|
|
129
|
-
code: "function
|
|
130
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
131
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
128
|
+
const _worklet_1357571651117_init_data = {
|
|
129
|
+
code: "function chunk54CWXA34Cjs2(){const{progress,distance,_reactnativereanimated,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
130
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
131
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs2\",\"progress\",\"distance\",\"_reactnativereanimated\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"interpolateColor\",\"call\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AAgG6E,SAAAA,iBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,sBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,sBAAsB,CAACO,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEV,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACQ,GAAG,CAAER,MAAM,CAACS,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
132
132
|
};
|
|
133
133
|
var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
134
134
|
style,
|
|
@@ -138,43 +138,43 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
138
138
|
children,
|
|
139
139
|
...rest
|
|
140
140
|
}, ref) {
|
|
141
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
142
|
-
|
|
141
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunk54CWXA34Cjs1Factory({
|
|
142
|
+
_worklet_10188758397223_init_data,
|
|
143
143
|
_reactnativereanimated,
|
|
144
144
|
isSelected,
|
|
145
145
|
SWITCH_DURATION
|
|
146
146
|
}) {
|
|
147
147
|
const _e = [new global.Error(), -4, -27];
|
|
148
|
-
const
|
|
148
|
+
const chunk54CWXA34Cjs1 = function () {
|
|
149
149
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
150
150
|
duration: SWITCH_DURATION
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
chunk54CWXA34Cjs1.__closure = {
|
|
154
154
|
_reactnativereanimated,
|
|
155
155
|
isSelected,
|
|
156
156
|
SWITCH_DURATION
|
|
157
157
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return
|
|
158
|
+
chunk54CWXA34Cjs1.__workletHash = 10188758397223;
|
|
159
|
+
chunk54CWXA34Cjs1.__pluginVersion = "0.7.4";
|
|
160
|
+
chunk54CWXA34Cjs1.__initData = _worklet_10188758397223_init_data;
|
|
161
|
+
chunk54CWXA34Cjs1.__stackDetails = _e;
|
|
162
|
+
return chunk54CWXA34Cjs1;
|
|
163
163
|
}({
|
|
164
|
-
|
|
164
|
+
_worklet_10188758397223_init_data,
|
|
165
165
|
_reactnativereanimated,
|
|
166
166
|
isSelected,
|
|
167
167
|
SWITCH_DURATION
|
|
168
168
|
}), [isSelected]);
|
|
169
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
170
|
-
|
|
169
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk54CWXA34Cjs2Factory({
|
|
170
|
+
_worklet_1357571651117_init_data,
|
|
171
171
|
progress,
|
|
172
172
|
distance,
|
|
173
173
|
_reactnativereanimated,
|
|
174
174
|
colors
|
|
175
175
|
}) {
|
|
176
176
|
const _e = [new global.Error(), -5, -27];
|
|
177
|
-
const
|
|
177
|
+
const chunk54CWXA34Cjs2 = function () {
|
|
178
178
|
return {
|
|
179
179
|
transform: [{
|
|
180
180
|
translateX: progress.value * distance
|
|
@@ -182,19 +182,19 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
182
182
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
chunk54CWXA34Cjs2.__closure = {
|
|
186
186
|
progress,
|
|
187
187
|
distance,
|
|
188
188
|
_reactnativereanimated,
|
|
189
189
|
colors
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return
|
|
191
|
+
chunk54CWXA34Cjs2.__workletHash = 1357571651117;
|
|
192
|
+
chunk54CWXA34Cjs2.__pluginVersion = "0.7.4";
|
|
193
|
+
chunk54CWXA34Cjs2.__initData = _worklet_1357571651117_init_data;
|
|
194
|
+
chunk54CWXA34Cjs2.__stackDetails = _e;
|
|
195
|
+
return chunk54CWXA34Cjs2;
|
|
196
196
|
}({
|
|
197
|
-
|
|
197
|
+
_worklet_1357571651117_init_data,
|
|
198
198
|
progress,
|
|
199
199
|
distance,
|
|
200
200
|
_reactnativereanimated,
|
|
@@ -243,15 +243,15 @@ var SwitchTrack = _react.forwardRef.call(void 0, function SwitchTrack2({
|
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
245
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
246
|
-
const
|
|
247
|
-
code: "function
|
|
248
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
249
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
246
|
+
const _worklet_9748710936549_init_data = {
|
|
247
|
+
code: "function chunk54CWXA34Cjs3(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
248
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
249
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs3\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AAqJuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
250
250
|
};
|
|
251
|
-
const
|
|
252
|
-
code: "function
|
|
253
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
254
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
251
|
+
const _worklet_674634344651_init_data = {
|
|
252
|
+
code: "function chunk54CWXA34Cjs4(){const{_reactnativereanimated,progress,colors}=this.__closure;return{backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
253
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs",
|
|
254
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk54CWXA34Cjs4\",\"_reactnativereanimated\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"interpolateColor\",\"call\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-54CWXA34.cjs\"],\"mappings\":\"AAyJ6E,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,eAAe,CAAEJ,sBAAsB,CAACK,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEL,QAAQ,CAACM,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACL,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
255
255
|
};
|
|
256
256
|
var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2({
|
|
257
257
|
style,
|
|
@@ -260,58 +260,58 @@ var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2
|
|
|
260
260
|
children,
|
|
261
261
|
...rest
|
|
262
262
|
}, ref) {
|
|
263
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
264
|
-
|
|
263
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunk54CWXA34Cjs3Factory({
|
|
264
|
+
_worklet_9748710936549_init_data,
|
|
265
265
|
_reactnativereanimated,
|
|
266
266
|
isSelected,
|
|
267
267
|
SWITCH_DURATION
|
|
268
268
|
}) {
|
|
269
269
|
const _e = [new global.Error(), -4, -27];
|
|
270
|
-
const
|
|
270
|
+
const chunk54CWXA34Cjs3 = function () {
|
|
271
271
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
272
272
|
duration: SWITCH_DURATION
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
chunk54CWXA34Cjs3.__closure = {
|
|
276
276
|
_reactnativereanimated,
|
|
277
277
|
isSelected,
|
|
278
278
|
SWITCH_DURATION
|
|
279
279
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
return
|
|
280
|
+
chunk54CWXA34Cjs3.__workletHash = 9748710936549;
|
|
281
|
+
chunk54CWXA34Cjs3.__pluginVersion = "0.7.4";
|
|
282
|
+
chunk54CWXA34Cjs3.__initData = _worklet_9748710936549_init_data;
|
|
283
|
+
chunk54CWXA34Cjs3.__stackDetails = _e;
|
|
284
|
+
return chunk54CWXA34Cjs3;
|
|
285
285
|
}({
|
|
286
|
-
|
|
286
|
+
_worklet_9748710936549_init_data,
|
|
287
287
|
_reactnativereanimated,
|
|
288
288
|
isSelected,
|
|
289
289
|
SWITCH_DURATION
|
|
290
290
|
}), [isSelected]);
|
|
291
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
292
|
-
|
|
291
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk54CWXA34Cjs4Factory({
|
|
292
|
+
_worklet_674634344651_init_data,
|
|
293
293
|
_reactnativereanimated,
|
|
294
294
|
progress,
|
|
295
295
|
colors
|
|
296
296
|
}) {
|
|
297
297
|
const _e = [new global.Error(), -4, -27];
|
|
298
|
-
const
|
|
298
|
+
const chunk54CWXA34Cjs4 = function () {
|
|
299
299
|
return {
|
|
300
300
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
|
|
303
|
+
chunk54CWXA34Cjs4.__closure = {
|
|
304
304
|
_reactnativereanimated,
|
|
305
305
|
progress,
|
|
306
306
|
colors
|
|
307
307
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return
|
|
308
|
+
chunk54CWXA34Cjs4.__workletHash = 674634344651;
|
|
309
|
+
chunk54CWXA34Cjs4.__pluginVersion = "0.7.4";
|
|
310
|
+
chunk54CWXA34Cjs4.__initData = _worklet_674634344651_init_data;
|
|
311
|
+
chunk54CWXA34Cjs4.__stackDetails = _e;
|
|
312
|
+
return chunk54CWXA34Cjs4;
|
|
313
313
|
}({
|
|
314
|
-
|
|
314
|
+
_worklet_674634344651_init_data,
|
|
315
315
|
_reactnativereanimated,
|
|
316
316
|
progress,
|
|
317
317
|
colors
|
|
@@ -638,7 +638,7 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
638
638
|
const rootStyle = [styles.root, styleProps, typeof style === "function" ? style({
|
|
639
639
|
pressed: isPressed
|
|
640
640
|
}) : style];
|
|
641
|
-
const text =
|
|
641
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
642
642
|
const content = text !== null ? /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
|
|
643
643
|
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchTrack, {
|
|
644
644
|
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchThumb, {})
|
|
@@ -650,7 +650,7 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
650
650
|
})));
|
|
651
651
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchProvider, {
|
|
652
652
|
value: context,
|
|
653
|
-
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
653
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkTGMVEHV7cjs.PressableFeedback, {
|
|
654
654
|
ref,
|
|
655
655
|
isPressed,
|
|
656
656
|
isDisabled,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAAVCMCJ3cjs = require('./chunk-AAVCMCJ3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -25,14 +25,14 @@ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
|
25
25
|
var _react = require('react');
|
|
26
26
|
|
|
27
27
|
// src/components/alert/alert.context.ts
|
|
28
|
-
var [AlertProvider, useAlert] =
|
|
28
|
+
var [AlertProvider, useAlert] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Alert");
|
|
29
29
|
|
|
30
30
|
// src/components/alert/alert-close.tsx
|
|
31
31
|
var _jsxruntime = require('react/jsx-runtime');
|
|
32
32
|
var AlertClose = _react.forwardRef.call(void 0, function AlertClose2({ isDisabled, ...props }, ref) {
|
|
33
33
|
const { closeStyle, closeGlyphStyle, isDisabled: isAlertDisabled } = useAlert();
|
|
34
34
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35
|
-
|
|
35
|
+
_chunkAAVCMCJ3cjs.CloseButton,
|
|
36
36
|
{
|
|
37
37
|
ref,
|
|
38
38
|
name: "Alert.Close",
|
|
@@ -80,7 +80,7 @@ var AlertIcon = _react.forwardRef.call(void 0, function AlertIcon2({ as, childre
|
|
|
80
80
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
81
81
|
const glyphSize = _nullishCoalesce(size, () => ( icon.size));
|
|
82
82
|
const glyphColor = _nullishCoalesce(color, () => ( icon.color));
|
|
83
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [iconStyle, styleProps, style], ...rest, children: as ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [iconStyle, styleProps, style], ...rest, children: as ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { as, size: glyphSize, color: glyphColor }) : source ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { source, size: glyphSize, color: glyphColor }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { size: glyphSize, color: glyphColor, children }) });
|
|
84
84
|
});
|
|
85
85
|
AlertIcon.displayName = "XAUI.Alert.Icon";
|
|
86
86
|
|
|
@@ -194,7 +194,7 @@ var alertRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
194
194
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
195
195
|
// `CloseButton`; what stays below is the box and bar size this component's scale sets.
|
|
196
196
|
base: (theme) => ({
|
|
197
|
-
...
|
|
197
|
+
..._chunkAAVCMCJ3cjs.closeButtonBase.call(void 0, theme),
|
|
198
198
|
root: {
|
|
199
199
|
flexDirection: "row",
|
|
200
200
|
// Top-aligned, not centred: an alert's message can run to three lines, and an icon
|
|
@@ -319,13 +319,13 @@ var AlertRoot = _react.forwardRef.call(void 0, function Alert({
|
|
|
319
319
|
};
|
|
320
320
|
}, [styles, tint, isDisabled]);
|
|
321
321
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _2 => _2.root]), styleProps, style];
|
|
322
|
-
const text =
|
|
322
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
323
323
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: text }) : children;
|
|
324
324
|
const surface = asChild ? (
|
|
325
325
|
// R12 — the caller's element *is* the alert, so it takes the children it was written
|
|
326
326
|
// with and the auto-wrap does not apply.
|
|
327
327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
-
|
|
328
|
+
_chunk7GHM4GKLcjs.Slot,
|
|
329
329
|
{
|
|
330
330
|
ref,
|
|
331
331
|
accessibilityRole,
|