tamagui 1.112.23 → 1.112.25

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
@@ -6720,10 +6720,8 @@ var require_propMapper_native = __commonJS({
6720
6720
  var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
6721
6721
  val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
6722
6722
  }
6723
- if (theme && value in theme) {
6724
- if (valOrVar = theme[value], styleState.skipThemeTokenResolution && valOrVar != null && valOrVar.val) return process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info(` - keep original value: ${value} for ${key} due to enableFlattenThemeOnNative: true`), value;
6725
- process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info(` - resolving ${key} to theme value ${value}: ${valOrVar == null ? void 0 : valOrVar.val}`), hasSet = !0;
6726
- } else {
6723
+ if (theme && value in theme) valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info(` - resolving ${key} to theme value ${value}`, valOrVar), hasSet = !0;
6724
+ else {
6727
6725
  if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
6728
6726
  else {
6729
6727
  switch (key) {
@@ -7003,7 +7001,7 @@ var require_getSplitStyles_native = __commonJS({
7003
7001
  var _staticConfig_accept, validStyleProps = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
7004
7002
  return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
7005
7003
  }
7006
- var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug, skipThemeTokenResolution) {
7004
+ var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) {
7007
7005
  conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7008
7006
  var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClassNames, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, styleState = {
7009
7007
  classNames,
@@ -7017,8 +7015,7 @@ var require_getSplitStyles_native = __commonJS({
7017
7015
  usedKeys,
7018
7016
  viewProps,
7019
7017
  context,
7020
- debug,
7021
- skipThemeTokenResolution
7018
+ debug
7022
7019
  };
7023
7020
  process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants4.isClient && (consoleGroupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
7024
7021
  props,
@@ -11004,9 +11001,9 @@ var require_useProps_native = __commonJS({
11004
11001
  componentName: staticConfig.componentName,
11005
11002
  name: "theme" in props ? props.theme : void 0,
11006
11003
  inverse: "themeInverse" in props ? props.themeInverse : void 0
11007
- }), componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), { state, disabled, setStateShallow } = (0, import_useComponentState.useComponentState)(props, componentContext, staticConfig, (0, import_config.getConfig)()), media = (0, import_useMedia.useMedia)(), splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, ((_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "", state, {
11004
+ }), componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), { state, disabled, setStateShallow } = (0, import_useComponentState.useComponentState)(props, componentContext, staticConfig, (0, import_config.getConfig)()), mediaState3 = (0, import_useMedia.useMedia)(), splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, ((_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "", state, {
11008
11005
  isAnimated: !1,
11009
- mediaState: media,
11006
+ mediaState: mediaState3,
11010
11007
  noSkip: !0,
11011
11008
  noMergeStyle: !0,
11012
11009
  noClassNames: !0,
@@ -11042,7 +11039,7 @@ var require_useProps_native = __commonJS({
11042
11039
  splitStyles.viewProps,
11043
11040
  splitStyles.style || {},
11044
11041
  theme,
11045
- media
11042
+ mediaState3
11046
11043
  ];
11047
11044
  }
11048
11045
  }