@tamagui/core 1.132.14 → 1.132.16
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 +127 -125
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +117 -115
- 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(value, param) {
|
|
154
154
|
var [min, max] = param;
|
|
155
|
-
return Math.min(max, Math.max(min,
|
|
155
|
+
return Math.min(max, Math.max(min, value));
|
|
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(value, 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[value]) !== null && _conf_specificTokens_value !== void 0 ? _conf_specificTokens_value : group ? (_tokensMerged_group = tokensMerged[group]) === null || _tokensMerged_group === void 0 ? void 0 : _tokensMerged_group[value] : (_tokensMerged_ = tokensMerged[Object.keys(tokensMerged).find(function(cat) {
|
|
1289
|
+
return tokensMerged[cat][value];
|
|
1290
|
+
}) || ""]) === null || _tokensMerged_ === void 0 ? void 0 : _tokensMerged_[value];
|
|
1291
|
+
}, getToken2 = function(value, group) {
|
|
1292
|
+
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants.isWeb, token = getTokenObject(value, 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(value, group) {
|
|
1295
|
+
if (!(value === "unset" || value === "auto")) return getToken2(value, 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, value) {
|
|
1301
|
+
Object.assign(conf[key], value);
|
|
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(value) {
|
|
1444
1444
|
return {
|
|
1445
|
-
val:
|
|
1445
|
+
val: value,
|
|
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(";"), value = css.slice(startI, endI);
|
|
1536
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !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), value = 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 ? value = tokenVal : (rootComputedStyle || (rootComputedStyle = getComputedStyle(document.body)), value = rootComputedStyle.getPropertyValue("--" + varName));
|
|
1655
|
+
} else value = val;
|
|
1656
1656
|
values[key1] = (0, import_createVariable.createVariable)({
|
|
1657
1657
|
key: key1,
|
|
1658
1658
|
name: key1,
|
|
1659
|
-
val:
|
|
1659
|
+
val: value
|
|
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, value] = param;
|
|
2194
|
+
return feature = camelToHyphen(feature), typeof value == "string" ? `(${feature}: ${value})` : (typeof value == "number" && /[height|width]$/.test(feature) && (value = `${value}px`), `(${feature}: ${value})`);
|
|
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, value) {
|
|
2286
2286
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
2287
|
-
value
|
|
2287
|
+
value,
|
|
2288
2288
|
enumerable: !0,
|
|
2289
2289
|
configurable: !0,
|
|
2290
2290
|
writable: !0
|
|
2291
|
-
}) : obj[key] =
|
|
2291
|
+
}) : obj[key] = value, 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, value) {
|
|
2346
|
+
identifierToValue.set(identifier, value);
|
|
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, value) {
|
|
2414
|
+
typeof ref == "function" ? ref(value) : ref && (ref.current = value);
|
|
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, value = import_react3.default.useContext(context);
|
|
2742
|
+
return value;
|
|
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(value) {
|
|
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 value == "boolean") return value;
|
|
4289
|
+
var res = value;
|
|
4290
|
+
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}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, value) {
|
|
4555
4555
|
if (import_constants.isAndroid && key === "elevationAndroid") return [
|
|
4556
4556
|
[
|
|
4557
4557
|
"elevation",
|
|
4558
|
-
|
|
4558
|
+
value
|
|
4559
4559
|
]
|
|
4560
4560
|
];
|
|
4561
4561
|
if (key in EXPANSIONS) return EXPANSIONS[key].map(function(key2) {
|
|
4562
4562
|
return [
|
|
4563
4563
|
key2,
|
|
4564
|
-
|
|
4564
|
+
value
|
|
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
|
+
value
|
|
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](value);
|
|
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 value = disableNormalize ? prop : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(prop, key), out = (0, import_expandStyle.expandStyle)(key, value);
|
|
4819
|
+
out ? Object.assign(res, Object.fromEntries(out)) : res[key] = value;
|
|
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, value, styleState, disabled, map) {
|
|
5039
|
+
if (disabled) return map(key, value);
|
|
5040
5040
|
if (lastFontFamilyToken = null, !(!import_constants.isAndroid && key === "elevationAndroid")) {
|
|
5041
5041
|
var { conf, styleProps, staticConfig } = styleState;
|
|
5042
|
-
if (
|
|
5042
|
+
if (value === "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) value = 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, value, 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]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != 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, value);
|
|
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, value);
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
|
-
}, resolveVariants = function(key,
|
|
5068
|
+
}, resolveVariants = function(key, value, 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], value, 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,
|
|
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 value != "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 "${value}"`);
|
|
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(value, 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, value, 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, value);
|
|
5114
|
+
for (var _key in value) {
|
|
5115
|
+
var subKey = conf.shorthands[_key] || _key, val = value[_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, value, conf) {
|
|
5184
5184
|
if (variant) {
|
|
5185
5185
|
if (typeof variant == "function") return variant;
|
|
5186
|
-
var exact = variant[
|
|
5186
|
+
var exact = variant[value];
|
|
5187
5187
|
if (exact) return exact;
|
|
5188
|
-
if (
|
|
5188
|
+
if (value != 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 && value 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(value)) return fontSizeVariant;
|
|
5206
5206
|
}
|
|
5207
|
-
return variant[`:${typeof
|
|
5207
|
+
return variant[`:${typeof value}`] || 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, value, 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 value;
|
|
5216
|
+
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[value] || theme[value.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][value];
|
|
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 value;
|
|
5223
|
+
valOrVar = themeValue, process.env.NODE_ENV === "development" && styleState.debug === "verbose" && (globalThis.tamaguiAvoidTracking = !0, console.info(` - resolving ${key} to theme value ${value} resolveAs ${resolveAs}`, valOrVar), globalThis.tamaguiAvoidTracking = !1), hasSet = !0;
|
|
5224
5224
|
} else {
|
|
5225
|
-
if (
|
|
5225
|
+
if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
|
|
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[value]) === null || _fontsParsed_value === void 0 ? void 0 : _fontsParsed_value.family) || value, lastFontFamilyToken = value, 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_[value]) || value, 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][value];
|
|
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[value];
|
|
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], value = transform[type];
|
|
5378
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
5379
5379
|
}
|
|
5380
5380
|
).join(" ");
|
|
5381
5381
|
}
|
|
@@ -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, value, 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, value, 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 value) mergeStyle(styleState, subKey, value[subKey], importance);
|
|
5995
|
+
} else mergeStyle(styleState, key, value, importance);
|
|
5996
5996
|
return !0;
|
|
5997
5997
|
}
|
|
5998
5998
|
function normalizeStyle(style) {
|
|
@@ -6622,14 +6622,14 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
6622
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));
|
|
6623
6623
|
}
|
|
6624
6624
|
var proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {
|
|
6625
|
-
var [key,
|
|
6626
|
-
...
|
|
6625
|
+
var [key, value] = param, proxied2 = {
|
|
6626
|
+
...value,
|
|
6627
6627
|
get val() {
|
|
6628
|
-
return globalThis.tamaguiAvoidTracking || track(key),
|
|
6628
|
+
return globalThis.tamaguiAvoidTracking || track(key), value.val;
|
|
6629
6629
|
},
|
|
6630
6630
|
get(platform) {
|
|
6631
6631
|
if (curState) {
|
|
6632
|
-
var outVal = (0, import_createVariable.getVariable)(
|
|
6632
|
+
var outVal = (0, import_createVariable.getVariable)(value), { name, scheme, inverses } = curState, shouldOptimize = scheme && platform !== "web" && import_constants.isIos && !curProps.deopt && (0, import_config.getSetting)("fastSchemeChange") && inverses === 0 && (0, import_doesRootSchemeMatchSystem.doesRootSchemeMatchSystem)();
|
|
6633
6633
|
if (shouldOptimize) {
|
|
6634
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)({
|
|
6635
6635
|
scheme,
|
|
@@ -7198,11 +7198,11 @@ var require_index_native7 = __commonJS({
|
|
|
7198
7198
|
};
|
|
7199
7199
|
function useDidFinishSSR() {
|
|
7200
7200
|
var clientOnly = React3.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7201
|
-
return
|
|
7201
|
+
return !0;
|
|
7202
7202
|
}
|
|
7203
|
-
function useClientValue(
|
|
7203
|
+
function useClientValue(value) {
|
|
7204
7204
|
var done = useDidFinishSSR();
|
|
7205
|
-
return done ? typeof
|
|
7205
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
7206
7206
|
}
|
|
7207
7207
|
}
|
|
7208
7208
|
});
|
|
@@ -8819,10 +8819,10 @@ var require_createFont_native = __commonJS({
|
|
|
8819
8819
|
...sectionKeys
|
|
8820
8820
|
])
|
|
8821
8821
|
].map(function(key) {
|
|
8822
|
-
var _section_key, _ref,
|
|
8823
|
-
return fillValue =
|
|
8822
|
+
var _section_key, _ref, value = (_ref = (_section_key = section[key]) !== null && _section_key !== void 0 ? _section_key : defaultValue) !== null && _ref !== void 0 ? _ref : fillValue;
|
|
8823
|
+
return fillValue = value, defaultValue = value, [
|
|
8824
8824
|
key,
|
|
8825
|
-
|
|
8825
|
+
value
|
|
8826
8826
|
];
|
|
8827
8827
|
}));
|
|
8828
8828
|
}, createFont = function(font) {
|
|
@@ -9040,7 +9040,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9040
9040
|
var sep;
|
|
9041
9041
|
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
9042
9042
|
}
|
|
9043
|
-
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9043
|
+
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn, tokens.color), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9044
9044
|
return {
|
|
9045
9045
|
themes,
|
|
9046
9046
|
cssRuleSets,
|
|
@@ -9144,7 +9144,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9144
9144
|
}
|
|
9145
9145
|
return config;
|
|
9146
9146
|
}
|
|
9147
|
-
function getThemesDeduped(themes) {
|
|
9147
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
9148
9148
|
var dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
9149
9149
|
for (var themeName in themes) {
|
|
9150
9150
|
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
@@ -9156,6 +9156,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9156
9156
|
var theme = {
|
|
9157
9157
|
...rawTheme
|
|
9158
9158
|
};
|
|
9159
|
+
colorTokens && Object.assign(theme, colorTokens);
|
|
9159
9160
|
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
9160
9161
|
var deduped = {
|
|
9161
9162
|
names: [
|
|
@@ -10394,12 +10395,13 @@ var require_FontLanguage_native = __commonJS({
|
|
|
10394
10395
|
});
|
|
10395
10396
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
10396
10397
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), FontLanguage = function(param) {
|
|
10397
|
-
var { children, ...props } = param, language = import_react3.default.useMemo(function() {
|
|
10398
|
+
var { children, ...props } = param, parentProps = import_react3.default.useContext(import_ComponentContext.ComponentContext), language = import_react3.default.useMemo(function() {
|
|
10398
10399
|
return props;
|
|
10399
10400
|
}, [
|
|
10400
10401
|
JSON.stringify(props)
|
|
10401
10402
|
]);
|
|
10402
10403
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10404
|
+
...parentProps,
|
|
10403
10405
|
language,
|
|
10404
10406
|
children
|
|
10405
10407
|
});
|
|
@@ -10976,41 +10978,41 @@ var require_matchQuery_native = __commonJS({
|
|
|
10976
10978
|
var inverse = query.inverse, typeMatch = query.type === "all" || values.type === query.type;
|
|
10977
10979
|
if (typeMatch && inverse || !(typeMatch || inverse)) return !1;
|
|
10978
10980
|
var expressionsMatch = query.expressions.every(function(expression) {
|
|
10979
|
-
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value,
|
|
10980
|
-
if (!
|
|
10981
|
+
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value, value = values[feature];
|
|
10982
|
+
if (!value) return !1;
|
|
10981
10983
|
switch (feature) {
|
|
10982
10984
|
case "orientation":
|
|
10983
10985
|
case "scan":
|
|
10984
|
-
return
|
|
10986
|
+
return value.toLowerCase() === expValue.toLowerCase();
|
|
10985
10987
|
case "width":
|
|
10986
10988
|
case "height":
|
|
10987
10989
|
case "device-width":
|
|
10988
10990
|
case "device-height":
|
|
10989
|
-
expValue = toPx(expValue),
|
|
10991
|
+
expValue = toPx(expValue), value = toPx(value);
|
|
10990
10992
|
break;
|
|
10991
10993
|
case "resolution":
|
|
10992
|
-
expValue = toDpi(expValue),
|
|
10994
|
+
expValue = toDpi(expValue), value = toDpi(value);
|
|
10993
10995
|
break;
|
|
10994
10996
|
case "aspect-ratio":
|
|
10995
10997
|
case "device-aspect-ratio":
|
|
10996
10998
|
case /* Deprecated */
|
|
10997
10999
|
"device-pixel-ratio":
|
|
10998
|
-
expValue = toDecimal(expValue),
|
|
11000
|
+
expValue = toDecimal(expValue), value = toDecimal(value);
|
|
10999
11001
|
break;
|
|
11000
11002
|
case "grid":
|
|
11001
11003
|
case "color":
|
|
11002
11004
|
case "color-index":
|
|
11003
11005
|
case "monochrome":
|
|
11004
|
-
expValue = Number.parseInt(expValue, 10) || 1,
|
|
11006
|
+
expValue = Number.parseInt(expValue, 10) || 1, value = Number.parseInt(value, 10) || 0;
|
|
11005
11007
|
break;
|
|
11006
11008
|
}
|
|
11007
11009
|
switch (modifier) {
|
|
11008
11010
|
case "min":
|
|
11009
|
-
return
|
|
11011
|
+
return value >= expValue;
|
|
11010
11012
|
case "max":
|
|
11011
|
-
return
|
|
11013
|
+
return value <= expValue;
|
|
11012
11014
|
default:
|
|
11013
|
-
return
|
|
11015
|
+
return value === expValue;
|
|
11014
11016
|
}
|
|
11015
11017
|
});
|
|
11016
11018
|
return expressionsMatch && !inverse || !expressionsMatch && inverse;
|
|
@@ -11042,35 +11044,35 @@ var require_matchQuery_native = __commonJS({
|
|
|
11042
11044
|
return decimal || (numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/), decimal = numbers[1] / numbers[2]), decimal;
|
|
11043
11045
|
}
|
|
11044
11046
|
function toDpi(resolution) {
|
|
11045
|
-
var _String_match,
|
|
11047
|
+
var _String_match, value = Number.parseFloat(resolution), units = (_String_match = String(resolution).match(RE_RESOLUTION_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11046
11048
|
switch (units) {
|
|
11047
11049
|
case "dpcm":
|
|
11048
|
-
return
|
|
11050
|
+
return value / 2.54;
|
|
11049
11051
|
case "dppx":
|
|
11050
|
-
return
|
|
11052
|
+
return value * 96;
|
|
11051
11053
|
default:
|
|
11052
|
-
return
|
|
11054
|
+
return value;
|
|
11053
11055
|
}
|
|
11054
11056
|
}
|
|
11055
11057
|
function toPx(length) {
|
|
11056
|
-
var _String_match,
|
|
11058
|
+
var _String_match, value = Number.parseFloat(length), units = (_String_match = String(length).match(RE_LENGTH_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11057
11059
|
switch (units) {
|
|
11058
11060
|
case "em":
|
|
11059
|
-
return
|
|
11061
|
+
return value * 16;
|
|
11060
11062
|
case "rem":
|
|
11061
|
-
return
|
|
11063
|
+
return value * 16;
|
|
11062
11064
|
case "cm":
|
|
11063
|
-
return
|
|
11065
|
+
return value * 96 / 2.54;
|
|
11064
11066
|
case "mm":
|
|
11065
|
-
return
|
|
11067
|
+
return value * 96 / 2.54 / 10;
|
|
11066
11068
|
case "in":
|
|
11067
|
-
return
|
|
11069
|
+
return value * 96;
|
|
11068
11070
|
case "pt":
|
|
11069
|
-
return
|
|
11071
|
+
return value * 72;
|
|
11070
11072
|
case "pc":
|
|
11071
|
-
return
|
|
11073
|
+
return value * 72 / 12;
|
|
11072
11074
|
default:
|
|
11073
|
-
return
|
|
11075
|
+
return value;
|
|
11074
11076
|
}
|
|
11075
11077
|
}
|
|
11076
11078
|
}
|
|
@@ -11132,13 +11134,13 @@ var require_mediaQueryList_native = __commonJS({
|
|
|
11132
11134
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
11133
11135
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
11134
11136
|
}
|
|
11135
|
-
function _define_property(obj, key,
|
|
11137
|
+
function _define_property(obj, key, value) {
|
|
11136
11138
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11137
|
-
value
|
|
11139
|
+
value,
|
|
11138
11140
|
enumerable: !0,
|
|
11139
11141
|
configurable: !0,
|
|
11140
11142
|
writable: !0
|
|
11141
|
-
}) : obj[key] =
|
|
11143
|
+
}) : obj[key] = value, obj;
|
|
11142
11144
|
}
|
|
11143
11145
|
var NativeMediaQueryList = /* @__PURE__ */ function() {
|
|
11144
11146
|
"use strict";
|
|
@@ -11808,13 +11810,13 @@ var require_ResponderTouchHistoryStore_native = __commonJS({
|
|
|
11808
11810
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
11809
11811
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
11810
11812
|
}
|
|
11811
|
-
function _define_property(obj, key,
|
|
11813
|
+
function _define_property(obj, key, value) {
|
|
11812
11814
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11813
|
-
value
|
|
11815
|
+
value,
|
|
11814
11816
|
enumerable: !0,
|
|
11815
11817
|
configurable: !0,
|
|
11816
11818
|
writable: !0
|
|
11817
|
-
}) : obj[key] =
|
|
11819
|
+
}) : obj[key] = value, obj;
|
|
11818
11820
|
}
|
|
11819
11821
|
var ResponderTouchHistoryStore = /* @__PURE__ */ function() {
|
|
11820
11822
|
"use strict";
|