@tamagui/core 1.132.14 → 1.132.16-1754534218765
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 -212
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +117 -202
- package/dist/test.native.js.map +3 -3
- package/package.json +10 -10
package/dist/test.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
|
});
|
|
@@ -210,92 +210,6 @@ var require_composeEventHandlers_native = __commonJS({
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
// ../helpers/dist/cjs/concatClassName.native.js
|
|
214
|
-
var require_concatClassName_native = __commonJS({
|
|
215
|
-
"../helpers/dist/cjs/concatClassName.native.js"(exports2, module2) {
|
|
216
|
-
"use strict";
|
|
217
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
218
|
-
for (var name in all) __defProp2(target, name, {
|
|
219
|
-
get: all[name],
|
|
220
|
-
enumerable: !0
|
|
221
|
-
});
|
|
222
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
223
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
224
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
225
|
-
for (var _loop = function() {
|
|
226
|
-
var key = _step.value;
|
|
227
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
228
|
-
get: function() {
|
|
229
|
-
return from[key];
|
|
230
|
-
},
|
|
231
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
232
|
-
});
|
|
233
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
234
|
-
} catch (err) {
|
|
235
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
236
|
-
} finally {
|
|
237
|
-
try {
|
|
238
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
239
|
-
} finally {
|
|
240
|
-
if (_didIteratorError)
|
|
241
|
-
throw _iteratorError;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return to;
|
|
245
|
-
}, __toCommonJS2 = function(mod) {
|
|
246
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
247
|
-
value: !0
|
|
248
|
-
}), mod);
|
|
249
|
-
}, concatClassName_exports = {};
|
|
250
|
-
__export2(concatClassName_exports, {
|
|
251
|
-
concatClassName: function() {
|
|
252
|
-
return concatClassName;
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
module2.exports = __toCommonJS2(concatClassName_exports);
|
|
256
|
-
function concatClassName(_cn) {
|
|
257
|
-
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
258
|
-
var _loop = function(i2) {
|
|
259
|
-
var name = names[i2];
|
|
260
|
-
if (!name || name === " ") return "continue";
|
|
261
|
-
if (name[0] !== "_") return final = name + " " + final, "continue";
|
|
262
|
-
var splitIndex = name.indexOf("-");
|
|
263
|
-
if (splitIndex < 1) return final = name + " " + final, "continue";
|
|
264
|
-
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
265
|
-
if (usedPrefixes.indexOf(uid) > -1) return "continue";
|
|
266
|
-
usedPrefixes.push(uid);
|
|
267
|
-
var propName = styleKey;
|
|
268
|
-
if (propName && propObjects && propObjects.some(function(po) {
|
|
269
|
-
if (mediaKey) {
|
|
270
|
-
var propKey = pseudoInvert[mediaKey];
|
|
271
|
-
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
272
|
-
}
|
|
273
|
-
var res = po && propName in po && po[propName] !== null;
|
|
274
|
-
return res;
|
|
275
|
-
})) return "continue";
|
|
276
|
-
final = name + " " + final;
|
|
277
|
-
}, cns = args[x];
|
|
278
|
-
if (cns) {
|
|
279
|
-
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
280
|
-
propObjects = propObjects || [], propObjects.push(cns);
|
|
281
|
-
continue;
|
|
282
|
-
}
|
|
283
|
-
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return final;
|
|
287
|
-
}
|
|
288
|
-
var pseudoInvert = {
|
|
289
|
-
hover: "hoverStyle",
|
|
290
|
-
focus: "focusStyle",
|
|
291
|
-
press: "pressStyle",
|
|
292
|
-
focusVisible: "focusVisibleStyle",
|
|
293
|
-
focusWithin: "focusWithinStyle",
|
|
294
|
-
disabled: "disabledStyle"
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
|
|
299
213
|
// ../helpers/dist/cjs/types.native.js
|
|
300
214
|
var require_types_native = __commonJS({
|
|
301
215
|
"../helpers/dist/cjs/types.native.js"(exports2, module2) {
|
|
@@ -1014,7 +928,6 @@ var require_index_native3 = __commonJS({
|
|
|
1014
928
|
__reExport2(index_exports2, require_index_native(), module2.exports);
|
|
1015
929
|
__reExport2(index_exports2, require_clamp_native(), module2.exports);
|
|
1016
930
|
__reExport2(index_exports2, require_composeEventHandlers_native(), module2.exports);
|
|
1017
|
-
__reExport2(index_exports2, require_concatClassName_native(), module2.exports);
|
|
1018
931
|
__reExport2(index_exports2, require_types_native(), module2.exports);
|
|
1019
932
|
__reExport2(index_exports2, require_shouldRenderNativePlatform_native(), module2.exports);
|
|
1020
933
|
__reExport2(index_exports2, require_validStyleProps_native(), module2.exports);
|
|
@@ -1269,22 +1182,22 @@ var require_config_native = __commonJS({
|
|
|
1269
1182
|
{}
|
|
1270
1183
|
), { tokens, tokensParsed } = conf;
|
|
1271
1184
|
return prefixed === !1 ? tokens : prefixed === !0 ? tokensParsed : tokensMerged;
|
|
1272
|
-
}, getTokenObject = function(
|
|
1185
|
+
}, getTokenObject = function(value, group) {
|
|
1273
1186
|
var _tokensMerged_group, _tokensMerged_, _conf_specificTokens_value;
|
|
1274
|
-
return (_conf_specificTokens_value = conf.specificTokens[
|
|
1275
|
-
return tokensMerged[cat][
|
|
1276
|
-
}) || ""]) === null || _tokensMerged_ === void 0 ? void 0 : _tokensMerged_[
|
|
1277
|
-
}, getToken2 = function(
|
|
1278
|
-
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants.isWeb, token = getTokenObject(
|
|
1187
|
+
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) {
|
|
1188
|
+
return tokensMerged[cat][value];
|
|
1189
|
+
}) || ""]) === null || _tokensMerged_ === void 0 ? void 0 : _tokensMerged_[value];
|
|
1190
|
+
}, getToken2 = function(value, group) {
|
|
1191
|
+
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants.isWeb, token = getTokenObject(value, group);
|
|
1279
1192
|
return useVariable ? token == null ? void 0 : token.variable : token == null ? void 0 : token.val;
|
|
1280
|
-
}, getTokenValue2 = function(
|
|
1281
|
-
if (!(
|
|
1193
|
+
}, getTokenValue2 = function(value, group) {
|
|
1194
|
+
if (!(value === "unset" || value === "auto")) return getToken2(value, group, !1);
|
|
1282
1195
|
}, useTokens = getTokens2, getThemes2 = function() {
|
|
1283
1196
|
return conf.themes;
|
|
1284
1197
|
}, configListeners = /* @__PURE__ */ new Set(), onConfiguredOnce = function(cb) {
|
|
1285
1198
|
conf ? cb(conf) : configListeners.add(cb);
|
|
1286
|
-
}, updateConfig2 = function(key,
|
|
1287
|
-
Object.assign(conf[key],
|
|
1199
|
+
}, updateConfig2 = function(key, value) {
|
|
1200
|
+
Object.assign(conf[key], value);
|
|
1288
1201
|
}, getFont = function(name) {
|
|
1289
1202
|
var _Object_entries_find, conf2 = getConfig2(), _conf_fontsParsed_name;
|
|
1290
1203
|
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) {
|
|
@@ -1423,9 +1336,9 @@ var require_createVariable_native = __commonJS({
|
|
|
1423
1336
|
var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, name = (0, import_helpers2.simpleHash)(nameProp, 60);
|
|
1424
1337
|
return includeVar ? constructCSSVariableName(name) : name;
|
|
1425
1338
|
};
|
|
1426
|
-
function px(
|
|
1339
|
+
function px(value) {
|
|
1427
1340
|
return {
|
|
1428
|
-
val:
|
|
1341
|
+
val: value,
|
|
1429
1342
|
needsPx: !0
|
|
1430
1343
|
};
|
|
1431
1344
|
}
|
|
@@ -1512,8 +1425,8 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1512
1425
|
function addTransform(identifier, css, rule) {
|
|
1513
1426
|
var s = css.indexOf("transform:");
|
|
1514
1427
|
if (s !== -1) {
|
|
1515
|
-
var startI = s + 10, endI = css.indexOf(";"),
|
|
1516
|
-
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] =
|
|
1428
|
+
var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
|
|
1429
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
|
|
1517
1430
|
}
|
|
1518
1431
|
}
|
|
1519
1432
|
function scanAllSheets() {
|
|
@@ -2004,8 +1917,8 @@ var require_useMedia_native = __commonJS({
|
|
|
2004
1917
|
if (typeof query == "string") return query;
|
|
2005
1918
|
if (cache.has(query)) return cache.get(query);
|
|
2006
1919
|
var res = Object.entries(query).map(function(param) {
|
|
2007
|
-
var [feature,
|
|
2008
|
-
return feature = camelToHyphen(feature), typeof
|
|
1920
|
+
var [feature, value] = param;
|
|
1921
|
+
return feature = camelToHyphen(feature), typeof value == "string" ? `(${feature}: ${value})` : (typeof value == "number" && /[height|width]$/.test(feature) && (value = `${value}px`), `(${feature}: ${value})`);
|
|
2009
1922
|
}).join(" and ");
|
|
2010
1923
|
return key && (cachedMediaKeyToQuery[key] = res), cache.set(query, res), res;
|
|
2011
1924
|
}
|
|
@@ -2088,8 +2001,8 @@ var require_Tamagui_native = __commonJS({
|
|
|
2088
2001
|
var TamaguiManager;
|
|
2089
2002
|
}(), identifierToValue = /* @__PURE__ */ new Map(), getValueFromIdentifier = function(identifier) {
|
|
2090
2003
|
return identifierToValue.get(identifier);
|
|
2091
|
-
}, setIdentifierValue = function(identifier,
|
|
2092
|
-
identifierToValue.set(identifier,
|
|
2004
|
+
}, setIdentifierValue = function(identifier, value) {
|
|
2005
|
+
identifierToValue.set(identifier, value);
|
|
2093
2006
|
};
|
|
2094
2007
|
}
|
|
2095
2008
|
});
|
|
@@ -2156,8 +2069,8 @@ var require_compose_refs_native = __commonJS({
|
|
|
2156
2069
|
});
|
|
2157
2070
|
module2.exports = __toCommonJS2(compose_refs_exports);
|
|
2158
2071
|
var React3 = __toESM2(require("react"));
|
|
2159
|
-
function setRef(ref,
|
|
2160
|
-
typeof ref == "function" ? ref(
|
|
2072
|
+
function setRef(ref, value) {
|
|
2073
|
+
typeof ref == "function" ? ref(value) : ref && (ref.current = value);
|
|
2161
2074
|
}
|
|
2162
2075
|
function composeRefs() {
|
|
2163
2076
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
|
|
@@ -2479,8 +2392,8 @@ var require_createStyledContext_native = __commonJS({
|
|
|
2479
2392
|
})
|
|
2480
2393
|
});
|
|
2481
2394
|
}, useStyledContext = function() {
|
|
2482
|
-
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,
|
|
2483
|
-
return
|
|
2395
|
+
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);
|
|
2396
|
+
return value;
|
|
2484
2397
|
};
|
|
2485
2398
|
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
2486
2399
|
}
|
|
@@ -4022,11 +3935,11 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4022
3935
|
translateX: !0,
|
|
4023
3936
|
translateY: !0
|
|
4024
3937
|
};
|
|
4025
|
-
function normalizeValueWithProperty(
|
|
3938
|
+
function normalizeValueWithProperty(value) {
|
|
4026
3939
|
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
4027
|
-
if (!import_constants.isWeb || import_helpers2.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof
|
|
4028
|
-
var res =
|
|
4029
|
-
return
|
|
3940
|
+
if (!import_constants.isWeb || import_helpers2.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
|
|
3941
|
+
var res = value;
|
|
3942
|
+
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
4030
3943
|
}
|
|
4031
3944
|
}
|
|
4032
3945
|
});
|
|
@@ -4290,26 +4203,26 @@ var require_expandStyle_native = __commonJS({
|
|
|
4290
4203
|
return `${prefix}${k}`;
|
|
4291
4204
|
});
|
|
4292
4205
|
};
|
|
4293
|
-
function expandStyle(key,
|
|
4206
|
+
function expandStyle(key, value) {
|
|
4294
4207
|
if (import_constants.isAndroid && key === "elevationAndroid") return [
|
|
4295
4208
|
[
|
|
4296
4209
|
"elevation",
|
|
4297
|
-
|
|
4210
|
+
value
|
|
4298
4211
|
]
|
|
4299
4212
|
];
|
|
4300
4213
|
if (key in EXPANSIONS) return EXPANSIONS[key].map(function(key2) {
|
|
4301
4214
|
return [
|
|
4302
4215
|
key2,
|
|
4303
|
-
|
|
4216
|
+
value
|
|
4304
4217
|
];
|
|
4305
4218
|
});
|
|
4306
4219
|
if (key in import_webToNativeProps.webToNativeExpansion) return import_webToNativeProps.webToNativeExpansion[key].map(function(key2) {
|
|
4307
4220
|
return [
|
|
4308
4221
|
key2,
|
|
4309
|
-
|
|
4222
|
+
value
|
|
4310
4223
|
];
|
|
4311
4224
|
});
|
|
4312
|
-
if (key in import_webToNativeProps.webToNativeDynamicExpansion) return import_webToNativeProps.webToNativeDynamicExpansion[key](
|
|
4225
|
+
if (key in import_webToNativeProps.webToNativeDynamicExpansion) return import_webToNativeProps.webToNativeDynamicExpansion[key](value);
|
|
4313
4226
|
}
|
|
4314
4227
|
var all = [
|
|
4315
4228
|
"Top",
|
|
@@ -4554,8 +4467,8 @@ var require_normalizeStyle_native = __commonJS({
|
|
|
4554
4467
|
res[key] = normalizeStyle(prop, disableNormalize);
|
|
4555
4468
|
continue;
|
|
4556
4469
|
}
|
|
4557
|
-
var
|
|
4558
|
-
out ? Object.assign(res, Object.fromEntries(out)) : res[key] =
|
|
4470
|
+
var value = disableNormalize ? prop : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(prop, key), out = (0, import_expandStyle.expandStyle)(key, value);
|
|
4471
|
+
out ? Object.assign(res, Object.fromEntries(out)) : res[key] = value;
|
|
4559
4472
|
}
|
|
4560
4473
|
}
|
|
4561
4474
|
return (0, import_expandStyles.fixStyles)(res), res;
|
|
@@ -4774,18 +4687,18 @@ var require_propMapper_native = __commonJS({
|
|
|
4774
4687
|
}
|
|
4775
4688
|
});
|
|
4776
4689
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
4777
|
-
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,
|
|
4778
|
-
if (disabled) return map(key,
|
|
4690
|
+
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) {
|
|
4691
|
+
if (disabled) return map(key, value);
|
|
4779
4692
|
if (lastFontFamilyToken = null, !(!import_constants.isAndroid && key === "elevationAndroid")) {
|
|
4780
4693
|
var { conf, styleProps, staticConfig } = styleState;
|
|
4781
|
-
if (
|
|
4694
|
+
if (value === "unset") {
|
|
4782
4695
|
var _conf_unset, unsetVal = (_conf_unset = conf.unset) === null || _conf_unset === void 0 ? void 0 : _conf_unset[key];
|
|
4783
|
-
if (unsetVal != null)
|
|
4696
|
+
if (unsetVal != null) value = unsetVal;
|
|
4784
4697
|
else return;
|
|
4785
4698
|
}
|
|
4786
4699
|
var { variants } = staticConfig;
|
|
4787
4700
|
if (!styleProps.noExpand && variants && key in variants) {
|
|
4788
|
-
var variantValue = resolveVariants(key,
|
|
4701
|
+
var variantValue = resolveVariants(key, value, styleProps, styleState, "");
|
|
4789
4702
|
if (variantValue) {
|
|
4790
4703
|
variantValue.forEach(function(param) {
|
|
4791
4704
|
var [_$key, _$value] = param;
|
|
@@ -4794,30 +4707,30 @@ var require_propMapper_native = __commonJS({
|
|
|
4794
4707
|
return;
|
|
4795
4708
|
}
|
|
4796
4709
|
}
|
|
4797
|
-
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]),
|
|
4710
|
+
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) {
|
|
4798
4711
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
4799
|
-
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key,
|
|
4712
|
+
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value);
|
|
4800
4713
|
if (expanded) for (var max = expanded.length, i = 0; i < max; i++) {
|
|
4801
4714
|
var [nkey, nvalue] = expanded[i];
|
|
4802
4715
|
map(nkey, nvalue);
|
|
4803
4716
|
}
|
|
4804
|
-
else map(key,
|
|
4717
|
+
else map(key, value);
|
|
4805
4718
|
}
|
|
4806
4719
|
}
|
|
4807
|
-
}, resolveVariants = function(key,
|
|
4720
|
+
}, resolveVariants = function(key, value, styleProps, styleState, parentVariantKey) {
|
|
4808
4721
|
var { staticConfig, conf, debug } = styleState, { variants } = staticConfig;
|
|
4809
4722
|
if (variants) {
|
|
4810
|
-
var variantValue = getVariantDefinition(variants[key],
|
|
4723
|
+
var variantValue = getVariantDefinition(variants[key], value, conf);
|
|
4811
4724
|
if (!variantValue) {
|
|
4812
|
-
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof
|
|
4725
|
+
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof value != "boolean") {
|
|
4813
4726
|
var name = staticConfig.componentName || "[UnnamedComponent]";
|
|
4814
|
-
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${
|
|
4727
|
+
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value}"`);
|
|
4815
4728
|
}
|
|
4816
4729
|
return;
|
|
4817
4730
|
}
|
|
4818
4731
|
if (typeof variantValue == "function") {
|
|
4819
4732
|
var fn = variantValue, extras = (0, import_getVariantExtras.getVariantExtras)(styleState);
|
|
4820
|
-
variantValue = fn(
|
|
4733
|
+
variantValue = fn(value, extras);
|
|
4821
4734
|
}
|
|
4822
4735
|
var fontFamilyResult;
|
|
4823
4736
|
if ((0, import_isObj.isObj)(variantValue)) {
|
|
@@ -4840,10 +4753,10 @@ var require_propMapper_native = __commonJS({
|
|
|
4840
4753
|
}
|
|
4841
4754
|
} else if (typeof input == "string" && input[0] === "$") return input;
|
|
4842
4755
|
}
|
|
4843
|
-
var variableToFontNameCache = /* @__PURE__ */ new WeakMap(), resolveTokensAndVariants = function(key,
|
|
4756
|
+
var variableToFontNameCache = /* @__PURE__ */ new WeakMap(), resolveTokensAndVariants = function(key, value, styleProps, styleState, parentVariantKey) {
|
|
4844
4757
|
var { conf, staticConfig, debug, theme } = styleState, { variants } = staticConfig, res = {};
|
|
4845
|
-
for (var _key in
|
|
4846
|
-
var subKey = conf.shorthands[_key] || _key, val =
|
|
4758
|
+
for (var _key in value) {
|
|
4759
|
+
var subKey = conf.shorthands[_key] || _key, val = value[_key];
|
|
4847
4760
|
if (!(!styleProps.noSkip && subKey in import_skipProps.skipProps)) {
|
|
4848
4761
|
if (styleProps.noExpand) res[subKey] = val;
|
|
4849
4762
|
else if (variants && subKey in variants) {
|
|
@@ -4907,17 +4820,17 @@ var require_propMapper_native = __commonJS({
|
|
|
4907
4820
|
spreadName: `...${name}`
|
|
4908
4821
|
};
|
|
4909
4822
|
});
|
|
4910
|
-
function getVariantDefinition(variant,
|
|
4823
|
+
function getVariantDefinition(variant, value, conf) {
|
|
4911
4824
|
if (variant) {
|
|
4912
4825
|
if (typeof variant == "function") return variant;
|
|
4913
|
-
var exact = variant[
|
|
4826
|
+
var exact = variant[value];
|
|
4914
4827
|
if (exact) return exact;
|
|
4915
|
-
if (
|
|
4828
|
+
if (value != null) {
|
|
4916
4829
|
var { tokensParsed } = conf, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
4917
4830
|
try {
|
|
4918
4831
|
for (var _iterator = tokenCats[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
4919
4832
|
var { name, spreadName } = _step.value;
|
|
4920
|
-
if (spreadName in variant && name in tokensParsed &&
|
|
4833
|
+
if (spreadName in variant && name in tokensParsed && value in tokensParsed[name]) return variant[spreadName];
|
|
4921
4834
|
}
|
|
4922
4835
|
} catch (err) {
|
|
4923
4836
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -4929,32 +4842,32 @@ var require_propMapper_native = __commonJS({
|
|
|
4929
4842
|
}
|
|
4930
4843
|
}
|
|
4931
4844
|
var fontSizeVariant = variant["...fontSize"];
|
|
4932
|
-
if (fontSizeVariant && conf.fontSizeTokens.has(
|
|
4845
|
+
if (fontSizeVariant && conf.fontSizeTokens.has(value)) return fontSizeVariant;
|
|
4933
4846
|
}
|
|
4934
|
-
return variant[`:${typeof
|
|
4847
|
+
return variant[`:${typeof value}`] || variant["..."];
|
|
4935
4848
|
}
|
|
4936
4849
|
}
|
|
4937
4850
|
var fontShorthand = {
|
|
4938
4851
|
fontSize: "size",
|
|
4939
4852
|
fontWeight: "weight"
|
|
4940
|
-
}, lastFontFamilyToken = null, getTokenForKey = function(key,
|
|
4853
|
+
}, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
|
|
4941
4854
|
var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
|
|
4942
|
-
if (resolveAs === "none") return
|
|
4943
|
-
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[
|
|
4855
|
+
if (resolveAs === "none") return value;
|
|
4856
|
+
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];
|
|
4944
4857
|
if (customTokenAccept) {
|
|
4945
|
-
var val = themeValue ?? tokensParsed[customTokenAccept][
|
|
4858
|
+
var val = themeValue ?? tokensParsed[customTokenAccept][value];
|
|
4946
4859
|
val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
|
|
4947
4860
|
}
|
|
4948
4861
|
if (themeValue) {
|
|
4949
|
-
if (resolveAs === "except-theme") return
|
|
4862
|
+
if (resolveAs === "except-theme") return value;
|
|
4950
4863
|
valOrVar = themeValue, hasSet = !0;
|
|
4951
4864
|
} else {
|
|
4952
|
-
if (
|
|
4865
|
+
if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
|
|
4953
4866
|
else {
|
|
4954
4867
|
switch (key) {
|
|
4955
4868
|
case "fontFamily": {
|
|
4956
4869
|
var _fontsParsed_value, fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed;
|
|
4957
|
-
valOrVar = ((_fontsParsed_value = fontsParsed[
|
|
4870
|
+
valOrVar = ((_fontsParsed_value = fontsParsed[value]) === null || _fontsParsed_value === void 0 ? void 0 : _fontsParsed_value.family) || value, lastFontFamilyToken = value, hasSet = !0;
|
|
4958
4871
|
break;
|
|
4959
4872
|
}
|
|
4960
4873
|
case "fontSize":
|
|
@@ -4964,18 +4877,18 @@ var require_propMapper_native = __commonJS({
|
|
|
4964
4877
|
var fam = fontFamily || conf.defaultFontToken;
|
|
4965
4878
|
if (fam) {
|
|
4966
4879
|
var _font_, fontsParsed1 = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed1[fam] || fontsParsed1[conf.defaultFontToken];
|
|
4967
|
-
valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[
|
|
4880
|
+
valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[value]) || value, hasSet = !0;
|
|
4968
4881
|
}
|
|
4969
4882
|
break;
|
|
4970
4883
|
}
|
|
4971
4884
|
}
|
|
4972
4885
|
for (var cat in import_helpers2.tokenCategories) if (key in import_helpers2.tokenCategories[cat]) {
|
|
4973
|
-
var res = tokensParsed[cat][
|
|
4886
|
+
var res = tokensParsed[cat][value];
|
|
4974
4887
|
res != null && (valOrVar = res, hasSet = !0);
|
|
4975
4888
|
}
|
|
4976
4889
|
}
|
|
4977
4890
|
if (!hasSet) {
|
|
4978
|
-
var spaceVar = tokensParsed.space[
|
|
4891
|
+
var spaceVar = tokensParsed.space[value];
|
|
4979
4892
|
spaceVar != null && (valOrVar = spaceVar, hasSet = !0);
|
|
4980
4893
|
}
|
|
4981
4894
|
}
|
|
@@ -5100,8 +5013,8 @@ var require_transformsToString_native = __commonJS({
|
|
|
5100
5013
|
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
5101
5014
|
// { perspective: 1000 } => perspective(1000px)
|
|
5102
5015
|
function(transform) {
|
|
5103
|
-
var type = Object.keys(transform)[0],
|
|
5104
|
-
return type === "matrix" || type === "matrix3d" ? `${type}(${
|
|
5016
|
+
var type = Object.keys(transform)[0], value = transform[type];
|
|
5017
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
5105
5018
|
}
|
|
5106
5019
|
).join(" ");
|
|
5107
5020
|
}
|
|
@@ -5448,7 +5361,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5448
5361
|
if (!styleState.style.$$css) {
|
|
5449
5362
|
var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
|
|
5450
5363
|
try {
|
|
5451
|
-
for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _props_animateOnly1, key2,
|
|
5364
|
+
for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _props_animateOnly1, key2, value, identifier, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
5452
5365
|
} catch (err) {
|
|
5453
5366
|
} finally {
|
|
5454
5367
|
}
|
|
@@ -5610,14 +5523,14 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5610
5523
|
delete viewProps[key], viewProps[key] = next;
|
|
5611
5524
|
} else viewProps[key] = val;
|
|
5612
5525
|
}
|
|
5613
|
-
function mergeMediaByImportance(styleState, mediaKey, key,
|
|
5526
|
+
function mergeMediaByImportance(styleState, mediaKey, key, value, isSizeMedia, importanceBump, debugProp) {
|
|
5614
5527
|
var usedKeys = styleState.usedKeys, importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, styleState, isSizeMedia);
|
|
5615
5528
|
if (importanceBump && (importance = (importance || 0) + importanceBump), importance === null) return !1;
|
|
5616
5529
|
if (key in import_pseudoDescriptors.pseudoDescriptors) {
|
|
5617
5530
|
var descriptor = import_pseudoDescriptors.pseudoDescriptors[key], descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = styleState.componentState[descriptorKey] === !1;
|
|
5618
5531
|
if (isDisabled) return !1;
|
|
5619
|
-
for (var subKey in
|
|
5620
|
-
} else mergeStyle(styleState, key,
|
|
5532
|
+
for (var subKey in value) mergeStyle(styleState, subKey, value[subKey], importance);
|
|
5533
|
+
} else mergeStyle(styleState, key, value, importance);
|
|
5621
5534
|
return !0;
|
|
5622
5535
|
}
|
|
5623
5536
|
function normalizeStyle(style) {
|
|
@@ -6227,14 +6140,14 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
6227
6140
|
curKeys && (curKeys.current || (curKeys.current = /* @__PURE__ */ new Set()), curKeys.current.add(key));
|
|
6228
6141
|
}
|
|
6229
6142
|
var proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {
|
|
6230
|
-
var [key,
|
|
6231
|
-
...
|
|
6143
|
+
var [key, value] = param, proxied2 = {
|
|
6144
|
+
...value,
|
|
6232
6145
|
get val() {
|
|
6233
|
-
return globalThis.tamaguiAvoidTracking || track(key),
|
|
6146
|
+
return globalThis.tamaguiAvoidTracking || track(key), value.val;
|
|
6234
6147
|
},
|
|
6235
6148
|
get(platform) {
|
|
6236
6149
|
if (curState) {
|
|
6237
|
-
var outVal = (0, import_createVariable.getVariable)(
|
|
6150
|
+
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)();
|
|
6238
6151
|
if (shouldOptimize) {
|
|
6239
6152
|
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)({
|
|
6240
6153
|
scheme,
|
|
@@ -6784,11 +6697,11 @@ var require_index_native7 = __commonJS({
|
|
|
6784
6697
|
};
|
|
6785
6698
|
function useDidFinishSSR() {
|
|
6786
6699
|
var clientOnly = React3.useContext(import_ClientOnly.ClientOnlyContext);
|
|
6787
|
-
return
|
|
6700
|
+
return !0;
|
|
6788
6701
|
}
|
|
6789
|
-
function useClientValue(
|
|
6702
|
+
function useClientValue(value) {
|
|
6790
6703
|
var done = useDidFinishSSR();
|
|
6791
|
-
return done ? typeof
|
|
6704
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
6792
6705
|
}
|
|
6793
6706
|
}
|
|
6794
6707
|
});
|
|
@@ -8257,10 +8170,10 @@ var require_createFont_native = __commonJS({
|
|
|
8257
8170
|
...sectionKeys
|
|
8258
8171
|
])
|
|
8259
8172
|
].map(function(key) {
|
|
8260
|
-
var _section_key, _ref,
|
|
8261
|
-
return fillValue =
|
|
8173
|
+
var _section_key, _ref, value = (_ref = (_section_key = section[key]) !== null && _section_key !== void 0 ? _section_key : defaultValue) !== null && _ref !== void 0 ? _ref : fillValue;
|
|
8174
|
+
return fillValue = value, defaultValue = value, [
|
|
8262
8175
|
key,
|
|
8263
|
-
|
|
8176
|
+
value
|
|
8264
8177
|
];
|
|
8265
8178
|
}));
|
|
8266
8179
|
}, createFont = function(font) {
|
|
@@ -8476,7 +8389,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8476
8389
|
var sep;
|
|
8477
8390
|
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
8478
8391
|
}
|
|
8479
|
-
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
8392
|
+
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn, tokens.color), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
8480
8393
|
return {
|
|
8481
8394
|
themes,
|
|
8482
8395
|
cssRuleSets,
|
|
@@ -8578,7 +8491,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8578
8491
|
var _process_env_DEBUG;
|
|
8579
8492
|
return config;
|
|
8580
8493
|
}
|
|
8581
|
-
function getThemesDeduped(themes) {
|
|
8494
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
8582
8495
|
var dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
8583
8496
|
for (var themeName in themes) {
|
|
8584
8497
|
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
@@ -8590,6 +8503,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8590
8503
|
var theme = {
|
|
8591
8504
|
...rawTheme
|
|
8592
8505
|
};
|
|
8506
|
+
colorTokens && Object.assign(theme, colorTokens);
|
|
8593
8507
|
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
8594
8508
|
var deduped = {
|
|
8595
8509
|
names: [
|
|
@@ -9828,12 +9742,13 @@ var require_FontLanguage_native = __commonJS({
|
|
|
9828
9742
|
});
|
|
9829
9743
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
9830
9744
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), FontLanguage = function(param) {
|
|
9831
|
-
var { children, ...props } = param, language = import_react3.default.useMemo(function() {
|
|
9745
|
+
var { children, ...props } = param, parentProps = import_react3.default.useContext(import_ComponentContext.ComponentContext), language = import_react3.default.useMemo(function() {
|
|
9832
9746
|
return props;
|
|
9833
9747
|
}, [
|
|
9834
9748
|
JSON.stringify(props)
|
|
9835
9749
|
]);
|
|
9836
9750
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
9751
|
+
...parentProps,
|
|
9837
9752
|
language,
|
|
9838
9753
|
children
|
|
9839
9754
|
});
|
|
@@ -10410,41 +10325,41 @@ var require_matchQuery_native = __commonJS({
|
|
|
10410
10325
|
var inverse = query.inverse, typeMatch = query.type === "all" || values.type === query.type;
|
|
10411
10326
|
if (typeMatch && inverse || !(typeMatch || inverse)) return !1;
|
|
10412
10327
|
var expressionsMatch = query.expressions.every(function(expression) {
|
|
10413
|
-
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value,
|
|
10414
|
-
if (!
|
|
10328
|
+
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value, value = values[feature];
|
|
10329
|
+
if (!value) return !1;
|
|
10415
10330
|
switch (feature) {
|
|
10416
10331
|
case "orientation":
|
|
10417
10332
|
case "scan":
|
|
10418
|
-
return
|
|
10333
|
+
return value.toLowerCase() === expValue.toLowerCase();
|
|
10419
10334
|
case "width":
|
|
10420
10335
|
case "height":
|
|
10421
10336
|
case "device-width":
|
|
10422
10337
|
case "device-height":
|
|
10423
|
-
expValue = toPx(expValue),
|
|
10338
|
+
expValue = toPx(expValue), value = toPx(value);
|
|
10424
10339
|
break;
|
|
10425
10340
|
case "resolution":
|
|
10426
|
-
expValue = toDpi(expValue),
|
|
10341
|
+
expValue = toDpi(expValue), value = toDpi(value);
|
|
10427
10342
|
break;
|
|
10428
10343
|
case "aspect-ratio":
|
|
10429
10344
|
case "device-aspect-ratio":
|
|
10430
10345
|
case /* Deprecated */
|
|
10431
10346
|
"device-pixel-ratio":
|
|
10432
|
-
expValue = toDecimal(expValue),
|
|
10347
|
+
expValue = toDecimal(expValue), value = toDecimal(value);
|
|
10433
10348
|
break;
|
|
10434
10349
|
case "grid":
|
|
10435
10350
|
case "color":
|
|
10436
10351
|
case "color-index":
|
|
10437
10352
|
case "monochrome":
|
|
10438
|
-
expValue = Number.parseInt(expValue, 10) || 1,
|
|
10353
|
+
expValue = Number.parseInt(expValue, 10) || 1, value = Number.parseInt(value, 10) || 0;
|
|
10439
10354
|
break;
|
|
10440
10355
|
}
|
|
10441
10356
|
switch (modifier) {
|
|
10442
10357
|
case "min":
|
|
10443
|
-
return
|
|
10358
|
+
return value >= expValue;
|
|
10444
10359
|
case "max":
|
|
10445
|
-
return
|
|
10360
|
+
return value <= expValue;
|
|
10446
10361
|
default:
|
|
10447
|
-
return
|
|
10362
|
+
return value === expValue;
|
|
10448
10363
|
}
|
|
10449
10364
|
});
|
|
10450
10365
|
return expressionsMatch && !inverse || !expressionsMatch && inverse;
|
|
@@ -10476,35 +10391,35 @@ var require_matchQuery_native = __commonJS({
|
|
|
10476
10391
|
return decimal || (numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/), decimal = numbers[1] / numbers[2]), decimal;
|
|
10477
10392
|
}
|
|
10478
10393
|
function toDpi(resolution) {
|
|
10479
|
-
var _String_match,
|
|
10394
|
+
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];
|
|
10480
10395
|
switch (units) {
|
|
10481
10396
|
case "dpcm":
|
|
10482
|
-
return
|
|
10397
|
+
return value / 2.54;
|
|
10483
10398
|
case "dppx":
|
|
10484
|
-
return
|
|
10399
|
+
return value * 96;
|
|
10485
10400
|
default:
|
|
10486
|
-
return
|
|
10401
|
+
return value;
|
|
10487
10402
|
}
|
|
10488
10403
|
}
|
|
10489
10404
|
function toPx(length) {
|
|
10490
|
-
var _String_match,
|
|
10405
|
+
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];
|
|
10491
10406
|
switch (units) {
|
|
10492
10407
|
case "em":
|
|
10493
|
-
return
|
|
10408
|
+
return value * 16;
|
|
10494
10409
|
case "rem":
|
|
10495
|
-
return
|
|
10410
|
+
return value * 16;
|
|
10496
10411
|
case "cm":
|
|
10497
|
-
return
|
|
10412
|
+
return value * 96 / 2.54;
|
|
10498
10413
|
case "mm":
|
|
10499
|
-
return
|
|
10414
|
+
return value * 96 / 2.54 / 10;
|
|
10500
10415
|
case "in":
|
|
10501
|
-
return
|
|
10416
|
+
return value * 96;
|
|
10502
10417
|
case "pt":
|
|
10503
|
-
return
|
|
10418
|
+
return value * 72;
|
|
10504
10419
|
case "pc":
|
|
10505
|
-
return
|
|
10420
|
+
return value * 72 / 12;
|
|
10506
10421
|
default:
|
|
10507
|
-
return
|
|
10422
|
+
return value;
|
|
10508
10423
|
}
|
|
10509
10424
|
}
|
|
10510
10425
|
}
|
|
@@ -10566,13 +10481,13 @@ var require_mediaQueryList_native = __commonJS({
|
|
|
10566
10481
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
10567
10482
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
10568
10483
|
}
|
|
10569
|
-
function _define_property(obj, key,
|
|
10484
|
+
function _define_property(obj, key, value) {
|
|
10570
10485
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
10571
|
-
value
|
|
10486
|
+
value,
|
|
10572
10487
|
enumerable: !0,
|
|
10573
10488
|
configurable: !0,
|
|
10574
10489
|
writable: !0
|
|
10575
|
-
}) : obj[key] =
|
|
10490
|
+
}) : obj[key] = value, obj;
|
|
10576
10491
|
}
|
|
10577
10492
|
var NativeMediaQueryList = /* @__PURE__ */ function() {
|
|
10578
10493
|
"use strict";
|
|
@@ -11242,13 +11157,13 @@ var require_ResponderTouchHistoryStore_native = __commonJS({
|
|
|
11242
11157
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
11243
11158
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
11244
11159
|
}
|
|
11245
|
-
function _define_property(obj, key,
|
|
11160
|
+
function _define_property(obj, key, value) {
|
|
11246
11161
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11247
|
-
value
|
|
11162
|
+
value,
|
|
11248
11163
|
enumerable: !0,
|
|
11249
11164
|
configurable: !0,
|
|
11250
11165
|
writable: !0
|
|
11251
|
-
}) : obj[key] =
|
|
11166
|
+
}) : obj[key] = value, obj;
|
|
11252
11167
|
}
|
|
11253
11168
|
var ResponderTouchHistoryStore = /* @__PURE__ */ function() {
|
|
11254
11169
|
"use strict";
|