tamagui 1.112.2 → 1.112.4
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.js +120 -169
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +119 -168
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -2665,7 +2665,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2665
2665
|
getIdentifierFromTamaguiSelector(text),
|
|
2666
2666
|
rule
|
|
2667
2667
|
];
|
|
2668
|
-
if (collectThemes && (
|
|
2668
|
+
if (collectThemes && /^(:root\s?(\.t_[a-z0-9_]+\s*)+(,)?\s*)+$/i.test(text)) return [
|
|
2669
2669
|
text.slice(0, 20),
|
|
2670
2670
|
// just used as uid
|
|
2671
2671
|
rule,
|
|
@@ -8258,7 +8258,7 @@ var require_setupHooks_native = __commonJS({
|
|
|
8258
8258
|
}
|
|
8259
8259
|
});
|
|
8260
8260
|
module2.exports = __toCommonJS2(setupHooks_exports);
|
|
8261
|
-
var
|
|
8261
|
+
var hooks = {};
|
|
8262
8262
|
function setupHooks(next) {
|
|
8263
8263
|
Object.assign(hooks, next);
|
|
8264
8264
|
}
|
|
@@ -11356,7 +11356,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11356
11356
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
11357
11357
|
function TamaguiProvider2(param) {
|
|
11358
11358
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11359
|
-
return (0, import_useMedia.setupMediaListeners)(), import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
11359
|
+
return (0, import_useMedia.setupMediaListeners)(), process.env.TAMAGUI_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
11360
11360
|
if (config && !disableInjectCSS) {
|
|
11361
11361
|
var style = document.createElement("style");
|
|
11362
11362
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|
|
@@ -11366,18 +11366,30 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11366
11366
|
}, [
|
|
11367
11367
|
config,
|
|
11368
11368
|
disableInjectCSS
|
|
11369
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime6.
|
|
11370
|
-
children:
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11369
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
11370
|
+
children: [
|
|
11371
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
11372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11373
|
+
animationDriver: config == null ? void 0 : config.animations,
|
|
11374
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
11375
|
+
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
11376
|
+
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
11377
|
+
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
11378
|
+
reset,
|
|
11379
|
+
className,
|
|
11380
|
+
children
|
|
11381
|
+
})
|
|
11382
|
+
})
|
|
11383
|
+
}),
|
|
11384
|
+
process.env.TAMAGUI_REACT_19 && config && !disableInjectCSS && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("style", {
|
|
11385
|
+
// react 19 feature to hoist style tags to header:
|
|
11386
|
+
// https://react.dev/reference/react-dom/components/style
|
|
11387
|
+
// @ts-ignore
|
|
11388
|
+
precedence: "default",
|
|
11389
|
+
href: "tamagui-css",
|
|
11390
|
+
children: config.getCSS()
|
|
11391
|
+
}, "tamagui-css")
|
|
11392
|
+
]
|
|
11381
11393
|
});
|
|
11382
11394
|
}
|
|
11383
11395
|
function UnmountedClassName(props) {
|
|
@@ -12686,7 +12698,7 @@ var require_useResponderEvents_native = __commonJS({
|
|
|
12686
12698
|
}, [
|
|
12687
12699
|
id
|
|
12688
12700
|
]), React4.useEffect(function() {
|
|
12689
|
-
var { onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture } = config, requiresResponderSystem = onMoveShouldSetResponder
|
|
12701
|
+
var { onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture } = config, requiresResponderSystem = !!(onMoveShouldSetResponder || onMoveShouldSetResponderCapture || onScrollShouldSetResponder || onScrollShouldSetResponderCapture || onSelectionChangeShouldSetResponder || onSelectionChangeShouldSetResponderCapture || onStartShouldSetResponder || onStartShouldSetResponderCapture), node = hostRef.current.host;
|
|
12690
12702
|
requiresResponderSystem ? (ResponderSystem.addNode(id, node, config), isAttachedRef.current = !0) : isAttachedRef.current && (ResponderSystem.removeNode(id), isAttachedRef.current = !1);
|
|
12691
12703
|
}, [
|
|
12692
12704
|
config,
|
|
@@ -13079,6 +13091,66 @@ var require_getBoundingClientRect_native = __commonJS({
|
|
|
13079
13091
|
}
|
|
13080
13092
|
});
|
|
13081
13093
|
|
|
13094
|
+
// ../../core/core/dist/cjs/helpers/getRect.native.js
|
|
13095
|
+
var require_getRect_native = __commonJS({
|
|
13096
|
+
"../../core/core/dist/cjs/helpers/getRect.native.js"(exports2, module2) {
|
|
13097
|
+
"use strict";
|
|
13098
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
13099
|
+
for (var name in all) __defProp2(target, name, {
|
|
13100
|
+
get: all[name],
|
|
13101
|
+
enumerable: !0
|
|
13102
|
+
});
|
|
13103
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
13104
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13105
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
13106
|
+
for (var _loop = function() {
|
|
13107
|
+
var key = _step.value;
|
|
13108
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
13109
|
+
get: function() {
|
|
13110
|
+
return from[key];
|
|
13111
|
+
},
|
|
13112
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
13113
|
+
});
|
|
13114
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
13115
|
+
} catch (err) {
|
|
13116
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
13117
|
+
} finally {
|
|
13118
|
+
try {
|
|
13119
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
13120
|
+
} finally {
|
|
13121
|
+
if (_didIteratorError)
|
|
13122
|
+
throw _iteratorError;
|
|
13123
|
+
}
|
|
13124
|
+
}
|
|
13125
|
+
return to;
|
|
13126
|
+
}, __toCommonJS2 = function(mod) {
|
|
13127
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
13128
|
+
value: !0
|
|
13129
|
+
}), mod);
|
|
13130
|
+
}, getRect_exports = {};
|
|
13131
|
+
__export2(getRect_exports, {
|
|
13132
|
+
getRect: function() {
|
|
13133
|
+
return getRect;
|
|
13134
|
+
}
|
|
13135
|
+
});
|
|
13136
|
+
module2.exports = __toCommonJS2(getRect_exports);
|
|
13137
|
+
var import_getBoundingClientRect = require_getBoundingClientRect_native(), getRect = function(node) {
|
|
13138
|
+
var rect = (0, import_getBoundingClientRect.getBoundingClientRect)(node);
|
|
13139
|
+
if (rect) {
|
|
13140
|
+
var { x, y, top, left } = rect;
|
|
13141
|
+
return {
|
|
13142
|
+
x,
|
|
13143
|
+
y,
|
|
13144
|
+
width: node.offsetWidth,
|
|
13145
|
+
height: node.offsetHeight,
|
|
13146
|
+
top,
|
|
13147
|
+
left
|
|
13148
|
+
};
|
|
13149
|
+
}
|
|
13150
|
+
};
|
|
13151
|
+
}
|
|
13152
|
+
});
|
|
13153
|
+
|
|
13082
13154
|
// ../../core/core/dist/cjs/hooks/useElementLayout.native.js
|
|
13083
13155
|
var require_useElementLayout_native = __commonJS({
|
|
13084
13156
|
"../../core/core/dist/cjs/hooks/useElementLayout.native.js"(exports2, module2) {
|
|
@@ -13224,155 +13296,24 @@ var require_useElementLayout_native = __commonJS({
|
|
|
13224
13296
|
});
|
|
13225
13297
|
};
|
|
13226
13298
|
function useElementLayout(ref, onLayout) {
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
onLayout
|
|
13235
|
-
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13236
|
-
if (resizeObserver) {
|
|
13237
|
-
var node = ref.current;
|
|
13238
|
-
if (node && LayoutHandlers.has(node)) {
|
|
13299
|
+
var _ref_current, node = (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.host;
|
|
13300
|
+
node && onLayout && LayoutHandlers.set(node, onLayout), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13301
|
+
var _ref_current2;
|
|
13302
|
+
if (!(!resizeObserver || !onLayout)) {
|
|
13303
|
+
var node2 = (_ref_current2 = ref.current) === null || _ref_current2 === void 0 ? void 0 : _ref_current2.host;
|
|
13304
|
+
if (node2) {
|
|
13305
|
+
LayoutHandlers.set(node2, onLayout);
|
|
13239
13306
|
var onResize = function() {
|
|
13240
|
-
measureElement(
|
|
13307
|
+
measureElement(node2).then(onLayout);
|
|
13241
13308
|
};
|
|
13242
|
-
return resizeListeners.add(onResize), resizeObserver.observe(
|
|
13243
|
-
resizeListeners.delete(onResize), resizeObserver == null || resizeObserver.unobserve(
|
|
13309
|
+
return resizeListeners.add(onResize), resizeObserver.observe(node2), function() {
|
|
13310
|
+
LayoutHandlers.delete(node2), resizeListeners.delete(onResize), resizeObserver == null || resizeObserver.unobserve(node2);
|
|
13244
13311
|
};
|
|
13245
13312
|
}
|
|
13246
13313
|
}
|
|
13247
13314
|
}, [
|
|
13248
|
-
ref
|
|
13249
|
-
|
|
13250
|
-
}
|
|
13251
|
-
}
|
|
13252
|
-
});
|
|
13253
|
-
|
|
13254
|
-
// ../../core/core/dist/cjs/helpers/getRect.native.js
|
|
13255
|
-
var require_getRect_native = __commonJS({
|
|
13256
|
-
"../../core/core/dist/cjs/helpers/getRect.native.js"(exports2, module2) {
|
|
13257
|
-
"use strict";
|
|
13258
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
13259
|
-
for (var name in all) __defProp2(target, name, {
|
|
13260
|
-
get: all[name],
|
|
13261
|
-
enumerable: !0
|
|
13262
|
-
});
|
|
13263
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
13264
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13265
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
13266
|
-
for (var _loop = function() {
|
|
13267
|
-
var key = _step.value;
|
|
13268
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
13269
|
-
get: function() {
|
|
13270
|
-
return from[key];
|
|
13271
|
-
},
|
|
13272
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
13273
|
-
});
|
|
13274
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
13275
|
-
} catch (err) {
|
|
13276
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
13277
|
-
} finally {
|
|
13278
|
-
try {
|
|
13279
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
13280
|
-
} finally {
|
|
13281
|
-
if (_didIteratorError)
|
|
13282
|
-
throw _iteratorError;
|
|
13283
|
-
}
|
|
13284
|
-
}
|
|
13285
|
-
return to;
|
|
13286
|
-
}, __toCommonJS2 = function(mod) {
|
|
13287
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
13288
|
-
value: !0
|
|
13289
|
-
}), mod);
|
|
13290
|
-
}, getRect_exports = {};
|
|
13291
|
-
__export2(getRect_exports, {
|
|
13292
|
-
getRect: function() {
|
|
13293
|
-
return getRect;
|
|
13294
|
-
}
|
|
13295
|
-
});
|
|
13296
|
-
module2.exports = __toCommonJS2(getRect_exports);
|
|
13297
|
-
var import_getBoundingClientRect = require_getBoundingClientRect_native(), getRect = function(node) {
|
|
13298
|
-
var rect = (0, import_getBoundingClientRect.getBoundingClientRect)(node);
|
|
13299
|
-
if (rect) {
|
|
13300
|
-
var { x, y, top, left } = rect;
|
|
13301
|
-
return {
|
|
13302
|
-
x,
|
|
13303
|
-
y,
|
|
13304
|
-
width: node.offsetWidth,
|
|
13305
|
-
height: node.offsetHeight,
|
|
13306
|
-
top,
|
|
13307
|
-
left
|
|
13308
|
-
};
|
|
13309
|
-
}
|
|
13310
|
-
};
|
|
13311
|
-
}
|
|
13312
|
-
});
|
|
13313
|
-
|
|
13314
|
-
// ../../core/core/dist/cjs/hooks/usePlatformMethods.native.js
|
|
13315
|
-
var require_usePlatformMethods_native = __commonJS({
|
|
13316
|
-
"../../core/core/dist/cjs/hooks/usePlatformMethods.native.js"(exports2, module2) {
|
|
13317
|
-
"use strict";
|
|
13318
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
13319
|
-
for (var name in all) __defProp2(target, name, {
|
|
13320
|
-
get: all[name],
|
|
13321
|
-
enumerable: !0
|
|
13322
|
-
});
|
|
13323
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
13324
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13325
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
13326
|
-
for (var _loop = function() {
|
|
13327
|
-
var key = _step.value;
|
|
13328
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
13329
|
-
get: function() {
|
|
13330
|
-
return from[key];
|
|
13331
|
-
},
|
|
13332
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
13333
|
-
});
|
|
13334
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
13335
|
-
} catch (err) {
|
|
13336
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
13337
|
-
} finally {
|
|
13338
|
-
try {
|
|
13339
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
13340
|
-
} finally {
|
|
13341
|
-
if (_didIteratorError)
|
|
13342
|
-
throw _iteratorError;
|
|
13343
|
-
}
|
|
13344
|
-
}
|
|
13345
|
-
return to;
|
|
13346
|
-
}, __toCommonJS2 = function(mod) {
|
|
13347
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
13348
|
-
value: !0
|
|
13349
|
-
}), mod);
|
|
13350
|
-
}, usePlatformMethods_exports = {};
|
|
13351
|
-
__export2(usePlatformMethods_exports, {
|
|
13352
|
-
usePlatformMethods: function() {
|
|
13353
|
-
return usePlatformMethods;
|
|
13354
|
-
}
|
|
13355
|
-
});
|
|
13356
|
-
module2.exports = __toCommonJS2(usePlatformMethods_exports);
|
|
13357
|
-
var import_constants4 = require_index_native6(), import_getRect = require_getRect_native(), import_useElementLayout = require_useElementLayout_native();
|
|
13358
|
-
function usePlatformMethods(hostRef) {
|
|
13359
|
-
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13360
|
-
var node = hostRef.current;
|
|
13361
|
-
if (node) {
|
|
13362
|
-
var _node, _node1, _node2;
|
|
13363
|
-
(_node = node).measure || (_node.measure = function(callback) {
|
|
13364
|
-
return (0, import_useElementLayout.measureLayout)(node, null, callback);
|
|
13365
|
-
}), (_node1 = node).measureLayout || (_node1.measureLayout = function(relativeToNode, success) {
|
|
13366
|
-
return (0, import_useElementLayout.measureLayout)(node, relativeToNode, success);
|
|
13367
|
-
}), (_node2 = node).measureInWindow || (_node2.measureInWindow = function(callback) {
|
|
13368
|
-
node && setTimeout(function() {
|
|
13369
|
-
var { height, left, top, width } = (0, import_getRect.getRect)(node);
|
|
13370
|
-
callback(left, top, width, height);
|
|
13371
|
-
}, 0);
|
|
13372
|
-
});
|
|
13373
|
-
}
|
|
13374
|
-
}, [
|
|
13375
|
-
hostRef
|
|
13315
|
+
ref,
|
|
13316
|
+
!!onLayout
|
|
13376
13317
|
]);
|
|
13377
13318
|
}
|
|
13378
13319
|
}
|
|
@@ -13576,16 +13517,30 @@ var require_index_native17 = __commonJS({
|
|
|
13576
13517
|
}
|
|
13577
13518
|
});
|
|
13578
13519
|
module2.exports = __toCommonJS2(src_exports2);
|
|
13579
|
-
var
|
|
13520
|
+
var import_react_native_use_responder_events = require_index_native16(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_createOptimizedView = require_createOptimizedView_native(), import_getBaseViews = require_getBaseViews_native(), import_getRect = require_getRect_native(), import_useElementLayout = require_useElementLayout_native(), import_Pressability = require_Pressability_native();
|
|
13580
13521
|
__reExport2(src_exports2, require_index_native14(), module2.exports);
|
|
13581
13522
|
__reExport2(src_exports2, require_reactNativeTypes_native(), module2.exports);
|
|
13582
13523
|
var baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
13583
13524
|
(0, import_web.setupHooks)({
|
|
13584
13525
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
13526
|
+
setElementProps: function(node) {
|
|
13527
|
+
if (node && !node.measure) {
|
|
13528
|
+
var _node, _node1, _node2;
|
|
13529
|
+
(_node = node).measure || (_node.measure = function(callback) {
|
|
13530
|
+
return (0, import_useElementLayout.measureLayout)(node, null, callback);
|
|
13531
|
+
}), (_node1 = node).measureLayout || (_node1.measureLayout = function(relativeToNode, success) {
|
|
13532
|
+
return (0, import_useElementLayout.measureLayout)(node, relativeToNode, success);
|
|
13533
|
+
}), (_node2 = node).measureInWindow || (_node2.measureInWindow = function(callback) {
|
|
13534
|
+
setTimeout(function() {
|
|
13535
|
+
var { height, left, top, width } = (0, import_getRect.getRect)(node);
|
|
13536
|
+
callback(left, top, width, height);
|
|
13537
|
+
}, 0);
|
|
13538
|
+
});
|
|
13539
|
+
}
|
|
13540
|
+
},
|
|
13585
13541
|
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
13586
13542
|
if (0) {
|
|
13587
13543
|
var isDOM, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture, collapsable, focusable, accessible, accessibilityDisabled, onLayout, hrefAttrs, plainDOMProps;
|
|
13588
|
-
if (willHydrate || isDOM) var hostRef;
|
|
13589
13544
|
if (isDOM && plainDOMProps.href && hrefAttrs) var download, rel, target;
|
|
13590
13545
|
}
|
|
13591
13546
|
},
|
|
@@ -16643,9 +16598,6 @@ var require_constants_native3 = __commonJS({
|
|
|
16643
16598
|
SHEET_HANDLE_NAME: function() {
|
|
16644
16599
|
return SHEET_HANDLE_NAME;
|
|
16645
16600
|
},
|
|
16646
|
-
SHEET_HIDDEN_STYLESHEET: function() {
|
|
16647
|
-
return SHEET_HIDDEN_STYLESHEET;
|
|
16648
|
-
},
|
|
16649
16601
|
SHEET_NAME: function() {
|
|
16650
16602
|
return SHEET_NAME;
|
|
16651
16603
|
},
|
|
@@ -16657,8 +16609,7 @@ var require_constants_native3 = __commonJS({
|
|
|
16657
16609
|
}
|
|
16658
16610
|
});
|
|
16659
16611
|
module2.exports = __toCommonJS2(constants_exports);
|
|
16660
|
-
var
|
|
16661
|
-
SHEET_HIDDEN_STYLESHEET && typeof document.head < "u" && document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
|
|
16612
|
+
var constants = {}, SHEET_NAME = "Sheet", SHEET_HANDLE_NAME = "SheetHandle", SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
16662
16613
|
}
|
|
16663
16614
|
});
|
|
16664
16615
|
|
|
@@ -17391,7 +17342,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17391
17342
|
}
|
|
17392
17343
|
});
|
|
17393
17344
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
17394
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"),
|
|
17345
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native26(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native17(), import_portal2 = require_index_native31(), import_use_keyboard_visible = require_index_native33(), import_react3 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_contexts = require_contexts_native(), import_helpers = require_helpers_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), hiddenSize = 10000.1, sheetHiddenStyleSheet = null, SheetImplementationCustom = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
17395
17346
|
var parentSheet = import_react3.default.useContext(import_contexts.ParentSheetContext), { animation, animationConfig: animationConfigProp, modal = !1, zIndex = parentSheet.zIndex + 1, moveOnKeyboardChange = !1, unmountChildrenWhenHidden = !1, portalProps, containerComponent: ContainerComponent = import_react3.default.Fragment } = props, keyboardIsVisible = (0, import_use_keyboard_visible.useKeyboardVisible)(), state = (0, import_useSheetOpenState.useSheetOpenState)(props), [overlayComponent, setOverlayComponent] = import_react3.default.useState(null), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state, {
|
|
17396
17347
|
onOverlayComponent: setOverlayComponent
|
|
17397
17348
|
}), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(null), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef), animationConfig = function() {
|
|
@@ -17486,7 +17437,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17486
17437
|
scrollBridge.paneMinY = minY;
|
|
17487
17438
|
var startY = at.current;
|
|
17488
17439
|
function setPanning(val) {
|
|
17489
|
-
setIsDragging(val),
|
|
17440
|
+
setIsDragging(val), import_constants4.isClient && (sheetHiddenStyleSheet || (sheetHiddenStyleSheet = document.createElement("style"), typeof document.head < "u" && document.head.appendChild(sheetHiddenStyleSheet)), val ? sheetHiddenStyleSheet.innerText = ":root * { user-select: none !important; -webkit-user-select: none !important; }" : sheetHiddenStyleSheet.innerText = "");
|
|
17490
17441
|
}
|
|
17491
17442
|
var release = function(param) {
|
|
17492
17443
|
var { vy, dragAt } = param;
|
|
@@ -17665,7 +17616,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17665
17616
|
});
|
|
17666
17617
|
}
|
|
17667
17618
|
return contents;
|
|
17668
|
-
})
|
|
17619
|
+
});
|
|
17669
17620
|
function getYPositions(mode, point, screenSize, frameSize) {
|
|
17670
17621
|
if (!screenSize || !frameSize) return 0;
|
|
17671
17622
|
if (mode === "mixed") {
|