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/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";
|
|
@@ -6012,7 +6048,7 @@ var require_propMapper_native = __commonJS({
|
|
|
6012
6048
|
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) {
|
|
6013
6049
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
6014
6050
|
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value);
|
|
6015
|
-
if (expanded) for (var
|
|
6051
|
+
if (expanded) for (var max = expanded.length, i = 0; i < max; i++) {
|
|
6016
6052
|
var [nkey, nvalue] = expanded[i];
|
|
6017
6053
|
map(nkey, nvalue);
|
|
6018
6054
|
}
|
|
@@ -7453,7 +7489,7 @@ var require_useThemeState_native = __commonJS({
|
|
|
7453
7489
|
name && componentName ? `${name}_${componentName}` : void 0,
|
|
7454
7490
|
name,
|
|
7455
7491
|
componentName
|
|
7456
|
-
].filter(Boolean), found = null,
|
|
7492
|
+
].filter(Boolean), found = null, max = parentParts.length, i = 0; i <= max; i++) {
|
|
7457
7493
|
var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7458
7494
|
try {
|
|
7459
7495
|
for (var _iterator = subNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
@@ -7535,7 +7571,7 @@ var require_doesRootSchemeMatchSystem_native = __commonJS({
|
|
|
7535
7571
|
}
|
|
7536
7572
|
});
|
|
7537
7573
|
module2.exports = __toCommonJS2(doesRootSchemeMatchSystem_native_exports);
|
|
7538
|
-
var import_react_native4 =
|
|
7574
|
+
var import_react_native4 = require_fake_react_native(), import_useThemeState = require_useThemeState_native();
|
|
7539
7575
|
function doesRootSchemeMatchSystem() {
|
|
7540
7576
|
var _getRootThemeState;
|
|
7541
7577
|
return ((_getRootThemeState = (0, import_useThemeState.getRootThemeState)()) === null || _getRootThemeState === void 0 ? void 0 : _getRootThemeState.scheme) === import_react_native4.Appearance.getColorScheme();
|
|
@@ -9011,10 +9047,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9011
9047
|
return props.children;
|
|
9012
9048
|
}
|
|
9013
9049
|
Unspaced2.isUnspaced = !0;
|
|
9014
|
-
var getSpacerSize = function(
|
|
9050
|
+
var getSpacerSize = function(size2, param) {
|
|
9015
9051
|
var { tokens } = param;
|
|
9016
|
-
|
|
9017
|
-
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[
|
|
9052
|
+
size2 = size2 === !0 ? "$true" : size2;
|
|
9053
|
+
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[size2]) !== null && _tokens_space_size !== void 0 ? _tokens_space_size : size2;
|
|
9018
9054
|
return {
|
|
9019
9055
|
width: sizePx,
|
|
9020
9056
|
height: sizePx,
|
|
@@ -11978,7 +12014,7 @@ var require_mediaQueryList_native = __commonJS({
|
|
|
11978
12014
|
}
|
|
11979
12015
|
});
|
|
11980
12016
|
module2.exports = __toCommonJS2(mediaQueryList_exports);
|
|
11981
|
-
var import_react_native4 =
|
|
12017
|
+
var import_react_native4 = require_fake_react_native(), import_matchQuery = require_matchQuery_native();
|
|
11982
12018
|
function _class_call_check(instance, Constructor) {
|
|
11983
12019
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
11984
12020
|
}
|
|
@@ -12388,7 +12424,7 @@ var require_createResponderEvent_native = __commonJS({
|
|
|
12388
12424
|
}
|
|
12389
12425
|
});
|
|
12390
12426
|
module2.exports = __toCommonJS2(createResponderEvent_exports);
|
|
12391
|
-
var
|
|
12427
|
+
var import_utils = require_utils_native(), emptyFunction = function() {
|
|
12392
12428
|
}, emptyObject = {}, emptyArray = [];
|
|
12393
12429
|
function normalizeIdentifier(identifier) {
|
|
12394
12430
|
return identifier > 20 ? identifier % 20 : identifier;
|
|
@@ -12479,10 +12515,10 @@ var require_createResponderEvent_native = __commonJS({
|
|
|
12479
12515
|
touchHistory: responderTouchHistoryStore.touchHistory
|
|
12480
12516
|
};
|
|
12481
12517
|
function locationX(x) {
|
|
12482
|
-
if (rect = rect || (0,
|
|
12518
|
+
if (rect = rect || (0, import_utils.getBoundingClientRect)(responderEvent.currentTarget), rect) return x - rect.left;
|
|
12483
12519
|
}
|
|
12484
12520
|
function locationY(y) {
|
|
12485
|
-
if (rect = rect || (0,
|
|
12521
|
+
if (rect = rect || (0, import_utils.getBoundingClientRect)(responderEvent.currentTarget), rect) return y - rect.top;
|
|
12486
12522
|
}
|
|
12487
12523
|
return responderEvent;
|
|
12488
12524
|
}
|
|
@@ -12847,7 +12883,7 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12847
12883
|
}
|
|
12848
12884
|
});
|
|
12849
12885
|
module2.exports = __toCommonJS2(ResponderSystem_exports);
|
|
12850
|
-
var import_createResponderEvent = __toESM2(require_createResponderEvent_native()), import_ResponderTouchHistoryStore = require_ResponderTouchHistoryStore_native(), import_types = require_types_native3(),
|
|
12886
|
+
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 = [
|
|
12851
12887
|
"onStartShouldSetResponderCapture",
|
|
12852
12888
|
"onStartShouldSetResponder",
|
|
12853
12889
|
{
|
|
@@ -12896,13 +12932,13 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12896
12932
|
trackedTouchCount === 0 && (isEmulatingMouseEvents = !1);
|
|
12897
12933
|
return;
|
|
12898
12934
|
}
|
|
12899
|
-
var isStartEvent = (0, import_types.isStartish)(eventType) && (0,
|
|
12935
|
+
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);
|
|
12900
12936
|
(isStartEvent || isMoveEvent || isEndEvent) && (domEvent.touches ? trackedTouchCount = domEvent.touches.length : isStartEvent ? trackedTouchCount = 1 : isEndEvent && (trackedTouchCount = 0), responderTouchHistoryStore.recordTouchTrack(eventType, responderEvent.nativeEvent));
|
|
12901
|
-
var eventPaths = (0,
|
|
12937
|
+
var eventPaths = (0, import_utils2.getResponderPaths)(domEvent), wasNegotiated = !1, wantsResponder;
|
|
12902
12938
|
if (isStartEvent || isMoveEvent || isScrollEvent && trackedTouchCount > 0) {
|
|
12903
12939
|
var currentResponderIdPath = currentResponder.idPath, eventIdPath = eventPaths.idPath;
|
|
12904
12940
|
if (currentResponderIdPath != null && eventIdPath != null) {
|
|
12905
|
-
var lowestCommonAncestor = (0,
|
|
12941
|
+
var lowestCommonAncestor = (0, import_utils2.getLowestCommonAncestor)(currentResponderIdPath, eventIdPath);
|
|
12906
12942
|
if (lowestCommonAncestor != null) {
|
|
12907
12943
|
var indexOfLowestCommonAncestor = eventIdPath.indexOf(lowestCommonAncestor), index = indexOfLowestCommonAncestor + (lowestCommonAncestor === currentResponder.id ? 1 : 0);
|
|
12908
12944
|
eventPaths = {
|
|
@@ -12924,7 +12960,7 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12924
12960
|
eventType === "blur" && eventTarget.contains(node) && domEvent.relatedTarget !== node || // native scroll without using a pointer
|
|
12925
12961
|
isScrollEvent && trackedTouchCount === 0 || // native scroll on node that is parent of the responder (allow siblings to scroll)
|
|
12926
12962
|
isScrollEvent && eventTarget.contains(node) && eventTarget !== node || // native select/selectionchange on node
|
|
12927
|
-
isSelectionChangeEvent && (0,
|
|
12963
|
+
isSelectionChangeEvent && (0, import_utils2.hasValidSelection)(domEvent), isReleaseEvent = isEndEvent && !isTerminateEvent && !(0, import_utils2.hasTargetTouches)(node, domEvent.touches);
|
|
12928
12964
|
if (isEndEvent && onResponderEnd != null && (responderEvent.dispatchConfig.registrationName = "onResponderEnd", onResponderEnd(responderEvent)), isReleaseEvent && (onResponderRelease != null && (responderEvent.dispatchConfig.registrationName = "onResponderRelease", onResponderRelease(responderEvent)), changeCurrentResponder(emptyResponder)), isTerminateEvent) {
|
|
12929
12965
|
var shouldTerminate = !0;
|
|
12930
12966
|
(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);
|
|
@@ -12990,14 +13026,14 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
12990
13026
|
"selectionchange"
|
|
12991
13027
|
], isTamaguiResponderActive = Symbol();
|
|
12992
13028
|
function attachListeners() {
|
|
12993
|
-
|
|
13029
|
+
import_utils.canUseDOM && !window[isTamaguiResponderActive] && (window.addEventListener("blur", eventListener), documentEventsBubblePhase.forEach(function(eventType) {
|
|
12994
13030
|
document.addEventListener(eventType, eventListener);
|
|
12995
13031
|
}), documentEventsCapturePhase.forEach(function(eventType) {
|
|
12996
13032
|
document.addEventListener(eventType, eventListener, !0);
|
|
12997
13033
|
}), window[isTamaguiResponderActive] = !0);
|
|
12998
13034
|
}
|
|
12999
13035
|
function addNode(id, node, config) {
|
|
13000
|
-
(0,
|
|
13036
|
+
(0, import_utils2.setResponderId)(node, id), responderListenersMap.set(id, config);
|
|
13001
13037
|
}
|
|
13002
13038
|
function removeNode(id) {
|
|
13003
13039
|
currentResponder.id === id && terminateResponder(), responderListenersMap.has(id) && responderListenersMap.delete(id);
|
|
@@ -13521,7 +13557,7 @@ var require_getBaseViews_native = __commonJS({
|
|
|
13521
13557
|
});
|
|
13522
13558
|
module2.exports = __toCommonJS2(getBaseViews_native_exports);
|
|
13523
13559
|
function getBaseViews() {
|
|
13524
|
-
var native =
|
|
13560
|
+
var native = require_fake_react_native(), View2, TextAncestor;
|
|
13525
13561
|
if (process.env.NODE_ENV !== "test") {
|
|
13526
13562
|
View2 = require("react-native/Libraries/Components/View/ViewNativeComponent").default;
|
|
13527
13563
|
var TextAncestorModule = require("react-native/Libraries/Text/TextAncestor"), _TextAncestorModule_default;
|
|
@@ -13870,42 +13906,6 @@ var require_useElementLayout_native = __commonJS({
|
|
|
13870
13906
|
}
|
|
13871
13907
|
});
|
|
13872
13908
|
|
|
13873
|
-
// ../../packages/fake-react-native/index.js
|
|
13874
|
-
var require_fake_react_native = __commonJS({
|
|
13875
|
-
"../../packages/fake-react-native/index.js"(exports2, module2) {
|
|
13876
|
-
module2.exports = proxyWorm();
|
|
13877
|
-
function proxyWorm() {
|
|
13878
|
-
return new Proxy({
|
|
13879
|
-
StyleSheet: {
|
|
13880
|
-
create() {
|
|
13881
|
-
}
|
|
13882
|
-
},
|
|
13883
|
-
Platform: {
|
|
13884
|
-
OS: "web"
|
|
13885
|
-
},
|
|
13886
|
-
Image: "Image",
|
|
13887
|
-
View: "View",
|
|
13888
|
-
Text: "Text",
|
|
13889
|
-
TextInput: "TextInput",
|
|
13890
|
-
ScrollView: "ScrollView",
|
|
13891
|
-
Dimensions: {
|
|
13892
|
-
addEventListener(cb) {
|
|
13893
|
-
}
|
|
13894
|
-
},
|
|
13895
|
-
addPoolingTo() {
|
|
13896
|
-
}
|
|
13897
|
-
}, {
|
|
13898
|
-
get(target, key) {
|
|
13899
|
-
return Reflect.get(target, key) || proxyWorm();
|
|
13900
|
-
},
|
|
13901
|
-
apply() {
|
|
13902
|
-
return proxyWorm();
|
|
13903
|
-
}
|
|
13904
|
-
});
|
|
13905
|
-
}
|
|
13906
|
-
}
|
|
13907
|
-
});
|
|
13908
|
-
|
|
13909
13909
|
// ../../packages/fake-react-native/idFn.js
|
|
13910
13910
|
var idFn_exports = {};
|
|
13911
13911
|
__export(idFn_exports, {
|
|
@@ -14347,9 +14347,9 @@ var require_getElevation_native = __commonJS({
|
|
|
14347
14347
|
}
|
|
14348
14348
|
});
|
|
14349
14349
|
module2.exports = __toCommonJS2(getElevation_exports);
|
|
14350
|
-
var import_core12 = require_index_native18(), getElevation = function(
|
|
14351
|
-
if (
|
|
14352
|
-
var { tokens } = extras, token = tokens.size[
|
|
14350
|
+
var import_core12 = require_index_native18(), getElevation = function(size2, extras) {
|
|
14351
|
+
if (size2) {
|
|
14352
|
+
var { tokens } = extras, token = tokens.size[size2], sizeNum = (0, import_core12.isVariable)(token) ? +token.val : size2;
|
|
14353
14353
|
return getSizedElevation(sizeNum, extras);
|
|
14354
14354
|
}
|
|
14355
14355
|
}, getSizedElevation = function(val, param) {
|
|
@@ -14533,8 +14533,8 @@ var require_index_native20 = __commonJS({
|
|
|
14533
14533
|
bounds: [
|
|
14534
14534
|
0
|
|
14535
14535
|
]
|
|
14536
|
-
}, getSize = function(
|
|
14537
|
-
return getTokenRelative("size",
|
|
14536
|
+
}, getSize = function(size2, options) {
|
|
14537
|
+
return getTokenRelative("size", size2, options);
|
|
14538
14538
|
}, getSpace2 = function(space, options) {
|
|
14539
14539
|
return getTokenRelative("space", space, options);
|
|
14540
14540
|
}, getRadius = function(radius, options) {
|
|
@@ -14582,9 +14582,9 @@ var require_index_native20 = __commonJS({
|
|
|
14582
14582
|
}
|
|
14583
14583
|
}
|
|
14584
14584
|
}
|
|
14585
|
-
var isString = typeof current == "string", cache = options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables, tokensOrdered = cache[type], _options_bounds_,
|
|
14586
|
-
|
|
14587
|
-
var index = Math.min(
|
|
14585
|
+
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;
|
|
14586
|
+
shift2 && (current === "$true" || (0, import_web.isVariable)(current) && current.name === "true") && (shift2 += shift2 > 0 ? 1 : -1);
|
|
14587
|
+
var index = Math.min(max, Math.max(min, currentIndex + shift2)), found = tokensOrdered[index], result = (typeof found == "string" ? tokens[found] : found) || tokens.$true;
|
|
14588
14588
|
return result;
|
|
14589
14589
|
}, getTokenRelative = stepTokenUpOrDown;
|
|
14590
14590
|
}
|
|
@@ -14763,15 +14763,15 @@ var require_variants_native = __commonJS({
|
|
|
14763
14763
|
true: function(_, param) {
|
|
14764
14764
|
var { props, tokens } = param;
|
|
14765
14765
|
if (!("size" in props)) return circularStyle;
|
|
14766
|
-
var
|
|
14766
|
+
var size2 = typeof props.size == "number" ? props.size : tokens.size[props.size];
|
|
14767
14767
|
return {
|
|
14768
14768
|
...circularStyle,
|
|
14769
|
-
width:
|
|
14770
|
-
height:
|
|
14771
|
-
maxWidth:
|
|
14772
|
-
maxHeight:
|
|
14773
|
-
minWidth:
|
|
14774
|
-
minHeight:
|
|
14769
|
+
width: size2,
|
|
14770
|
+
height: size2,
|
|
14771
|
+
maxWidth: size2,
|
|
14772
|
+
maxHeight: size2,
|
|
14773
|
+
minWidth: size2,
|
|
14774
|
+
minHeight: size2
|
|
14775
14775
|
};
|
|
14776
14776
|
}
|
|
14777
14777
|
}, hoverTheme = {
|
|
@@ -15205,8 +15205,8 @@ var require_SizableText_native = __commonJS({
|
|
|
15205
15205
|
});
|
|
15206
15206
|
SizableText2.staticConfig.variants.fontFamily = {
|
|
15207
15207
|
"...": function(_val, extras) {
|
|
15208
|
-
var sizeProp = extras.props.size, fontSizeProp = extras.props.fontSize,
|
|
15209
|
-
return (0, import_get_font_sized2.getFontSized)(
|
|
15208
|
+
var sizeProp = extras.props.size, fontSizeProp = extras.props.fontSize, size2 = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props.size || "$true";
|
|
15209
|
+
return (0, import_get_font_sized2.getFontSized)(size2, extras);
|
|
15210
15210
|
}
|
|
15211
15211
|
};
|
|
15212
15212
|
}
|
|
@@ -15473,14 +15473,14 @@ var require_wrapChildrenInText_native = __commonJS({
|
|
|
15473
15473
|
module2.exports = __toCommonJS2(wrapChildrenInText_exports);
|
|
15474
15474
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react"));
|
|
15475
15475
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
15476
|
-
var { children, textProps, size:
|
|
15476
|
+
var { children, textProps, size: size2, noTextWrap, color, fontFamily, fontSize, fontWeight, letterSpacing, textAlign, fontStyle, maxFontSizeMultiplier } = propsIn;
|
|
15477
15477
|
if (noTextWrap || !children) return [
|
|
15478
15478
|
children
|
|
15479
15479
|
];
|
|
15480
15480
|
var props = {
|
|
15481
15481
|
...extraProps
|
|
15482
15482
|
};
|
|
15483
|
-
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),
|
|
15483
|
+
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) {
|
|
15484
15484
|
return typeof child == "string" ? (
|
|
15485
15485
|
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
15486
15486
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextComponent, {
|
|
@@ -16768,15 +16768,15 @@ var require_Portal_native = __commonJS({
|
|
|
16768
16768
|
}
|
|
16769
16769
|
});
|
|
16770
16770
|
module2.exports = __toCommonJS2(Portal_native_exports);
|
|
16771
|
-
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 =
|
|
16771
|
+
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() {
|
|
16772
16772
|
if (import_constants4.IS_FABRIC) try {
|
|
16773
|
-
var _ReactFabricShimModule_default, ReactFabricShimModule =
|
|
16773
|
+
var _ReactFabricShimModule_default, ReactFabricShimModule = require_fake_react_native(), _ReactFabricShimModule_default_createPortal;
|
|
16774
16774
|
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;
|
|
16775
16775
|
} catch (err) {
|
|
16776
16776
|
return console.info("Note: error importing portal, defaulting to non-native portals", err), null;
|
|
16777
16777
|
}
|
|
16778
16778
|
try {
|
|
16779
|
-
var _ReactNativeShimModule_default, ReactNativeShimModule =
|
|
16779
|
+
var _ReactNativeShimModule_default, ReactNativeShimModule = require_fake_react_native(), _ReactNativeShimModule_default_createPortal;
|
|
16780
16780
|
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;
|
|
16781
16781
|
} catch (err) {
|
|
16782
16782
|
return console.info("Note: error importing portal, defaulting to non-native portals", err), null;
|
|
@@ -17576,6 +17576,101 @@ var require_FocusScope_native = __commonJS({
|
|
|
17576
17576
|
}
|
|
17577
17577
|
});
|
|
17578
17578
|
|
|
17579
|
+
// ../focus-scope/dist/cjs/FocusScopeController.native.js
|
|
17580
|
+
var require_FocusScopeController_native = __commonJS({
|
|
17581
|
+
"../focus-scope/dist/cjs/FocusScopeController.native.js"(exports2, module2) {
|
|
17582
|
+
"use strict";
|
|
17583
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
17584
|
+
for (var name in all) __defProp2(target, name, {
|
|
17585
|
+
get: all[name],
|
|
17586
|
+
enumerable: !0
|
|
17587
|
+
});
|
|
17588
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
17589
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
17590
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
17591
|
+
for (var _loop = function() {
|
|
17592
|
+
var key = _step.value;
|
|
17593
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
17594
|
+
get: function() {
|
|
17595
|
+
return from[key];
|
|
17596
|
+
},
|
|
17597
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
17598
|
+
});
|
|
17599
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
17600
|
+
} catch (err) {
|
|
17601
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
17602
|
+
} finally {
|
|
17603
|
+
try {
|
|
17604
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
17605
|
+
} finally {
|
|
17606
|
+
if (_didIteratorError)
|
|
17607
|
+
throw _iteratorError;
|
|
17608
|
+
}
|
|
17609
|
+
}
|
|
17610
|
+
return to;
|
|
17611
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
17612
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
17613
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17614
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
17615
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
17616
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17617
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
17618
|
+
value: mod,
|
|
17619
|
+
enumerable: !0
|
|
17620
|
+
}) : target,
|
|
17621
|
+
mod
|
|
17622
|
+
);
|
|
17623
|
+
}, __toCommonJS2 = function(mod) {
|
|
17624
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
17625
|
+
value: !0
|
|
17626
|
+
}), mod);
|
|
17627
|
+
}, FocusScopeController_exports = {};
|
|
17628
|
+
__export2(FocusScopeController_exports, {
|
|
17629
|
+
FocusScopeController: function() {
|
|
17630
|
+
return FocusScopeControllerComponent;
|
|
17631
|
+
},
|
|
17632
|
+
FocusScopeControllerProvider: function() {
|
|
17633
|
+
return FocusScopeControllerProvider;
|
|
17634
|
+
},
|
|
17635
|
+
createFocusScopeControllerScope: function() {
|
|
17636
|
+
return createFocusScopeControllerScope;
|
|
17637
|
+
},
|
|
17638
|
+
useFocusScopeControllerContext: function() {
|
|
17639
|
+
return useFocusScopeControllerContext;
|
|
17640
|
+
}
|
|
17641
|
+
});
|
|
17642
|
+
module2.exports = __toCommonJS2(FocusScopeController_exports);
|
|
17643
|
+
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);
|
|
17644
|
+
function FocusScopeController(props) {
|
|
17645
|
+
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() {
|
|
17646
|
+
return {
|
|
17647
|
+
enabled,
|
|
17648
|
+
loop,
|
|
17649
|
+
trapped,
|
|
17650
|
+
onMountAutoFocus: stableOnMountAutoFocus,
|
|
17651
|
+
onUnmountAutoFocus: stableOnUnmountAutoFocus,
|
|
17652
|
+
forceUnmount,
|
|
17653
|
+
focusOnIdle
|
|
17654
|
+
};
|
|
17655
|
+
}, [
|
|
17656
|
+
enabled,
|
|
17657
|
+
loop,
|
|
17658
|
+
trapped,
|
|
17659
|
+
stableOnMountAutoFocus,
|
|
17660
|
+
stableOnUnmountAutoFocus,
|
|
17661
|
+
forceUnmount,
|
|
17662
|
+
focusOnIdle
|
|
17663
|
+
]);
|
|
17664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FocusScopeControllerProvider, {
|
|
17665
|
+
scope: __scopeFocusScope,
|
|
17666
|
+
...contextValue,
|
|
17667
|
+
children
|
|
17668
|
+
});
|
|
17669
|
+
}
|
|
17670
|
+
var FocusScopeControllerComponent = FocusScopeController;
|
|
17671
|
+
}
|
|
17672
|
+
});
|
|
17673
|
+
|
|
17579
17674
|
// ../focus-scope/dist/cjs/index.native.js
|
|
17580
17675
|
var require_index_native33 = __commonJS({
|
|
17581
17676
|
"../focus-scope/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -17612,6 +17707,7 @@ var require_index_native33 = __commonJS({
|
|
|
17612
17707
|
}, index_exports2 = {};
|
|
17613
17708
|
module2.exports = __toCommonJS2(index_exports2);
|
|
17614
17709
|
__reExport2(index_exports2, require_FocusScope_native(), module2.exports);
|
|
17710
|
+
__reExport2(index_exports2, require_FocusScopeController_native(), module2.exports);
|
|
17615
17711
|
}
|
|
17616
17712
|
});
|
|
17617
17713
|
|
|
@@ -18148,7 +18244,7 @@ var require_nativeSheet_native = __commonJS({
|
|
|
18148
18244
|
}
|
|
18149
18245
|
});
|
|
18150
18246
|
module2.exports = __toCommonJS2(nativeSheet_exports);
|
|
18151
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_stacks3 = require_index_native22(), import_react3 = require("react"), import_react_native4 =
|
|
18247
|
+
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 = {
|
|
18152
18248
|
ios: null
|
|
18153
18249
|
};
|
|
18154
18250
|
function getNativeSheet(platform2) {
|
|
@@ -18385,7 +18481,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18385
18481
|
}
|
|
18386
18482
|
});
|
|
18387
18483
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
18388
|
-
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 =
|
|
18484
|
+
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) {
|
|
18389
18485
|
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, {
|
|
18390
18486
|
onOverlayComponent: setOverlayComponent
|
|
18391
18487
|
}), { 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() {
|
|
@@ -18731,7 +18827,7 @@ var require_ScrollView_native = __commonJS({
|
|
|
18731
18827
|
}
|
|
18732
18828
|
});
|
|
18733
18829
|
module2.exports = __toCommonJS2(ScrollView_exports);
|
|
18734
|
-
var import_stacks3 = require_index_native22(), import_web = require_index_native14(), import_react_native4 =
|
|
18830
|
+
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, {
|
|
18735
18831
|
name: "ScrollView",
|
|
18736
18832
|
scrollEnabled: !0,
|
|
18737
18833
|
variants: {
|
|
@@ -19039,7 +19135,7 @@ var require_createSheet_native = __commonJS({
|
|
|
19039
19135
|
}
|
|
19040
19136
|
});
|
|
19041
19137
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
19042
|
-
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 =
|
|
19138
|
+
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();
|
|
19043
19139
|
function createSheet(param) {
|
|
19044
19140
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
19045
19141
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -19048,7 +19144,7 @@ var require_createSheet_native = __commonJS({
|
|
|
19048
19144
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Handle, {
|
|
19049
19145
|
ref: composedRef,
|
|
19050
19146
|
onPress: function() {
|
|
19051
|
-
var
|
|
19147
|
+
var max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0), nextPos = (context.position + 1) % max;
|
|
19052
19148
|
context.setPosition(nextPos);
|
|
19053
19149
|
},
|
|
19054
19150
|
open: context.open,
|
|
@@ -20030,6 +20126,7 @@ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it wi
|
|
|
20030
20126
|
Description: DialogDescription,
|
|
20031
20127
|
Close: DialogClose,
|
|
20032
20128
|
Sheet: import_sheet.Sheet.Controlled,
|
|
20129
|
+
FocusScope: import_focus_scope.FocusScopeController,
|
|
20033
20130
|
Adapt: import_adapt.Adapt
|
|
20034
20131
|
}), getAdaptName = function(param) {
|
|
20035
20132
|
var { scopeKey, contentId } = param;
|
|
@@ -20172,7 +20269,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
20172
20269
|
}
|
|
20173
20270
|
});
|
|
20174
20271
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
20175
|
-
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 =
|
|
20272
|
+
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, [
|
|
20176
20273
|
import_dialog.createDialogScope
|
|
20177
20274
|
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
20178
20275
|
name: TRIGGER_NAME
|
|
@@ -20495,7 +20592,7 @@ var require_Image_native = __commonJS({
|
|
|
20495
20592
|
}
|
|
20496
20593
|
});
|
|
20497
20594
|
module2.exports = __toCommonJS2(Image_exports);
|
|
20498
|
-
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 =
|
|
20595
|
+
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, {
|
|
20499
20596
|
name: "Image"
|
|
20500
20597
|
}), hasWarned = !1, Image = StyledImage.styleable(function(inProps, ref) {
|
|
20501
20598
|
var [props, style] = (0, import_core12.usePropsAndStyle)(inProps), { src, source, objectFit, ...rest } = props;
|
|
@@ -20630,8 +20727,8 @@ var require_getShapeSize_native = __commonJS({
|
|
|
20630
20727
|
}
|
|
20631
20728
|
});
|
|
20632
20729
|
module2.exports = __toCommonJS2(getShapeSize_exports);
|
|
20633
|
-
var getShapeSize = function(
|
|
20634
|
-
var { tokens } = param, _tokens_size_size, width = (_tokens_size_size = tokens.size[
|
|
20730
|
+
var getShapeSize = function(size2, param) {
|
|
20731
|
+
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;
|
|
20635
20732
|
return {
|
|
20636
20733
|
width,
|
|
20637
20734
|
height,
|
|
@@ -20935,14 +21032,14 @@ var require_Avatar_native = __commonJS({
|
|
|
20935
21032
|
position: "relative",
|
|
20936
21033
|
overflow: "hidden"
|
|
20937
21034
|
}), Avatar = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20938
|
-
var { __scopeAvatar, size:
|
|
21035
|
+
var { __scopeAvatar, size: size2 = "$true", ...avatarProps } = props, [imageLoadingStatus, setImageLoadingStatus] = React4.useState("idle");
|
|
20939
21036
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarProvider, {
|
|
20940
|
-
size:
|
|
21037
|
+
size: size2,
|
|
20941
21038
|
scope: __scopeAvatar,
|
|
20942
21039
|
imageLoadingStatus,
|
|
20943
21040
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
20944
21041
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarFrame, {
|
|
20945
|
-
size:
|
|
21042
|
+
size: size2,
|
|
20946
21043
|
...avatarProps,
|
|
20947
21044
|
ref: forwardedRef
|
|
20948
21045
|
})
|
|
@@ -21054,10 +21151,10 @@ var require_getFontSize_native = __commonJS({
|
|
|
21054
21151
|
}, getFontSizeToken = function(inSize, opts) {
|
|
21055
21152
|
if (typeof inSize == "number") return null;
|
|
21056
21153
|
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
|
|
21057
|
-
conf.tokensParsed.size, _ref,
|
|
21058
|
-
foundIndex === -1 &&
|
|
21154
|
+
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);
|
|
21155
|
+
foundIndex === -1 && size2.endsWith(".5") && (foundIndex = sizeTokens.indexOf(size2.replace(".5", ""))), process.env.NODE_ENV === "development" && foundIndex === -1 && console.warn("No font size found", size2, opts, "in size tokens", sizeTokens);
|
|
21059
21156
|
var tokenIndex = Math.min(Math.max(0, foundIndex + relativeSize), sizeTokens.length - 1), _sizeTokens_tokenIndex;
|
|
21060
|
-
return (_sizeTokens_tokenIndex = sizeTokens[tokenIndex]) !== null && _sizeTokens_tokenIndex !== void 0 ? _sizeTokens_tokenIndex :
|
|
21157
|
+
return (_sizeTokens_tokenIndex = sizeTokens[tokenIndex]) !== null && _sizeTokens_tokenIndex !== void 0 ? _sizeTokens_tokenIndex : size2;
|
|
21061
21158
|
};
|
|
21062
21159
|
}
|
|
21063
21160
|
});
|
|
@@ -21464,7 +21561,7 @@ var require_Button_native = __commonJS({
|
|
|
21464
21561
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
21465
21562
|
}
|
|
21466
21563
|
}), ButtonIcon = function(props) {
|
|
21467
|
-
var { children, scaleIcon = 1 } = props, { size:
|
|
21564
|
+
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)({
|
|
21468
21565
|
size: iconSize,
|
|
21469
21566
|
color
|
|
21470
21567
|
});
|
|
@@ -21486,7 +21583,7 @@ var require_Button_native = __commonJS({
|
|
|
21486
21583
|
}, isNested = (0, import_react3.useContext)(import_stacks3.ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn, {
|
|
21487
21584
|
noNormalize: !0,
|
|
21488
21585
|
noExpand: !0
|
|
21489
|
-
}), { icon, iconAfter, space, spaceFlex, scaleIcon = 1, scaleSpace = 0.66, separator, noTextWrap, fontFamily, fontSize, fontWeight, fontStyle, letterSpacing, tag, ellipse, maxFontSizeMultiplier, ...restProps } = propsActive,
|
|
21586
|
+
}), { 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, {
|
|
21490
21587
|
font: (fontFamily == null ? void 0 : fontFamily[0]) === "$" ? fontFamily : void 0
|
|
21491
21588
|
})) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
21492
21589
|
size: iconSize,
|
|
@@ -21508,7 +21605,7 @@ var require_Button_native = __commonJS({
|
|
|
21508
21605
|
maxFontSizeMultiplier
|
|
21509
21606
|
}, Text3 === ButtonText && propsActive.unstyled !== !0 ? {
|
|
21510
21607
|
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
21511
|
-
size:
|
|
21608
|
+
size: size2
|
|
21512
21609
|
} : void 0), inner = (0, import_web.spacedChildren)({
|
|
21513
21610
|
// a bit arbitrary but scaling to font size is necessary so long as button does
|
|
21514
21611
|
space: spaceSize === !1 ? 0 : spaceSize == !0 ? "$true" : spaceSize,
|
|
@@ -21524,7 +21621,7 @@ var require_Button_native = __commonJS({
|
|
|
21524
21621
|
themedIconAfter
|
|
21525
21622
|
]
|
|
21526
21623
|
}), props = {
|
|
21527
|
-
size:
|
|
21624
|
+
size: size2,
|
|
21528
21625
|
...propsIn.disabled && {
|
|
21529
21626
|
// in rnw - false still has keyboard tabIndex, undefined = not actually focusable
|
|
21530
21627
|
focusable: void 0,
|
|
@@ -22566,7 +22663,7 @@ var require_BubbleInput_native = __commonJS({
|
|
|
22566
22663
|
}
|
|
22567
22664
|
});
|
|
22568
22665
|
module2.exports = __toCommonJS2(BubbleInput_exports);
|
|
22569
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_previous = require_index_native48(), React4 = __toESM2(require("react")),
|
|
22666
|
+
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) {
|
|
22570
22667
|
var { checked, bubbles = !0, control, isHidden, ...inputProps } = props, ref = React4.useRef(null), prevChecked = (0, import_use_previous.usePrevious)(checked);
|
|
22571
22668
|
return React4.useEffect(function() {
|
|
22572
22669
|
var input = ref.current, inputProto = window.HTMLInputElement.prototype, descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"), setChecked = descriptor.set;
|
|
@@ -22574,7 +22671,7 @@ var require_BubbleInput_native = __commonJS({
|
|
|
22574
22671
|
var event = new Event("click", {
|
|
22575
22672
|
bubbles
|
|
22576
22673
|
});
|
|
22577
|
-
input.indeterminate = (0,
|
|
22674
|
+
input.indeterminate = (0, import_utils.isIndeterminate)(checked), setChecked.call(input, (0, import_utils.isIndeterminate)(checked) ? !1 : checked), input.dispatchEvent(event);
|
|
22578
22675
|
}
|
|
22579
22676
|
}, [
|
|
22580
22677
|
prevChecked,
|
|
@@ -22582,7 +22679,7 @@ var require_BubbleInput_native = __commonJS({
|
|
|
22582
22679
|
bubbles
|
|
22583
22680
|
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", {
|
|
22584
22681
|
type: "checkbox",
|
|
22585
|
-
defaultChecked: (0,
|
|
22682
|
+
defaultChecked: (0, import_utils.isIndeterminate)(checked) ? !1 : checked,
|
|
22586
22683
|
...inputProps,
|
|
22587
22684
|
tabIndex: -1,
|
|
22588
22685
|
ref,
|
|
@@ -22660,7 +22757,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22660
22757
|
}
|
|
22661
22758
|
});
|
|
22662
22759
|
module2.exports = __toCommonJS2(useCheckbox_exports);
|
|
22663
|
-
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(),
|
|
22760
|
+
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();
|
|
22664
22761
|
function useCheckbox(props, param, ref) {
|
|
22665
22762
|
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() {
|
|
22666
22763
|
return (0, import_helpers.composeEventHandlers)(parentKeyDown, function(event) {
|
|
@@ -22671,7 +22768,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22671
22768
|
]), handlePress = (0, import_react3.useMemo)(function() {
|
|
22672
22769
|
return (0, import_helpers.composeEventHandlers)(props.onPress, function(event) {
|
|
22673
22770
|
setChecked(function(prevChecked) {
|
|
22674
|
-
return (0,
|
|
22771
|
+
return (0, import_utils.isIndeterminate)(prevChecked) ? !0 : !prevChecked;
|
|
22675
22772
|
}), isFormControl && "isPropagationStopped" in event && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
|
|
22676
22773
|
});
|
|
22677
22774
|
}, [
|
|
@@ -22692,12 +22789,12 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22692
22789
|
checkboxProps: {
|
|
22693
22790
|
role: "checkbox",
|
|
22694
22791
|
"aria-labelledby": labelledBy,
|
|
22695
|
-
"aria-checked": (0,
|
|
22792
|
+
"aria-checked": (0, import_utils.isIndeterminate)(checked) ? "mixed" : checked,
|
|
22696
22793
|
...checkboxProps,
|
|
22697
22794
|
...import_constants4.isWeb && {
|
|
22698
22795
|
type: "button",
|
|
22699
22796
|
value,
|
|
22700
|
-
"data-state": (0,
|
|
22797
|
+
"data-state": (0, import_utils.getState)(checked),
|
|
22701
22798
|
"data-disabled": disabled ? "" : void 0,
|
|
22702
22799
|
disabled,
|
|
22703
22800
|
onKeyDown: disabled ? void 0 : handleKeyDown
|
|
@@ -22817,12 +22914,12 @@ var require_createCheckbox_native = __commonJS({
|
|
|
22817
22914
|
var { disableActiveTheme, Frame = import_Checkbox.CheckboxFrame, Indicator = import_Checkbox.CheckboxIndicatorFrame } = createProps;
|
|
22818
22915
|
ensureContext(Frame), ensureContext(Indicator);
|
|
22819
22916
|
var FrameComponent = Frame.styleable(function(_props, forwardedRef) {
|
|
22820
|
-
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,
|
|
22917
|
+
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;
|
|
22821
22918
|
if (!unstyled) {
|
|
22822
22919
|
var _propsActive_size, _ref;
|
|
22823
22920
|
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", {
|
|
22824
22921
|
shift: sizeAdjust
|
|
22825
|
-
})),
|
|
22922
|
+
})), size2 = scaleSize ? Math.round(adjustedSize * scaleSize) : adjustedSize;
|
|
22826
22923
|
}
|
|
22827
22924
|
var [checked = !1, setChecked] = (0, import_use_controllable_state.useControllableState)({
|
|
22828
22925
|
prop: checkedProp,
|
|
@@ -22881,14 +22978,14 @@ var require_createCheckbox_native = __commonJS({
|
|
|
22881
22978
|
children: [
|
|
22882
22979
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, {
|
|
22883
22980
|
...!unstyled && {
|
|
22884
|
-
width:
|
|
22885
|
-
height:
|
|
22981
|
+
width: size2,
|
|
22982
|
+
height: size2
|
|
22886
22983
|
},
|
|
22887
22984
|
tag: "button",
|
|
22888
22985
|
ref: checkboxRef,
|
|
22889
22986
|
unstyled,
|
|
22890
22987
|
...unstyled === !1 && {
|
|
22891
|
-
size:
|
|
22988
|
+
size: size2,
|
|
22892
22989
|
theme: checked ? "active" : null
|
|
22893
22990
|
},
|
|
22894
22991
|
// potential variant
|
|
@@ -23289,7 +23386,7 @@ var require_Group_native = __commonJS({
|
|
|
23289
23386
|
}
|
|
23290
23387
|
});
|
|
23291
23388
|
module2.exports = __toCommonJS2(Group_exports);
|
|
23292
|
-
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 =
|
|
23389
|
+
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, {
|
|
23293
23390
|
name: "GroupFrame",
|
|
23294
23391
|
variants: {
|
|
23295
23392
|
unstyled: {
|
|
@@ -23310,9 +23407,9 @@ var require_Group_native = __commonJS({
|
|
|
23310
23407
|
});
|
|
23311
23408
|
function createGroup(verticalDefault) {
|
|
23312
23409
|
return (0, import_helpers.withStaticProperties)(GroupFrame.styleable(function(props, ref) {
|
|
23313
|
-
var activeProps = (0, import_core12.useProps)(props), { __scopeGroup, children: childrenProp, space, size:
|
|
23410
|
+
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)({
|
|
23314
23411
|
defaultProp: forceUseItem ? 1 : 0
|
|
23315
|
-
}), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (
|
|
23412
|
+
}), 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) {
|
|
23316
23413
|
if (!/* @__PURE__ */ import_react3.default.isValidElement(child) || child.type === import_react3.default.Fragment) return child;
|
|
23317
23414
|
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({
|
|
23318
23415
|
isFirst,
|
|
@@ -23350,7 +23447,7 @@ var require_Group_native = __commonJS({
|
|
|
23350
23447
|
scope: __scopeGroup,
|
|
23351
23448
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(GroupFrame, {
|
|
23352
23449
|
ref,
|
|
23353
|
-
size:
|
|
23450
|
+
size: size2,
|
|
23354
23451
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
23355
23452
|
borderRadius,
|
|
23356
23453
|
...restProps,
|
|
@@ -23746,7 +23843,7 @@ var require_ListItem_native = __commonJS({
|
|
|
23746
23843
|
textAlign,
|
|
23747
23844
|
ellipse,
|
|
23748
23845
|
children
|
|
23749
|
-
},
|
|
23846
|
+
}, size2 = props.size || "$true", iconSize = (0, import_font_size.getFontSize)(size2) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
23750
23847
|
size: iconSize,
|
|
23751
23848
|
color
|
|
23752
23849
|
}), [themedIcon, themedIconAfter] = [
|
|
@@ -23772,7 +23869,7 @@ var require_ListItem_native = __commonJS({
|
|
|
23772
23869
|
flex: 1,
|
|
23773
23870
|
children: [
|
|
23774
23871
|
noTextWrap === "all" ? title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Title, {
|
|
23775
|
-
size:
|
|
23872
|
+
size: size2,
|
|
23776
23873
|
children: title
|
|
23777
23874
|
}),
|
|
23778
23875
|
subTitle ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
|
|
@@ -23781,7 +23878,7 @@ var require_ListItem_native = __commonJS({
|
|
|
23781
23878
|
// or standardize on subtle colors in themes
|
|
23782
23879
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Subtitle, {
|
|
23783
23880
|
unstyled,
|
|
23784
|
-
size:
|
|
23881
|
+
size: size2,
|
|
23785
23882
|
children: subTitle
|
|
23786
23883
|
})
|
|
23787
23884
|
) : subTitle
|
|
@@ -23960,1138 +24057,6 @@ var require_index_native55 = __commonJS({
|
|
|
23960
24057
|
}
|
|
23961
24058
|
});
|
|
23962
24059
|
|
|
23963
|
-
// ../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
23964
|
-
function clamp(start, value, end) {
|
|
23965
|
-
return max(start, min(value, end));
|
|
23966
|
-
}
|
|
23967
|
-
function evaluate(value, param) {
|
|
23968
|
-
return typeof value == "function" ? value(param) : value;
|
|
23969
|
-
}
|
|
23970
|
-
function getSide(placement) {
|
|
23971
|
-
return placement.split("-")[0];
|
|
23972
|
-
}
|
|
23973
|
-
function getAlignment(placement) {
|
|
23974
|
-
return placement.split("-")[1];
|
|
23975
|
-
}
|
|
23976
|
-
function getOppositeAxis(axis) {
|
|
23977
|
-
return axis === "x" ? "y" : "x";
|
|
23978
|
-
}
|
|
23979
|
-
function getAxisLength(axis) {
|
|
23980
|
-
return axis === "y" ? "height" : "width";
|
|
23981
|
-
}
|
|
23982
|
-
function getSideAxis(placement) {
|
|
23983
|
-
return [
|
|
23984
|
-
"top",
|
|
23985
|
-
"bottom"
|
|
23986
|
-
].includes(getSide(placement)) ? "y" : "x";
|
|
23987
|
-
}
|
|
23988
|
-
function getAlignmentAxis(placement) {
|
|
23989
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
23990
|
-
}
|
|
23991
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
23992
|
-
rtl === void 0 && (rtl = !1);
|
|
23993
|
-
var alignment = getAlignment(placement), alignmentAxis = getAlignmentAxis(placement), length = getAxisLength(alignmentAxis), mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
23994
|
-
return rects.reference[length] > rects.floating[length] && (mainAlignmentSide = getOppositePlacement(mainAlignmentSide)), [
|
|
23995
|
-
mainAlignmentSide,
|
|
23996
|
-
getOppositePlacement(mainAlignmentSide)
|
|
23997
|
-
];
|
|
23998
|
-
}
|
|
23999
|
-
function getExpandedPlacements(placement) {
|
|
24000
|
-
var oppositePlacement = getOppositePlacement(placement);
|
|
24001
|
-
return [
|
|
24002
|
-
getOppositeAlignmentPlacement(placement),
|
|
24003
|
-
oppositePlacement,
|
|
24004
|
-
getOppositeAlignmentPlacement(oppositePlacement)
|
|
24005
|
-
];
|
|
24006
|
-
}
|
|
24007
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
24008
|
-
return placement.replace(/start|end/g, function(alignment) {
|
|
24009
|
-
return oppositeAlignmentMap[alignment];
|
|
24010
|
-
});
|
|
24011
|
-
}
|
|
24012
|
-
function getSideList(side, isStart, rtl) {
|
|
24013
|
-
var lr = [
|
|
24014
|
-
"left",
|
|
24015
|
-
"right"
|
|
24016
|
-
], rl = [
|
|
24017
|
-
"right",
|
|
24018
|
-
"left"
|
|
24019
|
-
], tb = [
|
|
24020
|
-
"top",
|
|
24021
|
-
"bottom"
|
|
24022
|
-
], bt = [
|
|
24023
|
-
"bottom",
|
|
24024
|
-
"top"
|
|
24025
|
-
];
|
|
24026
|
-
switch (side) {
|
|
24027
|
-
case "top":
|
|
24028
|
-
case "bottom":
|
|
24029
|
-
return rtl ? isStart ? rl : lr : isStart ? lr : rl;
|
|
24030
|
-
case "left":
|
|
24031
|
-
case "right":
|
|
24032
|
-
return isStart ? tb : bt;
|
|
24033
|
-
default:
|
|
24034
|
-
return [];
|
|
24035
|
-
}
|
|
24036
|
-
}
|
|
24037
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
24038
|
-
var alignment = getAlignment(placement), list = getSideList(getSide(placement), direction === "start", rtl);
|
|
24039
|
-
return alignment && (list = list.map(function(side) {
|
|
24040
|
-
return side + "-" + alignment;
|
|
24041
|
-
}), flipAlignment && (list = list.concat(list.map(getOppositeAlignmentPlacement)))), list;
|
|
24042
|
-
}
|
|
24043
|
-
function getOppositePlacement(placement) {
|
|
24044
|
-
return placement.replace(/left|right|bottom|top/g, function(side) {
|
|
24045
|
-
return oppositeSideMap[side];
|
|
24046
|
-
});
|
|
24047
|
-
}
|
|
24048
|
-
function expandPaddingObject(padding) {
|
|
24049
|
-
return {
|
|
24050
|
-
top: 0,
|
|
24051
|
-
right: 0,
|
|
24052
|
-
bottom: 0,
|
|
24053
|
-
left: 0,
|
|
24054
|
-
...padding
|
|
24055
|
-
};
|
|
24056
|
-
}
|
|
24057
|
-
function getPaddingObject(padding) {
|
|
24058
|
-
return typeof padding != "number" ? expandPaddingObject(padding) : {
|
|
24059
|
-
top: padding,
|
|
24060
|
-
right: padding,
|
|
24061
|
-
bottom: padding,
|
|
24062
|
-
left: padding
|
|
24063
|
-
};
|
|
24064
|
-
}
|
|
24065
|
-
function rectToClientRect(rect) {
|
|
24066
|
-
var { x, y, width, height } = rect;
|
|
24067
|
-
return {
|
|
24068
|
-
width,
|
|
24069
|
-
height,
|
|
24070
|
-
top: y,
|
|
24071
|
-
left: x,
|
|
24072
|
-
right: x + width,
|
|
24073
|
-
bottom: y + height,
|
|
24074
|
-
x,
|
|
24075
|
-
y
|
|
24076
|
-
};
|
|
24077
|
-
}
|
|
24078
|
-
var sides, alignments, placements, min, max, oppositeSideMap, oppositeAlignmentMap, init_floating_ui_utils = __esm({
|
|
24079
|
-
"../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
|
|
24080
|
-
sides = [
|
|
24081
|
-
"top",
|
|
24082
|
-
"right",
|
|
24083
|
-
"bottom",
|
|
24084
|
-
"left"
|
|
24085
|
-
], alignments = [
|
|
24086
|
-
"start",
|
|
24087
|
-
"end"
|
|
24088
|
-
], placements = /* @__PURE__ */ sides.reduce(function(acc, side) {
|
|
24089
|
-
return acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]);
|
|
24090
|
-
}, []), min = Math.min, max = Math.max, oppositeSideMap = {
|
|
24091
|
-
left: "right",
|
|
24092
|
-
right: "left",
|
|
24093
|
-
bottom: "top",
|
|
24094
|
-
top: "bottom"
|
|
24095
|
-
}, oppositeAlignmentMap = {
|
|
24096
|
-
start: "end",
|
|
24097
|
-
end: "start"
|
|
24098
|
-
};
|
|
24099
|
-
}
|
|
24100
|
-
});
|
|
24101
|
-
|
|
24102
|
-
// ../../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
|
|
24103
|
-
var floating_ui_core_esm_exports = {};
|
|
24104
|
-
__export(floating_ui_core_esm_exports, {
|
|
24105
|
-
arrow: () => arrow2,
|
|
24106
|
-
autoPlacement: () => autoPlacement2,
|
|
24107
|
-
computePosition: () => computePosition,
|
|
24108
|
-
detectOverflow: () => detectOverflow2,
|
|
24109
|
-
flip: () => flip2,
|
|
24110
|
-
hide: () => hide2,
|
|
24111
|
-
inline: () => inline2,
|
|
24112
|
-
limitShift: () => limitShift2,
|
|
24113
|
-
offset: () => offset2,
|
|
24114
|
-
rectToClientRect: () => rectToClientRect,
|
|
24115
|
-
shift: () => shift2,
|
|
24116
|
-
size: () => size2
|
|
24117
|
-
});
|
|
24118
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
24119
|
-
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;
|
|
24120
|
-
switch (side) {
|
|
24121
|
-
case "top":
|
|
24122
|
-
coords = {
|
|
24123
|
-
x: commonX,
|
|
24124
|
-
y: reference.y - floating.height
|
|
24125
|
-
};
|
|
24126
|
-
break;
|
|
24127
|
-
case "bottom":
|
|
24128
|
-
coords = {
|
|
24129
|
-
x: commonX,
|
|
24130
|
-
y: reference.y + reference.height
|
|
24131
|
-
};
|
|
24132
|
-
break;
|
|
24133
|
-
case "right":
|
|
24134
|
-
coords = {
|
|
24135
|
-
x: reference.x + reference.width,
|
|
24136
|
-
y: commonY
|
|
24137
|
-
};
|
|
24138
|
-
break;
|
|
24139
|
-
case "left":
|
|
24140
|
-
coords = {
|
|
24141
|
-
x: reference.x - floating.width,
|
|
24142
|
-
y: commonY
|
|
24143
|
-
};
|
|
24144
|
-
break;
|
|
24145
|
-
default:
|
|
24146
|
-
coords = {
|
|
24147
|
-
x: reference.x,
|
|
24148
|
-
y: reference.y
|
|
24149
|
-
};
|
|
24150
|
-
}
|
|
24151
|
-
switch (getAlignment(placement)) {
|
|
24152
|
-
case "start":
|
|
24153
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
24154
|
-
break;
|
|
24155
|
-
case "end":
|
|
24156
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
24157
|
-
break;
|
|
24158
|
-
}
|
|
24159
|
-
return coords;
|
|
24160
|
-
}
|
|
24161
|
-
async function detectOverflow2(state, options) {
|
|
24162
|
-
var _await$platform$isEle;
|
|
24163
|
-
options === void 0 && (options = {});
|
|
24164
|
-
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({
|
|
24165
|
-
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)),
|
|
24166
|
-
boundary,
|
|
24167
|
-
rootBoundary,
|
|
24168
|
-
strategy
|
|
24169
|
-
})), rect = elementContext === "floating" ? {
|
|
24170
|
-
x,
|
|
24171
|
-
y,
|
|
24172
|
-
width: rects.floating.width,
|
|
24173
|
-
height: rects.floating.height
|
|
24174
|
-
} : 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)) || {
|
|
24175
|
-
x: 1,
|
|
24176
|
-
y: 1
|
|
24177
|
-
} : {
|
|
24178
|
-
x: 1,
|
|
24179
|
-
y: 1
|
|
24180
|
-
}, elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
24181
|
-
elements,
|
|
24182
|
-
rect,
|
|
24183
|
-
offsetParent,
|
|
24184
|
-
strategy
|
|
24185
|
-
}) : rect);
|
|
24186
|
-
return {
|
|
24187
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
24188
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
24189
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
24190
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
24191
|
-
};
|
|
24192
|
-
}
|
|
24193
|
-
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
24194
|
-
var allowedPlacementsSortedByAlignment = alignment ? [
|
|
24195
|
-
...allowedPlacements.filter(function(placement) {
|
|
24196
|
-
return getAlignment(placement) === alignment;
|
|
24197
|
-
}),
|
|
24198
|
-
...allowedPlacements.filter(function(placement) {
|
|
24199
|
-
return getAlignment(placement) !== alignment;
|
|
24200
|
-
})
|
|
24201
|
-
] : allowedPlacements.filter(function(placement) {
|
|
24202
|
-
return getSide(placement) === placement;
|
|
24203
|
-
});
|
|
24204
|
-
return allowedPlacementsSortedByAlignment.filter(function(placement) {
|
|
24205
|
-
return alignment ? getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : !1) : !0;
|
|
24206
|
-
});
|
|
24207
|
-
}
|
|
24208
|
-
function getSideOffsets(overflow, rect) {
|
|
24209
|
-
return {
|
|
24210
|
-
top: overflow.top - rect.height,
|
|
24211
|
-
right: overflow.right - rect.width,
|
|
24212
|
-
bottom: overflow.bottom - rect.height,
|
|
24213
|
-
left: overflow.left - rect.width
|
|
24214
|
-
};
|
|
24215
|
-
}
|
|
24216
|
-
function isAnySideFullyClipped(overflow) {
|
|
24217
|
-
return sides.some(function(side) {
|
|
24218
|
-
return overflow[side] >= 0;
|
|
24219
|
-
});
|
|
24220
|
-
}
|
|
24221
|
-
function getBoundingRect(rects) {
|
|
24222
|
-
var minX = min(...rects.map(function(rect) {
|
|
24223
|
-
return rect.left;
|
|
24224
|
-
})), minY = min(...rects.map(function(rect) {
|
|
24225
|
-
return rect.top;
|
|
24226
|
-
})), maxX = max(...rects.map(function(rect) {
|
|
24227
|
-
return rect.right;
|
|
24228
|
-
})), maxY = max(...rects.map(function(rect) {
|
|
24229
|
-
return rect.bottom;
|
|
24230
|
-
}));
|
|
24231
|
-
return {
|
|
24232
|
-
x: minX,
|
|
24233
|
-
y: minY,
|
|
24234
|
-
width: maxX - minX,
|
|
24235
|
-
height: maxY - minY
|
|
24236
|
-
};
|
|
24237
|
-
}
|
|
24238
|
-
function getRectsByLine(rects) {
|
|
24239
|
-
for (var sortedRects = rects.slice().sort(function(a, b) {
|
|
24240
|
-
return a.y - b.y;
|
|
24241
|
-
}), groups = [], prevRect = null, i = 0; i < sortedRects.length; i++) {
|
|
24242
|
-
var rect = sortedRects[i];
|
|
24243
|
-
!prevRect || rect.y - prevRect.y > prevRect.height / 2 ? groups.push([
|
|
24244
|
-
rect
|
|
24245
|
-
]) : groups[groups.length - 1].push(rect), prevRect = rect;
|
|
24246
|
-
}
|
|
24247
|
-
return groups.map(function(rect2) {
|
|
24248
|
-
return rectToClientRect(getBoundingRect(rect2));
|
|
24249
|
-
});
|
|
24250
|
-
}
|
|
24251
|
-
async function convertValueToCoords(state, options) {
|
|
24252
|
-
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 = [
|
|
24253
|
-
"left",
|
|
24254
|
-
"top"
|
|
24255
|
-
].includes(side) ? -1 : 1, crossAxisMulti = rtl && isVertical ? -1 : 1, rawValue = evaluate(options, state), { mainAxis, crossAxis, alignmentAxis } = typeof rawValue == "number" ? {
|
|
24256
|
-
mainAxis: rawValue,
|
|
24257
|
-
crossAxis: 0,
|
|
24258
|
-
alignmentAxis: null
|
|
24259
|
-
} : {
|
|
24260
|
-
mainAxis: rawValue.mainAxis || 0,
|
|
24261
|
-
crossAxis: rawValue.crossAxis || 0,
|
|
24262
|
-
alignmentAxis: rawValue.alignmentAxis
|
|
24263
|
-
};
|
|
24264
|
-
return alignment && typeof alignmentAxis == "number" && (crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis), isVertical ? {
|
|
24265
|
-
x: crossAxis * crossAxisMulti,
|
|
24266
|
-
y: mainAxis * mainAxisMulti
|
|
24267
|
-
} : {
|
|
24268
|
-
x: mainAxis * mainAxisMulti,
|
|
24269
|
-
y: crossAxis * crossAxisMulti
|
|
24270
|
-
};
|
|
24271
|
-
}
|
|
24272
|
-
var computePosition, arrow2, autoPlacement2, flip2, hide2, inline2, offset2, shift2, limitShift2, size2, init_floating_ui_core_esm = __esm({
|
|
24273
|
-
"../../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js"() {
|
|
24274
|
-
init_floating_ui_utils();
|
|
24275
|
-
init_floating_ui_utils();
|
|
24276
|
-
computePosition = async function(reference, floating, config) {
|
|
24277
|
-
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({
|
|
24278
|
-
reference,
|
|
24279
|
-
floating,
|
|
24280
|
-
strategy
|
|
24281
|
-
}), { x, y } = computeCoordsFromPlacement(rects, placement, rtl), statefulPlacement = placement, middlewareData = {}, resetCount = 0, i = 0; i < validMiddleware.length; i++) {
|
|
24282
|
-
var { name, fn } = validMiddleware[i], { x: nextX, y: nextY, data, reset } = await fn({
|
|
24283
|
-
x,
|
|
24284
|
-
y,
|
|
24285
|
-
initialPlacement: placement,
|
|
24286
|
-
placement: statefulPlacement,
|
|
24287
|
-
strategy,
|
|
24288
|
-
middlewareData,
|
|
24289
|
-
rects,
|
|
24290
|
-
platform: platform2,
|
|
24291
|
-
elements: {
|
|
24292
|
-
reference,
|
|
24293
|
-
floating
|
|
24294
|
-
}
|
|
24295
|
-
});
|
|
24296
|
-
x = nextX ?? x, y = nextY ?? y, middlewareData = {
|
|
24297
|
-
...middlewareData,
|
|
24298
|
-
[name]: {
|
|
24299
|
-
...middlewareData[name],
|
|
24300
|
-
...data
|
|
24301
|
-
}
|
|
24302
|
-
}, reset && resetCount <= 50 && (resetCount++, typeof reset == "object" && (reset.placement && (statefulPlacement = reset.placement), reset.rects && (rects = reset.rects === !0 ? await platform2.getElementRects({
|
|
24303
|
-
reference,
|
|
24304
|
-
floating,
|
|
24305
|
-
strategy
|
|
24306
|
-
}) : reset.rects), { x, y } = computeCoordsFromPlacement(rects, statefulPlacement, rtl)), i = -1);
|
|
24307
|
-
}
|
|
24308
|
-
return {
|
|
24309
|
-
x,
|
|
24310
|
-
y,
|
|
24311
|
-
placement: statefulPlacement,
|
|
24312
|
-
strategy,
|
|
24313
|
-
middlewareData
|
|
24314
|
-
};
|
|
24315
|
-
};
|
|
24316
|
-
arrow2 = function(options) {
|
|
24317
|
-
return {
|
|
24318
|
-
name: "arrow",
|
|
24319
|
-
options,
|
|
24320
|
-
async fn(state) {
|
|
24321
|
-
var { x, y, placement, rects, platform: platform2, elements, middlewareData } = state, { element, padding = 0 } = evaluate(options, state) || {};
|
|
24322
|
-
if (element == null)
|
|
24323
|
-
return {};
|
|
24324
|
-
var paddingObject = getPaddingObject(padding), coords = {
|
|
24325
|
-
x,
|
|
24326
|
-
y
|
|
24327
|
-
}, 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;
|
|
24328
|
-
(!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) && (clientSize = elements.floating[clientProp] || rects.floating[length]);
|
|
24329
|
-
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;
|
|
24330
|
-
return {
|
|
24331
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
24332
|
-
data: {
|
|
24333
|
-
[axis]: offset4,
|
|
24334
|
-
centerOffset: center - offset4 - alignmentOffset,
|
|
24335
|
-
...shouldAddOffset && {
|
|
24336
|
-
alignmentOffset
|
|
24337
|
-
}
|
|
24338
|
-
},
|
|
24339
|
-
reset: shouldAddOffset
|
|
24340
|
-
};
|
|
24341
|
-
}
|
|
24342
|
-
};
|
|
24343
|
-
};
|
|
24344
|
-
autoPlacement2 = function(options) {
|
|
24345
|
-
return options === void 0 && (options = {}), {
|
|
24346
|
-
name: "autoPlacement",
|
|
24347
|
-
options,
|
|
24348
|
-
async fn(state) {
|
|
24349
|
-
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];
|
|
24350
|
-
if (currentPlacement == null)
|
|
24351
|
-
return {};
|
|
24352
|
-
var alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)));
|
|
24353
|
-
if (placement !== currentPlacement)
|
|
24354
|
-
return {
|
|
24355
|
-
reset: {
|
|
24356
|
-
placement: placements$1[0]
|
|
24357
|
-
}
|
|
24358
|
-
};
|
|
24359
|
-
var currentOverflows = [
|
|
24360
|
-
overflow[getSide(currentPlacement)],
|
|
24361
|
-
overflow[alignmentSides[0]],
|
|
24362
|
-
overflow[alignmentSides[1]]
|
|
24363
|
-
], allOverflows = [
|
|
24364
|
-
...((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || [],
|
|
24365
|
-
{
|
|
24366
|
-
placement: currentPlacement,
|
|
24367
|
-
overflows: currentOverflows
|
|
24368
|
-
}
|
|
24369
|
-
], nextPlacement = placements$1[currentIndex + 1];
|
|
24370
|
-
if (nextPlacement)
|
|
24371
|
-
return {
|
|
24372
|
-
data: {
|
|
24373
|
-
index: currentIndex + 1,
|
|
24374
|
-
overflows: allOverflows
|
|
24375
|
-
},
|
|
24376
|
-
reset: {
|
|
24377
|
-
placement: nextPlacement
|
|
24378
|
-
}
|
|
24379
|
-
};
|
|
24380
|
-
var placementsSortedByMostSpace = allOverflows.map(function(d) {
|
|
24381
|
-
var alignment2 = getAlignment(d.placement);
|
|
24382
|
-
return [
|
|
24383
|
-
d.placement,
|
|
24384
|
-
alignment2 && crossAxis ? (
|
|
24385
|
-
// Check along the mainAxis and main crossAxis side.
|
|
24386
|
-
d.overflows.slice(0, 2).reduce(function(acc, v) {
|
|
24387
|
-
return acc + v;
|
|
24388
|
-
}, 0)
|
|
24389
|
-
) : (
|
|
24390
|
-
// Check only the mainAxis.
|
|
24391
|
-
d.overflows[0]
|
|
24392
|
-
),
|
|
24393
|
-
d.overflows
|
|
24394
|
-
];
|
|
24395
|
-
}).sort(function(a, b) {
|
|
24396
|
-
return a[1] - b[1];
|
|
24397
|
-
}), placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(function(d) {
|
|
24398
|
-
return d[2].slice(
|
|
24399
|
-
0,
|
|
24400
|
-
// Aligned placements should not check their opposite crossAxis
|
|
24401
|
-
// side.
|
|
24402
|
-
getAlignment(d[0]) ? 2 : 3
|
|
24403
|
-
).every(function(v) {
|
|
24404
|
-
return v <= 0;
|
|
24405
|
-
});
|
|
24406
|
-
}), resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
24407
|
-
return resetPlacement !== placement ? {
|
|
24408
|
-
data: {
|
|
24409
|
-
index: currentIndex + 1,
|
|
24410
|
-
overflows: allOverflows
|
|
24411
|
-
},
|
|
24412
|
-
reset: {
|
|
24413
|
-
placement: resetPlacement
|
|
24414
|
-
}
|
|
24415
|
-
} : {};
|
|
24416
|
-
}
|
|
24417
|
-
};
|
|
24418
|
-
}, flip2 = function(options) {
|
|
24419
|
-
return options === void 0 && (options = {}), {
|
|
24420
|
-
name: "flip",
|
|
24421
|
-
options,
|
|
24422
|
-
async fn(state) {
|
|
24423
|
-
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);
|
|
24424
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)
|
|
24425
|
-
return {};
|
|
24426
|
-
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 ? [
|
|
24427
|
-
getOppositePlacement(initialPlacement)
|
|
24428
|
-
] : getExpandedPlacements(initialPlacement)), hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
24429
|
-
!specifiedFallbackPlacements && hasFallbackAxisSideDirection && fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
24430
|
-
var placements2 = [
|
|
24431
|
-
initialPlacement,
|
|
24432
|
-
...fallbackPlacements
|
|
24433
|
-
], overflow = await detectOverflow2(state, detectOverflowOptions), overflows = [], overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
24434
|
-
if (checkMainAxis && overflows.push(overflow[side]), checkCrossAxis) {
|
|
24435
|
-
var sides2 = getAlignmentSides(placement, rects, rtl);
|
|
24436
|
-
overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
|
|
24437
|
-
}
|
|
24438
|
-
if (overflowsData = [
|
|
24439
|
-
...overflowsData,
|
|
24440
|
-
{
|
|
24441
|
-
placement,
|
|
24442
|
-
overflows
|
|
24443
|
-
}
|
|
24444
|
-
], !overflows.every(function(side2) {
|
|
24445
|
-
return side2 <= 0;
|
|
24446
|
-
})) {
|
|
24447
|
-
var _middlewareData$flip2, _overflowsData$filter, nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1, nextPlacement = placements2[nextIndex];
|
|
24448
|
-
if (nextPlacement) {
|
|
24449
|
-
var _overflowsData$, ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : !1, hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
|
|
24450
|
-
if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow)
|
|
24451
|
-
return {
|
|
24452
|
-
data: {
|
|
24453
|
-
index: nextIndex,
|
|
24454
|
-
overflows: overflowsData
|
|
24455
|
-
},
|
|
24456
|
-
reset: {
|
|
24457
|
-
placement: nextPlacement
|
|
24458
|
-
}
|
|
24459
|
-
};
|
|
24460
|
-
}
|
|
24461
|
-
var resetPlacement = (_overflowsData$filter = overflowsData.filter(function(d) {
|
|
24462
|
-
return d.overflows[0] <= 0;
|
|
24463
|
-
}).sort(function(a, b) {
|
|
24464
|
-
return a.overflows[1] - b.overflows[1];
|
|
24465
|
-
})[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
24466
|
-
if (!resetPlacement)
|
|
24467
|
-
switch (fallbackStrategy) {
|
|
24468
|
-
case "bestFit": {
|
|
24469
|
-
var _overflowsData$filter2, placement1 = (_overflowsData$filter2 = overflowsData.filter(function(d) {
|
|
24470
|
-
if (hasFallbackAxisSideDirection) {
|
|
24471
|
-
var currentSideAxis = getSideAxis(d.placement);
|
|
24472
|
-
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
24473
|
-
// reading directions favoring greater width.
|
|
24474
|
-
currentSideAxis === "y";
|
|
24475
|
-
}
|
|
24476
|
-
return !0;
|
|
24477
|
-
}).map(function(d) {
|
|
24478
|
-
return [
|
|
24479
|
-
d.placement,
|
|
24480
|
-
d.overflows.filter(function(overflow2) {
|
|
24481
|
-
return overflow2 > 0;
|
|
24482
|
-
}).reduce(function(acc, overflow2) {
|
|
24483
|
-
return acc + overflow2;
|
|
24484
|
-
}, 0)
|
|
24485
|
-
];
|
|
24486
|
-
}).sort(function(a, b) {
|
|
24487
|
-
return a[1] - b[1];
|
|
24488
|
-
})[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
24489
|
-
placement1 && (resetPlacement = placement1);
|
|
24490
|
-
break;
|
|
24491
|
-
}
|
|
24492
|
-
case "initialPlacement":
|
|
24493
|
-
resetPlacement = initialPlacement;
|
|
24494
|
-
break;
|
|
24495
|
-
}
|
|
24496
|
-
if (placement !== resetPlacement)
|
|
24497
|
-
return {
|
|
24498
|
-
reset: {
|
|
24499
|
-
placement: resetPlacement
|
|
24500
|
-
}
|
|
24501
|
-
};
|
|
24502
|
-
}
|
|
24503
|
-
return {};
|
|
24504
|
-
}
|
|
24505
|
-
};
|
|
24506
|
-
};
|
|
24507
|
-
hide2 = function(options) {
|
|
24508
|
-
return options === void 0 && (options = {}), {
|
|
24509
|
-
name: "hide",
|
|
24510
|
-
options,
|
|
24511
|
-
async fn(state) {
|
|
24512
|
-
var { rects } = state, { strategy = "referenceHidden", ...detectOverflowOptions } = evaluate(options, state);
|
|
24513
|
-
switch (strategy) {
|
|
24514
|
-
case "referenceHidden": {
|
|
24515
|
-
var overflow = await detectOverflow2(state, {
|
|
24516
|
-
...detectOverflowOptions,
|
|
24517
|
-
elementContext: "reference"
|
|
24518
|
-
}), offsets = getSideOffsets(overflow, rects.reference);
|
|
24519
|
-
return {
|
|
24520
|
-
data: {
|
|
24521
|
-
referenceHiddenOffsets: offsets,
|
|
24522
|
-
referenceHidden: isAnySideFullyClipped(offsets)
|
|
24523
|
-
}
|
|
24524
|
-
};
|
|
24525
|
-
}
|
|
24526
|
-
case "escaped": {
|
|
24527
|
-
var overflow1 = await detectOverflow2(state, {
|
|
24528
|
-
...detectOverflowOptions,
|
|
24529
|
-
altBoundary: !0
|
|
24530
|
-
}), offsets1 = getSideOffsets(overflow1, rects.floating);
|
|
24531
|
-
return {
|
|
24532
|
-
data: {
|
|
24533
|
-
escapedOffsets: offsets1,
|
|
24534
|
-
escaped: isAnySideFullyClipped(offsets1)
|
|
24535
|
-
}
|
|
24536
|
-
};
|
|
24537
|
-
}
|
|
24538
|
-
default:
|
|
24539
|
-
return {};
|
|
24540
|
-
}
|
|
24541
|
-
}
|
|
24542
|
-
};
|
|
24543
|
-
};
|
|
24544
|
-
inline2 = function(options) {
|
|
24545
|
-
return options === void 0 && (options = {}), {
|
|
24546
|
-
name: "inline",
|
|
24547
|
-
options,
|
|
24548
|
-
async fn(state) {
|
|
24549
|
-
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);
|
|
24550
|
-
function getBoundingClientRect() {
|
|
24551
|
-
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null)
|
|
24552
|
-
return clientRects.find(function(rect) {
|
|
24553
|
-
return x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom;
|
|
24554
|
-
}) || fallback;
|
|
24555
|
-
if (clientRects.length >= 2) {
|
|
24556
|
-
if (getSideAxis(placement) === "y") {
|
|
24557
|
-
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;
|
|
24558
|
-
return {
|
|
24559
|
-
top,
|
|
24560
|
-
bottom,
|
|
24561
|
-
left,
|
|
24562
|
-
right,
|
|
24563
|
-
width,
|
|
24564
|
-
height,
|
|
24565
|
-
x: left,
|
|
24566
|
-
y: top
|
|
24567
|
-
};
|
|
24568
|
-
}
|
|
24569
|
-
var isLeftSide = getSide(placement) === "left", maxRight = max(...clientRects.map(function(rect) {
|
|
24570
|
-
return rect.right;
|
|
24571
|
-
})), minLeft = min(...clientRects.map(function(rect) {
|
|
24572
|
-
return rect.left;
|
|
24573
|
-
})), measureRects = clientRects.filter(function(rect) {
|
|
24574
|
-
return isLeftSide ? rect.left === minLeft : rect.right === maxRight;
|
|
24575
|
-
}), top1 = measureRects[0].top, bottom1 = measureRects[measureRects.length - 1].bottom, left1 = minLeft, right1 = maxRight, width1 = right1 - left1, height1 = bottom1 - top1;
|
|
24576
|
-
return {
|
|
24577
|
-
top: top1,
|
|
24578
|
-
bottom: bottom1,
|
|
24579
|
-
left: left1,
|
|
24580
|
-
right: right1,
|
|
24581
|
-
width: width1,
|
|
24582
|
-
height: height1,
|
|
24583
|
-
x: left1,
|
|
24584
|
-
y: top1
|
|
24585
|
-
};
|
|
24586
|
-
}
|
|
24587
|
-
return fallback;
|
|
24588
|
-
}
|
|
24589
|
-
var resetRects = await platform2.getElementRects({
|
|
24590
|
-
reference: {
|
|
24591
|
-
getBoundingClientRect
|
|
24592
|
-
},
|
|
24593
|
-
floating: elements.floating,
|
|
24594
|
-
strategy
|
|
24595
|
-
});
|
|
24596
|
-
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 ? {
|
|
24597
|
-
reset: {
|
|
24598
|
-
rects: resetRects
|
|
24599
|
-
}
|
|
24600
|
-
} : {};
|
|
24601
|
-
}
|
|
24602
|
-
};
|
|
24603
|
-
};
|
|
24604
|
-
offset2 = function(options) {
|
|
24605
|
-
return options === void 0 && (options = 0), {
|
|
24606
|
-
name: "offset",
|
|
24607
|
-
options,
|
|
24608
|
-
async fn(state) {
|
|
24609
|
-
var _middlewareData$offse, _middlewareData$arrow, { x, y, placement, middlewareData } = state, diffCoords = await convertValueToCoords(state, options);
|
|
24610
|
-
return placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset ? {} : {
|
|
24611
|
-
x: x + diffCoords.x,
|
|
24612
|
-
y: y + diffCoords.y,
|
|
24613
|
-
data: {
|
|
24614
|
-
...diffCoords,
|
|
24615
|
-
placement
|
|
24616
|
-
}
|
|
24617
|
-
};
|
|
24618
|
-
}
|
|
24619
|
-
};
|
|
24620
|
-
}, shift2 = function(options) {
|
|
24621
|
-
return options === void 0 && (options = {}), {
|
|
24622
|
-
name: "shift",
|
|
24623
|
-
options,
|
|
24624
|
-
async fn(state) {
|
|
24625
|
-
var { x, y, placement } = state, { mainAxis: checkMainAxis = !0, crossAxis: checkCrossAxis = !1, limiter = {
|
|
24626
|
-
fn: function(_ref) {
|
|
24627
|
-
var { x: x2, y: y2 } = _ref;
|
|
24628
|
-
return {
|
|
24629
|
-
x: x2,
|
|
24630
|
-
y: y2
|
|
24631
|
-
};
|
|
24632
|
-
}
|
|
24633
|
-
}, ...detectOverflowOptions } = evaluate(options, state), coords = {
|
|
24634
|
-
x,
|
|
24635
|
-
y
|
|
24636
|
-
}, overflow = await detectOverflow2(state, detectOverflowOptions), crossAxis = getSideAxis(getSide(placement)), mainAxis = getOppositeAxis(crossAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis];
|
|
24637
|
-
if (checkMainAxis) {
|
|
24638
|
-
var minSide = mainAxis === "y" ? "top" : "left", maxSide = mainAxis === "y" ? "bottom" : "right", min2 = mainAxisCoord + overflow[minSide], max2 = mainAxisCoord - overflow[maxSide];
|
|
24639
|
-
mainAxisCoord = clamp(min2, mainAxisCoord, max2);
|
|
24640
|
-
}
|
|
24641
|
-
if (checkCrossAxis) {
|
|
24642
|
-
var minSide1 = crossAxis === "y" ? "top" : "left", maxSide1 = crossAxis === "y" ? "bottom" : "right", min1 = crossAxisCoord + overflow[minSide1], max1 = crossAxisCoord - overflow[maxSide1];
|
|
24643
|
-
crossAxisCoord = clamp(min1, crossAxisCoord, max1);
|
|
24644
|
-
}
|
|
24645
|
-
var limitedCoords = limiter.fn({
|
|
24646
|
-
...state,
|
|
24647
|
-
[mainAxis]: mainAxisCoord,
|
|
24648
|
-
[crossAxis]: crossAxisCoord
|
|
24649
|
-
});
|
|
24650
|
-
return {
|
|
24651
|
-
...limitedCoords,
|
|
24652
|
-
data: {
|
|
24653
|
-
x: limitedCoords.x - x,
|
|
24654
|
-
y: limitedCoords.y - y,
|
|
24655
|
-
enabled: {
|
|
24656
|
-
[mainAxis]: checkMainAxis,
|
|
24657
|
-
[crossAxis]: checkCrossAxis
|
|
24658
|
-
}
|
|
24659
|
-
}
|
|
24660
|
-
};
|
|
24661
|
-
}
|
|
24662
|
-
};
|
|
24663
|
-
}, limitShift2 = function(options) {
|
|
24664
|
-
return options === void 0 && (options = {}), {
|
|
24665
|
-
options,
|
|
24666
|
-
fn(state) {
|
|
24667
|
-
var { x, y, placement, rects, middlewareData } = state, { offset: offset4 = 0, mainAxis: checkMainAxis = !0, crossAxis: checkCrossAxis = !0 } = evaluate(options, state), coords = {
|
|
24668
|
-
x,
|
|
24669
|
-
y
|
|
24670
|
-
}, crossAxis = getSideAxis(placement), mainAxis = getOppositeAxis(crossAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis], rawOffset = evaluate(offset4, state), computedOffset = typeof rawOffset == "number" ? {
|
|
24671
|
-
mainAxis: rawOffset,
|
|
24672
|
-
crossAxis: 0
|
|
24673
|
-
} : {
|
|
24674
|
-
mainAxis: 0,
|
|
24675
|
-
crossAxis: 0,
|
|
24676
|
-
...rawOffset
|
|
24677
|
-
};
|
|
24678
|
-
if (checkMainAxis) {
|
|
24679
|
-
var len = mainAxis === "y" ? "height" : "width", limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis, limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
24680
|
-
mainAxisCoord < limitMin ? mainAxisCoord = limitMin : mainAxisCoord > limitMax && (mainAxisCoord = limitMax);
|
|
24681
|
-
}
|
|
24682
|
-
if (checkCrossAxis) {
|
|
24683
|
-
var _middlewareData$offse, _middlewareData$offse2, len1 = mainAxis === "y" ? "width" : "height", isOriginSide = [
|
|
24684
|
-
"top",
|
|
24685
|
-
"left"
|
|
24686
|
-
].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);
|
|
24687
|
-
crossAxisCoord < limitMin1 ? crossAxisCoord = limitMin1 : crossAxisCoord > limitMax1 && (crossAxisCoord = limitMax1);
|
|
24688
|
-
}
|
|
24689
|
-
return {
|
|
24690
|
-
[mainAxis]: mainAxisCoord,
|
|
24691
|
-
[crossAxis]: crossAxisCoord
|
|
24692
|
-
};
|
|
24693
|
-
}
|
|
24694
|
-
};
|
|
24695
|
-
}, size2 = function(options) {
|
|
24696
|
-
return options === void 0 && (options = {}), {
|
|
24697
|
-
name: "size",
|
|
24698
|
-
options,
|
|
24699
|
-
async fn(state) {
|
|
24700
|
-
var _state$middlewareData, _state$middlewareData2, { placement, rects, platform: platform2, elements } = state, { apply = function() {
|
|
24701
|
-
}, ...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;
|
|
24702
|
-
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");
|
|
24703
|
-
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;
|
|
24704
|
-
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) {
|
|
24705
|
-
var xMin = max(overflow.left, 0), xMax = max(overflow.right, 0), yMin = max(overflow.top, 0), yMax = max(overflow.bottom, 0);
|
|
24706
|
-
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));
|
|
24707
|
-
}
|
|
24708
|
-
await apply({
|
|
24709
|
-
...state,
|
|
24710
|
-
availableWidth,
|
|
24711
|
-
availableHeight
|
|
24712
|
-
});
|
|
24713
|
-
var nextDimensions = await platform2.getDimensions(elements.floating);
|
|
24714
|
-
return width !== nextDimensions.width || height !== nextDimensions.height ? {
|
|
24715
|
-
reset: {
|
|
24716
|
-
rects: !0
|
|
24717
|
-
}
|
|
24718
|
-
} : {};
|
|
24719
|
-
}
|
|
24720
|
-
};
|
|
24721
|
-
};
|
|
24722
|
-
}
|
|
24723
|
-
});
|
|
24724
|
-
|
|
24725
|
-
// ../../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js
|
|
24726
|
-
var require_floating_ui_react_native = __commonJS({
|
|
24727
|
-
"../../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js"(exports2) {
|
|
24728
|
-
"use strict";
|
|
24729
|
-
var core = (init_floating_ui_core_esm(), __toCommonJS(floating_ui_core_esm_exports)), React4 = require("react"), reactNative = require("react-native");
|
|
24730
|
-
function _interopNamespaceDefault(e) {
|
|
24731
|
-
var n = /* @__PURE__ */ Object.create(null);
|
|
24732
|
-
return e && Object.keys(e).forEach(function(k) {
|
|
24733
|
-
if (k !== "default") {
|
|
24734
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24735
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
24736
|
-
enumerable: !0,
|
|
24737
|
-
get: function() {
|
|
24738
|
-
return e[k];
|
|
24739
|
-
}
|
|
24740
|
-
});
|
|
24741
|
-
}
|
|
24742
|
-
}), n.default = e, Object.freeze(n);
|
|
24743
|
-
}
|
|
24744
|
-
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React4), ORIGIN$1 = {
|
|
24745
|
-
x: 0,
|
|
24746
|
-
y: 0
|
|
24747
|
-
}, isAndroid = reactNative.Platform.OS === "android";
|
|
24748
|
-
function isView(reference) {
|
|
24749
|
-
return "measure" in reference;
|
|
24750
|
-
}
|
|
24751
|
-
var createPlatform = function(_ref) {
|
|
24752
|
-
var { offsetParent, sameScrollView = !0, scrollOffsets = ORIGIN$1 } = _ref;
|
|
24753
|
-
return {
|
|
24754
|
-
getElementRects(_ref2) {
|
|
24755
|
-
var { reference, floating } = _ref2;
|
|
24756
|
-
return new Promise(function(resolve) {
|
|
24757
|
-
var onMeasure = function(offsetX, offsetY) {
|
|
24758
|
-
offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), floating.measure(function(x, y, width, height) {
|
|
24759
|
-
var floatingRect = {
|
|
24760
|
-
width,
|
|
24761
|
-
height,
|
|
24762
|
-
...ORIGIN$1
|
|
24763
|
-
}, method = sameScrollView ? "measure" : "measureInWindow";
|
|
24764
|
-
if (isView(reference))
|
|
24765
|
-
reference[method](function(x2, y2, width2, height2) {
|
|
24766
|
-
y2 = isAndroid && !sameScrollView && reactNative.StatusBar.currentHeight ? y2 + reactNative.StatusBar.currentHeight : y2;
|
|
24767
|
-
var referenceRect2 = {
|
|
24768
|
-
width: width2,
|
|
24769
|
-
height: height2,
|
|
24770
|
-
x: x2 - offsetX,
|
|
24771
|
-
y: y2 - offsetY
|
|
24772
|
-
};
|
|
24773
|
-
resolve({
|
|
24774
|
-
reference: referenceRect2,
|
|
24775
|
-
floating: floatingRect
|
|
24776
|
-
});
|
|
24777
|
-
});
|
|
24778
|
-
else {
|
|
24779
|
-
var boundingRect = reference.getBoundingClientRect(), referenceRect = {
|
|
24780
|
-
width: boundingRect.width,
|
|
24781
|
-
height: boundingRect.height,
|
|
24782
|
-
x: boundingRect.x - offsetX,
|
|
24783
|
-
y: boundingRect.y - offsetY
|
|
24784
|
-
};
|
|
24785
|
-
resolve({
|
|
24786
|
-
reference: referenceRect,
|
|
24787
|
-
floating: floatingRect
|
|
24788
|
-
});
|
|
24789
|
-
}
|
|
24790
|
-
});
|
|
24791
|
-
};
|
|
24792
|
-
offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
|
|
24793
|
-
});
|
|
24794
|
-
},
|
|
24795
|
-
getClippingRect() {
|
|
24796
|
-
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;
|
|
24797
|
-
return Promise.resolve({
|
|
24798
|
-
width: windowWidth,
|
|
24799
|
-
height: screenHeight - navigationBarHeight,
|
|
24800
|
-
...sameScrollView ? scrollOffsets : ORIGIN$1
|
|
24801
|
-
});
|
|
24802
|
-
},
|
|
24803
|
-
convertOffsetParentRelativeRectToViewportRelativeRect(_ref3) {
|
|
24804
|
-
var { rect } = _ref3;
|
|
24805
|
-
return new Promise(function(resolve) {
|
|
24806
|
-
var onMeasure = function(offsetX, offsetY) {
|
|
24807
|
-
offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), resolve({
|
|
24808
|
-
...rect,
|
|
24809
|
-
x: rect.x + offsetX,
|
|
24810
|
-
y: rect.y + offsetY
|
|
24811
|
-
});
|
|
24812
|
-
};
|
|
24813
|
-
offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
|
|
24814
|
-
});
|
|
24815
|
-
},
|
|
24816
|
-
getDimensions: function(element) {
|
|
24817
|
-
return new Promise(function(resolve) {
|
|
24818
|
-
return element.measure(function(x, y, width, height) {
|
|
24819
|
-
return resolve({
|
|
24820
|
-
width,
|
|
24821
|
-
height
|
|
24822
|
-
});
|
|
24823
|
-
});
|
|
24824
|
-
});
|
|
24825
|
-
}
|
|
24826
|
-
};
|
|
24827
|
-
};
|
|
24828
|
-
function deepEqual(a, b) {
|
|
24829
|
-
if (a === b)
|
|
24830
|
-
return !0;
|
|
24831
|
-
if (typeof a != typeof b)
|
|
24832
|
-
return !1;
|
|
24833
|
-
if (typeof a == "function" && a.toString() === b.toString())
|
|
24834
|
-
return !0;
|
|
24835
|
-
var length, i, keys;
|
|
24836
|
-
if (a && b && typeof a == "object") {
|
|
24837
|
-
if (Array.isArray(a)) {
|
|
24838
|
-
if (length = a.length, length !== b.length) return !1;
|
|
24839
|
-
for (i = length; i-- !== 0; )
|
|
24840
|
-
if (!deepEqual(a[i], b[i]))
|
|
24841
|
-
return !1;
|
|
24842
|
-
return !0;
|
|
24843
|
-
}
|
|
24844
|
-
if (keys = Object.keys(a), length = keys.length, length !== Object.keys(b).length)
|
|
24845
|
-
return !1;
|
|
24846
|
-
for (i = length; i-- !== 0; )
|
|
24847
|
-
if (!{}.hasOwnProperty.call(b, keys[i]))
|
|
24848
|
-
return !1;
|
|
24849
|
-
for (i = length; i-- !== 0; ) {
|
|
24850
|
-
var key = keys[i];
|
|
24851
|
-
if (!(key === "_owner" && a.$$typeof) && !deepEqual(a[key], b[key]))
|
|
24852
|
-
return !1;
|
|
24853
|
-
}
|
|
24854
|
-
return !0;
|
|
24855
|
-
}
|
|
24856
|
-
return a !== a && b !== b;
|
|
24857
|
-
}
|
|
24858
|
-
var ORIGIN = {
|
|
24859
|
-
x: 0,
|
|
24860
|
-
y: 0
|
|
24861
|
-
};
|
|
24862
|
-
function useFloating2(options) {
|
|
24863
|
-
options === void 0 && (options = {});
|
|
24864
|
-
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) {
|
|
24865
|
-
node !== referenceRef.current && (referenceRef.current = node, _setReference(node));
|
|
24866
|
-
}, []), setFloating = React__namespace.useCallback(function(node) {
|
|
24867
|
-
node !== floatingRef.current && (floatingRef.current = node, _setFloating(node));
|
|
24868
|
-
}, []), setOffsetParent = React__namespace.useCallback(function(node) {
|
|
24869
|
-
node !== offsetParentRef.current && (offsetParentRef.current = node, _setOffsetParent(node));
|
|
24870
|
-
}, []), referenceRef = React__namespace.useRef(null), floatingRef = React__namespace.useRef(null), offsetParentRef = React__namespace.useRef(null), [data, setData] = React__namespace.useState({
|
|
24871
|
-
x: 0,
|
|
24872
|
-
y: 0,
|
|
24873
|
-
placement,
|
|
24874
|
-
strategy: "absolute",
|
|
24875
|
-
middlewareData: {}
|
|
24876
|
-
}), [scrollOffsets, setScrollOffsets] = React__namespace.useState(ORIGIN), [latestMiddleware, setLatestMiddleware] = React__namespace.useState(middleware);
|
|
24877
|
-
deepEqual(latestMiddleware, middleware) || setLatestMiddleware(middleware);
|
|
24878
|
-
var platform2 = React__namespace.useMemo(function() {
|
|
24879
|
-
return createPlatform({
|
|
24880
|
-
offsetParent: offsetParentEl,
|
|
24881
|
-
scrollOffsets,
|
|
24882
|
-
sameScrollView
|
|
24883
|
-
});
|
|
24884
|
-
}, [
|
|
24885
|
-
offsetParentEl,
|
|
24886
|
-
scrollOffsets,
|
|
24887
|
-
sameScrollView
|
|
24888
|
-
]), update = React__namespace.useCallback(function() {
|
|
24889
|
-
!referenceRef.current || !floatingRef.current || core.computePosition(referenceRef.current, floatingRef.current, {
|
|
24890
|
-
middleware: latestMiddleware,
|
|
24891
|
-
platform: platform2,
|
|
24892
|
-
placement
|
|
24893
|
-
}).then(function(data2) {
|
|
24894
|
-
isMountedRef.current && setData(data2);
|
|
24895
|
-
});
|
|
24896
|
-
}, [
|
|
24897
|
-
latestMiddleware,
|
|
24898
|
-
platform2,
|
|
24899
|
-
placement
|
|
24900
|
-
]);
|
|
24901
|
-
React__namespace.useLayoutEffect(function() {
|
|
24902
|
-
referenceEl && (referenceRef.current = referenceEl), floatingEl && (floatingRef.current = floatingEl), offsetParentEl && (offsetParentRef.current = offsetParentEl);
|
|
24903
|
-
var frame = requestAnimationFrame(update);
|
|
24904
|
-
return function() {
|
|
24905
|
-
cancelAnimationFrame(frame);
|
|
24906
|
-
};
|
|
24907
|
-
}, [
|
|
24908
|
-
referenceEl,
|
|
24909
|
-
floatingEl,
|
|
24910
|
-
offsetParentEl,
|
|
24911
|
-
update
|
|
24912
|
-
]);
|
|
24913
|
-
var isMountedRef = React__namespace.useRef(!0);
|
|
24914
|
-
React__namespace.useLayoutEffect(function() {
|
|
24915
|
-
return isMountedRef.current = !0, function() {
|
|
24916
|
-
isMountedRef.current = !1;
|
|
24917
|
-
};
|
|
24918
|
-
}, []);
|
|
24919
|
-
var refs = React__namespace.useMemo(function() {
|
|
24920
|
-
return {
|
|
24921
|
-
reference: referenceRef,
|
|
24922
|
-
floating: floatingRef,
|
|
24923
|
-
offsetParent: offsetParentRef,
|
|
24924
|
-
setReference,
|
|
24925
|
-
setFloating,
|
|
24926
|
-
setOffsetParent
|
|
24927
|
-
};
|
|
24928
|
-
}, [
|
|
24929
|
-
setReference,
|
|
24930
|
-
setFloating,
|
|
24931
|
-
setOffsetParent
|
|
24932
|
-
]), elements = React__namespace.useMemo(function() {
|
|
24933
|
-
return {
|
|
24934
|
-
reference: referenceEl,
|
|
24935
|
-
floating: floatingEl,
|
|
24936
|
-
offsetParent: offsetParentEl
|
|
24937
|
-
};
|
|
24938
|
-
}, [
|
|
24939
|
-
referenceEl,
|
|
24940
|
-
floatingEl,
|
|
24941
|
-
offsetParentEl
|
|
24942
|
-
]), floatingStyles = React__namespace.useMemo(function() {
|
|
24943
|
-
return elements.floating ? {
|
|
24944
|
-
position: "absolute",
|
|
24945
|
-
left: data.x,
|
|
24946
|
-
top: data.y
|
|
24947
|
-
} : {
|
|
24948
|
-
position: "absolute",
|
|
24949
|
-
left: 0,
|
|
24950
|
-
top: 0
|
|
24951
|
-
};
|
|
24952
|
-
}, [
|
|
24953
|
-
elements.floating,
|
|
24954
|
-
data.x,
|
|
24955
|
-
data.y
|
|
24956
|
-
]);
|
|
24957
|
-
return React__namespace.useMemo(function() {
|
|
24958
|
-
return {
|
|
24959
|
-
...data,
|
|
24960
|
-
update,
|
|
24961
|
-
refs,
|
|
24962
|
-
elements,
|
|
24963
|
-
floatingStyles,
|
|
24964
|
-
offsetParent: setOffsetParent,
|
|
24965
|
-
reference: setReference,
|
|
24966
|
-
floating: setFloating,
|
|
24967
|
-
scrollProps: {
|
|
24968
|
-
onScroll: function(event) {
|
|
24969
|
-
return setScrollOffsets(event.nativeEvent.contentOffset);
|
|
24970
|
-
},
|
|
24971
|
-
scrollEventThrottle: 16
|
|
24972
|
-
}
|
|
24973
|
-
};
|
|
24974
|
-
}, [
|
|
24975
|
-
data,
|
|
24976
|
-
refs,
|
|
24977
|
-
elements,
|
|
24978
|
-
floatingStyles,
|
|
24979
|
-
setReference,
|
|
24980
|
-
setFloating,
|
|
24981
|
-
setOffsetParent,
|
|
24982
|
-
update
|
|
24983
|
-
]);
|
|
24984
|
-
}
|
|
24985
|
-
var arrow$1 = function(options) {
|
|
24986
|
-
function isRef(value) {
|
|
24987
|
-
return {}.hasOwnProperty.call(value, "current");
|
|
24988
|
-
}
|
|
24989
|
-
return {
|
|
24990
|
-
name: "arrow",
|
|
24991
|
-
options,
|
|
24992
|
-
fn(state) {
|
|
24993
|
-
var { element, padding } = typeof options == "function" ? options(state) : options;
|
|
24994
|
-
return element && isRef(element) ? element.current != null ? core.arrow({
|
|
24995
|
-
element: element.current,
|
|
24996
|
-
padding
|
|
24997
|
-
}).fn(state) : {} : element ? core.arrow({
|
|
24998
|
-
element,
|
|
24999
|
-
padding
|
|
25000
|
-
}).fn(state) : {};
|
|
25001
|
-
}
|
|
25002
|
-
};
|
|
25003
|
-
}, offset4 = function(options, deps) {
|
|
25004
|
-
return {
|
|
25005
|
-
...core.offset(options),
|
|
25006
|
-
options: [
|
|
25007
|
-
options,
|
|
25008
|
-
deps
|
|
25009
|
-
]
|
|
25010
|
-
};
|
|
25011
|
-
}, shift4 = function(options, deps) {
|
|
25012
|
-
return {
|
|
25013
|
-
...core.shift(options),
|
|
25014
|
-
options: [
|
|
25015
|
-
options,
|
|
25016
|
-
deps
|
|
25017
|
-
]
|
|
25018
|
-
};
|
|
25019
|
-
}, limitShift4 = function(options, deps) {
|
|
25020
|
-
return {
|
|
25021
|
-
...core.limitShift(options),
|
|
25022
|
-
options: [
|
|
25023
|
-
options,
|
|
25024
|
-
deps
|
|
25025
|
-
]
|
|
25026
|
-
};
|
|
25027
|
-
}, flip4 = function(options, deps) {
|
|
25028
|
-
return {
|
|
25029
|
-
...core.flip(options),
|
|
25030
|
-
options: [
|
|
25031
|
-
options,
|
|
25032
|
-
deps
|
|
25033
|
-
]
|
|
25034
|
-
};
|
|
25035
|
-
}, size4 = function(options, deps) {
|
|
25036
|
-
return {
|
|
25037
|
-
...core.size(options),
|
|
25038
|
-
options: [
|
|
25039
|
-
options,
|
|
25040
|
-
deps
|
|
25041
|
-
]
|
|
25042
|
-
};
|
|
25043
|
-
}, autoPlacement4 = function(options, deps) {
|
|
25044
|
-
return {
|
|
25045
|
-
...core.autoPlacement(options),
|
|
25046
|
-
options: [
|
|
25047
|
-
options,
|
|
25048
|
-
deps
|
|
25049
|
-
]
|
|
25050
|
-
};
|
|
25051
|
-
}, hide4 = function(options, deps) {
|
|
25052
|
-
return {
|
|
25053
|
-
...core.hide(options),
|
|
25054
|
-
options: [
|
|
25055
|
-
options,
|
|
25056
|
-
deps
|
|
25057
|
-
]
|
|
25058
|
-
};
|
|
25059
|
-
}, inline4 = function(options, deps) {
|
|
25060
|
-
return {
|
|
25061
|
-
...core.inline(options),
|
|
25062
|
-
options: [
|
|
25063
|
-
options,
|
|
25064
|
-
deps
|
|
25065
|
-
]
|
|
25066
|
-
};
|
|
25067
|
-
}, arrow3 = function(options, deps) {
|
|
25068
|
-
return {
|
|
25069
|
-
...arrow$1(options),
|
|
25070
|
-
options: [
|
|
25071
|
-
options,
|
|
25072
|
-
deps
|
|
25073
|
-
]
|
|
25074
|
-
};
|
|
25075
|
-
};
|
|
25076
|
-
Object.defineProperty(exports2, "detectOverflow", {
|
|
25077
|
-
enumerable: !0,
|
|
25078
|
-
get: function() {
|
|
25079
|
-
return core.detectOverflow;
|
|
25080
|
-
}
|
|
25081
|
-
});
|
|
25082
|
-
exports2.arrow = arrow3;
|
|
25083
|
-
exports2.autoPlacement = autoPlacement4;
|
|
25084
|
-
exports2.flip = flip4;
|
|
25085
|
-
exports2.hide = hide4;
|
|
25086
|
-
exports2.inline = inline4;
|
|
25087
|
-
exports2.limitShift = limitShift4;
|
|
25088
|
-
exports2.offset = offset4;
|
|
25089
|
-
exports2.shift = shift4;
|
|
25090
|
-
exports2.size = size4;
|
|
25091
|
-
exports2.useFloating = useFloating2;
|
|
25092
|
-
}
|
|
25093
|
-
});
|
|
25094
|
-
|
|
25095
24060
|
// ../../core/floating/dist/cjs/Floating.native.js
|
|
25096
24061
|
var require_Floating_native = __commonJS({
|
|
25097
24062
|
"../../core/floating/dist/cjs/Floating.native.js"(exports2, module2) {
|
|
@@ -25140,7 +24105,7 @@ var require_Floating_native = __commonJS({
|
|
|
25140
24105
|
}
|
|
25141
24106
|
});
|
|
25142
24107
|
module2.exports = __toCommonJS2(Floating_native_exports);
|
|
25143
|
-
__reExport2(Floating_native_exports,
|
|
24108
|
+
__reExport2(Floating_native_exports, require_fake_react_native(), module2.exports);
|
|
25144
24109
|
var autoUpdate2 = function() {
|
|
25145
24110
|
}, platform2 = null;
|
|
25146
24111
|
}
|
|
@@ -25376,7 +24341,7 @@ var require_Popper_native = __commonJS({
|
|
|
25376
24341
|
}
|
|
25377
24342
|
});
|
|
25378
24343
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
25379
|
-
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 =
|
|
24344
|
+
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 = {
|
|
25380
24345
|
name: "checkFloating",
|
|
25381
24346
|
fn(data) {
|
|
25382
24347
|
return {
|
|
@@ -25390,7 +24355,7 @@ var require_Popper_native = __commonJS({
|
|
|
25390
24355
|
Object.assign(setupOptions, options);
|
|
25391
24356
|
}
|
|
25392
24357
|
function Popper(props) {
|
|
25393
|
-
var _middlewareData_checkFloating, { children, size:
|
|
24358
|
+
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)({
|
|
25394
24359
|
strategy,
|
|
25395
24360
|
placement,
|
|
25396
24361
|
sameScrollView: !1,
|
|
@@ -25433,7 +24398,7 @@ var require_Popper_native = __commonJS({
|
|
|
25433
24398
|
keyboardOpen
|
|
25434
24399
|
]);
|
|
25435
24400
|
var popperContext = {
|
|
25436
|
-
size:
|
|
24401
|
+
size: size2,
|
|
25437
24402
|
arrowRef: setArrow,
|
|
25438
24403
|
arrowStyle: middlewareData.arrow,
|
|
25439
24404
|
onArrowSize: setArrowSize,
|
|
@@ -25485,7 +24450,7 @@ var require_Popper_native = __commonJS({
|
|
|
25485
24450
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25486
24451
|
}
|
|
25487
24452
|
}), PopperContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25488
|
-
var { __scopePopper, enableAnimationForPositionChange, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size:
|
|
24453
|
+
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);
|
|
25489
24454
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
25490
24455
|
x && y && setNeedsMeasure(!1);
|
|
25491
24456
|
}, [
|
|
@@ -25518,7 +24483,7 @@ var require_Popper_native = __commonJS({
|
|
|
25518
24483
|
"data-placement": placement,
|
|
25519
24484
|
"data-strategy": strategy,
|
|
25520
24485
|
contain: "layout",
|
|
25521
|
-
size:
|
|
24486
|
+
size: size2,
|
|
25522
24487
|
...style,
|
|
25523
24488
|
...rest
|
|
25524
24489
|
}, "popper-content-frame")
|
|
@@ -25560,25 +24525,25 @@ var require_Popper_native = __commonJS({
|
|
|
25560
24525
|
bottom: "top",
|
|
25561
24526
|
left: "right"
|
|
25562
24527
|
}, PopperArrow = PopperArrowFrame.styleable(function(propsIn, forwardedRef) {
|
|
25563
|
-
var _context_arrowStyle, _context_arrowStyle1, { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset:
|
|
24528
|
+
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, {
|
|
25564
24529
|
shift: -2,
|
|
25565
24530
|
bounds: [
|
|
25566
24531
|
2
|
|
25567
24532
|
]
|
|
25568
|
-
})),
|
|
24533
|
+
})), 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 = {
|
|
25569
24534
|
x,
|
|
25570
24535
|
y,
|
|
25571
|
-
width:
|
|
25572
|
-
height:
|
|
24536
|
+
width: size2,
|
|
24537
|
+
height: size2
|
|
25573
24538
|
}, innerArrowStyle = {}, isVertical = primaryPlacement === "bottom" || primaryPlacement === "top";
|
|
25574
24539
|
if (primaryPlacement) {
|
|
25575
|
-
arrowStyle[isVertical ? "width" : "height"] =
|
|
24540
|
+
arrowStyle[isVertical ? "width" : "height"] = size2 * 2;
|
|
25576
24541
|
var oppSide = opposites[primaryPlacement];
|
|
25577
|
-
oppSide && (arrowStyle[oppSide] = -
|
|
24542
|
+
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() {
|
|
25578
24543
|
var _context_onArrowSize;
|
|
25579
|
-
(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context,
|
|
24544
|
+
(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size2);
|
|
25580
24545
|
}, [
|
|
25581
|
-
|
|
24546
|
+
size2,
|
|
25582
24547
|
context.onArrowSize
|
|
25583
24548
|
]);
|
|
25584
24549
|
}
|
|
@@ -25586,8 +24551,8 @@ var require_Popper_native = __commonJS({
|
|
|
25586
24551
|
ref: refs,
|
|
25587
24552
|
...arrowStyle,
|
|
25588
24553
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperArrowFrame, {
|
|
25589
|
-
width:
|
|
25590
|
-
height:
|
|
24554
|
+
width: size2,
|
|
24555
|
+
height: size2,
|
|
25591
24556
|
...arrowProps,
|
|
25592
24557
|
...innerArrowStyle,
|
|
25593
24558
|
rotate: "45deg",
|
|
@@ -25790,7 +24755,7 @@ var require_Popover_native = __commonJS({
|
|
|
25790
24755
|
}
|
|
25791
24756
|
});
|
|
25792
24757
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
25793
|
-
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 =
|
|
24758
|
+
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) {
|
|
25794
24759
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
25795
24760
|
return React4.useEffect(function() {
|
|
25796
24761
|
return onCustomAnchorAdd(), function() {
|
|
@@ -26014,7 +24979,8 @@ var require_Popover_native = __commonJS({
|
|
|
26014
24979
|
Close: PopoverClose,
|
|
26015
24980
|
Adapt: import_adapt.Adapt,
|
|
26016
24981
|
ScrollView: PopoverScrollView,
|
|
26017
|
-
Sheet: import_sheet.Sheet.Controlled
|
|
24982
|
+
Sheet: import_sheet.Sheet.Controlled,
|
|
24983
|
+
FocusScope: import_focus_scope.FocusScopeController
|
|
26018
24984
|
}), PopoverInner = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
26019
24985
|
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)({
|
|
26020
24986
|
prop: openProp,
|
|
@@ -26251,8 +25217,8 @@ var require_Progress_native = __commonJS({
|
|
|
26251
25217
|
animation: context.width ? animation : null
|
|
26252
25218
|
});
|
|
26253
25219
|
});
|
|
26254
|
-
function defaultGetValueLabel(value,
|
|
26255
|
-
return `${Math.round(value /
|
|
25220
|
+
function defaultGetValueLabel(value, max) {
|
|
25221
|
+
return `${Math.round(value / max * 100)}%`;
|
|
26256
25222
|
}
|
|
26257
25223
|
function getProgressState(value, maxValue) {
|
|
26258
25224
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
@@ -26260,11 +25226,11 @@ var require_Progress_native = __commonJS({
|
|
|
26260
25226
|
function isNumber(value) {
|
|
26261
25227
|
return typeof value == "number";
|
|
26262
25228
|
}
|
|
26263
|
-
function isValidMaxNumber(
|
|
26264
|
-
return isNumber(
|
|
25229
|
+
function isValidMaxNumber(max) {
|
|
25230
|
+
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
26265
25231
|
}
|
|
26266
|
-
function isValidValueNumber(value,
|
|
26267
|
-
return isNumber(value) && !Number.isNaN(value) && value <=
|
|
25232
|
+
function isValidValueNumber(value, max) {
|
|
25233
|
+
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
26268
25234
|
}
|
|
26269
25235
|
var DEFAULT_MAX = 100, ProgressFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
26270
25236
|
name: "Progress",
|
|
@@ -26278,10 +25244,10 @@ var require_Progress_native = __commonJS({
|
|
|
26278
25244
|
},
|
|
26279
25245
|
size: {
|
|
26280
25246
|
"...size": function(val) {
|
|
26281
|
-
var
|
|
25247
|
+
var size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.25);
|
|
26282
25248
|
return {
|
|
26283
|
-
height:
|
|
26284
|
-
minWidth: (0, import_core12.getVariableValue)(
|
|
25249
|
+
height: size2,
|
|
25250
|
+
minWidth: (0, import_core12.getVariableValue)(size2) * 20,
|
|
26285
25251
|
width: "100%"
|
|
26286
25252
|
};
|
|
26287
25253
|
}
|
|
@@ -26297,26 +25263,26 @@ var require_Progress_native = __commonJS({
|
|
|
26297
25263
|
value: valueProp,
|
|
26298
25264
|
max: maxProp,
|
|
26299
25265
|
getValueLabel = defaultGetValueLabel,
|
|
26300
|
-
size:
|
|
25266
|
+
size: size2 = "$true",
|
|
26301
25267
|
...progressProps
|
|
26302
|
-
} = props,
|
|
25268
|
+
} = 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);
|
|
26303
25269
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressProvider, {
|
|
26304
25270
|
scope: __scopeProgress,
|
|
26305
25271
|
value,
|
|
26306
|
-
max
|
|
25272
|
+
max,
|
|
26307
25273
|
width,
|
|
26308
25274
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressFrame, {
|
|
26309
|
-
"aria-valuemax":
|
|
25275
|
+
"aria-valuemax": max,
|
|
26310
25276
|
"aria-valuemin": 0,
|
|
26311
25277
|
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
26312
25278
|
"aria-valuetext": valueLabel,
|
|
26313
25279
|
// @ts-ignore
|
|
26314
25280
|
role: "progressbar",
|
|
26315
|
-
"data-state": getProgressState(value,
|
|
25281
|
+
"data-state": getProgressState(value, max),
|
|
26316
25282
|
"data-value": value ?? void 0,
|
|
26317
|
-
"data-max":
|
|
25283
|
+
"data-max": max,
|
|
26318
25284
|
...progressProps.unstyled !== !0 && {
|
|
26319
|
-
size:
|
|
25285
|
+
size: size2
|
|
26320
25286
|
},
|
|
26321
25287
|
...progressProps,
|
|
26322
25288
|
onLayout: function(e) {
|
|
@@ -26473,10 +25439,10 @@ var require_RadioGroup_native = __commonJS({
|
|
|
26473
25439
|
},
|
|
26474
25440
|
size: {
|
|
26475
25441
|
"...size": function(value, param) {
|
|
26476
|
-
var { props } = param, _props_scaleSize,
|
|
25442
|
+
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));
|
|
26477
25443
|
return {
|
|
26478
|
-
width:
|
|
26479
|
-
height:
|
|
25444
|
+
width: size2,
|
|
25445
|
+
height: size2
|
|
26480
25446
|
};
|
|
26481
25447
|
}
|
|
26482
25448
|
}
|
|
@@ -26710,7 +25676,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26710
25676
|
}
|
|
26711
25677
|
});
|
|
26712
25678
|
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
26713
|
-
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(),
|
|
25679
|
+
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();
|
|
26714
25680
|
function useRadioGroup(params) {
|
|
26715
25681
|
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
26716
25682
|
prop: valueProp,
|
|
@@ -26794,7 +25760,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26794
25760
|
}),
|
|
26795
25761
|
native,
|
|
26796
25762
|
frameAttrs: {
|
|
26797
|
-
"data-state": (0,
|
|
25763
|
+
"data-state": (0, import_utils.getState)(checked),
|
|
26798
25764
|
"data-disabled": isDisabled ? "" : void 0,
|
|
26799
25765
|
role: "radio",
|
|
26800
25766
|
"aria-labelledby": labelledBy,
|
|
@@ -26833,7 +25799,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26833
25799
|
var { radioGroupItemContext, disabled, ...rest } = params, { checked } = (0, import_react3.useContext)(radioGroupItemContext);
|
|
26834
25800
|
return {
|
|
26835
25801
|
checked,
|
|
26836
|
-
"data-state": (0,
|
|
25802
|
+
"data-state": (0, import_utils.getState)(checked),
|
|
26837
25803
|
"data-disabled": disabled ? "" : void 0,
|
|
26838
25804
|
...rest
|
|
26839
25805
|
};
|
|
@@ -27798,7 +26764,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
27798
26764
|
ellipse: !0
|
|
27799
26765
|
},
|
|
27800
26766
|
...restProps
|
|
27801
|
-
}), context = (0, import_context.useSelectItemParentContext)(ITEM_NAME, __scopeSelect), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size:
|
|
26767
|
+
}), 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);
|
|
27802
26768
|
React4.useEffect(function() {
|
|
27803
26769
|
return activeIndexSubscribe(function(i) {
|
|
27804
26770
|
var isActive = index === i;
|
|
@@ -27878,7 +26844,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
27878
26844
|
hoverTheme: !0,
|
|
27879
26845
|
focusTheme: !0,
|
|
27880
26846
|
cursor: "default",
|
|
27881
|
-
size:
|
|
26847
|
+
size: size2,
|
|
27882
26848
|
outlineOffset: -0.5,
|
|
27883
26849
|
focusVisibleStyle: {
|
|
27884
26850
|
outlineColor: "$outlineColor",
|
|
@@ -28321,7 +27287,7 @@ var require_Select_native = __commonJS({
|
|
|
28321
27287
|
}
|
|
28322
27288
|
});
|
|
28323
27289
|
module2.exports = __toCommonJS2(Select_exports);
|
|
28324
|
-
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, {
|
|
27290
|
+
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, {
|
|
28325
27291
|
name: VALUE_NAME,
|
|
28326
27292
|
userSelect: "none"
|
|
28327
27293
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
@@ -28403,10 +27369,10 @@ var require_Select_native = __commonJS({
|
|
|
28403
27369
|
size: "$2"
|
|
28404
27370
|
}
|
|
28405
27371
|
}), SelectGroup = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
28406
|
-
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,
|
|
27372
|
+
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() {
|
|
28407
27373
|
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, {
|
|
28408
27374
|
asChild: !0,
|
|
28409
|
-
size:
|
|
27375
|
+
size: size2,
|
|
28410
27376
|
// @ts-expect-error until we support typing based on tag
|
|
28411
27377
|
value: context.value,
|
|
28412
27378
|
id: itemParentContext.id,
|
|
@@ -28415,7 +27381,7 @@ var require_Select_native = __commonJS({
|
|
|
28415
27381
|
onChange: function(event) {
|
|
28416
27382
|
itemParentContext.onChange(event.currentTarget.value);
|
|
28417
27383
|
},
|
|
28418
|
-
size:
|
|
27384
|
+
size: size2,
|
|
28419
27385
|
ref: nativeSelectRef,
|
|
28420
27386
|
style: {
|
|
28421
27387
|
color: "var(--color)",
|
|
@@ -28492,7 +27458,8 @@ var require_Select_native = __commonJS({
|
|
|
28492
27458
|
Trigger: import_SelectTrigger.SelectTrigger,
|
|
28493
27459
|
Value: SelectValue,
|
|
28494
27460
|
Viewport: import_SelectViewport.SelectViewport,
|
|
28495
|
-
Sheet: import_sheet.Sheet.Controlled
|
|
27461
|
+
Sheet: import_sheet.Sheet.Controlled,
|
|
27462
|
+
FocusScope: import_focus_scope.FocusScopeController
|
|
28496
27463
|
});
|
|
28497
27464
|
function useEmitter() {
|
|
28498
27465
|
var listeners = React4.useRef();
|
|
@@ -28833,9 +27800,9 @@ var require_helpers_native3 = __commonJS({
|
|
|
28833
27800
|
return a - b;
|
|
28834
27801
|
});
|
|
28835
27802
|
}
|
|
28836
|
-
function convertValueToPercentage(value,
|
|
28837
|
-
var maxSteps =
|
|
28838
|
-
return percentPerStep * (value -
|
|
27803
|
+
function convertValueToPercentage(value, min, max) {
|
|
27804
|
+
var maxSteps = max - min, percentPerStep = 100 / maxSteps;
|
|
27805
|
+
return percentPerStep * (value - min);
|
|
28839
27806
|
}
|
|
28840
27807
|
function getLabel(index, totalValues) {
|
|
28841
27808
|
if (totalValues > 2) return `Value ${index + 1} of ${totalValues}`;
|
|
@@ -28852,14 +27819,14 @@ var require_helpers_native3 = __commonJS({
|
|
|
28852
27819
|
return distances.indexOf(closestDistance);
|
|
28853
27820
|
}
|
|
28854
27821
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
28855
|
-
var quarterWidth = width / 4, halfPercent = 50,
|
|
27822
|
+
var quarterWidth = width / 4, halfPercent = 50, offset2 = linearScale([
|
|
28856
27823
|
0,
|
|
28857
27824
|
halfPercent
|
|
28858
27825
|
], [
|
|
28859
27826
|
0,
|
|
28860
27827
|
quarterWidth
|
|
28861
27828
|
]);
|
|
28862
|
-
return (quarterWidth -
|
|
27829
|
+
return (quarterWidth - offset2(left) * direction) * direction;
|
|
28863
27830
|
}
|
|
28864
27831
|
function getStepsBetweenValues(values) {
|
|
28865
27832
|
return values.slice(0, -1).map(function(value, index) {
|
|
@@ -28957,14 +27924,14 @@ var require_SliderImpl_native = __commonJS({
|
|
|
28957
27924
|
},
|
|
28958
27925
|
size: function(val, extras) {
|
|
28959
27926
|
if (val) {
|
|
28960
|
-
var orientation = extras.props.orientation,
|
|
27927
|
+
var orientation = extras.props.orientation, size3 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 6);
|
|
28961
27928
|
return orientation === "horizontal" ? {
|
|
28962
|
-
height:
|
|
28963
|
-
borderRadius:
|
|
27929
|
+
height: size3,
|
|
27930
|
+
borderRadius: size3,
|
|
28964
27931
|
justifyContent: "center"
|
|
28965
27932
|
} : {
|
|
28966
|
-
width:
|
|
28967
|
-
borderRadius:
|
|
27933
|
+
width: size3,
|
|
27934
|
+
borderRadius: size3,
|
|
28968
27935
|
alignItems: "center"
|
|
28969
27936
|
};
|
|
28970
27937
|
}
|
|
@@ -29109,7 +28076,7 @@ var require_Slider_native = __commonJS({
|
|
|
29109
28076
|
1e3
|
|
29110
28077
|
));
|
|
29111
28078
|
var _setInterval, SliderHorizontal = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
29112
|
-
var { min
|
|
28079
|
+
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() {
|
|
29113
28080
|
return {
|
|
29114
28081
|
size: 0,
|
|
29115
28082
|
offset: 0
|
|
@@ -29120,11 +28087,11 @@ var require_Slider_native = __commonJS({
|
|
|
29120
28087
|
0,
|
|
29121
28088
|
state.size
|
|
29122
28089
|
], output = isDirectionLTR ? [
|
|
29123
|
-
|
|
29124
|
-
|
|
28090
|
+
min,
|
|
28091
|
+
max
|
|
29125
28092
|
] : [
|
|
29126
|
-
|
|
29127
|
-
|
|
28093
|
+
max,
|
|
28094
|
+
min
|
|
29128
28095
|
], value = (0, import_helpers3.linearScale)(input, output);
|
|
29129
28096
|
return value(pointerPosition);
|
|
29130
28097
|
}
|
|
@@ -29207,7 +28174,7 @@ var require_Slider_native = __commonJS({
|
|
|
29207
28174
|
}, []);
|
|
29208
28175
|
}
|
|
29209
28176
|
var SliderVertical = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
29210
|
-
var { min
|
|
28177
|
+
var { min, max, onSlideStart, onSlideMove, onStepKeyDown, onSlideEnd, ...sliderProps } = props, [state, setState_] = React4.useState(function() {
|
|
29211
28178
|
return {
|
|
29212
28179
|
size: 0,
|
|
29213
28180
|
offset: 0
|
|
@@ -29218,8 +28185,8 @@ var require_Slider_native = __commonJS({
|
|
|
29218
28185
|
0,
|
|
29219
28186
|
state.size
|
|
29220
28187
|
], output = [
|
|
29221
|
-
|
|
29222
|
-
|
|
28188
|
+
max,
|
|
28189
|
+
min
|
|
29223
28190
|
], value = (0, import_helpers3.linearScale)(input, output);
|
|
29224
28191
|
return value(pointerPosition);
|
|
29225
28192
|
}
|
|
@@ -29328,14 +28295,14 @@ var require_Slider_native = __commonJS({
|
|
|
29328
28295
|
});
|
|
29329
28296
|
SliderTrackActive.displayName = RANGE_NAME;
|
|
29330
28297
|
var getThumbSize = function(val) {
|
|
29331
|
-
var tokens = (0, import_core12.getTokens)(),
|
|
28298
|
+
var tokens = (0, import_core12.getTokens)(), size2 = typeof val == "number" ? val : (0, import_get_token2.getSize)(tokens.size[val], {
|
|
29332
28299
|
shift: -1
|
|
29333
28300
|
});
|
|
29334
28301
|
return {
|
|
29335
|
-
width:
|
|
29336
|
-
height:
|
|
29337
|
-
minWidth:
|
|
29338
|
-
minHeight:
|
|
28302
|
+
width: size2,
|
|
28303
|
+
height: size2,
|
|
28304
|
+
minWidth: size2,
|
|
28305
|
+
minHeight: size2
|
|
29339
28306
|
};
|
|
29340
28307
|
}, SliderThumbFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
29341
28308
|
name: "SliderThumb",
|
|
@@ -29359,10 +28326,10 @@ var require_Slider_native = __commonJS({
|
|
|
29359
28326
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
29360
28327
|
}
|
|
29361
28328
|
}), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
|
|
29362
|
-
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", [
|
|
28329
|
+
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() {
|
|
29363
28330
|
var estimatedSize = (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width);
|
|
29364
28331
|
return estimatedSize;
|
|
29365
|
-
}), thumbInBoundsOffset =
|
|
28332
|
+
}), thumbInBoundsOffset = size2 ? (0, import_helpers3.getThumbInBoundsOffset)(size2, percent, orientation.direction) : 0;
|
|
29366
28333
|
React4.useEffect(function() {
|
|
29367
28334
|
if (thumb) return context.thumbs.set(thumb, index), function() {
|
|
29368
28335
|
context.thumbs.delete(thumb);
|
|
@@ -29373,18 +28340,18 @@ var require_Slider_native = __commonJS({
|
|
|
29373
28340
|
index
|
|
29374
28341
|
]);
|
|
29375
28342
|
var positionalStyles = context.orientation === "horizontal" ? {
|
|
29376
|
-
x: thumbInBoundsOffset -
|
|
29377
|
-
y: -
|
|
28343
|
+
x: thumbInBoundsOffset - size2 / 2,
|
|
28344
|
+
y: -size2 / 2,
|
|
29378
28345
|
top: "50%",
|
|
29379
|
-
...
|
|
28346
|
+
...size2 === 0 && {
|
|
29380
28347
|
top: "auto",
|
|
29381
28348
|
bottom: "auto"
|
|
29382
28349
|
}
|
|
29383
28350
|
} : {
|
|
29384
|
-
x: -
|
|
29385
|
-
y:
|
|
28351
|
+
x: -size2 / 2,
|
|
28352
|
+
y: size2 / 2,
|
|
29386
28353
|
left: "50%",
|
|
29387
|
-
...
|
|
28354
|
+
...size2 === 0 && {
|
|
29388
28355
|
left: "auto",
|
|
29389
28356
|
right: "auto"
|
|
29390
28357
|
}
|
|
@@ -29431,8 +28398,8 @@ var require_Slider_native = __commonJS({
|
|
|
29431
28398
|
memo: !0
|
|
29432
28399
|
}
|
|
29433
28400
|
}), SliderComponent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
29434
|
-
var { name, min
|
|
29435
|
-
|
|
28401
|
+
var { name, min = 0, max = 100, step = 1, orientation = "horizontal", disabled = !1, minStepsBetweenThumbs = 0, defaultValue = [
|
|
28402
|
+
min
|
|
29436
28403
|
], value, onValueChange = function() {
|
|
29437
28404
|
}, 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)({
|
|
29438
28405
|
prop: value,
|
|
@@ -29479,9 +28446,9 @@ var require_Slider_native = __commonJS({
|
|
|
29479
28446
|
updateValues(value2, valueIndexToChangeRef.current), onSlideMove == null || onSlideMove(event, value2);
|
|
29480
28447
|
}
|
|
29481
28448
|
function updateValues(value2, atIndex) {
|
|
29482
|
-
var decimalCount = (0, import_helpers3.getDecimalCount)(step), snapToStep = (0, import_helpers3.roundValue)(Math.round((value2 -
|
|
29483
|
-
|
|
29484
|
-
|
|
28449
|
+
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, [
|
|
28450
|
+
min,
|
|
28451
|
+
max
|
|
29485
28452
|
]);
|
|
29486
28453
|
setValues(function() {
|
|
29487
28454
|
var prevValues = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], nextValues = (0, import_helpers3.getNextSortedValues)(prevValues, nextValue, atIndex);
|
|
@@ -29492,8 +28459,8 @@ var require_Slider_native = __commonJS({
|
|
|
29492
28459
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_constants22.SliderProvider, {
|
|
29493
28460
|
scope: props.__scopeSlider,
|
|
29494
28461
|
disabled,
|
|
29495
|
-
min
|
|
29496
|
-
max
|
|
28462
|
+
min,
|
|
28463
|
+
max,
|
|
29497
28464
|
valueIndexToChangeRef,
|
|
29498
28465
|
thumbs: thumbRefs.current,
|
|
29499
28466
|
values,
|
|
@@ -29504,8 +28471,8 @@ var require_Slider_native = __commonJS({
|
|
|
29504
28471
|
"data-disabled": disabled ? "" : void 0,
|
|
29505
28472
|
...sliderProps,
|
|
29506
28473
|
ref: composedRefs,
|
|
29507
|
-
min
|
|
29508
|
-
max
|
|
28474
|
+
min,
|
|
28475
|
+
max,
|
|
29509
28476
|
onSlideEnd,
|
|
29510
28477
|
onSlideStart: disabled ? void 0 : function(value2, target, event) {
|
|
29511
28478
|
if (target !== "thumb") {
|
|
@@ -29516,10 +28483,10 @@ var require_Slider_native = __commonJS({
|
|
|
29516
28483
|
},
|
|
29517
28484
|
onSlideMove: disabled ? void 0 : handleSlideMove,
|
|
29518
28485
|
onHomeKeyDown: function() {
|
|
29519
|
-
return !disabled && updateValues(
|
|
28486
|
+
return !disabled && updateValues(min, 0);
|
|
29520
28487
|
},
|
|
29521
28488
|
onEndKeyDown: function() {
|
|
29522
|
-
return !disabled && updateValues(
|
|
28489
|
+
return !disabled && updateValues(max, values.length - 1);
|
|
29523
28490
|
},
|
|
29524
28491
|
onStepKeyDown: function(param) {
|
|
29525
28492
|
var { event, direction: stepDirection } = param;
|
|
@@ -29817,10 +28784,10 @@ var require_Switch_native = __commonJS({
|
|
|
29817
28784
|
},
|
|
29818
28785
|
size: {
|
|
29819
28786
|
"...size": function(val) {
|
|
29820
|
-
var
|
|
28787
|
+
var size2 = getSwitchHeight(val);
|
|
29821
28788
|
return {
|
|
29822
|
-
height:
|
|
29823
|
-
width:
|
|
28789
|
+
height: size2,
|
|
28790
|
+
width: size2
|
|
29824
28791
|
};
|
|
29825
28792
|
}
|
|
29826
28793
|
}
|
|
@@ -29929,7 +28896,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
29929
28896
|
}
|
|
29930
28897
|
});
|
|
29931
28898
|
module2.exports = __toCommonJS2(createSwitch_exports);
|
|
29932
|
-
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 =
|
|
28899
|
+
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({
|
|
29933
28900
|
checked: !1,
|
|
29934
28901
|
disabled: !1,
|
|
29935
28902
|
frameWidth: 0
|
|
@@ -29938,12 +28905,12 @@ var require_createSwitch_native = __commonJS({
|
|
|
29938
28905
|
var { disableActiveTheme, Frame = import_Switch.SwitchFrame, Thumb = import_Switch.SwitchThumb } = createProps;
|
|
29939
28906
|
process.env.NODE_ENV === "development" && (Frame !== import_Switch.SwitchFrame && Frame.staticConfig.context && Frame.staticConfig.context !== import_StyledContext.SwitchStyledContext || Thumb !== import_Switch.SwitchThumb && Thumb.staticConfig.context && Thumb.staticConfig.context !== import_StyledContext.SwitchStyledContext) && console.warn("Warning: createSwitch() needs to control context to pass checked state from Frame to Thumb, any custom context passed will be overridden."), Frame.staticConfig.context = import_StyledContext.SwitchStyledContext, Thumb.staticConfig.context = import_StyledContext.SwitchStyledContext;
|
|
29940
28907
|
var SwitchThumbComponent = Thumb.styleable(function(props, forwardedRef) {
|
|
29941
|
-
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,
|
|
28908
|
+
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;
|
|
29942
28909
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Thumb, {
|
|
29943
28910
|
ref: forwardedRef,
|
|
29944
28911
|
unstyled,
|
|
29945
28912
|
...unstyled === !1 && {
|
|
29946
|
-
size:
|
|
28913
|
+
size: size2,
|
|
29947
28914
|
...!disableActiveTheme && !unstyled && {
|
|
29948
28915
|
theme: checked ? "active" : null
|
|
29949
28916
|
}
|
|
@@ -30452,7 +29419,7 @@ var require_createTabs_native = __commonJS({
|
|
|
30452
29419
|
children
|
|
30453
29420
|
}, value) : null;
|
|
30454
29421
|
}), TabsComponent = TabsFrame.styleable(function(props, forwardedRef) {
|
|
30455
|
-
var { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic", size:
|
|
29422
|
+
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)({
|
|
30456
29423
|
prop: valueProp,
|
|
30457
29424
|
onChange: onValueChange,
|
|
30458
29425
|
defaultProp: defaultValue ?? ""
|
|
@@ -30473,7 +29440,7 @@ var require_createTabs_native = __commonJS({
|
|
|
30473
29440
|
orientation,
|
|
30474
29441
|
dir: direction,
|
|
30475
29442
|
activationMode,
|
|
30476
|
-
size:
|
|
29443
|
+
size: size2,
|
|
30477
29444
|
registerTrigger,
|
|
30478
29445
|
triggersCount,
|
|
30479
29446
|
unregisterTrigger,
|
|
@@ -31138,11 +30105,11 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
31138
30105
|
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) {
|
|
31139
30106
|
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)({
|
|
31140
30107
|
disabled
|
|
31141
|
-
}), _props_size,
|
|
30108
|
+
}), _props_size, size2 = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : context.size, sizeProps = props.unstyled ? {} : {
|
|
31142
30109
|
width: void 0,
|
|
31143
30110
|
height: void 0,
|
|
31144
|
-
padding: (0, import_web.getVariableValue)(
|
|
31145
|
-
}, iconSize = (typeof
|
|
30111
|
+
padding: (0, import_web.getVariableValue)(size2) * 0.6
|
|
30112
|
+
}, 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)({
|
|
31146
30113
|
size: iconSize,
|
|
31147
30114
|
color: color ?? theme.color
|
|
31148
30115
|
}), childrens = import_react3.default.Children.toArray(props.children), children = childrens.map(function(child) {
|
|
@@ -31310,12 +30277,12 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
31310
30277
|
...toggleGroupProps
|
|
31311
30278
|
}, adjustedSize = (0, import_web.getVariableValue)((0, import_get_token2.getSize)(sizeProp, {
|
|
31312
30279
|
shift: sizeAdjust
|
|
31313
|
-
})),
|
|
30280
|
+
})), size2 = Math.round(adjustedSize * 0.45);
|
|
31314
30281
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupContext, {
|
|
31315
30282
|
scope: __scopeToggleGroup,
|
|
31316
30283
|
rovingFocus,
|
|
31317
30284
|
disabled,
|
|
31318
|
-
size:
|
|
30285
|
+
size: size2,
|
|
31319
30286
|
children: rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
31320
30287
|
asChild: "except-style",
|
|
31321
30288
|
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
@@ -31596,7 +30563,7 @@ var require_index_native73 = __commonJS({
|
|
|
31596
30563
|
}
|
|
31597
30564
|
});
|
|
31598
30565
|
module2.exports = __toCommonJS2(index_exports2);
|
|
31599
|
-
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_react_native4 =
|
|
30566
|
+
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_react_native4 = require_fake_react_native(), initialValue = {
|
|
31600
30567
|
height: 800,
|
|
31601
30568
|
width: 600
|
|
31602
30569
|
};
|
|
@@ -31937,7 +30904,7 @@ var import_jsx_runtime = require("react/jsx-runtime"), import_core2 = __toESM(re
|
|
|
31937
30904
|
};
|
|
31938
30905
|
|
|
31939
30906
|
// src/views/Anchor.tsx
|
|
31940
|
-
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 =
|
|
30907
|
+
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, {
|
|
31941
30908
|
name: "Anchor",
|
|
31942
30909
|
tag: "a",
|
|
31943
30910
|
accessibilityRole: "link"
|
|
@@ -31985,7 +30952,7 @@ var import_core5 = __toESM(require_index_native18()), import_stacks = __toESM(re
|
|
|
31985
30952
|
});
|
|
31986
30953
|
|
|
31987
30954
|
// src/views/Input.tsx
|
|
31988
|
-
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 =
|
|
30955
|
+
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());
|
|
31989
30956
|
|
|
31990
30957
|
// src/helpers/inputHelpers.tsx
|
|
31991
30958
|
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() {
|
|
@@ -32109,13 +31076,13 @@ function useInputProps(props, ref) {
|
|
|
32109
31076
|
}
|
|
32110
31077
|
|
|
32111
31078
|
// src/views/Spinner.tsx
|
|
32112
|
-
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 =
|
|
32113
|
-
var { size:
|
|
31079
|
+
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) {
|
|
31080
|
+
var { size: size2, color: colorProp, ...stackProps } = props, theme = (0, import_core8.useTheme)(), color = colorProp;
|
|
32114
31081
|
return color && color[0] === "$" && (color = (0, import_core8.variableToString)(theme[color])), /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_stacks2.YStack, {
|
|
32115
31082
|
ref,
|
|
32116
31083
|
...stackProps,
|
|
32117
31084
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.ActivityIndicator, {
|
|
32118
|
-
size:
|
|
31085
|
+
size: size2,
|
|
32119
31086
|
color
|
|
32120
31087
|
})
|
|
32121
31088
|
});
|