@xaui/native 0.9.1-alpha.29 → 0.9.1-alpha.30
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-XYFMSRNJ.js → chunk-27ZRTZEE.js} +14 -10
- package/dist/{chunk-ICR42HHG.js → chunk-3FV4COTM.js} +3 -3
- package/dist/chunk-423RQBOX.js +21 -0
- package/dist/{chunk-TFNB2PNI.cjs → chunk-4XPLPQLM.cjs} +13 -11
- package/dist/{chunk-APONC4DB.cjs → chunk-5GO7MAVY.cjs} +12 -10
- package/dist/{chunk-AQNWXJYV.cjs → chunk-5RQ7AZPN.cjs} +20 -16
- package/dist/{chunk-FFEUGWVA.cjs → chunk-5Z4P6WHR.cjs} +11 -9
- package/dist/{chunk-L3Q5TVYE.js → chunk-6RVCGLKZ.js} +60 -58
- package/dist/chunk-7DPL3ZDS.cjs +21 -0
- package/dist/{chunk-Y4BPKSD3.js → chunk-7SEZGVTY.js} +1 -1
- package/dist/chunk-7XKQJQF2.cjs +70 -0
- package/dist/{chunk-7BOFQN2G.js → chunk-A5OCK3C2.js} +7 -5
- package/dist/{chunk-4HELPMAK.js → chunk-BFMTUMTU.js} +81 -101
- package/dist/chunk-BVJQ3UPZ.js +62 -0
- package/dist/{chunk-NG4GFBDR.js → chunk-DFME724B.js} +8 -6
- package/dist/chunk-E2CWBQTV.js +119 -0
- package/dist/chunk-E4TS6632.cjs +314 -0
- package/dist/{chunk-VUEDYW3M.js → chunk-FMZQW35T.js} +15 -11
- package/dist/{chunk-OYZYWWJ6.js → chunk-G7K652GC.js} +4 -2
- package/dist/{chunk-YGOXQSNU.js → chunk-GI24YJPE.js} +100 -206
- package/dist/chunk-GLGU2WFL.cjs +190 -0
- package/dist/{chunk-IG4Q3WQO.cjs → chunk-GPVNCJ3Z.cjs} +74 -95
- package/dist/{chunk-D4SOU26X.js → chunk-GVQOD3VW.js} +5 -3
- package/dist/chunk-KOC3KQIT.js +124 -0
- package/dist/chunk-KPWZLUES.cjs +124 -0
- package/dist/{chunk-SVRZJEDU.cjs → chunk-KWCHSIMI.cjs} +16 -12
- package/dist/{chunk-GCU5A5MM.cjs → chunk-N527BTY4.cjs} +17 -15
- package/dist/{chunk-F3H4TXAY.cjs → chunk-NBFWWQFW.cjs} +16 -12
- package/dist/{chunk-HOIQRGSK.js → chunk-NYRXUGVL.js} +6 -4
- package/dist/{chunk-V56334S3.js → chunk-Q3WFY5N3.js} +9 -7
- package/dist/{chunk-FXHRNUCS.cjs → chunk-QGN2BBJO.cjs} +8 -6
- package/dist/{chunk-J2JJLKLG.cjs → chunk-TGZZ3RZU.cjs} +7 -5
- package/dist/{chunk-YWBTIWT5.cjs → chunk-UBQLKIZC.cjs} +22 -18
- package/dist/{chunk-PMO62QK4.js → chunk-URSKA2VR.js} +1 -114
- package/dist/{chunk-A4RGJBP2.js → chunk-V4WDMM6Z.js} +5 -3
- package/dist/{chunk-FDSQOPJH.js → chunk-VJEER76X.js} +11 -7
- package/dist/{chunk-O5KDIEDH.cjs → chunk-VZBWYWEI.cjs} +25 -24
- package/dist/{chunk-B4W2XNBP.cjs → chunk-WR7YLDVV.cjs} +3 -3
- package/dist/{chunk-5RFRASSB.js → chunk-X4HQ4H2V.js} +16 -15
- package/dist/{chunk-IBEX4XGV.cjs → chunk-XFSW3ZNI.cjs} +13 -11
- package/dist/{chunk-VZGBEGDV.cjs → chunk-XQFAUDR2.cjs} +2 -2
- package/dist/{chunk-V3KS5PPK.js → chunk-YKL6XHM6.js} +14 -10
- package/dist/{chunk-HUZ4AUM2.cjs → chunk-ZP2E2H2G.cjs} +4 -188
- package/dist/{chunk-RZC4VFB5.cjs → chunk-ZSLNGBDS.cjs} +68 -66
- package/dist/components/alert/index.cjs +8 -6
- package/dist/components/alert/index.d.cts +2 -2
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +7 -5
- package/dist/components/button/index.cjs +9 -5
- package/dist/components/button/index.d.cts +9 -4
- package/dist/components/button/index.d.ts +9 -4
- package/dist/components/button/index.js +8 -4
- package/dist/components/card/index.cjs +6 -4
- package/dist/components/card/index.d.cts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +5 -3
- package/dist/components/checkbox/index.cjs +7 -5
- package/dist/components/checkbox/index.d.cts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +6 -4
- package/dist/components/chip/index.cjs +8 -6
- package/dist/components/chip/index.d.cts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/index.js +7 -5
- package/dist/components/input/index.cjs +4 -3
- package/dist/components/input/index.d.cts +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +3 -2
- package/dist/components/input-group/index.cjs +6 -5
- package/dist/components/input-group/index.d.cts +1 -1
- package/dist/components/input-group/index.d.ts +1 -1
- package/dist/components/input-group/index.js +5 -4
- package/dist/components/input-otp/index.cjs +4 -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 +3 -2
- package/dist/components/radio/index.cjs +7 -5
- package/dist/components/radio/index.d.cts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +6 -4
- package/dist/components/spinner/index.cjs +16 -0
- package/dist/components/spinner/index.d.cts +104 -0
- package/dist/components/spinner/index.d.ts +104 -0
- package/dist/components/spinner/index.js +16 -0
- package/dist/components/switch/index.cjs +6 -4
- package/dist/components/switch/index.d.cts +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +5 -3
- package/dist/components/text-area/index.cjs +5 -4
- package/dist/components/text-area/index.js +4 -3
- package/dist/components/typography/index.cjs +4 -3
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +3 -2
- package/dist/components/view/index.cjs +4 -3
- package/dist/components/view/index.js +3 -2
- package/dist/{create-recipe-DUo8doTt.d.ts → create-recipe-BdVd2ffi.d.ts} +1 -1
- package/dist/{create-recipe-CWvI5ot3.d.cts → create-recipe-dC7wMfnj.d.cts} +1 -1
- package/dist/{icon.type-Dq4_qePa.d.ts → icon.type-Kml72iSz.d.ts} +1 -1
- package/dist/{icon.type-CF4KiMKl.d.cts → icon.type-d_i9ma-i.d.cts} +1 -1
- package/dist/index.cjs +39 -37
- package/dist/index.d.cts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +73 -71
- package/dist/system/index.cjs +11 -8
- package/dist/system/index.d.cts +4 -4
- package/dist/system/index.d.ts +4 -4
- package/dist/system/index.js +11 -8
- package/package.json +11 -1
- package/dist/chunk-E25JH7W2.cjs +0 -456
|
@@ -1,39 +1,43 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
|
|
7
|
+
|
|
7
8
|
|
|
9
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
8
10
|
|
|
9
11
|
|
|
10
|
-
var
|
|
12
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
15
17
|
|
|
16
18
|
|
|
19
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
20
|
+
|
|
17
21
|
|
|
18
22
|
|
|
19
|
-
var
|
|
23
|
+
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
20
24
|
|
|
21
25
|
|
|
22
|
-
var
|
|
26
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
23
27
|
|
|
24
28
|
// src/components/radio/radio-indicator.tsx
|
|
25
29
|
var _react = require('react');
|
|
26
30
|
var _reactnative = require('react-native');
|
|
27
31
|
|
|
28
32
|
// src/components/radio/radio.context.ts
|
|
29
|
-
var [RadioProvider, useRadio] =
|
|
33
|
+
var [RadioProvider, useRadio] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "Radio");
|
|
30
34
|
|
|
31
35
|
// src/components/radio/radio-indicator.tsx
|
|
32
36
|
var _jsxruntime = require('react/jsx-runtime');
|
|
33
37
|
var RadioIndicator = _react.forwardRef.call(void 0,
|
|
34
38
|
function RadioIndicator2({ children, animation = true, style, ...props }, ref) {
|
|
35
39
|
const { indicatorStyle, fillStyle, isSelected } = useRadio();
|
|
36
|
-
const [styleProps, rest] =
|
|
40
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
37
41
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: [indicatorStyle, styleProps, style], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
42
|
_chunkF6CQ6CBIcjs.SelectionFill,
|
|
39
43
|
{
|
|
@@ -57,7 +61,7 @@ function Thumb() {
|
|
|
57
61
|
|
|
58
62
|
var RadioLabel = _react.forwardRef.call(void 0, function RadioLabel2({ children, style, ...props }, ref) {
|
|
59
63
|
const { labelStyle } = useRadio();
|
|
60
|
-
const [styleProps, rest] =
|
|
64
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
61
65
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [labelStyle, styleProps, style], ...rest, children });
|
|
62
66
|
});
|
|
63
67
|
RadioLabel.displayName = "XAUI.Radio.Label";
|
|
@@ -199,8 +203,8 @@ var RadioRoot = _react.forwardRef.call(void 0, function Radio({
|
|
|
199
203
|
...props
|
|
200
204
|
}, ref) {
|
|
201
205
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
202
|
-
const [styleProps, rest] =
|
|
203
|
-
const [isPressed, press] =
|
|
206
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
207
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
204
208
|
const [selected, setSelected] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
205
209
|
value: isSelected,
|
|
206
210
|
defaultValue: defaultSelected,
|
|
@@ -242,13 +246,13 @@ var RadioRoot = _react.forwardRef.call(void 0, function Radio({
|
|
|
242
246
|
styleProps,
|
|
243
247
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
244
248
|
];
|
|
245
|
-
const text =
|
|
249
|
+
const text = _chunkZP2E2H2Gcjs.childrenToString.call(void 0, children);
|
|
246
250
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
247
251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioIndicator, {}),
|
|
248
252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioLabel, { children: text })
|
|
249
253
|
] }) : _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioIndicator, {})));
|
|
250
254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
251
|
-
|
|
255
|
+
_chunkGPVNCJ3Zcjs.PressableFeedback,
|
|
252
256
|
{
|
|
253
257
|
ref,
|
|
254
258
|
isPressed,
|
|
@@ -1,36 +1,38 @@
|
|
|
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 _chunkTGZZ3RZUcjs = require('./chunk-TGZZ3RZU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWR7YLDVVcjs = require('./chunk-WR7YLDVV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
18
18
|
|
|
19
|
+
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
21
23
|
|
|
22
24
|
// src/components/alert/alert-close.tsx
|
|
23
25
|
var _react = require('react');
|
|
24
26
|
|
|
25
27
|
// src/components/alert/alert.context.ts
|
|
26
|
-
var [AlertProvider, useAlert] =
|
|
28
|
+
var [AlertProvider, useAlert] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "Alert");
|
|
27
29
|
|
|
28
30
|
// src/components/alert/alert-close.tsx
|
|
29
31
|
var _jsxruntime = require('react/jsx-runtime');
|
|
30
32
|
var AlertClose = _react.forwardRef.call(void 0, function AlertClose2({ isDisabled, ...props }, ref) {
|
|
31
33
|
const { closeStyle, closeGlyphStyle, isDisabled: isAlertDisabled } = useAlert();
|
|
32
34
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
|
-
|
|
35
|
+
_chunkTGZZ3RZUcjs.CloseButton,
|
|
34
36
|
{
|
|
35
37
|
ref,
|
|
36
38
|
name: "Alert.Close",
|
|
@@ -50,7 +52,7 @@ var _reactnative = require('react-native');
|
|
|
50
52
|
var AlertContent = _react.forwardRef.call(void 0,
|
|
51
53
|
function AlertContent2({ children, style, ...props }, ref) {
|
|
52
54
|
const { contentStyle } = useAlert();
|
|
53
|
-
const [styleProps, rest] =
|
|
55
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
54
56
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [contentStyle, styleProps, style], ...rest, children });
|
|
55
57
|
}
|
|
56
58
|
);
|
|
@@ -63,7 +65,7 @@ AlertContent.displayName = "XAUI.Alert.Content";
|
|
|
63
65
|
var AlertDescription = _react.forwardRef.call(void 0,
|
|
64
66
|
function AlertDescription2({ children, style, ...props }, ref) {
|
|
65
67
|
const { descriptionStyle } = useAlert();
|
|
66
|
-
const [styleProps, rest] =
|
|
68
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
67
69
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [descriptionStyle, styleProps, style], ...rest, children });
|
|
68
70
|
}
|
|
69
71
|
);
|
|
@@ -75,10 +77,10 @@ AlertDescription.displayName = "XAUI.Alert.Description";
|
|
|
75
77
|
|
|
76
78
|
var AlertIcon = _react.forwardRef.call(void 0, function AlertIcon2({ as, children, source, size, color, style, ...props }, ref) {
|
|
77
79
|
const { iconStyle, icon } = useAlert();
|
|
78
|
-
const [styleProps, rest] =
|
|
80
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
79
81
|
const glyphSize = _nullishCoalesce(size, () => ( icon.size));
|
|
80
82
|
const glyphColor = _nullishCoalesce(color, () => ( icon.color));
|
|
81
|
-
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, _chunkWR7YLDVVcjs.Icon, { as, size: glyphSize, color: glyphColor }) : source ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWR7YLDVVcjs.Icon, { source, size: glyphSize, color: glyphColor }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWR7YLDVVcjs.Icon, { size: glyphSize, color: glyphColor, children }) });
|
|
82
84
|
});
|
|
83
85
|
AlertIcon.displayName = "XAUI.Alert.Icon";
|
|
84
86
|
|
|
@@ -88,7 +90,7 @@ AlertIcon.displayName = "XAUI.Alert.Icon";
|
|
|
88
90
|
|
|
89
91
|
var AlertTitle = _react.forwardRef.call(void 0, function AlertTitle2({ children, style, ...props }, ref) {
|
|
90
92
|
const { titleStyle } = useAlert();
|
|
91
|
-
const [styleProps, rest] =
|
|
93
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
92
94
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [titleStyle, styleProps, style], ...rest, children });
|
|
93
95
|
});
|
|
94
96
|
AlertTitle.displayName = "XAUI.Alert.Title";
|
|
@@ -192,7 +194,7 @@ var alertRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
192
194
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
193
195
|
// `CloseButton`; what stays below is the box and bar size this component's scale sets.
|
|
194
196
|
base: (theme) => ({
|
|
195
|
-
...
|
|
197
|
+
..._chunkTGZZ3RZUcjs.closeButtonBase.call(void 0, theme),
|
|
196
198
|
root: {
|
|
197
199
|
flexDirection: "row",
|
|
198
200
|
// Top-aligned, not centred: an alert's message can run to three lines, and an icon
|
|
@@ -293,7 +295,7 @@ var AlertRoot = _react.forwardRef.call(void 0, function Alert({
|
|
|
293
295
|
...props
|
|
294
296
|
}, ref) {
|
|
295
297
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
296
|
-
const [styleProps, rest] =
|
|
298
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
297
299
|
const selection = { variant, size, radius };
|
|
298
300
|
const states = { disabled: isDisabled };
|
|
299
301
|
const styles = alertRecipe.resolve({ theme, selection, states });
|
|
@@ -317,13 +319,13 @@ var AlertRoot = _react.forwardRef.call(void 0, function Alert({
|
|
|
317
319
|
};
|
|
318
320
|
}, [styles, tint, isDisabled]);
|
|
319
321
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _2 => _2.root]), styleProps, style];
|
|
320
|
-
const text =
|
|
322
|
+
const text = _chunkZP2E2H2Gcjs.childrenToString.call(void 0, children);
|
|
321
323
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: text }) : children;
|
|
322
324
|
const surface = asChild ? (
|
|
323
325
|
// R12 — the caller's element *is* the alert, so it takes the children it was written
|
|
324
326
|
// with and the auto-wrap does not apply.
|
|
325
327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
326
|
-
|
|
328
|
+
_chunkZP2E2H2Gcjs.Slot,
|
|
327
329
|
{
|
|
328
330
|
ref,
|
|
329
331
|
accessibilityRole,
|
|
@@ -1,39 +1,43 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
|
|
7
|
+
|
|
7
8
|
|
|
9
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
8
10
|
|
|
9
11
|
|
|
10
|
-
var
|
|
12
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
15
17
|
|
|
16
18
|
|
|
19
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
20
|
+
|
|
17
21
|
|
|
18
22
|
|
|
19
|
-
var
|
|
23
|
+
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
20
24
|
|
|
21
25
|
|
|
22
|
-
var
|
|
26
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
23
27
|
|
|
24
28
|
// src/components/checkbox/checkbox-indicator.tsx
|
|
25
29
|
var _react = require('react');
|
|
26
30
|
var _reactnative = require('react-native');
|
|
27
31
|
|
|
28
32
|
// src/components/checkbox/checkbox.context.ts
|
|
29
|
-
var [CheckboxProvider, useCheckbox] =
|
|
33
|
+
var [CheckboxProvider, useCheckbox] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "Checkbox");
|
|
30
34
|
|
|
31
35
|
// src/components/checkbox/checkbox-indicator.tsx
|
|
32
36
|
var _jsxruntime = require('react/jsx-runtime');
|
|
33
37
|
var CheckboxIndicator = _react.forwardRef.call(void 0,
|
|
34
38
|
function CheckboxIndicator2({ children, animation = true, style, ...props }, ref) {
|
|
35
39
|
const { indicatorStyle, fillStyle, isSelected, isIndeterminate } = useCheckbox();
|
|
36
|
-
const [styleProps, rest] =
|
|
40
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
37
41
|
const isFilled = isSelected || isIndeterminate;
|
|
38
42
|
const mark = _nullishCoalesce(children, () => ( (isIndeterminate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dash, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Check, {}))));
|
|
39
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 }) });
|
|
@@ -56,7 +60,7 @@ function Dash() {
|
|
|
56
60
|
var CheckboxLabel = _react.forwardRef.call(void 0,
|
|
57
61
|
function CheckboxLabel2({ children, style, ...props }, ref) {
|
|
58
62
|
const { labelStyle } = useCheckbox();
|
|
59
|
-
const [styleProps, rest] =
|
|
63
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
60
64
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, style: [labelStyle, styleProps, style], ...rest, children });
|
|
61
65
|
}
|
|
62
66
|
);
|
|
@@ -246,8 +250,8 @@ var CheckboxRoot = _react.forwardRef.call(void 0, function Checkbox({
|
|
|
246
250
|
...props
|
|
247
251
|
}, ref) {
|
|
248
252
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
249
|
-
const [styleProps, rest] =
|
|
250
|
-
const [isPressed, press] =
|
|
253
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
254
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
251
255
|
const [selected, setSelected] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
252
256
|
value: isSelected,
|
|
253
257
|
defaultValue: defaultSelected,
|
|
@@ -293,13 +297,13 @@ var CheckboxRoot = _react.forwardRef.call(void 0, function Checkbox({
|
|
|
293
297
|
styleProps,
|
|
294
298
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
295
299
|
];
|
|
296
|
-
const text =
|
|
300
|
+
const text = _chunkZP2E2H2Gcjs.childrenToString.call(void 0, children);
|
|
297
301
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
298
302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxIndicator, {}),
|
|
299
303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxLabel, { children: text })
|
|
300
304
|
] }) : _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxIndicator, {})));
|
|
301
305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
-
|
|
306
|
+
_chunkGPVNCJ3Zcjs.PressableFeedback,
|
|
303
307
|
{
|
|
304
308
|
ref,
|
|
305
309
|
isPressed,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRecipe
|
|
3
3
|
} from "./chunk-4GTAZM2C.js";
|
|
4
|
-
import {
|
|
5
|
-
Slot,
|
|
6
|
-
useStyleProps
|
|
7
|
-
} from "./chunk-PMO62QK4.js";
|
|
8
4
|
import {
|
|
9
5
|
useXAUITheme
|
|
10
6
|
} from "./chunk-A3EGFI6T.js";
|
|
7
|
+
import {
|
|
8
|
+
Slot
|
|
9
|
+
} from "./chunk-E2CWBQTV.js";
|
|
10
|
+
import {
|
|
11
|
+
useStyleProps
|
|
12
|
+
} from "./chunk-URSKA2VR.js";
|
|
11
13
|
|
|
12
14
|
// src/components/typography/typography.tsx
|
|
13
15
|
import { forwardRef } from "react";
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CloseButton,
|
|
3
3
|
closeButtonBase
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V4WDMM6Z.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3FV4COTM.js";
|
|
8
8
|
import {
|
|
9
9
|
createRecipe,
|
|
10
10
|
radiusAxis
|
|
11
11
|
} from "./chunk-4GTAZM2C.js";
|
|
12
|
+
import {
|
|
13
|
+
useXAUITheme
|
|
14
|
+
} from "./chunk-A3EGFI6T.js";
|
|
12
15
|
import {
|
|
13
16
|
Slot,
|
|
14
17
|
childrenToString,
|
|
15
|
-
createSlotContext
|
|
16
|
-
|
|
17
|
-
} from "./chunk-PMO62QK4.js";
|
|
18
|
+
createSlotContext
|
|
19
|
+
} from "./chunk-E2CWBQTV.js";
|
|
18
20
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
useStyleProps
|
|
22
|
+
} from "./chunk-URSKA2VR.js";
|
|
21
23
|
|
|
22
24
|
// src/components/alert/alert-close.tsx
|
|
23
25
|
import { forwardRef } from "react";
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
6
7
|
|
|
7
|
-
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
8
8
|
|
|
9
|
+
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
|
|
12
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
11
13
|
|
|
12
14
|
// src/components/typography/typography.tsx
|
|
13
15
|
var _react = require('react');
|
|
@@ -74,12 +76,12 @@ var typographyRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
74
76
|
var _jsxruntime = require('react/jsx-runtime');
|
|
75
77
|
var Typography = _react.forwardRef.call(void 0, function Typography2({ children, variant, color, asChild = false, style, ...props }, ref) {
|
|
76
78
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
77
|
-
const [styleProps, rest] =
|
|
79
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
78
80
|
const selection = { variant };
|
|
79
81
|
const styles = typographyRecipe.resolve({ theme, selection });
|
|
80
82
|
const tint = color ? typographyRecipe.tint({ theme, color, selection }) : void 0;
|
|
81
83
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), styleProps, style];
|
|
82
|
-
const Root = asChild ?
|
|
84
|
+
const Root = asChild ? _chunkZP2E2H2Gcjs.Slot : _reactnative.Text;
|
|
83
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: rootStyle, ...rest, children });
|
|
84
86
|
});
|
|
85
87
|
Typography.displayName = "XAUI.Typography";
|
|
@@ -89,8 +91,8 @@ Typography.displayName = "XAUI.Typography";
|
|
|
89
91
|
|
|
90
92
|
|
|
91
93
|
var TextSpan = _react.forwardRef.call(void 0, function TextSpan2({ children, asChild = false, style, ...props }, ref) {
|
|
92
|
-
const [styleProps, rest] =
|
|
93
|
-
const Root = asChild ?
|
|
94
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
95
|
+
const Root = asChild ? _chunkZP2E2H2Gcjs.Slot : _reactnative.Text;
|
|
94
96
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [styleProps, style], ...rest, children });
|
|
95
97
|
});
|
|
96
98
|
TextSpan.displayName = "XAUI.TextSpan";
|
|
@@ -1,13 +1,15 @@
|
|
|
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 _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
8
10
|
|
|
9
11
|
|
|
10
|
-
var
|
|
12
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
11
13
|
|
|
12
14
|
// src/system/close-button/close-button.tsx
|
|
13
15
|
var _react = require('react');
|
|
@@ -35,15 +37,15 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
|
|
|
35
37
|
onPressOut,
|
|
36
38
|
...props
|
|
37
39
|
}, ref) {
|
|
38
|
-
const [styleProps, rest] =
|
|
39
|
-
const [isPressed, press] =
|
|
40
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
41
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
40
42
|
if (!rest.accessibilityLabel && !rest["aria-label"]) {
|
|
41
43
|
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
42
44
|
`${name}: a close button needs an \`accessibilityLabel\` \u2014 the cross is not text, and the label beside it names what is being dismissed, not the action.`
|
|
43
45
|
);
|
|
44
46
|
}
|
|
45
47
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46
|
-
|
|
48
|
+
_chunkGPVNCJ3Zcjs.PressableFeedback,
|
|
47
49
|
{
|
|
48
50
|
ref,
|
|
49
51
|
isPressed,
|
|
@@ -1,37 +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 _chunkTGZZ3RZUcjs = require('./chunk-TGZZ3RZU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
|
|
7
8
|
|
|
8
|
-
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
9
9
|
|
|
10
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
var _chunkWR7YLDVVcjs = require('./chunk-WR7YLDVV.cjs');
|
|
12
14
|
|
|
13
15
|
|
|
14
|
-
var
|
|
16
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
19
21
|
|
|
20
22
|
|
|
23
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
21
24
|
|
|
22
25
|
|
|
23
26
|
|
|
24
|
-
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
25
27
|
|
|
28
|
+
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
|
|
31
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
28
32
|
|
|
29
33
|
// src/components/chip/chip-avatar.tsx
|
|
30
34
|
var _react = require('react');
|
|
31
35
|
var _reactnative = require('react-native');
|
|
32
36
|
|
|
33
37
|
// src/components/chip/chip.context.ts
|
|
34
|
-
var [ChipProvider, useChip] =
|
|
38
|
+
var [ChipProvider, useChip] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "Chip");
|
|
35
39
|
|
|
36
40
|
// src/components/chip/chip.style.ts
|
|
37
41
|
|
|
@@ -43,7 +47,7 @@ var chipSheet = _reactnative.StyleSheet.create({
|
|
|
43
47
|
var _jsxruntime = require('react/jsx-runtime');
|
|
44
48
|
var ChipAvatar = _react.forwardRef.call(void 0, function ChipAvatar2({ children, source, style, ...props }, ref) {
|
|
45
49
|
const { avatarStyle } = useChip();
|
|
46
|
-
const [styleProps, rest] =
|
|
50
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
47
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 });
|
|
48
52
|
});
|
|
49
53
|
ChipAvatar.displayName = "XAUI.Chip.Avatar";
|
|
@@ -54,7 +58,7 @@ ChipAvatar.displayName = "XAUI.Chip.Avatar";
|
|
|
54
58
|
var ChipClose = _react.forwardRef.call(void 0, function ChipClose2({ isDisabled, ...props }, ref) {
|
|
55
59
|
const { closeStyle, closeGlyphStyle, isDisabled: isChipDisabled } = useChip();
|
|
56
60
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
57
|
-
|
|
61
|
+
_chunkTGZZ3RZUcjs.CloseButton,
|
|
58
62
|
{
|
|
59
63
|
ref,
|
|
60
64
|
name: "Chip.Close",
|
|
@@ -73,7 +77,7 @@ ChipClose.displayName = "XAUI.Chip.Close";
|
|
|
73
77
|
|
|
74
78
|
var ChipDot = _react.forwardRef.call(void 0, function ChipDot2({ style, ...props }, ref) {
|
|
75
79
|
const { dotStyle } = useChip();
|
|
76
|
-
const [styleProps, rest] =
|
|
80
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
77
81
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [dotStyle, styleProps, style], ...rest });
|
|
78
82
|
});
|
|
79
83
|
ChipDot.displayName = "XAUI.Chip.Dot";
|
|
@@ -82,7 +86,7 @@ ChipDot.displayName = "XAUI.Chip.Dot";
|
|
|
82
86
|
|
|
83
87
|
function ChipIcon({ size, color, ...rest }) {
|
|
84
88
|
const { icon } = useChip();
|
|
85
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
89
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWR7YLDVVcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
86
90
|
}
|
|
87
91
|
ChipIcon.displayName = "XAUI.Chip.Icon";
|
|
88
92
|
|
|
@@ -92,7 +96,7 @@ ChipIcon.displayName = "XAUI.Chip.Icon";
|
|
|
92
96
|
|
|
93
97
|
var ChipLabel = _react.forwardRef.call(void 0, function ChipLabel2({ children, style, numberOfLines = 1, ...props }, ref) {
|
|
94
98
|
const { labelStyle } = useChip();
|
|
95
|
-
const [styleProps, rest] =
|
|
99
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
96
100
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
97
101
|
_reactnative.Text,
|
|
98
102
|
{
|
|
@@ -238,7 +242,7 @@ var chipRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
238
242
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
239
243
|
// `CloseButton`; what stays below is the box and bar size this component's scale sets.
|
|
240
244
|
base: (theme) => ({
|
|
241
|
-
...
|
|
245
|
+
..._chunkTGZZ3RZUcjs.closeButtonBase.call(void 0, theme),
|
|
242
246
|
root: {
|
|
243
247
|
// A chip hugs its content where a `Button` fills its column. The difference is what
|
|
244
248
|
// the two are: a button is a control the layout sizes, a chip is a token *about*
|
|
@@ -330,8 +334,8 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
330
334
|
...props
|
|
331
335
|
}, ref) {
|
|
332
336
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
333
|
-
const [styleProps, rest] =
|
|
334
|
-
const [isPressed, press] =
|
|
337
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
338
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
335
339
|
const selection = { variant, size, radius };
|
|
336
340
|
const states = { pressed: isPressed, disabled: isDisabled };
|
|
337
341
|
const styles = chipRecipe.resolve({ theme, selection, states });
|
|
@@ -359,7 +363,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
359
363
|
styleProps,
|
|
360
364
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
361
365
|
];
|
|
362
|
-
const text =
|
|
366
|
+
const text = _chunkZP2E2H2Gcjs.childrenToString.call(void 0, children);
|
|
363
367
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChipLabel, { children: text }) : children;
|
|
364
368
|
if (!isPressable && !asChild && (onPressIn || onPressOut || rest.onPress || rest.onLongPress)) {
|
|
365
369
|
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
@@ -367,7 +371,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
367
371
|
);
|
|
368
372
|
}
|
|
369
373
|
const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
370
|
-
|
|
374
|
+
_chunkGPVNCJ3Zcjs.PressableFeedback,
|
|
371
375
|
{
|
|
372
376
|
ref,
|
|
373
377
|
isPressed,
|
|
@@ -386,7 +390,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
386
390
|
// R12 — the caller's element is the chip, so it takes the children it was written
|
|
387
391
|
// with and the auto-wrap does not apply.
|
|
388
392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
389
|
-
|
|
393
|
+
_chunkZP2E2H2Gcjs.Slot,
|
|
390
394
|
{
|
|
391
395
|
ref,
|
|
392
396
|
accessibilityRole,
|