tamagui 2.0.0-1768586279389 → 2.0.0-1768636514428
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/native.cjs +408 -446
- package/dist/test.cjs +408 -678
- package/package.json +57 -57
- package/dist/cjs/helpers/inputHelpers.cjs +0 -68
- package/dist/cjs/helpers/inputHelpers.js +0 -50
- package/dist/cjs/helpers/inputHelpers.js.map +0 -6
- package/dist/cjs/helpers/inputHelpers.native.js +0 -76
- package/dist/cjs/helpers/inputHelpers.native.js.map +0 -1
- package/dist/cjs/views/Input.cjs +0 -123
- package/dist/cjs/views/Input.js +0 -114
- package/dist/cjs/views/Input.js.map +0 -6
- package/dist/cjs/views/Input.native.js +0 -132
- package/dist/cjs/views/Input.native.js.map +0 -1
- package/dist/cjs/views/Skeleton.cjs +0 -0
- package/dist/cjs/views/Skeleton.js +0 -1
- package/dist/cjs/views/Skeleton.js.map +0 -6
- package/dist/cjs/views/Skeleton.native.js +0 -2
- package/dist/cjs/views/Skeleton.native.js.map +0 -1
- package/dist/cjs/views/TextArea.cjs +0 -76
- package/dist/cjs/views/TextArea.js +0 -58
- package/dist/cjs/views/TextArea.js.map +0 -6
- package/dist/cjs/views/TextArea.native.js +0 -79
- package/dist/cjs/views/TextArea.native.js.map +0 -1
- package/dist/esm/helpers/inputHelpers.js +0 -37
- package/dist/esm/helpers/inputHelpers.js.map +0 -6
- package/dist/esm/helpers/inputHelpers.mjs +0 -44
- package/dist/esm/helpers/inputHelpers.mjs.map +0 -1
- package/dist/esm/helpers/inputHelpers.native.js +0 -49
- package/dist/esm/helpers/inputHelpers.native.js.map +0 -1
- package/dist/esm/views/Input.js +0 -96
- package/dist/esm/views/Input.js.map +0 -6
- package/dist/esm/views/Input.mjs +0 -86
- package/dist/esm/views/Input.mjs.map +0 -1
- package/dist/esm/views/Input.native.js +0 -92
- package/dist/esm/views/Input.native.js.map +0 -1
- package/dist/esm/views/Skeleton.js +0 -1
- package/dist/esm/views/Skeleton.js.map +0 -6
- package/dist/esm/views/Skeleton.mjs +0 -2
- package/dist/esm/views/Skeleton.mjs.map +0 -1
- package/dist/esm/views/Skeleton.native.js +0 -2
- package/dist/esm/views/Skeleton.native.js.map +0 -1
- package/dist/esm/views/TextArea.js +0 -39
- package/dist/esm/views/TextArea.js.map +0 -6
- package/dist/esm/views/TextArea.mjs +0 -41
- package/dist/esm/views/TextArea.mjs.map +0 -1
- package/dist/esm/views/TextArea.native.js +0 -41
- package/dist/esm/views/TextArea.native.js.map +0 -1
- package/dist/jsx/helpers/inputHelpers.js +0 -37
- package/dist/jsx/helpers/inputHelpers.js.map +0 -6
- package/dist/jsx/helpers/inputHelpers.mjs +0 -44
- package/dist/jsx/helpers/inputHelpers.mjs.map +0 -1
- package/dist/jsx/helpers/inputHelpers.native.js +0 -76
- package/dist/jsx/helpers/inputHelpers.native.js.map +0 -1
- package/dist/jsx/views/Input.js +0 -96
- package/dist/jsx/views/Input.js.map +0 -6
- package/dist/jsx/views/Input.mjs +0 -86
- package/dist/jsx/views/Input.mjs.map +0 -1
- package/dist/jsx/views/Input.native.js +0 -132
- package/dist/jsx/views/Input.native.js.map +0 -1
- package/dist/jsx/views/Skeleton.js +0 -1
- package/dist/jsx/views/Skeleton.js.map +0 -6
- package/dist/jsx/views/Skeleton.mjs +0 -2
- package/dist/jsx/views/Skeleton.mjs.map +0 -1
- package/dist/jsx/views/Skeleton.native.js +0 -2
- package/dist/jsx/views/Skeleton.native.js.map +0 -1
- package/dist/jsx/views/TextArea.js +0 -39
- package/dist/jsx/views/TextArea.js.map +0 -6
- package/dist/jsx/views/TextArea.mjs +0 -41
- package/dist/jsx/views/TextArea.mjs.map +0 -1
- package/dist/jsx/views/TextArea.native.js +0 -79
- package/dist/jsx/views/TextArea.native.js.map +0 -1
- package/types/helpers/inputHelpers.d.ts.map +0 -1
- package/types/views/Input.d.ts.map +0 -1
- package/types/views/Skeleton.d.ts.map +0 -1
- package/types/views/TextArea.d.ts.map +0 -1
package/dist/test.cjs
CHANGED
|
@@ -53,6 +53,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
53
53
|
};
|
|
54
54
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
55
55
|
const React = require("react");
|
|
56
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
56
57
|
function _interopNamespaceDefault(e2) {
|
|
57
58
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
58
59
|
if (e2) {
|
|
@@ -92,290 +93,6 @@ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
|
92
93
|
if (typeof globalThis["__DEV__"] === "undefined") {
|
|
93
94
|
globalThis["__DEV__"] = false;
|
|
94
95
|
}
|
|
95
|
-
function getDefaultExportFromCjs(x) {
|
|
96
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
97
|
-
}
|
|
98
|
-
var jsxRuntime = { exports: {} };
|
|
99
|
-
var reactJsxRuntime_development = {};
|
|
100
|
-
var hasRequiredReactJsxRuntime_development;
|
|
101
|
-
function requireReactJsxRuntime_development() {
|
|
102
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
103
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
104
|
-
/**
|
|
105
|
-
* @license React
|
|
106
|
-
* react-jsx-runtime.development.js
|
|
107
|
-
*
|
|
108
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the MIT license found in the
|
|
111
|
-
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/
|
|
113
|
-
(function() {
|
|
114
|
-
function getComponentNameFromType(type) {
|
|
115
|
-
if (null == type) return null;
|
|
116
|
-
if ("function" === typeof type)
|
|
117
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
118
|
-
if ("string" === typeof type) return type;
|
|
119
|
-
switch (type) {
|
|
120
|
-
case REACT_FRAGMENT_TYPE:
|
|
121
|
-
return "Fragment";
|
|
122
|
-
case REACT_PROFILER_TYPE:
|
|
123
|
-
return "Profiler";
|
|
124
|
-
case REACT_STRICT_MODE_TYPE:
|
|
125
|
-
return "StrictMode";
|
|
126
|
-
case REACT_SUSPENSE_TYPE:
|
|
127
|
-
return "Suspense";
|
|
128
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
129
|
-
return "SuspenseList";
|
|
130
|
-
case REACT_ACTIVITY_TYPE:
|
|
131
|
-
return "Activity";
|
|
132
|
-
}
|
|
133
|
-
if ("object" === typeof type)
|
|
134
|
-
switch ("number" === typeof type.tag && console.error(
|
|
135
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
136
|
-
), type.$$typeof) {
|
|
137
|
-
case REACT_PORTAL_TYPE:
|
|
138
|
-
return "Portal";
|
|
139
|
-
case REACT_CONTEXT_TYPE:
|
|
140
|
-
return (type.displayName || "Context") + ".Provider";
|
|
141
|
-
case REACT_CONSUMER_TYPE:
|
|
142
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
143
|
-
case REACT_FORWARD_REF_TYPE:
|
|
144
|
-
var innerType = type.render;
|
|
145
|
-
type = type.displayName;
|
|
146
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
147
|
-
return type;
|
|
148
|
-
case REACT_MEMO_TYPE:
|
|
149
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
150
|
-
case REACT_LAZY_TYPE:
|
|
151
|
-
innerType = type._payload;
|
|
152
|
-
type = type._init;
|
|
153
|
-
try {
|
|
154
|
-
return getComponentNameFromType(type(innerType));
|
|
155
|
-
} catch (x) {
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return null;
|
|
159
|
-
}
|
|
160
|
-
function testStringCoercion(value) {
|
|
161
|
-
return "" + value;
|
|
162
|
-
}
|
|
163
|
-
function checkKeyStringCoercion(value) {
|
|
164
|
-
try {
|
|
165
|
-
testStringCoercion(value);
|
|
166
|
-
var JSCompiler_inline_result = false;
|
|
167
|
-
} catch (e2) {
|
|
168
|
-
JSCompiler_inline_result = true;
|
|
169
|
-
}
|
|
170
|
-
if (JSCompiler_inline_result) {
|
|
171
|
-
JSCompiler_inline_result = console;
|
|
172
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
173
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
174
|
-
JSCompiler_temp_const.call(
|
|
175
|
-
JSCompiler_inline_result,
|
|
176
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
177
|
-
JSCompiler_inline_result$jscomp$0
|
|
178
|
-
);
|
|
179
|
-
return testStringCoercion(value);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function getTaskName(type) {
|
|
183
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
184
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
185
|
-
return "<...>";
|
|
186
|
-
try {
|
|
187
|
-
var name = getComponentNameFromType(type);
|
|
188
|
-
return name ? "<" + name + ">" : "<...>";
|
|
189
|
-
} catch (x) {
|
|
190
|
-
return "<...>";
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function getOwner() {
|
|
194
|
-
var dispatcher = ReactSharedInternals.A;
|
|
195
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
196
|
-
}
|
|
197
|
-
function UnknownOwner() {
|
|
198
|
-
return Error("react-stack-top-frame");
|
|
199
|
-
}
|
|
200
|
-
function hasValidKey(config) {
|
|
201
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
202
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
203
|
-
if (getter && getter.isReactWarning) return false;
|
|
204
|
-
}
|
|
205
|
-
return void 0 !== config.key;
|
|
206
|
-
}
|
|
207
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
208
|
-
function warnAboutAccessingKey() {
|
|
209
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
210
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
211
|
-
displayName
|
|
212
|
-
));
|
|
213
|
-
}
|
|
214
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
215
|
-
Object.defineProperty(props, "key", {
|
|
216
|
-
get: warnAboutAccessingKey,
|
|
217
|
-
configurable: true
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
221
|
-
var componentName = getComponentNameFromType(this.type);
|
|
222
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
223
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
224
|
-
));
|
|
225
|
-
componentName = this.props.ref;
|
|
226
|
-
return void 0 !== componentName ? componentName : null;
|
|
227
|
-
}
|
|
228
|
-
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
229
|
-
self = props.ref;
|
|
230
|
-
type = {
|
|
231
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
232
|
-
type,
|
|
233
|
-
key,
|
|
234
|
-
props,
|
|
235
|
-
_owner: owner
|
|
236
|
-
};
|
|
237
|
-
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
238
|
-
enumerable: false,
|
|
239
|
-
get: elementRefGetterWithDeprecationWarning
|
|
240
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
241
|
-
type._store = {};
|
|
242
|
-
Object.defineProperty(type._store, "validated", {
|
|
243
|
-
configurable: false,
|
|
244
|
-
enumerable: false,
|
|
245
|
-
writable: true,
|
|
246
|
-
value: 0
|
|
247
|
-
});
|
|
248
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
249
|
-
configurable: false,
|
|
250
|
-
enumerable: false,
|
|
251
|
-
writable: true,
|
|
252
|
-
value: null
|
|
253
|
-
});
|
|
254
|
-
Object.defineProperty(type, "_debugStack", {
|
|
255
|
-
configurable: false,
|
|
256
|
-
enumerable: false,
|
|
257
|
-
writable: true,
|
|
258
|
-
value: debugStack
|
|
259
|
-
});
|
|
260
|
-
Object.defineProperty(type, "_debugTask", {
|
|
261
|
-
configurable: false,
|
|
262
|
-
enumerable: false,
|
|
263
|
-
writable: true,
|
|
264
|
-
value: debugTask
|
|
265
|
-
});
|
|
266
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
267
|
-
return type;
|
|
268
|
-
}
|
|
269
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
270
|
-
var children = config.children;
|
|
271
|
-
if (void 0 !== children)
|
|
272
|
-
if (isStaticChildren)
|
|
273
|
-
if (isArrayImpl(children)) {
|
|
274
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
275
|
-
validateChildKeys(children[isStaticChildren]);
|
|
276
|
-
Object.freeze && Object.freeze(children);
|
|
277
|
-
} else
|
|
278
|
-
console.error(
|
|
279
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
280
|
-
);
|
|
281
|
-
else validateChildKeys(children);
|
|
282
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
283
|
-
children = getComponentNameFromType(type);
|
|
284
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
285
|
-
return "key" !== k;
|
|
286
|
-
});
|
|
287
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
288
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
289
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
290
|
-
isStaticChildren,
|
|
291
|
-
children,
|
|
292
|
-
keys,
|
|
293
|
-
children
|
|
294
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
295
|
-
}
|
|
296
|
-
children = null;
|
|
297
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
298
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
299
|
-
if ("key" in config) {
|
|
300
|
-
maybeKey = {};
|
|
301
|
-
for (var propName in config)
|
|
302
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
303
|
-
} else maybeKey = config;
|
|
304
|
-
children && defineKeyPropWarningGetter(
|
|
305
|
-
maybeKey,
|
|
306
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
307
|
-
);
|
|
308
|
-
return ReactElement(
|
|
309
|
-
type,
|
|
310
|
-
children,
|
|
311
|
-
self,
|
|
312
|
-
source,
|
|
313
|
-
getOwner(),
|
|
314
|
-
maybeKey,
|
|
315
|
-
debugStack,
|
|
316
|
-
debugTask
|
|
317
|
-
);
|
|
318
|
-
}
|
|
319
|
-
function validateChildKeys(node) {
|
|
320
|
-
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
321
|
-
}
|
|
322
|
-
var React$1 = React, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
323
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty2 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
324
|
-
return null;
|
|
325
|
-
};
|
|
326
|
-
React$1 = {
|
|
327
|
-
"react-stack-bottom-frame": function(callStackForError) {
|
|
328
|
-
return callStackForError();
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
var specialPropKeyWarningShown;
|
|
332
|
-
var didWarnAboutElementRef = {};
|
|
333
|
-
var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
|
|
334
|
-
React$1,
|
|
335
|
-
UnknownOwner
|
|
336
|
-
)();
|
|
337
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
338
|
-
var didWarnAboutKeySpread = {};
|
|
339
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
340
|
-
reactJsxRuntime_development.jsx = function(type, config, maybeKey, source, self) {
|
|
341
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
342
|
-
return jsxDEVImpl(
|
|
343
|
-
type,
|
|
344
|
-
config,
|
|
345
|
-
maybeKey,
|
|
346
|
-
false,
|
|
347
|
-
source,
|
|
348
|
-
self,
|
|
349
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
350
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
351
|
-
);
|
|
352
|
-
};
|
|
353
|
-
reactJsxRuntime_development.jsxs = function(type, config, maybeKey, source, self) {
|
|
354
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
355
|
-
return jsxDEVImpl(
|
|
356
|
-
type,
|
|
357
|
-
config,
|
|
358
|
-
maybeKey,
|
|
359
|
-
true,
|
|
360
|
-
source,
|
|
361
|
-
self,
|
|
362
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
363
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
364
|
-
);
|
|
365
|
-
};
|
|
366
|
-
})();
|
|
367
|
-
return reactJsxRuntime_development;
|
|
368
|
-
}
|
|
369
|
-
var hasRequiredJsxRuntime;
|
|
370
|
-
function requireJsxRuntime() {
|
|
371
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
372
|
-
hasRequiredJsxRuntime = 1;
|
|
373
|
-
{
|
|
374
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
375
|
-
}
|
|
376
|
-
return jsxRuntime.exports;
|
|
377
|
-
}
|
|
378
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
379
96
|
var pseudoDescriptorsBase = {
|
|
380
97
|
// order of keys here important! in priority order
|
|
381
98
|
hoverStyle: {
|
|
@@ -495,9 +212,9 @@ function createStyledContext(defaultValues) {
|
|
|
495
212
|
]), scope = getNamespacedScope(scopeIn), next = React.useMemo(function() {
|
|
496
213
|
return __disableMergeDefaultValues ? values : mergeProps(defaultValues, values);
|
|
497
214
|
}, [objectIdentityKey(values)]), ScopedProvider = OGProvider;
|
|
498
|
-
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */
|
|
215
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ jsxRuntime.jsx(LastScopeInNamespace.Provider, {
|
|
499
216
|
value: scope,
|
|
500
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScopedProvider, {
|
|
501
218
|
value: next,
|
|
502
219
|
children
|
|
503
220
|
})
|
|
@@ -830,7 +547,7 @@ function LocaleProvider(props) {
|
|
|
830
547
|
locale,
|
|
831
548
|
children
|
|
832
549
|
} = props;
|
|
833
|
-
return direction || locale ? /* @__PURE__ */
|
|
550
|
+
return direction || locale ? /* @__PURE__ */ jsxRuntime.jsx(LocaleContext.Provider, {
|
|
834
551
|
value: {
|
|
835
552
|
direction: locale ? getLocaleDirection(locale) : direction,
|
|
836
553
|
locale
|
|
@@ -850,7 +567,7 @@ var LayoutHandlers = /* @__PURE__ */ new WeakMap(), LayoutDisableKey = /* @__PUR
|
|
|
850
567
|
children
|
|
851
568
|
} = param, id2 = React.useId();
|
|
852
569
|
return useIsomorphicLayoutEffect(function() {
|
|
853
|
-
}, [disable, id2]), /* @__PURE__ */
|
|
570
|
+
}, [disable, id2]), /* @__PURE__ */ jsxRuntime.jsx(DisableLayoutContextKey.Provider, {
|
|
854
571
|
value: id2,
|
|
855
572
|
children
|
|
856
573
|
});
|
|
@@ -1991,6 +1708,9 @@ const stylesFromProps = /* @__PURE__ */ new WeakMap(), createDOMProps = (element
|
|
|
1991
1708
|
return _id && (domProps.id = _id), testID != null && (domProps["data-testid"] = testID), domProps;
|
|
1992
1709
|
};
|
|
1993
1710
|
const isWebColor$1 = (color) => color === "currentcolor" || color === "currentColor" || color === "inherit" || color.startsWith("var(");
|
|
1711
|
+
function getDefaultExportFromCjs(x) {
|
|
1712
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1713
|
+
}
|
|
1994
1714
|
var normalizeColor_1;
|
|
1995
1715
|
var hasRequiredNormalizeColor;
|
|
1996
1716
|
function requireNormalizeColor() {
|
|
@@ -3079,7 +2799,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
3079
2799
|
if (!styles2) return;
|
|
3080
2800
|
const styleObj = {};
|
|
3081
2801
|
for (const style of styles2) styleObj[style[0]] = style;
|
|
3082
|
-
}, [styles2]), /* @__PURE__ */
|
|
2802
|
+
}, [styles2]), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3083
2803
|
children: [element, styleTags]
|
|
3084
2804
|
});
|
|
3085
2805
|
}, createElement$1 = (component, props, options) => {
|
|
@@ -3087,7 +2807,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
3087
2807
|
element,
|
|
3088
2808
|
styles: styles2
|
|
3089
2809
|
} = createElementAndStyles$1(component, props);
|
|
3090
|
-
return /* @__PURE__ */
|
|
2810
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3091
2811
|
children: [element, styles2 ? getStyleTags() : null]
|
|
3092
2812
|
});
|
|
3093
2813
|
}, createElementAndStyles$1 = (component, props, options) => {
|
|
@@ -3096,7 +2816,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
3096
2816
|
const Component = accessibilityComponent || component, domProps = createDOMProps(Component, props), styles2 = stylesFromProps.get(domProps);
|
|
3097
2817
|
let element = React.createElement(Component, domProps);
|
|
3098
2818
|
return {
|
|
3099
|
-
element: domProps.dir ? /* @__PURE__ */
|
|
2819
|
+
element: domProps.dir ? /* @__PURE__ */ jsxRuntime.jsx(LocaleProvider, {
|
|
3100
2820
|
direction: domProps.dir,
|
|
3101
2821
|
locale: domProps.lang,
|
|
3102
2822
|
children: element
|
|
@@ -4332,7 +4052,7 @@ function createAnimatedComponent(Component) {
|
|
|
4332
4052
|
} = _a, passthroughProps = __objRest(_a, [
|
|
4333
4053
|
"style"
|
|
4334
4054
|
]);
|
|
4335
|
-
return /* @__PURE__ */
|
|
4055
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues(__spreadValues({}, reducedProps), passthroughProps), {
|
|
4336
4056
|
style: [style, passthroughStyle],
|
|
4337
4057
|
ref
|
|
4338
4058
|
}));
|
|
@@ -4480,13 +4200,13 @@ const useCreateElement = (component, props, options) => {
|
|
|
4480
4200
|
const styleObj = {};
|
|
4481
4201
|
for (const style of styles2)
|
|
4482
4202
|
styleObj[style[0]] = style;
|
|
4483
|
-
}, [styles2]), /* @__PURE__ */
|
|
4203
|
+
}, [styles2]), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4484
4204
|
element,
|
|
4485
4205
|
styleTags
|
|
4486
4206
|
] });
|
|
4487
4207
|
}, createElement = (component, props, options) => {
|
|
4488
4208
|
const { element, styles: styles2 } = createElementAndStyles(component, props);
|
|
4489
|
-
return /* @__PURE__ */
|
|
4209
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4490
4210
|
element,
|
|
4491
4211
|
styles2 ? getStyleTags() : null
|
|
4492
4212
|
] });
|
|
@@ -4496,7 +4216,7 @@ const useCreateElement = (component, props, options) => {
|
|
|
4496
4216
|
const Component = accessibilityComponent || component, domProps = createDOMProps(Component, props), styles2 = stylesFromProps.get(domProps);
|
|
4497
4217
|
let element = React.createElement(Component, domProps);
|
|
4498
4218
|
return {
|
|
4499
|
-
element: domProps.dir ? /* @__PURE__ */
|
|
4219
|
+
element: domProps.dir ? /* @__PURE__ */ jsxRuntime.jsx(LocaleProvider, { direction: domProps.dir, locale: domProps.lang, children: element }) : element,
|
|
4500
4220
|
styles: styles2
|
|
4501
4221
|
};
|
|
4502
4222
|
};
|
|
@@ -4664,7 +4384,7 @@ const ScrollViewBase$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
4664
4384
|
scrollState.current.isScrolling = false, onScroll && onScroll(normalizeScrollEvent$1(e2));
|
|
4665
4385
|
}
|
|
4666
4386
|
const hideScrollbar = showsHorizontalScrollIndicator === false || showsVerticalScrollIndicator === false;
|
|
4667
|
-
return /* @__PURE__ */
|
|
4387
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4668
4388
|
View$3,
|
|
4669
4389
|
__spreadProps(__spreadValues({}, rest), {
|
|
4670
4390
|
onScroll: handleScroll,
|
|
@@ -4906,7 +4626,7 @@ let ScrollView$2 = class ScrollView extends React.Component {
|
|
|
4906
4626
|
});
|
|
4907
4627
|
const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices), children = hasStickyHeaderIndices || pagingEnabled ? React.Children.map(this.props.children, (child, i) => {
|
|
4908
4628
|
const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
4909
|
-
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */
|
|
4629
|
+
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4910
4630
|
View$3,
|
|
4911
4631
|
{
|
|
4912
4632
|
style: StyleSheet.compose(
|
|
@@ -4916,7 +4636,7 @@ let ScrollView$2 = class ScrollView extends React.Component {
|
|
|
4916
4636
|
children: child
|
|
4917
4637
|
}
|
|
4918
4638
|
) : child;
|
|
4919
|
-
}) : this.props.children, contentContainer = /* @__PURE__ */
|
|
4639
|
+
}) : this.props.children, contentContainer = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4920
4640
|
View$3,
|
|
4921
4641
|
__spreadProps(__spreadValues({}, contentSizeChangeProps), {
|
|
4922
4642
|
collapsable: false,
|
|
@@ -4948,7 +4668,7 @@ let ScrollView$2 = class ScrollView extends React.Component {
|
|
|
4948
4668
|
onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
|
|
4949
4669
|
}), ScrollViewClass = ScrollViewBase$1;
|
|
4950
4670
|
invariant(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
|
|
4951
|
-
const scrollView = /* @__PURE__ */
|
|
4671
|
+
const scrollView = /* @__PURE__ */ jsxRuntime.jsx(ScrollViewClass, __spreadProps(__spreadValues({}, props), { ref: this._setScrollNodeRef.bind(this), children: contentContainer }));
|
|
4952
4672
|
return refreshControl ? React.cloneElement(refreshControl, { style: props.style }, scrollView) : scrollView;
|
|
4953
4673
|
}
|
|
4954
4674
|
_handleContentOnLayout(e2) {
|
|
@@ -5189,7 +4909,7 @@ const commonStyle$1 = {
|
|
|
5189
4909
|
pagingEnabledChild: {
|
|
5190
4910
|
scrollSnapAlign: "start"
|
|
5191
4911
|
}
|
|
5192
|
-
}, ForwardedScrollView$1 = React.forwardRef((props, forwardedRef) => /* @__PURE__ */
|
|
4912
|
+
}, ForwardedScrollView$1 = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(ScrollView$2, __spreadProps(__spreadValues({}, props), { forwardedRef })));
|
|
5193
4913
|
ForwardedScrollView$1.displayName = "ScrollView";
|
|
5194
4914
|
function RefreshControl(props) {
|
|
5195
4915
|
const _a = props, {
|
|
@@ -5216,7 +4936,7 @@ function RefreshControl(props) {
|
|
|
5216
4936
|
"title",
|
|
5217
4937
|
"titleColor"
|
|
5218
4938
|
]);
|
|
5219
|
-
return /* @__PURE__ */
|
|
4939
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$3, __spreadValues({}, rest));
|
|
5220
4940
|
}
|
|
5221
4941
|
class Batchinator {
|
|
5222
4942
|
constructor(callback, delayMS) {
|
|
@@ -5551,7 +5271,7 @@ function VirtualizedListCellContextProvider({ cellKey, children }) {
|
|
|
5551
5271
|
() => currContext == null ? null : __spreadProps(__spreadValues({}, currContext), { cellKey }),
|
|
5552
5272
|
[currContext, cellKey]
|
|
5553
5273
|
);
|
|
5554
|
-
return /* @__PURE__ */
|
|
5274
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedListContext.Provider, { value: context2, children });
|
|
5555
5275
|
}
|
|
5556
5276
|
class CellRenderer extends React__namespace.Component {
|
|
5557
5277
|
constructor() {
|
|
@@ -5649,8 +5369,8 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5649
5369
|
ItemSeparatorComponent
|
|
5650
5370
|
) : (
|
|
5651
5371
|
// $FlowFixMe[incompatible-type]
|
|
5652
|
-
ItemSeparatorComponent && /* @__PURE__ */
|
|
5653
|
-
), cellStyle = inversionStyle ? horizontal ? [styles$e.rowReverse, inversionStyle] : [styles$e.columnReverse, inversionStyle] : horizontal ? [styles$e.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */
|
|
5372
|
+
ItemSeparatorComponent && /* @__PURE__ */ jsxRuntime.jsx(ItemSeparatorComponent, __spreadValues({}, this.state.separatorProps))
|
|
5373
|
+
), cellStyle = inversionStyle ? horizontal ? [styles$e.rowReverse, inversionStyle] : [styles$e.columnReverse, inversionStyle] : horizontal ? [styles$e.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5654
5374
|
CellRendererComponent,
|
|
5655
5375
|
__spreadProps(__spreadValues({
|
|
5656
5376
|
cellKey,
|
|
@@ -5664,7 +5384,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5664
5384
|
itemSeparator
|
|
5665
5385
|
]
|
|
5666
5386
|
})
|
|
5667
|
-
) : /* @__PURE__ */
|
|
5387
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5668
5388
|
View$3,
|
|
5669
5389
|
__spreadProps(__spreadValues({
|
|
5670
5390
|
style: cellStyle,
|
|
@@ -5676,7 +5396,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5676
5396
|
]
|
|
5677
5397
|
})
|
|
5678
5398
|
);
|
|
5679
|
-
return /* @__PURE__ */
|
|
5399
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedListCellContextProvider, { cellKey: this.props.cellKey, children: result });
|
|
5680
5400
|
}
|
|
5681
5401
|
}
|
|
5682
5402
|
const styles$e = StyleSheet.create({
|
|
@@ -5898,14 +5618,14 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
5898
5618
|
"viewabilityConfig",
|
|
5899
5619
|
"viewabilityConfigCallbackPairs"
|
|
5900
5620
|
]);
|
|
5901
|
-
return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */
|
|
5621
|
+
return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */ jsxRuntime.jsx(ListEmptyComponent, {}) : null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5902
5622
|
ForwardedScrollView$1,
|
|
5903
5623
|
__spreadProps(__spreadValues({}, restProps), {
|
|
5904
5624
|
ref: this._captureRef,
|
|
5905
5625
|
onContentSizeChange: this._onContentSizeChange,
|
|
5906
5626
|
onLayout: this._onLayout,
|
|
5907
5627
|
onScroll: this._onScroll,
|
|
5908
|
-
refreshControl: onRefresh && /* @__PURE__ */
|
|
5628
|
+
refreshControl: onRefresh && /* @__PURE__ */ jsxRuntime.jsx(RefreshControl, { refreshing, onRefresh }),
|
|
5909
5629
|
scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
|
|
5910
5630
|
removeClippedSubviews,
|
|
5911
5631
|
children: this._renderChildren()
|
|
@@ -5917,7 +5637,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
5917
5637
|
for (let i = 0; i < getItemCount(data); i++) {
|
|
5918
5638
|
const item = getItem(data, i);
|
|
5919
5639
|
items.push(
|
|
5920
|
-
/* @__PURE__ */
|
|
5640
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5921
5641
|
CellRenderer,
|
|
5922
5642
|
{
|
|
5923
5643
|
cellKey: String(i),
|
|
@@ -5989,13 +5709,13 @@ class FlatList extends React.PureComponent {
|
|
|
5989
5709
|
return numColumns > 1 ? (invariant(Array.isArray(items), "FlatList: Expected each item to be an array with multiple columns."), items.map((item, kk) => keyExtractor$1(item, index2 * numColumns + kk)).join(":")) : keyExtractor$1(items, index2);
|
|
5990
5710
|
});
|
|
5991
5711
|
__publicField(this, "_renderer", (ListItemComponent2, renderItem, columnWrapperStyle, numColumns, extraData) => {
|
|
5992
|
-
const cols = numColumnsOrDefault(numColumns), render = (props) => ListItemComponent2 ? /* @__PURE__ */
|
|
5712
|
+
const cols = numColumnsOrDefault(numColumns), render = (props) => ListItemComponent2 ? /* @__PURE__ */ jsxRuntime.jsx(ListItemComponent2, __spreadValues({}, props)) : renderItem ? renderItem(props) : null, renderProp = (info) => {
|
|
5993
5713
|
if (cols > 1) {
|
|
5994
5714
|
const {
|
|
5995
5715
|
item,
|
|
5996
5716
|
index: index2
|
|
5997
5717
|
} = info;
|
|
5998
|
-
return invariant(Array.isArray(item), "Expected array of items with numColumns > 1"), /* @__PURE__ */
|
|
5718
|
+
return invariant(Array.isArray(item), "Expected array of items with numColumns > 1"), /* @__PURE__ */ jsxRuntime.jsx(View$3, {
|
|
5999
5719
|
style: [styles$d.row, columnWrapperStyle],
|
|
6000
5720
|
children: item.map((it, kk) => {
|
|
6001
5721
|
const element = render({
|
|
@@ -6003,7 +5723,7 @@ class FlatList extends React.PureComponent {
|
|
|
6003
5723
|
index: index2 * cols + kk,
|
|
6004
5724
|
separators: info.separators
|
|
6005
5725
|
});
|
|
6006
|
-
return element != null ? /* @__PURE__ */
|
|
5726
|
+
return element != null ? /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
6007
5727
|
children: element
|
|
6008
5728
|
}, kk) : null;
|
|
6009
5729
|
})
|
|
@@ -6076,7 +5796,7 @@ class FlatList extends React.PureComponent {
|
|
|
6076
5796
|
"removeClippedSubviews",
|
|
6077
5797
|
"strictMode"
|
|
6078
5798
|
]), renderer = strictMode ? this._memoizedRenderer : this._renderer;
|
|
6079
|
-
return /* @__PURE__ */
|
|
5799
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedList, __spreadValues(__spreadProps(__spreadValues({}, restProps), {
|
|
6080
5800
|
getItem: this._getItem,
|
|
6081
5801
|
getItemCount: this._getItemCount,
|
|
6082
5802
|
keyExtractor: this._keyExtractor,
|
|
@@ -6091,7 +5811,7 @@ const styles$d = {
|
|
|
6091
5811
|
flexDirection: "row"
|
|
6092
5812
|
}
|
|
6093
5813
|
};
|
|
6094
|
-
const FlatListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
5814
|
+
const FlatListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(FlatList, __spreadProps(__spreadValues({
|
|
6095
5815
|
scrollEventThrottle: 1e-4
|
|
6096
5816
|
}, props), {
|
|
6097
5817
|
ref
|
|
@@ -6132,7 +5852,7 @@ const ERRORED$1 = "ERRORED", LOADED$1 = "LOADED", LOADING$1 = "LOADING", IDLE$1
|
|
|
6132
5852
|
let _filterId$1 = 0;
|
|
6133
5853
|
const svgDataUriPattern$1 = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
6134
5854
|
function createTintColorSVG$1(tintColor, id2) {
|
|
6135
|
-
return tintColor && id2 != null ? /* @__PURE__ */
|
|
5855
|
+
return tintColor && id2 != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6136
5856
|
"svg",
|
|
6137
5857
|
{
|
|
6138
5858
|
style: {
|
|
@@ -6141,9 +5861,9 @@ function createTintColorSVG$1(tintColor, id2) {
|
|
|
6141
5861
|
visibility: "hidden",
|
|
6142
5862
|
width: 0
|
|
6143
5863
|
},
|
|
6144
|
-
children: /* @__PURE__ */
|
|
6145
|
-
/* @__PURE__ */
|
|
6146
|
-
/* @__PURE__ */
|
|
5864
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("filter", { id: `tint-${id2}`, suppressHydrationWarning: true, children: [
|
|
5865
|
+
/* @__PURE__ */ jsxRuntime.jsx("feFlood", { floodColor: `${tintColor}` }, tintColor),
|
|
5866
|
+
/* @__PURE__ */ jsxRuntime.jsx("feComposite", { in2: "SourceAlpha", operator: "atop" })
|
|
6147
5867
|
] }) })
|
|
6148
5868
|
}
|
|
6149
5869
|
) : null;
|
|
@@ -6269,7 +5989,7 @@ const Image$2 = React__namespace.forwardRef((props, ref) => {
|
|
|
6269
5989
|
requestRef.current != null && (ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
6270
5990
|
}
|
|
6271
5991
|
return abortPendingRequest;
|
|
6272
|
-
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */
|
|
5992
|
+
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6273
5993
|
View$3,
|
|
6274
5994
|
__spreadProps(__spreadValues({}, rest), {
|
|
6275
5995
|
"aria-label": accessibilityLabel,
|
|
@@ -6284,7 +6004,7 @@ const Image$2 = React__namespace.forwardRef((props, ref) => {
|
|
|
6284
6004
|
flatStyle
|
|
6285
6005
|
],
|
|
6286
6006
|
children: [
|
|
6287
|
-
/* @__PURE__ */
|
|
6007
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6288
6008
|
View$3,
|
|
6289
6009
|
{
|
|
6290
6010
|
style: [
|
|
@@ -6361,7 +6081,7 @@ const styles$c = StyleSheet.create({
|
|
|
6361
6081
|
}
|
|
6362
6082
|
});
|
|
6363
6083
|
createAnimatedComponent(ImageWithStatics$1);
|
|
6364
|
-
const ScrollViewWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
6084
|
+
const ScrollViewWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(ForwardedScrollView$1, __spreadProps(__spreadValues({
|
|
6365
6085
|
scrollEventThrottle: 1e-4
|
|
6366
6086
|
}, props), {
|
|
6367
6087
|
ref
|
|
@@ -6433,7 +6153,7 @@ class VirtualizedSectionList extends React__namespace.PureComponent {
|
|
|
6433
6153
|
for (const section of this.props.sections)
|
|
6434
6154
|
stickyHeaderIndices == null ? void 0 : stickyHeaderIndices.push(itemCount + listHeaderOffset), itemCount += 2, itemCount += this.props.getItemCount(section.data);
|
|
6435
6155
|
const renderItem = this._renderItem(itemCount);
|
|
6436
|
-
return /* @__PURE__ */
|
|
6156
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6437
6157
|
VirtualizedList,
|
|
6438
6158
|
__spreadProps(__spreadValues({}, passThroughProps), {
|
|
6439
6159
|
keyExtractor: this._keyExtractor,
|
|
@@ -6508,7 +6228,7 @@ class SectionList extends React__namespace.PureComponent {
|
|
|
6508
6228
|
}
|
|
6509
6229
|
render() {
|
|
6510
6230
|
const _a = this.props, { sections } = _a, passThroughProps = __objRest(_a, ["sections"]);
|
|
6511
|
-
return /* @__PURE__ */
|
|
6231
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6512
6232
|
VirtualizedSectionList,
|
|
6513
6233
|
__spreadProps(__spreadValues({}, passThroughProps), {
|
|
6514
6234
|
sections,
|
|
@@ -6522,7 +6242,7 @@ class SectionList extends React__namespace.PureComponent {
|
|
|
6522
6242
|
}
|
|
6523
6243
|
}
|
|
6524
6244
|
var SectionList_default = SectionList;
|
|
6525
|
-
const SectionListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
6245
|
+
const SectionListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(SectionList_default, __spreadProps(__spreadValues({
|
|
6526
6246
|
scrollEventThrottle: 1e-4
|
|
6527
6247
|
}, props), {
|
|
6528
6248
|
ref
|
|
@@ -6619,7 +6339,7 @@ const pickProps$4 = (props) => pick(props, forwardPropsListText), Text$5 = React
|
|
|
6619
6339
|
const platformMethodsRef = usePlatformMethods(supportedProps), setRef2 = useMergeRefs$1(hostRef, platformMethodsRef, forwardedRef);
|
|
6620
6340
|
supportedProps.ref = setRef2;
|
|
6621
6341
|
const element = useCreateElement(component, supportedProps);
|
|
6622
|
-
return hasTextAncestor ? element : /* @__PURE__ */
|
|
6342
|
+
return hasTextAncestor ? element : /* @__PURE__ */ jsxRuntime.jsx(TextAncestorContext.Provider, { value: true, children: element });
|
|
6623
6343
|
}
|
|
6624
6344
|
);
|
|
6625
6345
|
Text$5.displayName = "Text";
|
|
@@ -6946,7 +6666,7 @@ function requireReactDom_development() {
|
|
|
6946
6666
|
reactDom_development.useFormStatus = function() {
|
|
6947
6667
|
return resolveDispatcher().useHostTransitionStatus();
|
|
6948
6668
|
};
|
|
6949
|
-
reactDom_development.version = "19.
|
|
6669
|
+
reactDom_development.version = "19.2.3";
|
|
6950
6670
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
6951
6671
|
})();
|
|
6952
6672
|
return reactDom_development;
|
|
@@ -7057,16 +6777,16 @@ const RootTagContext$1 = React__namespace.createContext(null), AppContainer = Re
|
|
|
7057
6777
|
children,
|
|
7058
6778
|
WrapperComponent
|
|
7059
6779
|
} = props;
|
|
7060
|
-
let innerView = /* @__PURE__ */
|
|
6780
|
+
let innerView = /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7061
6781
|
pointerEvents: "box-none",
|
|
7062
6782
|
style: styles$9.appContainer,
|
|
7063
6783
|
children
|
|
7064
6784
|
}, 1);
|
|
7065
|
-
return WrapperComponent && (innerView = /* @__PURE__ */
|
|
6785
|
+
return WrapperComponent && (innerView = /* @__PURE__ */ jsxRuntime.jsx(WrapperComponent, {
|
|
7066
6786
|
children: innerView
|
|
7067
|
-
})), /* @__PURE__ */
|
|
6787
|
+
})), /* @__PURE__ */ jsxRuntime.jsx(RootTagContext$1.Provider, {
|
|
7068
6788
|
value: props.rootTag,
|
|
7069
|
-
children: /* @__PURE__ */
|
|
6789
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7070
6790
|
pointerEvents: "box-none",
|
|
7071
6791
|
ref: forwardedRef,
|
|
7072
6792
|
style: styles$9.appContainer,
|
|
@@ -7301,7 +7021,7 @@ class UnimplementedView extends React.Component {
|
|
|
7301
7021
|
});
|
|
7302
7022
|
}
|
|
7303
7023
|
render() {
|
|
7304
|
-
return /* @__PURE__ */
|
|
7024
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadValues({}, this.props));
|
|
7305
7025
|
}
|
|
7306
7026
|
}
|
|
7307
7027
|
function TouchableOpacityImpl(props, forwardedRef) {
|
|
@@ -7353,7 +7073,7 @@ function TouchableOpacityImpl(props, forwardedRef) {
|
|
|
7353
7073
|
setOpacityInactive(250), onPressOut == null ? void 0 : onPressOut(event);
|
|
7354
7074
|
}
|
|
7355
7075
|
}), [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, setOpacityActive, setOpacityInactive]), pressEventHandlers = usePressEvents(hostRef, pressConfig);
|
|
7356
|
-
return /* @__PURE__ */
|
|
7076
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$3, __spreadProps(__spreadValues(__spreadValues({}, rest), pressEventHandlers), {
|
|
7357
7077
|
accessibilityDisabled: disabled,
|
|
7358
7078
|
focusable: !disabled && focusable !== false,
|
|
7359
7079
|
ref: setRef2,
|
|
@@ -7422,7 +7142,7 @@ function TouchableWithoutFeedbackImpl(props, forwardedRef) {
|
|
|
7422
7142
|
}
|
|
7423
7143
|
const TouchableWithoutFeedback = React__namespace.memo(React__namespace.forwardRef(TouchableWithoutFeedbackImpl));
|
|
7424
7144
|
TouchableWithoutFeedback.displayName = "TouchableWithoutFeedback";
|
|
7425
|
-
const createSvgCircle = (style) => /* @__PURE__ */
|
|
7145
|
+
const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntime.jsx("circle", {
|
|
7426
7146
|
cx: "16",
|
|
7427
7147
|
cy: "16",
|
|
7428
7148
|
fill: "none",
|
|
@@ -7442,7 +7162,7 @@ const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntimeExports.jsx("circle
|
|
|
7442
7162
|
"hidesWhenStopped",
|
|
7443
7163
|
"size",
|
|
7444
7164
|
"style"
|
|
7445
|
-
]), svg = /* @__PURE__ */
|
|
7165
|
+
]), svg = /* @__PURE__ */ jsxRuntime.jsxs("svg", {
|
|
7446
7166
|
height: "100%",
|
|
7447
7167
|
viewBox: "0 0 32 32",
|
|
7448
7168
|
width: "100%",
|
|
@@ -7455,13 +7175,13 @@ const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntimeExports.jsx("circle
|
|
|
7455
7175
|
strokeDashoffset: 60
|
|
7456
7176
|
})]
|
|
7457
7177
|
});
|
|
7458
|
-
return /* @__PURE__ */
|
|
7178
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, other), {
|
|
7459
7179
|
accessibilityRole: "progressbar",
|
|
7460
7180
|
accessibilityValueMax: 1,
|
|
7461
7181
|
accessibilityValueMin: 0,
|
|
7462
7182
|
ref: forwardedRef,
|
|
7463
7183
|
style: [styles$7.container, style],
|
|
7464
|
-
children: /* @__PURE__ */
|
|
7184
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7465
7185
|
children: svg,
|
|
7466
7186
|
style: [typeof size == "number" ? {
|
|
7467
7187
|
height: size,
|
|
@@ -7513,20 +7233,20 @@ const ERRORED = "ERRORED", LOADED = "LOADED", LOADING = "LOADING", IDLE = "IDLE"
|
|
|
7513
7233
|
let _filterId = 0;
|
|
7514
7234
|
const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
7515
7235
|
function createTintColorSVG(tintColor, id2) {
|
|
7516
|
-
return tintColor && id2 != null ? /* @__PURE__ */
|
|
7236
|
+
return tintColor && id2 != null ? /* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
7517
7237
|
style: {
|
|
7518
7238
|
position: "absolute",
|
|
7519
7239
|
height: 0,
|
|
7520
7240
|
visibility: "hidden",
|
|
7521
7241
|
width: 0
|
|
7522
7242
|
},
|
|
7523
|
-
children: /* @__PURE__ */
|
|
7524
|
-
children: /* @__PURE__ */
|
|
7243
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("defs", {
|
|
7244
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("filter", {
|
|
7525
7245
|
id: `tint-${id2}`,
|
|
7526
7246
|
suppressHydrationWarning: true,
|
|
7527
|
-
children: [/* @__PURE__ */
|
|
7247
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx("feFlood", {
|
|
7528
7248
|
floodColor: `${tintColor}`
|
|
7529
|
-
}, tintColor), /* @__PURE__ */
|
|
7249
|
+
}, tintColor), /* @__PURE__ */ jsxRuntime.jsx("feComposite", {
|
|
7530
7250
|
in2: "SourceAlpha",
|
|
7531
7251
|
operator: "atop"
|
|
7532
7252
|
})]
|
|
@@ -7667,13 +7387,13 @@ const Image$1 = React__namespace.forwardRef((props, ref) => {
|
|
|
7667
7387
|
requestRef.current != null && (ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
7668
7388
|
}
|
|
7669
7389
|
return abortPendingRequest;
|
|
7670
|
-
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */
|
|
7390
|
+
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ jsxRuntime.jsxs(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7671
7391
|
"aria-label": accessibilityLabel,
|
|
7672
7392
|
onLayout: handleLayout,
|
|
7673
7393
|
pointerEvents,
|
|
7674
7394
|
ref,
|
|
7675
7395
|
style: [style, styles$6.root, hasTextAncestor && styles$6.inline, imageSizeStyle, flatStyle],
|
|
7676
|
-
children: [/* @__PURE__ */
|
|
7396
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7677
7397
|
style: [...[].concat(styles$6.image), resizeModeStyles[resizeMode], {
|
|
7678
7398
|
backgroundImage,
|
|
7679
7399
|
filter
|
|
@@ -7757,10 +7477,10 @@ const emptyObject$2 = {}, ImageBackground = React.forwardRef((props, forwardedRe
|
|
|
7757
7477
|
height,
|
|
7758
7478
|
width
|
|
7759
7479
|
} = StyleSheet.flatten(style);
|
|
7760
|
-
return /* @__PURE__ */
|
|
7480
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(View$2, {
|
|
7761
7481
|
ref: forwardedRef,
|
|
7762
7482
|
style,
|
|
7763
|
-
children: [/* @__PURE__ */
|
|
7483
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(ImageWithStatics, __spreadProps(__spreadValues({}, rest), {
|
|
7764
7484
|
ref: imageRef,
|
|
7765
7485
|
style: [{
|
|
7766
7486
|
// Temporary Workaround:
|
|
@@ -7856,7 +7576,7 @@ function Pressable(props, forwardedRef) {
|
|
|
7856
7576
|
}, [onContextMenu, onContextMenuPress]), keyDownHandler = React__namespace.useCallback((e2) => {
|
|
7857
7577
|
onKeyDownPress == null ? void 0 : onKeyDownPress(e2), onKeyDown2 == null ? void 0 : onKeyDown2(e2);
|
|
7858
7578
|
}, [onKeyDown2, onKeyDownPress]);
|
|
7859
|
-
return /* @__PURE__ */
|
|
7579
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues(__spreadValues({}, rest), pressEventHandlers), {
|
|
7860
7580
|
accessibilityDisabled: disabled,
|
|
7861
7581
|
focusable: !disabled && focusable !== false,
|
|
7862
7582
|
onBlur: blurHandler,
|
|
@@ -7886,7 +7606,7 @@ const cssFunction = canUseDOM$1 && window.CSS && window.CSS.supports && window.C
|
|
|
7886
7606
|
} = _a, rest = __objRest(_a, [
|
|
7887
7607
|
"style"
|
|
7888
7608
|
]);
|
|
7889
|
-
return /* @__PURE__ */
|
|
7609
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7890
7610
|
ref,
|
|
7891
7611
|
style: StyleSheet.compose(styles$4.root, style)
|
|
7892
7612
|
}));
|
|
@@ -7978,7 +7698,7 @@ const ScrollViewBase = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
7978
7698
|
scrollState.current.isScrolling = false, onScroll && onScroll(normalizeScrollEvent(e2));
|
|
7979
7699
|
}
|
|
7980
7700
|
const hideScrollbar = showsHorizontalScrollIndicator === false || showsVerticalScrollIndicator === false;
|
|
7981
|
-
return /* @__PURE__ */
|
|
7701
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7982
7702
|
onScroll: handleScroll,
|
|
7983
7703
|
onTouchMove: createPreventableScrollHandler(onTouchMove),
|
|
7984
7704
|
onWheel: createPreventableScrollHandler(onWheel),
|
|
@@ -8225,11 +7945,11 @@ let ScrollView$1 = class ScrollView2 extends React.Component {
|
|
|
8225
7945
|
});
|
|
8226
7946
|
const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices), children = hasStickyHeaderIndices || pagingEnabled ? React.Children.map(this.props.children, (child, i) => {
|
|
8227
7947
|
const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
8228
|
-
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */
|
|
7948
|
+
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
8229
7949
|
style: StyleSheet.compose(isSticky && styles$2.stickyHeader, pagingEnabled && styles$2.pagingEnabledChild),
|
|
8230
7950
|
children: child
|
|
8231
7951
|
}) : child;
|
|
8232
|
-
}) : this.props.children, contentContainer = /* @__PURE__ */
|
|
7952
|
+
}) : this.props.children, contentContainer = /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, contentSizeChangeProps), {
|
|
8233
7953
|
collapsable: false,
|
|
8234
7954
|
ref: this._setInnerViewRef.bind(this),
|
|
8235
7955
|
style: [horizontal && styles$2.contentContainerHorizontal, centerContent && styles$2.contentContainerCenterContent, contentContainerStyle],
|
|
@@ -8254,7 +7974,7 @@ let ScrollView$1 = class ScrollView2 extends React.Component {
|
|
|
8254
7974
|
onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
|
|
8255
7975
|
}), ScrollViewClass = ScrollViewBase;
|
|
8256
7976
|
invariant(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
|
|
8257
|
-
const scrollView = /* @__PURE__ */
|
|
7977
|
+
const scrollView = /* @__PURE__ */ jsxRuntime.jsx(ScrollViewClass, __spreadProps(__spreadValues({}, props), {
|
|
8258
7978
|
ref: this._setScrollNodeRef.bind(this),
|
|
8259
7979
|
children: contentContainer
|
|
8260
7980
|
}));
|
|
@@ -8503,7 +8223,7 @@ const commonStyle = {
|
|
|
8503
8223
|
pagingEnabledChild: {
|
|
8504
8224
|
scrollSnapAlign: "start"
|
|
8505
8225
|
}
|
|
8506
|
-
}, ForwardedScrollView = React.forwardRef((props, forwardedRef) => /* @__PURE__ */
|
|
8226
|
+
}, ForwardedScrollView = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(ScrollView$1, __spreadProps(__spreadValues({}, props), {
|
|
8507
8227
|
forwardedRef
|
|
8508
8228
|
})));
|
|
8509
8229
|
ForwardedScrollView.displayName = "ScrollView";
|
|
@@ -8593,7 +8313,7 @@ const pickProps$1 = (props) => pick(props, forwardPropsListText), Text$4 = React
|
|
|
8593
8313
|
const platformMethodsRef = usePlatformMethods(supportedProps), setRef2 = useMergeRefs$1(hostRef, platformMethodsRef, forwardedRef);
|
|
8594
8314
|
supportedProps.ref = setRef2;
|
|
8595
8315
|
const element = useCreateElement$1(component, supportedProps);
|
|
8596
|
-
return hasTextAncestor ? element : /* @__PURE__ */
|
|
8316
|
+
return hasTextAncestor ? element : /* @__PURE__ */ jsxRuntime.jsx(TextAncestorContext.Provider, {
|
|
8597
8317
|
value: true,
|
|
8598
8318
|
children: element
|
|
8599
8319
|
});
|
|
@@ -11014,9 +10734,14 @@ var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animata
|
|
|
11014
10734
|
}))), {
|
|
11015
10735
|
opacity: 1,
|
|
11016
10736
|
scale: 1,
|
|
10737
|
+
scaleX: 1,
|
|
10738
|
+
scaleY: 1,
|
|
11017
10739
|
rotate: "0deg",
|
|
11018
|
-
rotateY: "0deg",
|
|
11019
10740
|
rotateX: "0deg",
|
|
10741
|
+
rotateY: "0deg",
|
|
10742
|
+
rotateZ: "0deg",
|
|
10743
|
+
skewX: "0deg",
|
|
10744
|
+
skewY: "0deg",
|
|
11020
10745
|
x: 0,
|
|
11021
10746
|
y: 0,
|
|
11022
10747
|
borderRadius: 0
|
|
@@ -11158,7 +10883,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
11158
10883
|
forceClassName
|
|
11159
10884
|
} = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props);
|
|
11160
10885
|
if (!shouldRenderChildrenWithTheme) return children;
|
|
11161
|
-
children = /* @__PURE__ */
|
|
10886
|
+
children = /* @__PURE__ */ jsxRuntime.jsx(ThemeStateContext.Provider, {
|
|
11162
10887
|
value: themeState.id,
|
|
11163
10888
|
children
|
|
11164
10889
|
});
|
|
@@ -11172,7 +10897,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
11172
10897
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
11173
10898
|
if (!parentState) throw new Error("‼️010");
|
|
11174
10899
|
children = React.Children.toArray(children).map(function(child) {
|
|
11175
|
-
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */
|
|
10900
|
+
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
11176
10901
|
name: parentState.name,
|
|
11177
10902
|
children: child.props.children
|
|
11178
10903
|
})) : child;
|
|
@@ -11198,21 +10923,21 @@ function themeable(Component, staticConfig) {
|
|
|
11198
10923
|
}
|
|
11199
10924
|
var element = (
|
|
11200
10925
|
// @ts-expect-error its ok
|
|
11201
|
-
/* @__PURE__ */
|
|
10926
|
+
/* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({
|
|
11202
10927
|
ref
|
|
11203
10928
|
}, rest), {
|
|
11204
10929
|
"data-disable-theme": true
|
|
11205
10930
|
}))
|
|
11206
10931
|
), filteredProps = null, compName = componentName || (staticConfig == null ? void 0 : staticConfig.componentName);
|
|
11207
10932
|
if (compName && (filteredProps || (filteredProps = {}), filteredProps.componentName = compName), "debug" in props && (filteredProps || (filteredProps = {}), filteredProps.debug = props.debug), "theme" in props && (filteredProps || (filteredProps = {}), filteredProps.name = props.theme), "themeReset" in props && (filteredProps || (filteredProps = {}), filteredProps.reset = themeReset), optimize && !filteredProps) return element;
|
|
11208
|
-
var contents = /* @__PURE__ */
|
|
10933
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(Theme, __spreadProps(__spreadValues({
|
|
11209
10934
|
"disable-child-theme": true
|
|
11210
10935
|
}, filteredProps), {
|
|
11211
10936
|
children: element
|
|
11212
10937
|
}));
|
|
11213
10938
|
if (context2) {
|
|
11214
10939
|
var Provider = context2.Provider, contextValue = React.useContext(context2);
|
|
11215
|
-
contents = /* @__PURE__ */
|
|
10940
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues(__spreadValues({}, contextValue), overriddenContextProps), {
|
|
11216
10941
|
children: contents
|
|
11217
10942
|
}));
|
|
11218
10943
|
}
|
|
@@ -11227,7 +10952,7 @@ var ClientOnlyContext = /* @__PURE__ */ React.createContext(false), ClientOnly =
|
|
|
11227
10952
|
children,
|
|
11228
10953
|
enabled
|
|
11229
10954
|
} = param, existingValue = React.useContext(ClientOnlyContext);
|
|
11230
|
-
return /* @__PURE__ */
|
|
10955
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnlyContext.Provider, {
|
|
11231
10956
|
value: enabled != null ? enabled : existingValue,
|
|
11232
10957
|
children
|
|
11233
10958
|
});
|
|
@@ -11345,7 +11070,7 @@ var is19 = React.version.startsWith("19."), Slot = /* @__PURE__ */ React.memo(/*
|
|
|
11345
11070
|
var {
|
|
11346
11071
|
children
|
|
11347
11072
|
} = param;
|
|
11348
|
-
return /* @__PURE__ */
|
|
11073
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
11349
11074
|
children
|
|
11350
11075
|
});
|
|
11351
11076
|
};
|
|
@@ -11671,24 +11396,27 @@ function createComponent(staticConfig) {
|
|
|
11671
11396
|
});
|
|
11672
11397
|
return;
|
|
11673
11398
|
}
|
|
11674
|
-
var tm;
|
|
11675
11399
|
if (state.unmounted) {
|
|
11676
|
-
if (
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11400
|
+
if (supportsCSS) {
|
|
11401
|
+
var cancelled = false;
|
|
11402
|
+
return requestAnimationFrame(function() {
|
|
11403
|
+
cancelled || requestAnimationFrame(function() {
|
|
11404
|
+
cancelled || setStateShallow({
|
|
11405
|
+
unmounted: false
|
|
11406
|
+
});
|
|
11407
|
+
});
|
|
11408
|
+
}), function() {
|
|
11409
|
+
cancelled = true;
|
|
11410
|
+
};
|
|
11411
|
+
}
|
|
11683
11412
|
setStateShallow({
|
|
11684
11413
|
unmounted: false
|
|
11685
11414
|
});
|
|
11686
|
-
return;
|
|
11687
11415
|
}
|
|
11688
11416
|
return function() {
|
|
11689
11417
|
componentSetStates.delete(setState);
|
|
11690
11418
|
};
|
|
11691
|
-
}, [state.unmounted,
|
|
11419
|
+
}, [state.unmounted, supportsCSS]), useIsomorphicLayoutEffect(function() {
|
|
11692
11420
|
if (!disabled && !(!pseudoGroups && !mediaGroups) && allGroupContexts) return subscribeToContextGroup({
|
|
11693
11421
|
groupContext: allGroupContexts,
|
|
11694
11422
|
setStateShallow,
|
|
@@ -11776,19 +11504,19 @@ function createComponent(staticConfig) {
|
|
|
11776
11504
|
!isHOC && ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
11777
11505
|
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = true);
|
|
11778
11506
|
var renderReset = needsReset || hasEverReset;
|
|
11779
|
-
if (renderReset && ResetPresence2 && (content = /* @__PURE__ */
|
|
11507
|
+
if (renderReset && ResetPresence2 && (content = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence2, {
|
|
11780
11508
|
disabled: !needsReset,
|
|
11781
11509
|
children: content
|
|
11782
|
-
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */
|
|
11510
|
+
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, componentContext), {
|
|
11783
11511
|
setParentFocusState: setStateShallow,
|
|
11784
11512
|
children: content
|
|
11785
|
-
}))), "group" in props && (content = /* @__PURE__ */
|
|
11513
|
+
}))), "group" in props && (content = /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, {
|
|
11786
11514
|
value: allGroupContexts,
|
|
11787
11515
|
children: content
|
|
11788
11516
|
})), content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef), overriddenContextProps && contextForOverride) {
|
|
11789
11517
|
var Provider = contextForOverride.Provider;
|
|
11790
11518
|
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
11791
|
-
|
|
11519
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues({
|
|
11792
11520
|
__disableMergeDefaultValues: true
|
|
11793
11521
|
}, overriddenContextProps), {
|
|
11794
11522
|
children: content
|
|
@@ -12403,9 +12131,9 @@ function useThemeName() {
|
|
|
12403
12131
|
}
|
|
12404
12132
|
var Configuration = function(props) {
|
|
12405
12133
|
var current = React.useContext(ComponentContext), _props_disableSSR;
|
|
12406
|
-
return /* @__PURE__ */
|
|
12134
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12407
12135
|
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
12408
|
-
children: /* @__PURE__ */
|
|
12136
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadValues(__spreadValues({}, current), props))
|
|
12409
12137
|
});
|
|
12410
12138
|
};
|
|
12411
12139
|
function FontLanguage(param) {
|
|
@@ -12416,7 +12144,7 @@ function FontLanguage(param) {
|
|
|
12416
12144
|
]), parentProps = React.useContext(ComponentContext), language = React.useMemo(function() {
|
|
12417
12145
|
return props;
|
|
12418
12146
|
}, [JSON.stringify(props)]);
|
|
12419
|
-
return /* @__PURE__ */
|
|
12147
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, parentProps), {
|
|
12420
12148
|
language,
|
|
12421
12149
|
children
|
|
12422
12150
|
}));
|
|
@@ -12424,7 +12152,7 @@ function FontLanguage(param) {
|
|
|
12424
12152
|
var ThemeProvider = function(props) {
|
|
12425
12153
|
var addThemeClassName = getSetting("addThemeClassName");
|
|
12426
12154
|
var forceClassName = addThemeClassName === void 0;
|
|
12427
|
-
return /* @__PURE__ */
|
|
12155
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
12428
12156
|
className: props.className,
|
|
12429
12157
|
name: props.defaultTheme,
|
|
12430
12158
|
forceClassName,
|
|
@@ -12448,11 +12176,11 @@ function TamaguiProvider$2(param) {
|
|
|
12448
12176
|
}, []);
|
|
12449
12177
|
var memoizedInsets = React.useMemo(function() {
|
|
12450
12178
|
return insets;
|
|
12451
|
-
}, [insets == null ? void 0 : insets.top, insets == null ? void 0 : insets.right, insets == null ? void 0 : insets.bottom, insets == null ? void 0 : insets.left]), contents = /* @__PURE__ */
|
|
12452
|
-
children: /* @__PURE__ */
|
|
12179
|
+
}, [insets == null ? void 0 : insets.top, insets == null ? void 0 : insets.right, insets == null ? void 0 : insets.bottom, insets == null ? void 0 : insets.left]), contents = /* @__PURE__ */ jsxRuntime.jsx(UnmountedClassName, {
|
|
12180
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, {
|
|
12453
12181
|
animationDriver: config == null ? void 0 : config.animations,
|
|
12454
12182
|
insets: memoizedInsets,
|
|
12455
|
-
children: /* @__PURE__ */
|
|
12183
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, {
|
|
12456
12184
|
defaultTheme,
|
|
12457
12185
|
reset,
|
|
12458
12186
|
className,
|
|
@@ -12460,10 +12188,10 @@ function TamaguiProvider$2(param) {
|
|
|
12460
12188
|
})
|
|
12461
12189
|
})
|
|
12462
12190
|
});
|
|
12463
|
-
return getSetting("disableSSR") && (contents = /* @__PURE__ */
|
|
12191
|
+
return getSetting("disableSSR") && (contents = /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12464
12192
|
enabled: true,
|
|
12465
12193
|
children: contents
|
|
12466
|
-
})), /* @__PURE__ */
|
|
12194
|
+
})), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
12467
12195
|
children: [contents, false]
|
|
12468
12196
|
});
|
|
12469
12197
|
}
|
|
@@ -12585,8 +12313,8 @@ function spacedChildren(props) {
|
|
|
12585
12313
|
spaceFlex,
|
|
12586
12314
|
separator,
|
|
12587
12315
|
key: child.key
|
|
12588
|
-
})), isEmpty || !child || child.key && !isZStack ? final.push(child) : final.push(/* @__PURE__ */
|
|
12589
|
-
children: isZStack ? /* @__PURE__ */
|
|
12316
|
+
})), isEmpty || !child || child.key && !isZStack ? final.push(child) : final.push(/* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
12317
|
+
children: isZStack ? /* @__PURE__ */ jsxRuntime.jsx(AbsoluteFill, {
|
|
12590
12318
|
children: child
|
|
12591
12319
|
}) : child
|
|
12592
12320
|
}, `${index2}0t`)), !(isUnspaced(child) && index2 === 0) && !isZStack) {
|
|
@@ -12596,7 +12324,7 @@ function spacedChildren(props) {
|
|
|
12596
12324
|
direction,
|
|
12597
12325
|
space,
|
|
12598
12326
|
spaceFlex
|
|
12599
|
-
})), final.push(/* @__PURE__ */
|
|
12327
|
+
})), final.push(/* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
12600
12328
|
children: separator
|
|
12601
12329
|
}, `${index2}03t`)), hasSpace && final.push(createSpacer({
|
|
12602
12330
|
key: `_${index2}01t`,
|
|
@@ -12629,7 +12357,7 @@ function createSpacer(param) {
|
|
|
12629
12357
|
space,
|
|
12630
12358
|
spaceFlex
|
|
12631
12359
|
} = param;
|
|
12632
|
-
return /* @__PURE__ */
|
|
12360
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Spacer, __spreadValues({
|
|
12633
12361
|
// @ts-ignore
|
|
12634
12362
|
size: space,
|
|
12635
12363
|
// @ts-ignore
|
|
@@ -12667,7 +12395,7 @@ function useConstant(fn) {
|
|
|
12667
12395
|
}
|
|
12668
12396
|
var PresenceContext = /* @__PURE__ */ React__namespace.createContext(null), ResetPresence = function(props) {
|
|
12669
12397
|
var parent = React__namespace.useContext(PresenceContext);
|
|
12670
|
-
return /* @__PURE__ */
|
|
12398
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PresenceContext.Provider, {
|
|
12671
12399
|
value: props.disable ? parent : null,
|
|
12672
12400
|
children: props.children
|
|
12673
12401
|
});
|
|
@@ -12756,7 +12484,7 @@ var PresenceChild = /* @__PURE__ */ React__namespace.memo(function(param) {
|
|
|
12756
12484
|
});
|
|
12757
12485
|
}, [isPresent2]), React__namespace.useEffect(function() {
|
|
12758
12486
|
!isPresent2 && !presenceChildren.size && (onExitComplete == null ? void 0 : onExitComplete());
|
|
12759
|
-
}, [isPresent2]), /* @__PURE__ */
|
|
12487
|
+
}, [isPresent2]), /* @__PURE__ */ jsxRuntime.jsx(PresenceContext.Provider, {
|
|
12760
12488
|
value: context2,
|
|
12761
12489
|
children
|
|
12762
12490
|
});
|
|
@@ -12794,14 +12522,14 @@ var AnimatePresence = function(param) {
|
|
|
12794
12522
|
} = param, _useContext_forceRender, forceRender = (_useContext_forceRender = React.useContext(LayoutGroupContext).forceRender) !== null && _useContext_forceRender !== void 0 ? _useContext_forceRender : useForceUpdate(), filteredChildren = onlyElements(children), presentChildren = React.useRef(filteredChildren), allChildren = React.useRef(/* @__PURE__ */ new Map()).current, exiting = React.useRef(/* @__PURE__ */ new Set()).current;
|
|
12795
12523
|
updateChildLookup(filteredChildren, allChildren);
|
|
12796
12524
|
var isInitialRender = React.useRef(true);
|
|
12797
|
-
if (passThrough) return /* @__PURE__ */
|
|
12525
|
+
if (passThrough) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12798
12526
|
children
|
|
12799
12527
|
});
|
|
12800
12528
|
if (useIsomorphicLayoutEffect(function() {
|
|
12801
12529
|
isInitialRender.current = false;
|
|
12802
|
-
}, []), isInitialRender.current) return /* @__PURE__ */
|
|
12530
|
+
}, []), isInitialRender.current) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12803
12531
|
children: filteredChildren.map(function(child) {
|
|
12804
|
-
return /* @__PURE__ */
|
|
12532
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12805
12533
|
isPresent: true,
|
|
12806
12534
|
enterExitVariant,
|
|
12807
12535
|
exitVariant,
|
|
@@ -12827,7 +12555,7 @@ var AnimatePresence = function(param) {
|
|
|
12827
12555
|
return presentChild.key === key2;
|
|
12828
12556
|
});
|
|
12829
12557
|
presentChildren.current.splice(removeIndex, 1), exiting.size || (presentChildren.current = filteredChildren, forceRender(), onExitComplete == null ? void 0 : onExitComplete());
|
|
12830
|
-
}, exitingComponent = /* @__PURE__ */
|
|
12558
|
+
}, exitingComponent = /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12831
12559
|
isPresent: false,
|
|
12832
12560
|
onExitComplete: onExit,
|
|
12833
12561
|
presenceAffectsLayout,
|
|
@@ -12842,7 +12570,7 @@ var AnimatePresence = function(param) {
|
|
|
12842
12570
|
}
|
|
12843
12571
|
}), childrenToRender = childrenToRender.map(function(child) {
|
|
12844
12572
|
var key2 = child.key;
|
|
12845
|
-
return exiting.has(key2) ? child : /* @__PURE__ */
|
|
12573
|
+
return exiting.has(key2) ? child : /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12846
12574
|
isPresent: true,
|
|
12847
12575
|
exitVariant,
|
|
12848
12576
|
enterVariant,
|
|
@@ -12851,7 +12579,7 @@ var AnimatePresence = function(param) {
|
|
|
12851
12579
|
custom,
|
|
12852
12580
|
children: child
|
|
12853
12581
|
}, getChildKey(child));
|
|
12854
|
-
}), presentChildren.current = childrenToRender, /* @__PURE__ */
|
|
12582
|
+
}), presentChildren.current = childrenToRender, /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12855
12583
|
children: exiting.size ? childrenToRender : (
|
|
12856
12584
|
// biome-ignore lint/correctness/useJsxKeyInIterable: <explanation>
|
|
12857
12585
|
childrenToRender.map(function(child) {
|
|
@@ -12916,7 +12644,7 @@ var COLLAPSIBLE_NAME = "Collapsible", {
|
|
|
12916
12644
|
defaultProp: defaultOpen,
|
|
12917
12645
|
onChange: onOpenChange
|
|
12918
12646
|
});
|
|
12919
|
-
return /* @__PURE__ */
|
|
12647
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsibleProvider, {
|
|
12920
12648
|
scope: __scopeCollapsible,
|
|
12921
12649
|
disabled,
|
|
12922
12650
|
contentId: React__namespace.useId(),
|
|
@@ -12926,7 +12654,7 @@ var COLLAPSIBLE_NAME = "Collapsible", {
|
|
|
12926
12654
|
return !prevOpen;
|
|
12927
12655
|
});
|
|
12928
12656
|
}, [setOpen]),
|
|
12929
|
-
children: /* @__PURE__ */
|
|
12657
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Stack$1, __spreadProps(__spreadValues({
|
|
12930
12658
|
"data-state": getState$4(open2),
|
|
12931
12659
|
"data-disabled": disabled ? "" : void 0
|
|
12932
12660
|
}, collapsibleProps), {
|
|
@@ -12946,7 +12674,7 @@ var TRIGGER_NAME$4 = "CollapsibleTrigger", CollapsibleTriggerFrame = styled(Stac
|
|
|
12946
12674
|
"__scopeCollapsible",
|
|
12947
12675
|
"children"
|
|
12948
12676
|
]), context2 = useCollapsibleContext(__scopeCollapsible);
|
|
12949
|
-
return /* @__PURE__ */
|
|
12677
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsibleTriggerFrame, __spreadProps(__spreadValues({
|
|
12950
12678
|
"aria-controls": context2.contentId,
|
|
12951
12679
|
"aria-expanded": context2.open || false,
|
|
12952
12680
|
"data-state": getState$4(context2.open),
|
|
@@ -12974,11 +12702,11 @@ var CONTENT_NAME$3 = "CollapsibleContent", CollapsibleContentFrame = styled(Stac
|
|
|
12974
12702
|
// @ts-expect-error
|
|
12975
12703
|
"__scopeCollapsible"
|
|
12976
12704
|
]), context2 = useCollapsibleContext(__scopeCollapsible);
|
|
12977
|
-
return /* @__PURE__ */
|
|
12978
|
-
children: forceMount || context2.open ? /* @__PURE__ */
|
|
12705
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, __spreadProps(__spreadValues({}, contentProps), {
|
|
12706
|
+
children: forceMount || context2.open ? /* @__PURE__ */ jsxRuntime.jsx(CollapsibleContentFrame, __spreadProps(__spreadValues({
|
|
12979
12707
|
ref: forwardedRef
|
|
12980
12708
|
}, contentProps), {
|
|
12981
|
-
children: /* @__PURE__ */
|
|
12709
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
12982
12710
|
children
|
|
12983
12711
|
})
|
|
12984
12712
|
})) : null
|
|
@@ -13197,7 +12925,7 @@ var usePressability = require("react-native/Libraries/Pressability/usePressabili
|
|
|
13197
12925
|
var TamaguiProvider$1 = function(props) {
|
|
13198
12926
|
return useIsomorphicLayoutEffect(function() {
|
|
13199
12927
|
enable();
|
|
13200
|
-
}, []), /* @__PURE__ */
|
|
12928
|
+
}, []), /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$2, __spreadValues({}, props));
|
|
13201
12929
|
}, createTamagui$1 = function(conf2) {
|
|
13202
12930
|
return conf2.media && (conf2.media = createMedia(conf2.media)), createTamagui$2(conf2);
|
|
13203
12931
|
};
|
|
@@ -13250,7 +12978,7 @@ function createCollection(name) {
|
|
|
13250
12978
|
scope,
|
|
13251
12979
|
children
|
|
13252
12980
|
} = props, ref = React.useRef(void 0), itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
|
|
13253
|
-
return /* @__PURE__ */
|
|
12981
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollectionProviderImpl, {
|
|
13254
12982
|
scope,
|
|
13255
12983
|
itemMap,
|
|
13256
12984
|
collectionRef: ref,
|
|
@@ -13263,7 +12991,7 @@ function createCollection(name) {
|
|
|
13263
12991
|
scope,
|
|
13264
12992
|
children
|
|
13265
12993
|
} = props, context2 = useCollectionContext(scope), composedRefs = useComposedRefs(forwardedRef, context2.collectionRef);
|
|
13266
|
-
return /* @__PURE__ */
|
|
12994
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Slot, {
|
|
13267
12995
|
ref: composedRefs,
|
|
13268
12996
|
children
|
|
13269
12997
|
});
|
|
@@ -13283,7 +13011,7 @@ function createCollection(name) {
|
|
|
13283
13011
|
}, itemData)), function() {
|
|
13284
13012
|
return void context2.itemMap.delete(ref);
|
|
13285
13013
|
};
|
|
13286
|
-
}), /* @__PURE__ */
|
|
13014
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(Slot, {
|
|
13287
13015
|
[ITEM_DATA_ATTR]: "",
|
|
13288
13016
|
ref: composedRefs,
|
|
13289
13017
|
children
|
|
@@ -13763,7 +13491,7 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
|
13763
13491
|
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), React.Children.toArray(children).map(function(child, index2) {
|
|
13764
13492
|
return typeof child == "string" ? (
|
|
13765
13493
|
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
13766
|
-
/* @__PURE__ */
|
|
13494
|
+
/* @__PURE__ */ jsxRuntime.jsx(TextComponent, __spreadProps(__spreadValues(__spreadValues({}, props), textProps), {
|
|
13767
13495
|
children: child
|
|
13768
13496
|
}), index2)
|
|
13769
13497
|
) : child;
|
|
@@ -13780,11 +13508,11 @@ var ACCORDION_NAME = "Accordion", ACCORDION_KEYS = ["Home", "End", "ArrowDown",
|
|
|
13780
13508
|
} = _a, accordionProps = __objRest(_a, [
|
|
13781
13509
|
"type"
|
|
13782
13510
|
]), singleProps = accordionProps, multipleProps = accordionProps;
|
|
13783
|
-
return /* @__PURE__ */
|
|
13511
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, {
|
|
13784
13512
|
scope: props.__scopeAccordion || ACCORDION_CONTEXT,
|
|
13785
|
-
children: type === "multiple" ? /* @__PURE__ */
|
|
13513
|
+
children: type === "multiple" ? /* @__PURE__ */ jsxRuntime.jsx(AccordionImplMultiple, __spreadProps(__spreadValues({}, multipleProps), {
|
|
13786
13514
|
ref: forwardedRef
|
|
13787
|
-
})) : /* @__PURE__ */
|
|
13515
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(AccordionImplSingle, __spreadProps(__spreadValues({}, singleProps), {
|
|
13788
13516
|
ref: forwardedRef
|
|
13789
13517
|
}))
|
|
13790
13518
|
});
|
|
@@ -13821,17 +13549,17 @@ var {
|
|
|
13821
13549
|
defaultProp: defaultValue2 || "",
|
|
13822
13550
|
onChange: onValueChange
|
|
13823
13551
|
});
|
|
13824
|
-
return /* @__PURE__ */
|
|
13552
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionValueProvider, {
|
|
13825
13553
|
scope: props.__scopeAccordion,
|
|
13826
13554
|
value: value ? [value] : [],
|
|
13827
13555
|
onItemOpen: setValue,
|
|
13828
13556
|
onItemClose: React__namespace.useCallback(function() {
|
|
13829
13557
|
return collapsible && setValue("");
|
|
13830
13558
|
}, [setValue, collapsible]),
|
|
13831
|
-
children: /* @__PURE__ */
|
|
13559
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, {
|
|
13832
13560
|
scope: props.__scopeAccordion,
|
|
13833
13561
|
collapsible,
|
|
13834
|
-
children: /* @__PURE__ */
|
|
13562
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, __spreadProps(__spreadValues({}, accordionSingleProps), {
|
|
13835
13563
|
ref: forwardedRef
|
|
13836
13564
|
}))
|
|
13837
13565
|
})
|
|
@@ -13863,15 +13591,15 @@ var {
|
|
|
13863
13591
|
});
|
|
13864
13592
|
});
|
|
13865
13593
|
}, [setValue]);
|
|
13866
|
-
return /* @__PURE__ */
|
|
13594
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionValueProvider, {
|
|
13867
13595
|
scope: props.__scopeAccordion,
|
|
13868
13596
|
value: value || [],
|
|
13869
13597
|
onItemOpen: handleItemOpen,
|
|
13870
13598
|
onItemClose: handleItemClose,
|
|
13871
|
-
children: /* @__PURE__ */
|
|
13599
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, {
|
|
13872
13600
|
scope: props.__scopeAccordion,
|
|
13873
13601
|
collapsible: true,
|
|
13874
|
-
children: /* @__PURE__ */
|
|
13602
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, __spreadProps(__spreadValues({}, accordionMultipleProps), {
|
|
13875
13603
|
ref: forwardedRef
|
|
13876
13604
|
}))
|
|
13877
13605
|
})
|
|
@@ -13932,14 +13660,14 @@ var {
|
|
|
13932
13660
|
}
|
|
13933
13661
|
}
|
|
13934
13662
|
});
|
|
13935
|
-
return /* @__PURE__ */
|
|
13663
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionImplProvider, {
|
|
13936
13664
|
scope: __scopeAccordion,
|
|
13937
13665
|
disabled,
|
|
13938
13666
|
direction: dir,
|
|
13939
13667
|
orientation,
|
|
13940
|
-
children: /* @__PURE__ */
|
|
13668
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, {
|
|
13941
13669
|
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
13942
|
-
children: /* @__PURE__ */
|
|
13670
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadValues(__spreadValues({
|
|
13943
13671
|
"data-orientation": orientation,
|
|
13944
13672
|
ref: composedRef
|
|
13945
13673
|
}, accordionProps), isWeb))
|
|
@@ -13956,12 +13684,12 @@ var {
|
|
|
13956
13684
|
"__scopeAccordion",
|
|
13957
13685
|
"value"
|
|
13958
13686
|
]), accordionContext = useAccordionContext(__scopeAccordion), valueContext = useAccordionValueContext(__scopeAccordion), triggerId = React__namespace.useId(), open2 = value && valueContext.value.includes(value) || false, disabled = accordionContext.disabled || props.disabled;
|
|
13959
|
-
return /* @__PURE__ */
|
|
13687
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionItemProvider, {
|
|
13960
13688
|
scope: __scopeAccordion,
|
|
13961
13689
|
open: open2,
|
|
13962
13690
|
disabled,
|
|
13963
13691
|
triggerId,
|
|
13964
|
-
children: /* @__PURE__ */
|
|
13692
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collapsible, __spreadProps(__spreadValues({
|
|
13965
13693
|
"data-orientation": accordionContext.orientation,
|
|
13966
13694
|
"data-state": open2 ? "open" : "closed",
|
|
13967
13695
|
__scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT
|
|
@@ -13982,7 +13710,7 @@ var HEADER_NAME = "AccordionHeader", AccordionHeader = /* @__PURE__ */ React__na
|
|
|
13982
13710
|
} = _a, headerProps = __objRest(_a, [
|
|
13983
13711
|
"__scopeAccordion"
|
|
13984
13712
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
|
|
13985
|
-
return /* @__PURE__ */
|
|
13713
|
+
return /* @__PURE__ */ jsxRuntime.jsx(H1, __spreadProps(__spreadValues({
|
|
13986
13714
|
"data-orientation": accordionContext.orientation,
|
|
13987
13715
|
"data-state": getState$3(itemContext.open),
|
|
13988
13716
|
"data-disabled": itemContext.disabled ? "" : void 0
|
|
@@ -14021,9 +13749,9 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
14021
13749
|
} = _a, triggerProps = __objRest(_a, [
|
|
14022
13750
|
"__scopeAccordion"
|
|
14023
13751
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
|
|
14024
|
-
return /* @__PURE__ */
|
|
13752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection.ItemSlot, {
|
|
14025
13753
|
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
14026
|
-
children: /* @__PURE__ */
|
|
13754
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionTriggerFrame, __spreadProps(__spreadValues({
|
|
14027
13755
|
// @ts-ignore
|
|
14028
13756
|
__scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT,
|
|
14029
13757
|
"aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
|
|
@@ -14051,7 +13779,7 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
14051
13779
|
} = _a, contentProps = __objRest(_a, [
|
|
14052
13780
|
"__scopeAccordion"
|
|
14053
13781
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
|
|
14054
|
-
return /* @__PURE__ */
|
|
13782
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionContentFrame, __spreadProps(__spreadValues({
|
|
14055
13783
|
role: "region",
|
|
14056
13784
|
"aria-labelledby": itemContext.triggerId,
|
|
14057
13785
|
"data-orientation": accordionContext.orientation,
|
|
@@ -14066,12 +13794,12 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
14066
13794
|
} = _a, rest = __objRest(_a, [
|
|
14067
13795
|
"children"
|
|
14068
13796
|
]), [height, setHeight] = React__namespace.useState(0);
|
|
14069
|
-
return /* @__PURE__ */
|
|
13797
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
14070
13798
|
ref,
|
|
14071
13799
|
height: itemContext.open ? height : 0,
|
|
14072
13800
|
position: "relative"
|
|
14073
13801
|
}, rest), {
|
|
14074
|
-
children: /* @__PURE__ */
|
|
13802
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
14075
13803
|
position: "absolute",
|
|
14076
13804
|
width: "100%",
|
|
14077
13805
|
onLayout: function(param) {
|
|
@@ -14142,11 +13870,11 @@ var StackZIndexContext = function(param) {
|
|
|
14142
13870
|
var {
|
|
14143
13871
|
children,
|
|
14144
13872
|
zIndex
|
|
14145
|
-
} = param, existing = React.useContext(ZIndexStackContext), content = /* @__PURE__ */
|
|
13873
|
+
} = param, existing = React.useContext(ZIndexStackContext), content = /* @__PURE__ */ jsxRuntime.jsx(ZIndexStackContext.Provider, {
|
|
14146
13874
|
value: existing + 1,
|
|
14147
13875
|
children
|
|
14148
13876
|
});
|
|
14149
|
-
return typeof zIndex < "u" && (content = /* @__PURE__ */
|
|
13877
|
+
return typeof zIndex < "u" && (content = /* @__PURE__ */ jsxRuntime.jsx(ZIndexHardcodedContext.Provider, {
|
|
14150
13878
|
value: zIndex,
|
|
14151
13879
|
children: content
|
|
14152
13880
|
})), content;
|
|
@@ -14241,11 +13969,11 @@ var registerHost = function(state, hostName) {
|
|
|
14241
13969
|
};
|
|
14242
13970
|
return next;
|
|
14243
13971
|
}, [dispatch]);
|
|
14244
|
-
return /* @__PURE__ */
|
|
13972
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalDispatchContext.Provider, {
|
|
14245
13973
|
value: transitionDispatch,
|
|
14246
|
-
children: /* @__PURE__ */
|
|
13974
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(PortalStateContext.Provider, {
|
|
14247
13975
|
value: state,
|
|
14248
|
-
children: [children, shouldAddRootHost && /* @__PURE__ */
|
|
13976
|
+
children: [children, shouldAddRootHost && /* @__PURE__ */ jsxRuntime.jsx(PortalHost, {
|
|
14249
13977
|
name: rootHostName
|
|
14250
13978
|
})]
|
|
14251
13979
|
})
|
|
@@ -14253,11 +13981,11 @@ var registerHost = function(state, hostName) {
|
|
|
14253
13981
|
}, PortalProvider = /* @__PURE__ */ React.memo(PortalProviderComponent);
|
|
14254
13982
|
PortalProvider.displayName = "PortalProvider";
|
|
14255
13983
|
var defaultRenderer = function(children) {
|
|
14256
|
-
return /* @__PURE__ */
|
|
13984
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
14257
13985
|
children
|
|
14258
13986
|
});
|
|
14259
13987
|
}, PortalHost = /* @__PURE__ */ React.memo(function(props) {
|
|
14260
|
-
return /* @__PURE__ */
|
|
13988
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalHostNonNative, __spreadValues({}, props));
|
|
14261
13989
|
});
|
|
14262
13990
|
function PortalHostNonNative(props) {
|
|
14263
13991
|
var {
|
|
@@ -14345,7 +14073,7 @@ var createPortal = (function() {
|
|
|
14345
14073
|
var rootTag = React__namespace.useContext(RootTagContext), zIndex = useStackedZIndex(getStackedZIndexProps(propsIn)), {
|
|
14346
14074
|
children,
|
|
14347
14075
|
passThrough
|
|
14348
|
-
} = propsIn, contents = /* @__PURE__ */
|
|
14076
|
+
} = propsIn, contents = /* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
14349
14077
|
pointerEvents: "box-none",
|
|
14350
14078
|
position: "absolute",
|
|
14351
14079
|
inset: 0,
|
|
@@ -14354,7 +14082,7 @@ var createPortal = (function() {
|
|
|
14354
14082
|
passThrough,
|
|
14355
14083
|
children
|
|
14356
14084
|
});
|
|
14357
|
-
return !createPortal || !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */
|
|
14085
|
+
return !createPortal || !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14358
14086
|
passThrough,
|
|
14359
14087
|
hostName: "root",
|
|
14360
14088
|
children: contents
|
|
@@ -14377,9 +14105,9 @@ var AdaptContext = createStyledContext({
|
|
|
14377
14105
|
} = _a, context2 = __objRest(_a, [
|
|
14378
14106
|
"children"
|
|
14379
14107
|
]), scope = context2.scopeName || "", lastScope = React.useContext(LastAdaptContextScope);
|
|
14380
|
-
return /* @__PURE__ */
|
|
14108
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LastAdaptContextScope.Provider, {
|
|
14381
14109
|
value: lastScope || context2.lastScope || "",
|
|
14382
|
-
children: /* @__PURE__ */
|
|
14110
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AdaptContext.Provider, __spreadProps(__spreadValues({
|
|
14383
14111
|
scope,
|
|
14384
14112
|
lastScope: lastScope || context2.lastScope
|
|
14385
14113
|
}, context2), {
|
|
@@ -14399,7 +14127,7 @@ var AdaptContext = createStyledContext({
|
|
|
14399
14127
|
if (Contents) return Contents;
|
|
14400
14128
|
if (AdaptPortals.has(portalName)) return AdaptPortals.get(portalName);
|
|
14401
14129
|
var element = function() {
|
|
14402
|
-
return /* @__PURE__ */
|
|
14130
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalHost, {
|
|
14403
14131
|
name: portalName,
|
|
14404
14132
|
forwardProps: typeof portal == "boolean" ? void 0 : portal == null ? void 0 : portal.forwardProps
|
|
14405
14133
|
}, id2);
|
|
@@ -14412,9 +14140,9 @@ var AdaptContext = createStyledContext({
|
|
|
14412
14140
|
};
|
|
14413
14141
|
}, [portalName]);
|
|
14414
14142
|
var [when, setWhen] = React.useState(null), [platform2, setPlatform] = React.useState(null), [children2, setChildren] = React.useState(null);
|
|
14415
|
-
return /* @__PURE__ */
|
|
14143
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LastAdaptContextScope.Provider, {
|
|
14416
14144
|
value: scope,
|
|
14417
|
-
children: /* @__PURE__ */
|
|
14145
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, {
|
|
14418
14146
|
Contents: FinalContents,
|
|
14419
14147
|
when,
|
|
14420
14148
|
platform: platform2,
|
|
@@ -14457,11 +14185,11 @@ var Adapt = withStaticProperties(function(props) {
|
|
|
14457
14185
|
var output;
|
|
14458
14186
|
if (typeof children == "function") {
|
|
14459
14187
|
var Component = context2 == null ? void 0 : context2.Contents;
|
|
14460
|
-
output = children(Component ? /* @__PURE__ */
|
|
14188
|
+
output = children(Component ? /* @__PURE__ */ jsxRuntime.jsx(Component, {}) : null);
|
|
14461
14189
|
} else output = children;
|
|
14462
14190
|
return useIsomorphicLayoutEffect(function() {
|
|
14463
14191
|
typeof children == "function" && output !== void 0 && (context2 == null ? void 0 : context2.setChildren(output));
|
|
14464
|
-
}, [output]), /* @__PURE__ */
|
|
14192
|
+
}, [output]), /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
14465
14193
|
children: enabled ? output : null
|
|
14466
14194
|
});
|
|
14467
14195
|
}, {
|
|
@@ -14470,7 +14198,7 @@ var Adapt = withStaticProperties(function(props) {
|
|
|
14470
14198
|
var isActive = useAdaptIsActive(props.scope), {
|
|
14471
14199
|
portalName
|
|
14472
14200
|
} = useAdaptContext(props.scope);
|
|
14473
|
-
return /* @__PURE__ */
|
|
14201
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14474
14202
|
passThrough: !isActive,
|
|
14475
14203
|
hostName: portalName,
|
|
14476
14204
|
children: props.children
|
|
@@ -14498,7 +14226,7 @@ function createContext(rootComponentName, defaultContext) {
|
|
|
14498
14226
|
]), value = React__namespace.useMemo(function() {
|
|
14499
14227
|
return context2;
|
|
14500
14228
|
}, Object.values(context2));
|
|
14501
|
-
return /* @__PURE__ */
|
|
14229
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
|
|
14502
14230
|
value,
|
|
14503
14231
|
children
|
|
14504
14232
|
});
|
|
@@ -14526,7 +14254,7 @@ function createContextScope(scopeName) {
|
|
|
14526
14254
|
]), Context = (scope == null || (_scope_scopeName = scope[scopeName]) === null || _scope_scopeName === void 0 ? void 0 : _scope_scopeName[index2]) || BaseContext, value = React__namespace.useMemo(function() {
|
|
14527
14255
|
return context2;
|
|
14528
14256
|
}, Object.values(context2));
|
|
14529
|
-
return /* @__PURE__ */
|
|
14257
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
|
|
14530
14258
|
value,
|
|
14531
14259
|
children
|
|
14532
14260
|
});
|
|
@@ -14609,7 +14337,7 @@ function FocusScopeController(props) {
|
|
|
14609
14337
|
focusOnIdle
|
|
14610
14338
|
};
|
|
14611
14339
|
}, [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
|
|
14612
|
-
return /* @__PURE__ */
|
|
14340
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FocusScopeControllerProvider, __spreadProps(__spreadValues({
|
|
14613
14341
|
scope: __scopeFocusScope
|
|
14614
14342
|
}, contextValue), {
|
|
14615
14343
|
children
|
|
@@ -14644,7 +14372,7 @@ var SheetController = function(param) {
|
|
|
14644
14372
|
onOpenChange
|
|
14645
14373
|
};
|
|
14646
14374
|
}, [id2, onOpenChange, open2, hidden, disableDrag]);
|
|
14647
|
-
return /* @__PURE__ */
|
|
14375
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetControllerContext.Provider, {
|
|
14648
14376
|
value: memoValue,
|
|
14649
14377
|
children
|
|
14650
14378
|
});
|
|
@@ -14667,9 +14395,9 @@ var DialogContext = createStyledContext(
|
|
|
14667
14395
|
} = _a, triggerProps = __objRest(_a, [
|
|
14668
14396
|
"scope"
|
|
14669
14397
|
]), isInsideButton = React__namespace.useContext(ButtonNestingContext), context2 = useDialogContext(scope), composedTriggerRef = useComposedRefs(forwardedRef, context2.triggerRef);
|
|
14670
|
-
return /* @__PURE__ */
|
|
14398
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ButtonNestingContext.Provider, {
|
|
14671
14399
|
value: true,
|
|
14672
|
-
children: /* @__PURE__ */
|
|
14400
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogTriggerFrame, __spreadProps(__spreadValues({
|
|
14673
14401
|
tag: isInsideButton ? "span" : "button",
|
|
14674
14402
|
"aria-haspopup": "dialog",
|
|
14675
14403
|
"aria-expanded": context2.open,
|
|
@@ -14714,18 +14442,18 @@ var DialogContext = createStyledContext(
|
|
|
14714
14442
|
var {
|
|
14715
14443
|
context: context2,
|
|
14716
14444
|
children
|
|
14717
|
-
} = param, themeName = useThemeName(), isAdapted = useAdaptIsActive(context2.adaptScope), adaptContext = useAdaptContext(context2.adaptScope), content = /* @__PURE__ */
|
|
14445
|
+
} = param, themeName = useThemeName(), isAdapted = useAdaptIsActive(context2.adaptScope), adaptContext = useAdaptContext(context2.adaptScope), content = /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
14718
14446
|
name: themeName,
|
|
14719
14447
|
children
|
|
14720
14448
|
});
|
|
14721
|
-
return needsRepropagation$1 && (content = /* @__PURE__ */
|
|
14722
|
-
children: /* @__PURE__ */
|
|
14449
|
+
return needsRepropagation$1 && (content = /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
14450
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogProvider, __spreadProps(__spreadValues({}, context2), {
|
|
14723
14451
|
children: content
|
|
14724
14452
|
}))
|
|
14725
|
-
}))), isAdapted ? /* @__PURE__ */
|
|
14453
|
+
}))), isAdapted ? /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
14726
14454
|
scope: context2.adaptScope,
|
|
14727
14455
|
children: content
|
|
14728
|
-
}) : context2.modal ? /* @__PURE__ */
|
|
14456
|
+
}) : context2.modal ? /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14729
14457
|
hostName: context2.modal ? "root" : context2.adaptScope,
|
|
14730
14458
|
children: content
|
|
14731
14459
|
}) : content;
|
|
@@ -14742,9 +14470,9 @@ var DialogContext = createStyledContext(
|
|
|
14742
14470
|
isMountedOrOpen && isFullyHidden && setIsFullyHidden(false);
|
|
14743
14471
|
var handleExitComplete = React__namespace.useCallback(function() {
|
|
14744
14472
|
setIsFullyHidden(true);
|
|
14745
|
-
}, []), zIndex = getExpandedShorthand("zIndex", props), contents = /* @__PURE__ */
|
|
14473
|
+
}, []), zIndex = getExpandedShorthand("zIndex", props), contents = /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
14746
14474
|
zIndex: resolveViewZIndex(zIndex),
|
|
14747
|
-
children: /* @__PURE__ */
|
|
14475
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, {
|
|
14748
14476
|
passThrough: isAdapted,
|
|
14749
14477
|
onExitComplete: handleExitComplete,
|
|
14750
14478
|
children: isMountedOrOpen || isAdapted ? children : null
|
|
@@ -14753,9 +14481,9 @@ var DialogContext = createStyledContext(
|
|
|
14753
14481
|
// NOTE: we remove the inner frame, but not the portal itself
|
|
14754
14482
|
// saw a bug when we removed and re-added portals that caused stale inner contents of the portal
|
|
14755
14483
|
// seems like a React bug itself but leaving this for now as it fixes
|
|
14756
|
-
isFullyHidden && !isAdapted ? null : /* @__PURE__ */
|
|
14484
|
+
isFullyHidden && !isAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
14757
14485
|
disable: !isMountedOrOpen,
|
|
14758
|
-
children: /* @__PURE__ */
|
|
14486
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogPortalFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
14759
14487
|
ref
|
|
14760
14488
|
}, isWeb), {
|
|
14761
14489
|
// passThrough={isAdapted}
|
|
@@ -14766,7 +14494,7 @@ var DialogContext = createStyledContext(
|
|
|
14766
14494
|
}))
|
|
14767
14495
|
})
|
|
14768
14496
|
);
|
|
14769
|
-
return isAdapted ? framedContents : /* @__PURE__ */
|
|
14497
|
+
return isAdapted ? framedContents : /* @__PURE__ */ jsxRuntime.jsx(DialogPortalItem, {
|
|
14770
14498
|
context: context2,
|
|
14771
14499
|
children: framedContents
|
|
14772
14500
|
});
|
|
@@ -14804,7 +14532,7 @@ var DialogContext = createStyledContext(
|
|
|
14804
14532
|
} = _b, overlayProps = __objRest(_b, [
|
|
14805
14533
|
"forceMount"
|
|
14806
14534
|
]), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14807
|
-
return !forceMount && (!context2.modal || isAdapted) ? null : /* @__PURE__ */
|
|
14535
|
+
return !forceMount && (!context2.modal || isAdapted) ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogOverlayFrame, __spreadProps(__spreadValues({
|
|
14808
14536
|
"data-state": getState$2(context2.open),
|
|
14809
14537
|
// TODO: this will be apply for v2
|
|
14810
14538
|
// onPress={() => {
|
|
@@ -14831,7 +14559,9 @@ var DialogContext = createStyledContext(
|
|
|
14831
14559
|
padded: true,
|
|
14832
14560
|
radiused: true,
|
|
14833
14561
|
elevate: true,
|
|
14834
|
-
zIndex: 1e5
|
|
14562
|
+
zIndex: 1e5,
|
|
14563
|
+
// Ensure content receives pointer events (fixes React 19 + display:contents inheritance)
|
|
14564
|
+
pointerEvents: "auto"
|
|
14835
14565
|
}
|
|
14836
14566
|
}
|
|
14837
14567
|
},
|
|
@@ -14848,12 +14578,12 @@ var DialogContext = createStyledContext(
|
|
|
14848
14578
|
forceMount = context2.forceMount
|
|
14849
14579
|
} = _b, contentProps = __objRest(_b, [
|
|
14850
14580
|
"forceMount"
|
|
14851
|
-
]), contents = /* @__PURE__ */
|
|
14852
|
-
children: context2.modal ? /* @__PURE__ */
|
|
14581
|
+
]), contents = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
14582
|
+
children: context2.modal ? /* @__PURE__ */ jsxRuntime.jsx(DialogContentModal, __spreadProps(__spreadValues({
|
|
14853
14583
|
context: context2
|
|
14854
14584
|
}, contentProps), {
|
|
14855
14585
|
ref: forwardedRef
|
|
14856
|
-
})) : /* @__PURE__ */
|
|
14586
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(DialogContentNonModal, __spreadProps(__spreadValues({
|
|
14857
14587
|
context: context2
|
|
14858
14588
|
}, contentProps), {
|
|
14859
14589
|
ref: forwardedRef
|
|
@@ -14868,7 +14598,7 @@ var DialogContext = createStyledContext(
|
|
|
14868
14598
|
"children",
|
|
14869
14599
|
"context"
|
|
14870
14600
|
]), contentRef = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, context2.contentRef, contentRef);
|
|
14871
|
-
return /* @__PURE__ */
|
|
14601
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentImpl, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
14872
14602
|
context: context2,
|
|
14873
14603
|
ref: composedRefs,
|
|
14874
14604
|
// we make sure focus isn't trapped once `DialogContent` has been closed
|
|
@@ -14895,7 +14625,7 @@ var DialogContext = createStyledContext(
|
|
|
14895
14625
|
}));
|
|
14896
14626
|
}), DialogContentNonModal = /* @__PURE__ */ React__namespace.forwardRef(function(props, forwardedRef) {
|
|
14897
14627
|
var hasInteractedOutsideRef = React__namespace.useRef(false);
|
|
14898
|
-
return /* @__PURE__ */
|
|
14628
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentImpl, __spreadProps(__spreadValues({}, props), {
|
|
14899
14629
|
ref: forwardedRef,
|
|
14900
14630
|
trapFocus: false,
|
|
14901
14631
|
disableOutsidePointerEvents: false,
|
|
@@ -14945,11 +14675,11 @@ var DialogContext = createStyledContext(
|
|
|
14945
14675
|
// TODO react 19 type workaround
|
|
14946
14676
|
void 0
|
|
14947
14677
|
), composedRefs = useComposedRefs(forwardedRef, contentRef), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14948
|
-
if (isAdapted) return !context2.open ? null : /* @__PURE__ */
|
|
14678
|
+
if (isAdapted) return !context2.open ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogPortalItem, {
|
|
14949
14679
|
context: context2,
|
|
14950
14680
|
children: contentProps.children
|
|
14951
14681
|
});
|
|
14952
|
-
var contents = /* @__PURE__ */
|
|
14682
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(DialogContentFrame, __spreadValues({
|
|
14953
14683
|
ref: composedRefs,
|
|
14954
14684
|
id: context2.contentId,
|
|
14955
14685
|
role: "dialog",
|
|
@@ -14967,7 +14697,7 @@ var DialogContext = createStyledContext(
|
|
|
14967
14697
|
} = _a, titleProps = __objRest(_a, [
|
|
14968
14698
|
"scope"
|
|
14969
14699
|
]), context2 = useDialogContext(scope);
|
|
14970
|
-
return /* @__PURE__ */
|
|
14700
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTitleFrame, __spreadProps(__spreadValues({
|
|
14971
14701
|
id: context2.titleId
|
|
14972
14702
|
}, titleProps), {
|
|
14973
14703
|
ref: forwardedRef
|
|
@@ -14980,7 +14710,7 @@ var DialogContext = createStyledContext(
|
|
|
14980
14710
|
} = _a, descriptionProps = __objRest(_a, [
|
|
14981
14711
|
"scope"
|
|
14982
14712
|
]), context2 = useDialogContext(scope);
|
|
14983
|
-
return /* @__PURE__ */
|
|
14713
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogDescriptionFrame, __spreadProps(__spreadValues({
|
|
14984
14714
|
id: context2.descriptionId
|
|
14985
14715
|
}, descriptionProps), {
|
|
14986
14716
|
ref: forwardedRef
|
|
@@ -14996,7 +14726,7 @@ var DialogContext = createStyledContext(
|
|
|
14996
14726
|
"scope",
|
|
14997
14727
|
"displayWhenAdapted"
|
|
14998
14728
|
]), context2 = useDialogContext(scope), isAdapted = useAdaptIsActive(context2.adaptScope), isInsideButton = React__namespace.useContext(ButtonNestingContext);
|
|
14999
|
-
return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */
|
|
14729
|
+
return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogCloseFrame, __spreadProps(__spreadValues({
|
|
15000
14730
|
"aria-label": "Dialog Close",
|
|
15001
14731
|
tag: isInsideButton ? "span" : "button"
|
|
15002
14732
|
}, closeProps), {
|
|
@@ -15048,15 +14778,15 @@ var TITLE_WARNING_NAME = "DialogTitleWarning", [DialogWarningProvider, useWarnin
|
|
|
15048
14778
|
return {
|
|
15049
14779
|
open: setOpen
|
|
15050
14780
|
};
|
|
15051
|
-
}, [setOpen]), /* @__PURE__ */
|
|
14781
|
+
}, [setOpen]), /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
15052
14782
|
scope: adaptScope,
|
|
15053
14783
|
portal: {
|
|
15054
14784
|
forwardProps: props
|
|
15055
14785
|
},
|
|
15056
|
-
children: /* @__PURE__ */
|
|
14786
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogProvider, __spreadProps(__spreadValues({
|
|
15057
14787
|
scope
|
|
15058
14788
|
}, context2), {
|
|
15059
|
-
children: /* @__PURE__ */
|
|
14789
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogSheetController, {
|
|
15060
14790
|
onOpenChange: setOpen,
|
|
15061
14791
|
scope,
|
|
15062
14792
|
children
|
|
@@ -15076,7 +14806,7 @@ var TITLE_WARNING_NAME = "DialogTitleWarning", [DialogWarningProvider, useWarnin
|
|
|
15076
14806
|
});
|
|
15077
14807
|
var DialogSheetController = function(props) {
|
|
15078
14808
|
var context2 = useDialogContext(props.scope), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
15079
|
-
return /* @__PURE__ */
|
|
14809
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
15080
14810
|
onOpenChange: function(val) {
|
|
15081
14811
|
if (isAdapted) {
|
|
15082
14812
|
var _props_onOpenChange;
|
|
@@ -15103,7 +14833,7 @@ var getAlertDialogScope = function(scope) {
|
|
|
15103
14833
|
"onPress",
|
|
15104
14834
|
"__onPress"
|
|
15105
14835
|
]);
|
|
15106
|
-
return /* @__PURE__ */
|
|
14836
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NativeAlertDialogTriggerFrame, __spreadProps(__spreadValues({}, rest), {
|
|
15107
14837
|
onPress: composeEventHandlers(onPress, __onPress)
|
|
15108
14838
|
}));
|
|
15109
14839
|
}
|
|
@@ -15112,7 +14842,7 @@ var getAlertDialogScope = function(scope) {
|
|
|
15112
14842
|
} = _b, triggerProps = __objRest(_b, [
|
|
15113
14843
|
"scope"
|
|
15114
14844
|
]);
|
|
15115
|
-
return /* @__PURE__ */
|
|
14845
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTrigger, __spreadProps(__spreadValues({
|
|
15116
14846
|
scope: getAlertDialogScope(scope)
|
|
15117
14847
|
}, triggerProps), {
|
|
15118
14848
|
ref: forwardedRef
|
|
@@ -15124,7 +14854,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15124
14854
|
} = _a, portalProps = __objRest(_a, [
|
|
15125
14855
|
"scope"
|
|
15126
14856
|
]);
|
|
15127
|
-
return /* @__PURE__ */
|
|
14857
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPortal, __spreadValues({
|
|
15128
14858
|
scope: getAlertDialogScope(scope)
|
|
15129
14859
|
}, portalProps));
|
|
15130
14860
|
}, OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = styled(DialogOverlayFrame, {
|
|
@@ -15135,7 +14865,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15135
14865
|
} = _a, overlayProps = __objRest(_a, [
|
|
15136
14866
|
"scope"
|
|
15137
14867
|
]);
|
|
15138
|
-
return /* @__PURE__ */
|
|
14868
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, __spreadProps(__spreadValues({
|
|
15139
14869
|
scope: getAlertDialogScope(scope)
|
|
15140
14870
|
}, overlayProps), {
|
|
15141
14871
|
ref: forwardedRef
|
|
@@ -15151,15 +14881,15 @@ var AlertDialogPortal = function(props) {
|
|
|
15151
14881
|
"scope",
|
|
15152
14882
|
"children"
|
|
15153
14883
|
]), dialogScope = getAlertDialogScope(scope), contentRef = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, contentRef), cancelRef = React__namespace.useRef(null), destructiveRef = React__namespace.useRef(null);
|
|
15154
|
-
return /* @__PURE__ */
|
|
14884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogWarningProvider, {
|
|
15155
14885
|
contentName: CONTENT_NAME$1,
|
|
15156
14886
|
titleName: TITLE_NAME,
|
|
15157
14887
|
docsSlug: "alert-dialog",
|
|
15158
|
-
children: /* @__PURE__ */
|
|
14888
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AlertDialogContextProvider, {
|
|
15159
14889
|
scope,
|
|
15160
14890
|
cancelRef,
|
|
15161
14891
|
destructiveRef,
|
|
15162
|
-
children: /* @__PURE__ */
|
|
14892
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, __spreadProps(__spreadValues({
|
|
15163
14893
|
role: "alertdialog",
|
|
15164
14894
|
"aria-modal": true,
|
|
15165
14895
|
scope: dialogScope
|
|
@@ -15181,7 +14911,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15181
14911
|
* This is because we want the accessibility checks to run only once the content is actually
|
|
15182
14912
|
* open and that behaviour is already encapsulated in `DialogContent`.
|
|
15183
14913
|
*/
|
|
15184
|
-
/* @__PURE__ */
|
|
14914
|
+
/* @__PURE__ */ jsxRuntime.jsx(Slottable, {
|
|
15185
14915
|
children
|
|
15186
14916
|
}),
|
|
15187
14917
|
false
|
|
@@ -15197,7 +14927,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15197
14927
|
} = _a, titleProps = __objRest(_a, [
|
|
15198
14928
|
"scope"
|
|
15199
14929
|
]);
|
|
15200
|
-
return /* @__PURE__ */
|
|
14930
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, __spreadProps(__spreadValues({
|
|
15201
14931
|
scope: getAlertDialogScope(scope)
|
|
15202
14932
|
}, titleProps), {
|
|
15203
14933
|
ref: forwardedRef
|
|
@@ -15210,7 +14940,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15210
14940
|
} = _a, descriptionProps = __objRest(_a, [
|
|
15211
14941
|
"scope"
|
|
15212
14942
|
]);
|
|
15213
|
-
return /* @__PURE__ */
|
|
14943
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, __spreadProps(__spreadValues({
|
|
15214
14944
|
scope: getAlertDialogScope(scope)
|
|
15215
14945
|
}, descriptionProps), {
|
|
15216
14946
|
ref: forwardedRef
|
|
@@ -15223,7 +14953,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15223
14953
|
} = _a, actionProps = __objRest(_a, [
|
|
15224
14954
|
"scope"
|
|
15225
14955
|
]);
|
|
15226
|
-
return /* @__PURE__ */
|
|
14956
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
15227
14957
|
scope: getAlertDialogScope(scope)
|
|
15228
14958
|
}, actionProps), {
|
|
15229
14959
|
ref: forwardedRef
|
|
@@ -15238,7 +14968,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15238
14968
|
]), {
|
|
15239
14969
|
cancelRef
|
|
15240
14970
|
} = useAlertDialogContentContext(scope), ref = useComposedRefs(forwardedRef, cancelRef);
|
|
15241
|
-
return /* @__PURE__ */
|
|
14971
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
15242
14972
|
scope: getAlertDialogScope(scope)
|
|
15243
14973
|
}, cancelProps), {
|
|
15244
14974
|
ref
|
|
@@ -15253,7 +14983,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15253
14983
|
]), {
|
|
15254
14984
|
destructiveRef
|
|
15255
14985
|
} = useAlertDialogContentContext(scope), ref = useComposedRefs(forwardedRef, destructiveRef);
|
|
15256
|
-
return /* @__PURE__ */
|
|
14986
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
15257
14987
|
scope: getAlertDialogScope(scope)
|
|
15258
14988
|
}, destructiveProps), {
|
|
15259
14989
|
ref
|
|
@@ -15307,7 +15037,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15307
15037
|
__onPress: function() {
|
|
15308
15038
|
setOpen(true);
|
|
15309
15039
|
}
|
|
15310
|
-
}) : /* @__PURE__ */
|
|
15040
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(Dialog, __spreadProps(__spreadValues({
|
|
15311
15041
|
scope: dialogScope
|
|
15312
15042
|
}, alertDialogProps), {
|
|
15313
15043
|
modal: true
|
|
@@ -15444,7 +15174,7 @@ function createImage(options) {
|
|
|
15444
15174
|
onError({
|
|
15445
15175
|
type: "error"
|
|
15446
15176
|
});
|
|
15447
|
-
}), /* @__PURE__ */
|
|
15177
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadValues({
|
|
15448
15178
|
ref
|
|
15449
15179
|
}, finalProps));
|
|
15450
15180
|
}), comp = Component;
|
|
@@ -15516,10 +15246,10 @@ var AVATAR_NAME = "Avatar", [createAvatarContext, createAvatarScope] = createCon
|
|
|
15516
15246
|
setStatus(resolvedSrc ? "idle" : "error");
|
|
15517
15247
|
}, [resolvedSrc]), React__namespace.useEffect(function() {
|
|
15518
15248
|
onLoadingStatusChange(status), context2.onImageLoadingStatusChange(status);
|
|
15519
|
-
}, [status]), resolvedSrc ? /* @__PURE__ */
|
|
15249
|
+
}, [status]), resolvedSrc ? /* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
15520
15250
|
fullscreen: true,
|
|
15521
15251
|
zIndex: 1,
|
|
15522
|
-
children: /* @__PURE__ */
|
|
15252
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Image, __spreadProps(__spreadValues(__spreadValues({
|
|
15523
15253
|
fullscreen: true,
|
|
15524
15254
|
objectFit: "cover"
|
|
15525
15255
|
}, typeof shapeSize == "number" && !Number.isNaN(shapeSize) && {
|
|
@@ -15565,7 +15295,7 @@ var FALLBACK_NAME = "AvatarFallback", AvatarFallbackFrame = styled(YStack, {
|
|
|
15565
15295
|
return clearTimeout(timerId);
|
|
15566
15296
|
};
|
|
15567
15297
|
}
|
|
15568
|
-
}, [delayMs]), canRender && context2.imageLoadingStatus !== "loaded" ? /* @__PURE__ */
|
|
15298
|
+
}, [delayMs]), canRender && context2.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ jsxRuntime.jsx(AvatarFallbackFrame, __spreadProps(__spreadValues({}, fallbackProps), {
|
|
15569
15299
|
ref: forwardedRef
|
|
15570
15300
|
})) : null;
|
|
15571
15301
|
});
|
|
@@ -15582,12 +15312,12 @@ var AvatarFrame = styled(Square, {
|
|
|
15582
15312
|
"__scopeAvatar",
|
|
15583
15313
|
"size"
|
|
15584
15314
|
]), [imageLoadingStatus, setImageLoadingStatus] = React__namespace.useState("idle");
|
|
15585
|
-
return /* @__PURE__ */
|
|
15315
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AvatarProvider, {
|
|
15586
15316
|
size,
|
|
15587
15317
|
scope: __scopeAvatar,
|
|
15588
15318
|
imageLoadingStatus,
|
|
15589
15319
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
15590
|
-
children: /* @__PURE__ */
|
|
15320
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AvatarFrame, __spreadProps(__spreadValues({
|
|
15591
15321
|
size
|
|
15592
15322
|
}, avatarProps), {
|
|
15593
15323
|
ref: forwardedRef
|
|
@@ -15794,9 +15524,9 @@ var context$2 = createStyledContext({
|
|
|
15794
15524
|
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
15795
15525
|
size: finalSize != null ? finalSize : styledContext == null ? void 0 : styledContext.size
|
|
15796
15526
|
});
|
|
15797
|
-
return /* @__PURE__ */
|
|
15527
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ButtonNestingContext.Provider, {
|
|
15798
15528
|
value: true,
|
|
15799
|
-
children: /* @__PURE__ */
|
|
15529
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Frame$1, __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
15800
15530
|
ref
|
|
15801
15531
|
}, props), isNested && {
|
|
15802
15532
|
tag: "span"
|
|
@@ -16031,10 +15761,10 @@ var NAME$2 = "Label", [LabelProvider, useLabelContextImpl] = createContext(NAME$
|
|
|
16031
15761
|
"htmlFor",
|
|
16032
15762
|
"id"
|
|
16033
15763
|
]), controlRef = React__namespace.useRef(null), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), backupId = React__namespace.useId(), id2 = idProp != null ? idProp : backupId;
|
|
16034
|
-
return /* @__PURE__ */
|
|
15764
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LabelProvider, {
|
|
16035
15765
|
id: id2,
|
|
16036
15766
|
controlRef,
|
|
16037
|
-
children: /* @__PURE__ */
|
|
15767
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LabelFrame, __spreadProps(__spreadValues({
|
|
16038
15768
|
id: id2,
|
|
16039
15769
|
// @ts-ignore
|
|
16040
15770
|
htmlFor
|
|
@@ -16178,7 +15908,7 @@ function createCheckbox(createProps) {
|
|
|
16178
15908
|
});
|
|
16179
15909
|
}, [props.id, props.disabled]);
|
|
16180
15910
|
var renderNative = shouldRenderNativePlatform(native);
|
|
16181
|
-
if (renderNative === "web") return /* @__PURE__ */
|
|
15911
|
+
if (renderNative === "web") return /* @__PURE__ */ jsxRuntime.jsx("input", {
|
|
16182
15912
|
type: "checkbox",
|
|
16183
15913
|
defaultChecked: isIndeterminate(checked) ? false : checked,
|
|
16184
15914
|
tabIndex: -1,
|
|
@@ -16195,12 +15925,12 @@ function createCheckbox(createProps) {
|
|
|
16195
15925
|
disabled: checkboxProps.disabled
|
|
16196
15926
|
};
|
|
16197
15927
|
}, [checked, checkboxProps.disabled]), _propsActive_size1, _ref1, _ref2;
|
|
16198
|
-
return /* @__PURE__ */
|
|
15928
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CheckboxContext.Provider, {
|
|
16199
15929
|
value: memoizedContext,
|
|
16200
|
-
children: /* @__PURE__ */
|
|
15930
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(CheckboxStyledContext.Provider, {
|
|
16201
15931
|
size: (_ref1 = (_propsActive_size1 = propsActive.size) !== null && _propsActive_size1 !== void 0 ? _propsActive_size1 : styledContext == null ? void 0 : styledContext.size) !== null && _ref1 !== void 0 ? _ref1 : "$true",
|
|
16202
15932
|
scaleIcon: (_ref2 = scaleIcon != null ? scaleIcon : styledContext == null ? void 0 : styledContext.scaleIcon) !== null && _ref2 !== void 0 ? _ref2 : 1,
|
|
16203
|
-
children: [/* @__PURE__ */
|
|
15933
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !unstyled && {
|
|
16204
15934
|
width: size,
|
|
16205
15935
|
height: size
|
|
16206
15936
|
}), {
|
|
@@ -16244,7 +15974,7 @@ function createCheckbox(createProps) {
|
|
|
16244
15974
|
});
|
|
16245
15975
|
}
|
|
16246
15976
|
var context2 = React.useContext(CheckboxContext);
|
|
16247
|
-
return forceMount || isIndeterminate(context2.checked) || context2.checked === true ? /* @__PURE__ */
|
|
15977
|
+
return forceMount || isIndeterminate(context2.checked) || context2.checked === true ? /* @__PURE__ */ jsxRuntime.jsx(Indicator, __spreadProps(__spreadValues({
|
|
16248
15978
|
pointerEvents: "none"
|
|
16249
15979
|
}, indicatorProps), {
|
|
16250
15980
|
ref: forwardedRef,
|
|
@@ -16274,7 +16004,7 @@ var FORM_NAME = "Form", FormFrame = styled(Stack, {
|
|
|
16274
16004
|
"children",
|
|
16275
16005
|
"onPress"
|
|
16276
16006
|
]), context2 = useFormContext(TRIGGER_NAME$2, __scopeForm);
|
|
16277
|
-
return /* @__PURE__ */
|
|
16007
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormTriggerFrame, __spreadProps(__spreadValues({
|
|
16278
16008
|
tag: "button"
|
|
16279
16009
|
}, triggerProps), {
|
|
16280
16010
|
ref: forwardedRef,
|
|
@@ -16287,10 +16017,10 @@ var FORM_NAME = "Form", FormFrame = styled(Stack, {
|
|
|
16287
16017
|
} = _a, props = __objRest(_a, [
|
|
16288
16018
|
"onSubmit"
|
|
16289
16019
|
]);
|
|
16290
|
-
return /* @__PURE__ */
|
|
16020
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormProvider, {
|
|
16291
16021
|
scope: props.__scopeForm,
|
|
16292
16022
|
onSubmit,
|
|
16293
|
-
children: /* @__PURE__ */
|
|
16023
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(FormFrame, __spreadProps(__spreadValues({
|
|
16294
16024
|
ref
|
|
16295
16025
|
}, props), {
|
|
16296
16026
|
onSubmit: function(e2) {
|
|
@@ -16324,10 +16054,10 @@ function useIndexedChildren(children) {
|
|
|
16324
16054
|
var parentMaxIndexPath = React__namespace.useContext(MaxIndexContext), indexPathString = React__namespace.useContext(IndexContext), childrenCount = React__namespace.Children.count(children), maxIndexPath = React__namespace.useMemo(function() {
|
|
16325
16055
|
return parentMaxIndexPath.concat(childrenCount - 1);
|
|
16326
16056
|
}, [childrenCount]);
|
|
16327
|
-
return /* @__PURE__ */
|
|
16057
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MaxIndexContext.Provider, {
|
|
16328
16058
|
value: maxIndexPath,
|
|
16329
16059
|
children: React__namespace.Children.map(children, function(child, index2) {
|
|
16330
|
-
return /* @__PURE__ */ React__namespace.isValidElement(child) ? /* @__PURE__ */
|
|
16060
|
+
return /* @__PURE__ */ React__namespace.isValidElement(child) ? /* @__PURE__ */ jsxRuntime.jsx(IndexContext.Provider, {
|
|
16331
16061
|
value: indexPathString ? `${indexPathString}.${index2.toString()}` : index2.toString(),
|
|
16332
16062
|
children: child
|
|
16333
16063
|
}, child.key) : child;
|
|
@@ -16418,7 +16148,7 @@ function createGroup(verticalDefault) {
|
|
|
16418
16148
|
return prev - 1;
|
|
16419
16149
|
});
|
|
16420
16150
|
}, []), flexValue = flex === true ? 1 : flex === false ? 0 : flex;
|
|
16421
|
-
return /* @__PURE__ */
|
|
16151
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GroupProvider, {
|
|
16422
16152
|
disablePassBorderRadius,
|
|
16423
16153
|
vertical: orientation === "vertical",
|
|
16424
16154
|
// @ts-ignore this just popped up since new version expo 49
|
|
@@ -16427,7 +16157,7 @@ function createGroup(verticalDefault) {
|
|
|
16427
16157
|
onItemMount,
|
|
16428
16158
|
onItemUnmount,
|
|
16429
16159
|
scope: __scopeGroup,
|
|
16430
|
-
children: /* @__PURE__ */
|
|
16160
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(GroupFrame, __spreadProps(__spreadValues({
|
|
16431
16161
|
ref,
|
|
16432
16162
|
size,
|
|
16433
16163
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
@@ -16479,7 +16209,7 @@ var GroupItem = /* @__PURE__ */ React.forwardRef(function(props, _ref) {
|
|
|
16479
16209
|
orientation,
|
|
16480
16210
|
showScrollIndicator = false
|
|
16481
16211
|
} = param;
|
|
16482
|
-
return scrollable ? /* @__PURE__ */
|
|
16212
|
+
return scrollable ? /* @__PURE__ */ jsxRuntime.jsx(ForwardedScrollView, __spreadProps(__spreadValues(__spreadValues({}, orientation === "vertical" && {
|
|
16483
16213
|
showsVerticalScrollIndicator: showScrollIndicator
|
|
16484
16214
|
}), orientation === "horizontal" && {
|
|
16485
16215
|
horizontal: true,
|
|
@@ -16716,17 +16446,17 @@ var NAME$1 = "ListItem", context$1 = createStyledContext({
|
|
|
16716
16446
|
fontSize: propsIn.size,
|
|
16717
16447
|
fontWeight
|
|
16718
16448
|
} : void 0);
|
|
16719
|
-
return /* @__PURE__ */
|
|
16449
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ListItemFrame, __spreadProps(__spreadValues({
|
|
16720
16450
|
ref
|
|
16721
16451
|
}, rest), {
|
|
16722
|
-
children: [themedIcon, title || subTitle ? /* @__PURE__ */
|
|
16452
|
+
children: [themedIcon, title || subTitle ? /* @__PURE__ */ jsxRuntime.jsxs(YStack, {
|
|
16723
16453
|
flex: 1,
|
|
16724
|
-
children: [title ? typeof title == "string" ? /* @__PURE__ */
|
|
16454
|
+
children: [title ? typeof title == "string" ? /* @__PURE__ */ jsxRuntime.jsx(ListItemTitle, {
|
|
16725
16455
|
unstyled,
|
|
16726
16456
|
size,
|
|
16727
16457
|
children: title
|
|
16728
|
-
}) : title : null, subTitle ? /* @__PURE__ */
|
|
16729
|
-
children: typeof subTitle == "string" ? /* @__PURE__ */
|
|
16458
|
+
}) : title : null, subTitle ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
16459
|
+
children: typeof subTitle == "string" ? /* @__PURE__ */ jsxRuntime.jsx(ListItemSubtitle, {
|
|
16730
16460
|
unstyled,
|
|
16731
16461
|
size,
|
|
16732
16462
|
children: subTitle
|
|
@@ -16762,7 +16492,7 @@ function Animate(param) {
|
|
|
16762
16492
|
});
|
|
16763
16493
|
}, [lazyMount, present]);
|
|
16764
16494
|
var mounted = present ? lazyMount ? lazyMounted : present : false;
|
|
16765
|
-
return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */
|
|
16495
|
+
return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, __spreadProps(__spreadValues({
|
|
16766
16496
|
isPresent: true
|
|
16767
16497
|
}, !passThrough && {
|
|
16768
16498
|
initial: props.initial ? void 0 : false,
|
|
@@ -16777,11 +16507,11 @@ function Animate(param) {
|
|
|
16777
16507
|
custom: props.custom
|
|
16778
16508
|
}), {
|
|
16779
16509
|
children
|
|
16780
|
-
})) : /* @__PURE__ */
|
|
16510
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, __spreadProps(__spreadValues({
|
|
16781
16511
|
passThrough
|
|
16782
16512
|
}, props), {
|
|
16783
16513
|
children: mounted || passThrough ? children : null
|
|
16784
|
-
})) : /* @__PURE__ */
|
|
16514
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
16785
16515
|
children
|
|
16786
16516
|
});
|
|
16787
16517
|
}
|
|
@@ -17807,10 +17537,10 @@ var PopperContextFast = createStyledContext(
|
|
|
17807
17537
|
"scope",
|
|
17808
17538
|
"children"
|
|
17809
17539
|
]), slowContext = getContextSlow(context2);
|
|
17810
|
-
return /* @__PURE__ */
|
|
17540
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperProviderFast, __spreadProps(__spreadValues({
|
|
17811
17541
|
scope
|
|
17812
17542
|
}, context2), {
|
|
17813
|
-
children: /* @__PURE__ */
|
|
17543
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperProviderSlow, __spreadProps(__spreadValues({
|
|
17814
17544
|
scope
|
|
17815
17545
|
}, slowContext), {
|
|
17816
17546
|
children
|
|
@@ -17908,9 +17638,9 @@ function Popper(props) {
|
|
|
17908
17638
|
open: !!open2
|
|
17909
17639
|
}, floating);
|
|
17910
17640
|
}, [open2, size, floating.x, floating.y, floating.placement, JSON.stringify(middlewareData.arrow || null), JSON.stringify(middlewareData.transformOrigin || null), floating.isPositioned]);
|
|
17911
|
-
return /* @__PURE__ */
|
|
17641
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
17912
17642
|
disable: !isOpen,
|
|
17913
|
-
children: /* @__PURE__ */
|
|
17643
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperProvider, __spreadProps(__spreadValues({
|
|
17914
17644
|
scope
|
|
17915
17645
|
}, popperContext), {
|
|
17916
17646
|
children
|
|
@@ -17944,7 +17674,7 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
17944
17674
|
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
17945
17675
|
safeSetReference
|
|
17946
17676
|
);
|
|
17947
|
-
return /* @__PURE__ */
|
|
17677
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadValues(__spreadProps(__spreadValues(__spreadValues({}, rest), refProps), {
|
|
17948
17678
|
ref: composedRefs
|
|
17949
17679
|
}), shouldHandleInHover));
|
|
17950
17680
|
}), PopperContentFrame = styled(YStack, {
|
|
@@ -18029,12 +17759,12 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
18029
17759
|
} = _b, floatingProps = __objRest(_b, [
|
|
18030
17760
|
"style"
|
|
18031
17761
|
]), transformOriginStyle = void 0;
|
|
18032
|
-
return /* @__PURE__ */
|
|
17762
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
18033
17763
|
passThrough,
|
|
18034
17764
|
ref: contentRefs,
|
|
18035
17765
|
contain: "layout style"
|
|
18036
17766
|
}, passThrough ? null : floatingProps), {
|
|
18037
|
-
children: /* @__PURE__ */
|
|
17767
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperContentFrame, __spreadProps(__spreadValues({
|
|
18038
17768
|
passThrough
|
|
18039
17769
|
}, !passThrough && __spreadValues(__spreadValues(__spreadValues({
|
|
18040
17770
|
"data-placement": placement,
|
|
@@ -18112,10 +17842,10 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
18112
17842
|
(_context_onArrowSize = context2.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context2, size);
|
|
18113
17843
|
}, [size, context2.onArrowSize]);
|
|
18114
17844
|
}
|
|
18115
|
-
return /* @__PURE__ */
|
|
17845
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperArrowOuterFrame, __spreadProps(__spreadValues({
|
|
18116
17846
|
ref: refs
|
|
18117
17847
|
}, arrowStyle), {
|
|
18118
|
-
children: /* @__PURE__ */
|
|
17848
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperArrowFrame, __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
18119
17849
|
width: size,
|
|
18120
17850
|
height: size
|
|
18121
17851
|
}, arrowProps), innerArrowStyle), {
|
|
@@ -18169,7 +17899,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
18169
17899
|
return onCustomAnchorAdd(), function() {
|
|
18170
17900
|
return onCustomAnchorRemove();
|
|
18171
17901
|
};
|
|
18172
|
-
}, [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */
|
|
17902
|
+
}, [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ jsxRuntime.jsx(PopperAnchor, __spreadProps(__spreadValues({
|
|
18173
17903
|
scope
|
|
18174
17904
|
}, rest), {
|
|
18175
17905
|
ref: forwardedRef
|
|
@@ -18181,7 +17911,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
18181
17911
|
"scope"
|
|
18182
17912
|
]), context2 = usePopoverContext(scope), anchorTo = context2.anchorTo, composedTriggerRef = useComposedRefs(forwardedRef, context2.triggerRef);
|
|
18183
17913
|
if (!props.children) return null;
|
|
18184
|
-
var trigger = /* @__PURE__ */
|
|
17914
|
+
var trigger = /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
18185
17915
|
"aria-expanded": context2.open,
|
|
18186
17916
|
// TODO not matching
|
|
18187
17917
|
// aria-controls={context.contentId}
|
|
@@ -18206,7 +17936,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
18206
17936
|
})
|
|
18207
17937
|
} : null;
|
|
18208
17938
|
}, [context2.anchorTo, anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.height, anchorTo == null ? void 0 : anchorTo.width]);
|
|
18209
|
-
return context2.hasCustomAnchor ? trigger : /* @__PURE__ */
|
|
17939
|
+
return context2.hasCustomAnchor ? trigger : /* @__PURE__ */ jsxRuntime.jsx(PopperAnchor, __spreadProps(__spreadValues({}, virtualRef && {
|
|
18210
17940
|
virtualRef
|
|
18211
17941
|
}), {
|
|
18212
17942
|
scope,
|
|
@@ -18231,14 +17961,14 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
18231
17961
|
context2.open && isFullyHidden && setIsFullyHidden(false);
|
|
18232
17962
|
}, [context2.open, isFullyHidden]), !context2.keepChildrenMounted && isFullyHidden && !context2.open) return null;
|
|
18233
17963
|
var _contentImplProps_pointerEvents;
|
|
18234
|
-
return /* @__PURE__ */
|
|
17964
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPortal, {
|
|
18235
17965
|
passThrough: context2.breakpointActive,
|
|
18236
17966
|
context: context2,
|
|
18237
17967
|
zIndex,
|
|
18238
|
-
children: /* @__PURE__ */
|
|
17968
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Stack, {
|
|
18239
17969
|
passThrough: context2.breakpointActive,
|
|
18240
17970
|
pointerEvents: context2.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
|
|
18241
|
-
children: /* @__PURE__ */
|
|
17971
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverContentImpl, __spreadProps(__spreadValues({}, contentImplProps), {
|
|
18242
17972
|
context: context2,
|
|
18243
17973
|
enableRemoveScroll,
|
|
18244
17974
|
ref: composedRefs,
|
|
@@ -18283,11 +18013,11 @@ function RepropagateParentContexts(param) {
|
|
|
18283
18013
|
context: context2,
|
|
18284
18014
|
popperContext
|
|
18285
18015
|
} = param;
|
|
18286
|
-
return /* @__PURE__ */
|
|
18016
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperProvider, __spreadProps(__spreadValues({
|
|
18287
18017
|
scope: context2.popoverScope
|
|
18288
18018
|
}, popperContext), {
|
|
18289
|
-
children: /* @__PURE__ */
|
|
18290
|
-
children: /* @__PURE__ */
|
|
18019
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverContext.Provider, __spreadProps(__spreadValues({}, context2), {
|
|
18020
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
18291
18021
|
children
|
|
18292
18022
|
}))
|
|
18293
18023
|
}))
|
|
@@ -18300,14 +18030,14 @@ var PortalAdaptSafe = function(param) {
|
|
|
18300
18030
|
} = param;
|
|
18301
18031
|
if (needsRepropagation) {
|
|
18302
18032
|
var parentContexts = useParentContexts(context2.popoverScope);
|
|
18303
|
-
return /* @__PURE__ */
|
|
18033
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
18304
18034
|
scope: context2.adaptScope,
|
|
18305
|
-
children: /* @__PURE__ */
|
|
18035
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RepropagateParentContexts, __spreadProps(__spreadValues({}, parentContexts), {
|
|
18306
18036
|
children
|
|
18307
18037
|
}))
|
|
18308
18038
|
});
|
|
18309
18039
|
}
|
|
18310
|
-
return /* @__PURE__ */
|
|
18040
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
18311
18041
|
scope: context2.adaptScope,
|
|
18312
18042
|
children
|
|
18313
18043
|
});
|
|
@@ -18322,26 +18052,26 @@ function PopoverPortal(param) {
|
|
|
18322
18052
|
} = param, themeName = useThemeName(), content = children;
|
|
18323
18053
|
if (needsRepropagation) {
|
|
18324
18054
|
var parentContexts = useParentContexts(context2.popoverScope);
|
|
18325
|
-
content = /* @__PURE__ */
|
|
18055
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(RepropagateParentContexts, __spreadProps(__spreadValues({}, parentContexts), {
|
|
18326
18056
|
children: content
|
|
18327
18057
|
}));
|
|
18328
18058
|
}
|
|
18329
|
-
return /* @__PURE__ */
|
|
18059
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal, {
|
|
18330
18060
|
passThrough,
|
|
18331
18061
|
stackZIndex: true,
|
|
18332
18062
|
zIndex,
|
|
18333
18063
|
children: (
|
|
18334
18064
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
18335
18065
|
/* without this you'll see the site menu re-rendering. It must be something in wrapping children in Theme */
|
|
18336
|
-
/* @__PURE__ */
|
|
18066
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Theme, {
|
|
18337
18067
|
passThrough,
|
|
18338
18068
|
contain: true,
|
|
18339
18069
|
forceClassName: true,
|
|
18340
18070
|
name: themeName,
|
|
18341
|
-
children: [!!context2.open && !context2.breakpointActive && /* @__PURE__ */
|
|
18071
|
+
children: [!!context2.open && !context2.breakpointActive && /* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
18342
18072
|
fullscreen: true,
|
|
18343
18073
|
onPress: composeEventHandlers(onPress, context2.onOpenToggle)
|
|
18344
|
-
}), /* @__PURE__ */
|
|
18074
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
18345
18075
|
zIndex: resolveViewZIndex(zIndex),
|
|
18346
18076
|
children: content
|
|
18347
18077
|
})]
|
|
@@ -18389,25 +18119,25 @@ var PopoverContentImpl = /* @__PURE__ */ React__namespace.forwardRef(function(pr
|
|
|
18389
18119
|
keepChildrenMounted
|
|
18390
18120
|
} = context2, handleExitComplete = React__namespace.useCallback(function() {
|
|
18391
18121
|
setIsFullyHidden == null ? void 0 : setIsFullyHidden(true);
|
|
18392
|
-
}, [setIsFullyHidden]), contents = /* @__PURE__ */
|
|
18122
|
+
}, [setIsFullyHidden]), contents = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
18393
18123
|
disable: context2.breakpointActive,
|
|
18394
18124
|
children
|
|
18395
18125
|
});
|
|
18396
|
-
return context2.breakpointActive, /* @__PURE__ */
|
|
18126
|
+
return context2.breakpointActive, /* @__PURE__ */ jsxRuntime.jsx(Animate, {
|
|
18397
18127
|
type: "presence",
|
|
18398
18128
|
present: !!open2,
|
|
18399
18129
|
keepChildrenMounted: !!keepChildrenMounted,
|
|
18400
18130
|
onExitComplete: handleExitComplete,
|
|
18401
18131
|
lazyMount,
|
|
18402
18132
|
passThrough: context2.breakpointActive,
|
|
18403
|
-
children: /* @__PURE__ */
|
|
18133
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperContent, __spreadProps(__spreadValues({
|
|
18404
18134
|
scope,
|
|
18405
18135
|
"data-state": getState$1(open2),
|
|
18406
18136
|
id: context2.contentId,
|
|
18407
18137
|
ref: forwardedRef,
|
|
18408
18138
|
passThrough: context2.breakpointActive
|
|
18409
18139
|
}, contentProps), {
|
|
18410
|
-
children: /* @__PURE__ */
|
|
18140
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PortalAdaptSafe, {
|
|
18411
18141
|
context: context2,
|
|
18412
18142
|
children: contents
|
|
18413
18143
|
})
|
|
@@ -18420,7 +18150,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18420
18150
|
} = _a, rest = __objRest(_a, [
|
|
18421
18151
|
"scope"
|
|
18422
18152
|
]), context2 = usePopoverContext(scope);
|
|
18423
|
-
return /* @__PURE__ */
|
|
18153
|
+
return /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadProps(__spreadValues({}, rest), {
|
|
18424
18154
|
ref: forwardedRef,
|
|
18425
18155
|
componentName: "PopoverClose",
|
|
18426
18156
|
onPress: composeEventHandlers(props.onPress, function() {
|
|
@@ -18434,7 +18164,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18434
18164
|
} = _a, rest = __objRest(_a, [
|
|
18435
18165
|
"scope"
|
|
18436
18166
|
]), context2 = usePopoverContext(scope), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
18437
|
-
return isAdapted ? null : /* @__PURE__ */
|
|
18167
|
+
return isAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(PopperArrow, __spreadProps(__spreadValues({
|
|
18438
18168
|
scope,
|
|
18439
18169
|
componentName: "PopoverArrow"
|
|
18440
18170
|
}, rest), {
|
|
@@ -18446,7 +18176,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18446
18176
|
} = _a, props = __objRest(_a, [
|
|
18447
18177
|
"scope"
|
|
18448
18178
|
]), context2 = usePopoverContext(scope);
|
|
18449
|
-
return /* @__PURE__ */
|
|
18179
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ScrollView3, __spreadValues({
|
|
18450
18180
|
ref,
|
|
18451
18181
|
// when adapted, no pointer events!
|
|
18452
18182
|
pointerEvents: context2.breakpointActive ? "none" : void 0,
|
|
@@ -18459,10 +18189,10 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18459
18189
|
} = _a, props = __objRest(_a, [
|
|
18460
18190
|
"scope"
|
|
18461
18191
|
]), id2 = React__namespace.useId(), adaptScope = `PopoverAdapt${scope}`;
|
|
18462
|
-
return /* @__PURE__ */
|
|
18192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
18463
18193
|
scope: adaptScope,
|
|
18464
18194
|
portal: true,
|
|
18465
|
-
children: /* @__PURE__ */
|
|
18195
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverInner, __spreadValues({
|
|
18466
18196
|
adaptScope,
|
|
18467
18197
|
ref,
|
|
18468
18198
|
id: id2,
|
|
@@ -18555,16 +18285,16 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18555
18285
|
}, []),
|
|
18556
18286
|
keepChildrenMounted
|
|
18557
18287
|
}, memoizedChildren = React__namespace.useMemo(function() {
|
|
18558
|
-
return /* @__PURE__ */
|
|
18288
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverContext.Provider, __spreadProps(__spreadValues({
|
|
18559
18289
|
scope
|
|
18560
18290
|
}, popoverContext), {
|
|
18561
|
-
children: /* @__PURE__ */
|
|
18291
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverSheetController, {
|
|
18562
18292
|
context: popoverContext,
|
|
18563
18293
|
onOpenChange: setOpen,
|
|
18564
18294
|
children
|
|
18565
18295
|
})
|
|
18566
18296
|
}));
|
|
18567
|
-
}, [scope, setOpen, children, ...Object.values(popoverContext)]), contents = /* @__PURE__ */
|
|
18297
|
+
}, [scope, setOpen, children, ...Object.values(popoverContext)]), contents = /* @__PURE__ */ jsxRuntime.jsx(Popper, __spreadProps(__spreadValues({
|
|
18568
18298
|
open: open2,
|
|
18569
18299
|
passThrough: isAdapted,
|
|
18570
18300
|
scope,
|
|
@@ -18572,7 +18302,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18572
18302
|
}, restProps), {
|
|
18573
18303
|
children: memoizedChildren
|
|
18574
18304
|
}));
|
|
18575
|
-
return /* @__PURE__ */
|
|
18305
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
18576
18306
|
children: contents
|
|
18577
18307
|
});
|
|
18578
18308
|
});
|
|
@@ -18585,7 +18315,7 @@ var PopoverSheetController = function(param) {
|
|
|
18585
18315
|
} = _a, props = __objRest(_a, [
|
|
18586
18316
|
"context"
|
|
18587
18317
|
]), showSheet = useShowPopoverSheet(context2), breakpointActive = context2.breakpointActive, getShowSheet = useGet(showSheet);
|
|
18588
|
-
return /* @__PURE__ */
|
|
18318
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
18589
18319
|
onOpenChange: function(val) {
|
|
18590
18320
|
if (getShowSheet()) {
|
|
18591
18321
|
var _props_onOpenChange;
|
|
@@ -18622,7 +18352,7 @@ var PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = c
|
|
|
18622
18352
|
"__scopeProgress",
|
|
18623
18353
|
"transition"
|
|
18624
18354
|
]), context2 = useProgressContext(INDICATOR_NAME, __scopeProgress), _context_value, pct = context2.max - ((_context_value = context2.value) !== null && _context_value !== void 0 ? _context_value : 0), x = -(context2.width === 0 ? 300 : context2.width) * (pct / context2.max), _context_value1;
|
|
18625
|
-
return /* @__PURE__ */
|
|
18355
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ProgressIndicatorFrame, __spreadProps(__spreadValues(__spreadValues({
|
|
18626
18356
|
"data-state": getProgressState(context2.value, context2.max),
|
|
18627
18357
|
"data-value": (_context_value1 = context2.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
18628
18358
|
"data-max": context2.max,
|
|
@@ -18691,12 +18421,12 @@ var DEFAULT_MAX = 100, ProgressFrame = styled(YStack, {
|
|
|
18691
18421
|
"getValueLabel",
|
|
18692
18422
|
"size"
|
|
18693
18423
|
]), max2 = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max2) ? Math.round(valueProp) : null, valueLabel = isNumber(value) ? getValueLabel(value, max2) : void 0, [width, setWidth] = React__namespace.useState(0);
|
|
18694
|
-
return /* @__PURE__ */
|
|
18424
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ProgressProvider, {
|
|
18695
18425
|
scope: __scopeProgress,
|
|
18696
18426
|
value,
|
|
18697
18427
|
max: max2,
|
|
18698
18428
|
width,
|
|
18699
|
-
children: /* @__PURE__ */
|
|
18429
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProgressFrame, __spreadProps(__spreadValues(__spreadValues({
|
|
18700
18430
|
"aria-valuemax": max2,
|
|
18701
18431
|
"aria-valuemin": 0,
|
|
18702
18432
|
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
@@ -18838,7 +18568,7 @@ var BubbleInput = function(props) {
|
|
|
18838
18568
|
});
|
|
18839
18569
|
setChecked.call(input, checked), input.dispatchEvent(event);
|
|
18840
18570
|
}
|
|
18841
|
-
}, [prevChecked, checked, bubbles]), /* @__PURE__ */
|
|
18571
|
+
}, [prevChecked, checked, bubbles]), /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({
|
|
18842
18572
|
type: "radio",
|
|
18843
18573
|
defaultChecked: checked
|
|
18844
18574
|
}, inputProps), {
|
|
@@ -18936,7 +18666,7 @@ var useRadioGroupItem = function(params) {
|
|
|
18936
18666
|
},
|
|
18937
18667
|
checked,
|
|
18938
18668
|
isFormControl,
|
|
18939
|
-
bubbleInput: /* @__PURE__ */
|
|
18669
|
+
bubbleInput: /* @__PURE__ */ jsxRuntime.jsx(BubbleInput, __spreadValues({
|
|
18940
18670
|
isHidden: !native,
|
|
18941
18671
|
control: button,
|
|
18942
18672
|
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
@@ -18991,7 +18721,7 @@ var ITEM_NAME$1 = "RovingFocusGroupItem", RovingFocusGroupItem = /* @__PURE__ */
|
|
|
18991
18721
|
} = _a, props = __objRest(_a, [
|
|
18992
18722
|
"children"
|
|
18993
18723
|
]);
|
|
18994
|
-
return /* @__PURE__ */
|
|
18724
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, __spreadProps(__spreadValues({}, props), {
|
|
18995
18725
|
children
|
|
18996
18726
|
}));
|
|
18997
18727
|
});
|
|
@@ -19002,7 +18732,7 @@ var GROUP_NAME$1 = "RovingFocusGroup", RovingFocusGroup = withStaticProperties(/
|
|
|
19002
18732
|
} = _a, props = __objRest(_a, [
|
|
19003
18733
|
"children"
|
|
19004
18734
|
]);
|
|
19005
|
-
return /* @__PURE__ */
|
|
18735
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, __spreadProps(__spreadValues({}, props), {
|
|
19006
18736
|
children
|
|
19007
18737
|
}));
|
|
19008
18738
|
}), {
|
|
@@ -19059,10 +18789,10 @@ function createRadioGroup(createProps) {
|
|
|
19059
18789
|
native,
|
|
19060
18790
|
accentColor
|
|
19061
18791
|
});
|
|
19062
|
-
return /* @__PURE__ */
|
|
18792
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupContext.Provider, {
|
|
19063
18793
|
value: providerValue,
|
|
19064
|
-
children: /* @__PURE__ */
|
|
19065
|
-
children: /* @__PURE__ */
|
|
18794
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, __spreadProps(__spreadValues({}, rovingFocusGroupAttrs), {
|
|
18795
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupFrame, __spreadValues(__spreadProps(__spreadValues({}, frameAttrs), {
|
|
19066
18796
|
ref
|
|
19067
18797
|
}), rest))
|
|
19068
18798
|
}))
|
|
@@ -19095,11 +18825,11 @@ function createRadioGroup(createProps) {
|
|
|
19095
18825
|
disabled,
|
|
19096
18826
|
onPress
|
|
19097
18827
|
});
|
|
19098
|
-
return /* @__PURE__ */
|
|
18828
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItemContext.Provider, {
|
|
19099
18829
|
value: providerValue,
|
|
19100
|
-
children: /* @__PURE__ */
|
|
19101
|
-
children: [/* @__PURE__ */
|
|
19102
|
-
children: /* @__PURE__ */
|
|
18830
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
18831
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, __spreadProps(__spreadValues({}, rovingFocusGroupAttrs), {
|
|
18832
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItemFrame, __spreadValues(__spreadProps(__spreadValues({}, frameAttrs), {
|
|
19103
18833
|
ref
|
|
19104
18834
|
}), rest))
|
|
19105
18835
|
})), isFormControl]
|
|
@@ -19122,7 +18852,7 @@ function createRadioGroup(createProps) {
|
|
|
19122
18852
|
} = _b, useIndicatorRest = __objRest(_b, [
|
|
19123
18853
|
"checked"
|
|
19124
18854
|
]);
|
|
19125
|
-
return forceMount || checked ? /* @__PURE__ */
|
|
18855
|
+
return forceMount || checked ? /* @__PURE__ */ jsxRuntime.jsx(Indicator, __spreadValues(__spreadProps(__spreadValues({}, useIndicatorRest), {
|
|
19126
18856
|
ref: forwardedRef
|
|
19127
18857
|
}), indicatorProps)) : null;
|
|
19128
18858
|
});
|
|
@@ -19223,11 +18953,11 @@ var {
|
|
|
19223
18953
|
itemContext,
|
|
19224
18954
|
children
|
|
19225
18955
|
} = param;
|
|
19226
|
-
return /* @__PURE__ */
|
|
18956
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectProvider, __spreadProps(__spreadValues({
|
|
19227
18957
|
isInSheet: true,
|
|
19228
18958
|
scope: context2.scopeName
|
|
19229
18959
|
}, context2), {
|
|
19230
|
-
children: /* @__PURE__ */
|
|
18960
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectItemParentProvider, __spreadProps(__spreadValues({
|
|
19231
18961
|
scope: context2.scopeName
|
|
19232
18962
|
}, itemContext), {
|
|
19233
18963
|
children
|
|
@@ -19318,15 +19048,15 @@ var ITEM_NAME = "SelectItem", {
|
|
|
19318
19048
|
onPress: handleSelect
|
|
19319
19049
|
};
|
|
19320
19050
|
}, [handleSelect]);
|
|
19321
|
-
return /* @__PURE__ */
|
|
19051
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectItemContextProvider, {
|
|
19322
19052
|
scope,
|
|
19323
19053
|
value,
|
|
19324
19054
|
textId: textId || "",
|
|
19325
19055
|
isSelected,
|
|
19326
|
-
children: shouldRenderWebNative ? /* @__PURE__ */
|
|
19056
|
+
children: shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx("option", {
|
|
19327
19057
|
value,
|
|
19328
19058
|
children: props.children
|
|
19329
|
-
}) : /* @__PURE__ */
|
|
19059
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ListItem2.Frame, __spreadValues(__spreadValues(__spreadValues({
|
|
19330
19060
|
tag: "div",
|
|
19331
19061
|
componentName: ITEM_NAME,
|
|
19332
19062
|
ref: composedRefs,
|
|
@@ -19379,7 +19109,7 @@ var ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableText,
|
|
|
19379
19109
|
"scope",
|
|
19380
19110
|
"className"
|
|
19381
19111
|
]), context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), itemContext = useSelectItemContext(scope), contents = React__namespace.useRef(null);
|
|
19382
|
-
return contents.current = /* @__PURE__ */
|
|
19112
|
+
return contents.current = /* @__PURE__ */ jsxRuntime.jsx(SelectItemTextFrame, __spreadProps(__spreadValues({
|
|
19383
19113
|
className,
|
|
19384
19114
|
size: itemParentContext.size,
|
|
19385
19115
|
id: itemContext.textId
|
|
@@ -19391,9 +19121,9 @@ var ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableText,
|
|
|
19391
19121
|
return itemParentContext.valueSubscribe(function(val) {
|
|
19392
19122
|
val === itemContext.value && context2.setSelectedItem(contents.current);
|
|
19393
19123
|
});
|
|
19394
|
-
}, [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */
|
|
19124
|
+
}, [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19395
19125
|
children: props.children
|
|
19396
|
-
}) : /* @__PURE__ */
|
|
19126
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19397
19127
|
children: contents.current
|
|
19398
19128
|
});
|
|
19399
19129
|
});
|
|
@@ -19412,7 +19142,7 @@ var TRIGGER_NAME$1 = "SelectTrigger", SelectTrigger = /* @__PURE__ */ React__nam
|
|
|
19412
19142
|
"disabled",
|
|
19413
19143
|
"unstyled"
|
|
19414
19144
|
]), context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), composedRefs = useComposedRefs(forwardedRef, (_context_floatingContext = context2.floatingContext) === null || _context_floatingContext === void 0 ? void 0 : _context_floatingContext.refs.setReference);
|
|
19415
|
-
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */
|
|
19145
|
+
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ jsxRuntime.jsx(ListItem2, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
19416
19146
|
componentName: TRIGGER_NAME$1,
|
|
19417
19147
|
unstyled,
|
|
19418
19148
|
tag: "button",
|
|
@@ -19446,14 +19176,14 @@ var SelectViewport = function(props) {
|
|
|
19446
19176
|
scope,
|
|
19447
19177
|
children
|
|
19448
19178
|
} = props, context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), themeName = useThemeName(), adaptContext = useAdaptContext();
|
|
19449
|
-
return /* @__PURE__ */
|
|
19179
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
19450
19180
|
scope: context2.adaptScope,
|
|
19451
|
-
children: /* @__PURE__ */
|
|
19181
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
19452
19182
|
name: themeName,
|
|
19453
|
-
children: /* @__PURE__ */
|
|
19183
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardSelectContext, {
|
|
19454
19184
|
itemContext: itemParentContext,
|
|
19455
19185
|
context: context2,
|
|
19456
|
-
children: /* @__PURE__ */
|
|
19186
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AdaptContext.Provider, __spreadProps(__spreadValues({}, adaptContext), {
|
|
19457
19187
|
children
|
|
19458
19188
|
}))
|
|
19459
19189
|
})
|
|
@@ -19482,7 +19212,7 @@ var VALUE_NAME = "SelectValue", SelectValueFrame = styled(SizableText, {
|
|
|
19482
19212
|
forwardedRef,
|
|
19483
19213
|
context2.onValueNodeChange
|
|
19484
19214
|
), isEmptyValue = context2.value == null || context2.value === "", renderedValue = (_context_renderValue = context2.renderValue) === null || _context_renderValue === void 0 ? void 0 : _context_renderValue.call(context2, context2.value), _ref, children = (_ref = childrenProp != null ? childrenProp : renderedValue) !== null && _ref !== void 0 ? _ref : context2.selectedItem, selectValueChildren = isEmptyValue ? placeholder != null ? placeholder : children : children;
|
|
19485
|
-
return /* @__PURE__ */
|
|
19215
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectValueFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !props.unstyled && {
|
|
19486
19216
|
size: itemParentContext.size,
|
|
19487
19217
|
ellipsis: true,
|
|
19488
19218
|
// we don't want events from the portalled `SelectValue` children to bubble
|
|
@@ -19508,7 +19238,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19508
19238
|
name: "SelectIcon",
|
|
19509
19239
|
// @ts-ignore
|
|
19510
19240
|
"aria-hidden": true,
|
|
19511
|
-
children: /* @__PURE__ */
|
|
19241
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Paragraph, {
|
|
19512
19242
|
children: "▼"
|
|
19513
19243
|
})
|
|
19514
19244
|
}), SelectItemIndicatorFrame = styled(XStack, {
|
|
@@ -19519,7 +19249,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19519
19249
|
} = _a, itemIndicatorProps = __objRest(_a, [
|
|
19520
19250
|
"scope"
|
|
19521
19251
|
]), context2 = useSelectItemParentContext(scope), itemContext = useSelectItemContext(scope);
|
|
19522
|
-
return context2.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */
|
|
19252
|
+
return context2.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */ jsxRuntime.jsx(SelectItemIndicatorFrame, __spreadProps(__spreadValues({
|
|
19523
19253
|
"aria-hidden": true
|
|
19524
19254
|
}, itemIndicatorProps), {
|
|
19525
19255
|
ref: forwardedRef
|
|
@@ -19561,7 +19291,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19561
19291
|
}));
|
|
19562
19292
|
};
|
|
19563
19293
|
return context2.open && context2.activeIndex !== null && update2(context2.activeIndex), itemContext.activeIndexSubscribe(update2);
|
|
19564
|
-
}, [context2.open, itemContext.listRef]), layout ? /* @__PURE__ */
|
|
19294
|
+
}, [context2.open, itemContext.listRef]), layout ? /* @__PURE__ */ jsxRuntime.jsx(SelectIndicatorFrame, __spreadProps(__spreadValues({
|
|
19565
19295
|
ref: forwardedRef
|
|
19566
19296
|
}, props), {
|
|
19567
19297
|
width: layout.width,
|
|
@@ -19623,13 +19353,13 @@ var SelectIcon = styled(XStack, {
|
|
|
19623
19353
|
} = _a, groupProps = __objRest(_a, [
|
|
19624
19354
|
"scope"
|
|
19625
19355
|
]), groupId = React__namespace.useId(), context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), _itemParentContext_size, size = (_itemParentContext_size = itemParentContext.size) !== null && _itemParentContext_size !== void 0 ? _itemParentContext_size : "$true", nativeSelectRef = React__namespace.useRef(null), content = (function() {
|
|
19626
|
-
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */
|
|
19356
|
+
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx(NativeSelectFrame, {
|
|
19627
19357
|
asChild: true,
|
|
19628
19358
|
size,
|
|
19629
19359
|
// @ts-expect-error until we support typing based on tag
|
|
19630
19360
|
value: context2.value,
|
|
19631
19361
|
id: itemParentContext.id,
|
|
19632
|
-
children: /* @__PURE__ */
|
|
19362
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(NativeSelectTextFrame, {
|
|
19633
19363
|
// @ts-ignore it's ok since tag="select"
|
|
19634
19364
|
onChange: function(event) {
|
|
19635
19365
|
itemParentContext.onChange(event.currentTarget.value);
|
|
@@ -19643,7 +19373,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19643
19373
|
},
|
|
19644
19374
|
children: props.children
|
|
19645
19375
|
})
|
|
19646
|
-
}) : /* @__PURE__ */
|
|
19376
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(SelectGroupFrame, __spreadProps(__spreadValues({
|
|
19647
19377
|
// @ts-ignore
|
|
19648
19378
|
role: "group",
|
|
19649
19379
|
"aria-labelledby": groupId
|
|
@@ -19651,7 +19381,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19651
19381
|
ref: forwardedRef
|
|
19652
19382
|
}));
|
|
19653
19383
|
})();
|
|
19654
|
-
return /* @__PURE__ */
|
|
19384
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectGroupContextProvider, {
|
|
19655
19385
|
scope,
|
|
19656
19386
|
id: groupId || "",
|
|
19657
19387
|
children: content
|
|
@@ -19666,7 +19396,7 @@ var LABEL_NAME = "SelectLabel", SelectLabelText = styled(ListItem2.Text, {
|
|
|
19666
19396
|
} = _a, labelProps = __objRest(_a, [
|
|
19667
19397
|
"scope"
|
|
19668
19398
|
]), context2 = useSelectItemParentContext(scope), groupContext = useSelectGroupContext(scope);
|
|
19669
|
-
return context2.shouldRenderWebNative ? null : /* @__PURE__ */
|
|
19399
|
+
return context2.shouldRenderWebNative ? null : /* @__PURE__ */ jsxRuntime.jsx(ListItem2, __spreadProps(__spreadValues({
|
|
19670
19400
|
tag: "div",
|
|
19671
19401
|
componentName: LABEL_NAME,
|
|
19672
19402
|
fontWeight: "800",
|
|
@@ -19683,7 +19413,7 @@ var SelectSeparator = styled(Separator, {
|
|
|
19683
19413
|
name: "SelectSeparator"
|
|
19684
19414
|
}), SelectSheetController = function(props) {
|
|
19685
19415
|
var context2 = useSelectContext(props.scope), showSheet = useShowSelectSheet(context2), isAdapted = useAdaptIsActive(context2.adaptScope), getShowSheet = useGet(showSheet);
|
|
19686
|
-
return /* @__PURE__ */
|
|
19416
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
19687
19417
|
onOpenChange: function(val) {
|
|
19688
19418
|
getShowSheet() && props.onOpenChange(val);
|
|
19689
19419
|
},
|
|
@@ -19692,15 +19422,15 @@ var SelectSeparator = styled(Separator, {
|
|
|
19692
19422
|
children: props.children
|
|
19693
19423
|
});
|
|
19694
19424
|
}, SelectSheetImpl = function(props) {
|
|
19695
|
-
return /* @__PURE__ */
|
|
19425
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19696
19426
|
children: props.children
|
|
19697
19427
|
});
|
|
19698
19428
|
}, Select = withStaticProperties(function(props) {
|
|
19699
19429
|
var adaptScope = `AdaptSelect${props.scope || ""}`;
|
|
19700
|
-
return /* @__PURE__ */
|
|
19430
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
19701
19431
|
scope: adaptScope,
|
|
19702
19432
|
portal: true,
|
|
19703
|
-
children: /* @__PURE__ */
|
|
19433
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectInner, __spreadValues({
|
|
19704
19434
|
scope: props.scope,
|
|
19705
19435
|
adaptScope
|
|
19706
19436
|
}, props))
|
|
@@ -19792,7 +19522,7 @@ function SelectInner(props) {
|
|
|
19792
19522
|
return prev !== index2 ? (typeof index2 == "number" && emitActiveIndex(index2), index2) : prev;
|
|
19793
19523
|
});
|
|
19794
19524
|
}, 0, {}, []);
|
|
19795
|
-
return /* @__PURE__ */
|
|
19525
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectItemParentProvider, {
|
|
19796
19526
|
scopeName: scope,
|
|
19797
19527
|
scope,
|
|
19798
19528
|
adaptScope,
|
|
@@ -19815,7 +19545,7 @@ function SelectInner(props) {
|
|
|
19815
19545
|
listContentRef.current[index2] = value2;
|
|
19816
19546
|
}, []),
|
|
19817
19547
|
shouldRenderWebNative,
|
|
19818
|
-
children: /* @__PURE__ */
|
|
19548
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectProvider, {
|
|
19819
19549
|
scope,
|
|
19820
19550
|
scopeName: scope,
|
|
19821
19551
|
adaptScope,
|
|
@@ -19835,10 +19565,10 @@ function SelectInner(props) {
|
|
|
19835
19565
|
open: open2,
|
|
19836
19566
|
native,
|
|
19837
19567
|
renderValue,
|
|
19838
|
-
children: /* @__PURE__ */
|
|
19568
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectSheetController, {
|
|
19839
19569
|
onOpenChange: setOpen,
|
|
19840
19570
|
scope,
|
|
19841
|
-
children: /* @__PURE__ */
|
|
19571
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectImpl, __spreadProps(__spreadValues({
|
|
19842
19572
|
activeIndexRef,
|
|
19843
19573
|
listContentRef,
|
|
19844
19574
|
selectedIndexRef
|
|
@@ -19980,19 +19710,19 @@ function setupNativeSheet(platform2, RNIOSModal) {
|
|
|
19980
19710
|
var _props_onOpenChange;
|
|
19981
19711
|
(_props_onOpenChange = props.onOpenChange) === null || _props_onOpenChange === void 0 || _props_onOpenChange.call(props, open2), setOpen(next);
|
|
19982
19712
|
}
|
|
19983
|
-
return /* @__PURE__ */
|
|
19984
|
-
children: /* @__PURE__ */
|
|
19713
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19714
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(SheetProvider, __spreadProps(__spreadValues({
|
|
19985
19715
|
setHasScrollView: emptyFn
|
|
19986
19716
|
}, providerProps), {
|
|
19987
19717
|
onlyShowFrame: true,
|
|
19988
19718
|
children: [
|
|
19989
|
-
/* @__PURE__ */
|
|
19719
|
+
/* @__PURE__ */ jsxRuntime.jsx(ModalSheetView, {
|
|
19990
19720
|
ref,
|
|
19991
19721
|
onModalDidDismiss: function() {
|
|
19992
19722
|
return setOpenInternal(false);
|
|
19993
19723
|
},
|
|
19994
|
-
children: /* @__PURE__ */
|
|
19995
|
-
children: /* @__PURE__ */
|
|
19724
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ModalSheetViewMainContent, {
|
|
19725
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
19996
19726
|
style: {
|
|
19997
19727
|
flex: 1
|
|
19998
19728
|
},
|
|
@@ -20002,7 +19732,7 @@ function setupNativeSheet(platform2, RNIOSModal) {
|
|
|
20002
19732
|
}),
|
|
20003
19733
|
/* for some reason select triggers wont show on native if this isn't inside the actual tree not inside implementation... */
|
|
20004
19734
|
/* so just hiding it here for now... not great... */
|
|
20005
|
-
/* @__PURE__ */
|
|
19735
|
+
/* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
20006
19736
|
position: "absolute",
|
|
20007
19737
|
opacity: 0,
|
|
20008
19738
|
pointerEvents: "none",
|
|
@@ -20242,18 +19972,18 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20242
19972
|
`${maxSnapPoint}${"%"}`
|
|
20243
19973
|
) : maxSnapPoint, setHasScrollView = React.useCallback(function(val) {
|
|
20244
19974
|
hasScrollView.current = val;
|
|
20245
|
-
}, []), contents = /* @__PURE__ */
|
|
19975
|
+
}, []), contents = /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
20246
19976
|
disable: !open2,
|
|
20247
|
-
children: /* @__PURE__ */
|
|
19977
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ParentSheetContext.Provider, {
|
|
20248
19978
|
value: nextParentContext,
|
|
20249
|
-
children: /* @__PURE__ */
|
|
19979
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(SheetProvider, __spreadProps(__spreadValues({}, providerProps), {
|
|
20250
19980
|
setHasScrollView,
|
|
20251
|
-
children: [/* @__PURE__ */
|
|
19981
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, {
|
|
20252
19982
|
custom: {
|
|
20253
19983
|
open: open2
|
|
20254
19984
|
},
|
|
20255
19985
|
children: shouldHideParentSheet || !open2 ? null : overlayComponent
|
|
20256
|
-
}), snapPointsMode !== "percent" && /* @__PURE__ */
|
|
19986
|
+
}), snapPointsMode !== "percent" && /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
20257
19987
|
style: {
|
|
20258
19988
|
opacity: 0,
|
|
20259
19989
|
position: "absolute",
|
|
@@ -20264,7 +19994,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20264
19994
|
pointerEvents: "none"
|
|
20265
19995
|
},
|
|
20266
19996
|
onLayout: handleMaxContentViewLayout
|
|
20267
|
-
}), /* @__PURE__ */
|
|
19997
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(AnimatedView, __spreadProps(__spreadValues({
|
|
20268
19998
|
ref
|
|
20269
19999
|
}, panResponder == null ? void 0 : panResponder.panHandlers), {
|
|
20270
20000
|
onLayout: handleAnimationViewLayout,
|
|
@@ -20293,7 +20023,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20293
20023
|
});
|
|
20294
20024
|
if (!USE_NATIVE_PORTAL) {
|
|
20295
20025
|
var adaptContext = useAdaptContext();
|
|
20296
|
-
contents = /* @__PURE__ */
|
|
20026
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
20297
20027
|
children: (
|
|
20298
20028
|
/* @ts-ignore */
|
|
20299
20029
|
contents
|
|
@@ -20302,11 +20032,11 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20302
20032
|
}
|
|
20303
20033
|
var shouldMountChildren = unmountChildrenWhenHidden ? !!opacity : true;
|
|
20304
20034
|
if (modal) {
|
|
20305
|
-
var modalContents = /* @__PURE__ */
|
|
20035
|
+
var modalContents = /* @__PURE__ */ jsxRuntime.jsx(Portal, __spreadProps(__spreadValues({
|
|
20306
20036
|
stackZIndex: zIndex
|
|
20307
20037
|
}, portalProps), {
|
|
20308
|
-
children: shouldMountChildren && /* @__PURE__ */
|
|
20309
|
-
children: /* @__PURE__ */
|
|
20038
|
+
children: shouldMountChildren && /* @__PURE__ */ jsxRuntime.jsx(ContainerComponent, {
|
|
20039
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
20310
20040
|
contain: true,
|
|
20311
20041
|
forceClassName: true,
|
|
20312
20042
|
name: themeName,
|
|
@@ -20314,7 +20044,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20314
20044
|
})
|
|
20315
20045
|
})
|
|
20316
20046
|
}));
|
|
20317
|
-
return /* @__PURE__ */
|
|
20047
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetInsideSheetContext.Provider, {
|
|
20318
20048
|
value: onInnerSheet,
|
|
20319
20049
|
children: modalContents
|
|
20320
20050
|
});
|
|
@@ -20400,7 +20130,7 @@ var SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = /* @__PURE__ *
|
|
|
20400
20130
|
};
|
|
20401
20131
|
return React.useEffect(function() {
|
|
20402
20132
|
scrollBridge.hasScrollableContent = hasScrollableContent;
|
|
20403
|
-
}, [hasScrollableContent]), /* @__PURE__ */
|
|
20133
|
+
}, [hasScrollableContent]), /* @__PURE__ */ jsxRuntime.jsxs(ScrollView3, __spreadProps(__spreadValues({
|
|
20404
20134
|
onLayout: function(e2) {
|
|
20405
20135
|
parentHeight.current = Math.ceil(e2.nativeEvent.layout.height), setIsScrollable();
|
|
20406
20136
|
},
|
|
@@ -20440,7 +20170,7 @@ var SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = /* @__PURE__ *
|
|
|
20440
20170
|
}, props), {
|
|
20441
20171
|
children: [
|
|
20442
20172
|
/* content height measurer */
|
|
20443
|
-
/* @__PURE__ */
|
|
20173
|
+
/* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
20444
20174
|
position: "absolute",
|
|
20445
20175
|
inset: 0,
|
|
20446
20176
|
pointerEvents: "none",
|
|
@@ -20489,7 +20219,7 @@ function createSheet(param) {
|
|
|
20489
20219
|
]), context2 = useSheetContext(SHEET_HANDLE_NAME, __scopeSheet), composedRef = useComposedRefs(context2.handleRef, forwardedRef);
|
|
20490
20220
|
return context2.onlyShowFrame ? null : (
|
|
20491
20221
|
// @ts-ignore
|
|
20492
|
-
/* @__PURE__ */
|
|
20222
|
+
/* @__PURE__ */ jsxRuntime.jsx(Handle2, __spreadValues({
|
|
20493
20223
|
ref: composedRef,
|
|
20494
20224
|
onPress: function() {
|
|
20495
20225
|
var max2 = context2.snapPoints.length + (context2.dismissOnSnapToBottom ? -1 : 0), nextPos = (context2.position + 1) % max2;
|
|
@@ -20506,7 +20236,7 @@ function createSheet(param) {
|
|
|
20506
20236
|
]), context2 = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet), element = React.useMemo(function() {
|
|
20507
20237
|
return (
|
|
20508
20238
|
// @ts-ignore
|
|
20509
|
-
/* @__PURE__ */
|
|
20239
|
+
/* @__PURE__ */ jsxRuntime.jsx(Overlay2, __spreadProps(__spreadValues({}, props), {
|
|
20510
20240
|
onPress: composeEventHandlers(props.onPress, context2.dismissOnOverlayPress ? function() {
|
|
20511
20241
|
context2.setOpen(false);
|
|
20512
20242
|
} : void 0)
|
|
@@ -20542,7 +20272,7 @@ function createSheet(param) {
|
|
|
20542
20272
|
var shouldUseFixedHeight = hasFit && !open2 && stableFrameSize.current;
|
|
20543
20273
|
return (
|
|
20544
20274
|
// @ts-expect-error
|
|
20545
|
-
/* @__PURE__ */
|
|
20275
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Frame2, __spreadProps(__spreadValues({
|
|
20546
20276
|
ref: composedContentRef,
|
|
20547
20277
|
flex: hasFit && open2 ? 0 : 1,
|
|
20548
20278
|
flexBasis: hasFit ? "auto" : void 0,
|
|
@@ -20550,10 +20280,10 @@ function createSheet(param) {
|
|
|
20550
20280
|
pointerEvents: open2 ? "auto" : "none",
|
|
20551
20281
|
"data-state": open2 ? "open" : "closed"
|
|
20552
20282
|
}, props), {
|
|
20553
|
-
children: [/* @__PURE__ */
|
|
20283
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
20554
20284
|
zIndex: resolveViewZIndex(props.zIndex),
|
|
20555
20285
|
children
|
|
20556
|
-
}), adjustPaddingForOffscreenContent && /* @__PURE__ */
|
|
20286
|
+
}), adjustPaddingForOffscreenContent && /* @__PURE__ */ jsxRuntime.jsx(Stack, {
|
|
20557
20287
|
"data-sheet-offscreen-pad": true,
|
|
20558
20288
|
height: offscreenSize,
|
|
20559
20289
|
width: "100%"
|
|
@@ -20561,15 +20291,15 @@ function createSheet(param) {
|
|
|
20561
20291
|
}))
|
|
20562
20292
|
);
|
|
20563
20293
|
}, [open2, props, frameSize, offscreenSize, adjustPaddingForOffscreenContent, hasFit]);
|
|
20564
|
-
return /* @__PURE__ */
|
|
20294
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
20565
20295
|
children: [
|
|
20566
|
-
/* @__PURE__ */
|
|
20296
|
+
/* @__PURE__ */ jsxRuntime.jsx(RemoveScroll, {
|
|
20567
20297
|
enabled: !disableRemoveScroll && context2.open,
|
|
20568
20298
|
children: sheetContents
|
|
20569
20299
|
}),
|
|
20570
20300
|
/* below frame hide when bouncing past 100% */
|
|
20571
20301
|
!disableHideBottomOverflow && // @ts-ignore
|
|
20572
|
-
/* @__PURE__ */
|
|
20302
|
+
/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues({}, props), {
|
|
20573
20303
|
componentName: "SheetCover",
|
|
20574
20304
|
// biome-ignore lint/correctness/noChildrenProp: <explanation>
|
|
20575
20305
|
children: null,
|
|
@@ -20594,7 +20324,7 @@ function createSheet(param) {
|
|
|
20594
20324
|
isShowingNonSheet
|
|
20595
20325
|
} = useSheetController(), SheetImplementation = SheetImplementationCustom;
|
|
20596
20326
|
if (props.native && Platform.OS === "ios") ;
|
|
20597
|
-
return isShowingNonSheet || false ? null : /* @__PURE__ */
|
|
20327
|
+
return isShowingNonSheet || false ? null : /* @__PURE__ */ jsxRuntime.jsx(SheetImplementation, __spreadValues({
|
|
20598
20328
|
ref
|
|
20599
20329
|
}, props));
|
|
20600
20330
|
}), components = {
|
|
@@ -20800,7 +20530,7 @@ var SliderFrame = styled(YStack, {
|
|
|
20800
20530
|
"onEndKeyDown",
|
|
20801
20531
|
"onStepKeyDown"
|
|
20802
20532
|
]), context2 = useSliderContext(__scopeSlider);
|
|
20803
|
-
return /* @__PURE__ */
|
|
20533
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
20804
20534
|
size: "$4"
|
|
20805
20535
|
}, sliderProps), {
|
|
20806
20536
|
"data-orientation": sliderProps.orientation,
|
|
@@ -20873,14 +20603,14 @@ var SliderHorizontal = /* @__PURE__ */ React__namespace.forwardRef(function(prop
|
|
|
20873
20603
|
});
|
|
20874
20604
|
});
|
|
20875
20605
|
};
|
|
20876
|
-
return /* @__PURE__ */
|
|
20606
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderOrientationProvider, {
|
|
20877
20607
|
scope: props.__scopeSlider,
|
|
20878
20608
|
startEdge: isDirectionLTR ? "left" : "right",
|
|
20879
20609
|
endEdge: isDirectionLTR ? "right" : "left",
|
|
20880
20610
|
direction: isDirectionLTR ? 1 : -1,
|
|
20881
20611
|
sizeProp: "width",
|
|
20882
20612
|
size: state.size,
|
|
20883
|
-
children: /* @__PURE__ */
|
|
20613
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderImpl, __spreadProps(__spreadValues({
|
|
20884
20614
|
ref: composeRefs(forwardedRef, sliderRef),
|
|
20885
20615
|
dir: direction
|
|
20886
20616
|
}, sliderProps), {
|
|
@@ -20944,14 +20674,14 @@ var SliderVertical = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
20944
20674
|
});
|
|
20945
20675
|
});
|
|
20946
20676
|
};
|
|
20947
|
-
return /* @__PURE__ */
|
|
20677
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderOrientationProvider, {
|
|
20948
20678
|
scope: props.__scopeSlider,
|
|
20949
20679
|
startEdge: "bottom",
|
|
20950
20680
|
endEdge: "top",
|
|
20951
20681
|
sizeProp: "height",
|
|
20952
20682
|
size: state.size,
|
|
20953
20683
|
direction: 1,
|
|
20954
|
-
children: /* @__PURE__ */
|
|
20684
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderImpl, __spreadProps(__spreadValues({
|
|
20955
20685
|
ref: composeRefs(forwardedRef, sliderRef)
|
|
20956
20686
|
}, sliderProps), {
|
|
20957
20687
|
orientation: "vertical",
|
|
@@ -21000,7 +20730,7 @@ var SliderVertical = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
21000
20730
|
} = _a, trackProps = __objRest(_a, [
|
|
21001
20731
|
"__scopeSlider"
|
|
21002
20732
|
]), context2 = useSliderContext(__scopeSlider);
|
|
21003
|
-
return /* @__PURE__ */
|
|
20733
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderTrackFrame, __spreadProps(__spreadValues({
|
|
21004
20734
|
"data-disabled": context2.disabled ? "" : void 0,
|
|
21005
20735
|
"data-orientation": context2.orientation,
|
|
21006
20736
|
orientation: context2.orientation,
|
|
@@ -21023,7 +20753,7 @@ var RANGE_NAME = "SliderTrackActive", SliderTrackActiveFrame = styled(SliderFram
|
|
|
21023
20753
|
]), context2 = useSliderContext(__scopeSlider), orientation = useSliderOrientationContext(__scopeSlider), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), valuesCount = context2.values.length, percentages = context2.values.map(function(value) {
|
|
21024
20754
|
return convertValueToPercentage(value, context2.min, context2.max);
|
|
21025
20755
|
}), offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0, offsetEnd = 100 - Math.max(...percentages);
|
|
21026
|
-
return /* @__PURE__ */
|
|
20756
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderTrackActiveFrame, __spreadValues(__spreadProps(__spreadValues({
|
|
21027
20757
|
orientation: context2.orientation,
|
|
21028
20758
|
"data-orientation": context2.orientation,
|
|
21029
20759
|
"data-disabled": context2.disabled ? "" : void 0,
|
|
@@ -21107,7 +20837,7 @@ var getThumbSize = function(val) {
|
|
|
21107
20837
|
left: "auto",
|
|
21108
20838
|
right: "auto"
|
|
21109
20839
|
});
|
|
21110
|
-
return /* @__PURE__ */
|
|
20840
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderThumbFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
21111
20841
|
ref: composedRefs,
|
|
21112
20842
|
role: "slider",
|
|
21113
20843
|
"aria-label": props["aria-label"] || label,
|
|
@@ -21195,7 +20925,7 @@ var getThumbSize = function(val) {
|
|
|
21195
20925
|
});
|
|
21196
20926
|
}
|
|
21197
20927
|
var SliderOriented = isHorizontal ? SliderHorizontal : SliderVertical;
|
|
21198
|
-
return /* @__PURE__ */
|
|
20928
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderProvider, {
|
|
21199
20929
|
scope: props.__scopeSlider,
|
|
21200
20930
|
disabled,
|
|
21201
20931
|
min: min2,
|
|
@@ -21205,7 +20935,7 @@ var getThumbSize = function(val) {
|
|
|
21205
20935
|
values,
|
|
21206
20936
|
orientation,
|
|
21207
20937
|
size: sizeProp,
|
|
21208
|
-
children: /* @__PURE__ */
|
|
20938
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderOriented, __spreadProps(__spreadValues({
|
|
21209
20939
|
"aria-disabled": disabled,
|
|
21210
20940
|
"data-disabled": disabled ? "" : void 0
|
|
21211
20941
|
}, sliderProps), {
|
|
@@ -21357,7 +21087,7 @@ function createSwitch(createProps) {
|
|
|
21357
21087
|
unstyled: unstyledContext,
|
|
21358
21088
|
size: sizeContext
|
|
21359
21089
|
} = styledContext, _ref, unstyled = process.env.TAMAGUI_HEADLESS === "1" ? true : (_ref = unstyledProp != null ? unstyledProp : unstyledContext) !== null && _ref !== void 0 ? _ref : false, _ref1, size = (_ref1 = sizeProp != null ? sizeProp : sizeContext) !== null && _ref1 !== void 0 ? _ref1 : "$true", initialChecked = React__namespace.useRef(checked).current, initialWidth = getVariableValue(props.width, "size"), [thumbWidth, setThumbWidth] = React__namespace.useState(typeof initialWidth == "number" ? initialWidth : 0), distance = frameWidth - thumbWidth, x = initialChecked ? checked ? 0 : -distance : checked ? distance : 0;
|
|
21360
|
-
return /* @__PURE__ */
|
|
21090
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Thumb2, __spreadValues(__spreadProps(__spreadValues({
|
|
21361
21091
|
ref: forwardedRef,
|
|
21362
21092
|
unstyled
|
|
21363
21093
|
}, unstyled === false && __spreadValues({
|
|
@@ -21421,7 +21151,7 @@ function createSwitch(createProps) {
|
|
|
21421
21151
|
});
|
|
21422
21152
|
}, [props.id, props.disabled]);
|
|
21423
21153
|
var renderNative = shouldRenderNativePlatform(native);
|
|
21424
|
-
if (renderNative === "android" || renderNative === "ios") return /* @__PURE__ */
|
|
21154
|
+
if (renderNative === "android" || renderNative === "ios") return /* @__PURE__ */ jsxRuntime.jsx(UnimplementedView, __spreadValues({
|
|
21425
21155
|
value: checked,
|
|
21426
21156
|
onValueChange: setChecked
|
|
21427
21157
|
}, nativeProps));
|
|
@@ -21435,9 +21165,9 @@ function createSwitch(createProps) {
|
|
|
21435
21165
|
var next = e2.nativeEvent.layout.width;
|
|
21436
21166
|
next !== frameWidth && setFrameInnerWidth(next);
|
|
21437
21167
|
}, _styledContext_unstyled, _ref3, unstyled = (_ref3 = (_styledContext_unstyled = styledContext.unstyled) !== null && _styledContext_unstyled !== void 0 ? _styledContext_unstyled : props.unstyled) !== null && _ref3 !== void 0 ? _ref3 : false, _styledContext_size, _ref4;
|
|
21438
|
-
return /* @__PURE__ */
|
|
21168
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(SwitchContext.Provider, {
|
|
21439
21169
|
value,
|
|
21440
|
-
children: [/* @__PURE__ */
|
|
21170
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
21441
21171
|
ref: switchRef,
|
|
21442
21172
|
tag: "button"
|
|
21443
21173
|
}, isWeb), !unstyled && {
|
|
@@ -21450,7 +21180,7 @@ function createSwitch(createProps) {
|
|
|
21450
21180
|
// expected variants
|
|
21451
21181
|
checked,
|
|
21452
21182
|
disabled,
|
|
21453
|
-
children: /* @__PURE__ */
|
|
21183
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
21454
21184
|
style: measureContainerStyle,
|
|
21455
21185
|
onLayout: handleLayout,
|
|
21456
21186
|
children: frameWidth ? props.children : null
|
|
@@ -21533,13 +21263,13 @@ function createTabs(createProps) {
|
|
|
21533
21263
|
"loop",
|
|
21534
21264
|
"children"
|
|
21535
21265
|
]), context2 = useTabsContext(__scopeTabs);
|
|
21536
|
-
return /* @__PURE__ */
|
|
21266
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, {
|
|
21537
21267
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
21538
21268
|
orientation: context2.orientation,
|
|
21539
21269
|
dir: context2.dir,
|
|
21540
21270
|
loop,
|
|
21541
21271
|
asChild: true,
|
|
21542
|
-
children: /* @__PURE__ */
|
|
21272
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Group, __spreadProps(__spreadValues({
|
|
21543
21273
|
role: "tablist",
|
|
21544
21274
|
componentName: TAB_LIST_NAME,
|
|
21545
21275
|
"aria-orientation": context2.orientation,
|
|
@@ -21577,14 +21307,14 @@ function createTabs(createProps) {
|
|
|
21577
21307
|
isSelected && layout && (onInteraction == null ? void 0 : onInteraction("select", layout));
|
|
21578
21308
|
}, [isSelected, value, layout]);
|
|
21579
21309
|
var _props_onPress;
|
|
21580
|
-
return /* @__PURE__ */
|
|
21310
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
21581
21311
|
name: isSelected && !disableActiveTheme ? "active" : null,
|
|
21582
|
-
children: /* @__PURE__ */
|
|
21312
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, {
|
|
21583
21313
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
21584
21314
|
asChild: true,
|
|
21585
21315
|
focusable: !disabled,
|
|
21586
21316
|
active: isSelected,
|
|
21587
|
-
children: /* @__PURE__ */
|
|
21317
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TabFrame, __spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
21588
21318
|
onLayout: function(event) {
|
|
21589
21319
|
setLayout(event.nativeEvent.layout);
|
|
21590
21320
|
},
|
|
@@ -21628,7 +21358,7 @@ function createTabs(createProps) {
|
|
|
21628
21358
|
"forceMount",
|
|
21629
21359
|
"children"
|
|
21630
21360
|
]), context2 = useTabsContext(__scopeTabs), isSelected = value === context2.value, show = forceMount || isSelected, triggerId = makeTriggerId(context2.baseId, value), contentId = makeContentId(context2.baseId, value);
|
|
21631
|
-
return show ? /* @__PURE__ */
|
|
21361
|
+
return show ? /* @__PURE__ */ jsxRuntime.jsx(ContentFrame, __spreadProps(__spreadValues({
|
|
21632
21362
|
"data-state": isSelected ? "active" : "inactive",
|
|
21633
21363
|
"data-orientation": context2.orientation,
|
|
21634
21364
|
role: "tabpanel",
|
|
@@ -21673,7 +21403,7 @@ function createTabs(createProps) {
|
|
|
21673
21403
|
return v - 1;
|
|
21674
21404
|
});
|
|
21675
21405
|
});
|
|
21676
|
-
return /* @__PURE__ */
|
|
21406
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TabsProvider, {
|
|
21677
21407
|
scope: __scopeTabs,
|
|
21678
21408
|
baseId: React__namespace.useId(),
|
|
21679
21409
|
value,
|
|
@@ -21685,7 +21415,7 @@ function createTabs(createProps) {
|
|
|
21685
21415
|
registerTrigger,
|
|
21686
21416
|
triggersCount,
|
|
21687
21417
|
unregisterTrigger,
|
|
21688
|
-
children: /* @__PURE__ */
|
|
21418
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TabsFrame, __spreadProps(__spreadValues({
|
|
21689
21419
|
direction,
|
|
21690
21420
|
// dir={direction}
|
|
21691
21421
|
"data-orientation": orientation
|
|
@@ -21903,7 +21633,7 @@ var context = createStyledContext({
|
|
|
21903
21633
|
onChange: onPressedChange,
|
|
21904
21634
|
defaultProp: defaultPressed
|
|
21905
21635
|
}), _props_onPress;
|
|
21906
|
-
return /* @__PURE__ */
|
|
21636
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !props.unstyled && {
|
|
21907
21637
|
theme: pressed ? "accent" : null,
|
|
21908
21638
|
themeShallow: true
|
|
21909
21639
|
}), {
|
|
@@ -21951,18 +21681,18 @@ var TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem
|
|
|
21951
21681
|
}, sizeProps), rest), {
|
|
21952
21682
|
children,
|
|
21953
21683
|
toggledStyle
|
|
21954
|
-
}), inner = /* @__PURE__ */
|
|
21684
|
+
}), inner = /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupItemImpl, __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
21955
21685
|
ref: forwardedRef,
|
|
21956
21686
|
// focusable={!disabled}
|
|
21957
21687
|
tabIndex: disabled ? -1 : 0,
|
|
21958
21688
|
disabled
|
|
21959
21689
|
}), groupItemProps));
|
|
21960
|
-
return /* @__PURE__ */
|
|
21690
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupItemProvider, {
|
|
21961
21691
|
scope: props.__scopeToggleGroup,
|
|
21962
|
-
children: /* @__PURE__ */
|
|
21692
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(context.Provider, {
|
|
21963
21693
|
color,
|
|
21964
21694
|
toggledStyle,
|
|
21965
|
-
children: context$12.rovingFocus ? /* @__PURE__ */
|
|
21695
|
+
children: context$12.rovingFocus ? /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, {
|
|
21966
21696
|
asChild: "except-style",
|
|
21967
21697
|
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
21968
21698
|
focusable: !disabled,
|
|
@@ -21983,7 +21713,7 @@ var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwa
|
|
|
21983
21713
|
]), valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
21984
21714
|
"aria-pressed": void 0
|
|
21985
21715
|
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
21986
|
-
return /* @__PURE__ */
|
|
21716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Toggle, __spreadProps(__spreadValues(__spreadValues({}, typeProps), itemProps), {
|
|
21987
21717
|
ref: forwardedRef,
|
|
21988
21718
|
onPressedChange: function(pressed) {
|
|
21989
21719
|
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
@@ -22004,13 +21734,13 @@ var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwa
|
|
|
22004
21734
|
});
|
|
22005
21735
|
}, [props.id]), type === "single") {
|
|
22006
21736
|
var singleProps = toggleGroupProps;
|
|
22007
|
-
return /* @__PURE__ */
|
|
21737
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplSingle, __spreadProps(__spreadValues({}, singleProps), {
|
|
22008
21738
|
ref: forwardedRef
|
|
22009
21739
|
}));
|
|
22010
21740
|
}
|
|
22011
21741
|
if (type === "multiple") {
|
|
22012
21742
|
var multipleProps = toggleGroupProps;
|
|
22013
|
-
return /* @__PURE__ */
|
|
21743
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplMultiple, __spreadProps(__spreadValues({}, multipleProps), {
|
|
22014
21744
|
ref: forwardedRef
|
|
22015
21745
|
}));
|
|
22016
21746
|
}
|
|
@@ -22039,7 +21769,7 @@ var {
|
|
|
22039
21769
|
defaultProp: defaultValue2,
|
|
22040
21770
|
onChange: onValueChange
|
|
22041
21771
|
});
|
|
22042
|
-
return /* @__PURE__ */
|
|
21772
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupValueProvider, {
|
|
22043
21773
|
scope: props.__scopeToggleGroup,
|
|
22044
21774
|
type: "single",
|
|
22045
21775
|
value: value ? [value] : [],
|
|
@@ -22048,7 +21778,7 @@ var {
|
|
|
22048
21778
|
onItemDeactivate: React.useCallback(function() {
|
|
22049
21779
|
return disableDeactivation ? null : setValue("");
|
|
22050
21780
|
}, [setValue, disableDeactivation]),
|
|
22051
|
-
children: /* @__PURE__ */
|
|
21781
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImpl, __spreadProps(__spreadValues({}, toggleGroupSingleProps), {
|
|
22052
21782
|
ref: forwardedRef
|
|
22053
21783
|
}))
|
|
22054
21784
|
});
|
|
@@ -22081,14 +21811,14 @@ var {
|
|
|
22081
21811
|
});
|
|
22082
21812
|
});
|
|
22083
21813
|
}, [setValue]);
|
|
22084
|
-
return /* @__PURE__ */
|
|
21814
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupValueProvider, {
|
|
22085
21815
|
scope: props.__scopeToggleGroup,
|
|
22086
21816
|
type: "multiple",
|
|
22087
21817
|
value,
|
|
22088
21818
|
defaultValue: value,
|
|
22089
21819
|
onItemActivate: handleButtonActivate,
|
|
22090
21820
|
onItemDeactivate: handleButtonDeactivate,
|
|
22091
|
-
children: /* @__PURE__ */
|
|
21821
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImpl, __spreadProps(__spreadValues({}, toggleGroupMultipleProps), {
|
|
22092
21822
|
ref: forwardedRef
|
|
22093
21823
|
}))
|
|
22094
21824
|
});
|
|
@@ -22147,21 +21877,21 @@ var ToggleGroupImplElementFrame = styled(Group, {
|
|
|
22147
21877
|
}, toggleGroupProps), adjustedSize = getVariableValue(getSize(sizeProp, {
|
|
22148
21878
|
shift: sizeAdjust
|
|
22149
21879
|
})), size = Math.round(adjustedSize * 0.45);
|
|
22150
|
-
return /* @__PURE__ */
|
|
21880
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext, {
|
|
22151
21881
|
scope: __scopeToggleGroup,
|
|
22152
21882
|
rovingFocus,
|
|
22153
21883
|
disabled,
|
|
22154
21884
|
size,
|
|
22155
|
-
children: /* @__PURE__ */
|
|
21885
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(context.Provider, {
|
|
22156
21886
|
color,
|
|
22157
21887
|
toggledStyle,
|
|
22158
|
-
children: rovingFocus ? /* @__PURE__ */
|
|
21888
|
+
children: rovingFocus ? /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, {
|
|
22159
21889
|
asChild: "except-style",
|
|
22160
21890
|
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
22161
21891
|
orientation,
|
|
22162
21892
|
dir: direction,
|
|
22163
21893
|
loop,
|
|
22164
|
-
children: /* @__PURE__ */
|
|
21894
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplElementFrame, __spreadValues({
|
|
22165
21895
|
"aria-orientation": orientation,
|
|
22166
21896
|
orientation,
|
|
22167
21897
|
// axis={orientation}
|
|
@@ -22169,7 +21899,7 @@ var ToggleGroupImplElementFrame = styled(Group, {
|
|
|
22169
21899
|
"data-disabled": disabled ? "" : void 0,
|
|
22170
21900
|
unstyled
|
|
22171
21901
|
}, commonProps))
|
|
22172
|
-
}) : /* @__PURE__ */
|
|
21902
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplElementFrame, __spreadValues({
|
|
22173
21903
|
"aria-orientation": orientation,
|
|
22174
21904
|
ref: forwardedRef,
|
|
22175
21905
|
orientation,
|
|
@@ -22265,7 +21995,7 @@ VisuallyHidden.isVisuallyHidden = true;
|
|
|
22265
21995
|
const createTamagui = createTamagui$1;
|
|
22266
21996
|
const TamaguiProvider = (_d) => {
|
|
22267
21997
|
var _e = _d, { children } = _e, props = __objRest(_e, ["children"]);
|
|
22268
|
-
return /* @__PURE__ */
|
|
21998
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$1, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxRuntime.jsx(ZIndexStackContext.Provider, { value: 1, children: /* @__PURE__ */ jsxRuntime.jsx(PortalProvider, { shouldAddRootHost: true, children }) }) }));
|
|
22269
21999
|
};
|
|
22270
22000
|
const AnchorFrame = styled(SizableText, {
|
|
22271
22001
|
name: "Anchor",
|
|
@@ -22275,7 +22005,7 @@ const AnchorFrame = styled(SizableText, {
|
|
|
22275
22005
|
const Anchor = AnchorFrame.styleable(
|
|
22276
22006
|
(_f, ref) => {
|
|
22277
22007
|
var _g = _f, { href, target } = _g, props = __objRest(_g, ["href", "target"]);
|
|
22278
|
-
return /* @__PURE__ */
|
|
22008
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22279
22009
|
AnchorFrame,
|
|
22280
22010
|
__spreadProps(__spreadValues(__spreadValues({}, props), {
|
|
22281
22011
|
onPress: (event) => {
|
|
@@ -22553,7 +22283,7 @@ var StyledInput = styled(TextInput, styledBody[0], styledBody[1]), Input = Style
|
|
|
22553
22283
|
onSelectionChange: onSelectionChange ? handleSelectionChange : void 0,
|
|
22554
22284
|
autoComplete
|
|
22555
22285
|
});
|
|
22556
|
-
return /* @__PURE__ */
|
|
22286
|
+
return /* @__PURE__ */ jsxRuntime.jsx(StyledInput, __spreadValues({
|
|
22557
22287
|
ref: composedRefs
|
|
22558
22288
|
}, finalProps));
|
|
22559
22289
|
});
|
|
@@ -22586,7 +22316,7 @@ const Spinner = YStack.styleable((props, ref) => {
|
|
|
22586
22316
|
if (color && color[0] === "$") {
|
|
22587
22317
|
color = variableToString(theme[color]);
|
|
22588
22318
|
}
|
|
22589
|
-
return /* @__PURE__ */
|
|
22319
|
+
return /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadProps(__spreadValues({ ref }, stackProps), { children: /* @__PURE__ */ jsxRuntime.jsx(ActivityIndicator, { size, color }) }));
|
|
22590
22320
|
});
|
|
22591
22321
|
const Text = styled(Text$2, {
|
|
22592
22322
|
variants: {
|