@tamagui/core 1.132.14 → 1.132.15

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 CHANGED
@@ -150,9 +150,9 @@ var require_clamp_native = __commonJS({
150
150
  }
151
151
  });
152
152
  module2.exports = __toCommonJS2(clamp_exports);
153
- function clamp(value2, param) {
153
+ function clamp(value, param) {
154
154
  var [min, max] = param;
155
- return Math.min(max, Math.max(min, value2));
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(value2, group) {
1286
+ }, getTokenObject = function(value, group) {
1287
1287
  var _tokensMerged_group, _tokensMerged_, _conf_specificTokens_value;
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);
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(value2, group) {
1295
- if (!(value2 === "unset" || value2 === "auto")) return getToken2(value2, group, !1);
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, value2) {
1301
- Object.assign(conf[key], value2);
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(value2) {
1443
+ function px(value) {
1444
1444
  return {
1445
- val: value2,
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(";"), value2 = css.slice(startI, endI);
1536
- if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value2, !0;
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), value2 = void 0;
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 ? value2 = tokenVal : (rootComputedStyle || (rootComputedStyle = getComputedStyle(document.body)), value2 = rootComputedStyle.getPropertyValue("--" + varName));
1655
- } else value2 = val;
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: value2
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, value2] = param;
2194
- return feature = camelToHyphen(feature), typeof value2 == "string" ? `(${feature}: ${value2})` : (typeof value2 == "number" && /[height|width]$/.test(feature) && (value2 = `${value2}px`), `(${feature}: ${value2})`);
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, value2) {
2285
+ function _define_property(obj, key, value) {
2286
2286
  return key in obj ? Object.defineProperty(obj, key, {
2287
- value: value2,
2287
+ value,
2288
2288
  enumerable: !0,
2289
2289
  configurable: !0,
2290
2290
  writable: !0
2291
- }) : obj[key] = value2, obj;
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, value2) {
2346
- identifierToValue.set(identifier, value2);
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, value2) {
2414
- typeof ref == "function" ? ref(value2) : ref && (ref.current = value2);
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, value2 = import_react3.default.useContext(context);
2742
- return value2;
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(value2) {
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 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);
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, value2) {
4554
+ function expandStyle(key, value) {
4555
4555
  if (import_constants.isAndroid && key === "elevationAndroid") return [
4556
4556
  [
4557
4557
  "elevation",
4558
- value2
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
- value2
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
- value2
4570
+ value
4571
4571
  ];
4572
4572
  });
4573
- if (key in import_webToNativeProps.webToNativeDynamicExpansion) return import_webToNativeProps.webToNativeDynamicExpansion[key](value2);
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 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;
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, value2, styleState, disabled, map) {
5039
- if (disabled) return map(key, value2);
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 (value2 === "unset") {
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) value2 = unsetVal;
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, value2, styleProps, styleState, "");
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]), value2 != null && (value2[0] === "$" ? value2 = getTokenForKey(key, value2, styleProps, styleState) : (0, import_createVariable.isVariable)(value2) && (value2 = resolveVariableValue(key, value2, styleProps.resolveValues))), value2 != null) {
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, value2);
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, value2);
5065
+ else map(key, value);
5066
5066
  }
5067
5067
  }
5068
- }, resolveVariants = function(key, value2, styleProps, styleState, parentVariantKey) {
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], value2, conf);
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: value2,
5074
+ value,
5075
5075
  variantValue,
5076
5076
  variants
5077
5077
  }), console.groupEnd()), !variantValue) {
5078
- if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof value2 != "boolean") {
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 "${value2}"`);
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(value2, extras), process.env.NODE_ENV;
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, value2, styleProps, styleState, parentVariantKey) {
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, value2);
5114
- for (var _key in value2) {
5115
- var subKey = conf.shorthands[_key] || _key, val = value2[_key];
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, value2, conf) {
5183
+ function getVariantDefinition(variant, value, conf) {
5184
5184
  if (variant) {
5185
5185
  if (typeof variant == "function") return variant;
5186
- var exact = variant[value2];
5186
+ var exact = variant[value];
5187
5187
  if (exact) return exact;
5188
- if (value2 != null) {
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 && value2 in tokensParsed[name]) return variant[spreadName];
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(value2)) return fontSizeVariant;
5205
+ if (fontSizeVariant && conf.fontSizeTokens.has(value)) return fontSizeVariant;
5206
5206
  }
5207
- return variant[`:${typeof value2}`] || variant["..."];
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, value2, styleProps, styleState) {
5213
+ }, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
5214
5214
  var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
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];
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][value2];
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 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;
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 (value2 in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value2];
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[value2]) === null || _fontsParsed_value === void 0 ? void 0 : _fontsParsed_value.family) || value2, lastFontFamilyToken = value2, hasSet = !0;
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_[value2]) || value2, hasSet = !0;
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][value2];
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[value2];
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], value2 = transform[type];
5378
- return type === "matrix" || type === "matrix3d" ? `${type}(${value2.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value2, 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, value2, identifier, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
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, value2, isSizeMedia, importanceBump, debugProp) {
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 value2) mergeStyle(styleState, subKey, value2[subKey], importance);
5995
- } else mergeStyle(styleState, key, value2, importance);
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, value2] = param, proxied2 = {
6626
- ...value2,
6625
+ var [key, value] = param, proxied2 = {
6626
+ ...value,
6627
6627
  get val() {
6628
- return globalThis.tamaguiAvoidTracking || track(key), value2.val;
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)(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)();
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 value != null ? value : !0;
7201
+ return !0;
7202
7202
  }
7203
- function useClientValue(value1) {
7203
+ function useClientValue(value) {
7204
7204
  var done = useDidFinishSSR();
7205
- return done ? typeof value1 == "function" ? value1() : value1 : void 0;
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, 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, [
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
- value2
8825
+ value
8826
8826
  ];
8827
8827
  }));
8828
8828
  }, createFont = function(font) {
@@ -10976,41 +10976,41 @@ var require_matchQuery_native = __commonJS({
10976
10976
  var inverse = query.inverse, typeMatch = query.type === "all" || values.type === query.type;
10977
10977
  if (typeMatch && inverse || !(typeMatch || inverse)) return !1;
10978
10978
  var expressionsMatch = query.expressions.every(function(expression) {
10979
- var feature = expression.feature, modifier = expression.modifier, expValue = expression.value, value2 = values[feature];
10980
- if (!value2) return !1;
10979
+ var feature = expression.feature, modifier = expression.modifier, expValue = expression.value, value = values[feature];
10980
+ if (!value) return !1;
10981
10981
  switch (feature) {
10982
10982
  case "orientation":
10983
10983
  case "scan":
10984
- return value2.toLowerCase() === expValue.toLowerCase();
10984
+ return value.toLowerCase() === expValue.toLowerCase();
10985
10985
  case "width":
10986
10986
  case "height":
10987
10987
  case "device-width":
10988
10988
  case "device-height":
10989
- expValue = toPx(expValue), value2 = toPx(value2);
10989
+ expValue = toPx(expValue), value = toPx(value);
10990
10990
  break;
10991
10991
  case "resolution":
10992
- expValue = toDpi(expValue), value2 = toDpi(value2);
10992
+ expValue = toDpi(expValue), value = toDpi(value);
10993
10993
  break;
10994
10994
  case "aspect-ratio":
10995
10995
  case "device-aspect-ratio":
10996
10996
  case /* Deprecated */
10997
10997
  "device-pixel-ratio":
10998
- expValue = toDecimal(expValue), value2 = toDecimal(value2);
10998
+ expValue = toDecimal(expValue), value = toDecimal(value);
10999
10999
  break;
11000
11000
  case "grid":
11001
11001
  case "color":
11002
11002
  case "color-index":
11003
11003
  case "monochrome":
11004
- expValue = Number.parseInt(expValue, 10) || 1, value2 = Number.parseInt(value2, 10) || 0;
11004
+ expValue = Number.parseInt(expValue, 10) || 1, value = Number.parseInt(value, 10) || 0;
11005
11005
  break;
11006
11006
  }
11007
11007
  switch (modifier) {
11008
11008
  case "min":
11009
- return value2 >= expValue;
11009
+ return value >= expValue;
11010
11010
  case "max":
11011
- return value2 <= expValue;
11011
+ return value <= expValue;
11012
11012
  default:
11013
- return value2 === expValue;
11013
+ return value === expValue;
11014
11014
  }
11015
11015
  });
11016
11016
  return expressionsMatch && !inverse || !expressionsMatch && inverse;
@@ -11042,35 +11042,35 @@ var require_matchQuery_native = __commonJS({
11042
11042
  return decimal || (numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/), decimal = numbers[1] / numbers[2]), decimal;
11043
11043
  }
11044
11044
  function toDpi(resolution) {
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];
11045
+ 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
11046
  switch (units) {
11047
11047
  case "dpcm":
11048
- return value2 / 2.54;
11048
+ return value / 2.54;
11049
11049
  case "dppx":
11050
- return value2 * 96;
11050
+ return value * 96;
11051
11051
  default:
11052
- return value2;
11052
+ return value;
11053
11053
  }
11054
11054
  }
11055
11055
  function toPx(length) {
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];
11056
+ 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
11057
  switch (units) {
11058
11058
  case "em":
11059
- return value2 * 16;
11059
+ return value * 16;
11060
11060
  case "rem":
11061
- return value2 * 16;
11061
+ return value * 16;
11062
11062
  case "cm":
11063
- return value2 * 96 / 2.54;
11063
+ return value * 96 / 2.54;
11064
11064
  case "mm":
11065
- return value2 * 96 / 2.54 / 10;
11065
+ return value * 96 / 2.54 / 10;
11066
11066
  case "in":
11067
- return value2 * 96;
11067
+ return value * 96;
11068
11068
  case "pt":
11069
- return value2 * 72;
11069
+ return value * 72;
11070
11070
  case "pc":
11071
- return value2 * 72 / 12;
11071
+ return value * 72 / 12;
11072
11072
  default:
11073
- return value2;
11073
+ return value;
11074
11074
  }
11075
11075
  }
11076
11076
  }
@@ -11132,13 +11132,13 @@ var require_mediaQueryList_native = __commonJS({
11132
11132
  function _create_class(Constructor, protoProps, staticProps) {
11133
11133
  return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
11134
11134
  }
11135
- function _define_property(obj, key, value2) {
11135
+ function _define_property(obj, key, value) {
11136
11136
  return key in obj ? Object.defineProperty(obj, key, {
11137
- value: value2,
11137
+ value,
11138
11138
  enumerable: !0,
11139
11139
  configurable: !0,
11140
11140
  writable: !0
11141
- }) : obj[key] = value2, obj;
11141
+ }) : obj[key] = value, obj;
11142
11142
  }
11143
11143
  var NativeMediaQueryList = /* @__PURE__ */ function() {
11144
11144
  "use strict";
@@ -11808,13 +11808,13 @@ var require_ResponderTouchHistoryStore_native = __commonJS({
11808
11808
  function _create_class(Constructor, protoProps, staticProps) {
11809
11809
  return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
11810
11810
  }
11811
- function _define_property(obj, key, value2) {
11811
+ function _define_property(obj, key, value) {
11812
11812
  return key in obj ? Object.defineProperty(obj, key, {
11813
- value: value2,
11813
+ value,
11814
11814
  enumerable: !0,
11815
11815
  configurable: !0,
11816
11816
  writable: !0
11817
- }) : obj[key] = value2, obj;
11817
+ }) : obj[key] = value, obj;
11818
11818
  }
11819
11819
  var ResponderTouchHistoryStore = /* @__PURE__ */ function() {
11820
11820
  "use strict";