@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,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(); } } 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 _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
4
4
|
|
|
5
5
|
// src/system/slot/create-slot-context.ts
|
|
6
6
|
var _react = require('react');
|
|
@@ -24,16 +24,6 @@ function createSlotContext(name) {
|
|
|
24
24
|
return [Context.Provider, useSlotContext];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// src/system/slot/merge-refs.ts
|
|
28
|
-
function mergeRefs(...refs) {
|
|
29
|
-
return (value) => {
|
|
30
|
-
for (const ref of refs) {
|
|
31
|
-
if (typeof ref === "function") ref(value);
|
|
32
|
-
else if (ref) ref.current = value;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
27
|
// src/system/slot/merge-props.ts
|
|
38
28
|
var EVENT_HANDLER = /^on[A-Z]/;
|
|
39
29
|
function mergeProps(ours, theirs) {
|
|
@@ -46,7 +36,7 @@ function mergeProps(ours, theirs) {
|
|
|
46
36
|
} else if (key === "style") {
|
|
47
37
|
merged[key] = mergeStyles(ourValue, theirValue);
|
|
48
38
|
} else if (key === "ref") {
|
|
49
|
-
merged[key] = mergeRefs(
|
|
39
|
+
merged[key] = _chunkGLGU2WFLcjs.mergeRefs.call(void 0,
|
|
50
40
|
ourValue,
|
|
51
41
|
theirValue
|
|
52
42
|
);
|
|
@@ -88,7 +78,7 @@ var Slot = _react.forwardRef.call(void 0, function Slot2({ children, ...ours },
|
|
|
88
78
|
}
|
|
89
79
|
const child = children;
|
|
90
80
|
const merged = mergeProps(ours, child.props);
|
|
91
|
-
merged.ref = mergeRefs(ref, refOf(child));
|
|
81
|
+
merged.ref = _chunkGLGU2WFLcjs.mergeRefs.call(void 0, ref, refOf(child));
|
|
92
82
|
return _react.cloneElement.call(void 0, child, merged);
|
|
93
83
|
});
|
|
94
84
|
Slot.displayName = "XAUI.Slot";
|
|
@@ -98,178 +88,6 @@ function refOf(element) {
|
|
|
98
88
|
return _nullishCoalesce(fromProps, () => ( fromElement));
|
|
99
89
|
}
|
|
100
90
|
|
|
101
|
-
// src/system/style-props/use-style-props.ts
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
// src/utils/style-props.ts
|
|
105
|
-
var STYLE_PROP_KEYS = [
|
|
106
|
-
// Flex and layout
|
|
107
|
-
"alignContent",
|
|
108
|
-
"alignItems",
|
|
109
|
-
"alignSelf",
|
|
110
|
-
"aspectRatio",
|
|
111
|
-
"boxSizing",
|
|
112
|
-
"columnGap",
|
|
113
|
-
"direction",
|
|
114
|
-
"display",
|
|
115
|
-
"flex",
|
|
116
|
-
"flexBasis",
|
|
117
|
-
"flexDirection",
|
|
118
|
-
"flexGrow",
|
|
119
|
-
"flexShrink",
|
|
120
|
-
"flexWrap",
|
|
121
|
-
"gap",
|
|
122
|
-
"justifyContent",
|
|
123
|
-
"overflow",
|
|
124
|
-
"rowGap",
|
|
125
|
-
// Position
|
|
126
|
-
"bottom",
|
|
127
|
-
"end",
|
|
128
|
-
"inset",
|
|
129
|
-
"insetBlock",
|
|
130
|
-
"insetBlockEnd",
|
|
131
|
-
"insetBlockStart",
|
|
132
|
-
"insetInline",
|
|
133
|
-
"insetInlineEnd",
|
|
134
|
-
"insetInlineStart",
|
|
135
|
-
"position",
|
|
136
|
-
"start",
|
|
137
|
-
"top",
|
|
138
|
-
"zIndex",
|
|
139
|
-
// Margin
|
|
140
|
-
"margin",
|
|
141
|
-
"marginBlock",
|
|
142
|
-
"marginBlockEnd",
|
|
143
|
-
"marginBlockStart",
|
|
144
|
-
"marginBottom",
|
|
145
|
-
"marginEnd",
|
|
146
|
-
"marginHorizontal",
|
|
147
|
-
"marginInline",
|
|
148
|
-
"marginInlineEnd",
|
|
149
|
-
"marginInlineStart",
|
|
150
|
-
"marginStart",
|
|
151
|
-
"marginTop",
|
|
152
|
-
"marginVertical",
|
|
153
|
-
// Padding
|
|
154
|
-
"padding",
|
|
155
|
-
"paddingBlock",
|
|
156
|
-
"paddingBlockEnd",
|
|
157
|
-
"paddingBlockStart",
|
|
158
|
-
"paddingBottom",
|
|
159
|
-
"paddingEnd",
|
|
160
|
-
"paddingHorizontal",
|
|
161
|
-
"paddingInline",
|
|
162
|
-
"paddingInlineEnd",
|
|
163
|
-
"paddingInlineStart",
|
|
164
|
-
"paddingStart",
|
|
165
|
-
"paddingTop",
|
|
166
|
-
"paddingVertical",
|
|
167
|
-
// Size
|
|
168
|
-
"height",
|
|
169
|
-
"maxHeight",
|
|
170
|
-
"maxWidth",
|
|
171
|
-
"minHeight",
|
|
172
|
-
"minWidth",
|
|
173
|
-
"width",
|
|
174
|
-
// Border
|
|
175
|
-
"borderBlockColor",
|
|
176
|
-
"borderBlockEndColor",
|
|
177
|
-
"borderBlockStartColor",
|
|
178
|
-
"borderBottomColor",
|
|
179
|
-
"borderBottomEndRadius",
|
|
180
|
-
"borderBottomStartRadius",
|
|
181
|
-
"borderBottomWidth",
|
|
182
|
-
"borderColor",
|
|
183
|
-
"borderCurve",
|
|
184
|
-
"borderEndColor",
|
|
185
|
-
"borderEndEndRadius",
|
|
186
|
-
"borderEndStartRadius",
|
|
187
|
-
"borderEndWidth",
|
|
188
|
-
"borderRadius",
|
|
189
|
-
"borderStartColor",
|
|
190
|
-
"borderStartEndRadius",
|
|
191
|
-
"borderStartStartRadius",
|
|
192
|
-
"borderStartWidth",
|
|
193
|
-
"borderStyle",
|
|
194
|
-
"borderTopColor",
|
|
195
|
-
"borderTopEndRadius",
|
|
196
|
-
"borderTopStartRadius",
|
|
197
|
-
"borderTopWidth",
|
|
198
|
-
"borderWidth",
|
|
199
|
-
// Fill, shadow, and the rest of a box's paint
|
|
200
|
-
"backfaceVisibility",
|
|
201
|
-
"backgroundColor",
|
|
202
|
-
"boxShadow",
|
|
203
|
-
"cursor",
|
|
204
|
-
"elevation",
|
|
205
|
-
"experimental_backgroundImage",
|
|
206
|
-
"filter",
|
|
207
|
-
"isolation",
|
|
208
|
-
"mixBlendMode",
|
|
209
|
-
"opacity",
|
|
210
|
-
"outlineColor",
|
|
211
|
-
"outlineOffset",
|
|
212
|
-
"outlineStyle",
|
|
213
|
-
"outlineWidth",
|
|
214
|
-
"shadowColor",
|
|
215
|
-
"shadowOffset",
|
|
216
|
-
"shadowOpacity",
|
|
217
|
-
"shadowRadius",
|
|
218
|
-
// Transform
|
|
219
|
-
"rotation",
|
|
220
|
-
"scaleX",
|
|
221
|
-
"scaleY",
|
|
222
|
-
"transform",
|
|
223
|
-
"transformMatrix",
|
|
224
|
-
"transformOrigin",
|
|
225
|
-
"translateX",
|
|
226
|
-
"translateY",
|
|
227
|
-
// Text — a text slot only
|
|
228
|
-
"color",
|
|
229
|
-
"fontFamily",
|
|
230
|
-
"fontSize",
|
|
231
|
-
"fontStyle",
|
|
232
|
-
"fontVariant",
|
|
233
|
-
"fontWeight",
|
|
234
|
-
"includeFontPadding",
|
|
235
|
-
"letterSpacing",
|
|
236
|
-
"lineHeight",
|
|
237
|
-
"textAlign",
|
|
238
|
-
"textAlignVertical",
|
|
239
|
-
"textDecorationColor",
|
|
240
|
-
"textDecorationLine",
|
|
241
|
-
"textDecorationStyle",
|
|
242
|
-
"textShadowColor",
|
|
243
|
-
"textShadowOffset",
|
|
244
|
-
"textShadowRadius",
|
|
245
|
-
"textTransform",
|
|
246
|
-
"userSelect",
|
|
247
|
-
"verticalAlign",
|
|
248
|
-
"writingDirection",
|
|
249
|
-
// Image — an image slot only
|
|
250
|
-
"objectFit",
|
|
251
|
-
"overlayColor",
|
|
252
|
-
"resizeMode",
|
|
253
|
-
"tintColor"
|
|
254
|
-
];
|
|
255
|
-
var STYLE_PROP_KEY_SET = new Set(STYLE_PROP_KEYS);
|
|
256
|
-
function splitStyleProps(props) {
|
|
257
|
-
const styleProps = {};
|
|
258
|
-
const rest = {};
|
|
259
|
-
for (const [key, value] of Object.entries(props)) {
|
|
260
|
-
if (STYLE_PROP_KEY_SET.has(key)) styleProps[key] = value;
|
|
261
|
-
else rest[key] = value;
|
|
262
|
-
}
|
|
263
|
-
return [styleProps, rest];
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// src/system/style-props/use-style-props.ts
|
|
267
|
-
function useStyleProps(props) {
|
|
268
|
-
const [styleProps, rest] = splitStyleProps(props);
|
|
269
|
-
const key = _chunkMC7SY2QHcjs.stableHash.call(void 0, styleProps);
|
|
270
|
-
return [_react.useMemo.call(void 0, () => styleProps, [key]), rest];
|
|
271
|
-
}
|
|
272
|
-
|
|
273
91
|
// src/system/slot/children-to-string.ts
|
|
274
92
|
|
|
275
93
|
function childrenToString(children) {
|
|
@@ -298,6 +116,4 @@ function stringify(node) {
|
|
|
298
116
|
|
|
299
117
|
|
|
300
118
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
exports.createSlotContext = createSlotContext; exports.mergeRefs = mergeRefs; exports.mergeProps = mergeProps; exports.Slot = Slot; exports.useStyleProps = useStyleProps; exports.childrenToString = childrenToString;
|
|
119
|
+
exports.createSlotContext = createSlotContext; exports.mergeProps = mergeProps; exports.Slot = Slot; exports.childrenToString = childrenToString;
|
|
@@ -36,18 +36,20 @@ function _optionalChain(ops) {
|
|
|
36
36
|
}
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
|
+
var _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
|
|
40
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
39
41
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
40
|
-
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
41
42
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
42
|
-
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
43
43
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
44
|
+
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
45
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
44
46
|
|
|
45
47
|
// src/components/switch/switch-label.tsx
|
|
46
48
|
var _react = require('react');
|
|
47
49
|
var _reactnative = require('react-native');
|
|
48
50
|
|
|
49
51
|
// src/components/switch/switch.context.ts
|
|
50
|
-
var [SwitchProvider, useSwitch] =
|
|
52
|
+
var [SwitchProvider, useSwitch] = _chunkZP2E2H2Gcjs.createSlotContext.call(void 0, "Switch");
|
|
51
53
|
|
|
52
54
|
// src/components/switch/switch-label.tsx
|
|
53
55
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -59,7 +61,7 @@ var SwitchLabel = _react.forwardRef.call(void 0, function SwitchLabel2({
|
|
|
59
61
|
const {
|
|
60
62
|
labelStyle
|
|
61
63
|
} = useSwitch();
|
|
62
|
-
const [styleProps, rest] =
|
|
64
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
63
65
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
64
66
|
ref,
|
|
65
67
|
style: [labelStyle, styleProps, style],
|
|
@@ -91,7 +93,7 @@ var SwitchThumb = _react.forwardRef.call(void 0, function SwitchThumb2({
|
|
|
91
93
|
travel,
|
|
92
94
|
isSelected
|
|
93
95
|
} = useSwitch();
|
|
94
|
-
const [styleProps, rest] =
|
|
96
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
95
97
|
const base = [thumbStyle, styleProps, style];
|
|
96
98
|
const distance = _reactnative.I18nManager.isRTL ? -travel : travel;
|
|
97
99
|
if (!animation) {
|
|
@@ -118,15 +120,15 @@ var SwitchThumb = _react.forwardRef.call(void 0, function SwitchThumb2({
|
|
|
118
120
|
});
|
|
119
121
|
});
|
|
120
122
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
121
|
-
const
|
|
122
|
-
code: "function
|
|
123
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
124
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
123
|
+
const _worklet_16276152513461_init_data = {
|
|
124
|
+
code: "function chunkZSLNGBDSCjs1(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
125
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs",
|
|
126
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZSLNGBDSCjs1\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs\"],\"mappings\":\"AA4FuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
125
127
|
};
|
|
126
|
-
const
|
|
127
|
-
code: "function
|
|
128
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
129
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
128
|
+
const _worklet_5216805331007_init_data = {
|
|
129
|
+
code: "function chunkZSLNGBDSCjs2(){const{progress,distance,_reactnativereanimated,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
130
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs",
|
|
131
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZSLNGBDSCjs2\",\"progress\",\"distance\",\"_reactnativereanimated\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"interpolateColor\",\"call\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs\"],\"mappings\":\"AAgG6E,SAAAA,iBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,sBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,sBAAsB,CAACO,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEV,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACQ,GAAG,CAAER,MAAM,CAACS,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
130
132
|
};
|
|
131
133
|
var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
132
134
|
style,
|
|
@@ -136,43 +138,43 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
136
138
|
children,
|
|
137
139
|
...rest
|
|
138
140
|
}, ref) {
|
|
139
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
140
|
-
|
|
141
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunkZSLNGBDSCjs1Factory({
|
|
142
|
+
_worklet_16276152513461_init_data,
|
|
141
143
|
_reactnativereanimated,
|
|
142
144
|
isSelected,
|
|
143
145
|
SWITCH_DURATION
|
|
144
146
|
}) {
|
|
145
147
|
const _e = [new global.Error(), -4, -27];
|
|
146
|
-
const
|
|
148
|
+
const chunkZSLNGBDSCjs1 = function () {
|
|
147
149
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
148
150
|
duration: SWITCH_DURATION
|
|
149
151
|
});
|
|
150
152
|
};
|
|
151
|
-
|
|
153
|
+
chunkZSLNGBDSCjs1.__closure = {
|
|
152
154
|
_reactnativereanimated,
|
|
153
155
|
isSelected,
|
|
154
156
|
SWITCH_DURATION
|
|
155
157
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return
|
|
158
|
+
chunkZSLNGBDSCjs1.__workletHash = 16276152513461;
|
|
159
|
+
chunkZSLNGBDSCjs1.__pluginVersion = "0.7.4";
|
|
160
|
+
chunkZSLNGBDSCjs1.__initData = _worklet_16276152513461_init_data;
|
|
161
|
+
chunkZSLNGBDSCjs1.__stackDetails = _e;
|
|
162
|
+
return chunkZSLNGBDSCjs1;
|
|
161
163
|
}({
|
|
162
|
-
|
|
164
|
+
_worklet_16276152513461_init_data,
|
|
163
165
|
_reactnativereanimated,
|
|
164
166
|
isSelected,
|
|
165
167
|
SWITCH_DURATION
|
|
166
168
|
}), [isSelected]);
|
|
167
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
168
|
-
|
|
169
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkZSLNGBDSCjs2Factory({
|
|
170
|
+
_worklet_5216805331007_init_data,
|
|
169
171
|
progress,
|
|
170
172
|
distance,
|
|
171
173
|
_reactnativereanimated,
|
|
172
174
|
colors
|
|
173
175
|
}) {
|
|
174
176
|
const _e = [new global.Error(), -5, -27];
|
|
175
|
-
const
|
|
177
|
+
const chunkZSLNGBDSCjs2 = function () {
|
|
176
178
|
return {
|
|
177
179
|
transform: [{
|
|
178
180
|
translateX: progress.value * distance
|
|
@@ -180,19 +182,19 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
180
182
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
181
183
|
};
|
|
182
184
|
};
|
|
183
|
-
|
|
185
|
+
chunkZSLNGBDSCjs2.__closure = {
|
|
184
186
|
progress,
|
|
185
187
|
distance,
|
|
186
188
|
_reactnativereanimated,
|
|
187
189
|
colors
|
|
188
190
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
return
|
|
191
|
+
chunkZSLNGBDSCjs2.__workletHash = 5216805331007;
|
|
192
|
+
chunkZSLNGBDSCjs2.__pluginVersion = "0.7.4";
|
|
193
|
+
chunkZSLNGBDSCjs2.__initData = _worklet_5216805331007_init_data;
|
|
194
|
+
chunkZSLNGBDSCjs2.__stackDetails = _e;
|
|
195
|
+
return chunkZSLNGBDSCjs2;
|
|
194
196
|
}({
|
|
195
|
-
|
|
197
|
+
_worklet_5216805331007_init_data,
|
|
196
198
|
progress,
|
|
197
199
|
distance,
|
|
198
200
|
_reactnativereanimated,
|
|
@@ -219,7 +221,7 @@ var SwitchTrack = _react.forwardRef.call(void 0, function SwitchTrack2({
|
|
|
219
221
|
track,
|
|
220
222
|
isSelected
|
|
221
223
|
} = useSwitch();
|
|
222
|
-
const [styleProps, rest] =
|
|
224
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
223
225
|
const base = [trackStyle, styleProps, style];
|
|
224
226
|
if (!animation) {
|
|
225
227
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
@@ -241,15 +243,15 @@ var SwitchTrack = _react.forwardRef.call(void 0, function SwitchTrack2({
|
|
|
241
243
|
});
|
|
242
244
|
});
|
|
243
245
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
244
|
-
const
|
|
245
|
-
code: "function
|
|
246
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
247
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
246
|
+
const _worklet_13191070216695_init_data = {
|
|
247
|
+
code: "function chunkZSLNGBDSCjs3(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
248
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs",
|
|
249
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZSLNGBDSCjs3\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs\"],\"mappings\":\"AAqJuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
248
250
|
};
|
|
249
|
-
const
|
|
250
|
-
code: "function
|
|
251
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
252
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
251
|
+
const _worklet_8094693777497_init_data = {
|
|
252
|
+
code: "function chunkZSLNGBDSCjs4(){const{_reactnativereanimated,progress,colors}=this.__closure;return{backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
253
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs",
|
|
254
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZSLNGBDSCjs4\",\"_reactnativereanimated\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"interpolateColor\",\"call\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZSLNGBDS.cjs\"],\"mappings\":\"AAyJ6E,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,eAAe,CAAEJ,sBAAsB,CAACK,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEL,QAAQ,CAACM,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACL,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
253
255
|
};
|
|
254
256
|
var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2({
|
|
255
257
|
style,
|
|
@@ -258,58 +260,58 @@ var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2
|
|
|
258
260
|
children,
|
|
259
261
|
...rest
|
|
260
262
|
}, ref) {
|
|
261
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
262
|
-
|
|
263
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunkZSLNGBDSCjs3Factory({
|
|
264
|
+
_worklet_13191070216695_init_data,
|
|
263
265
|
_reactnativereanimated,
|
|
264
266
|
isSelected,
|
|
265
267
|
SWITCH_DURATION
|
|
266
268
|
}) {
|
|
267
269
|
const _e = [new global.Error(), -4, -27];
|
|
268
|
-
const
|
|
270
|
+
const chunkZSLNGBDSCjs3 = function () {
|
|
269
271
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
270
272
|
duration: SWITCH_DURATION
|
|
271
273
|
});
|
|
272
274
|
};
|
|
273
|
-
|
|
275
|
+
chunkZSLNGBDSCjs3.__closure = {
|
|
274
276
|
_reactnativereanimated,
|
|
275
277
|
isSelected,
|
|
276
278
|
SWITCH_DURATION
|
|
277
279
|
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
return
|
|
280
|
+
chunkZSLNGBDSCjs3.__workletHash = 13191070216695;
|
|
281
|
+
chunkZSLNGBDSCjs3.__pluginVersion = "0.7.4";
|
|
282
|
+
chunkZSLNGBDSCjs3.__initData = _worklet_13191070216695_init_data;
|
|
283
|
+
chunkZSLNGBDSCjs3.__stackDetails = _e;
|
|
284
|
+
return chunkZSLNGBDSCjs3;
|
|
283
285
|
}({
|
|
284
|
-
|
|
286
|
+
_worklet_13191070216695_init_data,
|
|
285
287
|
_reactnativereanimated,
|
|
286
288
|
isSelected,
|
|
287
289
|
SWITCH_DURATION
|
|
288
290
|
}), [isSelected]);
|
|
289
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
290
|
-
|
|
291
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkZSLNGBDSCjs4Factory({
|
|
292
|
+
_worklet_8094693777497_init_data,
|
|
291
293
|
_reactnativereanimated,
|
|
292
294
|
progress,
|
|
293
295
|
colors
|
|
294
296
|
}) {
|
|
295
297
|
const _e = [new global.Error(), -4, -27];
|
|
296
|
-
const
|
|
298
|
+
const chunkZSLNGBDSCjs4 = function () {
|
|
297
299
|
return {
|
|
298
300
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
299
301
|
};
|
|
300
302
|
};
|
|
301
|
-
|
|
303
|
+
chunkZSLNGBDSCjs4.__closure = {
|
|
302
304
|
_reactnativereanimated,
|
|
303
305
|
progress,
|
|
304
306
|
colors
|
|
305
307
|
};
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
return
|
|
308
|
+
chunkZSLNGBDSCjs4.__workletHash = 8094693777497;
|
|
309
|
+
chunkZSLNGBDSCjs4.__pluginVersion = "0.7.4";
|
|
310
|
+
chunkZSLNGBDSCjs4.__initData = _worklet_8094693777497_init_data;
|
|
311
|
+
chunkZSLNGBDSCjs4.__stackDetails = _e;
|
|
312
|
+
return chunkZSLNGBDSCjs4;
|
|
311
313
|
}({
|
|
312
|
-
|
|
314
|
+
_worklet_8094693777497_init_data,
|
|
313
315
|
_reactnativereanimated,
|
|
314
316
|
progress,
|
|
315
317
|
colors
|
|
@@ -573,8 +575,8 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
573
575
|
...props
|
|
574
576
|
}, ref) {
|
|
575
577
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
|
|
576
|
-
const [styleProps, rest] =
|
|
577
|
-
const [isPressed, press] =
|
|
578
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
579
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
|
|
578
580
|
onPressIn,
|
|
579
581
|
onPressOut
|
|
580
582
|
});
|
|
@@ -636,7 +638,7 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
636
638
|
const rootStyle = [styles.root, styleProps, typeof style === "function" ? style({
|
|
637
639
|
pressed: isPressed
|
|
638
640
|
}) : style];
|
|
639
|
-
const text =
|
|
641
|
+
const text = _chunkZP2E2H2Gcjs.childrenToString.call(void 0, children);
|
|
640
642
|
const content = text !== null ? /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
|
|
641
643
|
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchTrack, {
|
|
642
644
|
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchThumb, {})
|
|
@@ -648,7 +650,7 @@ var SwitchRoot = _react.forwardRef.call(void 0, function Switch({
|
|
|
648
650
|
})));
|
|
649
651
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, SwitchProvider, {
|
|
650
652
|
value: context,
|
|
651
|
-
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
653
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGPVNCJ3Zcjs.PressableFeedback, {
|
|
652
654
|
ref,
|
|
653
655
|
isPressed,
|
|
654
656
|
isDisabled,
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
5
|
+
var _chunkN527BTY4cjs = require('../../chunk-N527BTY4.cjs');
|
|
6
|
+
require('../../chunk-TGZZ3RZU.cjs');
|
|
7
|
+
require('../../chunk-GPVNCJ3Z.cjs');
|
|
8
|
+
require('../../chunk-7DPL3ZDS.cjs');
|
|
9
|
+
require('../../chunk-WR7YLDVV.cjs');
|
|
8
10
|
require('../../chunk-EJQCQPET.cjs');
|
|
9
|
-
require('../../chunk-B4W2XNBP.cjs');
|
|
10
11
|
require('../../chunk-FNEUOBCV.cjs');
|
|
11
|
-
require('../../chunk-HUZ4AUM2.cjs');
|
|
12
12
|
require('../../chunk-57SJ4LJF.cjs');
|
|
13
|
+
require('../../chunk-ZP2E2H2G.cjs');
|
|
14
|
+
require('../../chunk-GLGU2WFL.cjs');
|
|
13
15
|
require('../../chunk-MC7SY2QH.cjs');
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
|
|
18
|
-
exports.Alert =
|
|
20
|
+
exports.Alert = _chunkN527BTY4cjs.Alert; exports.alertRecipe = _chunkN527BTY4cjs.alertRecipe; exports.useAlert = _chunkN527BTY4cjs.useAlert;
|
|
@@ -4,9 +4,9 @@ import * as react_native from 'react-native';
|
|
|
4
4
|
import { StyleProp, ViewStyle, TextStyle, ViewProps, TextProps } from 'react-native';
|
|
5
5
|
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
6
6
|
import { S as Size, R as RadiusKey, X as XAUITheme } from '../../theme.type-C2gNHpEx.cjs';
|
|
7
|
-
import {
|
|
7
|
+
import { I as IconContextValue, a as IconProps } from '../../icon.type-d_i9ma-i.cjs';
|
|
8
8
|
import { C as CloseButtonProps } from '../../close-button.type-CHsgZ3wO.cjs';
|
|
9
|
-
import { R as Recipe,
|
|
9
|
+
import { R as Recipe, S as SlotStyles, a as StyleFn } from '../../create-recipe-dC7wMfnj.cjs';
|
|
10
10
|
import '../../pressable-feedback.type-BA2C9sSz.cjs';
|
|
11
11
|
import 'react-native-reanimated';
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@ import * as react_native from 'react-native';
|
|
|
4
4
|
import { StyleProp, ViewStyle, TextStyle, ViewProps, TextProps } from 'react-native';
|
|
5
5
|
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.js';
|
|
6
6
|
import { S as Size, R as RadiusKey, X as XAUITheme } from '../../theme.type-C2gNHpEx.js';
|
|
7
|
-
import {
|
|
7
|
+
import { I as IconContextValue, a as IconProps } from '../../icon.type-Kml72iSz.js';
|
|
8
8
|
import { C as CloseButtonProps } from '../../close-button.type-BUYuoSt2.js';
|
|
9
|
-
import { R as Recipe,
|
|
9
|
+
import { R as Recipe, S as SlotStyles, a as StyleFn } from '../../create-recipe-BdVd2ffi.js';
|
|
10
10
|
import '../../pressable-feedback.type-Bs4dQlGj.js';
|
|
11
11
|
import 'react-native-reanimated';
|
|
12
12
|
|
|
@@ -2,14 +2,16 @@ import {
|
|
|
2
2
|
Alert,
|
|
3
3
|
alertRecipe,
|
|
4
4
|
useAlert
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-Q3WFY5N3.js";
|
|
6
|
+
import "../../chunk-V4WDMM6Z.js";
|
|
7
|
+
import "../../chunk-BFMTUMTU.js";
|
|
8
|
+
import "../../chunk-423RQBOX.js";
|
|
9
|
+
import "../../chunk-3FV4COTM.js";
|
|
8
10
|
import "../../chunk-EGLLDKN6.js";
|
|
9
|
-
import "../../chunk-ICR42HHG.js";
|
|
10
11
|
import "../../chunk-4GTAZM2C.js";
|
|
11
|
-
import "../../chunk-PMO62QK4.js";
|
|
12
12
|
import "../../chunk-A3EGFI6T.js";
|
|
13
|
+
import "../../chunk-E2CWBQTV.js";
|
|
14
|
+
import "../../chunk-URSKA2VR.js";
|
|
13
15
|
import "../../chunk-GGW42MY4.js";
|
|
14
16
|
export {
|
|
15
17
|
Alert,
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
5
|
+
var _chunkE4TS6632cjs = require('../../chunk-E4TS6632.cjs');
|
|
6
|
+
require('../../chunk-7XKQJQF2.cjs');
|
|
7
|
+
require('../../chunk-GPVNCJ3Z.cjs');
|
|
8
|
+
require('../../chunk-7DPL3ZDS.cjs');
|
|
9
|
+
require('../../chunk-WR7YLDVV.cjs');
|
|
10
|
+
require('../../chunk-7EIHHOHP.cjs');
|
|
7
11
|
require('../../chunk-EJQCQPET.cjs');
|
|
8
|
-
require('../../chunk-B4W2XNBP.cjs');
|
|
9
12
|
require('../../chunk-FNEUOBCV.cjs');
|
|
10
|
-
require('../../chunk-HUZ4AUM2.cjs');
|
|
11
13
|
require('../../chunk-57SJ4LJF.cjs');
|
|
14
|
+
require('../../chunk-ZP2E2H2G.cjs');
|
|
15
|
+
require('../../chunk-GLGU2WFL.cjs');
|
|
12
16
|
require('../../chunk-MC7SY2QH.cjs');
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
|
|
17
|
-
exports.Button =
|
|
21
|
+
exports.Button = _chunkE4TS6632cjs.Button; exports.buttonRecipe = _chunkE4TS6632cjs.buttonRecipe; exports.useButton = _chunkE4TS6632cjs.useButton;
|
|
@@ -5,8 +5,8 @@ import { StyleProp, TextStyle, ViewStyle, TextProps, PressableStateCallbackType
|
|
|
5
5
|
import { T as TextStyleProps, V as ViewStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
6
6
|
import { P as PressableFeedbackProps, a as AnimationProp } from '../../pressable-feedback.type-BA2C9sSz.cjs';
|
|
7
7
|
import { S as Size, R as RadiusKey, X as XAUITheme } from '../../theme.type-C2gNHpEx.cjs';
|
|
8
|
-
import {
|
|
9
|
-
import { R as Recipe,
|
|
8
|
+
import { I as IconContextValue, a as IconProps } from '../../icon.type-d_i9ma-i.cjs';
|
|
9
|
+
import { R as Recipe, S as SlotStyles, a as StyleFn } from '../../create-recipe-dC7wMfnj.cjs';
|
|
10
10
|
import 'react-native-reanimated';
|
|
11
11
|
|
|
12
12
|
type ButtonSlot = 'root' | 'label' | 'icon' | 'spinner';
|
|
@@ -129,8 +129,13 @@ declare namespace ButtonIcon {
|
|
|
129
129
|
*
|
|
130
130
|
* A ring rather than RN's `ActivityIndicator`: the recipe owns its diameter and its
|
|
131
131
|
* colour like every other measurement, which is what makes it follow the button's `size`
|
|
132
|
-
* and its variant with nothing to pass.
|
|
133
|
-
*
|
|
132
|
+
* and its variant with nothing to pass.
|
|
133
|
+
*
|
|
134
|
+
* It is not a `<Spinner>` with props, and it is the standalone component that says why:
|
|
135
|
+
* `Spinner`'s `size` is a token of its own scale and its `variant` names an ink, while
|
|
136
|
+
* everything this slot draws was already decided by the button's recipe. Handing it two
|
|
137
|
+
* raw values would be R6 in reverse — a vocabulary prop taking a computed number. What
|
|
138
|
+
* the two do share is the turn, and that is `useRotation`.
|
|
134
139
|
*/
|
|
135
140
|
declare function ButtonSpinner({ style, animation, ...props }: ButtonSpinnerProps): react.JSX.Element;
|
|
136
141
|
declare namespace ButtonSpinner {
|