@tamagui/core 1.74.11 → 1.74.12

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
@@ -1493,7 +1493,7 @@ var require_insertStyleRule_native = __commonJS({
1493
1493
  } catch (err) {
1494
1494
  console.groupCollapsed(
1495
1495
  `Error inserting rule into CSSStyleSheet: ${String(err)}`
1496
- ), console.log({ rule, rulesToInsert }), console.trace(), console.groupEnd();
1496
+ ), console.info({ rule, rulesToInsert }), console.trace(), console.groupEnd();
1497
1497
  }
1498
1498
  }
1499
1499
  }
@@ -2978,7 +2978,7 @@ var require_normalizeValueWithProperty_native = __commonJS({
2978
2978
  return;
2979
2979
  }
2980
2980
  let cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
2981
- return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && isNaN(res) && console.log("Tamagui invalid parsed value, NaN:", {
2981
+ return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
2982
2982
  res,
2983
2983
  cssVal,
2984
2984
  cssRule,
@@ -3237,7 +3237,7 @@ var require_propMapper_native = __commonJS({
3237
3237
  if (!variants)
3238
3238
  return;
3239
3239
  let variantValue = getVariantDefinition(variants[key], value, conf);
3240
- if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(`\u2666\uFE0F\u2666\uFE0F\u2666\uFE0F resolve variant ${key}`), console.log({
3240
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(`\u2666\uFE0F\u2666\uFE0F\u2666\uFE0F resolve variant ${key}`), console.info({
3241
3241
  key,
3242
3242
  value,
3243
3243
  variantValue,
@@ -3254,12 +3254,12 @@ var require_propMapper_native = __commonJS({
3254
3254
  }
3255
3255
  if (typeof variantValue == "function") {
3256
3256
  let fn = variantValue, extras = (0, import_getVariantExtras.getVariantExtras)(styleState);
3257
- variantValue = fn(value, extras), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" expanded functional variant", key), console.log({ fn, variantValue, extras }), console.groupEnd());
3257
+ variantValue = fn(value, extras), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" expanded functional variant", key), console.info({ fn, variantValue, extras }), console.groupEnd());
3258
3258
  }
3259
3259
  let fontFamilyResult;
3260
3260
  if ((0, import_isObj.isObj)(variantValue)) {
3261
3261
  let fontFamilyUpdate = variantValue.fontFamily || variantValue[conf.inverseShorthands.fontFamily];
3262
- fontFamilyUpdate && (fontFamilyResult = getFontFamilyFromNameOrVariable(fontFamilyUpdate, conf), styleState.fontFamily = fontFamilyResult, process.env.NODE_ENV === "development" && debug === "verbose" && console.log(" updating font family", fontFamilyResult)), variantValue = resolveTokensAndVariants(
3262
+ fontFamilyUpdate && (fontFamilyResult = getFontFamilyFromNameOrVariable(fontFamilyUpdate, conf), styleState.fontFamily = fontFamilyResult, process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" updating font family", fontFamilyResult)), variantValue = resolveTokensAndVariants(
3263
3263
  key,
3264
3264
  variantValue,
3265
3265
  styleProps,
@@ -3288,7 +3288,7 @@ var require_propMapper_native = __commonJS({
3288
3288
  var variableToFontNameCache = /* @__PURE__ */ new WeakMap(), fontFamilyCache = /* @__PURE__ */ new WeakMap(), getPropMappedFontFamily = (expanded) => expanded && fontFamilyCache.get(expanded), resolveTokensAndVariants = (key, value, styleProps, styleState, parentVariantKey) => {
3289
3289
  var _a;
3290
3290
  let { conf, staticConfig, debug, theme } = styleState, { variants } = staticConfig, res = {};
3291
- process.env.NODE_ENV === "development" && debug === "verbose" && console.log(" - resolveTokensAndVariants", key, value);
3291
+ process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" - resolveTokensAndVariants", key, value);
3292
3292
  for (let _key in value) {
3293
3293
  let subKey = conf.shorthands[_key] || _key, val = value[_key];
3294
3294
  if (styleProps.noExpand)
@@ -3319,7 +3319,7 @@ var require_propMapper_native = __commonJS({
3319
3319
  }
3320
3320
  if ((0, import_isObj.isObj)(val)) {
3321
3321
  let subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);
3322
- process.env.NODE_ENV === "development" && debug === "verbose" && console.log("object", subKey, subObject), res[subKey] ??= {}, Object.assign(res[subKey], subObject);
3322
+ process.env.NODE_ENV === "development" && debug === "verbose" && console.info("object", subKey, subObject), res[subKey] ??= {}, Object.assign(res[subKey], subObject);
3323
3323
  } else
3324
3324
  res[subKey] = val;
3325
3325
  process.env.NODE_ENV === "development" && debug && ((_a = res[subKey]) == null ? void 0 : _a[0]) === "$" && console.warn(
@@ -3360,7 +3360,7 @@ var require_propMapper_native = __commonJS({
3360
3360
  return value;
3361
3361
  let { theme, conf = (0, import_config.getConfig)(), context, fontFamily } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1;
3362
3362
  if (theme && value in theme)
3363
- process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.log(` - getting theme value for ${key} from ${value}`), valOrVar = theme[value], hasSet = !0;
3363
+ process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info(` - getting theme value for ${key} from ${value}`), valOrVar = theme[value], hasSet = !0;
3364
3364
  else if (value in conf.specificTokens)
3365
3365
  hasSet = !0, valOrVar = conf.specificTokens[value];
3366
3366
  else {
@@ -3393,9 +3393,9 @@ var require_propMapper_native = __commonJS({
3393
3393
  }
3394
3394
  if (hasSet) {
3395
3395
  let out = resolveVariableValue(key, valOrVar, resolveAs);
3396
- return process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.log("resolved", resolveAs, valOrVar.get, out), out;
3396
+ return process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info("resolved", resolveAs, valOrVar.get, out), out;
3397
3397
  }
3398
- return process.env.NODE_ENV === "development" && import_isDevTools.isDevTools && styleState.debug === "verbose" && (console.groupCollapsed(" \uFE52 propMap (val)", key, value), console.log({ valOrVar, theme, hasSet }, theme ? theme[key] : ""), console.groupEnd()), value;
3398
+ 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;
3399
3399
  };
3400
3400
  function resolveVariableValue(key, valOrVar, resolveValues) {
3401
3401
  if (resolveValues === "none")
@@ -3458,7 +3458,7 @@ var require_getSplitStyles_native = __commonJS({
3458
3458
  context,
3459
3459
  debug
3460
3460
  };
3461
- process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), console.log({
3461
+ process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), console.info({
3462
3462
  props,
3463
3463
  staticConfig,
3464
3464
  shouldDoClasses,
@@ -3527,7 +3527,7 @@ var require_getSplitStyles_native = __commonJS({
3527
3527
  isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = (_a = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _a[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
3528
3528
  if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
3529
3529
  `\u{1F539}\u{1F539}\u{1F539}\u{1F539} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""} \u{1F539}\u{1F539}\u{1F539}\u{1F539}`
3530
- ), console.log({ isVariant, valInit, shouldPassProp }), import_constants2.isClient && console.log({
3530
+ ), console.info({ isVariant, valInit, shouldPassProp }), import_constants2.isClient && console.info({
3531
3531
  variants,
3532
3532
  variant: variants == null ? void 0 : variants[keyInit],
3533
3533
  isVariant,
@@ -3544,7 +3544,7 @@ var require_getSplitStyles_native = __commonJS({
3544
3544
  if (next && (styleState.fontFamily = next), process.env.NODE_ENV === "development" && debug === "verbose") {
3545
3545
  console.groupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
3546
3546
  try {
3547
- !import_constants2.isServer && import_isDevTools.isDevTools && (console.log({
3547
+ !import_constants2.isServer && import_isDevTools.isDevTools && (console.info({
3548
3548
  expanded,
3549
3549
  styleProps,
3550
3550
  componentState,
@@ -3555,7 +3555,7 @@ var require_getSplitStyles_native = __commonJS({
3555
3555
  theme,
3556
3556
  usedKeys: { ...usedKeys },
3557
3557
  curProps: { ...styleState.curProps }
3558
- }), console.log("expanded", expanded, `
3558
+ }), console.info("expanded", expanded, `
3559
3559
  usedKeys`, { ...usedKeys }, `
3560
3560
  current`, {
3561
3561
  ...style
@@ -3568,7 +3568,7 @@ current`, {
3568
3568
  for (let [key, val] of expanded)
3569
3569
  if (!(val == null || key in usedKeys)) {
3570
3570
  if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo = isMedia || isPseudo, isVariant = variants && key in variants, (inlineProps != null && inlineProps.has(key) || IS_STATIC && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) && (viewProps[key] = props[key] ?? val), styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || ((_b = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _b[keyInit]))) {
3571
- passDownProp(viewProps, key, val, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key}`), console.log({ val, after: { ...viewProps[key] } }), console.groupEnd());
3571
+ passDownProp(viewProps, key, val, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key}`), console.info({ val, after: { ...viewProps[key] } }), console.groupEnd());
3572
3572
  continue;
3573
3573
  }
3574
3574
  if (isPseudo) {
@@ -3591,12 +3591,12 @@ current`, {
3591
3591
  }
3592
3592
  if (shouldDoClasses && !isEnter && !isExit) {
3593
3593
  let pseudoStyles = (0, import_getStylesAtomic.generateAtomicStyles)(pseudoStyleObject, descriptor);
3594
- process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo (classes)", key), console.log({ pseudoStyleObject, pseudoStyles }), console.groupEnd());
3594
+ process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo (classes)", key), console.info({ pseudoStyleObject, pseudoStyles }), console.groupEnd());
3595
3595
  for (let psuedoStyle of pseudoStyles)
3596
3596
  `${psuedoStyle.property}${PROP_SPLIT}${descriptor.name}` in usedKeys || psuedoStyle.identifier;
3597
3597
  } else {
3598
3598
  let descriptorKey = descriptor.stateKey || descriptor.name, pseudoState = componentState[descriptorKey], isDisabled = isExit ? !styleProps.isExiting : !pseudoState;
3599
- import_constants2.isWeb && !import_constants2.isClient && isEnter && (isDisabled = !1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key, { isDisabled }), console.log(pseudoStyleObject, {
3599
+ import_constants2.isWeb && !import_constants2.isClient && isEnter && (isDisabled = !1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key, { isDisabled }), console.info(pseudoStyleObject, {
3600
3600
  isDisabled,
3601
3601
  descriptorKey,
3602
3602
  descriptor,
@@ -3613,7 +3613,7 @@ current`, {
3613
3613
  }
3614
3614
  } else {
3615
3615
  let curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
3616
- shouldMerge && (pseudos ||= {}, pseudos[key] ||= {}, pseudos[key][pkey] = val2, mergeStyle(styleState, pkey, val2)), process.env.NODE_ENV === "development" && debug === "verbose" && console.log(" subKey", pkey, shouldMerge, {
3616
+ shouldMerge && (pseudos ||= {}, pseudos[key] ||= {}, pseudos[key][pkey] = val2, mergeStyle(styleState, pkey, val2)), process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" subKey", pkey, shouldMerge, {
3617
3617
  importance,
3618
3618
  curImportance,
3619
3619
  pkey,
@@ -3650,7 +3650,7 @@ current`, {
3650
3650
  // TODO try true like pseudo
3651
3651
  !1
3652
3652
  ), mediaKeyShort = key.slice(1);
3653
- process.env.NODE_ENV === "development" && debug === "verbose" && console.log(` \u{1F4FA} ${key}`, {
3653
+ process.env.NODE_ENV === "development" && debug === "verbose" && console.info(` \u{1F4FA} ${key}`, {
3654
3654
  key,
3655
3655
  val,
3656
3656
  mediaStyle,
@@ -3667,7 +3667,7 @@ current`, {
3667
3667
  usedKeys,
3668
3668
  !0
3669
3669
  );
3670
- importance && (space = val.space, usedKeys.space = importance, process.env.NODE_ENV === "development" && debug === "verbose" && console.log(
3670
+ importance && (space = val.space, usedKeys.space = importance, process.env.NODE_ENV === "development" && debug === "verbose" && console.info(
3671
3671
  `Found more important space for current media ${mediaKeyShort}: ${val} (importance: ${importance})`
3672
3672
  ));
3673
3673
  }
@@ -3751,7 +3751,7 @@ current`, {
3751
3751
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
3752
3752
  console.groupCollapsed(" \u2714\uFE0F expand complete", keyInit);
3753
3753
  try {
3754
- console.log("style", { ...style }), console.log("transforms", { ...transforms }), console.log("viewProps", { ...viewProps });
3754
+ console.info("style", { ...style }), console.info("transforms", { ...transforms }), console.info("viewProps", { ...viewProps });
3755
3755
  } catch {
3756
3756
  }
3757
3757
  console.groupEnd();
@@ -3783,13 +3783,14 @@ current`, {
3783
3783
  let overrideFace = (_g = (_f = faceInfo[style.fontWeight]) == null ? void 0 : _f[style.fontStyle || "normal"]) == null ? void 0 : _g.val;
3784
3784
  overrideFace && (style.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style.fontWeight, delete style.fontStyle);
3785
3785
  }
3786
- process.env.NODE_ENV === "development" && debug && debug !== "profile" && console.log(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
3786
+ process.env.NODE_ENV === "development" && debug && debug !== "profile" && console.info(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
3787
3787
  }
3788
3788
  if (className && (classNames.className = className), process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
3789
3789
  console.groupCollapsed(" \u{1F539} ===>");
3790
3790
  try {
3791
3791
  let logs = {
3792
3792
  ...result,
3793
+ className,
3793
3794
  componentState,
3794
3795
  transforms,
3795
3796
  viewProps,
@@ -3798,7 +3799,7 @@ current`, {
3798
3799
  parentSplitStyles
3799
3800
  };
3800
3801
  for (let key in logs)
3801
- console.log(key, logs[key]);
3802
+ console.info(key, logs[key]);
3802
3803
  } catch {
3803
3804
  }
3804
3805
  console.groupEnd();
@@ -4100,7 +4101,7 @@ var require_ThemeManager_native = __commonJS({
4100
4101
  let base = parentName.split(import_constants22.THEME_NAME_SEPARATOR), lastSegment = base[base.length - 1], isParentComponentTheme = parentName && lastSegment[0].toUpperCase() === lastSegment[0];
4101
4102
  isParentComponentTheme && base.pop();
4102
4103
  let parentBaseTheme = isParentComponentTheme ? base.slice(0, base.length).join(import_constants22.THEME_NAME_SEPARATOR) : parentName, max = base.length, min = componentName && !nextName ? max : 0;
4103
- process.env.NODE_ENV === "development" && typeof props.debug == "string" && (console.groupCollapsed("ThemeManager.getState()"), console.log({
4104
+ process.env.NODE_ENV === "development" && typeof props.debug == "string" && (console.groupCollapsed("ThemeManager.getState()"), console.info({
4104
4105
  props,
4105
4106
  parentName,
4106
4107
  parentBaseTheme,
@@ -4135,7 +4136,7 @@ var require_ThemeManager_native = __commonJS({
4135
4136
  potentials = [...componentPotentials, ...potentials, ...allComponentThemes];
4136
4137
  }
4137
4138
  let found = potentials.find((t) => t in themes);
4138
- if (process.env.NODE_ENV === "development" && typeof props.debug == "string" && console.log(" - ", { found, potentials, parentManager }), found) {
4139
+ if (process.env.NODE_ENV === "development" && typeof props.debug == "string" && console.info(" - ", { found, potentials, parentManager }), found) {
4139
4140
  result = {
4140
4141
  name: found,
4141
4142
  theme: themes[found],
@@ -4223,7 +4224,7 @@ var require_useTheme_native = __commonJS({
4223
4224
  import_constants2.isServer ? void 0 : () => {
4224
4225
  var _a, _b;
4225
4226
  let next = ((_a = props.shouldUpdate) == null ? void 0 : _a.call(props)) ?? (keys.current.length > 0 ? !0 : void 0);
4226
- return process.env.NODE_ENV === "development" && props.debug && props.debug !== "profile" && console.log(" \u{1F3A8} useTheme() shouldUpdate?", next, {
4227
+ return process.env.NODE_ENV === "development" && props.debug && props.debug !== "profile" && console.info(" \u{1F3A8} useTheme() shouldUpdate?", next, {
4227
4228
  shouldUpdateProp: (_b = props.shouldUpdate) == null ? void 0 : _b.call(props),
4228
4229
  keys: [...keys.current]
4229
4230
  }), next;
@@ -4237,14 +4238,14 @@ var require_useTheme_native = __commonJS({
4237
4238
  If this is intended and you are using Tamagui without any themes, you can disable this warning by setting the environment variable TAMAGUI_DISABLE_NO_THEME_WARNING=1`
4238
4239
  );
4239
4240
  let themeProxied = (0, import_react.useMemo)(() => !themeManager || !(state != null && state.theme) ? {} : getThemeProxied(state, props.deopt, themeManager, keys.current, props.debug), [state, themeManager, props.deopt, props.debug]);
4240
- return process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} useTheme =>", state == null ? void 0 : state.name), console.log("returning state", changedThemeState, "from props", props), console.groupEnd()), [changedThemeState, themeProxied];
4241
+ return process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} useTheme =>", state == null ? void 0 : state.name), console.info("returning state", changedThemeState, "from props", props), console.groupEnd()), [changedThemeState, themeProxied];
4241
4242
  };
4242
4243
  function getThemeProxied({ theme, name }, deopt = !1, themeManager, keys, debug) {
4243
4244
  if (!theme)
4244
4245
  return {};
4245
4246
  let config = (0, import_config.getConfig)();
4246
4247
  function track(key) {
4247
- keys && !keys.includes(key) && (keys.push(key), process.env.NODE_ENV === "development" && debug && console.log(` \u{1F3A8} useTheme() tracking new key: ${key}`));
4248
+ keys && !keys.includes(key) && (keys.push(key), process.env.NODE_ENV === "development" && debug && console.info(` \u{1F3A8} useTheme() tracking new key: ${key}`));
4248
4249
  }
4249
4250
  return (0, import_createProxy.createProxy)(theme, {
4250
4251
  has(_, key) {
@@ -4327,7 +4328,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
4327
4328
  forced && setThemeState((prev) => createState(prev, !0));
4328
4329
  }), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme((name, manager) => {
4329
4330
  let force = (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"], shouldTryUpdate = force ?? !!(keys != null && keys.length || isNewTheme);
4330
- process.env.NODE_ENV === "development" && props.debug && console.log(" \u{1F538} onChange", themeManager.id, {
4331
+ process.env.NODE_ENV === "development" && props.debug && console.info(" \u{1F538} onChange", themeManager.id, {
4331
4332
  force,
4332
4333
  shouldTryUpdate,
4333
4334
  props,
@@ -4396,7 +4397,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
4396
4397
  if (process.env.NODE_ENV === "development" && props.debug && import_constants2.isClient) {
4397
4398
  console.groupCollapsed(` \u{1F537} ${themeManager2.id} useChangeThemeEffect createState`);
4398
4399
  let parentState = { ...parentManager == null ? void 0 : parentManager.state }, parentId = parentManager == null ? void 0 : parentManager.id, themeManagerState = { ...themeManager2.state };
4399
- console.log({
4400
+ console.info({
4400
4401
  props,
4401
4402
  parentState,
4402
4403
  parentId,
@@ -4721,7 +4722,7 @@ var require_createComponent_native = __commonJS({
4721
4722
  (0, import_config.onConfiguredOnce)((conf) => {
4722
4723
  if (config = conf, !tamaguiConfig && (tamaguiConfig = conf, !initialTheme)) {
4723
4724
  let next = conf.themes[Object.keys(conf.themes)[0]];
4724
- initialTheme = (0, import_proxyThemeVariables.proxyThemeVariables)(next), process.env.NODE_ENV === "development" && (initialTheme || console.log("Warning: Missing theme"));
4725
+ initialTheme = (0, import_proxyThemeVariables.proxyThemeVariables)(next), process.env.NODE_ENV === "development" && (initialTheme || console.info("Warning: Missing theme"));
4725
4726
  }
4726
4727
  });
4727
4728
  let {
@@ -4732,13 +4733,13 @@ var require_createComponent_native = __commonJS({
4732
4733
  validStyles: validStyles2 = {},
4733
4734
  variants = {}
4734
4735
  } = staticConfig, defaultComponentClassName = `is_${staticConfig.componentName}`, defaultProps = staticConfig.defaultProps;
4735
- process.env.NODE_ENV === "development" && (_a = staticConfig.defaultProps) != null && _a.debug && process.env.IS_STATIC !== "is_static" && console.log(`\u{1F41B} [${staticConfig.componentName || "Component"}]`, {
4736
+ process.env.NODE_ENV === "development" && (_a = staticConfig.defaultProps) != null && _a.debug && process.env.IS_STATIC !== "is_static" && console.info(`\u{1F41B} [${staticConfig.componentName || "Component"}]`, {
4736
4737
  staticConfig,
4737
4738
  defaultProps,
4738
4739
  defaultPropsKeyOrder: defaultProps ? Object.keys(defaultProps) : []
4739
4740
  });
4740
4741
  let component = (0, import_react.forwardRef)((propsIn, forwardedRef) => {
4741
- var _a2, _b, _c, _d, _e, _f, _i, _j, _k, _l, _m;
4742
+ var _a2, _b, _c, _d, _e, _f, _i, _j, _k, _l, _m, _n, _o;
4742
4743
  if (process.env.NODE_ENV === "development" && startVisualizer && (startVisualizer(), startVisualizer = void 0), !hasSetupBaseViews) {
4743
4744
  hasSetupBaseViews = !0;
4744
4745
  let baseViews = (_b = (_a2 = import_setupHooks.hooks).getBaseViews) == null ? void 0 : _b.call(_a2);
@@ -4757,8 +4758,8 @@ var require_createComponent_native = __commonJS({
4757
4758
  propVal === void 0 ? contextValue && (key in validStyles2 || key in variants) && (styledContextProps ||= {}, styledContextProps[key] = contextValue[key]) : (overriddenContextProps ||= {}, overriddenContextProps[key] = propVal);
4758
4759
  }
4759
4760
  }
4760
- let curDefaultProps = styledContextProps ? { ...defaultProps, ...styledContextProps } : defaultProps, props;
4761
- curDefaultProps ? props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn) : props = propsIn;
4761
+ let curDefaultProps = styledContextProps ? { ...defaultProps, ...styledContextProps } : defaultProps, props = propsIn;
4762
+ curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
4762
4763
  let debugProp = props.debug, componentName = props.componentName || staticConfig.componentName;
4763
4764
  process.env.NODE_ENV === "development" && import_constants2.isClient && (0, import_react.useEffect)(() => {
4764
4765
  let overlay = null, debugVisualizerHandler = (show = !1) => {
@@ -4842,7 +4843,7 @@ var require_createComponent_native = __commonJS({
4842
4843
  "background: green; color: white;"
4843
4844
  ), import_constants2.isServer || (console.groupCollapsed(
4844
4845
  `Info (collapsed): ${state.press || state.pressIn ? "PRESSED " : ""}${state.hover ? "HOVERED " : ""}${state.focus ? "FOCUSED" : " "}`
4845
- ), console.log({
4846
+ ), console.info({
4846
4847
  propsIn,
4847
4848
  props,
4848
4849
  state,
@@ -4896,14 +4897,14 @@ var require_createComponent_native = __commonJS({
4896
4897
  keys: mediaListeningKeys
4897
4898
  });
4898
4899
  let isAnimatedReactNativeWeb = hasAnimationProp && isReactNative;
4899
- if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed(">>>"), console.log(
4900
+ if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed(">>>"), console.info(
4900
4901
  "props in",
4901
4902
  propsIn,
4902
4903
  "mapped to",
4903
4904
  props,
4904
4905
  "in order",
4905
4906
  Object.keys(props)
4906
- ), console.log("splitStyles", splitStyles), console.log("media", { shouldListenForMedia, isMediaArray, mediaListeningKeys }), console.log("className", Object.values(splitStyles.classNames)), import_constants2.isClient && console.log("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
4907
+ ), console.info("splitStyles", splitStyles), console.info("media", { shouldListenForMedia, isMediaArray, mediaListeningKeys }), console.info("className", Object.values(splitStyles.classNames)), import_constants2.isClient && console.info("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
4907
4908
  debugger;
4908
4909
  let {
4909
4910
  viewProps: viewPropsIn,
@@ -5065,7 +5066,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5065
5066
  delayPressOut: viewProps.delayPressOut,
5066
5067
  focusable: viewProps.focusable ?? !0,
5067
5068
  minPressDuration: 0
5068
- }), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && console.log("events", { events, isHoverable, attachPress }), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow, staticConfig);
5069
+ }), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && console.info("events", { events, isHoverable, attachPress }), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow, staticConfig);
5069
5070
  let direction = props.spaceDirection || "both";
5070
5071
  process.env.NODE_ENV === "development" && time && time`hooks`;
5071
5072
  let content = !children || asChild ? children : spacedChildren({
@@ -5080,7 +5081,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5080
5081
  process.env.NODE_ENV !== "test" && (elementType === BaseText || elementType === BaseView) ? process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS ? (viewProps.children = content, content = (0, import_react.createElement)(
5081
5082
  elementType === BaseText ? "RCTText" : "RCTView",
5082
5083
  viewProps
5083
- )) : (viewProps.children = content, content = elementType.render(viewProps, viewProps.ref)) : content = (0, import_react.createElement)(elementType, viewProps, content), process.env.NODE_ENV === "development" && time && time`create-element`;
5084
+ )) : (viewProps.children = content, content = elementType.render(viewProps, viewProps.ref)) : content = (0, import_react.createElement)(elementType, viewProps, content), import_setupHooks.hooks.useChildren && (content = (_m = (_l = import_setupHooks.hooks).useChildren) == null ? void 0 : _m.call(_l, content, viewProps, events, staticConfig)), process.env.NODE_ENV === "development" && time && time`create-element`;
5084
5085
  let subGroupContext = (0, import_react.useMemo)(() => {
5085
5086
  if (groupName)
5086
5087
  return {
@@ -5112,10 +5113,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5112
5113
  if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
5113
5114
  console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> with props`);
5114
5115
  try {
5115
- console.log("viewProps", viewProps), console.log("viewPropsOrder", Object.keys(viewProps));
5116
+ console.info("viewProps", viewProps), console.info("viewPropsOrder", Object.keys(viewProps));
5116
5117
  for (let key in viewProps)
5117
- console.log(" - ", key, viewProps[key]);
5118
- console.log("children", content), typeof window < "u" && console.log({
5118
+ console.info(" - ", key, viewProps[key]);
5119
+ console.info("children", content), typeof window < "u" && console.info({
5119
5120
  viewProps,
5120
5121
  state,
5121
5122
  styleProps,
@@ -5128,8 +5129,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5128
5129
  handlesPressEvents,
5129
5130
  willBeAnimated,
5130
5131
  isStringElement,
5131
- classNamesIn: (_l = props.className) == null ? void 0 : _l.split(" "),
5132
- classNamesOut: (_m = viewProps.className) == null ? void 0 : _m.split(" "),
5132
+ classNamesIn: (_n = props.className) == null ? void 0 : _n.split(" "),
5133
+ classNamesOut: (_o = viewProps.className) == null ? void 0 : _o.split(" "),
5133
5134
  events,
5134
5135
  shouldAttach,
5135
5136
  pseudos,
@@ -5270,7 +5271,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5270
5271
  })
5271
5272
  ));
5272
5273
  }
5273
- return process.env.NODE_ENV === "development" && props.debug && console.log(" Spaced children", final, props), final;
5274
+ return process.env.NODE_ENV === "development" && props.debug && console.info(" Spaced children", final, props), final;
5274
5275
  }
5275
5276
  function createSpacer({ key, direction, space, spaceFlex }) {
5276
5277
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -5812,7 +5813,7 @@ ${runtimeStyles}`;
5812
5813
  // const tokens = [...getToken(tokens.size[0])]
5813
5814
  // .spacer-sm + ._dsp_contents._dsp-sm-hidden { margin-left: -var(--${}) }
5814
5815
  };
5815
- return (0, import_useMedia.configureMedia)(config), (0, import_config.setConfig)(config), import_config.configListeners.size && (import_config.configListeners.forEach((cb) => cb(config)), import_config.configListeners.clear()), createdConfigs.set(config, !0), process.env.NODE_ENV === "development" && ((_a = process.env.DEBUG) != null && _a.startsWith("tamagui") && console.log("Tamagui config:", config), globalThis.Tamagui || (globalThis.Tamagui = import_Tamagui.Tamagui)), config;
5816
+ return (0, import_useMedia.configureMedia)(config), (0, import_config.setConfig)(config), import_config.configListeners.size && (import_config.configListeners.forEach((cb) => cb(config)), import_config.configListeners.clear()), createdConfigs.set(config, !0), process.env.NODE_ENV === "development" && ((_a = process.env.DEBUG) != null && _a.startsWith("tamagui") && console.info("Tamagui config:", config), globalThis.Tamagui || (globalThis.Tamagui = import_Tamagui.Tamagui)), config;
5816
5817
  }
5817
5818
  function getThemesDeduped(themes) {
5818
5819
  let dedupedThemes = [], existing = /* @__PURE__ */ new Map();
@@ -6751,7 +6752,7 @@ var idFn_default, init_idFn = __esm({
6751
6752
  }
6752
6753
  });
6753
6754
 
6754
- // src/index.ts
6755
+ // src/index.tsx
6755
6756
  var src_exports = {};
6756
6757
  __export(src_exports, {
6757
6758
  Stack: () => Stack,
@@ -6765,7 +6766,8 @@ function getBaseViews() {
6765
6766
  let native = require("react-native");
6766
6767
  return {
6767
6768
  View: native.View || native.default.View,
6768
- Text: native.Text || native.default.Text
6769
+ Text: native.Text || native.default.Text,
6770
+ Pressable: native.Pressable || native.default.Pressable
6769
6771
  };
6770
6772
  }
6771
6773
 
@@ -6842,7 +6844,7 @@ function usePlatformMethods(hostRef) {
6842
6844
  // src/vendor/Pressability.native.tsx
6843
6845
  var Pressability = require_fake_react_native().default, usePressability = (init_idFn(), __toCommonJS(idFn_exports)).default;
6844
6846
 
6845
- // src/index.ts
6847
+ // src/index.tsx
6846
6848
  __reExport(src_exports, __toESM(require_index_native9()), module.exports);
6847
6849
  var Stack = import_web2.Stack, Text = import_web2.Text;
6848
6850
  (0, import_web2.setupHooks)({
@@ -6904,9 +6906,15 @@ var Stack = import_web2.Stack, Text = import_web2.Text;
6904
6906
  setStateShallow({ focus: !0 });
6905
6907
  }), viewProps.onBlur = (0, import_web2.composeEventHandlers)(viewProps.onBlur, () => {
6906
6908
  setStateShallow({ focus: !1 });
6907
- })), staticConfig.isInput)
6908
- Object.assign(viewProps, events);
6909
- else {
6909
+ })), staticConfig.isInput) {
6910
+ if (events) {
6911
+ let { onPressIn, onPressOut, onPress } = events, inputEvents = {
6912
+ onPressIn,
6913
+ onPressOut: onPressOut || onPress
6914
+ };
6915
+ onPressOut && onPress && (inputEvents.onPressOut = (0, import_web2.composeEventHandlers)(onPress, onPressOut)), Object.assign(viewProps, inputEvents);
6916
+ }
6917
+ } else {
6910
6918
  events && viewProps.hitSlop && (events.hitSlop = viewProps.hitSlop);
6911
6919
  let pressability = usePressability(events || null);
6912
6920
  if (events && events.onPress)
@@ -6916,6 +6924,21 @@ var Stack = import_web2.Stack, Text = import_web2.Text;
6916
6924
  }
6917
6925
  }
6918
6926
  }
6927
+ // attempt at properly fixing RN input, but <Pressable><TextInput /> just doesnt work on RN
6928
+ // useChildren(children, viewProps, events, staticConfig) {
6929
+ // if (process.env.TAMAGUI_TARGET === 'native') {
6930
+ // if (staticConfig.isInput && !staticConfig.isHOC) {
6931
+ // const Pressable = getBaseViews().Pressable
6932
+ // console.log(
6933
+ // 'wrapping in pressable',
6934
+ // events?.['onPressIn']?.toString(),
6935
+ // viewProps['onPressIn']
6936
+ // )
6937
+ // // we need to wrap it in a view?
6938
+ // return <Pressable {...events}>{children}</Pressable>
6939
+ // }
6940
+ // }
6941
+ // },
6919
6942
  });
6920
6943
  var dontComposePressabilityKeys = {
6921
6944
  onClick: !0