@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
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
function _interopRequireDefault(obj) {
|
|
7
|
+
return obj && obj.__esModule ? obj : {
|
|
8
|
+
default: obj
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function _optionalChain(ops) {
|
|
12
|
+
let lastAccessLHS = undefined;
|
|
13
|
+
let value = ops[0];
|
|
14
|
+
let i = 1;
|
|
15
|
+
while (i < ops.length) {
|
|
16
|
+
const op = ops[i];
|
|
17
|
+
const fn = ops[i + 1];
|
|
18
|
+
i += 2;
|
|
19
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
23
|
+
lastAccessLHS = value;
|
|
24
|
+
value = fn(value);
|
|
25
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
26
|
+
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
27
|
+
lastAccessLHS = undefined;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
33
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
34
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
35
|
+
|
|
36
|
+
// src/components/skeleton/skeleton.tsx
|
|
37
|
+
var _react = require('react');
|
|
38
|
+
var _reactnative = require('react-native');
|
|
39
|
+
var _reactnativereanimated = require('react-native-reanimated');
|
|
40
|
+
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
41
|
+
|
|
42
|
+
// src/components/skeleton/skeleton.recipe.ts
|
|
43
|
+
var SLOTS = ["root"];
|
|
44
|
+
var VARIANT_TOKENS = {
|
|
45
|
+
default: {
|
|
46
|
+
bg: "default"
|
|
47
|
+
},
|
|
48
|
+
secondary: {
|
|
49
|
+
bg: "defaultSoft"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var skeletonRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
53
|
+
slots: SLOTS,
|
|
54
|
+
base: () => ({
|
|
55
|
+
// Squircle corners, free on Android and what keeps a `full` radius from reading as a
|
|
56
|
+
// stadium at small sizes. Nothing else: a skeleton has no size of its own — see the
|
|
57
|
+
// component for why R14 is the whole sizing API here.
|
|
58
|
+
root: {
|
|
59
|
+
borderCurve: "continuous"
|
|
60
|
+
}
|
|
61
|
+
}),
|
|
62
|
+
variantTokens: VARIANT_TOKENS,
|
|
63
|
+
paint: (_theme, colors) => ({
|
|
64
|
+
root: {
|
|
65
|
+
backgroundColor: colors.bg
|
|
66
|
+
}
|
|
67
|
+
}),
|
|
68
|
+
variants: {
|
|
69
|
+
radius: _chunkFNEUOBCVcjs.radiusAxis.call(void 0, "root")
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* `md` is the block, and `full` is what an avatar placeholder passes. There is no `size`
|
|
73
|
+
* default because there is no `size`: the caller gives the block its dimensions with
|
|
74
|
+
* R14's `width` and `height`, because only they know the shape of the thing that is
|
|
75
|
+
* missing.
|
|
76
|
+
*/
|
|
77
|
+
defaultVariants: {
|
|
78
|
+
variant: "default",
|
|
79
|
+
radius: "md"
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// src/components/skeleton/skeleton.tsx
|
|
84
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
85
|
+
var PULSE_DURATION = 1e3;
|
|
86
|
+
var PULSE_MIN_OPACITY = 0.5;
|
|
87
|
+
var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
|
|
88
|
+
variant,
|
|
89
|
+
radius,
|
|
90
|
+
color,
|
|
91
|
+
isLoading = true,
|
|
92
|
+
animation = true,
|
|
93
|
+
children,
|
|
94
|
+
style,
|
|
95
|
+
...props
|
|
96
|
+
}, ref) {
|
|
97
|
+
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
|
|
98
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
99
|
+
const selection = {
|
|
100
|
+
variant,
|
|
101
|
+
radius
|
|
102
|
+
};
|
|
103
|
+
const styles = skeletonRecipe.resolve({
|
|
104
|
+
theme,
|
|
105
|
+
selection
|
|
106
|
+
});
|
|
107
|
+
const tint = color ? skeletonRecipe.tint({
|
|
108
|
+
theme,
|
|
109
|
+
color,
|
|
110
|
+
selection
|
|
111
|
+
}) : void 0;
|
|
112
|
+
if (!isLoading) return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {
|
|
113
|
+
children
|
|
114
|
+
});
|
|
115
|
+
const blockProps = {
|
|
116
|
+
// A block stands in for content that is not there. Announcing its absence is `busy`
|
|
117
|
+
// on whatever region is loading, not a stop on each rectangle. Both stay overridable
|
|
118
|
+
// (R9) for the caller whose skeleton really is the whole screen.
|
|
119
|
+
accessibilityElementsHidden: true,
|
|
120
|
+
importantForAccessibility: "no-hide-descendants",
|
|
121
|
+
...rest
|
|
122
|
+
};
|
|
123
|
+
const blockStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), styleProps, style];
|
|
124
|
+
if (!animation) return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
125
|
+
ref,
|
|
126
|
+
...blockProps,
|
|
127
|
+
style: blockStyle
|
|
128
|
+
});
|
|
129
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, PulsingBlock, {
|
|
130
|
+
ref,
|
|
131
|
+
...blockProps,
|
|
132
|
+
style: blockStyle
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
Skeleton.displayName = "XAUI.Skeleton";
|
|
136
|
+
const _worklet_17116227144085_init_data = {
|
|
137
|
+
code: "function chunkLT6XHFXJCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
138
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-LT6XHFXJ.cjs",
|
|
139
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkLT6XHFXJCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-LT6XHFXJ.cjs\"],\"mappings\":\"AAiG+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
140
|
+
};
|
|
141
|
+
var PulsingBlock = _react.forwardRef.call(void 0, function PulsingBlock2({
|
|
142
|
+
style,
|
|
143
|
+
...props
|
|
144
|
+
}, ref) {
|
|
145
|
+
const opacity = _reactnativereanimated.useSharedValue.call(void 0, 1);
|
|
146
|
+
_react.useEffect.call(void 0, () => {
|
|
147
|
+
opacity.value = _reactnativereanimated.withRepeat.call(void 0, _reactnativereanimated.withTiming.call(void 0, PULSE_MIN_OPACITY, {
|
|
148
|
+
duration: PULSE_DURATION,
|
|
149
|
+
easing: _reactnativereanimated.Easing.inOut(_reactnativereanimated.Easing.ease)
|
|
150
|
+
}), -1,
|
|
151
|
+
// Reversed, so the block breathes rather than snapping back to full at each turn.
|
|
152
|
+
true);
|
|
153
|
+
return () => _reactnativereanimated.cancelAnimation.call(void 0, opacity);
|
|
154
|
+
}, [opacity]);
|
|
155
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkLT6XHFXJCjs1Factory({
|
|
156
|
+
_worklet_17116227144085_init_data,
|
|
157
|
+
opacity
|
|
158
|
+
}) {
|
|
159
|
+
const _e = [new global.Error(), -2, -27];
|
|
160
|
+
const chunkLT6XHFXJCjs1 = function () {
|
|
161
|
+
return {
|
|
162
|
+
opacity: opacity.value
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
chunkLT6XHFXJCjs1.__closure = {
|
|
166
|
+
opacity
|
|
167
|
+
};
|
|
168
|
+
chunkLT6XHFXJCjs1.__workletHash = 17116227144085;
|
|
169
|
+
chunkLT6XHFXJCjs1.__pluginVersion = "0.7.4";
|
|
170
|
+
chunkLT6XHFXJCjs1.__initData = _worklet_17116227144085_init_data;
|
|
171
|
+
chunkLT6XHFXJCjs1.__stackDetails = _e;
|
|
172
|
+
return chunkLT6XHFXJCjs1;
|
|
173
|
+
}({
|
|
174
|
+
_worklet_17116227144085_init_data,
|
|
175
|
+
opacity
|
|
176
|
+
}), [opacity]);
|
|
177
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
178
|
+
ref,
|
|
179
|
+
...props,
|
|
180
|
+
style: [style, animatedStyle]
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
PulsingBlock.displayName = "XAUI.Skeleton.Block";
|
|
184
|
+
exports.skeletonRecipe = skeletonRecipe;
|
|
185
|
+
exports.Skeleton = Skeleton;
|
|
@@ -2,16 +2,6 @@ import {
|
|
|
2
2
|
stableHash
|
|
3
3
|
} from "./chunk-GGW42MY4.js";
|
|
4
4
|
|
|
5
|
-
// src/system/slot/merge-refs.ts
|
|
6
|
-
function mergeRefs(...refs) {
|
|
7
|
-
return (value) => {
|
|
8
|
-
for (const ref of refs) {
|
|
9
|
-
if (typeof ref === "function") ref(value);
|
|
10
|
-
else if (ref) ref.current = value;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
5
|
// src/system/style-props/use-style-props.ts
|
|
16
6
|
import { useMemo } from "react";
|
|
17
7
|
|
|
@@ -185,6 +175,5 @@ function useStyleProps(props) {
|
|
|
185
175
|
}
|
|
186
176
|
|
|
187
177
|
export {
|
|
188
|
-
mergeRefs,
|
|
189
178
|
useStyleProps
|
|
190
179
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InputField,
|
|
3
3
|
useInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L55CDXNI.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WJPQARJ5.js";
|
|
8
8
|
import {
|
|
9
9
|
Slot,
|
|
10
10
|
createSlotContext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YXPYOOHU.js";
|
|
12
12
|
import {
|
|
13
13
|
useStyleProps
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MEYCZS32.js";
|
|
15
15
|
|
|
16
16
|
// src/components/input-group/input-group-field.tsx
|
|
17
17
|
import { forwardRef, useMemo } from "react";
|
|
@@ -3,41 +3,41 @@
|
|
|
3
3
|
var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk6M7RUU7Vcjs = require('./chunk-6M7RUU7V.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
20
19
|
|
|
20
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
27
27
|
|
|
28
28
|
// src/components/radio/radio-indicator.tsx
|
|
29
29
|
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] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "Radio");
|
|
34
34
|
|
|
35
35
|
// src/components/radio/radio-indicator.tsx
|
|
36
36
|
var _jsxruntime = require('react/jsx-runtime');
|
|
37
37
|
var RadioIndicator = _react.forwardRef.call(void 0,
|
|
38
38
|
function RadioIndicator2({ children, animation = true, style, ...props }, ref) {
|
|
39
39
|
const { indicatorStyle, fillStyle, isSelected } = useRadio();
|
|
40
|
-
const [styleProps, rest] =
|
|
40
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
41
41
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: [indicatorStyle, styleProps, style], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42
42
|
_chunkF6CQ6CBIcjs.SelectionFill,
|
|
43
43
|
{
|
|
@@ -61,7 +61,7 @@ function Thumb() {
|
|
|
61
61
|
|
|
62
62
|
var RadioLabel = _react.forwardRef.call(void 0, function RadioLabel2({ children, style, ...props }, ref) {
|
|
63
63
|
const { labelStyle } = useRadio();
|
|
64
|
-
const [styleProps, rest] =
|
|
64
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
65
65
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [labelStyle, styleProps, style], ...rest, children });
|
|
66
66
|
});
|
|
67
67
|
RadioLabel.displayName = "XAUI.Radio.Label";
|
|
@@ -203,7 +203,7 @@ var RadioRoot = _react.forwardRef.call(void 0, function Radio({
|
|
|
203
203
|
...props
|
|
204
204
|
}, ref) {
|
|
205
205
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
206
|
-
const [styleProps, rest] =
|
|
206
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
207
207
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
208
208
|
const [selected, setSelected] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
209
209
|
value: isSelected,
|
|
@@ -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 = _chunk54FJOKANcjs.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
|
+
_chunk6M7RUU7Vcjs.PressableFeedback,
|
|
256
256
|
{
|
|
257
257
|
ref,
|
|
258
258
|
isPressed,
|
|
@@ -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/radio/radio-indicator.tsx
|
|
29
29
|
import { forwardRef } from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Slot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YXPYOOHU.js";
|
|
4
4
|
import {
|
|
5
5
|
useStyleProps
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MEYCZS32.js";
|
|
7
7
|
|
|
8
8
|
// src/components/view/grid.tsx
|
|
9
9
|
import { Children, forwardRef, useMemo, useState } from "react";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRotation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PPWXLZGL.js";
|
|
4
4
|
import {
|
|
5
5
|
createRecipe
|
|
6
6
|
} from "./chunk-4GTAZM2C.js";
|
|
7
|
+
import {
|
|
8
|
+
useStyleProps
|
|
9
|
+
} from "./chunk-MEYCZS32.js";
|
|
7
10
|
import {
|
|
8
11
|
alpha,
|
|
9
12
|
useXAUITheme
|
|
10
13
|
} from "./chunk-A3EGFI6T.js";
|
|
11
|
-
import {
|
|
12
|
-
useStyleProps
|
|
13
|
-
} from "./chunk-URSKA2VR.js";
|
|
14
14
|
|
|
15
15
|
// src/components/spinner/spinner.tsx
|
|
16
16
|
import { forwardRef } from "react";
|