tamagui 1.102.3 → 1.103.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 +332 -298
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +328 -297
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -1324,8 +1324,8 @@ var require_shouldRenderNativePlatform_native = __commonJS({
|
|
|
1324
1324
|
var userRequestedPlatforms = resolvePlatformNames(nativeProp), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1325
1325
|
try {
|
|
1326
1326
|
for (var _iterator = ALL_PLATFORMS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
1327
|
-
var
|
|
1328
|
-
if (
|
|
1327
|
+
var platform2 = _step.value;
|
|
1328
|
+
if (platform2 === import_constants4.currentPlatform && userRequestedPlatforms.has(platform2)) return platform2;
|
|
1329
1329
|
}
|
|
1330
1330
|
} catch (err) {
|
|
1331
1331
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -4237,9 +4237,9 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
4237
4237
|
// if its a variable (web), its ignored!
|
|
4238
4238
|
get: function(_2, subkey) {
|
|
4239
4239
|
if (subkey === "val") track(keyString);
|
|
4240
|
-
else if (subkey === "get") return function(
|
|
4240
|
+
else if (subkey === "get") return function(platform2) {
|
|
4241
4241
|
var outVal = (0, import_createVariable.getVariable)(val);
|
|
4242
|
-
if (
|
|
4242
|
+
if (platform2 !== "web" && import_constants4.isIos && !deopt && config.settings.fastSchemeChange && !someParentIsInversed(themeManager) && scheme) {
|
|
4243
4243
|
var oppositeThemeName = name.replace(scheme === "dark" ? "dark" : "light", scheme === "dark" ? "light" : "dark"), oppositeTheme = config.themes[oppositeThemeName], oppositeVal = (0, import_createVariable.getVariable)(oppositeTheme == null ? void 0 : oppositeTheme[keyString]);
|
|
4244
4244
|
if (oppositeVal) {
|
|
4245
4245
|
var dynamicVal = {
|
|
@@ -7870,6 +7870,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7870
7870
|
staticConfig,
|
|
7871
7871
|
shouldDoClasses,
|
|
7872
7872
|
styleProps,
|
|
7873
|
+
rulesToInsert,
|
|
7873
7874
|
componentState,
|
|
7874
7875
|
styleState,
|
|
7875
7876
|
theme: _object_spread9({}, theme)
|
|
@@ -8053,11 +8054,11 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8053
8054
|
if (!val) continue;
|
|
8054
8055
|
var hasSpace = val.space, mediaKeyShort = key.slice(1);
|
|
8055
8056
|
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (((typeof hasMedia > "u" ? "undefined" : _type_of3(hasMedia)) > "u" ? "undefined" : _type_of1(hasMedia)) !== "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform") {
|
|
8056
|
-
var
|
|
8057
|
+
var platform2 = key.slice(10);
|
|
8057
8058
|
if (
|
|
8058
8059
|
// supports web, ios, android
|
|
8059
|
-
|
|
8060
|
-
|
|
8060
|
+
platform2 !== import_constants4.currentPlatform && // supports web, native
|
|
8061
|
+
platform2 !== "native"
|
|
8061
8062
|
) continue;
|
|
8062
8063
|
}
|
|
8063
8064
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
|
|
@@ -9769,7 +9770,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9769
9770
|
enabled: shouldListenForMedia,
|
|
9770
9771
|
keys: mediaListeningKeys
|
|
9771
9772
|
});
|
|
9772
|
-
var viewPropsIn = splitStyles.viewProps, pseudos = splitStyles.pseudos, splitStylesStyle = splitStyles.style, classNames = splitStyles.classNames, space = splitStyles.space, propsWithAnimation = props, asChild = viewPropsIn.asChild, children = viewPropsIn.children, themeShallow = viewPropsIn.themeShallow, _spaceDirection = viewPropsIn.spaceDirection, onPress = viewPropsIn.onPress, onLongPress = viewPropsIn.onLongPress, onPressIn = viewPropsIn.onPressIn, onPressOut = viewPropsIn.onPressOut, onHoverIn = viewPropsIn.onHoverIn, onHoverOut = viewPropsIn.onHoverOut, onMouseUp = viewPropsIn.onMouseUp, onMouseDown = viewPropsIn.onMouseDown, onMouseEnter = viewPropsIn.onMouseEnter, onMouseLeave = viewPropsIn.onMouseLeave, onFocus = viewPropsIn.onFocus, onBlur = viewPropsIn.onBlur, separator = viewPropsIn.separator, _forceStyle = viewPropsIn.forceStyle, onClick = viewPropsIn.onClick, _themeProp = viewPropsIn.theme,
|
|
9773
|
+
var viewPropsIn = splitStyles.viewProps, pseudos = splitStyles.pseudos, splitStylesStyle = splitStyles.style, classNames = splitStyles.classNames, space = splitStyles.space, propsWithAnimation = props, asChild = viewPropsIn.asChild, children = viewPropsIn.children, themeShallow = viewPropsIn.themeShallow, _spaceDirection = viewPropsIn.spaceDirection, onPress = viewPropsIn.onPress, onLongPress = viewPropsIn.onLongPress, onPressIn = viewPropsIn.onPressIn, onPressOut = viewPropsIn.onPressOut, onHoverIn = viewPropsIn.onHoverIn, onHoverOut = viewPropsIn.onHoverOut, onMouseUp = viewPropsIn.onMouseUp, onMouseDown = viewPropsIn.onMouseDown, onMouseEnter = viewPropsIn.onMouseEnter, onMouseLeave = viewPropsIn.onMouseLeave, onFocus = viewPropsIn.onFocus, onBlur = viewPropsIn.onBlur, separator = viewPropsIn.separator, _forceStyle = viewPropsIn.forceStyle, onClick = viewPropsIn.onClick, _themeProp = viewPropsIn.theme, nonTamaguiProps = _object_without_properties5(viewPropsIn, [
|
|
9773
9774
|
"asChild",
|
|
9774
9775
|
"children",
|
|
9775
9776
|
"themeShallow",
|
|
@@ -9789,8 +9790,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9789
9790
|
"separator",
|
|
9790
9791
|
"forceStyle",
|
|
9791
9792
|
"onClick",
|
|
9792
|
-
"theme"
|
|
9793
|
-
"defaultVariants"
|
|
9793
|
+
"theme"
|
|
9794
9794
|
]), viewProps = nonTamaguiProps;
|
|
9795
9795
|
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && _themeProp && (viewProps.theme = _themeProp), elementType.acceptTagProp && (viewProps.tag = tagProp);
|
|
9796
9796
|
var animationStyles, shouldUseAnimation = (
|
|
@@ -9810,7 +9810,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9810
9810
|
staticConfig,
|
|
9811
9811
|
stateRef
|
|
9812
9812
|
});
|
|
9813
|
-
(isAnimated || supportsCSSVars) && animations && (animationStyles = animations.style, viewProps.style = animationStyles), process.env.NODE_ENV === "development" && time && time(_templateObject11());
|
|
9813
|
+
(isAnimated || supportsCSSVars) && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = "".concat(viewProps.className || "", " ").concat(animations.className))), process.env.NODE_ENV === "development" && time && time(_templateObject11());
|
|
9814
9814
|
}
|
|
9815
9815
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
9816
9816
|
|
|
@@ -9832,7 +9832,9 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9832
9832
|
pressIn: !1
|
|
9833
9833
|
});
|
|
9834
9834
|
};
|
|
9835
|
-
(0,
|
|
9835
|
+
process.env.NODE_ENV === "development" && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
9836
|
+
debugProp && (console.groupCollapsed("Rendered style >"), console.warn(getComputedStyle(stateRef.current.host)), console.groupEnd());
|
|
9837
|
+
}), (0, import_react4.useEffect)(function() {
|
|
9836
9838
|
if (!disabled) {
|
|
9837
9839
|
if (state.unmounted === !0 && hasEnterStyle) {
|
|
9838
9840
|
setStateShallow({
|
|
@@ -10082,10 +10084,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
10082
10084
|
return props.children;
|
|
10083
10085
|
}
|
|
10084
10086
|
Unspaced2.isUnspaced = !0;
|
|
10085
|
-
var getSpacerSize = function(
|
|
10087
|
+
var getSpacerSize = function(size4, param) {
|
|
10086
10088
|
var tokens = param.tokens;
|
|
10087
|
-
|
|
10088
|
-
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[
|
|
10089
|
+
size4 = size4 === !0 ? "$true" : size4;
|
|
10090
|
+
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[size4]) !== null && _tokens_space_size !== void 0 ? _tokens_space_size : size4;
|
|
10089
10091
|
return {
|
|
10090
10092
|
width: sizePx,
|
|
10091
10093
|
height: sizePx,
|
|
@@ -11613,12 +11615,19 @@ var require_styled_native = __commonJS({
|
|
|
11613
11615
|
"defaultVariants",
|
|
11614
11616
|
"acceptsClassName",
|
|
11615
11617
|
"context"
|
|
11616
|
-
]);
|
|
11617
|
-
if (
|
|
11618
|
+
]), parentDefaultVariants, parentDefaultProps;
|
|
11619
|
+
if (parentStaticConfig) {
|
|
11618
11620
|
var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
|
|
11619
|
-
|
|
11621
|
+
if (!avoid) {
|
|
11622
|
+
var pdp = parentStaticConfig.defaultProps;
|
|
11623
|
+
for (var key2 in pdp) {
|
|
11624
|
+
var val = pdp[key2];
|
|
11625
|
+
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
11626
|
+
}
|
|
11627
|
+
parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
|
|
11628
|
+
}
|
|
11620
11629
|
}
|
|
11621
|
-
parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
11630
|
+
(parentDefaultProps || defaultVariants || parentDefaultVariants) && (defaultProps = _object_spread9({}, parentDefaultProps, parentDefaultVariants, defaultProps, defaultVariants)), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
11622
11631
|
var isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), acceptsClassName = acceptsClassNameProp ?? (isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName)), conf = _object_spread_props8(_object_spread9(_object_spread_props8(_object_spread9({}, parentStaticConfig, staticExtractionOptions, !isPlainStyledComponent && {
|
|
11623
11632
|
Component
|
|
11624
11633
|
}), {
|
|
@@ -12923,7 +12932,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
12923
12932
|
"@swc/helpers - typeof";
|
|
12924
12933
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
12925
12934
|
}
|
|
12926
|
-
var
|
|
12935
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
12927
12936
|
for (var name in all) __defProp2(target, name, {
|
|
12928
12937
|
get: all[name],
|
|
12929
12938
|
enumerable: !0
|
|
@@ -12951,18 +12960,6 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
12951
12960
|
}
|
|
12952
12961
|
}
|
|
12953
12962
|
return to;
|
|
12954
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
12955
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
12956
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
12957
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
12958
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
12959
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
12960
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
12961
|
-
value: mod,
|
|
12962
|
-
enumerable: !0
|
|
12963
|
-
}) : target,
|
|
12964
|
-
mod
|
|
12965
|
-
);
|
|
12966
12963
|
}, __toCommonJS2 = function(mod) {
|
|
12967
12964
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
12968
12965
|
value: !0
|
|
@@ -12974,64 +12971,51 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
12974
12971
|
}
|
|
12975
12972
|
});
|
|
12976
12973
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
12977
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(),
|
|
12978
|
-
function
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
configurable: !0,
|
|
12983
|
-
writable: !0
|
|
12984
|
-
}) : obj[key] = value, obj;
|
|
12974
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react4 = require("react"), import_ComponentContext = require_ComponentContext_native(), import_useDidHydrateOnce = require_useDidHydrateOnce_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
12975
|
+
function _array_like_to_array2(arr, len) {
|
|
12976
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
12977
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
12978
|
+
return arr2;
|
|
12985
12979
|
}
|
|
12986
|
-
function
|
|
12987
|
-
|
|
12988
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
|
|
12989
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys22 = ownKeys22.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
12990
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
12991
|
-
}))), ownKeys22.forEach(function(key) {
|
|
12992
|
-
_define_property9(target, key, source[key]);
|
|
12993
|
-
});
|
|
12994
|
-
}
|
|
12995
|
-
return target;
|
|
12980
|
+
function _array_with_holes(arr) {
|
|
12981
|
+
if (Array.isArray(arr)) return arr;
|
|
12996
12982
|
}
|
|
12997
|
-
function
|
|
12998
|
-
var
|
|
12999
|
-
if (
|
|
13000
|
-
var
|
|
13001
|
-
|
|
13002
|
-
|
|
13003
|
-
}
|
|
12983
|
+
function _iterable_to_array_limit(arr, i) {
|
|
12984
|
+
var _i = arr == null ? null : (typeof Symbol > "u" ? "undefined" : _type_of3(Symbol)) < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12985
|
+
if (_i != null) {
|
|
12986
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
12987
|
+
try {
|
|
12988
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0) ;
|
|
12989
|
+
} catch (err) {
|
|
12990
|
+
_d = !0, _e = err;
|
|
12991
|
+
} finally {
|
|
12992
|
+
try {
|
|
12993
|
+
!_n && _i.return != null && _i.return();
|
|
12994
|
+
} finally {
|
|
12995
|
+
if (_d) throw _e;
|
|
12996
|
+
}
|
|
12997
|
+
}
|
|
12998
|
+
return _arr;
|
|
13004
12999
|
}
|
|
13005
|
-
return keys;
|
|
13006
13000
|
}
|
|
13007
|
-
function
|
|
13008
|
-
|
|
13009
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13010
|
-
}), target;
|
|
13001
|
+
function _non_iterable_rest() {
|
|
13002
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13011
13003
|
}
|
|
13012
|
-
function
|
|
13013
|
-
|
|
13014
|
-
var target = _object_without_properties_loose5(source, excluded), key, i;
|
|
13015
|
-
if (Object.getOwnPropertySymbols) {
|
|
13016
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
13017
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
13018
|
-
}
|
|
13019
|
-
return target;
|
|
13004
|
+
function _sliced_to_array(arr, i) {
|
|
13005
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array2(arr, i) || _non_iterable_rest();
|
|
13020
13006
|
}
|
|
13021
|
-
function
|
|
13022
|
-
if (
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13007
|
+
function _unsupported_iterable_to_array2(o, minLen) {
|
|
13008
|
+
if (o) {
|
|
13009
|
+
if (typeof o == "string") return _array_like_to_array2(o, minLen);
|
|
13010
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13011
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
13012
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
13013
|
+
}
|
|
13026
13014
|
}
|
|
13027
|
-
function TamaguiProvider2(
|
|
13028
|
-
var children =
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
"config"
|
|
13032
|
-
]);
|
|
13033
|
-
(0, import_useMedia.setupMediaListeners)(), import_constants4.isClient && ((0, import_useDidHydrateOnce.useDidHydrateOnceRoot)(), React2.useInsertionEffect(function() {
|
|
13034
|
-
if (config && (config.disableSSR || document.documentElement.classList.contains("t_unmounted") && document.documentElement.classList.remove("t_unmounted"), !disableInjectCSS)) {
|
|
13015
|
+
function TamaguiProvider2(param) {
|
|
13016
|
+
var children = param.children, disableInjectCSS = param.disableInjectCSS, config = param.config, className = param.className, defaultTheme = param.defaultTheme, disableRootThemeClass = param.disableRootThemeClass, reset = param.reset, themeClassNameOnRoot = param.themeClassNameOnRoot;
|
|
13017
|
+
(0, import_useMedia.setupMediaListeners)(), import_constants4.isClient && ((0, import_useDidHydrateOnce.useDidHydrateOnceRoot)(), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13018
|
+
if (config && !disableInjectCSS) {
|
|
13035
13019
|
var style = document.createElement("style");
|
|
13036
13020
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|
|
13037
13021
|
document.head.removeChild(style);
|
|
@@ -13041,18 +13025,32 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
13041
13025
|
config,
|
|
13042
13026
|
disableInjectCSS
|
|
13043
13027
|
]));
|
|
13044
|
-
var
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13028
|
+
var contents = (0, import_react4.useMemo)(function() {
|
|
13029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
13030
|
+
animationDriver: config == null ? void 0 : config.animations,
|
|
13031
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
13032
|
+
themeClassNameOnRoot: themeClassNameOnRoot ?? (config == null ? void 0 : config.themeClassNameOnRoot),
|
|
13033
|
+
disableRootThemeClass: disableRootThemeClass ?? (config == null ? void 0 : config.disableRootThemeClass),
|
|
13034
|
+
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
13035
|
+
reset,
|
|
13036
|
+
className,
|
|
13037
|
+
children
|
|
13038
|
+
})
|
|
13039
|
+
});
|
|
13040
|
+
}, []);
|
|
13041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
13042
|
+
children: contents
|
|
13054
13043
|
});
|
|
13055
13044
|
}
|
|
13045
|
+
function UnmountedClassName(props) {
|
|
13046
|
+
var _useState = _sliced_to_array((0, import_react4.useState)(!1), 2), mounted = _useState[0], setMounted = _useState[1];
|
|
13047
|
+
return (0, import_react4.useEffect)(function() {
|
|
13048
|
+
setMounted(!0);
|
|
13049
|
+
}, []), import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", {
|
|
13050
|
+
className: mounted ? "" : "t_unmounted",
|
|
13051
|
+
children: props.children
|
|
13052
|
+
}) : props.children;
|
|
13053
|
+
}
|
|
13056
13054
|
TamaguiProvider2.displayName = "TamaguiProvider";
|
|
13057
13055
|
}
|
|
13058
13056
|
});
|
|
@@ -15895,9 +15893,9 @@ var require_getElevation_native = __commonJS({
|
|
|
15895
15893
|
}
|
|
15896
15894
|
return target;
|
|
15897
15895
|
}
|
|
15898
|
-
var getElevation = function(
|
|
15899
|
-
if (
|
|
15900
|
-
var tokens = extras.tokens, token = tokens.size[
|
|
15896
|
+
var getElevation = function(size4, extras) {
|
|
15897
|
+
if (size4) {
|
|
15898
|
+
var tokens = extras.tokens, token = tokens.size[size4], sizeNum = (0, import_core12.isVariable)(token) ? +token.val : size4;
|
|
15901
15899
|
return getSizedElevation(sizeNum, extras);
|
|
15902
15900
|
}
|
|
15903
15901
|
}, getSizedElevation = function(val, param) {
|
|
@@ -16093,8 +16091,8 @@ var require_index_native18 = __commonJS({
|
|
|
16093
16091
|
bounds: [
|
|
16094
16092
|
0
|
|
16095
16093
|
]
|
|
16096
|
-
}, getSize = function(
|
|
16097
|
-
return getTokenRelative("size",
|
|
16094
|
+
}, getSize = function(size4, options) {
|
|
16095
|
+
return getTokenRelative("size", size4, options);
|
|
16098
16096
|
}, getSpace2 = function(space, options) {
|
|
16099
16097
|
return getTokenRelative("space", space, options);
|
|
16100
16098
|
}, getRadius = function(radius, options) {
|
|
@@ -16142,9 +16140,9 @@ var require_index_native18 = __commonJS({
|
|
|
16142
16140
|
}
|
|
16143
16141
|
}
|
|
16144
16142
|
}
|
|
16145
|
-
var isString = typeof current == "string", cache = options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables, tokensOrdered = cache[type], _options_bounds_, min2 = (_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, max2 = (_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),
|
|
16146
|
-
|
|
16147
|
-
var index = Math.min(max2, Math.max(min2, currentIndex +
|
|
16143
|
+
var isString = typeof current == "string", cache = options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables, tokensOrdered = cache[type], _options_bounds_, min2 = (_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, max2 = (_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), shift4 = options.shift || 0;
|
|
16144
|
+
shift4 && (current === "$true" || (0, import_web.isVariable)(current) && current.name === "true") && (shift4 += shift4 > 0 ? 1 : -1);
|
|
16145
|
+
var index = Math.min(max2, Math.max(min2, currentIndex + shift4)), found = tokensOrdered[index], result = (typeof found == "string" ? tokens[found] : found) || tokens.$true;
|
|
16148
16146
|
return result;
|
|
16149
16147
|
}, getTokenRelative = stepTokenUpOrDown;
|
|
16150
16148
|
}
|
|
@@ -16363,14 +16361,14 @@ var require_variants_native = __commonJS({
|
|
|
16363
16361
|
true: function(_, param) {
|
|
16364
16362
|
var props = param.props, tokens = param.tokens;
|
|
16365
16363
|
if (!("size" in props)) return circularStyle;
|
|
16366
|
-
var
|
|
16364
|
+
var size4 = typeof props.size == "number" ? props.size : tokens.size[props.size];
|
|
16367
16365
|
return _object_spread_props8(_object_spread9({}, circularStyle), {
|
|
16368
|
-
width:
|
|
16369
|
-
height:
|
|
16370
|
-
maxWidth:
|
|
16371
|
-
maxHeight:
|
|
16372
|
-
minWidth:
|
|
16373
|
-
minHeight:
|
|
16366
|
+
width: size4,
|
|
16367
|
+
height: size4,
|
|
16368
|
+
maxWidth: size4,
|
|
16369
|
+
maxHeight: size4,
|
|
16370
|
+
minWidth: size4,
|
|
16371
|
+
minHeight: size4
|
|
16374
16372
|
});
|
|
16375
16373
|
}
|
|
16376
16374
|
}, hoverTheme = {
|
|
@@ -16870,8 +16868,8 @@ var require_SizableText_native = __commonJS({
|
|
|
16870
16868
|
});
|
|
16871
16869
|
SizableText2.staticConfig.variants.fontFamily = {
|
|
16872
16870
|
"...": function(_, extras) {
|
|
16873
|
-
var
|
|
16874
|
-
return (0, import_get_font_sized2.getFontSized)(
|
|
16871
|
+
var size4 = extras.props.size || "$true";
|
|
16872
|
+
return (0, import_get_font_sized2.getFontSized)(size4, extras);
|
|
16875
16873
|
}
|
|
16876
16874
|
};
|
|
16877
16875
|
}
|
|
@@ -17130,12 +17128,12 @@ var require_wrapChildrenInText_native = __commonJS({
|
|
|
17130
17128
|
}), target;
|
|
17131
17129
|
}
|
|
17132
17130
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
17133
|
-
var children = propsIn.children, textProps = propsIn.textProps,
|
|
17131
|
+
var children = propsIn.children, textProps = propsIn.textProps, size4 = propsIn.size, noTextWrap = propsIn.noTextWrap, color = propsIn.color, fontFamily = propsIn.fontFamily, fontSize = propsIn.fontSize, fontWeight = propsIn.fontWeight, letterSpacing = propsIn.letterSpacing, textAlign = propsIn.textAlign, fontStyle = propsIn.fontStyle, maxFontSizeMultiplier = propsIn.maxFontSizeMultiplier;
|
|
17134
17132
|
if (noTextWrap || !children) return [
|
|
17135
17133
|
children
|
|
17136
17134
|
];
|
|
17137
17135
|
var props = _object_spread9({}, extraProps);
|
|
17138
|
-
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),
|
|
17136
|
+
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), size4 && (props.size = size4), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react4.default.Children.toArray(children).map(function(child, index) {
|
|
17139
17137
|
return typeof child == "string" ? (
|
|
17140
17138
|
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
17141
17139
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextComponent, _object_spread_props8(_object_spread9({}, props, textProps), {
|
|
@@ -17992,8 +17990,8 @@ var require_Adapt_native = __commonJS({
|
|
|
17992
17990
|
when
|
|
17993
17991
|
};
|
|
17994
17992
|
}, Adapt = (0, import_helpers.withStaticProperties)(function(param) {
|
|
17995
|
-
var
|
|
17996
|
-
return
|
|
17993
|
+
var platform2 = param.platform, when = param.when, children = param.children, context = (0, import_react4.useContext)(AdaptParentContext), media = (0, import_core12.useMedia)(), enabled = !platform2;
|
|
17994
|
+
return platform2 === "touch" && (enabled = import_constants22.isTouchable), platform2 === "native" && (enabled = !import_constants4.isWeb), platform2 === "web" && (enabled = import_constants4.isWeb), platform2 === "ios" && (enabled = import_constants4.isIos), platform2 === "android" && (enabled = import_constants4.isAndroid), when && !media[when] && (enabled = !1), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
17997
17995
|
enabled && (context == null || context.setWhen(when || enabled));
|
|
17998
17996
|
}, [
|
|
17999
17997
|
when,
|
|
@@ -19820,11 +19818,11 @@ var require_nativeSheet_native = __commonJS({
|
|
|
19820
19818
|
var nativeSheets = {
|
|
19821
19819
|
ios: null
|
|
19822
19820
|
};
|
|
19823
|
-
function getNativeSheet(
|
|
19824
|
-
return nativeSheets[
|
|
19821
|
+
function getNativeSheet(platform2) {
|
|
19822
|
+
return nativeSheets[platform2];
|
|
19825
19823
|
}
|
|
19826
|
-
function setupNativeSheet(
|
|
19827
|
-
|
|
19824
|
+
function setupNativeSheet(platform2, Implementation) {
|
|
19825
|
+
platform2 === "ios" && (nativeSheets[platform2] = function(props) {
|
|
19828
19826
|
var state = (0, import_useSheetOpenState.useSheetOpenState)(props), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state), open = state.open, setOpen = state.setOpen, ref = (0, import_react4.useRef)();
|
|
19829
19827
|
return (0, import_react4.useEffect)(function() {
|
|
19830
19828
|
var _ref_current;
|
|
@@ -23082,8 +23080,8 @@ var require_getShapeSize_native = __commonJS({
|
|
|
23082
23080
|
}
|
|
23083
23081
|
});
|
|
23084
23082
|
module2.exports = __toCommonJS2(getShapeSize_exports);
|
|
23085
|
-
var getShapeSize = function(
|
|
23086
|
-
var tokens = param.tokens, _tokens_size_size, width = (_tokens_size_size = tokens.size[
|
|
23083
|
+
var getShapeSize = function(size4, param) {
|
|
23084
|
+
var tokens = param.tokens, _tokens_size_size, width = (_tokens_size_size = tokens.size[size4]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size4, _tokens_size_size1, height = (_tokens_size_size1 = tokens.size[size4]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size4;
|
|
23087
23085
|
return {
|
|
23088
23086
|
width,
|
|
23089
23087
|
height,
|
|
@@ -23498,17 +23496,17 @@ var require_Avatar_native = __commonJS({
|
|
|
23498
23496
|
position: "relative",
|
|
23499
23497
|
overflow: "hidden"
|
|
23500
23498
|
}), Avatar = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
|
|
23501
|
-
var __scopeAvatar = props.__scopeAvatar, _props_size = props.size,
|
|
23499
|
+
var __scopeAvatar = props.__scopeAvatar, _props_size = props.size, size4 = _props_size === void 0 ? "$true" : _props_size, avatarProps = _object_without_properties5(props, [
|
|
23502
23500
|
"__scopeAvatar",
|
|
23503
23501
|
"size"
|
|
23504
23502
|
]), _React_useState = _sliced_to_array(React2.useState("idle"), 2), imageLoadingStatus = _React_useState[0], setImageLoadingStatus = _React_useState[1];
|
|
23505
23503
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarProvider, {
|
|
23506
|
-
size:
|
|
23504
|
+
size: size4,
|
|
23507
23505
|
scope: __scopeAvatar,
|
|
23508
23506
|
imageLoadingStatus,
|
|
23509
23507
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
23510
23508
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarFrame, _object_spread_props8(_object_spread9({
|
|
23511
|
-
size:
|
|
23509
|
+
size: size4
|
|
23512
23510
|
}, avatarProps), {
|
|
23513
23511
|
ref: forwardedRef
|
|
23514
23512
|
}))
|
|
@@ -23627,10 +23625,10 @@ var require_getFontSize_native = __commonJS({
|
|
|
23627
23625
|
return conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size[token];
|
|
23628
23626
|
}, getFontSizeToken = function(inSize, opts) {
|
|
23629
23627
|
if (typeof inSize == "number") return null;
|
|
23630
|
-
var relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, conf = (0, import_core12.getConfig)(), fontSize = conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size, _ref,
|
|
23631
|
-
foundIndex === -1 &&
|
|
23628
|
+
var relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, conf = (0, import_core12.getConfig)(), fontSize = conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size, _ref, size4 = (_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(size4);
|
|
23629
|
+
foundIndex === -1 && size4.endsWith(".5") && (foundIndex = sizeTokens.indexOf(size4.replace(".5", ""))), process.env.NODE_ENV === "development" && foundIndex === -1 && console.warn("No font size found", size4, opts, "in size tokens", sizeTokens);
|
|
23632
23630
|
var tokenIndex = Math.min(Math.max(0, foundIndex + relativeSize), sizeTokens.length - 1), _sizeTokens_tokenIndex;
|
|
23633
|
-
return (_sizeTokens_tokenIndex = sizeTokens[tokenIndex]) !== null && _sizeTokens_tokenIndex !== void 0 ? _sizeTokens_tokenIndex :
|
|
23631
|
+
return (_sizeTokens_tokenIndex = sizeTokens[tokenIndex]) !== null && _sizeTokens_tokenIndex !== void 0 ? _sizeTokens_tokenIndex : size4;
|
|
23634
23632
|
};
|
|
23635
23633
|
}
|
|
23636
23634
|
});
|
|
@@ -24190,7 +24188,7 @@ var require_Button_native = __commonJS({
|
|
|
24190
24188
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
24191
24189
|
}
|
|
24192
24190
|
}), ButtonIcon = function(props) {
|
|
24193
|
-
var children = props.children, _props_scaleIcon = props.scaleIcon, scaleIcon = _props_scaleIcon === void 0 ? 1 : _props_scaleIcon, _useContext = (0, import_react4.useContext)(ButtonContext),
|
|
24191
|
+
var children = props.children, _props_scaleIcon = props.scaleIcon, scaleIcon = _props_scaleIcon === void 0 ? 1 : _props_scaleIcon, _useContext = (0, import_react4.useContext)(ButtonContext), size4 = _useContext.size, color = _useContext.color, iconSize = (typeof size4 == "number" ? size4 * 0.5 : (0, import_font_size.getFontSize)(size4)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
24194
24192
|
size: iconSize,
|
|
24195
24193
|
color
|
|
24196
24194
|
});
|
|
@@ -24242,7 +24240,7 @@ var require_Button_native = __commonJS({
|
|
|
24242
24240
|
"tag",
|
|
24243
24241
|
"ellipse",
|
|
24244
24242
|
"maxFontSizeMultiplier"
|
|
24245
|
-
]),
|
|
24243
|
+
]), size4 = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), color = propsActive.color, iconSize = (typeof size4 == "number" ? size4 * 0.5 : (0, import_font_size.getFontSize)(size4, {
|
|
24246
24244
|
font: (fontFamily == null ? void 0 : fontFamily[0]) === "$" ? fontFamily : void 0
|
|
24247
24245
|
})) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
24248
24246
|
size: iconSize,
|
|
@@ -24264,7 +24262,7 @@ var require_Button_native = __commonJS({
|
|
|
24264
24262
|
maxFontSizeMultiplier
|
|
24265
24263
|
}, Text3 === ButtonText && propsActive.unstyled !== !0 ? {
|
|
24266
24264
|
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
24267
|
-
size:
|
|
24265
|
+
size: size4
|
|
24268
24266
|
} : void 0), inner = (0, import_web.spacedChildren)({
|
|
24269
24267
|
// a bit arbitrary but scaling to font size is necessary so long as button does
|
|
24270
24268
|
space: spaceSize,
|
|
@@ -24280,7 +24278,7 @@ var require_Button_native = __commonJS({
|
|
|
24280
24278
|
themedIconAfter
|
|
24281
24279
|
])
|
|
24282
24280
|
}), props = _object_spread_props8(_object_spread9(_object_spread_props8(_object_spread9({
|
|
24283
|
-
size:
|
|
24281
|
+
size: size4
|
|
24284
24282
|
}, propsIn.disabled && {
|
|
24285
24283
|
// in rnw - false still has keyboard tabIndex, undefined = not actually focusable
|
|
24286
24284
|
focusable: void 0,
|
|
@@ -25988,12 +25986,12 @@ var require_createCheckbox_native = __commonJS({
|
|
|
25988
25986
|
"onCheckedChange",
|
|
25989
25987
|
"native",
|
|
25990
25988
|
"unstyled"
|
|
25991
|
-
]), propsActive = (0, import_core12.useProps)(props), styledContext = import_react4.default.useContext(import_CheckboxStyledContext.CheckboxStyledContext), adjustedSize = 0,
|
|
25989
|
+
]), propsActive = (0, import_core12.useProps)(props), styledContext = import_react4.default.useContext(import_CheckboxStyledContext.CheckboxStyledContext), adjustedSize = 0, size4 = 0;
|
|
25992
25990
|
if (!unstyled) {
|
|
25993
25991
|
var _propsActive_size, _ref;
|
|
25994
25992
|
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", {
|
|
25995
25993
|
shift: sizeAdjust
|
|
25996
|
-
})),
|
|
25994
|
+
})), size4 = scaleSize ? Math.round(adjustedSize * scaleSize) : adjustedSize;
|
|
25997
25995
|
}
|
|
25998
25996
|
var _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
|
|
25999
25997
|
prop: checkedProp,
|
|
@@ -26045,14 +26043,14 @@ var require_createCheckbox_native = __commonJS({
|
|
|
26045
26043
|
scaleIcon: (_ref2 = scaleIcon ?? (styledContext == null ? void 0 : styledContext.scaleIcon)) !== null && _ref2 !== void 0 ? _ref2 : 1,
|
|
26046
26044
|
children: [
|
|
26047
26045
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, _object_spread_props8(_object_spread9(_object_spread_props8(_object_spread9(_object_spread_props8(_object_spread9({}, !unstyled && {
|
|
26048
|
-
width:
|
|
26049
|
-
height:
|
|
26046
|
+
width: size4,
|
|
26047
|
+
height: size4
|
|
26050
26048
|
}), {
|
|
26051
26049
|
tag: "button",
|
|
26052
26050
|
ref: checkboxRef,
|
|
26053
26051
|
unstyled
|
|
26054
26052
|
}), unstyled === !1 && {
|
|
26055
|
-
size:
|
|
26053
|
+
size: size4,
|
|
26056
26054
|
theme: checked ? "active" : null
|
|
26057
26055
|
}), {
|
|
26058
26056
|
// potential variant
|
|
@@ -27349,7 +27347,7 @@ var require_Group_native = __commonJS({
|
|
|
27349
27347
|
});
|
|
27350
27348
|
function createGroup(verticalDefault) {
|
|
27351
27349
|
return (0, import_helpers.withStaticProperties)(GroupFrame.styleable(function(props, ref) {
|
|
27352
|
-
var activeProps = (0, import_core12.useProps)(props), __scopeGroup = activeProps.__scopeGroup, childrenProp = activeProps.children, space = activeProps.space, _activeProps_size = activeProps.size,
|
|
27350
|
+
var activeProps = (0, import_core12.useProps)(props), __scopeGroup = activeProps.__scopeGroup, childrenProp = activeProps.children, space = activeProps.space, _activeProps_size = activeProps.size, size4 = _activeProps_size === void 0 ? "$true" : _activeProps_size, spaceDirection = activeProps.spaceDirection, separator = activeProps.separator, scrollable = activeProps.scrollable, _activeProps_axis = activeProps.axis, axis = _activeProps_axis === void 0 ? verticalDefault ? "vertical" : "horizontal" : _activeProps_axis, _activeProps_orientation = activeProps.orientation, orientation = _activeProps_orientation === void 0 ? axis : _activeProps_orientation, disabledProp = activeProps.disabled, disablePassBorderRadiusProp = activeProps.disablePassBorderRadius, borderRadius = activeProps.borderRadius, forceUseItem = activeProps.forceUseItem, restProps = _object_without_properties5(activeProps, [
|
|
27353
27351
|
"__scopeGroup",
|
|
27354
27352
|
"children",
|
|
27355
27353
|
"space",
|
|
@@ -27365,7 +27363,7 @@ var require_Group_native = __commonJS({
|
|
|
27365
27363
|
"forceUseItem"
|
|
27366
27364
|
]), vertical = orientation === "vertical", _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
|
|
27367
27365
|
defaultProp: forceUseItem ? 1 : 0
|
|
27368
|
-
}), 2), itemChildrenCount = _useControllableState[0], setItemChildrenCount = _useControllableState[1], isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (
|
|
27366
|
+
}), 2), itemChildrenCount = _useControllableState[0], setItemChildrenCount = _useControllableState[1], isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (size4 ? (0, import_core12.getVariableValue)((0, import_core12.getTokens)().radius[size4]) - 1 : void 0), hasRadius = radius !== void 0, disablePassBorderRadius = disablePassBorderRadiusProp ?? !hasRadius, childrenArray = import_react4.Children.toArray(childrenProp), children = isUsingItems ? import_react4.Children.toArray(childrenProp).filter(import_react4.isValidElement) : childrenArray.map(function(child, i) {
|
|
27369
27367
|
if (!/* @__PURE__ */ (0, import_react4.isValidElement)(child) || child.type === import_react4.Fragment) return child;
|
|
27370
27368
|
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({
|
|
27371
27369
|
isFirst,
|
|
@@ -27404,7 +27402,7 @@ var require_Group_native = __commonJS({
|
|
|
27404
27402
|
scope: __scopeGroup,
|
|
27405
27403
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(GroupFrame, _object_spread_props8(_object_spread9({
|
|
27406
27404
|
ref,
|
|
27407
|
-
size:
|
|
27405
|
+
size: size4,
|
|
27408
27406
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
27409
27407
|
borderRadius
|
|
27410
27408
|
}, restProps), {
|
|
@@ -28363,7 +28361,7 @@ var require_ListItem_native = __commonJS({
|
|
|
28363
28361
|
textAlign,
|
|
28364
28362
|
ellipse,
|
|
28365
28363
|
children
|
|
28366
|
-
},
|
|
28364
|
+
}, size4 = props.size || "$true", iconSize = (0, import_font_size.getFontSize)(size4) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
28367
28365
|
size: iconSize,
|
|
28368
28366
|
color
|
|
28369
28367
|
}), _map = _sliced_to_array([
|
|
@@ -28388,7 +28386,7 @@ var require_ListItem_native = __commonJS({
|
|
|
28388
28386
|
flex: 1,
|
|
28389
28387
|
children: [
|
|
28390
28388
|
noTextWrap === "all" ? title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Title, {
|
|
28391
|
-
size:
|
|
28389
|
+
size: size4,
|
|
28392
28390
|
children: title
|
|
28393
28391
|
}),
|
|
28394
28392
|
subTitle ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
|
|
@@ -28397,7 +28395,7 @@ var require_ListItem_native = __commonJS({
|
|
|
28397
28395
|
// or standardize on subtle colors in themes
|
|
28398
28396
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Subtitle, {
|
|
28399
28397
|
unstyled,
|
|
28400
|
-
size:
|
|
28398
|
+
size: size4,
|
|
28401
28399
|
children: subTitle
|
|
28402
28400
|
})
|
|
28403
28401
|
) : subTitle
|
|
@@ -28808,18 +28806,18 @@ var sides, alignments, placements, min, max, oppositeSideMap, oppositeAlignmentM
|
|
|
28808
28806
|
// ../../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
|
|
28809
28807
|
var floating_ui_core_esm_exports = {};
|
|
28810
28808
|
__export(floating_ui_core_esm_exports, {
|
|
28811
|
-
arrow: () =>
|
|
28812
|
-
autoPlacement: () =>
|
|
28809
|
+
arrow: () => arrow2,
|
|
28810
|
+
autoPlacement: () => autoPlacement2,
|
|
28813
28811
|
computePosition: () => computePosition,
|
|
28814
|
-
detectOverflow: () =>
|
|
28815
|
-
flip: () =>
|
|
28816
|
-
hide: () =>
|
|
28817
|
-
inline: () =>
|
|
28818
|
-
limitShift: () =>
|
|
28819
|
-
offset: () =>
|
|
28812
|
+
detectOverflow: () => detectOverflow2,
|
|
28813
|
+
flip: () => flip2,
|
|
28814
|
+
hide: () => hide2,
|
|
28815
|
+
inline: () => inline2,
|
|
28816
|
+
limitShift: () => limitShift2,
|
|
28817
|
+
offset: () => offset2,
|
|
28820
28818
|
rectToClientRect: () => rectToClientRect,
|
|
28821
|
-
shift: () =>
|
|
28822
|
-
size: () =>
|
|
28819
|
+
shift: () => shift2,
|
|
28820
|
+
size: () => size2
|
|
28823
28821
|
});
|
|
28824
28822
|
function _array_like_to_array(arr, len) {
|
|
28825
28823
|
(len == null || len > arr.length) && (len = arr.length);
|
|
@@ -29054,7 +29052,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
29054
29052
|
}
|
|
29055
29053
|
return coords;
|
|
29056
29054
|
}
|
|
29057
|
-
function
|
|
29055
|
+
function detectOverflow2(state, options) {
|
|
29058
29056
|
return _detectOverflow.apply(this, arguments);
|
|
29059
29057
|
}
|
|
29060
29058
|
function _detectOverflow() {
|
|
@@ -29067,13 +29065,13 @@ function _detectOverflow() {
|
|
|
29067
29065
|
* @see https://floating-ui.com/docs/detectOverflow
|
|
29068
29066
|
*/
|
|
29069
29067
|
_async_to_generator(function(state, options) {
|
|
29070
|
-
var _await$platform$isEle, x, y,
|
|
29068
|
+
var _await$platform$isEle, x, y, platform2, rects, elements, strategy, _evaluate, _evaluate_boundary, boundary, _evaluate_rootBoundary, rootBoundary, _evaluate_elementContext, elementContext, _evaluate_altBoundary, altBoundary, _evaluate_padding, padding, paddingObject, altContext, element, clippingClientRect, _, _tmp, _tmp1, _tmp2, rect, offsetParent, offsetScale, _tmp3, elementClientRect, _tmp4;
|
|
29071
29069
|
return _ts_generator(this, function(_state) {
|
|
29072
29070
|
switch (_state.label) {
|
|
29073
29071
|
case 0:
|
|
29074
|
-
return options === void 0 && (options = {}), x = state.x, y = state.y,
|
|
29072
|
+
return options === void 0 && (options = {}), x = state.x, y = state.y, platform2 = state.platform, rects = state.rects, elements = state.elements, strategy = state.strategy, _evaluate = evaluate(options, state), _evaluate_boundary = _evaluate.boundary, boundary = _evaluate_boundary === void 0 ? "clippingAncestors" : _evaluate_boundary, _evaluate_rootBoundary = _evaluate.rootBoundary, rootBoundary = _evaluate_rootBoundary === void 0 ? "viewport" : _evaluate_rootBoundary, _evaluate_elementContext = _evaluate.elementContext, elementContext = _evaluate_elementContext === void 0 ? "floating" : _evaluate_elementContext, _evaluate_altBoundary = _evaluate.altBoundary, altBoundary = _evaluate_altBoundary === void 0 ? !1 : _evaluate_altBoundary, _evaluate_padding = _evaluate.padding, padding = _evaluate_padding === void 0 ? 0 : _evaluate_padding, paddingObject = getPaddingObject(padding), altContext = elementContext === "floating" ? "reference" : "floating", element = elements[altBoundary ? altContext : elementContext], _ = platform2.getClippingRect, _tmp = {}, [
|
|
29075
29073
|
4,
|
|
29076
|
-
|
|
29074
|
+
platform2.isElement == null ? void 0 : platform2.isElement(element)
|
|
29077
29075
|
];
|
|
29078
29076
|
case 1:
|
|
29079
29077
|
return (_await$platform$isEle = _state.sent()) == null || _await$platform$isEle ? (_tmp1 = element, [
|
|
@@ -29089,7 +29087,7 @@ function _detectOverflow() {
|
|
|
29089
29087
|
4
|
|
29090
29088
|
] : [
|
|
29091
29089
|
4,
|
|
29092
|
-
|
|
29090
|
+
platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)
|
|
29093
29091
|
];
|
|
29094
29092
|
case 3:
|
|
29095
29093
|
_tmp2 = _state.sent(), _state.label = 4;
|
|
@@ -29098,7 +29096,7 @@ function _detectOverflow() {
|
|
|
29098
29096
|
case 5:
|
|
29099
29097
|
return [
|
|
29100
29098
|
4,
|
|
29101
|
-
_.apply(
|
|
29099
|
+
_.apply(platform2, [
|
|
29102
29100
|
(_tmp.element = _tmp1, _tmp.boundary = boundary, _tmp.rootBoundary = rootBoundary, _tmp.strategy = strategy, _tmp)
|
|
29103
29101
|
])
|
|
29104
29102
|
];
|
|
@@ -29112,17 +29110,17 @@ function _detectOverflow() {
|
|
|
29112
29110
|
height: rects.floating.height
|
|
29113
29111
|
} : rects.reference, [
|
|
29114
29112
|
4,
|
|
29115
|
-
|
|
29113
|
+
platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating)
|
|
29116
29114
|
];
|
|
29117
29115
|
case 7:
|
|
29118
29116
|
return offsetParent = _state.sent(), [
|
|
29119
29117
|
4,
|
|
29120
|
-
|
|
29118
|
+
platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)
|
|
29121
29119
|
];
|
|
29122
29120
|
case 8:
|
|
29123
29121
|
return _state.sent() ? [
|
|
29124
29122
|
4,
|
|
29125
|
-
|
|
29123
|
+
platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)
|
|
29126
29124
|
] : [
|
|
29127
29125
|
3,
|
|
29128
29126
|
10
|
|
@@ -29141,9 +29139,9 @@ function _detectOverflow() {
|
|
|
29141
29139
|
y: 1
|
|
29142
29140
|
}, _state.label = 11;
|
|
29143
29141
|
case 11:
|
|
29144
|
-
return offsetScale = _tmp3,
|
|
29142
|
+
return offsetScale = _tmp3, platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? [
|
|
29145
29143
|
4,
|
|
29146
|
-
|
|
29144
|
+
platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
29147
29145
|
elements,
|
|
29148
29146
|
rect,
|
|
29149
29147
|
offsetParent,
|
|
@@ -29238,13 +29236,13 @@ function _convertValueToCoords() {
|
|
|
29238
29236
|
return _convertValueToCoords = // For type backwards-compatibility, the `OffsetOptions` type was also
|
|
29239
29237
|
// Derivable.
|
|
29240
29238
|
_async_to_generator(function(state, options) {
|
|
29241
|
-
var placement,
|
|
29239
|
+
var placement, platform2, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref, mainAxis, crossAxis, alignmentAxis;
|
|
29242
29240
|
return _ts_generator(this, function(_state) {
|
|
29243
29241
|
switch (_state.label) {
|
|
29244
29242
|
case 0:
|
|
29245
|
-
return placement = state.placement,
|
|
29243
|
+
return placement = state.placement, platform2 = state.platform, elements = state.elements, [
|
|
29246
29244
|
4,
|
|
29247
|
-
|
|
29245
|
+
platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)
|
|
29248
29246
|
];
|
|
29249
29247
|
case 1:
|
|
29250
29248
|
return rtl = _state.sent(), side = getSide(placement), alignment = getAlignment(placement), isVertical = getSideAxis(placement) === "y", mainAxisMulti = [
|
|
@@ -29272,24 +29270,24 @@ function _convertValueToCoords() {
|
|
|
29272
29270
|
});
|
|
29273
29271
|
}), _convertValueToCoords.apply(this, arguments);
|
|
29274
29272
|
}
|
|
29275
|
-
var computePosition,
|
|
29273
|
+
var computePosition, arrow2, autoPlacement2, flip2, hide2, inline2, offset2, shift2, limitShift2, size2, init_floating_ui_core_esm = __esm({
|
|
29276
29274
|
"../../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js"() {
|
|
29277
29275
|
init_floating_ui_utils();
|
|
29278
29276
|
init_floating_ui_utils();
|
|
29279
29277
|
computePosition = function() {
|
|
29280
29278
|
var _ref = _async_to_generator(function(reference, floating, config) {
|
|
29281
|
-
var _config_placement, placement, _config_strategy, strategy, _config_middleware, middleware,
|
|
29279
|
+
var _config_placement, placement, _config_strategy, strategy, _config_middleware, middleware, platform2, validMiddleware, rtl, rects, _computeCoordsFromPlacement, x, y, statefulPlacement, middlewareData, resetCount, i, _validMiddleware_i, name, fn, _ref2, nextX, nextY, data, reset, _tmp, ref;
|
|
29282
29280
|
return _ts_generator(this, function(_state) {
|
|
29283
29281
|
switch (_state.label) {
|
|
29284
29282
|
case 0:
|
|
29285
|
-
return _config_placement = config.placement, placement = _config_placement === void 0 ? "bottom" : _config_placement, _config_strategy = config.strategy, strategy = _config_strategy === void 0 ? "absolute" : _config_strategy, _config_middleware = config.middleware, middleware = _config_middleware === void 0 ? [] : _config_middleware,
|
|
29283
|
+
return _config_placement = config.placement, placement = _config_placement === void 0 ? "bottom" : _config_placement, _config_strategy = config.strategy, strategy = _config_strategy === void 0 ? "absolute" : _config_strategy, _config_middleware = config.middleware, middleware = _config_middleware === void 0 ? [] : _config_middleware, platform2 = config.platform, validMiddleware = middleware.filter(Boolean), [
|
|
29286
29284
|
4,
|
|
29287
|
-
|
|
29285
|
+
platform2.isRTL == null ? void 0 : platform2.isRTL(floating)
|
|
29288
29286
|
];
|
|
29289
29287
|
case 1:
|
|
29290
29288
|
return rtl = _state.sent(), [
|
|
29291
29289
|
4,
|
|
29292
|
-
|
|
29290
|
+
platform2.getElementRects({
|
|
29293
29291
|
reference,
|
|
29294
29292
|
floating,
|
|
29295
29293
|
strategy
|
|
@@ -29308,7 +29306,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29308
29306
|
strategy,
|
|
29309
29307
|
middlewareData,
|
|
29310
29308
|
rects,
|
|
29311
|
-
platform,
|
|
29309
|
+
platform: platform2,
|
|
29312
29310
|
elements: {
|
|
29313
29311
|
reference,
|
|
29314
29312
|
floating
|
|
@@ -29327,7 +29325,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29327
29325
|
6
|
|
29328
29326
|
] : [
|
|
29329
29327
|
4,
|
|
29330
|
-
|
|
29328
|
+
platform2.getElementRects({
|
|
29331
29329
|
reference,
|
|
29332
29330
|
floating,
|
|
29333
29331
|
strategy
|
|
@@ -29375,17 +29373,17 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29375
29373
|
return _ref.apply(this, arguments);
|
|
29376
29374
|
};
|
|
29377
29375
|
}();
|
|
29378
|
-
|
|
29376
|
+
arrow2 = function(options) {
|
|
29379
29377
|
return {
|
|
29380
29378
|
name: "arrow",
|
|
29381
29379
|
options,
|
|
29382
29380
|
fn: function(state) {
|
|
29383
29381
|
return _async_to_generator(function() {
|
|
29384
|
-
var x, y, placement, rects,
|
|
29382
|
+
var x, y, placement, rects, platform2, elements, middlewareData, _ref, element, _ref_padding, padding, paddingObject, coords, axis, length, arrowDimensions, isYAxis, minProp, maxProp, clientProp, endDiff, startDiff, arrowOffsetParent, clientSize, _tmp, centerToReference, largestPossiblePadding, minPadding, maxPadding, min$1, max2, center, offset4, shouldAddOffset, alignmentOffset, _obj, _obj1;
|
|
29385
29383
|
return _ts_generator(this, function(_state) {
|
|
29386
29384
|
switch (_state.label) {
|
|
29387
29385
|
case 0:
|
|
29388
|
-
return x = state.x, y = state.y, placement = state.placement, rects = state.rects,
|
|
29386
|
+
return x = state.x, y = state.y, placement = state.placement, rects = state.rects, platform2 = state.platform, elements = state.elements, middlewareData = state.middlewareData, _ref = evaluate(options, state) || {}, element = _ref.element, _ref_padding = _ref.padding, padding = _ref_padding === void 0 ? 0 : _ref_padding, element == null ? [
|
|
29389
29387
|
2,
|
|
29390
29388
|
{}
|
|
29391
29389
|
] : (paddingObject = getPaddingObject(padding), coords = {
|
|
@@ -29393,12 +29391,12 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29393
29391
|
y
|
|
29394
29392
|
}, axis = getAlignmentAxis(placement), length = getAxisLength(axis), [
|
|
29395
29393
|
4,
|
|
29396
|
-
|
|
29394
|
+
platform2.getDimensions(element)
|
|
29397
29395
|
]);
|
|
29398
29396
|
case 1:
|
|
29399
29397
|
return arrowDimensions = _state.sent(), 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], [
|
|
29400
29398
|
4,
|
|
29401
|
-
|
|
29399
|
+
platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element)
|
|
29402
29400
|
];
|
|
29403
29401
|
case 2:
|
|
29404
29402
|
return arrowOffsetParent = _state.sent(), clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0, _tmp = !clientSize, _tmp ? [
|
|
@@ -29406,14 +29404,14 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29406
29404
|
4
|
|
29407
29405
|
] : [
|
|
29408
29406
|
4,
|
|
29409
|
-
|
|
29407
|
+
platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent)
|
|
29410
29408
|
];
|
|
29411
29409
|
case 3:
|
|
29412
29410
|
_tmp = !_state.sent(), _state.label = 4;
|
|
29413
29411
|
case 4:
|
|
29414
|
-
return _tmp && (clientSize = elements.floating[clientProp] || rects.floating[length]), 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,
|
|
29412
|
+
return _tmp && (clientSize = elements.floating[clientProp] || rects.floating[length]), 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, [
|
|
29415
29413
|
2,
|
|
29416
|
-
(_obj1 = {}, _define_property2(_obj1, axis, coords[axis] + alignmentOffset), _define_property2(_obj1, "data", _object_spread2((_obj = {}, _define_property2(_obj, axis,
|
|
29414
|
+
(_obj1 = {}, _define_property2(_obj1, axis, coords[axis] + alignmentOffset), _define_property2(_obj1, "data", _object_spread2((_obj = {}, _define_property2(_obj, axis, offset4), _define_property2(_obj, "centerOffset", center - offset4 - alignmentOffset), _obj), shouldAddOffset && {
|
|
29417
29415
|
alignmentOffset
|
|
29418
29416
|
})), _define_property2(_obj1, "reset", shouldAddOffset), _obj1)
|
|
29419
29417
|
];
|
|
@@ -29423,24 +29421,24 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29423
29421
|
}
|
|
29424
29422
|
};
|
|
29425
29423
|
};
|
|
29426
|
-
|
|
29424
|
+
autoPlacement2 = function(options) {
|
|
29427
29425
|
return options === void 0 && (options = {}), {
|
|
29428
29426
|
name: "autoPlacement",
|
|
29429
29427
|
options,
|
|
29430
29428
|
fn: function(state) {
|
|
29431
29429
|
return _async_to_generator(function() {
|
|
29432
|
-
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE, rects, middlewareData, placement,
|
|
29430
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE, rects, middlewareData, placement, platform2, elements, _evaluate, _evaluate_crossAxis, crossAxis, alignment, _evaluate_allowedPlacements, allowedPlacements, _evaluate_autoAlignment, autoAlignment, detectOverflowOptions, placements$1, overflow, currentIndex, currentPlacement, alignmentSides, _tmp, currentOverflows, allOverflows, nextPlacement, placementsSortedByMostSpace, placementsThatFitOnEachSide, resetPlacement;
|
|
29433
29431
|
return _ts_generator(this, function(_state) {
|
|
29434
29432
|
switch (_state.label) {
|
|
29435
29433
|
case 0:
|
|
29436
|
-
return rects = state.rects, middlewareData = state.middlewareData, placement = state.placement,
|
|
29434
|
+
return rects = state.rects, middlewareData = state.middlewareData, placement = state.placement, platform2 = state.platform, elements = state.elements, _evaluate = evaluate(options, state), _evaluate_crossAxis = _evaluate.crossAxis, crossAxis = _evaluate_crossAxis === void 0 ? !1 : _evaluate_crossAxis, alignment = _evaluate.alignment, _evaluate_allowedPlacements = _evaluate.allowedPlacements, allowedPlacements = _evaluate_allowedPlacements === void 0 ? placements : _evaluate_allowedPlacements, _evaluate_autoAlignment = _evaluate.autoAlignment, autoAlignment = _evaluate_autoAlignment === void 0 ? !0 : _evaluate_autoAlignment, detectOverflowOptions = _object_without_properties(_evaluate, [
|
|
29437
29435
|
"crossAxis",
|
|
29438
29436
|
"alignment",
|
|
29439
29437
|
"allowedPlacements",
|
|
29440
29438
|
"autoAlignment"
|
|
29441
29439
|
]), placements$1 = alignment !== void 0 || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements, [
|
|
29442
29440
|
4,
|
|
29443
|
-
|
|
29441
|
+
detectOverflow2(state, detectOverflowOptions)
|
|
29444
29442
|
];
|
|
29445
29443
|
case 1:
|
|
29446
29444
|
return overflow = _state.sent(), currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0, currentPlacement = placements$1[currentIndex], currentPlacement == null ? [
|
|
@@ -29451,7 +29449,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29451
29449
|
rects
|
|
29452
29450
|
], [
|
|
29453
29451
|
4,
|
|
29454
|
-
|
|
29452
|
+
platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)
|
|
29455
29453
|
]);
|
|
29456
29454
|
case 2:
|
|
29457
29455
|
return alignmentSides = getAlignmentSides.apply(void 0, _tmp.concat([
|
|
@@ -29529,17 +29527,17 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29529
29527
|
})();
|
|
29530
29528
|
}
|
|
29531
29529
|
};
|
|
29532
|
-
},
|
|
29530
|
+
}, flip2 = function(options) {
|
|
29533
29531
|
return options === void 0 && (options = {}), {
|
|
29534
29532
|
name: "flip",
|
|
29535
29533
|
options,
|
|
29536
29534
|
fn: function(state) {
|
|
29537
29535
|
return _async_to_generator(function() {
|
|
29538
|
-
var _middlewareData$arrow, _middlewareData$flip, placement, middlewareData, rects, initialPlacement,
|
|
29536
|
+
var _middlewareData$arrow, _middlewareData$flip, placement, middlewareData, rects, initialPlacement, platform2, elements, _evaluate, tmp, checkMainAxis, tmp1, checkCrossAxis, specifiedFallbackPlacements, _evaluate_fallbackStrategy, fallbackStrategy, _evaluate_fallbackAxisSideDirection, fallbackAxisSideDirection, _evaluate_flipAlignment, flipAlignment, detectOverflowOptions, side, isBasePlacement, rtl, fallbackPlacements, _fallbackPlacements, placements2, overflow, overflows, overflowsData, sides2, _middlewareData$flip2, _overflowsData$filter, nextIndex, nextPlacement, resetPlacement, _overflowsData$map$so, placement1;
|
|
29539
29537
|
return _ts_generator(this, function(_state) {
|
|
29540
29538
|
switch (_state.label) {
|
|
29541
29539
|
case 0:
|
|
29542
|
-
return placement = state.placement, middlewareData = state.middlewareData, rects = state.rects, initialPlacement = state.initialPlacement,
|
|
29540
|
+
return placement = state.placement, middlewareData = state.middlewareData, rects = state.rects, initialPlacement = state.initialPlacement, platform2 = state.platform, elements = state.elements, _evaluate = evaluate(options, state), tmp = _evaluate.mainAxis, checkMainAxis = tmp === void 0 ? !0 : tmp, tmp1 = _evaluate.crossAxis, checkCrossAxis = tmp1 === void 0 ? !0 : tmp1, specifiedFallbackPlacements = _evaluate.fallbackPlacements, _evaluate_fallbackStrategy = _evaluate.fallbackStrategy, fallbackStrategy = _evaluate_fallbackStrategy === void 0 ? "bestFit" : _evaluate_fallbackStrategy, _evaluate_fallbackAxisSideDirection = _evaluate.fallbackAxisSideDirection, fallbackAxisSideDirection = _evaluate_fallbackAxisSideDirection === void 0 ? "none" : _evaluate_fallbackAxisSideDirection, _evaluate_flipAlignment = _evaluate.flipAlignment, flipAlignment = _evaluate_flipAlignment === void 0 ? !0 : _evaluate_flipAlignment, detectOverflowOptions = _object_without_properties(_evaluate, [
|
|
29543
29541
|
"mainAxis",
|
|
29544
29542
|
"crossAxis",
|
|
29545
29543
|
"fallbackPlacements",
|
|
@@ -29551,7 +29549,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29551
29549
|
{}
|
|
29552
29550
|
] : (side = getSide(placement), isBasePlacement = getSide(initialPlacement) === initialPlacement, [
|
|
29553
29551
|
4,
|
|
29554
|
-
|
|
29552
|
+
platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)
|
|
29555
29553
|
]);
|
|
29556
29554
|
case 1:
|
|
29557
29555
|
return rtl = _state.sent(), fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [
|
|
@@ -29560,7 +29558,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29560
29558
|
initialPlacement
|
|
29561
29559
|
].concat(_to_consumable_array(fallbackPlacements)), [
|
|
29562
29560
|
4,
|
|
29563
|
-
|
|
29561
|
+
detectOverflow2(state, detectOverflowOptions)
|
|
29564
29562
|
];
|
|
29565
29563
|
case 2:
|
|
29566
29564
|
if (overflow = _state.sent(), overflows = [], overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [], checkMainAxis && overflows.push(overflow[side]), checkCrossAxis && (sides2 = getAlignmentSides(placement, rects, rtl), overflows.push(overflow[sides2[0]], overflow[sides2[1]])), overflowsData = _to_consumable_array(overflowsData).concat([
|
|
@@ -29629,7 +29627,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29629
29627
|
}
|
|
29630
29628
|
};
|
|
29631
29629
|
};
|
|
29632
|
-
|
|
29630
|
+
hide2 = function(options) {
|
|
29633
29631
|
return options === void 0 && (options = {}), {
|
|
29634
29632
|
name: "hide",
|
|
29635
29633
|
options,
|
|
@@ -29660,7 +29658,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29660
29658
|
case 1:
|
|
29661
29659
|
return [
|
|
29662
29660
|
4,
|
|
29663
|
-
|
|
29661
|
+
detectOverflow2(state, _object_spread_props2(_object_spread2({}, detectOverflowOptions), {
|
|
29664
29662
|
elementContext: "reference"
|
|
29665
29663
|
}))
|
|
29666
29664
|
];
|
|
@@ -29677,7 +29675,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29677
29675
|
case 3:
|
|
29678
29676
|
return [
|
|
29679
29677
|
4,
|
|
29680
|
-
|
|
29678
|
+
detectOverflow2(state, _object_spread_props2(_object_spread2({}, detectOverflowOptions), {
|
|
29681
29679
|
altBoundary: !0
|
|
29682
29680
|
}))
|
|
29683
29681
|
];
|
|
@@ -29706,13 +29704,13 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29706
29704
|
}
|
|
29707
29705
|
};
|
|
29708
29706
|
};
|
|
29709
|
-
|
|
29707
|
+
inline2 = function(options) {
|
|
29710
29708
|
return options === void 0 && (options = {}), {
|
|
29711
29709
|
name: "inline",
|
|
29712
29710
|
options,
|
|
29713
29711
|
fn: function(state) {
|
|
29714
29712
|
return _async_to_generator(function() {
|
|
29715
|
-
var placement, elements, rects,
|
|
29713
|
+
var placement, elements, rects, platform2, strategy, _evaluate, _evaluate_padding, padding, x, y, nativeClientRects, _, clientRects, fallback, paddingObject, resetRects;
|
|
29716
29714
|
function getBoundingClientRect() {
|
|
29717
29715
|
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null)
|
|
29718
29716
|
return clientRects.find(function(rect) {
|
|
@@ -29755,16 +29753,16 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29755
29753
|
return _ts_generator(this, function(_state) {
|
|
29756
29754
|
switch (_state.label) {
|
|
29757
29755
|
case 0:
|
|
29758
|
-
return placement = state.placement, elements = state.elements, rects = state.rects,
|
|
29756
|
+
return placement = state.placement, elements = state.elements, rects = state.rects, platform2 = state.platform, strategy = state.strategy, _evaluate = evaluate(options, state), _evaluate_padding = _evaluate.padding, padding = _evaluate_padding === void 0 ? 2 : _evaluate_padding, x = _evaluate.x, y = _evaluate.y, _ = Array.from, [
|
|
29759
29757
|
4,
|
|
29760
|
-
|
|
29758
|
+
platform2.getClientRects == null ? void 0 : platform2.getClientRects(elements.reference)
|
|
29761
29759
|
];
|
|
29762
29760
|
case 1:
|
|
29763
29761
|
return nativeClientRects = _.apply(Array, [
|
|
29764
29762
|
_state.sent() || []
|
|
29765
29763
|
]), clientRects = getRectsByLine(nativeClientRects), fallback = rectToClientRect(getBoundingRect(nativeClientRects)), paddingObject = getPaddingObject(padding), [
|
|
29766
29764
|
4,
|
|
29767
|
-
|
|
29765
|
+
platform2.getElementRects({
|
|
29768
29766
|
reference: {
|
|
29769
29767
|
getBoundingClientRect
|
|
29770
29768
|
},
|
|
@@ -29790,7 +29788,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29790
29788
|
}
|
|
29791
29789
|
};
|
|
29792
29790
|
};
|
|
29793
|
-
|
|
29791
|
+
offset2 = function(options) {
|
|
29794
29792
|
return options === void 0 && (options = 0), {
|
|
29795
29793
|
name: "offset",
|
|
29796
29794
|
options,
|
|
@@ -29823,7 +29821,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29823
29821
|
})();
|
|
29824
29822
|
}
|
|
29825
29823
|
};
|
|
29826
|
-
},
|
|
29824
|
+
}, shift2 = function(options) {
|
|
29827
29825
|
return options === void 0 && (options = {}), {
|
|
29828
29826
|
name: "shift",
|
|
29829
29827
|
options,
|
|
@@ -29850,7 +29848,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29850
29848
|
y
|
|
29851
29849
|
}, [
|
|
29852
29850
|
4,
|
|
29853
|
-
|
|
29851
|
+
detectOverflow2(state, detectOverflowOptions)
|
|
29854
29852
|
];
|
|
29855
29853
|
case 1:
|
|
29856
29854
|
return overflow = _state.sent(), crossAxis = getSideAxis(getSide(placement)), mainAxis = getOppositeAxis(crossAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis], checkMainAxis && (minSide = mainAxis === "y" ? "top" : "left", maxSide = mainAxis === "y" ? "bottom" : "right", min2 = mainAxisCoord + overflow[minSide], max2 = mainAxisCoord - overflow[maxSide], mainAxisCoord = clamp(min2, mainAxisCoord, max2)), checkCrossAxis && (minSide1 = crossAxis === "y" ? "top" : "left", maxSide1 = crossAxis === "y" ? "bottom" : "right", min1 = crossAxisCoord + overflow[minSide1], max1 = crossAxisCoord - overflow[maxSide1], crossAxisCoord = clamp(min1, crossAxisCoord, max1)), limitedCoords = limiter.fn(_object_spread_props2(_object_spread2({}, state), (_obj = {}, _define_property2(_obj, mainAxis, mainAxisCoord), _define_property2(_obj, crossAxis, crossAxisCoord), _obj))), [
|
|
@@ -29867,14 +29865,14 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29867
29865
|
})();
|
|
29868
29866
|
}
|
|
29869
29867
|
};
|
|
29870
|
-
},
|
|
29868
|
+
}, limitShift2 = function(options) {
|
|
29871
29869
|
return options === void 0 && (options = {}), {
|
|
29872
29870
|
options,
|
|
29873
29871
|
fn: function(state) {
|
|
29874
|
-
var x = state.x, y = state.y, placement = state.placement, rects = state.rects, middlewareData = state.middlewareData, _evaluate = evaluate(options, state), _evaluate_offset = _evaluate.offset,
|
|
29872
|
+
var x = state.x, y = state.y, placement = state.placement, rects = state.rects, middlewareData = state.middlewareData, _evaluate = evaluate(options, state), _evaluate_offset = _evaluate.offset, offset4 = _evaluate_offset === void 0 ? 0 : _evaluate_offset, tmp = _evaluate.mainAxis, checkMainAxis = tmp === void 0 ? !0 : tmp, tmp1 = _evaluate.crossAxis, checkCrossAxis = tmp1 === void 0 ? !0 : tmp1, coords = {
|
|
29875
29873
|
x,
|
|
29876
29874
|
y
|
|
29877
|
-
}, crossAxis = getSideAxis(placement), mainAxis = getOppositeAxis(crossAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis], rawOffset = evaluate(
|
|
29875
|
+
}, crossAxis = getSideAxis(placement), mainAxis = getOppositeAxis(crossAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis], rawOffset = evaluate(offset4, state), computedOffset = typeof rawOffset == "number" ? {
|
|
29878
29876
|
mainAxis: rawOffset,
|
|
29879
29877
|
crossAxis: 0
|
|
29880
29878
|
} : _object_spread2({
|
|
@@ -29896,27 +29894,27 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29896
29894
|
return _obj = {}, _define_property2(_obj, mainAxis, mainAxisCoord), _define_property2(_obj, crossAxis, crossAxisCoord), _obj;
|
|
29897
29895
|
}
|
|
29898
29896
|
};
|
|
29899
|
-
},
|
|
29897
|
+
}, size2 = function(options) {
|
|
29900
29898
|
return options === void 0 && (options = {}), {
|
|
29901
29899
|
name: "size",
|
|
29902
29900
|
options,
|
|
29903
29901
|
fn: function(state) {
|
|
29904
29902
|
return _async_to_generator(function() {
|
|
29905
|
-
var placement, rects,
|
|
29903
|
+
var placement, rects, platform2, elements, _evaluate, _evaluate_apply, apply, detectOverflowOptions, overflow, side, alignment, isYAxis, _rects_floating, width, height, heightSide, widthSide, maximumClippingHeight, maximumClippingWidth, overflowAvailableHeight, overflowAvailableWidth, noShift, availableHeight, availableWidth, xMin, xMax, yMin, yMax, nextDimensions;
|
|
29906
29904
|
return _ts_generator(this, function(_state) {
|
|
29907
29905
|
switch (_state.label) {
|
|
29908
29906
|
case 0:
|
|
29909
|
-
return placement = state.placement, rects = state.rects,
|
|
29907
|
+
return placement = state.placement, rects = state.rects, platform2 = state.platform, elements = state.elements, _evaluate = evaluate(options, state), _evaluate_apply = _evaluate.apply, apply = _evaluate_apply === void 0 ? function() {
|
|
29910
29908
|
} : _evaluate_apply, detectOverflowOptions = _object_without_properties(_evaluate, [
|
|
29911
29909
|
"apply"
|
|
29912
29910
|
]), [
|
|
29913
29911
|
4,
|
|
29914
|
-
|
|
29912
|
+
detectOverflow2(state, detectOverflowOptions)
|
|
29915
29913
|
];
|
|
29916
29914
|
case 1:
|
|
29917
29915
|
return overflow = _state.sent(), side = getSide(placement), alignment = getAlignment(placement), isYAxis = getSideAxis(placement) === "y", _rects_floating = rects.floating, width = _rects_floating.width, height = _rects_floating.height, side === "top" || side === "bottom" ? (heightSide = side, [
|
|
29918
29916
|
4,
|
|
29919
|
-
|
|
29917
|
+
platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)
|
|
29920
29918
|
]) : [
|
|
29921
29919
|
3,
|
|
29922
29920
|
3
|
|
@@ -29939,7 +29937,7 @@ var computePosition, arrow, autoPlacement, flip, hide, inline, offset, shift, li
|
|
|
29939
29937
|
case 5:
|
|
29940
29938
|
return _state.sent(), [
|
|
29941
29939
|
4,
|
|
29942
|
-
|
|
29940
|
+
platform2.getDimensions(elements.floating)
|
|
29943
29941
|
];
|
|
29944
29942
|
case 6:
|
|
29945
29943
|
return nextDimensions = _state.sent(), width !== nextDimensions.width || height !== nextDimensions.height ? [
|
|
@@ -30190,7 +30188,7 @@ var require_floating_ui_react_native = __commonJS({
|
|
|
30190
30188
|
middlewareData: {}
|
|
30191
30189
|
}), 2), data = _React__namespace_useState3[0], setData = _React__namespace_useState3[1], _React__namespace_useState4 = _sliced_to_array(React__namespace.useState(ORIGIN), 2), scrollOffsets = _React__namespace_useState4[0], setScrollOffsets = _React__namespace_useState4[1], _React__namespace_useState5 = _sliced_to_array(React__namespace.useState(middleware), 2), latestMiddleware = _React__namespace_useState5[0], setLatestMiddleware = _React__namespace_useState5[1];
|
|
30192
30190
|
deepEqual(latestMiddleware, middleware) || setLatestMiddleware(middleware);
|
|
30193
|
-
var
|
|
30191
|
+
var platform2 = React__namespace.useMemo(function() {
|
|
30194
30192
|
return createPlatform({
|
|
30195
30193
|
offsetParent: offsetParentEl,
|
|
30196
30194
|
scrollOffsets,
|
|
@@ -30203,14 +30201,14 @@ var require_floating_ui_react_native = __commonJS({
|
|
|
30203
30201
|
]), update = React__namespace.useCallback(function() {
|
|
30204
30202
|
!referenceRef.current || !floatingRef.current || core.computePosition(referenceRef.current, floatingRef.current, {
|
|
30205
30203
|
middleware: latestMiddleware,
|
|
30206
|
-
platform,
|
|
30204
|
+
platform: platform2,
|
|
30207
30205
|
placement
|
|
30208
30206
|
}).then(function(data2) {
|
|
30209
30207
|
isMountedRef.current && setData(data2);
|
|
30210
30208
|
});
|
|
30211
30209
|
}, [
|
|
30212
30210
|
latestMiddleware,
|
|
30213
|
-
|
|
30211
|
+
platform2,
|
|
30214
30212
|
placement
|
|
30215
30213
|
]);
|
|
30216
30214
|
React__namespace.useLayoutEffect(function() {
|
|
@@ -30314,63 +30312,63 @@ var require_floating_ui_react_native = __commonJS({
|
|
|
30314
30312
|
}).fn(state) : {};
|
|
30315
30313
|
}
|
|
30316
30314
|
};
|
|
30317
|
-
},
|
|
30315
|
+
}, offset4 = function(options, deps) {
|
|
30318
30316
|
return _object_spread_props8(_object_spread9({}, core.offset(options)), {
|
|
30319
30317
|
options: [
|
|
30320
30318
|
options,
|
|
30321
30319
|
deps
|
|
30322
30320
|
]
|
|
30323
30321
|
});
|
|
30324
|
-
},
|
|
30322
|
+
}, shift4 = function(options, deps) {
|
|
30325
30323
|
return _object_spread_props8(_object_spread9({}, core.shift(options)), {
|
|
30326
30324
|
options: [
|
|
30327
30325
|
options,
|
|
30328
30326
|
deps
|
|
30329
30327
|
]
|
|
30330
30328
|
});
|
|
30331
|
-
},
|
|
30329
|
+
}, limitShift4 = function(options, deps) {
|
|
30332
30330
|
return _object_spread_props8(_object_spread9({}, core.limitShift(options)), {
|
|
30333
30331
|
options: [
|
|
30334
30332
|
options,
|
|
30335
30333
|
deps
|
|
30336
30334
|
]
|
|
30337
30335
|
});
|
|
30338
|
-
},
|
|
30336
|
+
}, flip4 = function(options, deps) {
|
|
30339
30337
|
return _object_spread_props8(_object_spread9({}, core.flip(options)), {
|
|
30340
30338
|
options: [
|
|
30341
30339
|
options,
|
|
30342
30340
|
deps
|
|
30343
30341
|
]
|
|
30344
30342
|
});
|
|
30345
|
-
},
|
|
30343
|
+
}, size4 = function(options, deps) {
|
|
30346
30344
|
return _object_spread_props8(_object_spread9({}, core.size(options)), {
|
|
30347
30345
|
options: [
|
|
30348
30346
|
options,
|
|
30349
30347
|
deps
|
|
30350
30348
|
]
|
|
30351
30349
|
});
|
|
30352
|
-
},
|
|
30350
|
+
}, autoPlacement4 = function(options, deps) {
|
|
30353
30351
|
return _object_spread_props8(_object_spread9({}, core.autoPlacement(options)), {
|
|
30354
30352
|
options: [
|
|
30355
30353
|
options,
|
|
30356
30354
|
deps
|
|
30357
30355
|
]
|
|
30358
30356
|
});
|
|
30359
|
-
},
|
|
30357
|
+
}, hide4 = function(options, deps) {
|
|
30360
30358
|
return _object_spread_props8(_object_spread9({}, core.hide(options)), {
|
|
30361
30359
|
options: [
|
|
30362
30360
|
options,
|
|
30363
30361
|
deps
|
|
30364
30362
|
]
|
|
30365
30363
|
});
|
|
30366
|
-
},
|
|
30364
|
+
}, inline4 = function(options, deps) {
|
|
30367
30365
|
return _object_spread_props8(_object_spread9({}, core.inline(options)), {
|
|
30368
30366
|
options: [
|
|
30369
30367
|
options,
|
|
30370
30368
|
deps
|
|
30371
30369
|
]
|
|
30372
30370
|
});
|
|
30373
|
-
},
|
|
30371
|
+
}, arrow3 = function(options, deps) {
|
|
30374
30372
|
return _object_spread_props8(_object_spread9({}, arrow$1(options)), {
|
|
30375
30373
|
options: [
|
|
30376
30374
|
options,
|
|
@@ -30384,15 +30382,15 @@ var require_floating_ui_react_native = __commonJS({
|
|
|
30384
30382
|
return core.detectOverflow;
|
|
30385
30383
|
}
|
|
30386
30384
|
});
|
|
30387
|
-
exports2.arrow =
|
|
30388
|
-
exports2.autoPlacement =
|
|
30389
|
-
exports2.flip =
|
|
30390
|
-
exports2.hide =
|
|
30391
|
-
exports2.inline =
|
|
30392
|
-
exports2.limitShift =
|
|
30393
|
-
exports2.offset =
|
|
30394
|
-
exports2.shift =
|
|
30395
|
-
exports2.size =
|
|
30385
|
+
exports2.arrow = arrow3;
|
|
30386
|
+
exports2.autoPlacement = autoPlacement4;
|
|
30387
|
+
exports2.flip = flip4;
|
|
30388
|
+
exports2.hide = hide4;
|
|
30389
|
+
exports2.inline = inline4;
|
|
30390
|
+
exports2.limitShift = limitShift4;
|
|
30391
|
+
exports2.offset = offset4;
|
|
30392
|
+
exports2.shift = shift4;
|
|
30393
|
+
exports2.size = size4;
|
|
30396
30394
|
exports2.useFloating = useFloating2;
|
|
30397
30395
|
}
|
|
30398
30396
|
});
|
|
@@ -30442,13 +30440,16 @@ var require_Floating_native = __commonJS({
|
|
|
30442
30440
|
}, Floating_native_exports = {};
|
|
30443
30441
|
__export2(Floating_native_exports, {
|
|
30444
30442
|
autoUpdate: function() {
|
|
30445
|
-
return
|
|
30443
|
+
return autoUpdate2;
|
|
30444
|
+
},
|
|
30445
|
+
platform: function() {
|
|
30446
|
+
return platform2;
|
|
30446
30447
|
}
|
|
30447
30448
|
});
|
|
30448
30449
|
module2.exports = __toCommonJS2(Floating_native_exports);
|
|
30449
30450
|
__reExport2(Floating_native_exports, require_floating_ui_react_native(), module2.exports);
|
|
30450
|
-
var
|
|
30451
|
-
};
|
|
30451
|
+
var autoUpdate2 = function() {
|
|
30452
|
+
}, platform2 = null;
|
|
30452
30453
|
}
|
|
30453
30454
|
});
|
|
30454
30455
|
|
|
@@ -30557,8 +30558,6 @@ var require_index_native56 = __commonJS({
|
|
|
30557
30558
|
}
|
|
30558
30559
|
}
|
|
30559
30560
|
return to;
|
|
30560
|
-
}, __reExport2 = function(target, mod, secondTarget) {
|
|
30561
|
-
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
30562
30561
|
}, __toCommonJS2 = function(mod) {
|
|
30563
30562
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30564
30563
|
value: !0
|
|
@@ -30568,13 +30567,48 @@ var require_index_native56 = __commonJS({
|
|
|
30568
30567
|
FloatingOverrideContext: function() {
|
|
30569
30568
|
return import_useFloating.FloatingOverrideContext;
|
|
30570
30569
|
},
|
|
30570
|
+
arrow: function() {
|
|
30571
|
+
return import_Floating.arrow;
|
|
30572
|
+
},
|
|
30573
|
+
autoPlacement: function() {
|
|
30574
|
+
return import_Floating.autoPlacement;
|
|
30575
|
+
},
|
|
30576
|
+
autoUpdate: function() {
|
|
30577
|
+
return import_Floating.autoUpdate;
|
|
30578
|
+
},
|
|
30579
|
+
detectOverflow: function() {
|
|
30580
|
+
return import_Floating.detectOverflow;
|
|
30581
|
+
},
|
|
30582
|
+
flip: function() {
|
|
30583
|
+
return import_Floating.flip;
|
|
30584
|
+
},
|
|
30585
|
+
hide: function() {
|
|
30586
|
+
return import_Floating.hide;
|
|
30587
|
+
},
|
|
30588
|
+
inline: function() {
|
|
30589
|
+
return import_Floating.inline;
|
|
30590
|
+
},
|
|
30591
|
+
limitShift: function() {
|
|
30592
|
+
return import_Floating.limitShift;
|
|
30593
|
+
},
|
|
30594
|
+
offset: function() {
|
|
30595
|
+
return import_Floating.offset;
|
|
30596
|
+
},
|
|
30597
|
+
platform: function() {
|
|
30598
|
+
return import_Floating.platform;
|
|
30599
|
+
},
|
|
30600
|
+
shift: function() {
|
|
30601
|
+
return import_Floating.shift;
|
|
30602
|
+
},
|
|
30603
|
+
size: function() {
|
|
30604
|
+
return import_Floating.size;
|
|
30605
|
+
},
|
|
30571
30606
|
useFloating: function() {
|
|
30572
30607
|
return import_useFloating.useFloating;
|
|
30573
30608
|
}
|
|
30574
30609
|
});
|
|
30575
30610
|
module2.exports = __toCommonJS2(src_exports2);
|
|
30576
|
-
|
|
30577
|
-
var import_useFloating = require_useFloating_native();
|
|
30611
|
+
var import_Floating = require_Floating_native(), import_useFloating = require_useFloating_native();
|
|
30578
30612
|
}
|
|
30579
30613
|
});
|
|
30580
30614
|
|
|
@@ -30765,7 +30799,7 @@ var require_Popper_native = __commonJS({
|
|
|
30765
30799
|
Object.assign(setupOptions, options);
|
|
30766
30800
|
}
|
|
30767
30801
|
function Popper(props) {
|
|
30768
|
-
var _middlewareData_checkFloating, children = props.children,
|
|
30802
|
+
var _middlewareData_checkFloating, children = props.children, size4 = props.size, _props_strategy = props.strategy, strategy = _props_strategy === void 0 ? "absolute" : _props_strategy, _props_placement = props.placement, placement = _props_placement === void 0 ? "bottom" : _props_placement, stayInFrame = props.stayInFrame, allowFlip = props.allowFlip, offset4 = props.offset, disableRTL = props.disableRTL, __scopePopper = props.__scopePopper, isMounted = (0, import_core12.useDidFinishSSR)(), _React_useState = _sliced_to_array(React2.useState(null), 2), arrowEl = _React_useState[0], setArrow = _React_useState[1], _React_useState1 = _sliced_to_array(React2.useState(0), 2), arrowSize = _React_useState1[0], setArrowSize = _React_useState1[1], offsetOptions = offset4 ?? arrowSize, floating = (0, import_floating.useFloating)({
|
|
30769
30803
|
strategy,
|
|
30770
30804
|
placement,
|
|
30771
30805
|
sameScrollView: !1,
|
|
@@ -30805,7 +30839,7 @@ var require_Popper_native = __commonJS({
|
|
|
30805
30839
|
keyboardOpen
|
|
30806
30840
|
]);
|
|
30807
30841
|
var popperContext = _object_spread9({
|
|
30808
|
-
size:
|
|
30842
|
+
size: size4,
|
|
30809
30843
|
arrowRef: setArrow,
|
|
30810
30844
|
arrowStyle: middlewareData.arrow,
|
|
30811
30845
|
onArrowSize: setArrowSize,
|
|
@@ -30859,7 +30893,7 @@ var require_Popper_native = __commonJS({
|
|
|
30859
30893
|
var __scopePopper = props.__scopePopper, enableAnimationForPositionChange = props.enableAnimationForPositionChange, rest = _object_without_properties5(props, [
|
|
30860
30894
|
"__scopePopper",
|
|
30861
30895
|
"enableAnimationForPositionChange"
|
|
30862
|
-
]), _usePopperContext = usePopperContext(__scopePopper), strategy = _usePopperContext.strategy, placement = _usePopperContext.placement, refs = _usePopperContext.refs, x = _usePopperContext.x, y = _usePopperContext.y, getFloatingProps = _usePopperContext.getFloatingProps,
|
|
30896
|
+
]), _usePopperContext = usePopperContext(__scopePopper), strategy = _usePopperContext.strategy, placement = _usePopperContext.placement, refs = _usePopperContext.refs, x = _usePopperContext.x, y = _usePopperContext.y, getFloatingProps = _usePopperContext.getFloatingProps, size4 = _usePopperContext.size, isMounted = _usePopperContext.isMounted, update = _usePopperContext.update, floatingStyles = _usePopperContext.floatingStyles, hasFloating = _usePopperContext.hasFloating, contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), finalHasFloatingValue = !1;
|
|
30863
30897
|
if (import_constants4.isAndroid) {
|
|
30864
30898
|
var initialRender = React2.useRef(!0), finalHasFloating = React2.useRef(!1);
|
|
30865
30899
|
hasFloating === !1 && (initialRender.current = !1), initialRender.current || (finalHasFloating.current = hasFloating), finalHasFloatingValue = finalHasFloating.current;
|
|
@@ -30869,7 +30903,7 @@ var require_Popper_native = __commonJS({
|
|
|
30869
30903
|
"data-placement": placement,
|
|
30870
30904
|
"data-strategy": strategy,
|
|
30871
30905
|
contain: "layout",
|
|
30872
|
-
size:
|
|
30906
|
+
size: size4
|
|
30873
30907
|
}, rest), "popper-content-frame");
|
|
30874
30908
|
}, [
|
|
30875
30909
|
placement,
|
|
@@ -30956,7 +30990,7 @@ var require_Popper_native = __commonJS({
|
|
|
30956
30990
|
}, PopperArrow = PopperArrowFrame.styleable(function(propsIn, forwardedRef) {
|
|
30957
30991
|
var _context_arrowStyle, _context_arrowStyle1, __scopePopper = propsIn.__scopePopper, rest = _object_without_properties5(propsIn, [
|
|
30958
30992
|
"__scopePopper"
|
|
30959
|
-
]), props = (0, import_core12.useProps)(rest),
|
|
30993
|
+
]), props = (0, import_core12.useProps)(rest), offset4 = props.offset, sizeProp = props.size, _props_borderWidth = props.borderWidth, borderWidth = _props_borderWidth === void 0 ? 0 : _props_borderWidth, arrowProps = _object_without_properties5(props, [
|
|
30960
30994
|
"offset",
|
|
30961
30995
|
"size",
|
|
30962
30996
|
"borderWidth"
|
|
@@ -30965,20 +30999,20 @@ var require_Popper_native = __commonJS({
|
|
|
30965
30999
|
bounds: [
|
|
30966
31000
|
2
|
|
30967
31001
|
]
|
|
30968
|
-
})),
|
|
31002
|
+
})), size4 = Math.max(0, +sizeVal), placement = context.placement, 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 = {
|
|
30969
31003
|
x,
|
|
30970
31004
|
y,
|
|
30971
|
-
width:
|
|
30972
|
-
height:
|
|
31005
|
+
width: size4,
|
|
31006
|
+
height: size4
|
|
30973
31007
|
}, innerArrowStyle = {}, isVertical = primaryPlacement === "bottom" || primaryPlacement === "top";
|
|
30974
31008
|
if (primaryPlacement) {
|
|
30975
|
-
arrowStyle[isVertical ? "width" : "height"] =
|
|
31009
|
+
arrowStyle[isVertical ? "width" : "height"] = size4 * 2;
|
|
30976
31010
|
var oppSide = opposites[primaryPlacement];
|
|
30977
|
-
oppSide && (arrowStyle[oppSide] = -
|
|
31011
|
+
oppSide && (arrowStyle[oppSide] = -size4, innerArrowStyle[oppSide] = size4 / 2), (oppSide === "top" || oppSide === "bottom") && (arrowStyle.left = 0), (oppSide === "left" || oppSide === "right") && (arrowStyle.top = 0), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
30978
31012
|
var _context_onArrowSize;
|
|
30979
|
-
(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context,
|
|
31013
|
+
(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size4);
|
|
30980
31014
|
}, [
|
|
30981
|
-
|
|
31015
|
+
size4,
|
|
30982
31016
|
context.onArrowSize
|
|
30983
31017
|
]);
|
|
30984
31018
|
}
|
|
@@ -30986,8 +31020,8 @@ var require_Popper_native = __commonJS({
|
|
|
30986
31020
|
ref: refs
|
|
30987
31021
|
}, arrowStyle), {
|
|
30988
31022
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperArrowFrame, _object_spread9(_object_spread_props8(_object_spread9({
|
|
30989
|
-
width:
|
|
30990
|
-
height:
|
|
31023
|
+
width: size4,
|
|
31024
|
+
height: size4
|
|
30991
31025
|
}, arrowProps, innerArrowStyle), {
|
|
30992
31026
|
rotate: "45deg"
|
|
30993
31027
|
}), primaryPlacement === "bottom" && {
|
|
@@ -31897,10 +31931,10 @@ var require_Progress_native = __commonJS({
|
|
|
31897
31931
|
},
|
|
31898
31932
|
size: {
|
|
31899
31933
|
"...size": function(val) {
|
|
31900
|
-
var
|
|
31934
|
+
var size4 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.25);
|
|
31901
31935
|
return {
|
|
31902
|
-
height:
|
|
31903
|
-
minWidth: (0, import_core12.getVariableValue)(
|
|
31936
|
+
height: size4,
|
|
31937
|
+
minWidth: (0, import_core12.getVariableValue)(size4) * 20,
|
|
31904
31938
|
width: "100%"
|
|
31905
31939
|
};
|
|
31906
31940
|
}
|
|
@@ -31910,7 +31944,7 @@ var require_Progress_native = __commonJS({
|
|
|
31910
31944
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
31911
31945
|
}
|
|
31912
31946
|
}), Progress = (0, import_helpers.withStaticProperties)(ProgressFrame.styleable(function(props, forwardedRef) {
|
|
31913
|
-
var __scopeProgress = props.__scopeProgress, valueProp = props.value, maxProp = props.max, _props_getValueLabel = props.getValueLabel, getValueLabel = _props_getValueLabel === void 0 ? defaultGetValueLabel : _props_getValueLabel, _props_size = props.size,
|
|
31947
|
+
var __scopeProgress = props.__scopeProgress, valueProp = props.value, maxProp = props.max, _props_getValueLabel = props.getValueLabel, getValueLabel = _props_getValueLabel === void 0 ? defaultGetValueLabel : _props_getValueLabel, _props_size = props.size, size4 = _props_size === void 0 ? "$true" : _props_size, progressProps = _object_without_properties5(props, [
|
|
31914
31948
|
"__scopeProgress",
|
|
31915
31949
|
"value",
|
|
31916
31950
|
"max",
|
|
@@ -31933,7 +31967,7 @@ var require_Progress_native = __commonJS({
|
|
|
31933
31967
|
"data-value": value ?? void 0,
|
|
31934
31968
|
"data-max": max2
|
|
31935
31969
|
}, progressProps.unstyled !== !0 && {
|
|
31936
|
-
size:
|
|
31970
|
+
size: size4
|
|
31937
31971
|
}, progressProps), {
|
|
31938
31972
|
onLayout: function(e) {
|
|
31939
31973
|
var _progressProps_onLayout;
|
|
@@ -32097,10 +32131,10 @@ var require_RadioGroup_native = __commonJS({
|
|
|
32097
32131
|
},
|
|
32098
32132
|
size: {
|
|
32099
32133
|
"...size": function(value, param) {
|
|
32100
|
-
var props = param.props, _props_scaleSize,
|
|
32134
|
+
var props = param.props, _props_scaleSize, size4 = 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));
|
|
32101
32135
|
return {
|
|
32102
|
-
width:
|
|
32103
|
-
height:
|
|
32136
|
+
width: size4,
|
|
32137
|
+
height: size4
|
|
32104
32138
|
};
|
|
32105
32139
|
}
|
|
32106
32140
|
}
|
|
@@ -33925,7 +33959,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
33925
33959
|
"index"
|
|
33926
33960
|
]), _useListItem = (0, import_list_item.useListItem)(_object_spread9({}, !props.unstyled && {
|
|
33927
33961
|
ellipse: !0
|
|
33928
|
-
}, restProps)), listItemProps = _useListItem.props, context = (0, import_context.useSelectItemParentContext)(ITEM_NAME, __scopeSelect), setSelectedIndex = context.setSelectedIndex, listRef = context.listRef, setOpen = context.setOpen, onChange = context.onChange, activeIndexSubscribe = context.activeIndexSubscribe, valueSubscribe = context.valueSubscribe, allowMouseUpRef = context.allowMouseUpRef, allowSelectRef = context.allowSelectRef, setValueAtIndex = context.setValueAtIndex, selectTimeoutRef = context.selectTimeoutRef, dataRef = context.dataRef, interactions = context.interactions, shouldRenderWebNative = context.shouldRenderWebNative,
|
|
33962
|
+
}, restProps)), listItemProps = _useListItem.props, context = (0, import_context.useSelectItemParentContext)(ITEM_NAME, __scopeSelect), setSelectedIndex = context.setSelectedIndex, listRef = context.listRef, setOpen = context.setOpen, onChange = context.onChange, activeIndexSubscribe = context.activeIndexSubscribe, valueSubscribe = context.valueSubscribe, allowMouseUpRef = context.allowMouseUpRef, allowSelectRef = context.allowSelectRef, setValueAtIndex = context.setValueAtIndex, selectTimeoutRef = context.selectTimeoutRef, dataRef = context.dataRef, interactions = context.interactions, shouldRenderWebNative = context.shouldRenderWebNative, size4 = context.size, onActiveChange = context.onActiveChange, initialValue = context.initialValue, _React_useState = _sliced_to_array(React2.useState(initialValue === value), 2), isSelected = _React_useState[0], setSelected = _React_useState[1];
|
|
33929
33963
|
React2.useEffect(function() {
|
|
33930
33964
|
return activeIndexSubscribe(function(i) {
|
|
33931
33965
|
var isActive = index === i;
|
|
@@ -34005,7 +34039,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
34005
34039
|
hoverTheme: !0,
|
|
34006
34040
|
focusTheme: !0,
|
|
34007
34041
|
cursor: "default",
|
|
34008
|
-
size:
|
|
34042
|
+
size: size4,
|
|
34009
34043
|
outlineOffset: -0.5,
|
|
34010
34044
|
focusVisibleStyle: {
|
|
34011
34045
|
outlineColor: "$outlineColor",
|
|
@@ -34787,10 +34821,10 @@ var require_Select_native = __commonJS({
|
|
|
34787
34821
|
}), SelectGroup = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
|
|
34788
34822
|
var __scopeSelect = props.__scopeSelect, groupProps = _object_without_properties5(props, [
|
|
34789
34823
|
"__scopeSelect"
|
|
34790
|
-
]), groupId = React2.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), _itemParentContext_size,
|
|
34824
|
+
]), groupId = React2.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), _itemParentContext_size, size4 = (_itemParentContext_size = itemParentContext.size) !== null && _itemParentContext_size !== void 0 ? _itemParentContext_size : "$true", nativeSelectRef = React2.useRef(null), content = function() {
|
|
34791
34825
|
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, {
|
|
34792
34826
|
asChild: !0,
|
|
34793
|
-
size:
|
|
34827
|
+
size: size4,
|
|
34794
34828
|
// @ts-expect-error until we support typing based on tag
|
|
34795
34829
|
value: context.value,
|
|
34796
34830
|
id: itemParentContext.id,
|
|
@@ -34799,7 +34833,7 @@ var require_Select_native = __commonJS({
|
|
|
34799
34833
|
onChange: function(event) {
|
|
34800
34834
|
itemParentContext.onChange(event.currentTarget.value);
|
|
34801
34835
|
},
|
|
34802
|
-
size:
|
|
34836
|
+
size: size4,
|
|
34803
34837
|
ref: nativeSelectRef,
|
|
34804
34838
|
style: {
|
|
34805
34839
|
color: "var(--color)",
|
|
@@ -35314,14 +35348,14 @@ var require_helpers_native2 = __commonJS({
|
|
|
35314
35348
|
return distances.indexOf(closestDistance);
|
|
35315
35349
|
}
|
|
35316
35350
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
35317
|
-
var quarterWidth = width / 4, halfPercent = 50,
|
|
35351
|
+
var quarterWidth = width / 4, halfPercent = 50, offset4 = linearScale([
|
|
35318
35352
|
0,
|
|
35319
35353
|
halfPercent
|
|
35320
35354
|
], [
|
|
35321
35355
|
0,
|
|
35322
35356
|
quarterWidth
|
|
35323
35357
|
]);
|
|
35324
|
-
return (quarterWidth -
|
|
35358
|
+
return (quarterWidth - offset4(left) * direction) * direction;
|
|
35325
35359
|
}
|
|
35326
35360
|
function getStepsBetweenValues(values) {
|
|
35327
35361
|
return values.slice(0, -1).map(function(value, index) {
|
|
@@ -35479,14 +35513,14 @@ var require_SliderImpl_native = __commonJS({
|
|
|
35479
35513
|
},
|
|
35480
35514
|
size: function(val, extras) {
|
|
35481
35515
|
if (val) {
|
|
35482
|
-
var orientation = extras.props.orientation,
|
|
35516
|
+
var orientation = extras.props.orientation, size5 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 6);
|
|
35483
35517
|
return orientation === "horizontal" ? {
|
|
35484
|
-
height:
|
|
35485
|
-
borderRadius:
|
|
35518
|
+
height: size5,
|
|
35519
|
+
borderRadius: size5,
|
|
35486
35520
|
justifyContent: "center"
|
|
35487
35521
|
} : {
|
|
35488
|
-
width:
|
|
35489
|
-
borderRadius:
|
|
35522
|
+
width: size5,
|
|
35523
|
+
borderRadius: size5,
|
|
35490
35524
|
alignItems: "center"
|
|
35491
35525
|
};
|
|
35492
35526
|
}
|
|
@@ -35975,14 +36009,14 @@ var require_Slider_native = __commonJS({
|
|
|
35975
36009
|
});
|
|
35976
36010
|
SliderTrackActive.displayName = RANGE_NAME;
|
|
35977
36011
|
var THUMB_NAME = "SliderThumb", getThumbSize = function(val) {
|
|
35978
|
-
var tokens = (0, import_core12.getTokens)(),
|
|
36012
|
+
var tokens = (0, import_core12.getTokens)(), size4 = typeof val == "number" ? val : (0, import_get_token2.getSize)(tokens.size[val], {
|
|
35979
36013
|
shift: -1
|
|
35980
36014
|
});
|
|
35981
36015
|
return {
|
|
35982
|
-
width:
|
|
35983
|
-
height:
|
|
35984
|
-
minWidth:
|
|
35985
|
-
minHeight:
|
|
36016
|
+
width: size4,
|
|
36017
|
+
height: size4,
|
|
36018
|
+
minWidth: size4,
|
|
36019
|
+
minHeight: size4
|
|
35986
36020
|
};
|
|
35987
36021
|
}, SliderThumbFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
35988
36022
|
name: "SliderThumb",
|
|
@@ -36013,7 +36047,7 @@ var require_Slider_native = __commonJS({
|
|
|
36013
36047
|
]), context = (0, import_constants22.useSliderContext)(THUMB_NAME, __scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(THUMB_NAME, __scopeSlider), _React_useState = _sliced_to_array(React2.useState(null), 2), thumb = _React_useState[0], setThumb = _React_useState[1], 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", _React_useState1 = _sliced_to_array(React2.useState(function() {
|
|
36014
36048
|
var estimatedSize = (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width);
|
|
36015
36049
|
return estimatedSize;
|
|
36016
|
-
}), 2),
|
|
36050
|
+
}), 2), size4 = _React_useState1[0], setSize = _React_useState1[1], thumbInBoundsOffset = size4 ? (0, import_helpers3.getThumbInBoundsOffset)(size4, percent, orientation.direction) : 0;
|
|
36017
36051
|
React2.useEffect(function() {
|
|
36018
36052
|
if (thumb) return context.thumbs.set(thumb, index), function() {
|
|
36019
36053
|
context.thumbs.delete(thumb);
|
|
@@ -36024,17 +36058,17 @@ var require_Slider_native = __commonJS({
|
|
|
36024
36058
|
index
|
|
36025
36059
|
]);
|
|
36026
36060
|
var positionalStyles = context.orientation === "horizontal" ? _object_spread9({
|
|
36027
|
-
x: thumbInBoundsOffset -
|
|
36028
|
-
y: -
|
|
36061
|
+
x: thumbInBoundsOffset - size4 / 2,
|
|
36062
|
+
y: -size4 / 2,
|
|
36029
36063
|
top: "50%"
|
|
36030
|
-
},
|
|
36064
|
+
}, size4 === 0 && {
|
|
36031
36065
|
top: "auto",
|
|
36032
36066
|
bottom: "auto"
|
|
36033
36067
|
}) : _object_spread9({
|
|
36034
|
-
x: -
|
|
36035
|
-
y:
|
|
36068
|
+
x: -size4 / 2,
|
|
36069
|
+
y: size4 / 2,
|
|
36036
36070
|
left: "50%"
|
|
36037
|
-
},
|
|
36071
|
+
}, size4 === 0 && {
|
|
36038
36072
|
left: "auto",
|
|
36039
36073
|
right: "auto"
|
|
36040
36074
|
}), _obj;
|
|
@@ -36638,10 +36672,10 @@ var require_Switch_native = __commonJS({
|
|
|
36638
36672
|
},
|
|
36639
36673
|
size: {
|
|
36640
36674
|
"...size": function(val) {
|
|
36641
|
-
var
|
|
36675
|
+
var size4 = getSwitchHeight(val);
|
|
36642
36676
|
return {
|
|
36643
|
-
height:
|
|
36644
|
-
width:
|
|
36677
|
+
height: size4,
|
|
36678
|
+
width: size4
|
|
36645
36679
|
};
|
|
36646
36680
|
}
|
|
36647
36681
|
}
|
|
@@ -36856,12 +36890,12 @@ var require_createSwitch_native = __commonJS({
|
|
|
36856
36890
|
"size",
|
|
36857
36891
|
"unstyled",
|
|
36858
36892
|
"nativeID"
|
|
36859
|
-
]), context = React2.useContext(SwitchContext), checked = context.checked, disabled = context.disabled, frameWidth = context.frameWidth, styledContext = import_StyledContext.SwitchStyledContext.useStyledContext(), unstyledContext = styledContext.unstyled, sizeContext = styledContext.size, _ref, unstyled = process.env.TAMAGUI_HEADLESS === "1" ? !0 : (_ref = unstyledProp ?? unstyledContext) !== null && _ref !== void 0 ? _ref : !1, _ref1,
|
|
36893
|
+
]), context = React2.useContext(SwitchContext), checked = context.checked, disabled = context.disabled, frameWidth = context.frameWidth, styledContext = import_StyledContext.SwitchStyledContext.useStyledContext(), unstyledContext = styledContext.unstyled, sizeContext = styledContext.size, _ref, unstyled = process.env.TAMAGUI_HEADLESS === "1" ? !0 : (_ref = unstyledProp ?? unstyledContext) !== null && _ref !== void 0 ? _ref : !1, _ref1, size4 = (_ref1 = sizeProp ?? sizeContext) !== null && _ref1 !== void 0 ? _ref1 : "$true", initialChecked = React2.useRef(checked).current, _React_useState = _sliced_to_array(React2.useState(0), 2), thumbWidth = _React_useState[0], setThumbWidth = _React_useState[1], distance = frameWidth - thumbWidth, x = initialChecked ? checked ? 0 : -distance : checked ? distance : 0;
|
|
36860
36894
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Thumb, _object_spread9(_object_spread_props8(_object_spread9({
|
|
36861
36895
|
ref: forwardedRef,
|
|
36862
36896
|
unstyled
|
|
36863
36897
|
}, unstyled === !1 && _object_spread9({
|
|
36864
|
-
size:
|
|
36898
|
+
size: size4
|
|
36865
36899
|
}, !disableActiveTheme && {
|
|
36866
36900
|
theme: checked ? "active" : null
|
|
36867
36901
|
})), {
|
|
@@ -37363,7 +37397,7 @@ var require_Tabs_native = __commonJS({
|
|
|
37363
37397
|
}), TABS_NAME = "Tabs", _createStyledContext = (0, import_web.createStyledContext)(), TabsProvider = _createStyledContext.Provider, useTabsContext = _createStyledContext.useStyledContext, TabsFrame = (0, import_web.styled)(import_stacks3.SizableStack, {
|
|
37364
37398
|
name: TABS_NAME
|
|
37365
37399
|
}), TabsComponent = TabsFrame.styleable(function(props, forwardedRef) {
|
|
37366
|
-
var __scopeTabs = props.__scopeTabs, valueProp = props.value, onValueChange = props.onValueChange, defaultValue = props.defaultValue, _props_orientation = props.orientation, orientation = _props_orientation === void 0 ? "horizontal" : _props_orientation, dir = props.dir, _props_activationMode = props.activationMode, activationMode = _props_activationMode === void 0 ? "automatic" : _props_activationMode, _props_size = props.size,
|
|
37400
|
+
var __scopeTabs = props.__scopeTabs, valueProp = props.value, onValueChange = props.onValueChange, defaultValue = props.defaultValue, _props_orientation = props.orientation, orientation = _props_orientation === void 0 ? "horizontal" : _props_orientation, dir = props.dir, _props_activationMode = props.activationMode, activationMode = _props_activationMode === void 0 ? "automatic" : _props_activationMode, _props_size = props.size, size4 = _props_size === void 0 ? "$true" : _props_size, tabsProps = _object_without_properties5(props, [
|
|
37367
37401
|
"__scopeTabs",
|
|
37368
37402
|
"value",
|
|
37369
37403
|
"onValueChange",
|
|
@@ -37393,7 +37427,7 @@ var require_Tabs_native = __commonJS({
|
|
|
37393
37427
|
orientation,
|
|
37394
37428
|
dir: direction,
|
|
37395
37429
|
activationMode,
|
|
37396
|
-
size:
|
|
37430
|
+
size: size4,
|
|
37397
37431
|
registerTrigger,
|
|
37398
37432
|
triggersCount,
|
|
37399
37433
|
unregisterTrigger,
|
|
@@ -38364,11 +38398,11 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
38364
38398
|
"disablePassStyles"
|
|
38365
38399
|
]), 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)({
|
|
38366
38400
|
disabled
|
|
38367
|
-
}), _props_size,
|
|
38401
|
+
}), _props_size, size4 = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : context.size, sizeProps = props.unstyled ? {} : {
|
|
38368
38402
|
width: void 0,
|
|
38369
38403
|
height: void 0,
|
|
38370
|
-
padding: (0, import_web.getVariableValue)(
|
|
38371
|
-
}, iconSize = (typeof
|
|
38404
|
+
padding: (0, import_web.getVariableValue)(size4) * 0.6
|
|
38405
|
+
}, iconSize = (typeof size4 == "number" ? size4 * 0.7 : (0, import_font_size.getFontSize)(size4)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
38372
38406
|
size: iconSize,
|
|
38373
38407
|
color: theme.color
|
|
38374
38408
|
}), childrens = import_react4.default.Children.toArray(props.children), children = childrens.map(function(child) {
|
|
@@ -38549,12 +38583,12 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
38549
38583
|
dir: direction
|
|
38550
38584
|
}, toggleGroupProps), adjustedSize = (0, import_web.getVariableValue)((0, import_get_token2.getSize)(sizeProp, {
|
|
38551
38585
|
shift: sizeAdjust
|
|
38552
|
-
})),
|
|
38586
|
+
})), size4 = Math.round(adjustedSize * 0.45);
|
|
38553
38587
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupContext, {
|
|
38554
38588
|
scope: __scopeToggleGroup,
|
|
38555
38589
|
rovingFocus,
|
|
38556
38590
|
disabled,
|
|
38557
|
-
size:
|
|
38591
|
+
size: size4,
|
|
38558
38592
|
children: rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
38559
38593
|
asChild: "except-style",
|
|
38560
38594
|
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
@@ -39558,7 +39592,7 @@ function _object_without_properties_loose4(source, excluded) {
|
|
|
39558
39592
|
return target;
|
|
39559
39593
|
}
|
|
39560
39594
|
var Spinner = import_stacks2.YStack.extractable((0, import_core8.themeable)(/* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
39561
|
-
var
|
|
39595
|
+
var size4 = props.size, colorProp = props.color, stackProps = _object_without_properties4(props, [
|
|
39562
39596
|
"size",
|
|
39563
39597
|
"color"
|
|
39564
39598
|
]), theme = (0, import_core8.useTheme)(), color = colorProp;
|
|
@@ -39566,7 +39600,7 @@ var Spinner = import_stacks2.YStack.extractable((0, import_core8.themeable)(/* @
|
|
|
39566
39600
|
ref
|
|
39567
39601
|
}, stackProps), {
|
|
39568
39602
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.ActivityIndicator, {
|
|
39569
|
-
size:
|
|
39603
|
+
size: size4,
|
|
39570
39604
|
color
|
|
39571
39605
|
})
|
|
39572
39606
|
}));
|