@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,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
13
13
|
|
|
14
14
|
// src/components/typography/typography.tsx
|
|
15
15
|
var _react = require('react');
|
|
@@ -76,12 +76,12 @@ var typographyRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
76
76
|
var _jsxruntime = require('react/jsx-runtime');
|
|
77
77
|
var Typography = _react.forwardRef.call(void 0, function Typography2({ children, variant, color, asChild = false, style, ...props }, ref) {
|
|
78
78
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
79
|
-
const [styleProps, rest] =
|
|
79
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
80
80
|
const selection = { variant };
|
|
81
81
|
const styles = typographyRecipe.resolve({ theme, selection });
|
|
82
82
|
const tint = color ? typographyRecipe.tint({ theme, color, selection }) : void 0;
|
|
83
83
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), styleProps, style];
|
|
84
|
-
const Root = asChild ?
|
|
84
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.Text;
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: rootStyle, ...rest, children });
|
|
86
86
|
});
|
|
87
87
|
Typography.displayName = "XAUI.Typography";
|
|
@@ -91,8 +91,8 @@ Typography.displayName = "XAUI.Typography";
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
var TextSpan = _react.forwardRef.call(void 0, function TextSpan2({ children, asChild = false, style, ...props }, ref) {
|
|
94
|
-
const [styleProps, rest] =
|
|
95
|
-
const Root = asChild ?
|
|
94
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
95
|
+
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.Text;
|
|
96
96
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [styleProps, style], ...rest, children });
|
|
97
97
|
});
|
|
98
98
|
TextSpan.displayName = "XAUI.TextSpan";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CloseButton,
|
|
3
3
|
closeButtonBase
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U3RDU3HU.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WJPQARJ5.js";
|
|
8
|
+
import {
|
|
9
|
+
Slot,
|
|
10
|
+
childrenToString,
|
|
11
|
+
createSlotContext
|
|
12
|
+
} from "./chunk-YXPYOOHU.js";
|
|
8
13
|
import {
|
|
9
14
|
createRecipe,
|
|
10
15
|
radiusAxis
|
|
11
16
|
} from "./chunk-4GTAZM2C.js";
|
|
17
|
+
import {
|
|
18
|
+
useStyleProps
|
|
19
|
+
} from "./chunk-MEYCZS32.js";
|
|
12
20
|
import {
|
|
13
21
|
useXAUITheme
|
|
14
22
|
} from "./chunk-A3EGFI6T.js";
|
|
15
|
-
import {
|
|
16
|
-
Slot,
|
|
17
|
-
childrenToString,
|
|
18
|
-
createSlotContext
|
|
19
|
-
} from "./chunk-E2CWBQTV.js";
|
|
20
|
-
import {
|
|
21
|
-
useStyleProps
|
|
22
|
-
} from "./chunk-URSKA2VR.js";
|
|
23
23
|
|
|
24
24
|
// src/components/alert/alert-close.tsx
|
|
25
25
|
import { forwardRef } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PressableFeedback } from "./chunk-BFMTUMTU.js";
|
|
2
|
-
import { usePressState } from "./chunk-423RQBOX.js";
|
|
3
1
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
|
+
import { PressableFeedback } from "./chunk-XNNJM5DQ.js";
|
|
3
|
+
import { usePressState } from "./chunk-423RQBOX.js";
|
|
4
|
+
import { childrenToString, createSlotContext } from "./chunk-YXPYOOHU.js";
|
|
4
5
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
6
|
+
import { useStyleProps } from "./chunk-MEYCZS32.js";
|
|
5
7
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
6
|
-
import { childrenToString, createSlotContext } from "./chunk-E2CWBQTV.js";
|
|
7
|
-
import { useStyleProps } from "./chunk-URSKA2VR.js";
|
|
8
8
|
|
|
9
9
|
// src/components/switch/switch-label.tsx
|
|
10
10
|
import { forwardRef } from "react";
|
|
@@ -82,15 +82,15 @@ var SwitchThumb = forwardRef2(function SwitchThumb2({
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
85
|
-
const
|
|
86
|
-
code: "function
|
|
87
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
88
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
85
|
+
const _worklet_10999954344565_init_data = {
|
|
86
|
+
code: "function chunkBA2MPBCOJs1(){const{withTiming,isSelected,SWITCH_DURATION}=this.__closure;return withTiming(isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
87
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js",
|
|
88
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkBA2MPBCOJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js\"],\"mappings\":\"AA4FmC,SAAAA,gBAAMA,CAAA,QAAAC,UAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAErC,MAAO,CAAAH,UAAU,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACtE\",\"ignoreList\":[]}"
|
|
89
89
|
};
|
|
90
|
-
const
|
|
91
|
-
code: "function
|
|
92
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
93
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
90
|
+
const _worklet_14174500173975_init_data = {
|
|
91
|
+
code: "function chunkBA2MPBCOJs2(){const{progress,distance,interpolateColor,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:interpolateColor(progress.value,[0,1],[colors.off,colors.on])};}",
|
|
92
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js",
|
|
93
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkBA2MPBCOJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js\"],\"mappings\":\"AAgGyC,SAAAA,gBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,gBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE3C,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,gBAAgB,CAC/BF,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
94
94
|
};
|
|
95
95
|
var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
96
96
|
style,
|
|
@@ -100,43 +100,43 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
100
100
|
children,
|
|
101
101
|
...rest
|
|
102
102
|
}, ref) {
|
|
103
|
-
const progress = useDerivedValue(function
|
|
104
|
-
|
|
103
|
+
const progress = useDerivedValue(function chunkBA2MPBCOJs1Factory({
|
|
104
|
+
_worklet_10999954344565_init_data,
|
|
105
105
|
withTiming,
|
|
106
106
|
isSelected,
|
|
107
107
|
SWITCH_DURATION
|
|
108
108
|
}) {
|
|
109
109
|
const _e = [new global.Error(), -4, -27];
|
|
110
|
-
const
|
|
110
|
+
const chunkBA2MPBCOJs1 = function () {
|
|
111
111
|
return withTiming(isSelected ? 1 : 0, {
|
|
112
112
|
duration: SWITCH_DURATION
|
|
113
113
|
});
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
chunkBA2MPBCOJs1.__closure = {
|
|
116
116
|
withTiming,
|
|
117
117
|
isSelected,
|
|
118
118
|
SWITCH_DURATION
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return
|
|
120
|
+
chunkBA2MPBCOJs1.__workletHash = 10999954344565;
|
|
121
|
+
chunkBA2MPBCOJs1.__pluginVersion = "0.7.4";
|
|
122
|
+
chunkBA2MPBCOJs1.__initData = _worklet_10999954344565_init_data;
|
|
123
|
+
chunkBA2MPBCOJs1.__stackDetails = _e;
|
|
124
|
+
return chunkBA2MPBCOJs1;
|
|
125
125
|
}({
|
|
126
|
-
|
|
126
|
+
_worklet_10999954344565_init_data,
|
|
127
127
|
withTiming,
|
|
128
128
|
isSelected,
|
|
129
129
|
SWITCH_DURATION
|
|
130
130
|
}), [isSelected]);
|
|
131
|
-
const animatedStyle = useAnimatedStyle(function
|
|
132
|
-
|
|
131
|
+
const animatedStyle = useAnimatedStyle(function chunkBA2MPBCOJs2Factory({
|
|
132
|
+
_worklet_14174500173975_init_data,
|
|
133
133
|
progress,
|
|
134
134
|
distance,
|
|
135
135
|
interpolateColor,
|
|
136
136
|
colors
|
|
137
137
|
}) {
|
|
138
138
|
const _e = [new global.Error(), -5, -27];
|
|
139
|
-
const
|
|
139
|
+
const chunkBA2MPBCOJs2 = function () {
|
|
140
140
|
return {
|
|
141
141
|
transform: [{
|
|
142
142
|
translateX: progress.value * distance
|
|
@@ -144,19 +144,19 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
144
144
|
backgroundColor: interpolateColor(progress.value, [0, 1], [colors.off, colors.on])
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
chunkBA2MPBCOJs2.__closure = {
|
|
148
148
|
progress,
|
|
149
149
|
distance,
|
|
150
150
|
interpolateColor,
|
|
151
151
|
colors
|
|
152
152
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return
|
|
153
|
+
chunkBA2MPBCOJs2.__workletHash = 14174500173975;
|
|
154
|
+
chunkBA2MPBCOJs2.__pluginVersion = "0.7.4";
|
|
155
|
+
chunkBA2MPBCOJs2.__initData = _worklet_14174500173975_init_data;
|
|
156
|
+
chunkBA2MPBCOJs2.__stackDetails = _e;
|
|
157
|
+
return chunkBA2MPBCOJs2;
|
|
158
158
|
}({
|
|
159
|
-
|
|
159
|
+
_worklet_14174500173975_init_data,
|
|
160
160
|
progress,
|
|
161
161
|
distance,
|
|
162
162
|
interpolateColor,
|
|
@@ -208,15 +208,15 @@ var SwitchTrack = forwardRef3(function SwitchTrack2({
|
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
210
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
211
|
-
const
|
|
212
|
-
code: "function
|
|
213
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
214
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
211
|
+
const _worklet_10428863279863_init_data = {
|
|
212
|
+
code: "function chunkBA2MPBCOJs3(){const{withTiming2,isSelected,SWITCH_DURATION}=this.__closure;return withTiming2(isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
213
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js",
|
|
214
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkBA2MPBCOJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js\"],\"mappings\":\"AAqJoC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEtC,MAAO,CAAAH,WAAW,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACvE\",\"ignoreList\":[]}"
|
|
215
215
|
};
|
|
216
|
-
const
|
|
217
|
-
code: "function
|
|
218
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
219
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
216
|
+
const _worklet_9635834527825_init_data = {
|
|
217
|
+
code: "function chunkBA2MPBCOJs4(){const{interpolateColor2,progress,colors}=this.__closure;return{backgroundColor:interpolateColor2(progress.value,[0,1],[colors.off,colors.on])};}",
|
|
218
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js",
|
|
219
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkBA2MPBCOJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-BA2MPBCO.js\"],\"mappings\":\"AAyJ0C,SAAAA,gBAAMA,CAAA,QAAAC,iBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,MAAO,CACLC,eAAe,CAAEJ,iBAAiB,CAChCC,QAAQ,CAACI,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACH,MAAM,CAACI,GAAG,CAAEJ,MAAM,CAACK,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
220
220
|
};
|
|
221
221
|
var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
222
222
|
style,
|
|
@@ -225,58 +225,58 @@ var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
|
225
225
|
children,
|
|
226
226
|
...rest
|
|
227
227
|
}, ref) {
|
|
228
|
-
const progress = useDerivedValue2(function
|
|
229
|
-
|
|
228
|
+
const progress = useDerivedValue2(function chunkBA2MPBCOJs3Factory({
|
|
229
|
+
_worklet_10428863279863_init_data,
|
|
230
230
|
withTiming2,
|
|
231
231
|
isSelected,
|
|
232
232
|
SWITCH_DURATION
|
|
233
233
|
}) {
|
|
234
234
|
const _e = [new global.Error(), -4, -27];
|
|
235
|
-
const
|
|
235
|
+
const chunkBA2MPBCOJs3 = function () {
|
|
236
236
|
return withTiming2(isSelected ? 1 : 0, {
|
|
237
237
|
duration: SWITCH_DURATION
|
|
238
238
|
});
|
|
239
239
|
};
|
|
240
|
-
|
|
240
|
+
chunkBA2MPBCOJs3.__closure = {
|
|
241
241
|
withTiming2,
|
|
242
242
|
isSelected,
|
|
243
243
|
SWITCH_DURATION
|
|
244
244
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return
|
|
245
|
+
chunkBA2MPBCOJs3.__workletHash = 10428863279863;
|
|
246
|
+
chunkBA2MPBCOJs3.__pluginVersion = "0.7.4";
|
|
247
|
+
chunkBA2MPBCOJs3.__initData = _worklet_10428863279863_init_data;
|
|
248
|
+
chunkBA2MPBCOJs3.__stackDetails = _e;
|
|
249
|
+
return chunkBA2MPBCOJs3;
|
|
250
250
|
}({
|
|
251
|
-
|
|
251
|
+
_worklet_10428863279863_init_data,
|
|
252
252
|
withTiming2,
|
|
253
253
|
isSelected,
|
|
254
254
|
SWITCH_DURATION
|
|
255
255
|
}), [isSelected]);
|
|
256
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
257
|
-
|
|
256
|
+
const animatedStyle = useAnimatedStyle2(function chunkBA2MPBCOJs4Factory({
|
|
257
|
+
_worklet_9635834527825_init_data,
|
|
258
258
|
interpolateColor2,
|
|
259
259
|
progress,
|
|
260
260
|
colors
|
|
261
261
|
}) {
|
|
262
262
|
const _e = [new global.Error(), -4, -27];
|
|
263
|
-
const
|
|
263
|
+
const chunkBA2MPBCOJs4 = function () {
|
|
264
264
|
return {
|
|
265
265
|
backgroundColor: interpolateColor2(progress.value, [0, 1], [colors.off, colors.on])
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
chunkBA2MPBCOJs4.__closure = {
|
|
269
269
|
interpolateColor2,
|
|
270
270
|
progress,
|
|
271
271
|
colors
|
|
272
272
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
return
|
|
273
|
+
chunkBA2MPBCOJs4.__workletHash = 9635834527825;
|
|
274
|
+
chunkBA2MPBCOJs4.__pluginVersion = "0.7.4";
|
|
275
|
+
chunkBA2MPBCOJs4.__initData = _worklet_9635834527825_init_data;
|
|
276
|
+
chunkBA2MPBCOJs4.__stackDetails = _e;
|
|
277
|
+
return chunkBA2MPBCOJs4;
|
|
278
278
|
}({
|
|
279
|
-
|
|
279
|
+
_worklet_9635834527825_init_data,
|
|
280
280
|
interpolateColor2,
|
|
281
281
|
progress,
|
|
282
282
|
colors
|
|
@@ -5,27 +5,27 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQ3D6KIVFcjs = require('./chunk-Q3D6KIVF.cjs');
|
|
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/text-area/text-area-field.tsx
|
|
17
17
|
var _react = require('react');
|
|
18
18
|
|
|
19
19
|
// src/components/text-area/text-area.context.ts
|
|
20
|
-
var [TextAreaProvider, useTextArea] =
|
|
20
|
+
var [TextAreaProvider, useTextArea] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "TextArea");
|
|
21
21
|
|
|
22
22
|
// src/components/text-area/text-area-field.tsx
|
|
23
23
|
var _jsxruntime = require('react/jsx-runtime');
|
|
24
24
|
var TextAreaField = _react.forwardRef.call(void 0,
|
|
25
25
|
function TextAreaField2({ style, scrollEnabled, ...props }, ref) {
|
|
26
|
-
const { textAreaStyle, textArea } =
|
|
26
|
+
const { textAreaStyle, textArea } = _chunkQ3D6KIVFcjs.useInput.call(void 0, );
|
|
27
27
|
const { rows, maxRows } = useTextArea();
|
|
28
|
-
const [styleProps, rest] =
|
|
28
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
29
29
|
const height = _react.useMemo.call(void 0, () => {
|
|
30
30
|
const chrome = textArea.paddingVertical * 2;
|
|
31
31
|
return {
|
|
@@ -37,7 +37,7 @@ var TextAreaField = _react.forwardRef.call(void 0,
|
|
|
37
37
|
};
|
|
38
38
|
}, [rows, maxRows, textArea]);
|
|
39
39
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunkQ3D6KIVFcjs.InputField,
|
|
41
41
|
{
|
|
42
42
|
ref,
|
|
43
43
|
multiline: true,
|
|
@@ -56,16 +56,16 @@ TextAreaField.displayName = "XAUI.TextArea.Field";
|
|
|
56
56
|
var DEFAULT_ROWS = 3;
|
|
57
57
|
var TextAreaRoot = _react.forwardRef.call(void 0, function TextArea({ rows = DEFAULT_ROWS, maxRows, children, ...props }, ref) {
|
|
58
58
|
const context = _react.useMemo.call(void 0, () => ({ rows, maxRows }), [rows, maxRows]);
|
|
59
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ3D6KIVFcjs.InputRoot, { ref, ...props, children }) });
|
|
60
60
|
});
|
|
61
61
|
TextAreaRoot.displayName = "XAUI.TextArea.Root";
|
|
62
62
|
|
|
63
63
|
// src/components/text-area/index.ts
|
|
64
64
|
var TextArea2 = Object.assign(TextAreaRoot, {
|
|
65
|
-
Label:
|
|
65
|
+
Label: _chunkQ3D6KIVFcjs.InputLabel,
|
|
66
66
|
Field: TextAreaField,
|
|
67
|
-
Description:
|
|
68
|
-
Error:
|
|
67
|
+
Description: _chunkQ3D6KIVFcjs.InputDescription,
|
|
68
|
+
Error: _chunkQ3D6KIVFcjs.InputError
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
|
|
@@ -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/checkbox/checkbox-indicator.tsx
|
|
29
29
|
var _react = require('react');
|
|
30
30
|
var _reactnative = require('react-native');
|
|
31
31
|
|
|
32
32
|
// src/components/checkbox/checkbox.context.ts
|
|
33
|
-
var [CheckboxProvider, useCheckbox] =
|
|
33
|
+
var [CheckboxProvider, useCheckbox] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "Checkbox");
|
|
34
34
|
|
|
35
35
|
// src/components/checkbox/checkbox-indicator.tsx
|
|
36
36
|
var _jsxruntime = require('react/jsx-runtime');
|
|
37
37
|
var CheckboxIndicator = _react.forwardRef.call(void 0,
|
|
38
38
|
function CheckboxIndicator2({ children, animation = true, style, ...props }, ref) {
|
|
39
39
|
const { indicatorStyle, fillStyle, isSelected, isIndeterminate } = useCheckbox();
|
|
40
|
-
const [styleProps, rest] =
|
|
40
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
41
41
|
const isFilled = isSelected || isIndeterminate;
|
|
42
42
|
const mark = _nullishCoalesce(children, () => ( (isIndeterminate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dash, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Check, {}))));
|
|
43
43
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: [indicatorStyle, styleProps, style], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF6CQ6CBIcjs.SelectionFill, { isVisible: isFilled, style: fillStyle, animation, children: mark }) });
|
|
@@ -60,7 +60,7 @@ function Dash() {
|
|
|
60
60
|
var CheckboxLabel = _react.forwardRef.call(void 0,
|
|
61
61
|
function CheckboxLabel2({ children, style, ...props }, ref) {
|
|
62
62
|
const { labelStyle } = useCheckbox();
|
|
63
|
-
const [styleProps, rest] =
|
|
63
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
64
64
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [labelStyle, styleProps, style], ...rest, children });
|
|
65
65
|
}
|
|
66
66
|
);
|
|
@@ -250,7 +250,7 @@ var CheckboxRoot = _react.forwardRef.call(void 0, function Checkbox({
|
|
|
250
250
|
...props
|
|
251
251
|
}, ref) {
|
|
252
252
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
253
|
-
const [styleProps, rest] =
|
|
253
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
254
254
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
255
255
|
const [selected, setSelected] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
256
256
|
value: isSelected,
|
|
@@ -297,13 +297,13 @@ var CheckboxRoot = _react.forwardRef.call(void 0, function Checkbox({
|
|
|
297
297
|
styleProps,
|
|
298
298
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
299
299
|
];
|
|
300
|
-
const text =
|
|
300
|
+
const text = _chunk54FJOKANcjs.childrenToString.call(void 0, children);
|
|
301
301
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
302
302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxIndicator, {}),
|
|
303
303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxLabel, { children: text })
|
|
304
304
|
] }) : _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxIndicator, {})));
|
|
305
305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
306
|
-
|
|
306
|
+
_chunk6M7RUU7Vcjs.PressableFeedback,
|
|
307
307
|
{
|
|
308
308
|
ref,
|
|
309
309
|
isPressed,
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6M7RUU7Vcjs = require('./chunk-6M7RUU7V.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -9,7 +9,7 @@ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
|
9
9
|
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
13
13
|
|
|
14
14
|
// src/system/close-button/close-button.tsx
|
|
15
15
|
var _react = require('react');
|
|
@@ -37,7 +37,7 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
|
|
|
37
37
|
onPressOut,
|
|
38
38
|
...props
|
|
39
39
|
}, ref) {
|
|
40
|
-
const [styleProps, rest] =
|
|
40
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
41
41
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
42
42
|
if (!rest.accessibilityLabel && !rest["aria-label"]) {
|
|
43
43
|
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
@@ -45,7 +45,7 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
|
|
48
|
+
_chunk6M7RUU7Vcjs.PressableFeedback,
|
|
49
49
|
{
|
|
50
50
|
ref,
|
|
51
51
|
isPressed,
|
|
@@ -1,41 +1,41 @@
|
|
|
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 _chunkCYS6U374cjs = require('./chunk-CYS6U374.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6M7RUU7Vcjs = require('./chunk-6M7RUU7V.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPCWT2YBEcjs = require('./chunk-PCWT2YBE.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
21
20
|
|
|
21
|
+
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
22
22
|
|
|
23
|
-
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
24
23
|
|
|
25
24
|
|
|
25
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkI6ZB3FZIcjs = require('./chunk-I6ZB3FZI.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
32
32
|
|
|
33
33
|
// src/components/chip/chip-avatar.tsx
|
|
34
34
|
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] = _chunk54FJOKANcjs.createSlotContext.call(void 0, "Chip");
|
|
39
39
|
|
|
40
40
|
// src/components/chip/chip.style.ts
|
|
41
41
|
|
|
@@ -47,7 +47,7 @@ var chipSheet = _reactnative.StyleSheet.create({
|
|
|
47
47
|
var _jsxruntime = require('react/jsx-runtime');
|
|
48
48
|
var ChipAvatar = _react.forwardRef.call(void 0, function ChipAvatar2({ children, source, style, ...props }, ref) {
|
|
49
49
|
const { avatarStyle } = useChip();
|
|
50
|
-
const [styleProps, rest] =
|
|
50
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
51
51
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [avatarStyle, styleProps, style], ...rest, children: source ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Image, { source, style: chipSheet.avatarImage }) : children });
|
|
52
52
|
});
|
|
53
53
|
ChipAvatar.displayName = "XAUI.Chip.Avatar";
|
|
@@ -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
|
+
_chunkCYS6U374cjs.CloseButton,
|
|
62
62
|
{
|
|
63
63
|
ref,
|
|
64
64
|
name: "Chip.Close",
|
|
@@ -77,7 +77,7 @@ ChipClose.displayName = "XAUI.Chip.Close";
|
|
|
77
77
|
|
|
78
78
|
var ChipDot = _react.forwardRef.call(void 0, function ChipDot2({ style, ...props }, ref) {
|
|
79
79
|
const { dotStyle } = useChip();
|
|
80
|
-
const [styleProps, rest] =
|
|
80
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
81
81
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [dotStyle, styleProps, style], ...rest });
|
|
82
82
|
});
|
|
83
83
|
ChipDot.displayName = "XAUI.Chip.Dot";
|
|
@@ -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, _chunkPCWT2YBEcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
90
90
|
}
|
|
91
91
|
ChipIcon.displayName = "XAUI.Chip.Icon";
|
|
92
92
|
|
|
@@ -96,7 +96,7 @@ ChipIcon.displayName = "XAUI.Chip.Icon";
|
|
|
96
96
|
|
|
97
97
|
var ChipLabel = _react.forwardRef.call(void 0, function ChipLabel2({ children, style, numberOfLines = 1, ...props }, ref) {
|
|
98
98
|
const { labelStyle } = useChip();
|
|
99
|
-
const [styleProps, rest] =
|
|
99
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
100
100
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
101
101
|
_reactnative.Text,
|
|
102
102
|
{
|
|
@@ -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
|
+
..._chunkCYS6U374cjs.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*
|
|
@@ -334,7 +334,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
334
334
|
...props
|
|
335
335
|
}, ref) {
|
|
336
336
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
337
|
-
const [styleProps, rest] =
|
|
337
|
+
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
338
338
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
339
339
|
const selection = { variant, size, radius };
|
|
340
340
|
const states = { pressed: isPressed, disabled: isDisabled };
|
|
@@ -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 = _chunk54FJOKANcjs.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
|
+
_chunk6M7RUU7Vcjs.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
|
+
_chunk54FJOKANcjs.Slot,
|
|
394
394
|
{
|
|
395
395
|
ref,
|
|
396
396
|
accessibilityRole,
|