@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
|
@@ -4,21 +4,25 @@
|
|
|
4
4
|
var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
7
8
|
|
|
8
|
-
var _chunk7B3UBUC6cjs = require('./chunk-7B3UBUC6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var _chunkDRMT346Wcjs = require('./chunk-DRMT346W.cjs');
|
|
12
11
|
|
|
12
|
+
var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
|
|
15
19
|
|
|
16
20
|
|
|
21
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
17
22
|
|
|
18
|
-
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
19
23
|
|
|
20
24
|
|
|
21
|
-
var
|
|
25
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
22
26
|
|
|
23
27
|
|
|
24
28
|
|
|
@@ -36,8 +40,8 @@ var _reactnative = require('react-native');
|
|
|
36
40
|
var _reactnativereanimated = require('react-native-reanimated'); var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
37
41
|
|
|
38
42
|
// src/components/select/select.context.ts
|
|
39
|
-
var [SelectProvider, useSelect] =
|
|
40
|
-
var [SelectItemProvider, useSelectItem] =
|
|
43
|
+
var [SelectProvider, useSelect] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Select");
|
|
44
|
+
var [SelectItemProvider, useSelectItem] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "Select.Item");
|
|
41
45
|
|
|
42
46
|
// src/components/select/select.animation.ts
|
|
43
47
|
|
|
@@ -134,7 +138,7 @@ var SelectItem = _react.forwardRef.call(void 0, function SelectItem2({
|
|
|
134
138
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
135
139
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
136
140
|
const isSelected = selected === value;
|
|
137
|
-
const text = typeof children === "function" ? null :
|
|
141
|
+
const text = typeof children === "function" ? null : _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
138
142
|
const registered = _nullishCoalesce(_nullishCoalesce(label, () => ( text)), () => ( void 0));
|
|
139
143
|
_react.useEffect.call(void 0, () => {
|
|
140
144
|
if (registered !== void 0) registerLabel(value, registered);
|
|
@@ -151,7 +155,7 @@ var SelectItem = _react.forwardRef.call(void 0, function SelectItem2({
|
|
|
151
155
|
[isSelected, isPressed, isDisabled]
|
|
152
156
|
);
|
|
153
157
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItemProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
154
|
-
|
|
158
|
+
_chunkTGMVEHV7cjs.PressableFeedback,
|
|
155
159
|
{
|
|
156
160
|
ref,
|
|
157
161
|
isPressed,
|
|
@@ -227,7 +231,7 @@ function collectItemLabels(children, isItem) {
|
|
|
227
231
|
if (!_react.isValidElement.call(void 0, child)) return;
|
|
228
232
|
const props = child.props;
|
|
229
233
|
if (isItem(child.type) && typeof props.value === "string") {
|
|
230
|
-
const label = _nullishCoalesce(props.label, () => (
|
|
234
|
+
const label = _nullishCoalesce(props.label, () => ( _chunk7GHM4GKLcjs.childrenToString.call(void 0, props.children)));
|
|
231
235
|
if (label !== null && label !== void 0) found.push([props.value, label]);
|
|
232
236
|
return;
|
|
233
237
|
}
|
|
@@ -347,30 +351,8 @@ SelectContent.displayName = "XAUI.Select.Content";
|
|
|
347
351
|
|
|
348
352
|
|
|
349
353
|
|
|
350
|
-
// src/components/select/chevron-down-icon.tsx
|
|
351
|
-
var _reactnativesvg = require('react-native-svg');
|
|
352
|
-
|
|
353
|
-
function ChevronDownIcon({
|
|
354
|
-
size = 20,
|
|
355
|
-
color = "currentColor"
|
|
356
|
-
}) {
|
|
357
|
-
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,
|
|
358
|
-
_reactnativesvg.Path,
|
|
359
|
-
{
|
|
360
|
-
d: "m6 9 6 6 6-6",
|
|
361
|
-
stroke: color,
|
|
362
|
-
strokeWidth: 2,
|
|
363
|
-
strokeLinecap: "round",
|
|
364
|
-
strokeLinejoin: "round"
|
|
365
|
-
}
|
|
366
|
-
) });
|
|
367
|
-
}
|
|
368
|
-
ChevronDownIcon.displayName = "XAUI.Select.ChevronDownIcon";
|
|
369
|
-
|
|
370
|
-
// src/components/select/select-indicator.tsx
|
|
371
|
-
|
|
372
354
|
function SelectIndicator({
|
|
373
|
-
as = ChevronDownIcon,
|
|
355
|
+
as = _chunk4KFKWBN5cjs.ChevronDownIcon,
|
|
374
356
|
...props
|
|
375
357
|
}) {
|
|
376
358
|
const { indicatorStyle, isOpen } = useSelect();
|
|
@@ -385,7 +367,7 @@ function SelectIndicator({
|
|
|
385
367
|
}
|
|
386
368
|
]
|
|
387
369
|
}));
|
|
388
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { style: [indicatorStyle, rotation], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
370
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { style: [indicatorStyle, rotation], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { as, ...props }) });
|
|
389
371
|
}
|
|
390
372
|
SelectIndicator.displayName = "XAUI.Select.Indicator";
|
|
391
373
|
|
|
@@ -406,7 +388,7 @@ SelectItemDescription.displayName = "XAUI.Select.ItemDescription";
|
|
|
406
388
|
|
|
407
389
|
|
|
408
390
|
// src/components/select/check-icon.tsx
|
|
409
|
-
|
|
391
|
+
var _reactnativesvg = require('react-native-svg');
|
|
410
392
|
|
|
411
393
|
function CheckIcon({
|
|
412
394
|
size = 20,
|
|
@@ -434,7 +416,7 @@ function SelectItemIndicator({
|
|
|
434
416
|
}) {
|
|
435
417
|
const { itemIndicatorStyle, checkColor } = useSelect();
|
|
436
418
|
const { isSelected } = useSelectItem();
|
|
437
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: itemIndicatorStyle, children: isSelected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
419
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: itemIndicatorStyle, children: isSelected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { as, color: _nullishCoalesce(color, () => ( checkColor)), ...props }) : null });
|
|
438
420
|
}
|
|
439
421
|
SelectItemIndicator.displayName = "XAUI.Select.ItemIndicator";
|
|
440
422
|
|
|
@@ -517,7 +499,7 @@ var SelectTrigger = _react.forwardRef.call(void 0,
|
|
|
517
499
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
518
500
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
519
501
|
const node = _react.useRef.call(void 0, null);
|
|
520
|
-
const refs =
|
|
502
|
+
const refs = _chunkWFEMJCXOcjs.useMergedRef.call(void 0, node, ref);
|
|
521
503
|
const measure = _react.useCallback.call(void 0, () => {
|
|
522
504
|
_optionalChain([node, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.measureInWindow, 'call', _7 => _7((x, y, width, height) => {
|
|
523
505
|
setAnchor({ x, y, width, height });
|
|
@@ -541,8 +523,8 @@ var SelectTrigger = _react.forwardRef.call(void 0,
|
|
|
541
523
|
},
|
|
542
524
|
[measure, onPress, toggle]
|
|
543
525
|
);
|
|
544
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
545
|
-
|
|
526
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
527
|
+
_chunkTGMVEHV7cjs.PressableFeedback,
|
|
546
528
|
{
|
|
547
529
|
ref: refs,
|
|
548
530
|
isPressed,
|
|
@@ -601,22 +583,6 @@ SelectValue.displayName = "XAUI.Select.Value";
|
|
|
601
583
|
|
|
602
584
|
// src/components/select/select.hook.ts
|
|
603
585
|
|
|
604
|
-
function useControllableState({
|
|
605
|
-
value,
|
|
606
|
-
defaultValue,
|
|
607
|
-
onChange
|
|
608
|
-
}) {
|
|
609
|
-
const isControlled = _react.useRef.call(void 0, value !== void 0).current;
|
|
610
|
-
const [uncontrolled, setUncontrolled] = _react.useState.call(void 0, defaultValue);
|
|
611
|
-
const set = _react.useCallback.call(void 0,
|
|
612
|
-
(next) => {
|
|
613
|
-
if (!isControlled) setUncontrolled(next);
|
|
614
|
-
_optionalChain([onChange, 'optionalCall', _10 => _10(next)]);
|
|
615
|
-
},
|
|
616
|
-
[isControlled, onChange]
|
|
617
|
-
);
|
|
618
|
-
return [isControlled ? value : uncontrolled, set];
|
|
619
|
-
}
|
|
620
586
|
function useLabelRegistry() {
|
|
621
587
|
const labels = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
622
588
|
const [, force] = _react.useState.call(void 0, 0);
|
|
@@ -869,12 +835,12 @@ function Select({
|
|
|
869
835
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
870
836
|
const { labelFor, registerLabel } = useLabelRegistry();
|
|
871
837
|
const [anchor, setAnchor] = _react.useState.call(void 0, null);
|
|
872
|
-
const [value, setValue] = useControllableState({
|
|
838
|
+
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
873
839
|
value: controlledValue,
|
|
874
840
|
defaultValue,
|
|
875
841
|
onChange: onValueChange
|
|
876
842
|
});
|
|
877
|
-
const [isOpen
|
|
843
|
+
const [isOpen, setOpen] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
878
844
|
value: controlledOpen,
|
|
879
845
|
defaultValue: defaultOpen,
|
|
880
846
|
onChange: onOpenChange
|
|
@@ -911,7 +877,7 @@ function Select({
|
|
|
911
877
|
const context = _react.useMemo.call(void 0, () => {
|
|
912
878
|
const indicator = _reactnative.StyleSheet.flatten([
|
|
913
879
|
styles.indicator,
|
|
914
|
-
_optionalChain([tint, 'optionalAccess',
|
|
880
|
+
_optionalChain([tint, 'optionalAccess', _10 => _10.indicator])
|
|
915
881
|
]);
|
|
916
882
|
const itemLabel = _reactnative.StyleSheet.flatten([styles.itemLabel]);
|
|
917
883
|
const tintedPlaceholder = tint ? _reactnative.StyleSheet.flatten([tint.value]).color : void 0;
|
|
@@ -1002,5 +968,4 @@ var Select2 = Object.assign(Select, {
|
|
|
1002
968
|
|
|
1003
969
|
|
|
1004
970
|
|
|
1005
|
-
|
|
1006
|
-
exports.useSelect = useSelect; exports.useSelectItem = useSelectItem; exports.SelectItemLabel = SelectItemLabel; exports.SelectItem = SelectItem; exports.SelectContent = SelectContent; exports.ChevronDownIcon = ChevronDownIcon; exports.SelectIndicator = SelectIndicator; exports.SelectItemDescription = SelectItemDescription; exports.CheckIcon = CheckIcon; exports.SelectItemIndicator = SelectItemIndicator; exports.SelectLabel = SelectLabel; exports.SelectOverlay = SelectOverlay; exports.SelectTrigger = SelectTrigger; exports.SelectValue = SelectValue; exports.selectRecipe = selectRecipe; exports.Select = Select; exports.Select2 = Select2;
|
|
971
|
+
exports.useSelect = useSelect; exports.useSelectItem = useSelectItem; exports.SelectItemLabel = SelectItemLabel; exports.SelectItem = SelectItem; exports.SelectContent = SelectContent; exports.SelectIndicator = SelectIndicator; exports.SelectItemDescription = SelectItemDescription; exports.CheckIcon = CheckIcon; exports.SelectItemIndicator = SelectItemIndicator; exports.SelectLabel = SelectLabel; exports.SelectOverlay = SelectOverlay; exports.SelectTrigger = SelectTrigger; exports.SelectValue = SelectValue; exports.selectRecipe = selectRecipe; exports.Select = Select; exports.Select2 = Select2;
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -175,10 +175,10 @@ var Badge = _react.forwardRef.call(void 0, function Badge2({
|
|
|
175
175
|
[placement, theme, resolvedSize, isDot]
|
|
176
176
|
);
|
|
177
177
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), insets, styleProps, style];
|
|
178
|
-
const text =
|
|
178
|
+
const text = _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
|
|
179
179
|
const label = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles.label, _optionalChain([tint, 'optionalAccess', _2 => _2.label])], numberOfLines: 1, children: text }) : children;
|
|
180
180
|
const content = isDot ? null : label;
|
|
181
|
-
const Root = asChild ?
|
|
181
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.Slot : _reactnative.View;
|
|
182
182
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
183
183
|
Root,
|
|
184
184
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkA7YB7YWXcjs = require('./chunk-A7YB7YWX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -17,7 +17,7 @@ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
|
17
17
|
var _react = require('react');
|
|
18
18
|
|
|
19
19
|
// src/components/field-group/field-group.context.ts
|
|
20
|
-
var [FieldGroupProvider, useFieldGroup] =
|
|
20
|
+
var [FieldGroupProvider, useFieldGroup] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "FieldGroup");
|
|
21
21
|
|
|
22
22
|
// src/components/field-group/field-group.utils.ts
|
|
23
23
|
function decoratorPadding(prefixWidth, suffixWidth) {
|
|
@@ -36,7 +36,7 @@ var FieldGroupField = _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, _chunkA7YB7YWXcjs.TextFieldField, { ref, ...props, style: [padding, style] });
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
FieldGroupField.displayName = "XAUI.FieldGroup.Field";
|
|
@@ -44,8 +44,8 @@ FieldGroupField.displayName = "XAUI.FieldGroup.Field";
|
|
|
44
44
|
// src/components/field-group/field-group-icon.tsx
|
|
45
45
|
|
|
46
46
|
function FieldGroupIcon({ size, color, ...rest }) {
|
|
47
|
-
const { icon } =
|
|
48
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47
|
+
const { icon } = _chunkA7YB7YWXcjs.useTextField.call(void 0, );
|
|
48
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
49
49
|
}
|
|
50
50
|
FieldGroupIcon.displayName = "XAUI.FieldGroup.Icon";
|
|
51
51
|
|
|
@@ -58,7 +58,7 @@ var _reactnative = require('react-native');
|
|
|
58
58
|
|
|
59
59
|
var FieldGroupDecorator = _react.forwardRef.call(void 0,
|
|
60
60
|
function FieldGroupDecorator2({ side, children, isDecorative = false, onLayout, style, ...props }, ref) {
|
|
61
|
-
const { prefixStyle, suffixStyle, isDisabled } =
|
|
61
|
+
const { prefixStyle, suffixStyle, isDisabled } = _chunkA7YB7YWXcjs.useTextField.call(void 0, );
|
|
62
62
|
const { setPrefixWidth, setSuffixWidth } = useFieldGroup();
|
|
63
63
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
64
64
|
const report = side === "prefix" ? setPrefixWidth : setSuffixWidth;
|
|
@@ -121,7 +121,7 @@ var FieldGroupRoot = _react.forwardRef.call(void 0, function FieldGroup({ 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, _chunk7GHM4GKLcjs.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, FieldGroupProvider, { value: context, children: surface });
|
|
127
127
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
|
-
import { createSlotContext } from "./chunk-
|
|
2
|
+
import { createSlotContext } from "./chunk-K72UDPVN.js";
|
|
3
3
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
4
4
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
5
5
|
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
@@ -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_15888708666305_init_data = {
|
|
44
|
+
code: "function chunkSACDOFGFJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
45
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SACDOFGF.js",
|
|
46
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkSACDOFGFJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SACDOFGF.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 chunkSACDOFGFJs1Factory({
|
|
60
|
+
_worklet_15888708666305_init_data,
|
|
61
61
|
opacity
|
|
62
62
|
}) {
|
|
63
63
|
const _e = [new global.Error(), -2, -27];
|
|
64
|
-
const
|
|
64
|
+
const chunkSACDOFGFJs1 = function () {
|
|
65
65
|
return {
|
|
66
66
|
opacity: opacity.value
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
chunkSACDOFGFJs1.__closure = {
|
|
70
70
|
opacity
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
72
|
+
chunkSACDOFGFJs1.__workletHash = 15888708666305;
|
|
73
|
+
chunkSACDOFGFJs1.__pluginVersion = "0.7.4";
|
|
74
|
+
chunkSACDOFGFJs1.__initData = _worklet_15888708666305_init_data;
|
|
75
|
+
chunkSACDOFGFJs1.__stackDetails = _e;
|
|
76
|
+
return chunkSACDOFGFJs1;
|
|
77
77
|
}({
|
|
78
|
-
|
|
78
|
+
_worklet_15888708666305_init_data,
|
|
79
79
|
opacity
|
|
80
80
|
}), [opacity]);
|
|
81
81
|
return /* @__PURE__ */jsx(Animated.View, {
|
|
@@ -37,7 +37,7 @@ function _optionalChain(ops) {
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
40
|
-
var
|
|
40
|
+
var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
41
41
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
42
42
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
43
43
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -47,8 +47,8 @@ var _react = require('react');
|
|
|
47
47
|
var _reactnative = require('react-native');
|
|
48
48
|
|
|
49
49
|
// src/components/input-otp/input-otp.context.ts
|
|
50
|
-
var [InputOTPProvider, useInputOTP] =
|
|
51
|
-
var [InputOTPBoxProvider, useInputOTPBox] =
|
|
50
|
+
var [InputOTPProvider, useInputOTP] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "InputOTP");
|
|
51
|
+
var [InputOTPBoxProvider, useInputOTPBox] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "InputOTP.Box");
|
|
52
52
|
|
|
53
53
|
// src/components/input-otp/input-otp-caret.tsx
|
|
54
54
|
|
|
@@ -78,10 +78,10 @@ function InputOTPCaret({
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
InputOTPCaret.displayName = "XAUI.InputOTP.Caret";
|
|
81
|
-
const
|
|
82
|
-
code: "function
|
|
83
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
84
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
81
|
+
const _worklet_1955422709024_init_data = {
|
|
82
|
+
code: "function chunkSIP5J7HUCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
83
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SIP5J7HU.cjs",
|
|
84
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkSIP5J7HUCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SIP5J7HU.cjs\"],\"mappings\":\"AA8D6E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
85
85
|
};
|
|
86
86
|
function BlinkingCaret({
|
|
87
87
|
style
|
|
@@ -94,26 +94,26 @@ function BlinkingCaret({
|
|
|
94
94
|
}), -1, true);
|
|
95
95
|
return () => _reactnativereanimated.cancelAnimation.call(void 0, opacity);
|
|
96
96
|
}, [opacity]);
|
|
97
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
98
|
-
|
|
97
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkSIP5J7HUCjs1Factory({
|
|
98
|
+
_worklet_1955422709024_init_data,
|
|
99
99
|
opacity
|
|
100
100
|
}) {
|
|
101
101
|
const _e = [new global.Error(), -2, -27];
|
|
102
|
-
const
|
|
102
|
+
const chunkSIP5J7HUCjs1 = function () {
|
|
103
103
|
return {
|
|
104
104
|
opacity: opacity.value
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
chunkSIP5J7HUCjs1.__closure = {
|
|
108
108
|
opacity
|
|
109
109
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
110
|
+
chunkSIP5J7HUCjs1.__workletHash = 1955422709024;
|
|
111
|
+
chunkSIP5J7HUCjs1.__pluginVersion = "0.7.4";
|
|
112
|
+
chunkSIP5J7HUCjs1.__initData = _worklet_1955422709024_init_data;
|
|
113
|
+
chunkSIP5J7HUCjs1.__stackDetails = _e;
|
|
114
|
+
return chunkSIP5J7HUCjs1;
|
|
115
115
|
}({
|
|
116
|
-
|
|
116
|
+
_worklet_1955422709024_init_data,
|
|
117
117
|
opacity
|
|
118
118
|
}), [opacity]);
|
|
119
119
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
@@ -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 _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -94,7 +94,7 @@ GridItem.displayName = "XAUI.Grid.Item";
|
|
|
94
94
|
|
|
95
95
|
var StackRoot = _react.forwardRef.call(void 0, function Stack({ children, asChild = false, style, ...props }, ref) {
|
|
96
96
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
97
|
-
const Root = asChild ?
|
|
97
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.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";
|
|
@@ -105,7 +105,7 @@ StackRoot.displayName = "XAUI.Stack";
|
|
|
105
105
|
|
|
106
106
|
var StackItem = _react.forwardRef.call(void 0, function StackItem2({ children, asChild = false, style, ...props }, ref) {
|
|
107
107
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
108
|
-
const Root = asChild ?
|
|
108
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.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";
|
|
@@ -116,7 +116,7 @@ StackItem.displayName = "XAUI.Stack.Item";
|
|
|
116
116
|
|
|
117
117
|
var Row = _react.forwardRef.call(void 0, function Row2({ children, asChild = false, style, ...props }, ref) {
|
|
118
118
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
119
|
-
const Root = asChild ?
|
|
119
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.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";
|
|
@@ -127,7 +127,7 @@ Row.displayName = "XAUI.Row";
|
|
|
127
127
|
|
|
128
128
|
var Column = _react.forwardRef.call(void 0, function Column2({ children, asChild = false, style, ...props }, ref) {
|
|
129
129
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
130
|
-
const Root = asChild ?
|
|
130
|
+
const Root = asChild ? _chunk7GHM4GKLcjs.Slot : _reactnative.View;
|
|
131
131
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
132
132
|
Root,
|
|
133
133
|
{
|