tamagui 1.88.15 → 1.88.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 CHANGED
@@ -1864,7 +1864,7 @@ var require_ThemeManager_native = __commonJS({
1864
1864
  potentials = [...componentPotentials, ...potentials, ...allComponentThemes];
1865
1865
  }
1866
1866
  let found = potentials.find((t) => t in themes);
1867
- if (process.env.NODE_ENV !== "production" && typeof props.debug == "string" && console.info(" getState ", {
1867
+ if (process.env.NODE_ENV !== "production" && typeof props.debug == "string" && import_constants4.isClient && console.info(" getState ", {
1868
1868
  props,
1869
1869
  found,
1870
1870
  potentials,
@@ -1885,7 +1885,7 @@ var require_ThemeManager_native = __commonJS({
1885
1885
  break;
1886
1886
  }
1887
1887
  }
1888
- return process.env.NODE_ENV !== "production" && props.debug === "verbose" && typeof window < "u" && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min: min2, max: max2 }), console.warn("result", { result }), console.trace(), console.groupEnd()), result;
1888
+ return process.env.NODE_ENV !== "production" && props.debug === "verbose" && import_constants4.isClient && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min: min2, max: max2 }), console.warn("result", { result }), console.trace(), console.groupEnd()), result;
1889
1889
  }
1890
1890
  var inverseThemeName = (themeName) => themeName.startsWith("light") ? themeName.replace(/^light/, "dark") : themeName.replace(/^dark/, "light");
1891
1891
  function getManagers(themeManager) {
@@ -1958,10 +1958,14 @@ var require_useTheme_native = __commonJS({
1958
1958
  import_constants4.isServer ? void 0 : () => {
1959
1959
  var _a, _b;
1960
1960
  let next = ((_a = props.shouldUpdate) == null ? void 0 : _a.call(props)) ?? (keys.current.length > 0 ? !0 : void 0);
1961
- return process.env.NODE_ENV === "development" && typeof props.debug == "string" && props.debug !== "profile" && console.info(" \u{1F3A8} useTheme() shouldUpdate?", next, {
1962
- shouldUpdateProp: (_b = props.shouldUpdate) == null ? void 0 : _b.call(props),
1963
- keys: [...keys.current]
1964
- }), next;
1961
+ return process.env.NODE_ENV === "development" && typeof props.debug == "string" && props.debug !== "profile" && console.info(
1962
+ " \u{1F3A8} useTheme() shouldUpdate?",
1963
+ next,
1964
+ import_constants4.isClient ? {
1965
+ shouldUpdateProp: (_b = props.shouldUpdate) == null ? void 0 : _b.call(props),
1966
+ keys: [...keys.current]
1967
+ } : ""
1968
+ ), next;
1965
1969
  }
1966
1970
  ), { themeManager, state } = changedThemeState;
1967
1971
  process.env.NODE_ENV === "development" && (state != null && state.theme || process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== "1" && console.warn(
@@ -3575,7 +3579,7 @@ var require_propMapper_native = __commonJS({
3575
3579
  propMapper: () => propMapper
3576
3580
  });
3577
3581
  module2.exports = __toCommonJS2(propMapper_exports);
3578
- var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_config = require_config_native(), import_isDevTools = require_isDevTools_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_normalizeStyle = require_normalizeStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
3582
+ var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_normalizeStyle = require_normalizeStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
3579
3583
  var _a;
3580
3584
  if (lastFontFamilyToken = null, !import_constants4.isAndroid && key === "elevationAndroid")
3581
3585
  return;
@@ -3779,7 +3783,7 @@ var require_propMapper_native = __commonJS({
3779
3783
  let out = resolveVariableValue(key, valOrVar, resolveAs);
3780
3784
  return process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info("resolved", resolveAs, valOrVar, out), out;
3781
3785
  }
3782
- return process.env.NODE_ENV === "development" && import_isDevTools.isDevTools && styleState.debug === "verbose" && (console.groupCollapsed(" \uFE52 propMap (val)", key, value), console.info({ valOrVar, theme, hasSet }, theme ? theme[key] : ""), console.groupEnd()), value;
3786
+ process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.warn(`Warning: no token found for ${key}, omitting`);
3783
3787
  };
3784
3788
  function resolveVariableValue(key, valOrVar, resolveValues) {
3785
3789
  if (resolveValues === "none")
@@ -5022,39 +5026,47 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5022
5026
  content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider, { ...contextValue, ...overriddenContextProps, children: content });
5023
5027
  }
5024
5028
  if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
5025
- console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> (${internalID}) with props`);
5026
- try {
5027
- (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && ((0, import_log.log)("props in", propsIn, "mapped to", props, "in order", Object.keys(props)), (0, import_log.log)({
5028
- animationStyles,
5029
- classNames,
5030
- content,
5031
- defaultProps,
5032
- elementType,
5033
- events,
5034
- initialState,
5035
- isAnimated,
5036
- isMediaArray,
5037
- isStringElement,
5038
- mediaListeningKeys,
5039
- pseudos,
5040
- shouldAttach,
5041
- shouldAvoidClasses,
5042
- shouldForcePseudo,
5043
- shouldListenForMedia,
5044
- splitStyles,
5045
- splitStylesStyle,
5046
- state,
5047
- stateRef,
5048
- staticConfig,
5049
- styleProps,
5050
- tamaguiConfig,
5051
- themeState,
5052
- viewProps,
5053
- willBeAnimated
5054
- }));
5055
- } catch {
5029
+ let title = `render <${typeof elementType == "string" ? elementType : "Component"} /> (${internalID}) with props`;
5030
+ if (import_constants4.isWeb) {
5031
+ console.groupCollapsed(title);
5032
+ try {
5033
+ (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && ((0, import_log.log)("props in", propsIn, "mapped to", props, "in order", Object.keys(props)), (0, import_log.log)({
5034
+ animationStyles,
5035
+ classNames,
5036
+ content,
5037
+ defaultProps,
5038
+ elementType,
5039
+ events,
5040
+ initialState,
5041
+ isAnimated,
5042
+ isMediaArray,
5043
+ isStringElement,
5044
+ mediaListeningKeys,
5045
+ pseudos,
5046
+ shouldAttach,
5047
+ shouldAvoidClasses,
5048
+ shouldForcePseudo,
5049
+ shouldListenForMedia,
5050
+ splitStyles,
5051
+ splitStylesStyle,
5052
+ state,
5053
+ stateRef,
5054
+ staticConfig,
5055
+ styleProps,
5056
+ tamaguiConfig,
5057
+ themeState,
5058
+ viewProps,
5059
+ willBeAnimated
5060
+ }));
5061
+ } catch {
5062
+ }
5063
+ console.groupEnd();
5064
+ } else {
5065
+ (0, import_log.log)(title), (0, import_log.log)("final styles:");
5066
+ for (let key in splitStylesStyle)
5067
+ (0, import_log.log)(key, splitStylesStyle[key]);
5056
5068
  }
5057
- if (console.groupEnd(), debugProp === "break")
5069
+ if (debugProp === "break")
5058
5070
  debugger;
5059
5071
  }
5060
5072
  return process.env.NODE_ENV === "development" && time && (time`rest`, globalThis.willPrint || (globalThis.willPrint = !0, setTimeout(() => {