tamagui 1.127.3 → 1.128.1
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 +326 -1359
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +326 -1359
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -902,13 +902,13 @@ var require_clamp_native = __commonJS({
|
|
|
902
902
|
}, clamp_exports = {};
|
|
903
903
|
__export2(clamp_exports, {
|
|
904
904
|
clamp: function() {
|
|
905
|
-
return
|
|
905
|
+
return clamp;
|
|
906
906
|
}
|
|
907
907
|
});
|
|
908
908
|
module2.exports = __toCommonJS2(clamp_exports);
|
|
909
|
-
function
|
|
910
|
-
var [
|
|
911
|
-
return Math.min(
|
|
909
|
+
function clamp(value, param) {
|
|
910
|
+
var [min, max] = param;
|
|
911
|
+
return Math.min(max, Math.max(min, value));
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
});
|
|
@@ -1111,6 +1111,42 @@ var require_types_native2 = __commonJS({
|
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
1113
|
|
|
1114
|
+
// ../../packages/fake-react-native/index.js
|
|
1115
|
+
var require_fake_react_native = __commonJS({
|
|
1116
|
+
"../../packages/fake-react-native/index.js"(exports2, module2) {
|
|
1117
|
+
module2.exports = proxyWorm();
|
|
1118
|
+
function proxyWorm() {
|
|
1119
|
+
return new Proxy({
|
|
1120
|
+
StyleSheet: {
|
|
1121
|
+
create() {
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
Platform: {
|
|
1125
|
+
OS: "web"
|
|
1126
|
+
},
|
|
1127
|
+
Image: "Image",
|
|
1128
|
+
View: "View",
|
|
1129
|
+
Text: "Text",
|
|
1130
|
+
TextInput: "TextInput",
|
|
1131
|
+
ScrollView: "ScrollView",
|
|
1132
|
+
Dimensions: {
|
|
1133
|
+
addEventListener(cb) {
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
addPoolingTo() {
|
|
1137
|
+
}
|
|
1138
|
+
}, {
|
|
1139
|
+
get(target, key) {
|
|
1140
|
+
return Reflect.get(target, key) || proxyWorm();
|
|
1141
|
+
},
|
|
1142
|
+
apply() {
|
|
1143
|
+
return proxyWorm();
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
});
|
|
1149
|
+
|
|
1114
1150
|
// ../../core/constants/dist/cjs/constants.native.js
|
|
1115
1151
|
var require_constants_native = __commonJS({
|
|
1116
1152
|
"../../core/constants/dist/cjs/constants.native.js"(exports2, module2) {
|
|
@@ -1187,7 +1223,7 @@ var require_constants_native = __commonJS({
|
|
|
1187
1223
|
}
|
|
1188
1224
|
});
|
|
1189
1225
|
module2.exports = __toCommonJS2(constants_native_exports);
|
|
1190
|
-
var import_react3 = require("react"), import_react22 = require("react"), import_react_native4 =
|
|
1226
|
+
var import_react3 = require("react"), import_react22 = require("react"), import_react_native4 = require_fake_react_native(), IS_REACT_19 = !!import_react22.use, isWeb6 = !1, isWindowDefined = !1, isServer2 = !1, isClient2 = !1, useIsomorphicLayoutEffect2 = import_react3.useLayoutEffect, isChrome2 = !1, isWebTouchable2 = !1, isTouchable2 = !0, isAndroid = import_react_native4.Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android", isIos = import_react_native4.Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios", platforms = {
|
|
1191
1227
|
ios: "ios",
|
|
1192
1228
|
android: "android"
|
|
1193
1229
|
}, currentPlatform = platforms[import_react_native4.Platform.OS] || "native";
|
|
@@ -5742,7 +5778,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5742
5778
|
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
|
|
5743
5779
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
5744
5780
|
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value);
|
|
5745
|
-
if (expanded) for (var
|
|
5781
|
+
if (expanded) for (var max = expanded.length, i = 0; i < max; i++) {
|
|
5746
5782
|
var [nkey, nvalue] = expanded[i];
|
|
5747
5783
|
map(nkey, nvalue);
|
|
5748
5784
|
}
|
|
@@ -7062,7 +7098,7 @@ var require_useThemeState_native = __commonJS({
|
|
|
7062
7098
|
name && componentName ? `${name}_${componentName}` : void 0,
|
|
7063
7099
|
name,
|
|
7064
7100
|
componentName
|
|
7065
|
-
].filter(Boolean), found = null,
|
|
7101
|
+
].filter(Boolean), found = null, max = parentParts.length, i = 0; i <= max; i++) {
|
|
7066
7102
|
var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7067
7103
|
try {
|
|
7068
7104
|
for (var _iterator = subNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
@@ -7144,7 +7180,7 @@ var require_doesRootSchemeMatchSystem_native = __commonJS({
|
|
|
7144
7180
|
}
|
|
7145
7181
|
});
|
|
7146
7182
|
module2.exports = __toCommonJS2(doesRootSchemeMatchSystem_native_exports);
|
|
7147
|
-
var import_react_native4 =
|
|
7183
|
+
var import_react_native4 = require_fake_react_native(), import_useThemeState = require_useThemeState_native();
|
|
7148
7184
|
function doesRootSchemeMatchSystem() {
|
|
7149
7185
|
var _getRootThemeState;
|
|
7150
7186
|
return ((_getRootThemeState = (0, import_useThemeState.getRootThemeState)()) === null || _getRootThemeState === void 0 ? void 0 : _getRootThemeState.scheme) === import_react_native4.Appearance.getColorScheme();
|
|
@@ -8442,10 +8478,10 @@ var require_createComponent_native = __commonJS({
|
|
|
8442
8478
|
return props.children;
|
|
8443
8479
|
}
|
|
8444
8480
|
Unspaced2.isUnspaced = !0;
|
|
8445
|
-
var getSpacerSize = function(
|
|
8481
|
+
var getSpacerSize = function(size2, param) {
|
|
8446
8482
|
var { tokens } = param;
|
|
8447
|
-
|
|
8448
|
-
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[
|
|
8483
|
+
size2 = size2 === !0 ? "$true" : size2;
|
|
8484
|
+
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[size2]) !== null && _tokens_space_size !== void 0 ? _tokens_space_size : size2;
|
|
8449
8485
|
return {
|
|
8450
8486
|
width: sizePx,
|
|
8451
8487
|
height: sizePx,
|
|
@@ -11405,7 +11441,7 @@ var require_mediaQueryList_native = __commonJS({
|
|
|
11405
11441
|
}
|
|
11406
11442
|
});
|
|
11407
11443
|
module2.exports = __toCommonJS2(mediaQueryList_exports);
|
|
11408
|
-
var import_react_native4 =
|
|
11444
|
+
var import_react_native4 = require_fake_react_native(), import_matchQuery = require_matchQuery_native();
|
|
11409
11445
|
function _class_call_check(instance, Constructor) {
|
|
11410
11446
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
11411
11447
|
}
|
|
@@ -11815,7 +11851,7 @@ var require_createResponderEvent_native = __commonJS({
|
|
|
11815
11851
|
}
|
|
11816
11852
|
});
|
|
11817
11853
|
module2.exports = __toCommonJS2(createResponderEvent_exports);
|
|
11818
|
-
var
|
|
11854
|
+
var import_utils = require_utils_native(), emptyFunction = function() {
|
|
11819
11855
|
}, emptyObject = {}, emptyArray = [];
|
|
11820
11856
|
function normalizeIdentifier(identifier) {
|
|
11821
11857
|
return identifier > 20 ? identifier % 20 : identifier;
|
|
@@ -11906,10 +11942,10 @@ var require_createResponderEvent_native = __commonJS({
|
|
|
11906
11942
|
touchHistory: responderTouchHistoryStore.touchHistory
|
|
11907
11943
|
};
|
|
11908
11944
|
function locationX(x) {
|
|
11909
|
-
if (rect = rect || (0,
|
|
11945
|
+
if (rect = rect || (0, import_utils.getBoundingClientRect)(responderEvent.currentTarget), rect) return x - rect.left;
|
|
11910
11946
|
}
|
|
11911
11947
|
function locationY(y) {
|
|
11912
|
-
if (rect = rect || (0,
|
|
11948
|
+
if (rect = rect || (0, import_utils.getBoundingClientRect)(responderEvent.currentTarget), rect) return y - rect.top;
|
|
11913
11949
|
}
|
|
11914
11950
|
return responderEvent;
|
|
11915
11951
|
}
|
|
@@ -12272,7 +12308,7 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12272
12308
|
}
|
|
12273
12309
|
});
|
|
12274
12310
|
module2.exports = __toCommonJS2(ResponderSystem_exports);
|
|
12275
|
-
var import_createResponderEvent = __toESM2(require_createResponderEvent_native()), import_ResponderTouchHistoryStore = require_ResponderTouchHistoryStore_native(), import_types = require_types_native3(),
|
|
12311
|
+
var import_createResponderEvent = __toESM2(require_createResponderEvent_native()), import_ResponderTouchHistoryStore = require_ResponderTouchHistoryStore_native(), import_types = require_types_native3(), import_utils = require_utils_native(), import_utils2 = require_utils_native(), emptyObject = {}, startRegistration = [
|
|
12276
12312
|
"onStartShouldSetResponderCapture",
|
|
12277
12313
|
"onStartShouldSetResponder",
|
|
12278
12314
|
{
|
|
@@ -12321,13 +12357,13 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12321
12357
|
trackedTouchCount === 0 && (isEmulatingMouseEvents = !1);
|
|
12322
12358
|
return;
|
|
12323
12359
|
}
|
|
12324
|
-
var isStartEvent = (0, import_types.isStartish)(eventType) && (0,
|
|
12360
|
+
var isStartEvent = (0, import_types.isStartish)(eventType) && (0, import_utils2.isPrimaryPointerDown)(domEvent), isMoveEvent = (0, import_types.isMoveish)(eventType), isEndEvent = (0, import_types.isEndish)(eventType), isScrollEvent = (0, import_types.isScroll)(eventType), isSelectionChangeEvent = (0, import_types.isSelectionChange)(eventType), responderEvent = (0, import_createResponderEvent.default)(domEvent, responderTouchHistoryStore);
|
|
12325
12361
|
(isStartEvent || isMoveEvent || isEndEvent) && (domEvent.touches ? trackedTouchCount = domEvent.touches.length : isStartEvent ? trackedTouchCount = 1 : isEndEvent && (trackedTouchCount = 0), responderTouchHistoryStore.recordTouchTrack(eventType, responderEvent.nativeEvent));
|
|
12326
|
-
var eventPaths = (0,
|
|
12362
|
+
var eventPaths = (0, import_utils2.getResponderPaths)(domEvent), wasNegotiated = !1, wantsResponder;
|
|
12327
12363
|
if (isStartEvent || isMoveEvent || isScrollEvent && trackedTouchCount > 0) {
|
|
12328
12364
|
var currentResponderIdPath = currentResponder.idPath, eventIdPath = eventPaths.idPath;
|
|
12329
12365
|
if (currentResponderIdPath != null && eventIdPath != null) {
|
|
12330
|
-
var lowestCommonAncestor = (0,
|
|
12366
|
+
var lowestCommonAncestor = (0, import_utils2.getLowestCommonAncestor)(currentResponderIdPath, eventIdPath);
|
|
12331
12367
|
if (lowestCommonAncestor != null) {
|
|
12332
12368
|
var indexOfLowestCommonAncestor = eventIdPath.indexOf(lowestCommonAncestor), index = indexOfLowestCommonAncestor + (lowestCommonAncestor === currentResponder.id ? 1 : 0);
|
|
12333
12369
|
eventPaths = {
|
|
@@ -12349,7 +12385,7 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12349
12385
|
eventType === "blur" && eventTarget.contains(node) && domEvent.relatedTarget !== node || // native scroll without using a pointer
|
|
12350
12386
|
isScrollEvent && trackedTouchCount === 0 || // native scroll on node that is parent of the responder (allow siblings to scroll)
|
|
12351
12387
|
isScrollEvent && eventTarget.contains(node) && eventTarget !== node || // native select/selectionchange on node
|
|
12352
|
-
isSelectionChangeEvent && (0,
|
|
12388
|
+
isSelectionChangeEvent && (0, import_utils2.hasValidSelection)(domEvent), isReleaseEvent = isEndEvent && !isTerminateEvent && !(0, import_utils2.hasTargetTouches)(node, domEvent.touches);
|
|
12353
12389
|
if (isEndEvent && onResponderEnd != null && (responderEvent.dispatchConfig.registrationName = "onResponderEnd", onResponderEnd(responderEvent)), isReleaseEvent && (onResponderRelease != null && (responderEvent.dispatchConfig.registrationName = "onResponderRelease", onResponderRelease(responderEvent)), changeCurrentResponder(emptyResponder)), isTerminateEvent) {
|
|
12354
12390
|
var shouldTerminate = !0;
|
|
12355
12391
|
(eventType === "contextmenu" || eventType === "scroll" || eventType === "selectionchange") && (wasNegotiated ? shouldTerminate = !1 : onResponderTerminationRequest != null && (responderEvent.dispatchConfig.registrationName = "onResponderTerminationRequest", onResponderTerminationRequest(responderEvent) === !1 && (shouldTerminate = !1))), shouldTerminate && (onResponderTerminate != null && (responderEvent.dispatchConfig.registrationName = "onResponderTerminate", onResponderTerminate(responderEvent)), changeCurrentResponder(emptyResponder), isEmulatingMouseEvents = !1, trackedTouchCount = 0);
|
|
@@ -12415,14 +12451,14 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12415
12451
|
"selectionchange"
|
|
12416
12452
|
], isTamaguiResponderActive = Symbol();
|
|
12417
12453
|
function attachListeners() {
|
|
12418
|
-
|
|
12454
|
+
import_utils.canUseDOM && !window[isTamaguiResponderActive] && (window.addEventListener("blur", eventListener), documentEventsBubblePhase.forEach(function(eventType) {
|
|
12419
12455
|
document.addEventListener(eventType, eventListener);
|
|
12420
12456
|
}), documentEventsCapturePhase.forEach(function(eventType) {
|
|
12421
12457
|
document.addEventListener(eventType, eventListener, !0);
|
|
12422
12458
|
}), window[isTamaguiResponderActive] = !0);
|
|
12423
12459
|
}
|
|
12424
12460
|
function addNode(id, node, config) {
|
|
12425
|
-
(0,
|
|
12461
|
+
(0, import_utils2.setResponderId)(node, id), responderListenersMap.set(id, config);
|
|
12426
12462
|
}
|
|
12427
12463
|
function removeNode(id) {
|
|
12428
12464
|
currentResponder.id === id && terminateResponder(), responderListenersMap.has(id) && responderListenersMap.delete(id);
|
|
@@ -12944,7 +12980,7 @@ var require_getBaseViews_native = __commonJS({
|
|
|
12944
12980
|
});
|
|
12945
12981
|
module2.exports = __toCommonJS2(getBaseViews_native_exports);
|
|
12946
12982
|
function getBaseViews() {
|
|
12947
|
-
var native =
|
|
12983
|
+
var native = require_fake_react_native(), View2, TextAncestor;
|
|
12948
12984
|
if (0)
|
|
12949
12985
|
var TextAncestorModule, _TextAncestorModule_default;
|
|
12950
12986
|
return View2 || (View2 = native.View || native.default.View), {
|
|
@@ -13290,42 +13326,6 @@ var require_useElementLayout_native = __commonJS({
|
|
|
13290
13326
|
}
|
|
13291
13327
|
});
|
|
13292
13328
|
|
|
13293
|
-
// ../../packages/fake-react-native/index.js
|
|
13294
|
-
var require_fake_react_native = __commonJS({
|
|
13295
|
-
"../../packages/fake-react-native/index.js"(exports2, module2) {
|
|
13296
|
-
module2.exports = proxyWorm();
|
|
13297
|
-
function proxyWorm() {
|
|
13298
|
-
return new Proxy({
|
|
13299
|
-
StyleSheet: {
|
|
13300
|
-
create() {
|
|
13301
|
-
}
|
|
13302
|
-
},
|
|
13303
|
-
Platform: {
|
|
13304
|
-
OS: "web"
|
|
13305
|
-
},
|
|
13306
|
-
Image: "Image",
|
|
13307
|
-
View: "View",
|
|
13308
|
-
Text: "Text",
|
|
13309
|
-
TextInput: "TextInput",
|
|
13310
|
-
ScrollView: "ScrollView",
|
|
13311
|
-
Dimensions: {
|
|
13312
|
-
addEventListener(cb) {
|
|
13313
|
-
}
|
|
13314
|
-
},
|
|
13315
|
-
addPoolingTo() {
|
|
13316
|
-
}
|
|
13317
|
-
}, {
|
|
13318
|
-
get(target, key) {
|
|
13319
|
-
return Reflect.get(target, key) || proxyWorm();
|
|
13320
|
-
},
|
|
13321
|
-
apply() {
|
|
13322
|
-
return proxyWorm();
|
|
13323
|
-
}
|
|
13324
|
-
});
|
|
13325
|
-
}
|
|
13326
|
-
}
|
|
13327
|
-
});
|
|
13328
|
-
|
|
13329
13329
|
// ../../packages/fake-react-native/idFn.js
|
|
13330
13330
|
var idFn_exports = {};
|
|
13331
13331
|
__export(idFn_exports, {
|
|
@@ -13763,9 +13763,9 @@ var require_getElevation_native = __commonJS({
|
|
|
13763
13763
|
}
|
|
13764
13764
|
});
|
|
13765
13765
|
module2.exports = __toCommonJS2(getElevation_exports);
|
|
13766
|
-
var import_core12 = require_index_native18(), getElevation = function(
|
|
13767
|
-
if (
|
|
13768
|
-
var { tokens } = extras, token = tokens.size[
|
|
13766
|
+
var import_core12 = require_index_native18(), getElevation = function(size2, extras) {
|
|
13767
|
+
if (size2) {
|
|
13768
|
+
var { tokens } = extras, token = tokens.size[size2], sizeNum = (0, import_core12.isVariable)(token) ? +token.val : size2;
|
|
13769
13769
|
return getSizedElevation(sizeNum, extras);
|
|
13770
13770
|
}
|
|
13771
13771
|
}, getSizedElevation = function(val, param) {
|
|
@@ -13949,8 +13949,8 @@ var require_index_native20 = __commonJS({
|
|
|
13949
13949
|
bounds: [
|
|
13950
13950
|
0
|
|
13951
13951
|
]
|
|
13952
|
-
}, getSize = function(
|
|
13953
|
-
return getTokenRelative("size",
|
|
13952
|
+
}, getSize = function(size2, options) {
|
|
13953
|
+
return getTokenRelative("size", size2, options);
|
|
13954
13954
|
}, getSpace2 = function(space, options) {
|
|
13955
13955
|
return getTokenRelative("space", space, options);
|
|
13956
13956
|
}, getRadius = function(radius, options) {
|
|
@@ -13998,9 +13998,9 @@ var require_index_native20 = __commonJS({
|
|
|
13998
13998
|
}
|
|
13999
13999
|
}
|
|
14000
14000
|
}
|
|
14001
|
-
var isString = typeof current == "string", cache = options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables, tokensOrdered = cache[type], _options_bounds_,
|
|
14002
|
-
|
|
14003
|
-
var index = Math.min(
|
|
14001
|
+
var isString = typeof current == "string", cache = options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables, tokensOrdered = cache[type], _options_bounds_, min = (_options_bounds_ = (_options_bounds = options.bounds) === null || _options_bounds === void 0 ? void 0 : _options_bounds[0]) !== null && _options_bounds_ !== void 0 ? _options_bounds_ : 0, _options_bounds_1, max = (_options_bounds_1 = (_options_bounds1 = options.bounds) === null || _options_bounds1 === void 0 ? void 0 : _options_bounds1[1]) !== null && _options_bounds_1 !== void 0 ? _options_bounds_1 : tokensOrdered.length - 1, currentIndex = tokensOrdered.indexOf(current), shift2 = options.shift || 0;
|
|
14002
|
+
shift2 && (current === "$true" || (0, import_web.isVariable)(current) && current.name === "true") && (shift2 += shift2 > 0 ? 1 : -1);
|
|
14003
|
+
var index = Math.min(max, Math.max(min, currentIndex + shift2)), found = tokensOrdered[index], result = (typeof found == "string" ? tokens[found] : found) || tokens.$true;
|
|
14004
14004
|
return result;
|
|
14005
14005
|
}, getTokenRelative = stepTokenUpOrDown;
|
|
14006
14006
|
}
|
|
@@ -14179,15 +14179,15 @@ var require_variants_native = __commonJS({
|
|
|
14179
14179
|
true: function(_, param) {
|
|
14180
14180
|
var { props, tokens } = param;
|
|
14181
14181
|
if (!("size" in props)) return circularStyle;
|
|
14182
|
-
var
|
|
14182
|
+
var size2 = typeof props.size == "number" ? props.size : tokens.size[props.size];
|
|
14183
14183
|
return {
|
|
14184
14184
|
...circularStyle,
|
|
14185
|
-
width:
|
|
14186
|
-
height:
|
|
14187
|
-
maxWidth:
|
|
14188
|
-
maxHeight:
|
|
14189
|
-
minWidth:
|
|
14190
|
-
minHeight:
|
|
14185
|
+
width: size2,
|
|
14186
|
+
height: size2,
|
|
14187
|
+
maxWidth: size2,
|
|
14188
|
+
maxHeight: size2,
|
|
14189
|
+
minWidth: size2,
|
|
14190
|
+
minHeight: size2
|
|
14191
14191
|
};
|
|
14192
14192
|
}
|
|
14193
14193
|
}, hoverTheme = {
|
|
@@ -14614,8 +14614,8 @@ var require_SizableText_native = __commonJS({
|
|
|
14614
14614
|
});
|
|
14615
14615
|
SizableText2.staticConfig.variants.fontFamily = {
|
|
14616
14616
|
"...": function(_val, extras) {
|
|
14617
|
-
var sizeProp = extras.props.size, fontSizeProp = extras.props.fontSize,
|
|
14618
|
-
return (0, import_get_font_sized2.getFontSized)(
|
|
14617
|
+
var sizeProp = extras.props.size, fontSizeProp = extras.props.fontSize, size2 = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props.size || "$true";
|
|
14618
|
+
return (0, import_get_font_sized2.getFontSized)(size2, extras);
|
|
14619
14619
|
}
|
|
14620
14620
|
};
|
|
14621
14621
|
}
|
|
@@ -14882,14 +14882,14 @@ var require_wrapChildrenInText_native = __commonJS({
|
|
|
14882
14882
|
module2.exports = __toCommonJS2(wrapChildrenInText_exports);
|
|
14883
14883
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react"));
|
|
14884
14884
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
14885
|
-
var { children, textProps, size:
|
|
14885
|
+
var { children, textProps, size: size2, noTextWrap, color, fontFamily, fontSize, fontWeight, letterSpacing, textAlign, fontStyle, maxFontSizeMultiplier } = propsIn;
|
|
14886
14886
|
if (noTextWrap || !children) return [
|
|
14887
14887
|
children
|
|
14888
14888
|
];
|
|
14889
14889
|
var props = {
|
|
14890
14890
|
...extraProps
|
|
14891
14891
|
};
|
|
14892
|
-
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),
|
|
14892
|
+
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), size2 && (props.size = size2), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react3.default.Children.toArray(children).map(function(child, index) {
|
|
14893
14893
|
return typeof child == "string" ? (
|
|
14894
14894
|
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
14895
14895
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextComponent, {
|
|
@@ -16177,15 +16177,15 @@ var require_Portal_native = __commonJS({
|
|
|
16177
16177
|
}
|
|
16178
16178
|
});
|
|
16179
16179
|
module2.exports = __toCommonJS2(Portal_native_exports);
|
|
16180
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_stacks3 = require_index_native22(), import_z_index_stack2 = require_index_native27(), React4 = __toESM2(require("react")), import_react_native4 =
|
|
16180
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_stacks3 = require_index_native22(), import_z_index_stack2 = require_index_native27(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_constants4 = require_constants_native3(), import_GorhomPortalItem = require_GorhomPortalItem_native(), import_helpers = require_helpers_native(), createPortal = function() {
|
|
16181
16181
|
if (import_constants4.IS_FABRIC) try {
|
|
16182
|
-
var _ReactFabricShimModule_default, ReactFabricShimModule =
|
|
16182
|
+
var _ReactFabricShimModule_default, ReactFabricShimModule = require_fake_react_native(), _ReactFabricShimModule_default_createPortal;
|
|
16183
16183
|
return (_ReactFabricShimModule_default_createPortal = ReactFabricShimModule == null || (_ReactFabricShimModule_default = ReactFabricShimModule.default) === null || _ReactFabricShimModule_default === void 0 ? void 0 : _ReactFabricShimModule_default.createPortal) !== null && _ReactFabricShimModule_default_createPortal !== void 0 ? _ReactFabricShimModule_default_createPortal : ReactFabricShimModule.createPortal;
|
|
16184
16184
|
} catch (err) {
|
|
16185
16185
|
return console.info("Note: error importing portal, defaulting to non-native portals", err), null;
|
|
16186
16186
|
}
|
|
16187
16187
|
try {
|
|
16188
|
-
var _ReactNativeShimModule_default, ReactNativeShimModule =
|
|
16188
|
+
var _ReactNativeShimModule_default, ReactNativeShimModule = require_fake_react_native(), _ReactNativeShimModule_default_createPortal;
|
|
16189
16189
|
return (_ReactNativeShimModule_default_createPortal = ReactNativeShimModule == null || (_ReactNativeShimModule_default = ReactNativeShimModule.default) === null || _ReactNativeShimModule_default === void 0 ? void 0 : _ReactNativeShimModule_default.createPortal) !== null && _ReactNativeShimModule_default_createPortal !== void 0 ? _ReactNativeShimModule_default_createPortal : ReactNativeShimModule.createPortal;
|
|
16190
16190
|
} catch (err) {
|
|
16191
16191
|
return console.info("Note: error importing portal, defaulting to non-native portals", err), null;
|
|
@@ -16985,6 +16985,101 @@ var require_FocusScope_native = __commonJS({
|
|
|
16985
16985
|
}
|
|
16986
16986
|
});
|
|
16987
16987
|
|
|
16988
|
+
// ../focus-scope/dist/cjs/FocusScopeController.native.js
|
|
16989
|
+
var require_FocusScopeController_native = __commonJS({
|
|
16990
|
+
"../focus-scope/dist/cjs/FocusScopeController.native.js"(exports2, module2) {
|
|
16991
|
+
"use strict";
|
|
16992
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
16993
|
+
for (var name in all) __defProp2(target, name, {
|
|
16994
|
+
get: all[name],
|
|
16995
|
+
enumerable: !0
|
|
16996
|
+
});
|
|
16997
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
16998
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
16999
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
17000
|
+
for (var _loop = function() {
|
|
17001
|
+
var key = _step.value;
|
|
17002
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
17003
|
+
get: function() {
|
|
17004
|
+
return from[key];
|
|
17005
|
+
},
|
|
17006
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
17007
|
+
});
|
|
17008
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
17009
|
+
} catch (err) {
|
|
17010
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
17011
|
+
} finally {
|
|
17012
|
+
try {
|
|
17013
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
17014
|
+
} finally {
|
|
17015
|
+
if (_didIteratorError)
|
|
17016
|
+
throw _iteratorError;
|
|
17017
|
+
}
|
|
17018
|
+
}
|
|
17019
|
+
return to;
|
|
17020
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
17021
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
17022
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17023
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
17024
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
17025
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17026
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
17027
|
+
value: mod,
|
|
17028
|
+
enumerable: !0
|
|
17029
|
+
}) : target,
|
|
17030
|
+
mod
|
|
17031
|
+
);
|
|
17032
|
+
}, __toCommonJS2 = function(mod) {
|
|
17033
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
17034
|
+
value: !0
|
|
17035
|
+
}), mod);
|
|
17036
|
+
}, FocusScopeController_exports = {};
|
|
17037
|
+
__export2(FocusScopeController_exports, {
|
|
17038
|
+
FocusScopeController: function() {
|
|
17039
|
+
return FocusScopeControllerComponent;
|
|
17040
|
+
},
|
|
17041
|
+
FocusScopeControllerProvider: function() {
|
|
17042
|
+
return FocusScopeControllerProvider;
|
|
17043
|
+
},
|
|
17044
|
+
createFocusScopeControllerScope: function() {
|
|
17045
|
+
return createFocusScopeControllerScope;
|
|
17046
|
+
},
|
|
17047
|
+
useFocusScopeControllerContext: function() {
|
|
17048
|
+
return useFocusScopeControllerContext;
|
|
17049
|
+
}
|
|
17050
|
+
});
|
|
17051
|
+
module2.exports = __toCommonJS2(FocusScopeController_exports);
|
|
17052
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_create_context = require_index_native30(), import_use_event = require_index_native8(), React4 = __toESM2(require("react")), FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController", [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME), [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
|
|
17053
|
+
function FocusScopeController(props) {
|
|
17054
|
+
var { __scopeFocusScope, children, enabled, loop, trapped, onMountAutoFocus, onUnmountAutoFocus, forceUnmount, focusOnIdle } = props, stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus), stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus), contextValue = React4.useMemo(function() {
|
|
17055
|
+
return {
|
|
17056
|
+
enabled,
|
|
17057
|
+
loop,
|
|
17058
|
+
trapped,
|
|
17059
|
+
onMountAutoFocus: stableOnMountAutoFocus,
|
|
17060
|
+
onUnmountAutoFocus: stableOnUnmountAutoFocus,
|
|
17061
|
+
forceUnmount,
|
|
17062
|
+
focusOnIdle
|
|
17063
|
+
};
|
|
17064
|
+
}, [
|
|
17065
|
+
enabled,
|
|
17066
|
+
loop,
|
|
17067
|
+
trapped,
|
|
17068
|
+
stableOnMountAutoFocus,
|
|
17069
|
+
stableOnUnmountAutoFocus,
|
|
17070
|
+
forceUnmount,
|
|
17071
|
+
focusOnIdle
|
|
17072
|
+
]);
|
|
17073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FocusScopeControllerProvider, {
|
|
17074
|
+
scope: __scopeFocusScope,
|
|
17075
|
+
...contextValue,
|
|
17076
|
+
children
|
|
17077
|
+
});
|
|
17078
|
+
}
|
|
17079
|
+
var FocusScopeControllerComponent = FocusScopeController;
|
|
17080
|
+
}
|
|
17081
|
+
});
|
|
17082
|
+
|
|
16988
17083
|
// ../focus-scope/dist/cjs/index.native.js
|
|
16989
17084
|
var require_index_native33 = __commonJS({
|
|
16990
17085
|
"../focus-scope/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -17021,6 +17116,7 @@ var require_index_native33 = __commonJS({
|
|
|
17021
17116
|
}, index_exports2 = {};
|
|
17022
17117
|
module2.exports = __toCommonJS2(index_exports2);
|
|
17023
17118
|
__reExport2(index_exports2, require_FocusScope_native(), module2.exports);
|
|
17119
|
+
__reExport2(index_exports2, require_FocusScopeController_native(), module2.exports);
|
|
17024
17120
|
}
|
|
17025
17121
|
});
|
|
17026
17122
|
|
|
@@ -17543,7 +17639,7 @@ var require_nativeSheet_native = __commonJS({
|
|
|
17543
17639
|
}
|
|
17544
17640
|
});
|
|
17545
17641
|
module2.exports = __toCommonJS2(nativeSheet_exports);
|
|
17546
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_stacks3 = require_index_native22(), import_react3 = require("react"), import_react_native4 =
|
|
17642
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_stacks3 = require_index_native22(), import_react3 = require("react"), import_react_native4 = require_fake_react_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), nativeSheets = {
|
|
17547
17643
|
ios: null
|
|
17548
17644
|
};
|
|
17549
17645
|
function getNativeSheet(platform2) {
|
|
@@ -17780,7 +17876,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17780
17876
|
}
|
|
17781
17877
|
});
|
|
17782
17878
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
17783
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), import_react_native4 =
|
|
17879
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_contexts = require_contexts_native(), import_helpers = require_helpers_native2(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), hiddenSize = 10000.1, sheetHiddenStyleSheet = null, relativeDimensionTo = import_constants4.isWeb ? "window" : "screen", SheetImplementationCustom = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
17784
17880
|
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, state = (0, import_useSheetOpenState.useSheetOpenState)(props), [overlayComponent, setOverlayComponent] = import_react3.default.useState(null), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state, {
|
|
17785
17881
|
onOverlayComponent: setOverlayComponent
|
|
17786
17882
|
}), { 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, providerProps.contentRef), { animationDriver } = (0, import_core12.useConfiguration)(), animationConfig = function() {
|
|
@@ -18126,7 +18222,7 @@ var require_ScrollView_native = __commonJS({
|
|
|
18126
18222
|
}
|
|
18127
18223
|
});
|
|
18128
18224
|
module2.exports = __toCommonJS2(ScrollView_exports);
|
|
18129
|
-
var import_stacks3 = require_index_native22(), import_web = require_index_native14(), import_react_native4 =
|
|
18225
|
+
var import_stacks3 = require_index_native22(), import_web = require_index_native14(), import_react_native4 = require_fake_react_native(), ScrollView = (0, import_web.styled)(import_react_native4.ScrollView, {
|
|
18130
18226
|
name: "ScrollView",
|
|
18131
18227
|
scrollEnabled: !0,
|
|
18132
18228
|
variants: {
|
|
@@ -18434,7 +18530,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18434
18530
|
}
|
|
18435
18531
|
});
|
|
18436
18532
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
18437
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_use_did_finish_ssr = require_index_native13(), import_z_index_stack2 = require_index_native27(), import_react3 = require("react"), import_react_native4 =
|
|
18533
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_use_did_finish_ssr = require_index_native13(), import_z_index_stack2 = require_index_native27(), import_react3 = require("react"), import_react_native4 = require_fake_react_native(), import_constants22 = require_constants_native4(), import_nativeSheet = require_nativeSheet_native(), import_SheetContext = require_SheetContext_native(), import_SheetImplementationCustom = require_SheetImplementationCustom_native(), import_SheetScrollView = require_SheetScrollView_native(), import_useSheetController = require_useSheetController_native(), import_useSheetOffscreenSize = require_useSheetOffscreenSize_native();
|
|
18438
18534
|
function createSheet(param) {
|
|
18439
18535
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
18440
18536
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -18443,7 +18539,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18443
18539
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Handle, {
|
|
18444
18540
|
ref: composedRef,
|
|
18445
18541
|
onPress: function() {
|
|
18446
|
-
var
|
|
18542
|
+
var max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0), nextPos = (context.position + 1) % max;
|
|
18447
18543
|
context.setPosition(nextPos);
|
|
18448
18544
|
},
|
|
18449
18545
|
open: context.open,
|
|
@@ -19376,6 +19472,7 @@ var require_Dialog_native = __commonJS({
|
|
|
19376
19472
|
Description: DialogDescription,
|
|
19377
19473
|
Close: DialogClose,
|
|
19378
19474
|
Sheet: import_sheet.Sheet.Controlled,
|
|
19475
|
+
FocusScope: import_focus_scope.FocusScopeController,
|
|
19379
19476
|
Adapt: import_adapt.Adapt
|
|
19380
19477
|
}), getAdaptName = function(param) {
|
|
19381
19478
|
var { scopeKey, contentId } = param;
|
|
@@ -19518,7 +19615,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
19518
19615
|
}
|
|
19519
19616
|
});
|
|
19520
19617
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
19521
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_dialog = require_index_native37(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 =
|
|
19618
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_dialog = require_index_native37(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = (0, import_create_context.createContextScope)(ROOT_NAME, [
|
|
19522
19619
|
import_dialog.createDialogScope
|
|
19523
19620
|
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
19524
19621
|
name: TRIGGER_NAME
|
|
@@ -19822,7 +19919,7 @@ var require_Image_native = __commonJS({
|
|
|
19822
19919
|
}
|
|
19823
19920
|
});
|
|
19824
19921
|
module2.exports = __toCommonJS2(Image_exports);
|
|
19825
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_react_native4 =
|
|
19922
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_react_native4 = require_fake_react_native(), StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
|
|
19826
19923
|
name: "Image"
|
|
19827
19924
|
}), Image = StyledImage.styleable(function(inProps, ref) {
|
|
19828
19925
|
var [props, style] = (0, import_core12.usePropsAndStyle)(inProps), { src, source, objectFit, ...rest } = props, finalSource = typeof src == "string" ? {
|
|
@@ -19940,8 +20037,8 @@ var require_getShapeSize_native = __commonJS({
|
|
|
19940
20037
|
}
|
|
19941
20038
|
});
|
|
19942
20039
|
module2.exports = __toCommonJS2(getShapeSize_exports);
|
|
19943
|
-
var getShapeSize = function(
|
|
19944
|
-
var { tokens } = param, _tokens_size_size, width = (_tokens_size_size = tokens.size[
|
|
20040
|
+
var getShapeSize = function(size2, param) {
|
|
20041
|
+
var { tokens } = param, _tokens_size_size, width = (_tokens_size_size = tokens.size[size2]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size2, _tokens_size_size1, height = (_tokens_size_size1 = tokens.size[size2]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size2;
|
|
19945
20042
|
return {
|
|
19946
20043
|
width,
|
|
19947
20044
|
height,
|
|
@@ -20245,14 +20342,14 @@ var require_Avatar_native = __commonJS({
|
|
|
20245
20342
|
position: "relative",
|
|
20246
20343
|
overflow: "hidden"
|
|
20247
20344
|
}), Avatar = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20248
|
-
var { __scopeAvatar, size:
|
|
20345
|
+
var { __scopeAvatar, size: size2 = "$true", ...avatarProps } = props, [imageLoadingStatus, setImageLoadingStatus] = React4.useState("idle");
|
|
20249
20346
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarProvider, {
|
|
20250
|
-
size:
|
|
20347
|
+
size: size2,
|
|
20251
20348
|
scope: __scopeAvatar,
|
|
20252
20349
|
imageLoadingStatus,
|
|
20253
20350
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
20254
20351
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarFrame, {
|
|
20255
|
-
size:
|
|
20352
|
+
size: size2,
|
|
20256
20353
|
...avatarProps,
|
|
20257
20354
|
ref: forwardedRef
|
|
20258
20355
|
})
|
|
@@ -20364,10 +20461,10 @@ var require_getFontSize_native = __commonJS({
|
|
|
20364
20461
|
}, getFontSizeToken = function(inSize, opts) {
|
|
20365
20462
|
if (typeof inSize == "number") return null;
|
|
20366
20463
|
var relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, conf = (0, import_core12.getConfig)(), font = conf.fontsParsed[(opts == null ? void 0 : opts.font) || conf.defaultFontToken], fontSize = (font == null ? void 0 : font.size) || // fallback to size tokens
|
|
20367
|
-
conf.tokensParsed.size, _ref,
|
|
20368
|
-
foundIndex === -1 &&
|
|
20464
|
+
conf.tokensParsed.size, _ref, size2 = (_ref = inSize === "$true" && !("$true" in fontSize) ? "$4" : inSize) !== null && _ref !== void 0 ? _ref : "$true" in fontSize ? "$true" : "$4", sizeTokens = Object.keys(fontSize), foundIndex = sizeTokens.indexOf(size2);
|
|
20465
|
+
foundIndex === -1 && size2.endsWith(".5") && (foundIndex = sizeTokens.indexOf(size2.replace(".5", "")));
|
|
20369
20466
|
var tokenIndex = Math.min(Math.max(0, foundIndex + relativeSize), sizeTokens.length - 1), _sizeTokens_tokenIndex;
|
|
20370
|
-
return (_sizeTokens_tokenIndex = sizeTokens[tokenIndex]) !== null && _sizeTokens_tokenIndex !== void 0 ? _sizeTokens_tokenIndex :
|
|
20467
|
+
return (_sizeTokens_tokenIndex = sizeTokens[tokenIndex]) !== null && _sizeTokens_tokenIndex !== void 0 ? _sizeTokens_tokenIndex : size2;
|
|
20371
20468
|
};
|
|
20372
20469
|
}
|
|
20373
20470
|
});
|
|
@@ -20774,7 +20871,7 @@ var require_Button_native = __commonJS({
|
|
|
20774
20871
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
20775
20872
|
}
|
|
20776
20873
|
}), ButtonIcon = function(props) {
|
|
20777
|
-
var { children, scaleIcon = 1 } = props, { size:
|
|
20874
|
+
var { children, scaleIcon = 1 } = props, { size: size2, color } = (0, import_react3.useContext)(ButtonContext), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
20778
20875
|
size: iconSize,
|
|
20779
20876
|
color
|
|
20780
20877
|
});
|
|
@@ -20796,7 +20893,7 @@ var require_Button_native = __commonJS({
|
|
|
20796
20893
|
}, isNested = (0, import_react3.useContext)(import_stacks3.ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn, {
|
|
20797
20894
|
noNormalize: !0,
|
|
20798
20895
|
noExpand: !0
|
|
20799
|
-
}), { icon, iconAfter, space, spaceFlex, scaleIcon = 1, scaleSpace = 0.66, separator, noTextWrap, fontFamily, fontSize, fontWeight, fontStyle, letterSpacing, tag, ellipse, maxFontSizeMultiplier, ...restProps } = propsActive,
|
|
20896
|
+
}), { icon, iconAfter, space, spaceFlex, scaleIcon = 1, scaleSpace = 0.66, separator, noTextWrap, fontFamily, fontSize, fontWeight, fontStyle, letterSpacing, tag, ellipse, maxFontSizeMultiplier, ...restProps } = propsActive, size2 = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), color = propsActive.color, iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2, {
|
|
20800
20897
|
font: (fontFamily == null ? void 0 : fontFamily[0]) === "$" ? fontFamily : void 0
|
|
20801
20898
|
})) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
20802
20899
|
size: iconSize,
|
|
@@ -20818,7 +20915,7 @@ var require_Button_native = __commonJS({
|
|
|
20818
20915
|
maxFontSizeMultiplier
|
|
20819
20916
|
}, Text3 === ButtonText && propsActive.unstyled !== !0 ? {
|
|
20820
20917
|
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
20821
|
-
size:
|
|
20918
|
+
size: size2
|
|
20822
20919
|
} : void 0), inner = (0, import_web.spacedChildren)({
|
|
20823
20920
|
// a bit arbitrary but scaling to font size is necessary so long as button does
|
|
20824
20921
|
space: spaceSize === !1 ? 0 : spaceSize == !0 ? "$true" : spaceSize,
|
|
@@ -20834,7 +20931,7 @@ var require_Button_native = __commonJS({
|
|
|
20834
20931
|
themedIconAfter
|
|
20835
20932
|
]
|
|
20836
20933
|
}), props = {
|
|
20837
|
-
size:
|
|
20934
|
+
size: size2,
|
|
20838
20935
|
...propsIn.disabled && {
|
|
20839
20936
|
// in rnw - false still has keyboard tabIndex, undefined = not actually focusable
|
|
20840
20937
|
focusable: void 0,
|
|
@@ -21872,7 +21969,7 @@ var require_BubbleInput_native = __commonJS({
|
|
|
21872
21969
|
}
|
|
21873
21970
|
});
|
|
21874
21971
|
module2.exports = __toCommonJS2(BubbleInput_exports);
|
|
21875
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_previous = require_index_native48(), React4 = __toESM2(require("react")),
|
|
21972
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_previous = require_index_native48(), React4 = __toESM2(require("react")), import_utils = require_utils_native2(), BubbleInput = function(props) {
|
|
21876
21973
|
var { checked, bubbles = !0, control, isHidden, ...inputProps } = props, ref = React4.useRef(null), prevChecked = (0, import_use_previous.usePrevious)(checked);
|
|
21877
21974
|
return React4.useEffect(function() {
|
|
21878
21975
|
var input = ref.current, inputProto = window.HTMLInputElement.prototype, descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"), setChecked = descriptor.set;
|
|
@@ -21880,7 +21977,7 @@ var require_BubbleInput_native = __commonJS({
|
|
|
21880
21977
|
var event = new Event("click", {
|
|
21881
21978
|
bubbles
|
|
21882
21979
|
});
|
|
21883
|
-
input.indeterminate = (0,
|
|
21980
|
+
input.indeterminate = (0, import_utils.isIndeterminate)(checked), setChecked.call(input, (0, import_utils.isIndeterminate)(checked) ? !1 : checked), input.dispatchEvent(event);
|
|
21884
21981
|
}
|
|
21885
21982
|
}, [
|
|
21886
21983
|
prevChecked,
|
|
@@ -21888,7 +21985,7 @@ var require_BubbleInput_native = __commonJS({
|
|
|
21888
21985
|
bubbles
|
|
21889
21986
|
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", {
|
|
21890
21987
|
type: "checkbox",
|
|
21891
|
-
defaultChecked: (0,
|
|
21988
|
+
defaultChecked: (0, import_utils.isIndeterminate)(checked) ? !1 : checked,
|
|
21892
21989
|
...inputProps,
|
|
21893
21990
|
tabIndex: -1,
|
|
21894
21991
|
ref,
|
|
@@ -21966,7 +22063,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
21966
22063
|
}
|
|
21967
22064
|
});
|
|
21968
22065
|
module2.exports = __toCommonJS2(useCheckbox_exports);
|
|
21969
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_react3 = __toESM2(require("react")), import_BubbleInput = require_BubbleInput_native(),
|
|
22066
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_react3 = __toESM2(require("react")), import_BubbleInput = require_BubbleInput_native(), import_utils = require_utils_native2();
|
|
21970
22067
|
function useCheckbox(props, param, ref) {
|
|
21971
22068
|
var [checked, setChecked] = param, { labelledBy: ariaLabelledby, name, required, disabled, value = "on", onCheckedChange, ...checkboxProps } = props, [button, setButton] = import_react3.default.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(ref, setButton), hasConsumerStoppedPropagationRef = import_react3.default.useRef(!1), isFormControl = import_constants4.isWeb ? button ? !!button.closest("form") : !0 : !1, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId, parentKeyDown = props.onKeyDown, handleKeyDown = (0, import_react3.useMemo)(function() {
|
|
21972
22069
|
return (0, import_helpers.composeEventHandlers)(parentKeyDown, function(event) {
|
|
@@ -21977,7 +22074,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
21977
22074
|
]), handlePress = (0, import_react3.useMemo)(function() {
|
|
21978
22075
|
return (0, import_helpers.composeEventHandlers)(props.onPress, function(event) {
|
|
21979
22076
|
setChecked(function(prevChecked) {
|
|
21980
|
-
return (0,
|
|
22077
|
+
return (0, import_utils.isIndeterminate)(prevChecked) ? !0 : !prevChecked;
|
|
21981
22078
|
}), isFormControl && "isPropagationStopped" in event && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
|
|
21982
22079
|
});
|
|
21983
22080
|
}, [
|
|
@@ -21998,12 +22095,12 @@ var require_useCheckbox_native = __commonJS({
|
|
|
21998
22095
|
checkboxProps: {
|
|
21999
22096
|
role: "checkbox",
|
|
22000
22097
|
"aria-labelledby": labelledBy,
|
|
22001
|
-
"aria-checked": (0,
|
|
22098
|
+
"aria-checked": (0, import_utils.isIndeterminate)(checked) ? "mixed" : checked,
|
|
22002
22099
|
...checkboxProps,
|
|
22003
22100
|
...import_constants4.isWeb && {
|
|
22004
22101
|
type: "button",
|
|
22005
22102
|
value,
|
|
22006
|
-
"data-state": (0,
|
|
22103
|
+
"data-state": (0, import_utils.getState)(checked),
|
|
22007
22104
|
"data-disabled": disabled ? "" : void 0,
|
|
22008
22105
|
disabled,
|
|
22009
22106
|
onKeyDown: disabled ? void 0 : handleKeyDown
|
|
@@ -22123,12 +22220,12 @@ var require_createCheckbox_native = __commonJS({
|
|
|
22123
22220
|
var { disableActiveTheme, Frame = import_Checkbox.CheckboxFrame, Indicator = import_Checkbox.CheckboxIndicatorFrame } = createProps;
|
|
22124
22221
|
ensureContext(Frame), ensureContext(Indicator);
|
|
22125
22222
|
var FrameComponent = Frame.styleable(function(_props, forwardedRef) {
|
|
22126
|
-
var { scaleSize = 0.45, sizeAdjust = 0, scaleIcon, checked: checkedProp, defaultChecked, onCheckedChange, native, unstyled = !1, ...props } = _props, propsActive = (0, import_core12.useProps)(props), styledContext = import_react3.default.useContext(import_CheckboxStyledContext.CheckboxStyledContext), adjustedSize = 0,
|
|
22223
|
+
var { scaleSize = 0.45, sizeAdjust = 0, scaleIcon, checked: checkedProp, defaultChecked, onCheckedChange, native, unstyled = !1, ...props } = _props, propsActive = (0, import_core12.useProps)(props), styledContext = import_react3.default.useContext(import_CheckboxStyledContext.CheckboxStyledContext), adjustedSize = 0, size2 = 0;
|
|
22127
22224
|
if (!unstyled) {
|
|
22128
22225
|
var _propsActive_size, _ref;
|
|
22129
22226
|
adjustedSize = (0, import_core12.getVariableValue)((0, import_get_token2.getSize)((_ref = (_propsActive_size = propsActive.size) !== null && _propsActive_size !== void 0 ? _propsActive_size : styledContext == null ? void 0 : styledContext.size) !== null && _ref !== void 0 ? _ref : "$true", {
|
|
22130
22227
|
shift: sizeAdjust
|
|
22131
|
-
})),
|
|
22228
|
+
})), size2 = scaleSize ? Math.round(adjustedSize * scaleSize) : adjustedSize;
|
|
22132
22229
|
}
|
|
22133
22230
|
var [checked = !1, setChecked] = (0, import_use_controllable_state.useControllableState)({
|
|
22134
22231
|
prop: checkedProp,
|
|
@@ -22187,14 +22284,14 @@ var require_createCheckbox_native = __commonJS({
|
|
|
22187
22284
|
children: [
|
|
22188
22285
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, {
|
|
22189
22286
|
...!unstyled && {
|
|
22190
|
-
width:
|
|
22191
|
-
height:
|
|
22287
|
+
width: size2,
|
|
22288
|
+
height: size2
|
|
22192
22289
|
},
|
|
22193
22290
|
tag: "button",
|
|
22194
22291
|
ref: checkboxRef,
|
|
22195
22292
|
unstyled,
|
|
22196
22293
|
...unstyled === !1 && {
|
|
22197
|
-
size:
|
|
22294
|
+
size: size2,
|
|
22198
22295
|
theme: checked ? "active" : null
|
|
22199
22296
|
},
|
|
22200
22297
|
// potential variant
|
|
@@ -22595,7 +22692,7 @@ var require_Group_native = __commonJS({
|
|
|
22595
22692
|
}
|
|
22596
22693
|
});
|
|
22597
22694
|
module2.exports = __toCommonJS2(Group_exports);
|
|
22598
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_helpers = require_index_native7(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), import_react3 = __toESM2(require("react")), import_react_native4 =
|
|
22695
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_helpers = require_index_native7(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_useIndexedChildren = require_useIndexedChildren_native(), GROUP_NAME = "Group", [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME), [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME), GroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
22599
22696
|
name: "GroupFrame",
|
|
22600
22697
|
variants: {
|
|
22601
22698
|
unstyled: {
|
|
@@ -22616,9 +22713,9 @@ var require_Group_native = __commonJS({
|
|
|
22616
22713
|
});
|
|
22617
22714
|
function createGroup(verticalDefault) {
|
|
22618
22715
|
return (0, import_helpers.withStaticProperties)(GroupFrame.styleable(function(props, ref) {
|
|
22619
|
-
var activeProps = (0, import_core12.useProps)(props), { __scopeGroup, children: childrenProp, space, size:
|
|
22716
|
+
var activeProps = (0, import_core12.useProps)(props), { __scopeGroup, children: childrenProp, space, size: size2 = "$true", spaceDirection, separator, scrollable, axis = verticalDefault ? "vertical" : "horizontal", orientation = axis, disabled: disabledProp, disablePassBorderRadius: disablePassBorderRadiusProp, borderRadius, forceUseItem, ...restProps } = activeProps, vertical = orientation === "vertical", [itemChildrenCount, setItemChildrenCount] = (0, import_use_controllable_state.useControllableState)({
|
|
22620
22717
|
defaultProp: forceUseItem ? 1 : 0
|
|
22621
|
-
}), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (
|
|
22718
|
+
}), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (size2 ? (0, import_core12.getVariableValue)((0, import_core12.getTokens)().radius[size2]) - 1 : void 0), hasRadius = radius !== void 0, disablePassBorderRadius = disablePassBorderRadiusProp ?? !hasRadius, childrenArray = import_react3.default.Children.toArray(childrenProp), children = isUsingItems ? import_react3.default.Children.toArray(childrenProp).filter(import_react3.default.isValidElement) : childrenArray.map(function(child, i) {
|
|
22622
22719
|
if (!/* @__PURE__ */ import_react3.default.isValidElement(child) || child.type === import_react3.default.Fragment) return child;
|
|
22623
22720
|
var _child_props_disabled, disabled = (_child_props_disabled = child.props.disabled) !== null && _child_props_disabled !== void 0 ? _child_props_disabled : disabledProp, isFirst = i === 0, isLast = i === childrenArray.length - 1, radiusStyles = disablePassBorderRadius === !0 ? null : getBorderRadius({
|
|
22624
22721
|
isFirst,
|
|
@@ -22656,7 +22753,7 @@ var require_Group_native = __commonJS({
|
|
|
22656
22753
|
scope: __scopeGroup,
|
|
22657
22754
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(GroupFrame, {
|
|
22658
22755
|
ref,
|
|
22659
|
-
size:
|
|
22756
|
+
size: size2,
|
|
22660
22757
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
22661
22758
|
borderRadius,
|
|
22662
22759
|
...restProps,
|
|
@@ -23052,7 +23149,7 @@ var require_ListItem_native = __commonJS({
|
|
|
23052
23149
|
textAlign,
|
|
23053
23150
|
ellipse,
|
|
23054
23151
|
children
|
|
23055
|
-
},
|
|
23152
|
+
}, size2 = props.size || "$true", iconSize = (0, import_font_size.getFontSize)(size2) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
23056
23153
|
size: iconSize,
|
|
23057
23154
|
color
|
|
23058
23155
|
}), [themedIcon, themedIconAfter] = [
|
|
@@ -23078,7 +23175,7 @@ var require_ListItem_native = __commonJS({
|
|
|
23078
23175
|
flex: 1,
|
|
23079
23176
|
children: [
|
|
23080
23177
|
noTextWrap === "all" ? title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Title, {
|
|
23081
|
-
size:
|
|
23178
|
+
size: size2,
|
|
23082
23179
|
children: title
|
|
23083
23180
|
}),
|
|
23084
23181
|
subTitle ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
|
|
@@ -23087,7 +23184,7 @@ var require_ListItem_native = __commonJS({
|
|
|
23087
23184
|
// or standardize on subtle colors in themes
|
|
23088
23185
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Subtitle, {
|
|
23089
23186
|
unstyled,
|
|
23090
|
-
size:
|
|
23187
|
+
size: size2,
|
|
23091
23188
|
children: subTitle
|
|
23092
23189
|
})
|
|
23093
23190
|
) : subTitle
|
|
@@ -23266,1138 +23363,6 @@ var require_index_native55 = __commonJS({
|
|
|
23266
23363
|
}
|
|
23267
23364
|
});
|
|
23268
23365
|
|
|
23269
|
-
// ../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
23270
|
-
function clamp(start, value, end) {
|
|
23271
|
-
return max(start, min(value, end));
|
|
23272
|
-
}
|
|
23273
|
-
function evaluate(value, param) {
|
|
23274
|
-
return typeof value == "function" ? value(param) : value;
|
|
23275
|
-
}
|
|
23276
|
-
function getSide(placement) {
|
|
23277
|
-
return placement.split("-")[0];
|
|
23278
|
-
}
|
|
23279
|
-
function getAlignment(placement) {
|
|
23280
|
-
return placement.split("-")[1];
|
|
23281
|
-
}
|
|
23282
|
-
function getOppositeAxis(axis) {
|
|
23283
|
-
return axis === "x" ? "y" : "x";
|
|
23284
|
-
}
|
|
23285
|
-
function getAxisLength(axis) {
|
|
23286
|
-
return axis === "y" ? "height" : "width";
|
|
23287
|
-
}
|
|
23288
|
-
function getSideAxis(placement) {
|
|
23289
|
-
return [
|
|
23290
|
-
"top",
|
|
23291
|
-
"bottom"
|
|
23292
|
-
].includes(getSide(placement)) ? "y" : "x";
|
|
23293
|
-
}
|
|
23294
|
-
function getAlignmentAxis(placement) {
|
|
23295
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
23296
|
-
}
|
|
23297
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
23298
|
-
rtl === void 0 && (rtl = !1);
|
|
23299
|
-
var alignment = getAlignment(placement), alignmentAxis = getAlignmentAxis(placement), length = getAxisLength(alignmentAxis), mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
23300
|
-
return rects.reference[length] > rects.floating[length] && (mainAlignmentSide = getOppositePlacement(mainAlignmentSide)), [
|
|
23301
|
-
mainAlignmentSide,
|
|
23302
|
-
getOppositePlacement(mainAlignmentSide)
|
|
23303
|
-
];
|
|
23304
|
-
}
|
|
23305
|
-
function getExpandedPlacements(placement) {
|
|
23306
|
-
var oppositePlacement = getOppositePlacement(placement);
|
|
23307
|
-
return [
|
|
23308
|
-
getOppositeAlignmentPlacement(placement),
|
|
23309
|
-
oppositePlacement,
|
|
23310
|
-
getOppositeAlignmentPlacement(oppositePlacement)
|
|
23311
|
-
];
|
|
23312
|
-
}
|
|
23313
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
23314
|
-
return placement.replace(/start|end/g, function(alignment) {
|
|
23315
|
-
return oppositeAlignmentMap[alignment];
|
|
23316
|
-
});
|
|
23317
|
-
}
|
|
23318
|
-
function getSideList(side, isStart, rtl) {
|
|
23319
|
-
var lr = [
|
|
23320
|
-
"left",
|
|
23321
|
-
"right"
|
|
23322
|
-
], rl = [
|
|
23323
|
-
"right",
|
|
23324
|
-
"left"
|
|
23325
|
-
], tb = [
|
|
23326
|
-
"top",
|
|
23327
|
-
"bottom"
|
|
23328
|
-
], bt = [
|
|
23329
|
-
"bottom",
|
|
23330
|
-
"top"
|
|
23331
|
-
];
|
|
23332
|
-
switch (side) {
|
|
23333
|
-
case "top":
|
|
23334
|
-
case "bottom":
|
|
23335
|
-
return rtl ? isStart ? rl : lr : isStart ? lr : rl;
|
|
23336
|
-
case "left":
|
|
23337
|
-
case "right":
|
|
23338
|
-
return isStart ? tb : bt;
|
|
23339
|
-
default:
|
|
23340
|
-
return [];
|
|
23341
|
-
}
|
|
23342
|
-
}
|
|
23343
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
23344
|
-
var alignment = getAlignment(placement), list = getSideList(getSide(placement), direction === "start", rtl);
|
|
23345
|
-
return alignment && (list = list.map(function(side) {
|
|
23346
|
-
return side + "-" + alignment;
|
|
23347
|
-
}), flipAlignment && (list = list.concat(list.map(getOppositeAlignmentPlacement)))), list;
|
|
23348
|
-
}
|
|
23349
|
-
function getOppositePlacement(placement) {
|
|
23350
|
-
return placement.replace(/left|right|bottom|top/g, function(side) {
|
|
23351
|
-
return oppositeSideMap[side];
|
|
23352
|
-
});
|
|
23353
|
-
}
|
|
23354
|
-
function expandPaddingObject(padding) {
|
|
23355
|
-
return {
|
|
23356
|
-
top: 0,
|
|
23357
|
-
right: 0,
|
|
23358
|
-
bottom: 0,
|
|
23359
|
-
left: 0,
|
|
23360
|
-
...padding
|
|
23361
|
-
};
|
|
23362
|
-
}
|
|
23363
|
-
function getPaddingObject(padding) {
|
|
23364
|
-
return typeof padding != "number" ? expandPaddingObject(padding) : {
|
|
23365
|
-
top: padding,
|
|
23366
|
-
right: padding,
|
|
23367
|
-
bottom: padding,
|
|
23368
|
-
left: padding
|
|
23369
|
-
};
|
|
23370
|
-
}
|
|
23371
|
-
function rectToClientRect(rect) {
|
|
23372
|
-
var { x, y, width, height } = rect;
|
|
23373
|
-
return {
|
|
23374
|
-
width,
|
|
23375
|
-
height,
|
|
23376
|
-
top: y,
|
|
23377
|
-
left: x,
|
|
23378
|
-
right: x + width,
|
|
23379
|
-
bottom: y + height,
|
|
23380
|
-
x,
|
|
23381
|
-
y
|
|
23382
|
-
};
|
|
23383
|
-
}
|
|
23384
|
-
var sides, alignments, placements, min, max, oppositeSideMap, oppositeAlignmentMap, init_floating_ui_utils = __esm({
|
|
23385
|
-
"../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
|
|
23386
|
-
sides = [
|
|
23387
|
-
"top",
|
|
23388
|
-
"right",
|
|
23389
|
-
"bottom",
|
|
23390
|
-
"left"
|
|
23391
|
-
], alignments = [
|
|
23392
|
-
"start",
|
|
23393
|
-
"end"
|
|
23394
|
-
], placements = /* @__PURE__ */ sides.reduce(function(acc, side) {
|
|
23395
|
-
return acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]);
|
|
23396
|
-
}, []), min = Math.min, max = Math.max, oppositeSideMap = {
|
|
23397
|
-
left: "right",
|
|
23398
|
-
right: "left",
|
|
23399
|
-
bottom: "top",
|
|
23400
|
-
top: "bottom"
|
|
23401
|
-
}, oppositeAlignmentMap = {
|
|
23402
|
-
start: "end",
|
|
23403
|
-
end: "start"
|
|
23404
|
-
};
|
|
23405
|
-
}
|
|
23406
|
-
});
|
|
23407
|
-
|
|
23408
|
-
// ../../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
|
|
23409
|
-
var floating_ui_core_esm_exports = {};
|
|
23410
|
-
__export(floating_ui_core_esm_exports, {
|
|
23411
|
-
arrow: () => arrow2,
|
|
23412
|
-
autoPlacement: () => autoPlacement2,
|
|
23413
|
-
computePosition: () => computePosition,
|
|
23414
|
-
detectOverflow: () => detectOverflow2,
|
|
23415
|
-
flip: () => flip2,
|
|
23416
|
-
hide: () => hide2,
|
|
23417
|
-
inline: () => inline2,
|
|
23418
|
-
limitShift: () => limitShift2,
|
|
23419
|
-
offset: () => offset2,
|
|
23420
|
-
rectToClientRect: () => rectToClientRect,
|
|
23421
|
-
shift: () => shift2,
|
|
23422
|
-
size: () => size2
|
|
23423
|
-
});
|
|
23424
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
23425
|
-
var { reference, floating } = _ref, sideAxis = getSideAxis(placement), alignmentAxis = getAlignmentAxis(placement), alignLength = getAxisLength(alignmentAxis), side = getSide(placement), isVertical = sideAxis === "y", commonX = reference.x + reference.width / 2 - floating.width / 2, commonY = reference.y + reference.height / 2 - floating.height / 2, commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2, coords;
|
|
23426
|
-
switch (side) {
|
|
23427
|
-
case "top":
|
|
23428
|
-
coords = {
|
|
23429
|
-
x: commonX,
|
|
23430
|
-
y: reference.y - floating.height
|
|
23431
|
-
};
|
|
23432
|
-
break;
|
|
23433
|
-
case "bottom":
|
|
23434
|
-
coords = {
|
|
23435
|
-
x: commonX,
|
|
23436
|
-
y: reference.y + reference.height
|
|
23437
|
-
};
|
|
23438
|
-
break;
|
|
23439
|
-
case "right":
|
|
23440
|
-
coords = {
|
|
23441
|
-
x: reference.x + reference.width,
|
|
23442
|
-
y: commonY
|
|
23443
|
-
};
|
|
23444
|
-
break;
|
|
23445
|
-
case "left":
|
|
23446
|
-
coords = {
|
|
23447
|
-
x: reference.x - floating.width,
|
|
23448
|
-
y: commonY
|
|
23449
|
-
};
|
|
23450
|
-
break;
|
|
23451
|
-
default:
|
|
23452
|
-
coords = {
|
|
23453
|
-
x: reference.x,
|
|
23454
|
-
y: reference.y
|
|
23455
|
-
};
|
|
23456
|
-
}
|
|
23457
|
-
switch (getAlignment(placement)) {
|
|
23458
|
-
case "start":
|
|
23459
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
23460
|
-
break;
|
|
23461
|
-
case "end":
|
|
23462
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
23463
|
-
break;
|
|
23464
|
-
}
|
|
23465
|
-
return coords;
|
|
23466
|
-
}
|
|
23467
|
-
async function detectOverflow2(state, options) {
|
|
23468
|
-
var _await$platform$isEle;
|
|
23469
|
-
options === void 0 && (options = {});
|
|
23470
|
-
var { x, y, platform: platform2, rects, elements, strategy } = state, { boundary = "clippingAncestors", rootBoundary = "viewport", elementContext = "floating", altBoundary = !1, padding = 0 } = evaluate(options, state), paddingObject = getPaddingObject(padding), altContext = elementContext === "floating" ? "reference" : "floating", element = elements[altBoundary ? altContext : elementContext], clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
23471
|
-
element: (_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) == null || _await$platform$isEle ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
23472
|
-
boundary,
|
|
23473
|
-
rootBoundary,
|
|
23474
|
-
strategy
|
|
23475
|
-
})), rect = elementContext === "floating" ? {
|
|
23476
|
-
x,
|
|
23477
|
-
y,
|
|
23478
|
-
width: rects.floating.width,
|
|
23479
|
-
height: rects.floating.height
|
|
23480
|
-
} : rects.reference, offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating)), offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
23481
|
-
x: 1,
|
|
23482
|
-
y: 1
|
|
23483
|
-
} : {
|
|
23484
|
-
x: 1,
|
|
23485
|
-
y: 1
|
|
23486
|
-
}, elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
23487
|
-
elements,
|
|
23488
|
-
rect,
|
|
23489
|
-
offsetParent,
|
|
23490
|
-
strategy
|
|
23491
|
-
}) : rect);
|
|
23492
|
-
return {
|
|
23493
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
23494
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
23495
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
23496
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
23497
|
-
};
|
|
23498
|
-
}
|
|
23499
|
-
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
23500
|
-
var allowedPlacementsSortedByAlignment = alignment ? [
|
|
23501
|
-
...allowedPlacements.filter(function(placement) {
|
|
23502
|
-
return getAlignment(placement) === alignment;
|
|
23503
|
-
}),
|
|
23504
|
-
...allowedPlacements.filter(function(placement) {
|
|
23505
|
-
return getAlignment(placement) !== alignment;
|
|
23506
|
-
})
|
|
23507
|
-
] : allowedPlacements.filter(function(placement) {
|
|
23508
|
-
return getSide(placement) === placement;
|
|
23509
|
-
});
|
|
23510
|
-
return allowedPlacementsSortedByAlignment.filter(function(placement) {
|
|
23511
|
-
return alignment ? getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : !1) : !0;
|
|
23512
|
-
});
|
|
23513
|
-
}
|
|
23514
|
-
function getSideOffsets(overflow, rect) {
|
|
23515
|
-
return {
|
|
23516
|
-
top: overflow.top - rect.height,
|
|
23517
|
-
right: overflow.right - rect.width,
|
|
23518
|
-
bottom: overflow.bottom - rect.height,
|
|
23519
|
-
left: overflow.left - rect.width
|
|
23520
|
-
};
|
|
23521
|
-
}
|
|
23522
|
-
function isAnySideFullyClipped(overflow) {
|
|
23523
|
-
return sides.some(function(side) {
|
|
23524
|
-
return overflow[side] >= 0;
|
|
23525
|
-
});
|
|
23526
|
-
}
|
|
23527
|
-
function getBoundingRect(rects) {
|
|
23528
|
-
var minX = min(...rects.map(function(rect) {
|
|
23529
|
-
return rect.left;
|
|
23530
|
-
})), minY = min(...rects.map(function(rect) {
|
|
23531
|
-
return rect.top;
|
|
23532
|
-
})), maxX = max(...rects.map(function(rect) {
|
|
23533
|
-
return rect.right;
|
|
23534
|
-
})), maxY = max(...rects.map(function(rect) {
|
|
23535
|
-
return rect.bottom;
|
|
23536
|
-
}));
|
|
23537
|
-
return {
|
|
23538
|
-
x: minX,
|
|
23539
|
-
y: minY,
|
|
23540
|
-
width: maxX - minX,
|
|
23541
|
-
height: maxY - minY
|
|
23542
|
-
};
|
|
23543
|
-
}
|
|
23544
|
-
function getRectsByLine(rects) {
|
|
23545
|
-
for (var sortedRects = rects.slice().sort(function(a, b) {
|
|
23546
|
-
return a.y - b.y;
|
|
23547
|
-
}), groups = [], prevRect = null, i = 0; i < sortedRects.length; i++) {
|
|
23548
|
-
var rect = sortedRects[i];
|
|
23549
|
-
!prevRect || rect.y - prevRect.y > prevRect.height / 2 ? groups.push([
|
|
23550
|
-
rect
|
|
23551
|
-
]) : groups[groups.length - 1].push(rect), prevRect = rect;
|
|
23552
|
-
}
|
|
23553
|
-
return groups.map(function(rect2) {
|
|
23554
|
-
return rectToClientRect(getBoundingRect(rect2));
|
|
23555
|
-
});
|
|
23556
|
-
}
|
|
23557
|
-
async function convertValueToCoords(state, options) {
|
|
23558
|
-
var { placement, platform: platform2, elements } = state, rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)), side = getSide(placement), alignment = getAlignment(placement), isVertical = getSideAxis(placement) === "y", mainAxisMulti = [
|
|
23559
|
-
"left",
|
|
23560
|
-
"top"
|
|
23561
|
-
].includes(side) ? -1 : 1, crossAxisMulti = rtl && isVertical ? -1 : 1, rawValue = evaluate(options, state), { mainAxis, crossAxis, alignmentAxis } = typeof rawValue == "number" ? {
|
|
23562
|
-
mainAxis: rawValue,
|
|
23563
|
-
crossAxis: 0,
|
|
23564
|
-
alignmentAxis: null
|
|
23565
|
-
} : {
|
|
23566
|
-
mainAxis: rawValue.mainAxis || 0,
|
|
23567
|
-
crossAxis: rawValue.crossAxis || 0,
|
|
23568
|
-
alignmentAxis: rawValue.alignmentAxis
|
|
23569
|
-
};
|
|
23570
|
-
return alignment && typeof alignmentAxis == "number" && (crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis), isVertical ? {
|
|
23571
|
-
x: crossAxis * crossAxisMulti,
|
|
23572
|
-
y: mainAxis * mainAxisMulti
|
|
23573
|
-
} : {
|
|
23574
|
-
x: mainAxis * mainAxisMulti,
|
|
23575
|
-
y: crossAxis * crossAxisMulti
|
|
23576
|
-
};
|
|
23577
|
-
}
|
|
23578
|
-
var computePosition, arrow2, autoPlacement2, flip2, hide2, inline2, offset2, shift2, limitShift2, size2, init_floating_ui_core_esm = __esm({
|
|
23579
|
-
"../../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js"() {
|
|
23580
|
-
init_floating_ui_utils();
|
|
23581
|
-
init_floating_ui_utils();
|
|
23582
|
-
computePosition = async function(reference, floating, config) {
|
|
23583
|
-
for (var { placement = "bottom", strategy = "absolute", middleware = [], platform: platform2 } = config, validMiddleware = middleware.filter(Boolean), rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating)), rects = await platform2.getElementRects({
|
|
23584
|
-
reference,
|
|
23585
|
-
floating,
|
|
23586
|
-
strategy
|
|
23587
|
-
}), { x, y } = computeCoordsFromPlacement(rects, placement, rtl), statefulPlacement = placement, middlewareData = {}, resetCount = 0, i = 0; i < validMiddleware.length; i++) {
|
|
23588
|
-
var { name, fn } = validMiddleware[i], { x: nextX, y: nextY, data, reset } = await fn({
|
|
23589
|
-
x,
|
|
23590
|
-
y,
|
|
23591
|
-
initialPlacement: placement,
|
|
23592
|
-
placement: statefulPlacement,
|
|
23593
|
-
strategy,
|
|
23594
|
-
middlewareData,
|
|
23595
|
-
rects,
|
|
23596
|
-
platform: platform2,
|
|
23597
|
-
elements: {
|
|
23598
|
-
reference,
|
|
23599
|
-
floating
|
|
23600
|
-
}
|
|
23601
|
-
});
|
|
23602
|
-
x = nextX ?? x, y = nextY ?? y, middlewareData = {
|
|
23603
|
-
...middlewareData,
|
|
23604
|
-
[name]: {
|
|
23605
|
-
...middlewareData[name],
|
|
23606
|
-
...data
|
|
23607
|
-
}
|
|
23608
|
-
}, reset && resetCount <= 50 && (resetCount++, typeof reset == "object" && (reset.placement && (statefulPlacement = reset.placement), reset.rects && (rects = reset.rects === !0 ? await platform2.getElementRects({
|
|
23609
|
-
reference,
|
|
23610
|
-
floating,
|
|
23611
|
-
strategy
|
|
23612
|
-
}) : reset.rects), { x, y } = computeCoordsFromPlacement(rects, statefulPlacement, rtl)), i = -1);
|
|
23613
|
-
}
|
|
23614
|
-
return {
|
|
23615
|
-
x,
|
|
23616
|
-
y,
|
|
23617
|
-
placement: statefulPlacement,
|
|
23618
|
-
strategy,
|
|
23619
|
-
middlewareData
|
|
23620
|
-
};
|
|
23621
|
-
};
|
|
23622
|
-
arrow2 = function(options) {
|
|
23623
|
-
return {
|
|
23624
|
-
name: "arrow",
|
|
23625
|
-
options,
|
|
23626
|
-
async fn(state) {
|
|
23627
|
-
var { x, y, placement, rects, platform: platform2, elements, middlewareData } = state, { element, padding = 0 } = evaluate(options, state) || {};
|
|
23628
|
-
if (element == null)
|
|
23629
|
-
return {};
|
|
23630
|
-
var paddingObject = getPaddingObject(padding), coords = {
|
|
23631
|
-
x,
|
|
23632
|
-
y
|
|
23633
|
-
}, axis = getAlignmentAxis(placement), length = getAxisLength(axis), arrowDimensions = await platform2.getDimensions(element), isYAxis = axis === "y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right", clientProp = isYAxis ? "clientHeight" : "clientWidth", endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length], startDiff = coords[axis] - rects.reference[axis], arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element)), clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
23634
|
-
(!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) && (clientSize = elements.floating[clientProp] || rects.floating[length]);
|
|
23635
|
-
var centerToReference = endDiff / 2 - startDiff / 2, largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1, minPadding = min(paddingObject[minProp], largestPossiblePadding), maxPadding = min(paddingObject[maxProp], largestPossiblePadding), min$1 = minPadding, max2 = clientSize - arrowDimensions[length] - maxPadding, center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference, offset4 = clamp(min$1, center, max2), shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset4 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0, alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
|
|
23636
|
-
return {
|
|
23637
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
23638
|
-
data: {
|
|
23639
|
-
[axis]: offset4,
|
|
23640
|
-
centerOffset: center - offset4 - alignmentOffset,
|
|
23641
|
-
...shouldAddOffset && {
|
|
23642
|
-
alignmentOffset
|
|
23643
|
-
}
|
|
23644
|
-
},
|
|
23645
|
-
reset: shouldAddOffset
|
|
23646
|
-
};
|
|
23647
|
-
}
|
|
23648
|
-
};
|
|
23649
|
-
};
|
|
23650
|
-
autoPlacement2 = function(options) {
|
|
23651
|
-
return options === void 0 && (options = {}), {
|
|
23652
|
-
name: "autoPlacement",
|
|
23653
|
-
options,
|
|
23654
|
-
async fn(state) {
|
|
23655
|
-
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE, { rects, middlewareData, placement, platform: platform2, elements } = state, { crossAxis = !1, alignment, allowedPlacements = placements, autoAlignment = !0, ...detectOverflowOptions } = evaluate(options, state), placements$1 = alignment !== void 0 || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements, overflow = await detectOverflow2(state, detectOverflowOptions), currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0, currentPlacement = placements$1[currentIndex];
|
|
23656
|
-
if (currentPlacement == null)
|
|
23657
|
-
return {};
|
|
23658
|
-
var alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)));
|
|
23659
|
-
if (placement !== currentPlacement)
|
|
23660
|
-
return {
|
|
23661
|
-
reset: {
|
|
23662
|
-
placement: placements$1[0]
|
|
23663
|
-
}
|
|
23664
|
-
};
|
|
23665
|
-
var currentOverflows = [
|
|
23666
|
-
overflow[getSide(currentPlacement)],
|
|
23667
|
-
overflow[alignmentSides[0]],
|
|
23668
|
-
overflow[alignmentSides[1]]
|
|
23669
|
-
], allOverflows = [
|
|
23670
|
-
...((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || [],
|
|
23671
|
-
{
|
|
23672
|
-
placement: currentPlacement,
|
|
23673
|
-
overflows: currentOverflows
|
|
23674
|
-
}
|
|
23675
|
-
], nextPlacement = placements$1[currentIndex + 1];
|
|
23676
|
-
if (nextPlacement)
|
|
23677
|
-
return {
|
|
23678
|
-
data: {
|
|
23679
|
-
index: currentIndex + 1,
|
|
23680
|
-
overflows: allOverflows
|
|
23681
|
-
},
|
|
23682
|
-
reset: {
|
|
23683
|
-
placement: nextPlacement
|
|
23684
|
-
}
|
|
23685
|
-
};
|
|
23686
|
-
var placementsSortedByMostSpace = allOverflows.map(function(d) {
|
|
23687
|
-
var alignment2 = getAlignment(d.placement);
|
|
23688
|
-
return [
|
|
23689
|
-
d.placement,
|
|
23690
|
-
alignment2 && crossAxis ? (
|
|
23691
|
-
// Check along the mainAxis and main crossAxis side.
|
|
23692
|
-
d.overflows.slice(0, 2).reduce(function(acc, v) {
|
|
23693
|
-
return acc + v;
|
|
23694
|
-
}, 0)
|
|
23695
|
-
) : (
|
|
23696
|
-
// Check only the mainAxis.
|
|
23697
|
-
d.overflows[0]
|
|
23698
|
-
),
|
|
23699
|
-
d.overflows
|
|
23700
|
-
];
|
|
23701
|
-
}).sort(function(a, b) {
|
|
23702
|
-
return a[1] - b[1];
|
|
23703
|
-
}), placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(function(d) {
|
|
23704
|
-
return d[2].slice(
|
|
23705
|
-
0,
|
|
23706
|
-
// Aligned placements should not check their opposite crossAxis
|
|
23707
|
-
// side.
|
|
23708
|
-
getAlignment(d[0]) ? 2 : 3
|
|
23709
|
-
).every(function(v) {
|
|
23710
|
-
return v <= 0;
|
|
23711
|
-
});
|
|
23712
|
-
}), resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
23713
|
-
return resetPlacement !== placement ? {
|
|
23714
|
-
data: {
|
|
23715
|
-
index: currentIndex + 1,
|
|
23716
|
-
overflows: allOverflows
|
|
23717
|
-
},
|
|
23718
|
-
reset: {
|
|
23719
|
-
placement: resetPlacement
|
|
23720
|
-
}
|
|
23721
|
-
} : {};
|
|
23722
|
-
}
|
|
23723
|
-
};
|
|
23724
|
-
}, flip2 = function(options) {
|
|
23725
|
-
return options === void 0 && (options = {}), {
|
|
23726
|
-
name: "flip",
|
|
23727
|
-
options,
|
|
23728
|
-
async fn(state) {
|
|
23729
|
-
var _middlewareData$arrow, _middlewareData$flip, { placement, middlewareData, rects, initialPlacement, platform: platform2, elements } = state, { mainAxis: checkMainAxis = !0, crossAxis: checkCrossAxis = !0, fallbackPlacements: specifiedFallbackPlacements, fallbackStrategy = "bestFit", fallbackAxisSideDirection = "none", flipAlignment = !0, ...detectOverflowOptions } = evaluate(options, state);
|
|
23730
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)
|
|
23731
|
-
return {};
|
|
23732
|
-
var side = getSide(placement), initialSideAxis = getSideAxis(initialPlacement), isBasePlacement = getSide(initialPlacement) === initialPlacement, rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)), fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [
|
|
23733
|
-
getOppositePlacement(initialPlacement)
|
|
23734
|
-
] : getExpandedPlacements(initialPlacement)), hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
23735
|
-
!specifiedFallbackPlacements && hasFallbackAxisSideDirection && fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
23736
|
-
var placements2 = [
|
|
23737
|
-
initialPlacement,
|
|
23738
|
-
...fallbackPlacements
|
|
23739
|
-
], overflow = await detectOverflow2(state, detectOverflowOptions), overflows = [], overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
23740
|
-
if (checkMainAxis && overflows.push(overflow[side]), checkCrossAxis) {
|
|
23741
|
-
var sides2 = getAlignmentSides(placement, rects, rtl);
|
|
23742
|
-
overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
|
|
23743
|
-
}
|
|
23744
|
-
if (overflowsData = [
|
|
23745
|
-
...overflowsData,
|
|
23746
|
-
{
|
|
23747
|
-
placement,
|
|
23748
|
-
overflows
|
|
23749
|
-
}
|
|
23750
|
-
], !overflows.every(function(side2) {
|
|
23751
|
-
return side2 <= 0;
|
|
23752
|
-
})) {
|
|
23753
|
-
var _middlewareData$flip2, _overflowsData$filter, nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1, nextPlacement = placements2[nextIndex];
|
|
23754
|
-
if (nextPlacement) {
|
|
23755
|
-
var _overflowsData$, ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : !1, hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
|
|
23756
|
-
if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow)
|
|
23757
|
-
return {
|
|
23758
|
-
data: {
|
|
23759
|
-
index: nextIndex,
|
|
23760
|
-
overflows: overflowsData
|
|
23761
|
-
},
|
|
23762
|
-
reset: {
|
|
23763
|
-
placement: nextPlacement
|
|
23764
|
-
}
|
|
23765
|
-
};
|
|
23766
|
-
}
|
|
23767
|
-
var resetPlacement = (_overflowsData$filter = overflowsData.filter(function(d) {
|
|
23768
|
-
return d.overflows[0] <= 0;
|
|
23769
|
-
}).sort(function(a, b) {
|
|
23770
|
-
return a.overflows[1] - b.overflows[1];
|
|
23771
|
-
})[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
23772
|
-
if (!resetPlacement)
|
|
23773
|
-
switch (fallbackStrategy) {
|
|
23774
|
-
case "bestFit": {
|
|
23775
|
-
var _overflowsData$filter2, placement1 = (_overflowsData$filter2 = overflowsData.filter(function(d) {
|
|
23776
|
-
if (hasFallbackAxisSideDirection) {
|
|
23777
|
-
var currentSideAxis = getSideAxis(d.placement);
|
|
23778
|
-
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
23779
|
-
// reading directions favoring greater width.
|
|
23780
|
-
currentSideAxis === "y";
|
|
23781
|
-
}
|
|
23782
|
-
return !0;
|
|
23783
|
-
}).map(function(d) {
|
|
23784
|
-
return [
|
|
23785
|
-
d.placement,
|
|
23786
|
-
d.overflows.filter(function(overflow2) {
|
|
23787
|
-
return overflow2 > 0;
|
|
23788
|
-
}).reduce(function(acc, overflow2) {
|
|
23789
|
-
return acc + overflow2;
|
|
23790
|
-
}, 0)
|
|
23791
|
-
];
|
|
23792
|
-
}).sort(function(a, b) {
|
|
23793
|
-
return a[1] - b[1];
|
|
23794
|
-
})[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
23795
|
-
placement1 && (resetPlacement = placement1);
|
|
23796
|
-
break;
|
|
23797
|
-
}
|
|
23798
|
-
case "initialPlacement":
|
|
23799
|
-
resetPlacement = initialPlacement;
|
|
23800
|
-
break;
|
|
23801
|
-
}
|
|
23802
|
-
if (placement !== resetPlacement)
|
|
23803
|
-
return {
|
|
23804
|
-
reset: {
|
|
23805
|
-
placement: resetPlacement
|
|
23806
|
-
}
|
|
23807
|
-
};
|
|
23808
|
-
}
|
|
23809
|
-
return {};
|
|
23810
|
-
}
|
|
23811
|
-
};
|
|
23812
|
-
};
|
|
23813
|
-
hide2 = function(options) {
|
|
23814
|
-
return options === void 0 && (options = {}), {
|
|
23815
|
-
name: "hide",
|
|
23816
|
-
options,
|
|
23817
|
-
async fn(state) {
|
|
23818
|
-
var { rects } = state, { strategy = "referenceHidden", ...detectOverflowOptions } = evaluate(options, state);
|
|
23819
|
-
switch (strategy) {
|
|
23820
|
-
case "referenceHidden": {
|
|
23821
|
-
var overflow = await detectOverflow2(state, {
|
|
23822
|
-
...detectOverflowOptions,
|
|
23823
|
-
elementContext: "reference"
|
|
23824
|
-
}), offsets = getSideOffsets(overflow, rects.reference);
|
|
23825
|
-
return {
|
|
23826
|
-
data: {
|
|
23827
|
-
referenceHiddenOffsets: offsets,
|
|
23828
|
-
referenceHidden: isAnySideFullyClipped(offsets)
|
|
23829
|
-
}
|
|
23830
|
-
};
|
|
23831
|
-
}
|
|
23832
|
-
case "escaped": {
|
|
23833
|
-
var overflow1 = await detectOverflow2(state, {
|
|
23834
|
-
...detectOverflowOptions,
|
|
23835
|
-
altBoundary: !0
|
|
23836
|
-
}), offsets1 = getSideOffsets(overflow1, rects.floating);
|
|
23837
|
-
return {
|
|
23838
|
-
data: {
|
|
23839
|
-
escapedOffsets: offsets1,
|
|
23840
|
-
escaped: isAnySideFullyClipped(offsets1)
|
|
23841
|
-
}
|
|
23842
|
-
};
|
|
23843
|
-
}
|
|
23844
|
-
default:
|
|
23845
|
-
return {};
|
|
23846
|
-
}
|
|
23847
|
-
}
|
|
23848
|
-
};
|
|
23849
|
-
};
|
|
23850
|
-
inline2 = function(options) {
|
|
23851
|
-
return options === void 0 && (options = {}), {
|
|
23852
|
-
name: "inline",
|
|
23853
|
-
options,
|
|
23854
|
-
async fn(state) {
|
|
23855
|
-
var { placement, elements, rects, platform: platform2, strategy } = state, { padding = 2, x, y } = evaluate(options, state), nativeClientRects = Array.from(await (platform2.getClientRects == null ? void 0 : platform2.getClientRects(elements.reference)) || []), clientRects = getRectsByLine(nativeClientRects), fallback = rectToClientRect(getBoundingRect(nativeClientRects)), paddingObject = getPaddingObject(padding);
|
|
23856
|
-
function getBoundingClientRect() {
|
|
23857
|
-
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null)
|
|
23858
|
-
return clientRects.find(function(rect) {
|
|
23859
|
-
return x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom;
|
|
23860
|
-
}) || fallback;
|
|
23861
|
-
if (clientRects.length >= 2) {
|
|
23862
|
-
if (getSideAxis(placement) === "y") {
|
|
23863
|
-
var firstRect = clientRects[0], lastRect = clientRects[clientRects.length - 1], isTop = getSide(placement) === "top", top = firstRect.top, bottom = lastRect.bottom, left = isTop ? firstRect.left : lastRect.left, right = isTop ? firstRect.right : lastRect.right, width = right - left, height = bottom - top;
|
|
23864
|
-
return {
|
|
23865
|
-
top,
|
|
23866
|
-
bottom,
|
|
23867
|
-
left,
|
|
23868
|
-
right,
|
|
23869
|
-
width,
|
|
23870
|
-
height,
|
|
23871
|
-
x: left,
|
|
23872
|
-
y: top
|
|
23873
|
-
};
|
|
23874
|
-
}
|
|
23875
|
-
var isLeftSide = getSide(placement) === "left", maxRight = max(...clientRects.map(function(rect) {
|
|
23876
|
-
return rect.right;
|
|
23877
|
-
})), minLeft = min(...clientRects.map(function(rect) {
|
|
23878
|
-
return rect.left;
|
|
23879
|
-
})), measureRects = clientRects.filter(function(rect) {
|
|
23880
|
-
return isLeftSide ? rect.left === minLeft : rect.right === maxRight;
|
|
23881
|
-
}), top1 = measureRects[0].top, bottom1 = measureRects[measureRects.length - 1].bottom, left1 = minLeft, right1 = maxRight, width1 = right1 - left1, height1 = bottom1 - top1;
|
|
23882
|
-
return {
|
|
23883
|
-
top: top1,
|
|
23884
|
-
bottom: bottom1,
|
|
23885
|
-
left: left1,
|
|
23886
|
-
right: right1,
|
|
23887
|
-
width: width1,
|
|
23888
|
-
height: height1,
|
|
23889
|
-
x: left1,
|
|
23890
|
-
y: top1
|
|
23891
|
-
};
|
|
23892
|
-
}
|
|
23893
|
-
return fallback;
|
|
23894
|
-
}
|
|
23895
|
-
var resetRects = await platform2.getElementRects({
|
|
23896
|
-
reference: {
|
|
23897
|
-
getBoundingClientRect
|
|
23898
|
-
},
|
|
23899
|
-
floating: elements.floating,
|
|
23900
|
-
strategy
|
|
23901
|
-
});
|
|
23902
|
-
return rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height ? {
|
|
23903
|
-
reset: {
|
|
23904
|
-
rects: resetRects
|
|
23905
|
-
}
|
|
23906
|
-
} : {};
|
|
23907
|
-
}
|
|
23908
|
-
};
|
|
23909
|
-
};
|
|
23910
|
-
offset2 = function(options) {
|
|
23911
|
-
return options === void 0 && (options = 0), {
|
|
23912
|
-
name: "offset",
|
|
23913
|
-
options,
|
|
23914
|
-
async fn(state) {
|
|
23915
|
-
var _middlewareData$offse, _middlewareData$arrow, { x, y, placement, middlewareData } = state, diffCoords = await convertValueToCoords(state, options);
|
|
23916
|
-
return placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset ? {} : {
|
|
23917
|
-
x: x + diffCoords.x,
|
|
23918
|
-
y: y + diffCoords.y,
|
|
23919
|
-
data: {
|
|
23920
|
-
...diffCoords,
|
|
23921
|
-
placement
|
|
23922
|
-
}
|
|
23923
|
-
};
|
|
23924
|
-
}
|
|
23925
|
-
};
|
|
23926
|
-
}, shift2 = function(options) {
|
|
23927
|
-
return options === void 0 && (options = {}), {
|
|
23928
|
-
name: "shift",
|
|
23929
|
-
options,
|
|
23930
|
-
async fn(state) {
|
|
23931
|
-
var { x, y, placement } = state, { mainAxis: checkMainAxis = !0, crossAxis: checkCrossAxis = !1, limiter = {
|
|
23932
|
-
fn: function(_ref) {
|
|
23933
|
-
var { x: x2, y: y2 } = _ref;
|
|
23934
|
-
return {
|
|
23935
|
-
x: x2,
|
|
23936
|
-
y: y2
|
|
23937
|
-
};
|
|
23938
|
-
}
|
|
23939
|
-
}, ...detectOverflowOptions } = evaluate(options, state), coords = {
|
|
23940
|
-
x,
|
|
23941
|
-
y
|
|
23942
|
-
}, overflow = await detectOverflow2(state, detectOverflowOptions), crossAxis = getSideAxis(getSide(placement)), mainAxis = getOppositeAxis(crossAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis];
|
|
23943
|
-
if (checkMainAxis) {
|
|
23944
|
-
var minSide = mainAxis === "y" ? "top" : "left", maxSide = mainAxis === "y" ? "bottom" : "right", min2 = mainAxisCoord + overflow[minSide], max2 = mainAxisCoord - overflow[maxSide];
|
|
23945
|
-
mainAxisCoord = clamp(min2, mainAxisCoord, max2);
|
|
23946
|
-
}
|
|
23947
|
-
if (checkCrossAxis) {
|
|
23948
|
-
var minSide1 = crossAxis === "y" ? "top" : "left", maxSide1 = crossAxis === "y" ? "bottom" : "right", min1 = crossAxisCoord + overflow[minSide1], max1 = crossAxisCoord - overflow[maxSide1];
|
|
23949
|
-
crossAxisCoord = clamp(min1, crossAxisCoord, max1);
|
|
23950
|
-
}
|
|
23951
|
-
var limitedCoords = limiter.fn({
|
|
23952
|
-
...state,
|
|
23953
|
-
[mainAxis]: mainAxisCoord,
|
|
23954
|
-
[crossAxis]: crossAxisCoord
|
|
23955
|
-
});
|
|
23956
|
-
return {
|
|
23957
|
-
...limitedCoords,
|
|
23958
|
-
data: {
|
|
23959
|
-
x: limitedCoords.x - x,
|
|
23960
|
-
y: limitedCoords.y - y,
|
|
23961
|
-
enabled: {
|
|
23962
|
-
[mainAxis]: checkMainAxis,
|
|
23963
|
-
[crossAxis]: checkCrossAxis
|
|
23964
|
-
}
|
|
23965
|
-
}
|
|
23966
|
-
};
|
|
23967
|
-
}
|
|
23968
|
-
};
|
|
23969
|
-
}, limitShift2 = function(options) {
|
|
23970
|
-
return options === void 0 && (options = {}), {
|
|
23971
|
-
options,
|
|
23972
|
-
fn(state) {
|
|
23973
|
-
var { x, y, placement, rects, middlewareData } = state, { offset: offset4 = 0, mainAxis: checkMainAxis = !0, crossAxis: checkCrossAxis = !0 } = evaluate(options, state), coords = {
|
|
23974
|
-
x,
|
|
23975
|
-
y
|
|
23976
|
-
}, crossAxis = getSideAxis(placement), mainAxis = getOppositeAxis(crossAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis], rawOffset = evaluate(offset4, state), computedOffset = typeof rawOffset == "number" ? {
|
|
23977
|
-
mainAxis: rawOffset,
|
|
23978
|
-
crossAxis: 0
|
|
23979
|
-
} : {
|
|
23980
|
-
mainAxis: 0,
|
|
23981
|
-
crossAxis: 0,
|
|
23982
|
-
...rawOffset
|
|
23983
|
-
};
|
|
23984
|
-
if (checkMainAxis) {
|
|
23985
|
-
var len = mainAxis === "y" ? "height" : "width", limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis, limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
23986
|
-
mainAxisCoord < limitMin ? mainAxisCoord = limitMin : mainAxisCoord > limitMax && (mainAxisCoord = limitMax);
|
|
23987
|
-
}
|
|
23988
|
-
if (checkCrossAxis) {
|
|
23989
|
-
var _middlewareData$offse, _middlewareData$offse2, len1 = mainAxis === "y" ? "width" : "height", isOriginSide = [
|
|
23990
|
-
"top",
|
|
23991
|
-
"left"
|
|
23992
|
-
].includes(getSide(placement)), limitMin1 = rects.reference[crossAxis] - rects.floating[len1] + (isOriginSide && ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0) + (isOriginSide ? 0 : computedOffset.crossAxis), limitMax1 = rects.reference[crossAxis] + rects.reference[len1] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
23993
|
-
crossAxisCoord < limitMin1 ? crossAxisCoord = limitMin1 : crossAxisCoord > limitMax1 && (crossAxisCoord = limitMax1);
|
|
23994
|
-
}
|
|
23995
|
-
return {
|
|
23996
|
-
[mainAxis]: mainAxisCoord,
|
|
23997
|
-
[crossAxis]: crossAxisCoord
|
|
23998
|
-
};
|
|
23999
|
-
}
|
|
24000
|
-
};
|
|
24001
|
-
}, size2 = function(options) {
|
|
24002
|
-
return options === void 0 && (options = {}), {
|
|
24003
|
-
name: "size",
|
|
24004
|
-
options,
|
|
24005
|
-
async fn(state) {
|
|
24006
|
-
var _state$middlewareData, _state$middlewareData2, { placement, rects, platform: platform2, elements } = state, { apply = function() {
|
|
24007
|
-
}, ...detectOverflowOptions } = evaluate(options, state), overflow = await detectOverflow2(state, detectOverflowOptions), side = getSide(placement), alignment = getAlignment(placement), isYAxis = getSideAxis(placement) === "y", { width, height } = rects.floating, heightSide, widthSide;
|
|
24008
|
-
side === "top" || side === "bottom" ? (heightSide = side, widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right") : (widthSide = side, heightSide = alignment === "end" ? "top" : "bottom");
|
|
24009
|
-
var maximumClippingHeight = height - overflow.top - overflow.bottom, maximumClippingWidth = width - overflow.left - overflow.right, overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight), overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth), noShift = !state.middlewareData.shift, availableHeight = overflowAvailableHeight, availableWidth = overflowAvailableWidth;
|
|
24010
|
-
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x && (availableWidth = maximumClippingWidth), (_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y && (availableHeight = maximumClippingHeight), noShift && !alignment) {
|
|
24011
|
-
var xMin = max(overflow.left, 0), xMax = max(overflow.right, 0), yMin = max(overflow.top, 0), yMax = max(overflow.bottom, 0);
|
|
24012
|
-
isYAxis ? availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
24013
|
-
}
|
|
24014
|
-
await apply({
|
|
24015
|
-
...state,
|
|
24016
|
-
availableWidth,
|
|
24017
|
-
availableHeight
|
|
24018
|
-
});
|
|
24019
|
-
var nextDimensions = await platform2.getDimensions(elements.floating);
|
|
24020
|
-
return width !== nextDimensions.width || height !== nextDimensions.height ? {
|
|
24021
|
-
reset: {
|
|
24022
|
-
rects: !0
|
|
24023
|
-
}
|
|
24024
|
-
} : {};
|
|
24025
|
-
}
|
|
24026
|
-
};
|
|
24027
|
-
};
|
|
24028
|
-
}
|
|
24029
|
-
});
|
|
24030
|
-
|
|
24031
|
-
// ../../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js
|
|
24032
|
-
var require_floating_ui_react_native = __commonJS({
|
|
24033
|
-
"../../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js"(exports2) {
|
|
24034
|
-
"use strict";
|
|
24035
|
-
var core = (init_floating_ui_core_esm(), __toCommonJS(floating_ui_core_esm_exports)), React4 = require("react"), reactNative = require("react-native");
|
|
24036
|
-
function _interopNamespaceDefault(e) {
|
|
24037
|
-
var n = /* @__PURE__ */ Object.create(null);
|
|
24038
|
-
return e && Object.keys(e).forEach(function(k) {
|
|
24039
|
-
if (k !== "default") {
|
|
24040
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24041
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
24042
|
-
enumerable: !0,
|
|
24043
|
-
get: function() {
|
|
24044
|
-
return e[k];
|
|
24045
|
-
}
|
|
24046
|
-
});
|
|
24047
|
-
}
|
|
24048
|
-
}), n.default = e, Object.freeze(n);
|
|
24049
|
-
}
|
|
24050
|
-
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React4), ORIGIN$1 = {
|
|
24051
|
-
x: 0,
|
|
24052
|
-
y: 0
|
|
24053
|
-
}, isAndroid = reactNative.Platform.OS === "android";
|
|
24054
|
-
function isView(reference) {
|
|
24055
|
-
return "measure" in reference;
|
|
24056
|
-
}
|
|
24057
|
-
var createPlatform = function(_ref) {
|
|
24058
|
-
var { offsetParent, sameScrollView = !0, scrollOffsets = ORIGIN$1 } = _ref;
|
|
24059
|
-
return {
|
|
24060
|
-
getElementRects(_ref2) {
|
|
24061
|
-
var { reference, floating } = _ref2;
|
|
24062
|
-
return new Promise(function(resolve) {
|
|
24063
|
-
var onMeasure = function(offsetX, offsetY) {
|
|
24064
|
-
offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), floating.measure(function(x, y, width, height) {
|
|
24065
|
-
var floatingRect = {
|
|
24066
|
-
width,
|
|
24067
|
-
height,
|
|
24068
|
-
...ORIGIN$1
|
|
24069
|
-
}, method = sameScrollView ? "measure" : "measureInWindow";
|
|
24070
|
-
if (isView(reference))
|
|
24071
|
-
reference[method](function(x2, y2, width2, height2) {
|
|
24072
|
-
y2 = isAndroid && !sameScrollView && reactNative.StatusBar.currentHeight ? y2 + reactNative.StatusBar.currentHeight : y2;
|
|
24073
|
-
var referenceRect2 = {
|
|
24074
|
-
width: width2,
|
|
24075
|
-
height: height2,
|
|
24076
|
-
x: x2 - offsetX,
|
|
24077
|
-
y: y2 - offsetY
|
|
24078
|
-
};
|
|
24079
|
-
resolve({
|
|
24080
|
-
reference: referenceRect2,
|
|
24081
|
-
floating: floatingRect
|
|
24082
|
-
});
|
|
24083
|
-
});
|
|
24084
|
-
else {
|
|
24085
|
-
var boundingRect = reference.getBoundingClientRect(), referenceRect = {
|
|
24086
|
-
width: boundingRect.width,
|
|
24087
|
-
height: boundingRect.height,
|
|
24088
|
-
x: boundingRect.x - offsetX,
|
|
24089
|
-
y: boundingRect.y - offsetY
|
|
24090
|
-
};
|
|
24091
|
-
resolve({
|
|
24092
|
-
reference: referenceRect,
|
|
24093
|
-
floating: floatingRect
|
|
24094
|
-
});
|
|
24095
|
-
}
|
|
24096
|
-
});
|
|
24097
|
-
};
|
|
24098
|
-
offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
|
|
24099
|
-
});
|
|
24100
|
-
},
|
|
24101
|
-
getClippingRect() {
|
|
24102
|
-
var { width: windowWidth, height: windowHeight } = reactNative.Dimensions.get("window"), { height: screenHeight } = reactNative.Dimensions.get("screen"), statusBarHeight = reactNative.StatusBar.currentHeight || 0, navigationBarHeight = isAndroid ? screenHeight - windowHeight - statusBarHeight : 0;
|
|
24103
|
-
return Promise.resolve({
|
|
24104
|
-
width: windowWidth,
|
|
24105
|
-
height: screenHeight - navigationBarHeight,
|
|
24106
|
-
...sameScrollView ? scrollOffsets : ORIGIN$1
|
|
24107
|
-
});
|
|
24108
|
-
},
|
|
24109
|
-
convertOffsetParentRelativeRectToViewportRelativeRect(_ref3) {
|
|
24110
|
-
var { rect } = _ref3;
|
|
24111
|
-
return new Promise(function(resolve) {
|
|
24112
|
-
var onMeasure = function(offsetX, offsetY) {
|
|
24113
|
-
offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), resolve({
|
|
24114
|
-
...rect,
|
|
24115
|
-
x: rect.x + offsetX,
|
|
24116
|
-
y: rect.y + offsetY
|
|
24117
|
-
});
|
|
24118
|
-
};
|
|
24119
|
-
offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
|
|
24120
|
-
});
|
|
24121
|
-
},
|
|
24122
|
-
getDimensions: function(element) {
|
|
24123
|
-
return new Promise(function(resolve) {
|
|
24124
|
-
return element.measure(function(x, y, width, height) {
|
|
24125
|
-
return resolve({
|
|
24126
|
-
width,
|
|
24127
|
-
height
|
|
24128
|
-
});
|
|
24129
|
-
});
|
|
24130
|
-
});
|
|
24131
|
-
}
|
|
24132
|
-
};
|
|
24133
|
-
};
|
|
24134
|
-
function deepEqual(a, b) {
|
|
24135
|
-
if (a === b)
|
|
24136
|
-
return !0;
|
|
24137
|
-
if (typeof a != typeof b)
|
|
24138
|
-
return !1;
|
|
24139
|
-
if (typeof a == "function" && a.toString() === b.toString())
|
|
24140
|
-
return !0;
|
|
24141
|
-
var length, i, keys;
|
|
24142
|
-
if (a && b && typeof a == "object") {
|
|
24143
|
-
if (Array.isArray(a)) {
|
|
24144
|
-
if (length = a.length, length !== b.length) return !1;
|
|
24145
|
-
for (i = length; i-- !== 0; )
|
|
24146
|
-
if (!deepEqual(a[i], b[i]))
|
|
24147
|
-
return !1;
|
|
24148
|
-
return !0;
|
|
24149
|
-
}
|
|
24150
|
-
if (keys = Object.keys(a), length = keys.length, length !== Object.keys(b).length)
|
|
24151
|
-
return !1;
|
|
24152
|
-
for (i = length; i-- !== 0; )
|
|
24153
|
-
if (!{}.hasOwnProperty.call(b, keys[i]))
|
|
24154
|
-
return !1;
|
|
24155
|
-
for (i = length; i-- !== 0; ) {
|
|
24156
|
-
var key = keys[i];
|
|
24157
|
-
if (!(key === "_owner" && a.$$typeof) && !deepEqual(a[key], b[key]))
|
|
24158
|
-
return !1;
|
|
24159
|
-
}
|
|
24160
|
-
return !0;
|
|
24161
|
-
}
|
|
24162
|
-
return a !== a && b !== b;
|
|
24163
|
-
}
|
|
24164
|
-
var ORIGIN = {
|
|
24165
|
-
x: 0,
|
|
24166
|
-
y: 0
|
|
24167
|
-
};
|
|
24168
|
-
function useFloating2(options) {
|
|
24169
|
-
options === void 0 && (options = {});
|
|
24170
|
-
var { placement = "bottom", middleware = [], sameScrollView = !0, elements: { reference: externalReference, floating: externalFloating, offsetParent: externalOffsetParent } = {} } = options, [_reference, _setReference] = React__namespace.useState(null), [_floating, _setFloating] = React__namespace.useState(null), [_offsetParent, _setOffsetParent] = React__namespace.useState(null), referenceEl = externalReference || _reference, floatingEl = externalFloating || _floating, offsetParentEl = externalOffsetParent || _offsetParent, setReference = React__namespace.useCallback(function(node) {
|
|
24171
|
-
node !== referenceRef.current && (referenceRef.current = node, _setReference(node));
|
|
24172
|
-
}, []), setFloating = React__namespace.useCallback(function(node) {
|
|
24173
|
-
node !== floatingRef.current && (floatingRef.current = node, _setFloating(node));
|
|
24174
|
-
}, []), setOffsetParent = React__namespace.useCallback(function(node) {
|
|
24175
|
-
node !== offsetParentRef.current && (offsetParentRef.current = node, _setOffsetParent(node));
|
|
24176
|
-
}, []), referenceRef = React__namespace.useRef(null), floatingRef = React__namespace.useRef(null), offsetParentRef = React__namespace.useRef(null), [data, setData] = React__namespace.useState({
|
|
24177
|
-
x: 0,
|
|
24178
|
-
y: 0,
|
|
24179
|
-
placement,
|
|
24180
|
-
strategy: "absolute",
|
|
24181
|
-
middlewareData: {}
|
|
24182
|
-
}), [scrollOffsets, setScrollOffsets] = React__namespace.useState(ORIGIN), [latestMiddleware, setLatestMiddleware] = React__namespace.useState(middleware);
|
|
24183
|
-
deepEqual(latestMiddleware, middleware) || setLatestMiddleware(middleware);
|
|
24184
|
-
var platform2 = React__namespace.useMemo(function() {
|
|
24185
|
-
return createPlatform({
|
|
24186
|
-
offsetParent: offsetParentEl,
|
|
24187
|
-
scrollOffsets,
|
|
24188
|
-
sameScrollView
|
|
24189
|
-
});
|
|
24190
|
-
}, [
|
|
24191
|
-
offsetParentEl,
|
|
24192
|
-
scrollOffsets,
|
|
24193
|
-
sameScrollView
|
|
24194
|
-
]), update = React__namespace.useCallback(function() {
|
|
24195
|
-
!referenceRef.current || !floatingRef.current || core.computePosition(referenceRef.current, floatingRef.current, {
|
|
24196
|
-
middleware: latestMiddleware,
|
|
24197
|
-
platform: platform2,
|
|
24198
|
-
placement
|
|
24199
|
-
}).then(function(data2) {
|
|
24200
|
-
isMountedRef.current && setData(data2);
|
|
24201
|
-
});
|
|
24202
|
-
}, [
|
|
24203
|
-
latestMiddleware,
|
|
24204
|
-
platform2,
|
|
24205
|
-
placement
|
|
24206
|
-
]);
|
|
24207
|
-
React__namespace.useLayoutEffect(function() {
|
|
24208
|
-
referenceEl && (referenceRef.current = referenceEl), floatingEl && (floatingRef.current = floatingEl), offsetParentEl && (offsetParentRef.current = offsetParentEl);
|
|
24209
|
-
var frame = requestAnimationFrame(update);
|
|
24210
|
-
return function() {
|
|
24211
|
-
cancelAnimationFrame(frame);
|
|
24212
|
-
};
|
|
24213
|
-
}, [
|
|
24214
|
-
referenceEl,
|
|
24215
|
-
floatingEl,
|
|
24216
|
-
offsetParentEl,
|
|
24217
|
-
update
|
|
24218
|
-
]);
|
|
24219
|
-
var isMountedRef = React__namespace.useRef(!0);
|
|
24220
|
-
React__namespace.useLayoutEffect(function() {
|
|
24221
|
-
return isMountedRef.current = !0, function() {
|
|
24222
|
-
isMountedRef.current = !1;
|
|
24223
|
-
};
|
|
24224
|
-
}, []);
|
|
24225
|
-
var refs = React__namespace.useMemo(function() {
|
|
24226
|
-
return {
|
|
24227
|
-
reference: referenceRef,
|
|
24228
|
-
floating: floatingRef,
|
|
24229
|
-
offsetParent: offsetParentRef,
|
|
24230
|
-
setReference,
|
|
24231
|
-
setFloating,
|
|
24232
|
-
setOffsetParent
|
|
24233
|
-
};
|
|
24234
|
-
}, [
|
|
24235
|
-
setReference,
|
|
24236
|
-
setFloating,
|
|
24237
|
-
setOffsetParent
|
|
24238
|
-
]), elements = React__namespace.useMemo(function() {
|
|
24239
|
-
return {
|
|
24240
|
-
reference: referenceEl,
|
|
24241
|
-
floating: floatingEl,
|
|
24242
|
-
offsetParent: offsetParentEl
|
|
24243
|
-
};
|
|
24244
|
-
}, [
|
|
24245
|
-
referenceEl,
|
|
24246
|
-
floatingEl,
|
|
24247
|
-
offsetParentEl
|
|
24248
|
-
]), floatingStyles = React__namespace.useMemo(function() {
|
|
24249
|
-
return elements.floating ? {
|
|
24250
|
-
position: "absolute",
|
|
24251
|
-
left: data.x,
|
|
24252
|
-
top: data.y
|
|
24253
|
-
} : {
|
|
24254
|
-
position: "absolute",
|
|
24255
|
-
left: 0,
|
|
24256
|
-
top: 0
|
|
24257
|
-
};
|
|
24258
|
-
}, [
|
|
24259
|
-
elements.floating,
|
|
24260
|
-
data.x,
|
|
24261
|
-
data.y
|
|
24262
|
-
]);
|
|
24263
|
-
return React__namespace.useMemo(function() {
|
|
24264
|
-
return {
|
|
24265
|
-
...data,
|
|
24266
|
-
update,
|
|
24267
|
-
refs,
|
|
24268
|
-
elements,
|
|
24269
|
-
floatingStyles,
|
|
24270
|
-
offsetParent: setOffsetParent,
|
|
24271
|
-
reference: setReference,
|
|
24272
|
-
floating: setFloating,
|
|
24273
|
-
scrollProps: {
|
|
24274
|
-
onScroll: function(event) {
|
|
24275
|
-
return setScrollOffsets(event.nativeEvent.contentOffset);
|
|
24276
|
-
},
|
|
24277
|
-
scrollEventThrottle: 16
|
|
24278
|
-
}
|
|
24279
|
-
};
|
|
24280
|
-
}, [
|
|
24281
|
-
data,
|
|
24282
|
-
refs,
|
|
24283
|
-
elements,
|
|
24284
|
-
floatingStyles,
|
|
24285
|
-
setReference,
|
|
24286
|
-
setFloating,
|
|
24287
|
-
setOffsetParent,
|
|
24288
|
-
update
|
|
24289
|
-
]);
|
|
24290
|
-
}
|
|
24291
|
-
var arrow$1 = function(options) {
|
|
24292
|
-
function isRef(value) {
|
|
24293
|
-
return {}.hasOwnProperty.call(value, "current");
|
|
24294
|
-
}
|
|
24295
|
-
return {
|
|
24296
|
-
name: "arrow",
|
|
24297
|
-
options,
|
|
24298
|
-
fn(state) {
|
|
24299
|
-
var { element, padding } = typeof options == "function" ? options(state) : options;
|
|
24300
|
-
return element && isRef(element) ? element.current != null ? core.arrow({
|
|
24301
|
-
element: element.current,
|
|
24302
|
-
padding
|
|
24303
|
-
}).fn(state) : {} : element ? core.arrow({
|
|
24304
|
-
element,
|
|
24305
|
-
padding
|
|
24306
|
-
}).fn(state) : {};
|
|
24307
|
-
}
|
|
24308
|
-
};
|
|
24309
|
-
}, offset4 = function(options, deps) {
|
|
24310
|
-
return {
|
|
24311
|
-
...core.offset(options),
|
|
24312
|
-
options: [
|
|
24313
|
-
options,
|
|
24314
|
-
deps
|
|
24315
|
-
]
|
|
24316
|
-
};
|
|
24317
|
-
}, shift4 = function(options, deps) {
|
|
24318
|
-
return {
|
|
24319
|
-
...core.shift(options),
|
|
24320
|
-
options: [
|
|
24321
|
-
options,
|
|
24322
|
-
deps
|
|
24323
|
-
]
|
|
24324
|
-
};
|
|
24325
|
-
}, limitShift4 = function(options, deps) {
|
|
24326
|
-
return {
|
|
24327
|
-
...core.limitShift(options),
|
|
24328
|
-
options: [
|
|
24329
|
-
options,
|
|
24330
|
-
deps
|
|
24331
|
-
]
|
|
24332
|
-
};
|
|
24333
|
-
}, flip4 = function(options, deps) {
|
|
24334
|
-
return {
|
|
24335
|
-
...core.flip(options),
|
|
24336
|
-
options: [
|
|
24337
|
-
options,
|
|
24338
|
-
deps
|
|
24339
|
-
]
|
|
24340
|
-
};
|
|
24341
|
-
}, size4 = function(options, deps) {
|
|
24342
|
-
return {
|
|
24343
|
-
...core.size(options),
|
|
24344
|
-
options: [
|
|
24345
|
-
options,
|
|
24346
|
-
deps
|
|
24347
|
-
]
|
|
24348
|
-
};
|
|
24349
|
-
}, autoPlacement4 = function(options, deps) {
|
|
24350
|
-
return {
|
|
24351
|
-
...core.autoPlacement(options),
|
|
24352
|
-
options: [
|
|
24353
|
-
options,
|
|
24354
|
-
deps
|
|
24355
|
-
]
|
|
24356
|
-
};
|
|
24357
|
-
}, hide4 = function(options, deps) {
|
|
24358
|
-
return {
|
|
24359
|
-
...core.hide(options),
|
|
24360
|
-
options: [
|
|
24361
|
-
options,
|
|
24362
|
-
deps
|
|
24363
|
-
]
|
|
24364
|
-
};
|
|
24365
|
-
}, inline4 = function(options, deps) {
|
|
24366
|
-
return {
|
|
24367
|
-
...core.inline(options),
|
|
24368
|
-
options: [
|
|
24369
|
-
options,
|
|
24370
|
-
deps
|
|
24371
|
-
]
|
|
24372
|
-
};
|
|
24373
|
-
}, arrow3 = function(options, deps) {
|
|
24374
|
-
return {
|
|
24375
|
-
...arrow$1(options),
|
|
24376
|
-
options: [
|
|
24377
|
-
options,
|
|
24378
|
-
deps
|
|
24379
|
-
]
|
|
24380
|
-
};
|
|
24381
|
-
};
|
|
24382
|
-
Object.defineProperty(exports2, "detectOverflow", {
|
|
24383
|
-
enumerable: !0,
|
|
24384
|
-
get: function() {
|
|
24385
|
-
return core.detectOverflow;
|
|
24386
|
-
}
|
|
24387
|
-
});
|
|
24388
|
-
exports2.arrow = arrow3;
|
|
24389
|
-
exports2.autoPlacement = autoPlacement4;
|
|
24390
|
-
exports2.flip = flip4;
|
|
24391
|
-
exports2.hide = hide4;
|
|
24392
|
-
exports2.inline = inline4;
|
|
24393
|
-
exports2.limitShift = limitShift4;
|
|
24394
|
-
exports2.offset = offset4;
|
|
24395
|
-
exports2.shift = shift4;
|
|
24396
|
-
exports2.size = size4;
|
|
24397
|
-
exports2.useFloating = useFloating2;
|
|
24398
|
-
}
|
|
24399
|
-
});
|
|
24400
|
-
|
|
24401
23366
|
// ../../core/floating/dist/cjs/Floating.native.js
|
|
24402
23367
|
var require_Floating_native = __commonJS({
|
|
24403
23368
|
"../../core/floating/dist/cjs/Floating.native.js"(exports2, module2) {
|
|
@@ -24446,7 +23411,7 @@ var require_Floating_native = __commonJS({
|
|
|
24446
23411
|
}
|
|
24447
23412
|
});
|
|
24448
23413
|
module2.exports = __toCommonJS2(Floating_native_exports);
|
|
24449
|
-
__reExport2(Floating_native_exports,
|
|
23414
|
+
__reExport2(Floating_native_exports, require_fake_react_native(), module2.exports);
|
|
24450
23415
|
var autoUpdate2 = function() {
|
|
24451
23416
|
}, platform2 = null;
|
|
24452
23417
|
}
|
|
@@ -24682,7 +23647,7 @@ var require_Popper_native = __commonJS({
|
|
|
24682
23647
|
}
|
|
24683
23648
|
});
|
|
24684
23649
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
24685
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_get_token2 = require_index_native20(), import_stacks3 = require_index_native22(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 =
|
|
23650
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_get_token2 = require_index_native20(), import_stacks3 = require_index_native22(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), PopperContext = (0, import_core12.createStyledContext)({}), { useStyledContext: usePopperContext, Provider: PopperProvider } = PopperContext, checkFloating = {
|
|
24686
23651
|
name: "checkFloating",
|
|
24687
23652
|
fn(data) {
|
|
24688
23653
|
return {
|
|
@@ -24696,7 +23661,7 @@ var require_Popper_native = __commonJS({
|
|
|
24696
23661
|
Object.assign(setupOptions, options);
|
|
24697
23662
|
}
|
|
24698
23663
|
function Popper(props) {
|
|
24699
|
-
var _middlewareData_checkFloating, { children, size:
|
|
23664
|
+
var _middlewareData_checkFloating, { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, __scopePopper } = props, [arrowEl, setArrow] = React4.useState(null), [arrowSize, setArrowSize] = React4.useState(0), offsetOptions = offset2 ?? arrowSize, floatingStyle = React4.useRef({}), floating = (0, import_floating.useFloating)({
|
|
24700
23665
|
strategy,
|
|
24701
23666
|
placement,
|
|
24702
23667
|
sameScrollView: !1,
|
|
@@ -24739,7 +23704,7 @@ var require_Popper_native = __commonJS({
|
|
|
24739
23704
|
keyboardOpen
|
|
24740
23705
|
]);
|
|
24741
23706
|
var popperContext = {
|
|
24742
|
-
size:
|
|
23707
|
+
size: size2,
|
|
24743
23708
|
arrowRef: setArrow,
|
|
24744
23709
|
arrowStyle: middlewareData.arrow,
|
|
24745
23710
|
onArrowSize: setArrowSize,
|
|
@@ -24791,7 +23756,7 @@ var require_Popper_native = __commonJS({
|
|
|
24791
23756
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
24792
23757
|
}
|
|
24793
23758
|
}), PopperContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24794
|
-
var { __scopePopper, enableAnimationForPositionChange, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size:
|
|
23759
|
+
var { __scopePopper, enableAnimationForPositionChange, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2 } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), [needsMeasure, setNeedsMeasure] = React4.useState(enableAnimationForPositionChange);
|
|
24795
23760
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
24796
23761
|
x && y && setNeedsMeasure(!1);
|
|
24797
23762
|
}, [
|
|
@@ -24824,7 +23789,7 @@ var require_Popper_native = __commonJS({
|
|
|
24824
23789
|
"data-placement": placement,
|
|
24825
23790
|
"data-strategy": strategy,
|
|
24826
23791
|
contain: "layout",
|
|
24827
|
-
size:
|
|
23792
|
+
size: size2,
|
|
24828
23793
|
...style,
|
|
24829
23794
|
...rest
|
|
24830
23795
|
}, "popper-content-frame")
|
|
@@ -24866,25 +23831,25 @@ var require_Popper_native = __commonJS({
|
|
|
24866
23831
|
bottom: "top",
|
|
24867
23832
|
left: "right"
|
|
24868
23833
|
}, PopperArrow = PopperArrowFrame.styleable(function(propsIn, forwardedRef) {
|
|
24869
|
-
var _context_arrowStyle, _context_arrowStyle1, { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset:
|
|
23834
|
+
var _context_arrowStyle, _context_arrowStyle1, { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset: offset2, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(__scopePopper), sizeVal = typeof sizeProp == "number" ? sizeProp : (0, import_core12.getVariableValue)((0, import_get_token2.getSpace)(sizeProp ?? context.size, {
|
|
24870
23835
|
shift: -2,
|
|
24871
23836
|
bounds: [
|
|
24872
23837
|
2
|
|
24873
23838
|
]
|
|
24874
|
-
})),
|
|
23839
|
+
})), size2 = Math.max(0, +sizeVal), { placement } = context, refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef), x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0, y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0, primaryPlacement = placement ? placement.split("-")[0] : "top", arrowStyle = {
|
|
24875
23840
|
x,
|
|
24876
23841
|
y,
|
|
24877
|
-
width:
|
|
24878
|
-
height:
|
|
23842
|
+
width: size2,
|
|
23843
|
+
height: size2
|
|
24879
23844
|
}, innerArrowStyle = {}, isVertical = primaryPlacement === "bottom" || primaryPlacement === "top";
|
|
24880
23845
|
if (primaryPlacement) {
|
|
24881
|
-
arrowStyle[isVertical ? "width" : "height"] =
|
|
23846
|
+
arrowStyle[isVertical ? "width" : "height"] = size2 * 2;
|
|
24882
23847
|
var oppSide = opposites[primaryPlacement];
|
|
24883
|
-
oppSide && (arrowStyle[oppSide] = -
|
|
23848
|
+
oppSide && (arrowStyle[oppSide] = -size2, innerArrowStyle[oppSide] = size2 / 2), (oppSide === "top" || oppSide === "bottom") && (arrowStyle.left = 0), (oppSide === "left" || oppSide === "right") && (arrowStyle.top = 0), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
24884
23849
|
var _context_onArrowSize;
|
|
24885
|
-
(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context,
|
|
23850
|
+
(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size2);
|
|
24886
23851
|
}, [
|
|
24887
|
-
|
|
23852
|
+
size2,
|
|
24888
23853
|
context.onArrowSize
|
|
24889
23854
|
]);
|
|
24890
23855
|
}
|
|
@@ -24892,8 +23857,8 @@ var require_Popper_native = __commonJS({
|
|
|
24892
23857
|
ref: refs,
|
|
24893
23858
|
...arrowStyle,
|
|
24894
23859
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperArrowFrame, {
|
|
24895
|
-
width:
|
|
24896
|
-
height:
|
|
23860
|
+
width: size2,
|
|
23861
|
+
height: size2,
|
|
24897
23862
|
...arrowProps,
|
|
24898
23863
|
...innerArrowStyle,
|
|
24899
23864
|
rotate: "45deg",
|
|
@@ -25096,7 +24061,7 @@ var require_Popover_native = __commonJS({
|
|
|
25096
24061
|
}
|
|
25097
24062
|
});
|
|
25098
24063
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
25099
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native29(), import_animate = require_index_native55(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_popper = require_index_native57(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_scroll_view = require_index_native35(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native27(), React4 = __toESM2(require("react")), import_react_native4 =
|
|
24064
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native29(), import_animate = require_index_native55(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_popper = require_index_native57(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_scroll_view = require_index_native35(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native27(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_useFloatingContext = require_useFloatingContext_native(), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25100
24065
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
25101
24066
|
return React4.useEffect(function() {
|
|
25102
24067
|
return onCustomAnchorAdd(), function() {
|
|
@@ -25320,7 +24285,8 @@ var require_Popover_native = __commonJS({
|
|
|
25320
24285
|
Close: PopoverClose,
|
|
25321
24286
|
Adapt: import_adapt.Adapt,
|
|
25322
24287
|
ScrollView: PopoverScrollView,
|
|
25323
|
-
Sheet: import_sheet.Sheet.Controlled
|
|
24288
|
+
Sheet: import_sheet.Sheet.Controlled,
|
|
24289
|
+
FocusScope: import_focus_scope.FocusScopeController
|
|
25324
24290
|
}), PopoverInner = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25325
24291
|
var { children, open: openProp, defaultOpen, onOpenChange, __scopePopover, keepChildrenMounted, hoverable, disableFocus, id, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
25326
24292
|
prop: openProp,
|
|
@@ -25557,8 +24523,8 @@ var require_Progress_native = __commonJS({
|
|
|
25557
24523
|
animation: context.width ? animation : null
|
|
25558
24524
|
});
|
|
25559
24525
|
});
|
|
25560
|
-
function defaultGetValueLabel(value,
|
|
25561
|
-
return `${Math.round(value /
|
|
24526
|
+
function defaultGetValueLabel(value, max) {
|
|
24527
|
+
return `${Math.round(value / max * 100)}%`;
|
|
25562
24528
|
}
|
|
25563
24529
|
function getProgressState(value, maxValue) {
|
|
25564
24530
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
@@ -25566,11 +24532,11 @@ var require_Progress_native = __commonJS({
|
|
|
25566
24532
|
function isNumber(value) {
|
|
25567
24533
|
return typeof value == "number";
|
|
25568
24534
|
}
|
|
25569
|
-
function isValidMaxNumber(
|
|
25570
|
-
return isNumber(
|
|
24535
|
+
function isValidMaxNumber(max) {
|
|
24536
|
+
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
25571
24537
|
}
|
|
25572
|
-
function isValidValueNumber(value,
|
|
25573
|
-
return isNumber(value) && !Number.isNaN(value) && value <=
|
|
24538
|
+
function isValidValueNumber(value, max) {
|
|
24539
|
+
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
25574
24540
|
}
|
|
25575
24541
|
var DEFAULT_MAX = 100, ProgressFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
25576
24542
|
name: "Progress",
|
|
@@ -25584,10 +24550,10 @@ var require_Progress_native = __commonJS({
|
|
|
25584
24550
|
},
|
|
25585
24551
|
size: {
|
|
25586
24552
|
"...size": function(val) {
|
|
25587
|
-
var
|
|
24553
|
+
var size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.25);
|
|
25588
24554
|
return {
|
|
25589
|
-
height:
|
|
25590
|
-
minWidth: (0, import_core12.getVariableValue)(
|
|
24555
|
+
height: size2,
|
|
24556
|
+
minWidth: (0, import_core12.getVariableValue)(size2) * 20,
|
|
25591
24557
|
width: "100%"
|
|
25592
24558
|
};
|
|
25593
24559
|
}
|
|
@@ -25603,26 +24569,26 @@ var require_Progress_native = __commonJS({
|
|
|
25603
24569
|
value: valueProp,
|
|
25604
24570
|
max: maxProp,
|
|
25605
24571
|
getValueLabel = defaultGetValueLabel,
|
|
25606
|
-
size:
|
|
24572
|
+
size: size2 = "$true",
|
|
25607
24573
|
...progressProps
|
|
25608
|
-
} = props,
|
|
24574
|
+
} = props, max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max) ? valueProp : null, valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0, [width, setWidth] = React4.useState(0);
|
|
25609
24575
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressProvider, {
|
|
25610
24576
|
scope: __scopeProgress,
|
|
25611
24577
|
value,
|
|
25612
|
-
max
|
|
24578
|
+
max,
|
|
25613
24579
|
width,
|
|
25614
24580
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressFrame, {
|
|
25615
|
-
"aria-valuemax":
|
|
24581
|
+
"aria-valuemax": max,
|
|
25616
24582
|
"aria-valuemin": 0,
|
|
25617
24583
|
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
25618
24584
|
"aria-valuetext": valueLabel,
|
|
25619
24585
|
// @ts-ignore
|
|
25620
24586
|
role: "progressbar",
|
|
25621
|
-
"data-state": getProgressState(value,
|
|
24587
|
+
"data-state": getProgressState(value, max),
|
|
25622
24588
|
"data-value": value ?? void 0,
|
|
25623
|
-
"data-max":
|
|
24589
|
+
"data-max": max,
|
|
25624
24590
|
...progressProps.unstyled !== !0 && {
|
|
25625
|
-
size:
|
|
24591
|
+
size: size2
|
|
25626
24592
|
},
|
|
25627
24593
|
...progressProps,
|
|
25628
24594
|
onLayout: function(e) {
|
|
@@ -25779,10 +24745,10 @@ var require_RadioGroup_native = __commonJS({
|
|
|
25779
24745
|
},
|
|
25780
24746
|
size: {
|
|
25781
24747
|
"...size": function(value, param) {
|
|
25782
|
-
var { props } = param, _props_scaleSize,
|
|
24748
|
+
var { props } = param, _props_scaleSize, size2 = Math.floor((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(value)) * ((_props_scaleSize = props.scaleSize) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
|
|
25783
24749
|
return {
|
|
25784
|
-
width:
|
|
25785
|
-
height:
|
|
24750
|
+
width: size2,
|
|
24751
|
+
height: size2
|
|
25786
24752
|
};
|
|
25787
24753
|
}
|
|
25788
24754
|
}
|
|
@@ -26016,7 +24982,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26016
24982
|
}
|
|
26017
24983
|
});
|
|
26018
24984
|
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
26019
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_focusable2 = require_index_native46(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_use_controllable_state = require_index_native10(), import_react3 = require("react"), import_BubbleInput = require_BubbleInput_native2(),
|
|
24985
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_focusable2 = require_index_native46(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_use_controllable_state = require_index_native10(), import_react3 = require("react"), import_BubbleInput = require_BubbleInput_native2(), import_utils = require_utils_native3();
|
|
26020
24986
|
function useRadioGroup(params) {
|
|
26021
24987
|
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
26022
24988
|
prop: valueProp,
|
|
@@ -26100,7 +25066,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26100
25066
|
}),
|
|
26101
25067
|
native,
|
|
26102
25068
|
frameAttrs: {
|
|
26103
|
-
"data-state": (0,
|
|
25069
|
+
"data-state": (0, import_utils.getState)(checked),
|
|
26104
25070
|
"data-disabled": isDisabled ? "" : void 0,
|
|
26105
25071
|
role: "radio",
|
|
26106
25072
|
"aria-labelledby": labelledBy,
|
|
@@ -26139,7 +25105,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26139
25105
|
var { radioGroupItemContext, disabled, ...rest } = params, { checked } = (0, import_react3.useContext)(radioGroupItemContext);
|
|
26140
25106
|
return {
|
|
26141
25107
|
checked,
|
|
26142
|
-
"data-state": (0,
|
|
25108
|
+
"data-state": (0, import_utils.getState)(checked),
|
|
26143
25109
|
"data-disabled": disabled ? "" : void 0,
|
|
26144
25110
|
...rest
|
|
26145
25111
|
};
|
|
@@ -27104,7 +26070,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
27104
26070
|
ellipse: !0
|
|
27105
26071
|
},
|
|
27106
26072
|
...restProps
|
|
27107
|
-
}), context = (0, import_context.useSelectItemParentContext)(ITEM_NAME, __scopeSelect), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size:
|
|
26073
|
+
}), context = (0, import_context.useSelectItemParentContext)(ITEM_NAME, __scopeSelect), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size: size2, onActiveChange, initialValue } = context, [isSelected, setSelected] = React4.useState(initialValue === value);
|
|
27108
26074
|
React4.useEffect(function() {
|
|
27109
26075
|
return activeIndexSubscribe(function(i) {
|
|
27110
26076
|
var isActive = index === i;
|
|
@@ -27184,7 +26150,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
27184
26150
|
hoverTheme: !0,
|
|
27185
26151
|
focusTheme: !0,
|
|
27186
26152
|
cursor: "default",
|
|
27187
|
-
size:
|
|
26153
|
+
size: size2,
|
|
27188
26154
|
outlineOffset: -0.5,
|
|
27189
26155
|
focusVisibleStyle: {
|
|
27190
26156
|
outlineColor: "$outlineColor",
|
|
@@ -27627,7 +26593,7 @@ var require_Select_native = __commonJS({
|
|
|
27627
26593
|
}
|
|
27628
26594
|
});
|
|
27629
26595
|
module2.exports = __toCommonJS2(Select_exports);
|
|
27630
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_focusable2 = require_index_native46(), import_get_token2 = require_index_native20(), import_helpers = require_index_native7(), import_list_item = require_index_native54(), import_separator = require_index_native63(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_text2 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_use_debounce = require_index_native64(), React4 = __toESM2(require("react")), import_context = require_context_native2(), import_SelectContent = require_SelectContent_native(), import_SelectImpl = require_SelectImpl_native(), import_SelectItem = require_SelectItem_native(), import_SelectItemText = require_SelectItemText_native(), import_SelectScrollButton = require_SelectScrollButton_native(), import_SelectTrigger = require_SelectTrigger_native(), import_SelectViewport = require_SelectViewport_native(), import_useSelectBreakpointActive = require_useSelectBreakpointActive_native(), VALUE_NAME = "SelectValue", SelectValueFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
26596
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_focus_scope = require_index_native33(), import_focusable2 = require_index_native46(), import_get_token2 = require_index_native20(), import_helpers = require_index_native7(), import_list_item = require_index_native54(), import_separator = require_index_native63(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_text2 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_use_debounce = require_index_native64(), React4 = __toESM2(require("react")), import_context = require_context_native2(), import_SelectContent = require_SelectContent_native(), import_SelectImpl = require_SelectImpl_native(), import_SelectItem = require_SelectItem_native(), import_SelectItemText = require_SelectItemText_native(), import_SelectScrollButton = require_SelectScrollButton_native(), import_SelectTrigger = require_SelectTrigger_native(), import_SelectViewport = require_SelectViewport_native(), import_useSelectBreakpointActive = require_useSelectBreakpointActive_native(), VALUE_NAME = "SelectValue", SelectValueFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
27631
26597
|
name: VALUE_NAME,
|
|
27632
26598
|
userSelect: "none"
|
|
27633
26599
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
@@ -27709,10 +26675,10 @@ var require_Select_native = __commonJS({
|
|
|
27709
26675
|
size: "$2"
|
|
27710
26676
|
}
|
|
27711
26677
|
}), SelectGroup = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
27712
|
-
var { __scopeSelect, ...groupProps } = props, groupId = React4.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), _itemParentContext_size,
|
|
26678
|
+
var { __scopeSelect, ...groupProps } = props, groupId = React4.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), _itemParentContext_size, size2 = (_itemParentContext_size = itemParentContext.size) !== null && _itemParentContext_size !== void 0 ? _itemParentContext_size : "$true", nativeSelectRef = React4.useRef(null), content = function() {
|
|
27713
26679
|
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, {
|
|
27714
26680
|
asChild: !0,
|
|
27715
|
-
size:
|
|
26681
|
+
size: size2,
|
|
27716
26682
|
// @ts-expect-error until we support typing based on tag
|
|
27717
26683
|
value: context.value,
|
|
27718
26684
|
id: itemParentContext.id,
|
|
@@ -27721,7 +26687,7 @@ var require_Select_native = __commonJS({
|
|
|
27721
26687
|
onChange: function(event) {
|
|
27722
26688
|
itemParentContext.onChange(event.currentTarget.value);
|
|
27723
26689
|
},
|
|
27724
|
-
size:
|
|
26690
|
+
size: size2,
|
|
27725
26691
|
ref: nativeSelectRef,
|
|
27726
26692
|
style: {
|
|
27727
26693
|
color: "var(--color)",
|
|
@@ -27798,7 +26764,8 @@ var require_Select_native = __commonJS({
|
|
|
27798
26764
|
Trigger: import_SelectTrigger.SelectTrigger,
|
|
27799
26765
|
Value: SelectValue,
|
|
27800
26766
|
Viewport: import_SelectViewport.SelectViewport,
|
|
27801
|
-
Sheet: import_sheet.Sheet.Controlled
|
|
26767
|
+
Sheet: import_sheet.Sheet.Controlled,
|
|
26768
|
+
FocusScope: import_focus_scope.FocusScopeController
|
|
27802
26769
|
});
|
|
27803
26770
|
function useEmitter() {
|
|
27804
26771
|
var listeners = React4.useRef();
|
|
@@ -28139,9 +27106,9 @@ var require_helpers_native3 = __commonJS({
|
|
|
28139
27106
|
return a - b;
|
|
28140
27107
|
});
|
|
28141
27108
|
}
|
|
28142
|
-
function convertValueToPercentage(value,
|
|
28143
|
-
var maxSteps =
|
|
28144
|
-
return percentPerStep * (value -
|
|
27109
|
+
function convertValueToPercentage(value, min, max) {
|
|
27110
|
+
var maxSteps = max - min, percentPerStep = 100 / maxSteps;
|
|
27111
|
+
return percentPerStep * (value - min);
|
|
28145
27112
|
}
|
|
28146
27113
|
function getLabel(index, totalValues) {
|
|
28147
27114
|
if (totalValues > 2) return `Value ${index + 1} of ${totalValues}`;
|
|
@@ -28158,14 +27125,14 @@ var require_helpers_native3 = __commonJS({
|
|
|
28158
27125
|
return distances.indexOf(closestDistance);
|
|
28159
27126
|
}
|
|
28160
27127
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
28161
|
-
var quarterWidth = width / 4, halfPercent = 50,
|
|
27128
|
+
var quarterWidth = width / 4, halfPercent = 50, offset2 = linearScale([
|
|
28162
27129
|
0,
|
|
28163
27130
|
halfPercent
|
|
28164
27131
|
], [
|
|
28165
27132
|
0,
|
|
28166
27133
|
quarterWidth
|
|
28167
27134
|
]);
|
|
28168
|
-
return (quarterWidth -
|
|
27135
|
+
return (quarterWidth - offset2(left) * direction) * direction;
|
|
28169
27136
|
}
|
|
28170
27137
|
function getStepsBetweenValues(values) {
|
|
28171
27138
|
return values.slice(0, -1).map(function(value, index) {
|
|
@@ -28263,14 +27230,14 @@ var require_SliderImpl_native = __commonJS({
|
|
|
28263
27230
|
},
|
|
28264
27231
|
size: function(val, extras) {
|
|
28265
27232
|
if (val) {
|
|
28266
|
-
var orientation = extras.props.orientation,
|
|
27233
|
+
var orientation = extras.props.orientation, size3 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 6);
|
|
28267
27234
|
return orientation === "horizontal" ? {
|
|
28268
|
-
height:
|
|
28269
|
-
borderRadius:
|
|
27235
|
+
height: size3,
|
|
27236
|
+
borderRadius: size3,
|
|
28270
27237
|
justifyContent: "center"
|
|
28271
27238
|
} : {
|
|
28272
|
-
width:
|
|
28273
|
-
borderRadius:
|
|
27239
|
+
width: size3,
|
|
27240
|
+
borderRadius: size3,
|
|
28274
27241
|
alignItems: "center"
|
|
28275
27242
|
};
|
|
28276
27243
|
}
|
|
@@ -28415,7 +27382,7 @@ var require_Slider_native = __commonJS({
|
|
|
28415
27382
|
1e3
|
|
28416
27383
|
));
|
|
28417
27384
|
var _setInterval, SliderHorizontal = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
28418
|
-
var { min
|
|
27385
|
+
var { min, max, dir, onSlideStart, onSlideMove, onStepKeyDown, onSlideEnd, ...sliderProps } = props, direction = (0, import_use_direction.useDirection)(dir), isDirectionLTR = direction === "ltr", sliderRef = React4.useRef(null), [state, setState_] = React4.useState(function() {
|
|
28419
27386
|
return {
|
|
28420
27387
|
size: 0,
|
|
28421
27388
|
offset: 0
|
|
@@ -28426,11 +27393,11 @@ var require_Slider_native = __commonJS({
|
|
|
28426
27393
|
0,
|
|
28427
27394
|
state.size
|
|
28428
27395
|
], output = isDirectionLTR ? [
|
|
28429
|
-
|
|
28430
|
-
|
|
27396
|
+
min,
|
|
27397
|
+
max
|
|
28431
27398
|
] : [
|
|
28432
|
-
|
|
28433
|
-
|
|
27399
|
+
max,
|
|
27400
|
+
min
|
|
28434
27401
|
], value = (0, import_helpers3.linearScale)(input, output);
|
|
28435
27402
|
return value(pointerPosition);
|
|
28436
27403
|
}
|
|
@@ -28513,7 +27480,7 @@ var require_Slider_native = __commonJS({
|
|
|
28513
27480
|
}, []);
|
|
28514
27481
|
}
|
|
28515
27482
|
var SliderVertical = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
28516
|
-
var { min
|
|
27483
|
+
var { min, max, onSlideStart, onSlideMove, onStepKeyDown, onSlideEnd, ...sliderProps } = props, [state, setState_] = React4.useState(function() {
|
|
28517
27484
|
return {
|
|
28518
27485
|
size: 0,
|
|
28519
27486
|
offset: 0
|
|
@@ -28524,8 +27491,8 @@ var require_Slider_native = __commonJS({
|
|
|
28524
27491
|
0,
|
|
28525
27492
|
state.size
|
|
28526
27493
|
], output = [
|
|
28527
|
-
|
|
28528
|
-
|
|
27494
|
+
max,
|
|
27495
|
+
min
|
|
28529
27496
|
], value = (0, import_helpers3.linearScale)(input, output);
|
|
28530
27497
|
return value(pointerPosition);
|
|
28531
27498
|
}
|
|
@@ -28634,14 +27601,14 @@ var require_Slider_native = __commonJS({
|
|
|
28634
27601
|
});
|
|
28635
27602
|
SliderTrackActive.displayName = RANGE_NAME;
|
|
28636
27603
|
var getThumbSize = function(val) {
|
|
28637
|
-
var tokens = (0, import_core12.getTokens)(),
|
|
27604
|
+
var tokens = (0, import_core12.getTokens)(), size2 = typeof val == "number" ? val : (0, import_get_token2.getSize)(tokens.size[val], {
|
|
28638
27605
|
shift: -1
|
|
28639
27606
|
});
|
|
28640
27607
|
return {
|
|
28641
|
-
width:
|
|
28642
|
-
height:
|
|
28643
|
-
minWidth:
|
|
28644
|
-
minHeight:
|
|
27608
|
+
width: size2,
|
|
27609
|
+
height: size2,
|
|
27610
|
+
minWidth: size2,
|
|
27611
|
+
minHeight: size2
|
|
28645
27612
|
};
|
|
28646
27613
|
}, SliderThumbFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
28647
27614
|
name: "SliderThumb",
|
|
@@ -28665,10 +27632,10 @@ var require_Slider_native = __commonJS({
|
|
|
28665
27632
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
28666
27633
|
}
|
|
28667
27634
|
}), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
|
|
28668
|
-
var { __scopeSlider, index, circular, size: sizeProp, ...thumbProps } = props, context = (0, import_constants22.useSliderContext)(__scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(__scopeSlider), [thumb, setThumb] = React4.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, setThumb), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers3.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers3.getLabel)(index, context.values.length), _ref, sizeIn = (_ref = sizeProp ?? context.size) !== null && _ref !== void 0 ? _ref : "$true", [
|
|
27635
|
+
var { __scopeSlider, index, circular, size: sizeProp, ...thumbProps } = props, context = (0, import_constants22.useSliderContext)(__scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(__scopeSlider), [thumb, setThumb] = React4.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, setThumb), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers3.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers3.getLabel)(index, context.values.length), _ref, sizeIn = (_ref = sizeProp ?? context.size) !== null && _ref !== void 0 ? _ref : "$true", [size2, setSize] = React4.useState(function() {
|
|
28669
27636
|
var estimatedSize = (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width);
|
|
28670
27637
|
return estimatedSize;
|
|
28671
|
-
}), thumbInBoundsOffset =
|
|
27638
|
+
}), thumbInBoundsOffset = size2 ? (0, import_helpers3.getThumbInBoundsOffset)(size2, percent, orientation.direction) : 0;
|
|
28672
27639
|
React4.useEffect(function() {
|
|
28673
27640
|
if (thumb) return context.thumbs.set(thumb, index), function() {
|
|
28674
27641
|
context.thumbs.delete(thumb);
|
|
@@ -28679,18 +27646,18 @@ var require_Slider_native = __commonJS({
|
|
|
28679
27646
|
index
|
|
28680
27647
|
]);
|
|
28681
27648
|
var positionalStyles = context.orientation === "horizontal" ? {
|
|
28682
|
-
x: thumbInBoundsOffset -
|
|
28683
|
-
y: -
|
|
27649
|
+
x: thumbInBoundsOffset - size2 / 2,
|
|
27650
|
+
y: -size2 / 2,
|
|
28684
27651
|
top: "50%",
|
|
28685
|
-
...
|
|
27652
|
+
...size2 === 0 && {
|
|
28686
27653
|
top: "auto",
|
|
28687
27654
|
bottom: "auto"
|
|
28688
27655
|
}
|
|
28689
27656
|
} : {
|
|
28690
|
-
x: -
|
|
28691
|
-
y:
|
|
27657
|
+
x: -size2 / 2,
|
|
27658
|
+
y: size2 / 2,
|
|
28692
27659
|
left: "50%",
|
|
28693
|
-
...
|
|
27660
|
+
...size2 === 0 && {
|
|
28694
27661
|
left: "auto",
|
|
28695
27662
|
right: "auto"
|
|
28696
27663
|
}
|
|
@@ -28737,8 +27704,8 @@ var require_Slider_native = __commonJS({
|
|
|
28737
27704
|
memo: !0
|
|
28738
27705
|
}
|
|
28739
27706
|
}), SliderComponent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
28740
|
-
var { name, min
|
|
28741
|
-
|
|
27707
|
+
var { name, min = 0, max = 100, step = 1, orientation = "horizontal", disabled = !1, minStepsBetweenThumbs = 0, defaultValue = [
|
|
27708
|
+
min
|
|
28742
27709
|
], value, onValueChange = function() {
|
|
28743
27710
|
}, size: sizeProp, onSlideEnd, onSlideMove, onSlideStart, ...sliderProps } = props, sliderRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(sliderRef, forwardedRef), thumbRefs = React4.useRef(/* @__PURE__ */ new Map()), valueIndexToChangeRef = React4.useRef(0), isHorizontal = orientation === "horizontal", [values = [], setValues] = (0, import_use_controllable_state.useControllableState)({
|
|
28744
27711
|
prop: value,
|
|
@@ -28785,9 +27752,9 @@ var require_Slider_native = __commonJS({
|
|
|
28785
27752
|
updateValues(value2, valueIndexToChangeRef.current), onSlideMove == null || onSlideMove(event, value2);
|
|
28786
27753
|
}
|
|
28787
27754
|
function updateValues(value2, atIndex) {
|
|
28788
|
-
var decimalCount = (0, import_helpers3.getDecimalCount)(step), snapToStep = (0, import_helpers3.roundValue)(Math.round((value2 -
|
|
28789
|
-
|
|
28790
|
-
|
|
27755
|
+
var decimalCount = (0, import_helpers3.getDecimalCount)(step), snapToStep = (0, import_helpers3.roundValue)(Math.round((value2 - min) / step) * step + min, decimalCount), nextValue = (0, import_helpers2.clamp)(snapToStep, [
|
|
27756
|
+
min,
|
|
27757
|
+
max
|
|
28791
27758
|
]);
|
|
28792
27759
|
setValues(function() {
|
|
28793
27760
|
var prevValues = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], nextValues = (0, import_helpers3.getNextSortedValues)(prevValues, nextValue, atIndex);
|
|
@@ -28798,8 +27765,8 @@ var require_Slider_native = __commonJS({
|
|
|
28798
27765
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_constants22.SliderProvider, {
|
|
28799
27766
|
scope: props.__scopeSlider,
|
|
28800
27767
|
disabled,
|
|
28801
|
-
min
|
|
28802
|
-
max
|
|
27768
|
+
min,
|
|
27769
|
+
max,
|
|
28803
27770
|
valueIndexToChangeRef,
|
|
28804
27771
|
thumbs: thumbRefs.current,
|
|
28805
27772
|
values,
|
|
@@ -28810,8 +27777,8 @@ var require_Slider_native = __commonJS({
|
|
|
28810
27777
|
"data-disabled": disabled ? "" : void 0,
|
|
28811
27778
|
...sliderProps,
|
|
28812
27779
|
ref: composedRefs,
|
|
28813
|
-
min
|
|
28814
|
-
max
|
|
27780
|
+
min,
|
|
27781
|
+
max,
|
|
28815
27782
|
onSlideEnd,
|
|
28816
27783
|
onSlideStart: disabled ? void 0 : function(value2, target, event) {
|
|
28817
27784
|
if (target !== "thumb") {
|
|
@@ -28822,10 +27789,10 @@ var require_Slider_native = __commonJS({
|
|
|
28822
27789
|
},
|
|
28823
27790
|
onSlideMove: disabled ? void 0 : handleSlideMove,
|
|
28824
27791
|
onHomeKeyDown: function() {
|
|
28825
|
-
return !disabled && updateValues(
|
|
27792
|
+
return !disabled && updateValues(min, 0);
|
|
28826
27793
|
},
|
|
28827
27794
|
onEndKeyDown: function() {
|
|
28828
|
-
return !disabled && updateValues(
|
|
27795
|
+
return !disabled && updateValues(max, values.length - 1);
|
|
28829
27796
|
},
|
|
28830
27797
|
onStepKeyDown: function(param) {
|
|
28831
27798
|
var { event, direction: stepDirection } = param;
|
|
@@ -29123,10 +28090,10 @@ var require_Switch_native = __commonJS({
|
|
|
29123
28090
|
},
|
|
29124
28091
|
size: {
|
|
29125
28092
|
"...size": function(val) {
|
|
29126
|
-
var
|
|
28093
|
+
var size2 = getSwitchHeight(val);
|
|
29127
28094
|
return {
|
|
29128
|
-
height:
|
|
29129
|
-
width:
|
|
28095
|
+
height: size2,
|
|
28096
|
+
width: size2
|
|
29130
28097
|
};
|
|
29131
28098
|
}
|
|
29132
28099
|
}
|
|
@@ -29235,7 +28202,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
29235
28202
|
}
|
|
29236
28203
|
});
|
|
29237
28204
|
module2.exports = __toCommonJS2(createSwitch_exports);
|
|
29238
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native18(), import_focusable2 = require_index_native46(), import_switch_headless = require_index_native67(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 =
|
|
28205
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native18(), import_focusable2 = require_index_native46(), import_switch_headless = require_index_native67(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_StyledContext = require_StyledContext_native(), import_Switch = require_Switch_native(), SwitchContext = /* @__PURE__ */ React4.createContext({
|
|
29239
28206
|
checked: !1,
|
|
29240
28207
|
disabled: !1,
|
|
29241
28208
|
frameWidth: 0
|
|
@@ -29244,12 +28211,12 @@ var require_createSwitch_native = __commonJS({
|
|
|
29244
28211
|
var { disableActiveTheme, Frame = import_Switch.SwitchFrame, Thumb = import_Switch.SwitchThumb } = createProps;
|
|
29245
28212
|
Frame.staticConfig.context = import_StyledContext.SwitchStyledContext, Thumb.staticConfig.context = import_StyledContext.SwitchStyledContext;
|
|
29246
28213
|
var SwitchThumbComponent = Thumb.styleable(function(props, forwardedRef) {
|
|
29247
|
-
var { size: sizeProp, unstyled: unstyledProp, nativeID, ...thumbProps } = props, context = React4.useContext(SwitchContext), { checked, disabled, frameWidth } = context, styledContext = import_StyledContext.SwitchStyledContext.useStyledContext(), { unstyled: unstyledContext, size: sizeContext } = styledContext, _ref, unstyled = process.env.TAMAGUI_HEADLESS === "1" ? !0 : (_ref = unstyledProp ?? unstyledContext) !== null && _ref !== void 0 ? _ref : !1, _ref1,
|
|
28214
|
+
var { size: sizeProp, unstyled: unstyledProp, nativeID, ...thumbProps } = props, context = React4.useContext(SwitchContext), { checked, disabled, frameWidth } = context, styledContext = import_StyledContext.SwitchStyledContext.useStyledContext(), { unstyled: unstyledContext, size: sizeContext } = styledContext, _ref, unstyled = process.env.TAMAGUI_HEADLESS === "1" ? !0 : (_ref = unstyledProp ?? unstyledContext) !== null && _ref !== void 0 ? _ref : !1, _ref1, size2 = (_ref1 = sizeProp ?? sizeContext) !== null && _ref1 !== void 0 ? _ref1 : "$true", initialChecked = React4.useRef(checked).current, initialWidth = (0, import_core12.getVariableValue)(props.width, "size"), [thumbWidth, setThumbWidth] = React4.useState(typeof initialWidth == "number" ? initialWidth : 0), distance = frameWidth - thumbWidth, x = initialChecked ? checked ? 0 : -distance : checked ? distance : 0;
|
|
29248
28215
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Thumb, {
|
|
29249
28216
|
ref: forwardedRef,
|
|
29250
28217
|
unstyled,
|
|
29251
28218
|
...unstyled === !1 && {
|
|
29252
|
-
size:
|
|
28219
|
+
size: size2,
|
|
29253
28220
|
...!disableActiveTheme && !unstyled && {
|
|
29254
28221
|
theme: checked ? "active" : null
|
|
29255
28222
|
}
|
|
@@ -29758,7 +28725,7 @@ var require_createTabs_native = __commonJS({
|
|
|
29758
28725
|
children
|
|
29759
28726
|
}, value) : null;
|
|
29760
28727
|
}), TabsComponent = TabsFrame.styleable(function(props, forwardedRef) {
|
|
29761
|
-
var { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic", size:
|
|
28728
|
+
var { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic", size: size2 = "$true", ...tabsProps } = props, direction = (0, import_use_direction.useDirection)(dir), [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
29762
28729
|
prop: valueProp,
|
|
29763
28730
|
onChange: onValueChange,
|
|
29764
28731
|
defaultProp: defaultValue ?? ""
|
|
@@ -29779,7 +28746,7 @@ var require_createTabs_native = __commonJS({
|
|
|
29779
28746
|
orientation,
|
|
29780
28747
|
dir: direction,
|
|
29781
28748
|
activationMode,
|
|
29782
|
-
size:
|
|
28749
|
+
size: size2,
|
|
29783
28750
|
registerTrigger,
|
|
29784
28751
|
triggersCount,
|
|
29785
28752
|
unregisterTrigger,
|
|
@@ -30439,11 +29406,11 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
30439
29406
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_focusable2 = require_index_native46(), import_font_size = require_index_native42(), import_get_token2 = require_index_native20(), import_group = require_index_native52(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native43(), import_roving_focus = require_index_native61(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native25(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_Toggle = require_Toggle_native(), TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", { Provider: ToggleGroupItemProvider, useStyledContext: useToggleGroupItemContext } = (0, import_web.createStyledContext)(), { Provider: ToggleGroupContext, useStyledContext: useToggleGroupContext } = (0, import_web.createStyledContext)(), ToggleGroupItem = import_Toggle.ToggleFrame.extractable(/* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
30440
29407
|
var [_, { color }] = (0, import_web.usePropsAndStyle)(props), { disablePassStyles, ...rest } = props, valueContext = useToggleGroupValueContext(props.__scopeToggleGroup), context = useToggleGroupContext(props.__scopeToggleGroup), pressed = valueContext == null ? void 0 : valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, groupItemProps = (0, import_group.useGroupItem)({
|
|
30441
29408
|
disabled
|
|
30442
|
-
}), _props_size,
|
|
29409
|
+
}), _props_size, size2 = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : context.size, sizeProps = props.unstyled ? {} : {
|
|
30443
29410
|
width: void 0,
|
|
30444
29411
|
height: void 0,
|
|
30445
|
-
padding: (0, import_web.getVariableValue)(
|
|
30446
|
-
}, iconSize = (typeof
|
|
29412
|
+
padding: (0, import_web.getVariableValue)(size2) * 0.6
|
|
29413
|
+
}, iconSize = (typeof size2 == "number" ? size2 * 0.7 : (0, import_font_size.getFontSize)(size2)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
30447
29414
|
size: iconSize,
|
|
30448
29415
|
color: color ?? theme.color
|
|
30449
29416
|
}), childrens = import_react3.default.Children.toArray(props.children), children = childrens.map(function(child) {
|
|
@@ -30611,12 +29578,12 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
30611
29578
|
...toggleGroupProps
|
|
30612
29579
|
}, adjustedSize = (0, import_web.getVariableValue)((0, import_get_token2.getSize)(sizeProp, {
|
|
30613
29580
|
shift: sizeAdjust
|
|
30614
|
-
})),
|
|
29581
|
+
})), size2 = Math.round(adjustedSize * 0.45);
|
|
30615
29582
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupContext, {
|
|
30616
29583
|
scope: __scopeToggleGroup,
|
|
30617
29584
|
rovingFocus,
|
|
30618
29585
|
disabled,
|
|
30619
|
-
size:
|
|
29586
|
+
size: size2,
|
|
30620
29587
|
children: rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
30621
29588
|
asChild: "except-style",
|
|
30622
29589
|
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
@@ -30897,7 +29864,7 @@ var require_index_native73 = __commonJS({
|
|
|
30897
29864
|
}
|
|
30898
29865
|
});
|
|
30899
29866
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30900
|
-
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_react_native4 =
|
|
29867
|
+
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_react_native4 = require_fake_react_native(), initialValue = {
|
|
30901
29868
|
height: 800,
|
|
30902
29869
|
width: 600
|
|
30903
29870
|
};
|
|
@@ -31184,7 +30151,7 @@ var import_jsx_runtime = require("react/jsx-runtime"), import_core2 = __toESM(re
|
|
|
31184
30151
|
};
|
|
31185
30152
|
|
|
31186
30153
|
// src/views/Anchor.tsx
|
|
31187
|
-
var import_jsx_runtime2 = require("react/jsx-runtime"), import_constants = __toESM(require_index_native6()), import_core3 = __toESM(require_index_native18()), import_text = __toESM(require_index_native24()), import_react_native =
|
|
30154
|
+
var import_jsx_runtime2 = require("react/jsx-runtime"), import_constants = __toESM(require_index_native6()), import_core3 = __toESM(require_index_native18()), import_text = __toESM(require_index_native24()), import_react_native = __toESM(require_fake_react_native()), AnchorFrame = (0, import_core3.styled)(import_text.SizableText, {
|
|
31188
30155
|
name: "Anchor",
|
|
31189
30156
|
tag: "a",
|
|
31190
30157
|
accessibilityRole: "link"
|
|
@@ -31232,7 +30199,7 @@ var import_core5 = __toESM(require_index_native18()), import_stacks = __toESM(re
|
|
|
31232
30199
|
});
|
|
31233
30200
|
|
|
31234
30201
|
// src/views/Input.tsx
|
|
31235
|
-
var import_jsx_runtime3 = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_constants2 = __toESM(require_index_native6()), import_core7 = __toESM(require_index_native18()), import_focusable = __toESM(require_index_native46()), import_react_native2 =
|
|
30202
|
+
var import_jsx_runtime3 = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_constants2 = __toESM(require_index_native6()), import_core7 = __toESM(require_index_native18()), import_focusable = __toESM(require_index_native46()), import_react_native2 = __toESM(require_fake_react_native());
|
|
31236
30203
|
|
|
31237
30204
|
// src/helpers/inputHelpers.tsx
|
|
31238
30205
|
var import_core6 = __toESM(require_index_native18()), import_get_button_sized = __toESM(require_index_native21()), import_get_font_sized = __toESM(require_index_native23()), import_get_token = __toESM(require_index_native20()), inputSizeVariant = function() {
|
|
@@ -31356,13 +30323,13 @@ function useInputProps(props, ref) {
|
|
|
31356
30323
|
}
|
|
31357
30324
|
|
|
31358
30325
|
// src/views/Spinner.tsx
|
|
31359
|
-
var import_jsx_runtime4 = require("react/jsx-runtime"), import_core8 = __toESM(require_index_native18()), import_stacks2 = __toESM(require_index_native22()), React2 = __toESM(require("react")), import_react_native3 =
|
|
31360
|
-
var { size:
|
|
30326
|
+
var import_jsx_runtime4 = require("react/jsx-runtime"), import_core8 = __toESM(require_index_native18()), import_stacks2 = __toESM(require_index_native22()), React2 = __toESM(require("react")), import_react_native3 = __toESM(require_fake_react_native()), Spinner = import_stacks2.YStack.extractable((0, import_core8.themeable)(/* @__PURE__ */ React2.forwardRef(function(props, ref) {
|
|
30327
|
+
var { size: size2, color: colorProp, ...stackProps } = props, theme = (0, import_core8.useTheme)(), color = colorProp;
|
|
31361
30328
|
return color && color[0] === "$" && (color = (0, import_core8.variableToString)(theme[color])), /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_stacks2.YStack, {
|
|
31362
30329
|
ref,
|
|
31363
30330
|
...stackProps,
|
|
31364
30331
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.ActivityIndicator, {
|
|
31365
|
-
size:
|
|
30332
|
+
size: size2,
|
|
31366
30333
|
color
|
|
31367
30334
|
})
|
|
31368
30335
|
});
|