@tamagui/core 1.132.13 → 1.132.14
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 +178 -174
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +167 -162
- package/dist/test.native.js.map +2 -2
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -150,9 +150,9 @@ var require_clamp_native = __commonJS({
|
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
module2.exports = __toCommonJS2(clamp_exports);
|
|
153
|
-
function clamp(
|
|
153
|
+
function clamp(value2, param) {
|
|
154
154
|
var [min, max] = param;
|
|
155
|
-
return Math.min(max, Math.max(min,
|
|
155
|
+
return Math.min(max, Math.max(min, value2));
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
});
|
|
@@ -1283,22 +1283,22 @@ Haven't called createTamagui yet. ${import_constants2.MISSING_THEME_MESSAGE}
|
|
|
1283
1283
|
if (process.env.NODE_ENV === "development" && !conf) throw new Error(haventCalledErrorMessage);
|
|
1284
1284
|
var { tokens, tokensParsed } = conf;
|
|
1285
1285
|
return prefixed === !1 ? tokens : prefixed === !0 ? tokensParsed : tokensMerged;
|
|
1286
|
-
}, getTokenObject = function(
|
|
1286
|
+
}, getTokenObject = function(value2, group) {
|
|
1287
1287
|
var _tokensMerged_group, _tokensMerged_, _conf_specificTokens_value;
|
|
1288
|
-
return (_conf_specificTokens_value = conf.specificTokens[
|
|
1289
|
-
return tokensMerged[cat][
|
|
1290
|
-
}) || ""]) === null || _tokensMerged_ === void 0 ? void 0 : _tokensMerged_[
|
|
1291
|
-
}, getToken2 = function(
|
|
1292
|
-
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants.isWeb, token = getTokenObject(
|
|
1288
|
+
return (_conf_specificTokens_value = conf.specificTokens[value2]) !== null && _conf_specificTokens_value !== void 0 ? _conf_specificTokens_value : group ? (_tokensMerged_group = tokensMerged[group]) === null || _tokensMerged_group === void 0 ? void 0 : _tokensMerged_group[value2] : (_tokensMerged_ = tokensMerged[Object.keys(tokensMerged).find(function(cat) {
|
|
1289
|
+
return tokensMerged[cat][value2];
|
|
1290
|
+
}) || ""]) === null || _tokensMerged_ === void 0 ? void 0 : _tokensMerged_[value2];
|
|
1291
|
+
}, getToken2 = function(value2, group) {
|
|
1292
|
+
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants.isWeb, token = getTokenObject(value2, group);
|
|
1293
1293
|
return useVariable ? token == null ? void 0 : token.variable : token == null ? void 0 : token.val;
|
|
1294
|
-
}, getTokenValue2 = function(
|
|
1295
|
-
if (!(
|
|
1294
|
+
}, getTokenValue2 = function(value2, group) {
|
|
1295
|
+
if (!(value2 === "unset" || value2 === "auto")) return getToken2(value2, group, !1);
|
|
1296
1296
|
}, useTokens = getTokens2, getThemes2 = function() {
|
|
1297
1297
|
return conf.themes;
|
|
1298
1298
|
}, configListeners = /* @__PURE__ */ new Set(), onConfiguredOnce = function(cb) {
|
|
1299
1299
|
conf ? cb(conf) : configListeners.add(cb);
|
|
1300
|
-
}, updateConfig2 = function(key,
|
|
1301
|
-
Object.assign(conf[key],
|
|
1300
|
+
}, updateConfig2 = function(key, value2) {
|
|
1301
|
+
Object.assign(conf[key], value2);
|
|
1302
1302
|
}, getFont = function(name) {
|
|
1303
1303
|
var _Object_entries_find, conf2 = getConfig2(), _conf_fontsParsed_name;
|
|
1304
1304
|
return (_conf_fontsParsed_name = conf2.fontsParsed[name]) !== null && _conf_fontsParsed_name !== void 0 ? _conf_fontsParsed_name : (_Object_entries_find = Object.entries(conf2.fontsParsed).find(function(param) {
|
|
@@ -1440,9 +1440,9 @@ var require_createVariable_native = __commonJS({
|
|
|
1440
1440
|
var name = (0, import_helpers2.simpleHash)(nameProp, 60);
|
|
1441
1441
|
return includeVar ? constructCSSVariableName(name) : name;
|
|
1442
1442
|
};
|
|
1443
|
-
function px(
|
|
1443
|
+
function px(value2) {
|
|
1444
1444
|
return {
|
|
1445
|
-
val:
|
|
1445
|
+
val: value2,
|
|
1446
1446
|
needsPx: !0
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
@@ -1532,8 +1532,8 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1532
1532
|
process.env.NODE_ENV === "development" && console.error(`\u274C Invalid transform, likely used deg/% improperly ${identifier}`);
|
|
1533
1533
|
return;
|
|
1534
1534
|
}
|
|
1535
|
-
var startI = s + 10, endI = css.indexOf(";"),
|
|
1536
|
-
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] =
|
|
1535
|
+
var startI = s + 10, endI = css.indexOf(";"), value2 = css.slice(startI, endI);
|
|
1536
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value2, !0;
|
|
1537
1537
|
}
|
|
1538
1538
|
var lastScannedSheets = null;
|
|
1539
1539
|
function scanAllSheets() {
|
|
@@ -1648,15 +1648,15 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1648
1648
|
if (sepI !== -1) {
|
|
1649
1649
|
var varIndex = rule.indexOf("--"), key1 = rule.slice(varIndex === -1 ? 0 : varIndex + 2, sepI);
|
|
1650
1650
|
process.env.TAMAGUI_CSS_VARIABLE_PREFIX && (key1 = key1.replace(process.env.TAMAGUI_CSS_VARIABLE_PREFIX, ""));
|
|
1651
|
-
var val = rule.slice(sepI + 2),
|
|
1651
|
+
var val = rule.slice(sepI + 2), value2 = void 0;
|
|
1652
1652
|
if (val[0] === "v" && val.startsWith("var(")) {
|
|
1653
1653
|
var varName = val.slice(6, -1), tokenVal = colorVarToVal[varName];
|
|
1654
|
-
tokenVal ?
|
|
1655
|
-
} else
|
|
1654
|
+
tokenVal ? value2 = tokenVal : (rootComputedStyle || (rootComputedStyle = getComputedStyle(document.body)), value2 = rootComputedStyle.getPropertyValue("--" + varName));
|
|
1655
|
+
} else value2 = val;
|
|
1656
1656
|
values[key1] = (0, import_createVariable.createVariable)({
|
|
1657
1657
|
key: key1,
|
|
1658
1658
|
name: key1,
|
|
1659
|
-
val:
|
|
1659
|
+
val: value2
|
|
1660
1660
|
}, !0);
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
@@ -2190,8 +2190,8 @@ var require_useMedia_native = __commonJS({
|
|
|
2190
2190
|
if (typeof query == "string") return query;
|
|
2191
2191
|
if (cache.has(query)) return cache.get(query);
|
|
2192
2192
|
var res = Object.entries(query).map(function(param) {
|
|
2193
|
-
var [feature,
|
|
2194
|
-
return feature = camelToHyphen(feature), typeof
|
|
2193
|
+
var [feature, value2] = param;
|
|
2194
|
+
return feature = camelToHyphen(feature), typeof value2 == "string" ? `(${feature}: ${value2})` : (typeof value2 == "number" && /[height|width]$/.test(feature) && (value2 = `${value2}px`), `(${feature}: ${value2})`);
|
|
2195
2195
|
}).join(" and ");
|
|
2196
2196
|
return key && (cachedMediaKeyToQuery[key] = res), cache.set(query, res), res;
|
|
2197
2197
|
}
|
|
@@ -2282,13 +2282,13 @@ var require_Tamagui_native = __commonJS({
|
|
|
2282
2282
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
2283
2283
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
2284
2284
|
}
|
|
2285
|
-
function _define_property(obj, key,
|
|
2285
|
+
function _define_property(obj, key, value2) {
|
|
2286
2286
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
2287
|
-
value,
|
|
2287
|
+
value: value2,
|
|
2288
2288
|
enumerable: !0,
|
|
2289
2289
|
configurable: !0,
|
|
2290
2290
|
writable: !0
|
|
2291
|
-
}) : obj[key] =
|
|
2291
|
+
}) : obj[key] = value2, obj;
|
|
2292
2292
|
}
|
|
2293
2293
|
var Tamagui = function() {
|
|
2294
2294
|
if (process.env.NODE_ENV === "development") {
|
|
@@ -2342,8 +2342,8 @@ var require_Tamagui_native = __commonJS({
|
|
|
2342
2342
|
}
|
|
2343
2343
|
}(), identifierToValue = /* @__PURE__ */ new Map(), getValueFromIdentifier = function(identifier) {
|
|
2344
2344
|
return identifierToValue.get(identifier);
|
|
2345
|
-
}, setIdentifierValue = function(identifier,
|
|
2346
|
-
identifierToValue.set(identifier,
|
|
2345
|
+
}, setIdentifierValue = function(identifier, value2) {
|
|
2346
|
+
identifierToValue.set(identifier, value2);
|
|
2347
2347
|
};
|
|
2348
2348
|
}
|
|
2349
2349
|
});
|
|
@@ -2410,8 +2410,8 @@ var require_compose_refs_native = __commonJS({
|
|
|
2410
2410
|
});
|
|
2411
2411
|
module2.exports = __toCommonJS2(compose_refs_exports);
|
|
2412
2412
|
var React3 = __toESM2(require("react"));
|
|
2413
|
-
function setRef(ref,
|
|
2414
|
-
typeof ref == "function" ? ref(
|
|
2413
|
+
function setRef(ref, value2) {
|
|
2414
|
+
typeof ref == "function" ? ref(value2) : ref && (ref.current = value2);
|
|
2415
2415
|
}
|
|
2416
2416
|
function composeRefs() {
|
|
2417
2417
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
|
|
@@ -2738,8 +2738,8 @@ var require_createStyledContext_native = __commonJS({
|
|
|
2738
2738
|
})
|
|
2739
2739
|
});
|
|
2740
2740
|
}, useStyledContext = function() {
|
|
2741
|
-
var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", lastScopeInNamespace = (0, import_react3.useContext)(LastScopeInNamespace), scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn, context = scope ? getOrCreateScopedContext(scope) : OGContext,
|
|
2742
|
-
return
|
|
2741
|
+
var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", lastScopeInNamespace = (0, import_react3.useContext)(LastScopeInNamespace), scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn, context = scope ? getOrCreateScopedContext(scope) : OGContext, value2 = import_react3.default.useContext(context);
|
|
2742
|
+
return value2;
|
|
2743
2743
|
};
|
|
2744
2744
|
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
2745
2745
|
}
|
|
@@ -4283,11 +4283,11 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4283
4283
|
translateX: !0,
|
|
4284
4284
|
translateY: !0
|
|
4285
4285
|
};
|
|
4286
|
-
function normalizeValueWithProperty(
|
|
4286
|
+
function normalizeValueWithProperty(value2) {
|
|
4287
4287
|
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
4288
|
-
if (!import_constants.isWeb || import_helpers2.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof
|
|
4289
|
-
var res =
|
|
4290
|
-
return
|
|
4288
|
+
if (!import_constants.isWeb || import_helpers2.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value2 == "boolean") return value2;
|
|
4289
|
+
var res = value2;
|
|
4290
|
+
return value2 && typeof value2 == "object" ? value2 : (typeof value2 == "number" ? res = `${value2}px` : property && (res = `${res}`), res);
|
|
4291
4291
|
}
|
|
4292
4292
|
}
|
|
4293
4293
|
});
|
|
@@ -4551,26 +4551,26 @@ var require_expandStyle_native = __commonJS({
|
|
|
4551
4551
|
return `${prefix}${k}`;
|
|
4552
4552
|
});
|
|
4553
4553
|
};
|
|
4554
|
-
function expandStyle(key,
|
|
4554
|
+
function expandStyle(key, value2) {
|
|
4555
4555
|
if (import_constants.isAndroid && key === "elevationAndroid") return [
|
|
4556
4556
|
[
|
|
4557
4557
|
"elevation",
|
|
4558
|
-
|
|
4558
|
+
value2
|
|
4559
4559
|
]
|
|
4560
4560
|
];
|
|
4561
4561
|
if (key in EXPANSIONS) return EXPANSIONS[key].map(function(key2) {
|
|
4562
4562
|
return [
|
|
4563
4563
|
key2,
|
|
4564
|
-
|
|
4564
|
+
value2
|
|
4565
4565
|
];
|
|
4566
4566
|
});
|
|
4567
4567
|
if (key in import_webToNativeProps.webToNativeExpansion) return import_webToNativeProps.webToNativeExpansion[key].map(function(key2) {
|
|
4568
4568
|
return [
|
|
4569
4569
|
key2,
|
|
4570
|
-
|
|
4570
|
+
value2
|
|
4571
4571
|
];
|
|
4572
4572
|
});
|
|
4573
|
-
if (key in import_webToNativeProps.webToNativeDynamicExpansion) return import_webToNativeProps.webToNativeDynamicExpansion[key](
|
|
4573
|
+
if (key in import_webToNativeProps.webToNativeDynamicExpansion) return import_webToNativeProps.webToNativeDynamicExpansion[key](value2);
|
|
4574
4574
|
}
|
|
4575
4575
|
var all = [
|
|
4576
4576
|
"Top",
|
|
@@ -4815,8 +4815,8 @@ var require_normalizeStyle_native = __commonJS({
|
|
|
4815
4815
|
res[key] = normalizeStyle(prop, disableNormalize);
|
|
4816
4816
|
continue;
|
|
4817
4817
|
}
|
|
4818
|
-
var
|
|
4819
|
-
out ? Object.assign(res, Object.fromEntries(out)) : res[key] =
|
|
4818
|
+
var value2 = disableNormalize ? prop : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(prop, key), out = (0, import_expandStyle.expandStyle)(key, value2);
|
|
4819
|
+
out ? Object.assign(res, Object.fromEntries(out)) : res[key] = value2;
|
|
4820
4820
|
}
|
|
4821
4821
|
}
|
|
4822
4822
|
return (0, import_expandStyles.fixStyles)(res), res;
|
|
@@ -5035,18 +5035,18 @@ var require_propMapper_native = __commonJS({
|
|
|
5035
5035
|
}
|
|
5036
5036
|
});
|
|
5037
5037
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
5038
|
-
var import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_normalizeStyle = require_normalizeStyle_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), propMapper = function(key,
|
|
5039
|
-
if (disabled) return map(key,
|
|
5038
|
+
var import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_normalizeStyle = require_normalizeStyle_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), propMapper = function(key, value2, styleState, disabled, map) {
|
|
5039
|
+
if (disabled) return map(key, value2);
|
|
5040
5040
|
if (lastFontFamilyToken = null, !(!import_constants.isAndroid && key === "elevationAndroid")) {
|
|
5041
5041
|
var { conf, styleProps, staticConfig } = styleState;
|
|
5042
|
-
if (
|
|
5042
|
+
if (value2 === "unset") {
|
|
5043
5043
|
var _conf_unset, unsetVal = (_conf_unset = conf.unset) === null || _conf_unset === void 0 ? void 0 : _conf_unset[key];
|
|
5044
|
-
if (unsetVal != null)
|
|
5044
|
+
if (unsetVal != null) value2 = unsetVal;
|
|
5045
5045
|
else return;
|
|
5046
5046
|
}
|
|
5047
5047
|
var { variants } = staticConfig;
|
|
5048
5048
|
if (!styleProps.noExpand && variants && key in variants) {
|
|
5049
|
-
var variantValue = resolveVariants(key,
|
|
5049
|
+
var variantValue = resolveVariants(key, value2, styleProps, styleState, "");
|
|
5050
5050
|
if (variantValue) {
|
|
5051
5051
|
variantValue.forEach(function(param) {
|
|
5052
5052
|
var [_$key, _$value] = param;
|
|
@@ -5055,35 +5055,35 @@ var require_propMapper_native = __commonJS({
|
|
|
5055
5055
|
return;
|
|
5056
5056
|
}
|
|
5057
5057
|
}
|
|
5058
|
-
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]),
|
|
5058
|
+
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value2 != null && (value2[0] === "$" ? value2 = getTokenForKey(key, value2, styleProps, styleState) : (0, import_createVariable.isVariable)(value2) && (value2 = resolveVariableValue(key, value2, styleProps.resolveValues))), value2 != null) {
|
|
5059
5059
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
5060
|
-
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key,
|
|
5060
|
+
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value2);
|
|
5061
5061
|
if (expanded) for (var max = expanded.length, i = 0; i < max; i++) {
|
|
5062
5062
|
var [nkey, nvalue] = expanded[i];
|
|
5063
5063
|
map(nkey, nvalue);
|
|
5064
5064
|
}
|
|
5065
|
-
else map(key,
|
|
5065
|
+
else map(key, value2);
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
|
-
}, resolveVariants = function(key,
|
|
5068
|
+
}, resolveVariants = function(key, value2, styleProps, styleState, parentVariantKey) {
|
|
5069
5069
|
var { staticConfig, conf, debug } = styleState, { variants } = staticConfig;
|
|
5070
5070
|
if (variants) {
|
|
5071
|
-
var variantValue = getVariantDefinition(variants[key],
|
|
5071
|
+
var variantValue = getVariantDefinition(variants[key], value2, conf);
|
|
5072
5072
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(`\u2666\uFE0F\u2666\uFE0F\u2666\uFE0F resolve variant ${key}`), console.info({
|
|
5073
5073
|
key,
|
|
5074
|
-
value,
|
|
5074
|
+
value: value2,
|
|
5075
5075
|
variantValue,
|
|
5076
5076
|
variants
|
|
5077
5077
|
}), console.groupEnd()), !variantValue) {
|
|
5078
|
-
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof
|
|
5078
|
+
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof value2 != "boolean") {
|
|
5079
5079
|
var name = staticConfig.componentName || "[UnnamedComponent]";
|
|
5080
|
-
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${
|
|
5080
|
+
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value2}"`);
|
|
5081
5081
|
}
|
|
5082
5082
|
return;
|
|
5083
5083
|
}
|
|
5084
5084
|
if (typeof variantValue == "function") {
|
|
5085
5085
|
var fn = variantValue, extras = (0, import_getVariantExtras.getVariantExtras)(styleState);
|
|
5086
|
-
variantValue = fn(
|
|
5086
|
+
variantValue = fn(value2, extras), process.env.NODE_ENV;
|
|
5087
5087
|
}
|
|
5088
5088
|
var fontFamilyResult;
|
|
5089
5089
|
if ((0, import_isObj.isObj)(variantValue)) {
|
|
@@ -5108,11 +5108,11 @@ var require_propMapper_native = __commonJS({
|
|
|
5108
5108
|
}
|
|
5109
5109
|
} else if (typeof input == "string" && input[0] === "$") return input;
|
|
5110
5110
|
}
|
|
5111
|
-
var variableToFontNameCache = /* @__PURE__ */ new WeakMap(), resolveTokensAndVariants = function(key,
|
|
5111
|
+
var variableToFontNameCache = /* @__PURE__ */ new WeakMap(), resolveTokensAndVariants = function(key, value2, styleProps, styleState, parentVariantKey) {
|
|
5112
5112
|
var { conf, staticConfig, debug, theme } = styleState, { variants } = staticConfig, res = {};
|
|
5113
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" - resolveTokensAndVariants", key,
|
|
5114
|
-
for (var _key in
|
|
5115
|
-
var subKey = conf.shorthands[_key] || _key, val =
|
|
5113
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" - resolveTokensAndVariants", key, value2);
|
|
5114
|
+
for (var _key in value2) {
|
|
5115
|
+
var subKey = conf.shorthands[_key] || _key, val = value2[_key];
|
|
5116
5116
|
if (!(!styleProps.noSkip && subKey in import_skipProps.skipProps)) {
|
|
5117
5117
|
if (styleProps.noExpand) res[subKey] = val;
|
|
5118
5118
|
else if (variants && subKey in variants) {
|
|
@@ -5180,17 +5180,17 @@ var require_propMapper_native = __commonJS({
|
|
|
5180
5180
|
spreadName: `...${name}`
|
|
5181
5181
|
};
|
|
5182
5182
|
});
|
|
5183
|
-
function getVariantDefinition(variant,
|
|
5183
|
+
function getVariantDefinition(variant, value2, conf) {
|
|
5184
5184
|
if (variant) {
|
|
5185
5185
|
if (typeof variant == "function") return variant;
|
|
5186
|
-
var exact = variant[
|
|
5186
|
+
var exact = variant[value2];
|
|
5187
5187
|
if (exact) return exact;
|
|
5188
|
-
if (
|
|
5188
|
+
if (value2 != null) {
|
|
5189
5189
|
var { tokensParsed } = conf, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5190
5190
|
try {
|
|
5191
5191
|
for (var _iterator = tokenCats[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
5192
5192
|
var { name, spreadName } = _step.value;
|
|
5193
|
-
if (spreadName in variant && name in tokensParsed &&
|
|
5193
|
+
if (spreadName in variant && name in tokensParsed && value2 in tokensParsed[name]) return variant[spreadName];
|
|
5194
5194
|
}
|
|
5195
5195
|
} catch (err) {
|
|
5196
5196
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -5202,32 +5202,32 @@ var require_propMapper_native = __commonJS({
|
|
|
5202
5202
|
}
|
|
5203
5203
|
}
|
|
5204
5204
|
var fontSizeVariant = variant["...fontSize"];
|
|
5205
|
-
if (fontSizeVariant && conf.fontSizeTokens.has(
|
|
5205
|
+
if (fontSizeVariant && conf.fontSizeTokens.has(value2)) return fontSizeVariant;
|
|
5206
5206
|
}
|
|
5207
|
-
return variant[`:${typeof
|
|
5207
|
+
return variant[`:${typeof value2}`] || variant["..."];
|
|
5208
5208
|
}
|
|
5209
5209
|
}
|
|
5210
5210
|
var fontShorthand = {
|
|
5211
5211
|
fontSize: "size",
|
|
5212
5212
|
fontWeight: "weight"
|
|
5213
|
-
}, lastFontFamilyToken = null, getTokenForKey = function(key,
|
|
5213
|
+
}, lastFontFamilyToken = null, getTokenForKey = function(key, value2, styleProps, styleState) {
|
|
5214
5214
|
var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
|
|
5215
|
-
if (resolveAs === "none") return
|
|
5216
|
-
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[
|
|
5215
|
+
if (resolveAs === "none") return value2;
|
|
5216
|
+
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[value2] || theme[value2.slice(1)] : void 0, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
|
|
5217
5217
|
if (customTokenAccept) {
|
|
5218
|
-
var val = themeValue ?? tokensParsed[customTokenAccept][
|
|
5218
|
+
var val = themeValue ?? tokensParsed[customTokenAccept][value2];
|
|
5219
5219
|
val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
|
|
5220
5220
|
}
|
|
5221
5221
|
if (themeValue) {
|
|
5222
|
-
if (resolveAs === "except-theme") return
|
|
5223
|
-
valOrVar = themeValue, process.env.NODE_ENV === "development" && styleState.debug === "verbose" && (globalThis.tamaguiAvoidTracking = !0, console.info(` - resolving ${key} to theme value ${
|
|
5222
|
+
if (resolveAs === "except-theme") return value2;
|
|
5223
|
+
valOrVar = themeValue, process.env.NODE_ENV === "development" && styleState.debug === "verbose" && (globalThis.tamaguiAvoidTracking = !0, console.info(` - resolving ${key} to theme value ${value2} resolveAs ${resolveAs}`, valOrVar), globalThis.tamaguiAvoidTracking = !1), hasSet = !0;
|
|
5224
5224
|
} else {
|
|
5225
|
-
if (
|
|
5225
|
+
if (value2 in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value2];
|
|
5226
5226
|
else {
|
|
5227
5227
|
switch (key) {
|
|
5228
5228
|
case "fontFamily": {
|
|
5229
5229
|
var _fontsParsed_value, fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed;
|
|
5230
|
-
valOrVar = ((_fontsParsed_value = fontsParsed[
|
|
5230
|
+
valOrVar = ((_fontsParsed_value = fontsParsed[value2]) === null || _fontsParsed_value === void 0 ? void 0 : _fontsParsed_value.family) || value2, lastFontFamilyToken = value2, hasSet = !0;
|
|
5231
5231
|
break;
|
|
5232
5232
|
}
|
|
5233
5233
|
case "fontSize":
|
|
@@ -5237,18 +5237,18 @@ var require_propMapper_native = __commonJS({
|
|
|
5237
5237
|
var fam = fontFamily || conf.defaultFontToken;
|
|
5238
5238
|
if (fam) {
|
|
5239
5239
|
var _font_, fontsParsed1 = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed1[fam] || fontsParsed1[conf.defaultFontToken];
|
|
5240
|
-
valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[
|
|
5240
|
+
valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[value2]) || value2, hasSet = !0;
|
|
5241
5241
|
}
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
}
|
|
5245
5245
|
for (var cat in import_helpers2.tokenCategories) if (key in import_helpers2.tokenCategories[cat]) {
|
|
5246
|
-
var res = tokensParsed[cat][
|
|
5246
|
+
var res = tokensParsed[cat][value2];
|
|
5247
5247
|
res != null && (valOrVar = res, hasSet = !0);
|
|
5248
5248
|
}
|
|
5249
5249
|
}
|
|
5250
5250
|
if (!hasSet) {
|
|
5251
|
-
var spaceVar = tokensParsed.space[
|
|
5251
|
+
var spaceVar = tokensParsed.space[value2];
|
|
5252
5252
|
spaceVar != null && (valOrVar = spaceVar, hasSet = !0);
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
@@ -5374,8 +5374,8 @@ var require_transformsToString_native = __commonJS({
|
|
|
5374
5374
|
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
5375
5375
|
// { perspective: 1000 } => perspective(1000px)
|
|
5376
5376
|
function(transform) {
|
|
5377
|
-
var type = Object.keys(transform)[0],
|
|
5378
|
-
return type === "matrix" || type === "matrix3d" ? `${type}(${
|
|
5377
|
+
var type = Object.keys(transform)[0], value2 = transform[type];
|
|
5378
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value2.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value2, type)})`;
|
|
5379
5379
|
}
|
|
5380
5380
|
).join(" ");
|
|
5381
5381
|
}
|
|
@@ -5676,12 +5676,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5676
5676
|
}
|
|
5677
5677
|
} else if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
|
|
5678
5678
|
} else if (isGroupMedia) {
|
|
5679
|
-
var _groupContext_groupName, _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupState = groupContext == null || (_groupContext_groupName = groupContext[groupName]) === null || _groupContext_groupName === void 0 ? void 0 : _groupContext_groupName.state;
|
|
5679
|
+
var _groupContext_groupName, _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupState = groupContext == null || (_groupContext_groupName = groupContext[groupName]) === null || _groupContext_groupName === void 0 ? void 0 : _groupContext_groupName.state, groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media;
|
|
5680
5680
|
if (!groupState) {
|
|
5681
|
-
process.env.NODE_ENV === "development" && debug && (0, import_log.log)(`No parent with group prop, skipping styles: ${groupName}`);
|
|
5681
|
+
process.env.NODE_ENV === "development" && debug && (0, import_log.log)(`No parent with group prop, skipping styles: ${groupName}`), pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());
|
|
5682
5682
|
return;
|
|
5683
5683
|
}
|
|
5684
|
-
var
|
|
5684
|
+
var componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
|
|
5685
5685
|
if (groupMediaKey) {
|
|
5686
5686
|
mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
|
|
5687
5687
|
var mediaState1 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState1 == null ? void 0 : mediaState1[groupMediaKey];
|
|
@@ -5811,7 +5811,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5811
5811
|
if (!styleState.style.$$css) {
|
|
5812
5812
|
var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
|
|
5813
5813
|
try {
|
|
5814
|
-
for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _props_animateOnly1, key2,
|
|
5814
|
+
for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _props_animateOnly1, key2, value2, identifier, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
5815
5815
|
} catch (err) {
|
|
5816
5816
|
} finally {
|
|
5817
5817
|
}
|
|
@@ -5985,14 +5985,14 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5985
5985
|
delete viewProps[key], viewProps[key] = next;
|
|
5986
5986
|
} else viewProps[key] = val;
|
|
5987
5987
|
}
|
|
5988
|
-
function mergeMediaByImportance(styleState, mediaKey, key,
|
|
5988
|
+
function mergeMediaByImportance(styleState, mediaKey, key, value2, isSizeMedia, importanceBump, debugProp) {
|
|
5989
5989
|
var usedKeys = styleState.usedKeys, importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, styleState, isSizeMedia);
|
|
5990
5990
|
if (importanceBump && (importance = (importance || 0) + importanceBump), process.env.NODE_ENV === "development" && debugProp === "verbose" && (0, import_log.log)(`mergeMediaByImportance ${key} importance usedKey ${usedKeys[key]} next ${importance}`), importance === null) return !1;
|
|
5991
5991
|
if (key in import_pseudoDescriptors.pseudoDescriptors) {
|
|
5992
5992
|
var descriptor = import_pseudoDescriptors.pseudoDescriptors[key], descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = styleState.componentState[descriptorKey] === !1;
|
|
5993
5993
|
if (isDisabled) return !1;
|
|
5994
|
-
for (var subKey in
|
|
5995
|
-
} else mergeStyle(styleState, key,
|
|
5994
|
+
for (var subKey in value2) mergeStyle(styleState, subKey, value2[subKey], importance);
|
|
5995
|
+
} else mergeStyle(styleState, key, value2, importance);
|
|
5996
5996
|
return !0;
|
|
5997
5997
|
}
|
|
5998
5998
|
function normalizeStyle(style) {
|
|
@@ -6203,7 +6203,9 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6203
6203
|
}
|
|
6204
6204
|
}, createGroupListener = function(name, param) {
|
|
6205
6205
|
var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param, parent = groupContext == null ? void 0 : groupContext[name];
|
|
6206
|
-
|
|
6206
|
+
if (!parent) return function() {
|
|
6207
|
+
};
|
|
6208
|
+
var dispose = parent.subscribe(function(param2) {
|
|
6207
6209
|
var { layout, pseudo } = param2;
|
|
6208
6210
|
setStateShallow(function(prev) {
|
|
6209
6211
|
var _prev_group, didChange = !1, group = ((_prev_group = prev.group) === null || _prev_group === void 0 ? void 0 : _prev_group[name]) || {
|
|
@@ -6228,7 +6230,11 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6228
6230
|
}
|
|
6229
6231
|
} : prev;
|
|
6230
6232
|
});
|
|
6231
|
-
})
|
|
6233
|
+
});
|
|
6234
|
+
return function() {
|
|
6235
|
+
dispose(), setStateShallow({
|
|
6236
|
+
group: {}
|
|
6237
|
+
});
|
|
6232
6238
|
};
|
|
6233
6239
|
};
|
|
6234
6240
|
}
|
|
@@ -6616,14 +6622,14 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
6616
6622
|
curKeys && (curKeys.current || (curKeys.current = /* @__PURE__ */ new Set()), curKeys.current.add(key), process.env.NODE_ENV === "development" && curProps.debug && console.info(` \u{1F3A8} useTheme() tracking new key: ${key}`, curKeys));
|
|
6617
6623
|
}
|
|
6618
6624
|
var proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {
|
|
6619
|
-
var [key,
|
|
6620
|
-
...
|
|
6625
|
+
var [key, value2] = param, proxied2 = {
|
|
6626
|
+
...value2,
|
|
6621
6627
|
get val() {
|
|
6622
|
-
return globalThis.tamaguiAvoidTracking || track(key),
|
|
6628
|
+
return globalThis.tamaguiAvoidTracking || track(key), value2.val;
|
|
6623
6629
|
},
|
|
6624
6630
|
get(platform) {
|
|
6625
6631
|
if (curState) {
|
|
6626
|
-
var outVal = (0, import_createVariable.getVariable)(
|
|
6632
|
+
var outVal = (0, import_createVariable.getVariable)(value2), { name, scheme, inverses } = curState, shouldOptimize = scheme && platform !== "web" && import_constants.isIos && !curProps.deopt && (0, import_config.getSetting)("fastSchemeChange") && inverses === 0 && (0, import_doesRootSchemeMatchSystem.doesRootSchemeMatchSystem)();
|
|
6627
6633
|
if (shouldOptimize) {
|
|
6628
6634
|
var _config_themes_name, _config_themes_oppositeName, oppositeScheme = scheme === "dark" ? "light" : "dark", oppositeName = name.replace(scheme, oppositeScheme), color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]), oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]), dynamicVal = (0, import_getDynamicVal.getDynamicVal)({
|
|
6629
6635
|
scheme,
|
|
@@ -7111,9 +7117,9 @@ var require_ClientOnly_native = __commonJS({
|
|
|
7111
7117
|
});
|
|
7112
7118
|
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
7113
7119
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
7114
|
-
var { children,
|
|
7120
|
+
var { children, enabled } = param, existingValue = (0, import_react3.useContext)(ClientOnlyContext2);
|
|
7115
7121
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ClientOnlyContext2.Provider, {
|
|
7116
|
-
value,
|
|
7122
|
+
value: enabled ?? existingValue,
|
|
7117
7123
|
children
|
|
7118
7124
|
});
|
|
7119
7125
|
};
|
|
@@ -7190,13 +7196,13 @@ var require_index_native7 = __commonJS({
|
|
|
7190
7196
|
var React3 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native(), useIsClientOnly = function() {
|
|
7191
7197
|
return React3.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7192
7198
|
};
|
|
7193
|
-
function useDidFinishSSR(
|
|
7199
|
+
function useDidFinishSSR() {
|
|
7194
7200
|
var clientOnly = React3.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7195
|
-
return value
|
|
7201
|
+
return value != null ? value : !0;
|
|
7196
7202
|
}
|
|
7197
|
-
function useClientValue(
|
|
7203
|
+
function useClientValue(value1) {
|
|
7198
7204
|
var done = useDidFinishSSR();
|
|
7199
|
-
return done ? typeof
|
|
7205
|
+
return done ? typeof value1 == "function" ? value1() : value1 : void 0;
|
|
7200
7206
|
}
|
|
7201
7207
|
}
|
|
7202
7208
|
});
|
|
@@ -7245,24 +7251,22 @@ var require_useComponentState_native = __commonJS({
|
|
|
7245
7251
|
});
|
|
7246
7252
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
7247
7253
|
var import_constants = require_index_native2(), import_is_equal_shallow = require_index_native5(), import_use_did_finish_ssr = require_index_native7(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
7248
|
-
var _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0
|
|
7249
|
-
stateRef.current || (stateRef.current = {});
|
|
7250
|
-
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
7254
|
+
var _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, { isHOC } = staticConfig, stateRef = (0, import_react3.useRef)({}), hasAnimationProp = !!(!isHOC && "animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
7251
7255
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
|
|
7252
7256
|
var willBeAnimatedClient = function() {
|
|
7253
|
-
var next = !!(hasAnimationProp && !
|
|
7257
|
+
var next = !!(hasAnimationProp && !isHOC && useAnimations);
|
|
7254
7258
|
return !!(next || curStateRef.hasAnimated);
|
|
7255
7259
|
}(), willBeAnimated = !import_constants.isServer && willBeAnimatedClient;
|
|
7256
7260
|
willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
|
|
7257
|
-
var { disableClassName } = props, presence = willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSS),
|
|
7261
|
+
var { disableClassName } = props, presence = !isHOC && willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSS), canImmediatelyEnter = hasEnterStyle || isEntering, shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate
|
|
7258
7262
|
// this is just for a better ux, supports css variables for light/dark, media queries, etc
|
|
7259
|
-
disableClassName, initialState = shouldEnter ? (
|
|
7263
|
+
disableClassName), initialState = shouldEnter ? (
|
|
7260
7264
|
// on the very first render we switch all spring animation drivers to css rendering
|
|
7261
7265
|
// this is because we need to use css variables, which they don't support to do proper SSR
|
|
7262
7266
|
// without flickers of the wrong colors.
|
|
7263
7267
|
// but once we do that initial hydration and we are in client side rendering mode,
|
|
7264
7268
|
// we can avoid the extra re-render on mount
|
|
7265
|
-
|
|
7269
|
+
canImmediatelyEnter ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState
|
|
7266
7270
|
) : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
|
|
7267
7271
|
disabled != null && (initialState.disabled = disabled);
|
|
7268
7272
|
var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? {
|
|
@@ -7541,7 +7545,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7541
7545
|
}
|
|
7542
7546
|
});
|
|
7543
7547
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7544
|
-
var import_jsx_runtime2 = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_is_equal_shallow = require_index_native5(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), time2,
|
|
7548
|
+
var import_jsx_runtime2 = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_is_equal_shallow = require_index_native5(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_objectIdentityKey = require_objectIdentityKey_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
7545
7549
|
"hover",
|
|
7546
7550
|
"press",
|
|
7547
7551
|
"pressIn",
|
|
@@ -7636,16 +7640,15 @@ var require_createComponent_native = __commonJS({
|
|
|
7636
7640
|
componentName2
|
|
7637
7641
|
]);
|
|
7638
7642
|
var componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), groupContextParent = import_react3.default.useContext(import_GroupContext.GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = (0, import_useComponentState.useComponentState)(props, animationDriver, staticConfig, config), { disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, supportsCSS, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState;
|
|
7639
|
-
|
|
7640
|
-
var pendingState =
|
|
7641
|
-
pendingState && (
|
|
7642
|
-
}
|
|
7643
|
+
hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
7644
|
+
var pendingState = stateRef.current.nextState;
|
|
7645
|
+
pendingState && (stateRef.current.nextState = void 0, componentState.setStateShallow(pendingState));
|
|
7646
|
+
});
|
|
7643
7647
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
7644
|
-
var _stateRef_current_group;
|
|
7648
|
+
var _stateRef_current_group_listeners, _stateRef_current_group;
|
|
7645
7649
|
if (!groupName || props.passThrough) return groupContextParent;
|
|
7646
|
-
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
7647
7650
|
var listeners = /* @__PURE__ */ new Set();
|
|
7648
|
-
return stateRef.current.group = {
|
|
7651
|
+
return (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || (_stateRef_current_group_listeners = _stateRef_current_group.listeners) === null || _stateRef_current_group_listeners === void 0 || _stateRef_current_group_listeners.clear(), stateRef.current.group = {
|
|
7649
7652
|
listeners,
|
|
7650
7653
|
emit(state2) {
|
|
7651
7654
|
listeners.forEach(function(l) {
|
|
@@ -7744,8 +7747,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7744
7747
|
styledContextProps
|
|
7745
7748
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7746
7749
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7747
|
-
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
7748
|
-
if (
|
|
7750
|
+
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), isPassthrough = !splitStyles, groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
7751
|
+
if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
|
|
7749
7752
|
props.containerType !== "normal") {
|
|
7750
7753
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
7751
7754
|
if (groupState && groupState.layout === void 0) {
|
|
@@ -7756,34 +7759,38 @@ var require_createComponent_native = __commonJS({
|
|
|
7756
7759
|
});
|
|
7757
7760
|
}
|
|
7758
7761
|
}
|
|
7759
|
-
if (
|
|
7760
|
-
var
|
|
7762
|
+
if (!isPassthrough && (hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
|
|
7763
|
+
var updateGroupListeners2 = function() {
|
|
7764
|
+
var updatedState = stateRef.current.nextState;
|
|
7765
|
+
if (groupContext) {
|
|
7766
|
+
var { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
|
|
7767
|
+
notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
|
|
7768
|
+
}
|
|
7769
|
+
}, updateGroupListeners = updateGroupListeners2, _componentContext, ogSetStateShallow = setStateShallow;
|
|
7761
7770
|
stateRef.current.updateStyleListener = function() {
|
|
7762
|
-
var updatedState =
|
|
7763
|
-
groupContext && notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
|
|
7764
|
-
var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
|
|
7771
|
+
var updatedState = stateRef.current.nextState || state, mediaState22 = stateRef.current.nextMedia, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
|
|
7765
7772
|
...styleProps,
|
|
7766
7773
|
mediaState: mediaState22
|
|
7767
7774
|
} : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), useStyleListener = stateRef.current.useStyleListener;
|
|
7768
7775
|
useStyleListener == null || useStyleListener((nextStyles == null ? void 0 : nextStyles.style) || {});
|
|
7769
7776
|
}, (_componentContext = componentContext).mediaEmit || (_componentContext.mediaEmit = function(next) {
|
|
7770
7777
|
var _stateRef_current_updateStyleListener, _stateRef_current;
|
|
7771
|
-
|
|
7778
|
+
stateRef.current.nextMedia = next, (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
|
|
7772
7779
|
}), stateRef.current.setStateShallow = function(nextOrGetNext) {
|
|
7773
|
-
var prev =
|
|
7780
|
+
var prev = stateRef.current.nextState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
|
|
7774
7781
|
if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
|
|
7775
7782
|
var canAvoidReRender = Object.keys(next).every(function(key3) {
|
|
7776
7783
|
return avoidReRenderKeys.has(key3);
|
|
7777
|
-
})
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
+
}), updatedState = {
|
|
7785
|
+
...prev,
|
|
7786
|
+
...next
|
|
7787
|
+
};
|
|
7788
|
+
if (stateRef.current.nextState = updatedState, canAvoidReRender) {
|
|
7789
|
+
var _stateRef_current_updateStyleListener, _stateRef_current;
|
|
7790
|
+
process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed("[\u26A1\uFE0F] avoid setState", componentName2, next, {
|
|
7784
7791
|
updatedState,
|
|
7785
7792
|
props
|
|
7786
|
-
}), console.info(stateRef.current.host), console.groupEnd()), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
|
|
7793
|
+
}), console.info(stateRef.current.host), console.groupEnd()), updateGroupListeners2(), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
|
|
7787
7794
|
} else process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && console.info("[\u{1F40C}] re-render", {
|
|
7788
7795
|
canAvoidReRender,
|
|
7789
7796
|
next
|
|
@@ -7856,7 +7863,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7856
7863
|
}
|
|
7857
7864
|
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.
|
|
7858
7865
|
|
|
7859
|
-
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`,
|
|
7866
|
+
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, !isPassthrough && groupContext && // avoids onLayout if we don't need it
|
|
7860
7867
|
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7861
7868
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
7862
7869
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
@@ -7926,12 +7933,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7926
7933
|
}, [
|
|
7927
7934
|
allGroupContexts,
|
|
7928
7935
|
disabled,
|
|
7929
|
-
pseudoGroups ?
|
|
7930
|
-
|
|
7931
|
-
]).join("") : 0,
|
|
7932
|
-
mediaGroups ? Object.keys([
|
|
7933
|
-
...mediaGroups
|
|
7934
|
-
]).join("") : 0
|
|
7936
|
+
pseudoGroups ? (0, import_objectIdentityKey.objectIdentityKey)(pseudoGroups) : 0,
|
|
7937
|
+
mediaGroups ? (0, import_objectIdentityKey.objectIdentityKey)(mediaGroups) : 0
|
|
7935
7938
|
]);
|
|
7936
7939
|
var groupEmitter = stateRef.current.group;
|
|
7937
7940
|
(0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
@@ -8031,7 +8034,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8031
8034
|
onPress,
|
|
8032
8035
|
onLongPress
|
|
8033
8036
|
});
|
|
8034
|
-
process.env.NODE_ENV === "development" && time2 && time2`spaced-as-child`,
|
|
8037
|
+
process.env.NODE_ENV === "development" && time2 && time2`spaced-as-child`, isPassthrough && (content = propsIn.children, elementType = BaseViewComponent, viewProps = {
|
|
8035
8038
|
style: {
|
|
8036
8039
|
display: "contents"
|
|
8037
8040
|
}
|
|
@@ -8103,7 +8106,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8103
8106
|
styleProps,
|
|
8104
8107
|
themeState,
|
|
8105
8108
|
viewProps,
|
|
8106
|
-
willBeAnimated
|
|
8109
|
+
willBeAnimated,
|
|
8110
|
+
startedUnhydrated
|
|
8107
8111
|
});
|
|
8108
8112
|
} catch {
|
|
8109
8113
|
} finally {
|
|
@@ -8815,10 +8819,10 @@ var require_createFont_native = __commonJS({
|
|
|
8815
8819
|
...sectionKeys
|
|
8816
8820
|
])
|
|
8817
8821
|
].map(function(key) {
|
|
8818
|
-
var _section_key, _ref,
|
|
8819
|
-
return fillValue =
|
|
8822
|
+
var _section_key, _ref, value2 = (_ref = (_section_key = section[key]) !== null && _section_key !== void 0 ? _section_key : defaultValue) !== null && _ref !== void 0 ? _ref : fillValue;
|
|
8823
|
+
return fillValue = value2, defaultValue = value2, [
|
|
8820
8824
|
key,
|
|
8821
|
-
|
|
8825
|
+
value2
|
|
8822
8826
|
];
|
|
8823
8827
|
}));
|
|
8824
8828
|
}, createFont = function(font) {
|
|
@@ -10489,6 +10493,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10489
10493
|
})
|
|
10490
10494
|
});
|
|
10491
10495
|
return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10496
|
+
enabled: !0,
|
|
10492
10497
|
children: contents
|
|
10493
10498
|
})), /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, {
|
|
10494
10499
|
children: [
|
|
@@ -10569,16 +10574,15 @@ var require_Configuration_native = __commonJS({
|
|
|
10569
10574
|
});
|
|
10570
10575
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
10571
10576
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native7(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration = function(props) {
|
|
10572
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
|
|
10577
|
+
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), _props_disableSSR;
|
|
10573
10578
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10574
|
-
|
|
10579
|
+
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
10575
10580
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10576
10581
|
...current,
|
|
10577
10582
|
...props
|
|
10578
10583
|
})
|
|
10579
10584
|
});
|
|
10580
10585
|
};
|
|
10581
|
-
Configuration.displayName = "Configuration";
|
|
10582
10586
|
}
|
|
10583
10587
|
});
|
|
10584
10588
|
|
|
@@ -10972,41 +10976,41 @@ var require_matchQuery_native = __commonJS({
|
|
|
10972
10976
|
var inverse = query.inverse, typeMatch = query.type === "all" || values.type === query.type;
|
|
10973
10977
|
if (typeMatch && inverse || !(typeMatch || inverse)) return !1;
|
|
10974
10978
|
var expressionsMatch = query.expressions.every(function(expression) {
|
|
10975
|
-
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value,
|
|
10976
|
-
if (!
|
|
10979
|
+
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value, value2 = values[feature];
|
|
10980
|
+
if (!value2) return !1;
|
|
10977
10981
|
switch (feature) {
|
|
10978
10982
|
case "orientation":
|
|
10979
10983
|
case "scan":
|
|
10980
|
-
return
|
|
10984
|
+
return value2.toLowerCase() === expValue.toLowerCase();
|
|
10981
10985
|
case "width":
|
|
10982
10986
|
case "height":
|
|
10983
10987
|
case "device-width":
|
|
10984
10988
|
case "device-height":
|
|
10985
|
-
expValue = toPx(expValue),
|
|
10989
|
+
expValue = toPx(expValue), value2 = toPx(value2);
|
|
10986
10990
|
break;
|
|
10987
10991
|
case "resolution":
|
|
10988
|
-
expValue = toDpi(expValue),
|
|
10992
|
+
expValue = toDpi(expValue), value2 = toDpi(value2);
|
|
10989
10993
|
break;
|
|
10990
10994
|
case "aspect-ratio":
|
|
10991
10995
|
case "device-aspect-ratio":
|
|
10992
10996
|
case /* Deprecated */
|
|
10993
10997
|
"device-pixel-ratio":
|
|
10994
|
-
expValue = toDecimal(expValue),
|
|
10998
|
+
expValue = toDecimal(expValue), value2 = toDecimal(value2);
|
|
10995
10999
|
break;
|
|
10996
11000
|
case "grid":
|
|
10997
11001
|
case "color":
|
|
10998
11002
|
case "color-index":
|
|
10999
11003
|
case "monochrome":
|
|
11000
|
-
expValue = Number.parseInt(expValue, 10) || 1,
|
|
11004
|
+
expValue = Number.parseInt(expValue, 10) || 1, value2 = Number.parseInt(value2, 10) || 0;
|
|
11001
11005
|
break;
|
|
11002
11006
|
}
|
|
11003
11007
|
switch (modifier) {
|
|
11004
11008
|
case "min":
|
|
11005
|
-
return
|
|
11009
|
+
return value2 >= expValue;
|
|
11006
11010
|
case "max":
|
|
11007
|
-
return
|
|
11011
|
+
return value2 <= expValue;
|
|
11008
11012
|
default:
|
|
11009
|
-
return
|
|
11013
|
+
return value2 === expValue;
|
|
11010
11014
|
}
|
|
11011
11015
|
});
|
|
11012
11016
|
return expressionsMatch && !inverse || !expressionsMatch && inverse;
|
|
@@ -11038,35 +11042,35 @@ var require_matchQuery_native = __commonJS({
|
|
|
11038
11042
|
return decimal || (numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/), decimal = numbers[1] / numbers[2]), decimal;
|
|
11039
11043
|
}
|
|
11040
11044
|
function toDpi(resolution) {
|
|
11041
|
-
var _String_match,
|
|
11045
|
+
var _String_match, value2 = Number.parseFloat(resolution), units = (_String_match = String(resolution).match(RE_RESOLUTION_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11042
11046
|
switch (units) {
|
|
11043
11047
|
case "dpcm":
|
|
11044
|
-
return
|
|
11048
|
+
return value2 / 2.54;
|
|
11045
11049
|
case "dppx":
|
|
11046
|
-
return
|
|
11050
|
+
return value2 * 96;
|
|
11047
11051
|
default:
|
|
11048
|
-
return
|
|
11052
|
+
return value2;
|
|
11049
11053
|
}
|
|
11050
11054
|
}
|
|
11051
11055
|
function toPx(length) {
|
|
11052
|
-
var _String_match,
|
|
11056
|
+
var _String_match, value2 = Number.parseFloat(length), units = (_String_match = String(length).match(RE_LENGTH_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11053
11057
|
switch (units) {
|
|
11054
11058
|
case "em":
|
|
11055
|
-
return
|
|
11059
|
+
return value2 * 16;
|
|
11056
11060
|
case "rem":
|
|
11057
|
-
return
|
|
11061
|
+
return value2 * 16;
|
|
11058
11062
|
case "cm":
|
|
11059
|
-
return
|
|
11063
|
+
return value2 * 96 / 2.54;
|
|
11060
11064
|
case "mm":
|
|
11061
|
-
return
|
|
11065
|
+
return value2 * 96 / 2.54 / 10;
|
|
11062
11066
|
case "in":
|
|
11063
|
-
return
|
|
11067
|
+
return value2 * 96;
|
|
11064
11068
|
case "pt":
|
|
11065
|
-
return
|
|
11069
|
+
return value2 * 72;
|
|
11066
11070
|
case "pc":
|
|
11067
|
-
return
|
|
11071
|
+
return value2 * 72 / 12;
|
|
11068
11072
|
default:
|
|
11069
|
-
return
|
|
11073
|
+
return value2;
|
|
11070
11074
|
}
|
|
11071
11075
|
}
|
|
11072
11076
|
}
|
|
@@ -11128,13 +11132,13 @@ var require_mediaQueryList_native = __commonJS({
|
|
|
11128
11132
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
11129
11133
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
11130
11134
|
}
|
|
11131
|
-
function _define_property(obj, key,
|
|
11135
|
+
function _define_property(obj, key, value2) {
|
|
11132
11136
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11133
|
-
value,
|
|
11137
|
+
value: value2,
|
|
11134
11138
|
enumerable: !0,
|
|
11135
11139
|
configurable: !0,
|
|
11136
11140
|
writable: !0
|
|
11137
|
-
}) : obj[key] =
|
|
11141
|
+
}) : obj[key] = value2, obj;
|
|
11138
11142
|
}
|
|
11139
11143
|
var NativeMediaQueryList = /* @__PURE__ */ function() {
|
|
11140
11144
|
"use strict";
|
|
@@ -11804,13 +11808,13 @@ var require_ResponderTouchHistoryStore_native = __commonJS({
|
|
|
11804
11808
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
11805
11809
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
11806
11810
|
}
|
|
11807
|
-
function _define_property(obj, key,
|
|
11811
|
+
function _define_property(obj, key, value2) {
|
|
11808
11812
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11809
|
-
value,
|
|
11813
|
+
value: value2,
|
|
11810
11814
|
enumerable: !0,
|
|
11811
11815
|
configurable: !0,
|
|
11812
11816
|
writable: !0
|
|
11813
|
-
}) : obj[key] =
|
|
11817
|
+
}) : obj[key] = value2, obj;
|
|
11814
11818
|
}
|
|
11815
11819
|
var ResponderTouchHistoryStore = /* @__PURE__ */ function() {
|
|
11816
11820
|
"use strict";
|