@tamagui/core 3.0.18 → 3.1.0

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.cjs CHANGED
@@ -13731,7 +13731,7 @@ var init_mediaState_native = __esmMin((() => {
13731
13731
  //#endregion
13732
13732
  //#region ../web/dist/esm/helpers/matchMedia.native.js
13733
13733
  function matchMediaFallback(query) {
13734
- if (!process.env.IS_STATIC && false);
13734
+ if (!process.env.IS_STATIC && !isProd$2 && false);
13735
13735
  return {
13736
13736
  match: function match(a, b) {
13737
13737
  return false;
@@ -13745,8 +13745,9 @@ function setupMatchMedia(_) {
13745
13745
  matchMediaImpl = _;
13746
13746
  globalThis["matchMedia"] = _;
13747
13747
  }
13748
- var matchMediaImpl, matchMedia;
13748
+ var isProd$2, matchMediaImpl, matchMedia;
13749
13749
  var init_matchMedia_native = __esmMin((() => {
13750
+ isProd$2 = true;
13750
13751
  matchMediaImpl = matchMediaFallback;
13751
13752
  matchMedia = function matchMedia2() {
13752
13753
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
@@ -20445,7 +20446,7 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
20445
20446
  return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}${sep}{${sep}${[...decs].join(`;${sep}`)}${developmentWhitespace ? "\n" : ""}}`;
20446
20447
  };
20447
20448
  var cssRuleSets = [];
20448
- var developmentWhitespace = false;
20449
+ var developmentWhitespace = !isProd$1 && false;
20449
20450
  var sep = developmentWhitespace ? " " : "";
20450
20451
  if (declarations.length) cssRuleSets.push(declarationsToRuleSet2(declarations));
20451
20452
  var fontSelectors = [];
@@ -20491,10 +20492,12 @@ function getCSS(themeConfig) {
20491
20492
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS && false);
20492
20493
  return "";
20493
20494
  }
20495
+ var isProd$1;
20494
20496
  var init_createDesignSystem_native = __esmMin((() => {
20495
20497
  init_index_native$6();
20496
20498
  init_registerCSSVariable_native();
20497
20499
  init_getThemeCSSRules_native();
20500
+ isProd$1 = true;
20498
20501
  }));
20499
20502
  //#endregion
20500
20503
  //#region ../web/dist/esm/helpers/proxyThemeToParents.native.js
@@ -23150,12 +23153,12 @@ function TamaguiProvider$2(param) {
23150
23153
  });
23151
23154
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
23152
23155
  !process.env.TAMAGUI_DID_OUTPUT_CSS && false,
23153
- false,
23156
+ !isProd && false,
23154
23157
  hasSafeAreaTracker() && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SafeAreaTracker, {}),
23155
23158
  contents
23156
23159
  ] });
23157
23160
  }
23158
- var _cachedFirstKey, _cachedConfig;
23161
+ var isProd, _cachedFirstKey, _cachedConfig;
23159
23162
  var init_TamaguiProvider_native = __esmMin((() => {
23160
23163
  init_index_native$6();
23161
23164
  init_index_native$2();
@@ -23166,6 +23169,7 @@ var init_TamaguiProvider_native = __esmMin((() => {
23166
23169
  init_SafeAreaTracker_native();
23167
23170
  init_TamaguiRoot_native();
23168
23171
  init_ThemeProvider_native();
23172
+ isProd = true;
23169
23173
  }));
23170
23174
  //#endregion
23171
23175
  //#region ../use-event/dist/esm/useGet.native.js
@@ -368,9 +368,7 @@ function setupPlatformDriver(driver) {
368
368
  function getPlatformDriver() {
369
369
  return platformDriver;
370
370
  }
371
- //#endregion
372
- //#region ../web/dist/esm/constants/constants.native.js
373
- var MISSING_THEME_MESSAGE = globalThis.process.env.NODE_ENV === "development" ? `Can't find Tamagui configuration.
371
+ var MISSING_THEME_MESSAGE = !(globalThis.process.env.NODE_ENV === "production") && globalThis.process.env.NODE_ENV === "development" ? `Can't find Tamagui configuration.
374
372
 
375
373
  Most of the time this is due to having mis-matched versions of Tamagui dependencies, or bundlers somehow duplicating them.
376
374
  First step is to ensure every "tamagui" and "@tamagui/*" dependency is on the same version, we have a CLI tool to help:
@@ -379,11 +377,12 @@ First step is to ensure every "tamagui" and "@tamagui/*" dependency is on the sa
379
377
  ` : `Missing theme.`;
380
378
  //#endregion
381
379
  //#region ../web/dist/esm/helpers/formatDiagnostic.native.js
380
+ var isProd$29 = globalThis.process.env.NODE_ENV === "production";
382
381
  var maxDiagnosticValueLength = 160;
383
382
  function formatDiagnosticValue(value) {
384
383
  var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, seen = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : /* @__PURE__ */ new WeakSet();
385
384
  if (typeof value === "string") {
386
- var output = value.length > maxDiagnosticValueLength ? `${value.slice(0, 159)}\u2026` : value;
385
+ var output = value.length > maxDiagnosticValueLength ? `${value.slice(0, maxDiagnosticValueLength - 1)}\u2026` : value;
387
386
  return JSON.stringify(output);
388
387
  }
389
388
  if (value == null || typeof value === "number" || typeof value === "boolean") return String(value);
@@ -418,9 +417,9 @@ function formatDiagnosticValue(value) {
418
417
  return `{ ${items1.join(", ")} }`;
419
418
  }
420
419
  function formatDiagnostic(code, component, message, action, prop, received) {
421
- if (globalThis.process.env.NODE_ENV === "development") {
420
+ if (!isProd$29 && globalThis.process.env.NODE_ENV === "development") {
422
421
  var formattedValue = prop ? formatDiagnosticValue(received) : "";
423
- var boundedValue = formattedValue.length > maxDiagnosticValueLength ? `${formattedValue.slice(0, 159)}\u2026` : formattedValue;
422
+ var boundedValue = formattedValue.length > maxDiagnosticValueLength ? `${formattedValue.slice(0, maxDiagnosticValueLength - 1)}\u2026` : formattedValue;
424
423
  return `${code} ${component}: ${message}.${prop ? ` Received ${prop}=${boundedValue}.` : ""} ${action}`;
425
424
  }
426
425
  return `${code}: ${message}`;
@@ -2151,6 +2150,7 @@ var _;
2151
2150
  var NativeMenuContext = (_ = (_g = globalThis)[_KEY = "__tamagui_native_menu_context__"]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, react.createContext)(false);
2152
2151
  //#endregion
2153
2152
  //#region ../web/dist/esm/helpers/resolveSafeAreaVariable.native.js
2153
+ var isProd$28 = globalThis.process.env.NODE_ENV === "production";
2154
2154
  var didWarnMissingSetup = false;
2155
2155
  function resolveSafeAreaVariable(name) {
2156
2156
  var _ref;
@@ -2159,7 +2159,7 @@ function resolveSafeAreaVariable(name) {
2159
2159
  if (edge !== "top" && edge !== "right" && edge !== "bottom" && edge !== "left") return;
2160
2160
  var state = getSafeArea().state;
2161
2161
  if (!state.didSetup) {
2162
- if (globalThis.process.env.NODE_ENV !== "production" && !didWarnMissingSetup) {
2162
+ if (!isProd$28 && globalThis.process.env.NODE_ENV !== "production" && !didWarnMissingSetup) {
2163
2163
  didWarnMissingSetup = true;
2164
2164
  console.warn("[tamagui] safe-area variables on native require importing @tamagui/native/setup-safe-area and wrapping the app in the SafeAreaProvider from react-native-safe-area-context.");
2165
2165
  }
@@ -2176,11 +2176,12 @@ var stylePieceSymbol = /* @__PURE__ */ Symbol.for("tamagui.stylePiece");
2176
2176
  var styledDynamicSymbol = /* @__PURE__ */ Symbol.for("tamagui.styledDynamic");
2177
2177
  //#endregion
2178
2178
  //#region ../web/dist/esm/helpers/warnOnce.native.js
2179
+ var isProd$27 = globalThis.process.env.NODE_ENV === "production";
2179
2180
  var warnLimit = 500;
2180
- var warned = globalThis.process.env.NODE_ENV !== "production" ? /* @__PURE__ */ new Set() : null;
2181
+ var warned = !isProd$27 && globalThis.process.env.NODE_ENV !== "production" ? /* @__PURE__ */ new Set() : null;
2181
2182
  function warnOnce(key) {
2182
2183
  var message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : key;
2183
- if (globalThis.process.env.NODE_ENV === "development") {
2184
+ if (!isProd$27 && globalThis.process.env.NODE_ENV === "development") {
2184
2185
  var _ref;
2185
2186
  if ((warned === null || warned === void 0 ? void 0 : warned.has(key)) || ((_ref = warned === null || warned === void 0 ? void 0 : warned.size) !== null && _ref !== void 0 ? _ref : 0) >= warnLimit) return;
2186
2187
  warned === null || warned === void 0 || warned.add(key);
@@ -2192,6 +2193,7 @@ function warnRefusedValue(property, value, reason) {
2192
2193
  }
2193
2194
  //#endregion
2194
2195
  //#region ../web/dist/esm/style.native.js
2196
+ var isProd$26 = globalThis.process.env.NODE_ENV === "production";
2195
2197
  var compileStylePiece;
2196
2198
  var resolveStylePiece$1;
2197
2199
  var uncacheablePieces = /* @__PURE__ */ new WeakSet();
@@ -2229,7 +2231,7 @@ function createStylePiece(definition) {
2229
2231
  return piece;
2230
2232
  }
2231
2233
  function style(definition) {
2232
- if (globalThis.process.env.NODE_ENV === "development") {
2234
+ if (!isProd$26 && globalThis.process.env.NODE_ENV === "development") {
2233
2235
  var _internals_A_getOwner, _internals_A;
2234
2236
  var internals = react.default.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2235
2237
  if (internals === null || internals === void 0 ? void 0 : (_internals_A = internals.A) === null || _internals_A === void 0 ? void 0 : (_internals_A_getOwner = _internals_A.getOwner) === null || _internals_A_getOwner === void 0 ? void 0 : _internals_A_getOwner.call(_internals_A)) warnOnce("[tamagui] style() was called during render. Define style pieces at module scope so their rules compile once.");
@@ -2545,15 +2547,16 @@ function getConfigRevisionState(config) {
2545
2547
  }
2546
2548
  //#endregion
2547
2549
  //#region ../web/dist/esm/config.native.js
2550
+ var isProd$25 = globalThis.process.env.NODE_ENV === "production";
2548
2551
  var conf;
2549
2552
  var setConfigCalledByThisInstance = false;
2550
- var haventCalledErrorMessage = globalThis.process.env.NODE_ENV === "development" ? `
2553
+ var haventCalledErrorMessage = !isProd$25 && globalThis.process.env.NODE_ENV === "development" ? `
2551
2554
  Haven't called createTamagui yet. ${MISSING_THEME_MESSAGE}
2552
2555
  ` : `\u274C Error 001`;
2553
2556
  var getConfigFromGlobalOrLocal = function getConfigFromGlobalOrLocal2() {
2554
2557
  if (conf) return conf;
2555
2558
  if (globalThis.__tamaguiConfig) {
2556
- if (globalThis.process.env.NODE_ENV === "development" && globalThis.__tamaguiEvaluationConfig !== globalThis.__tamaguiConfig && !globalThis.__tamaguiHasWarnedGlobalFallback && !globalThis.__tamaguiPendingCheck) {
2559
+ if (!isProd$25 && globalThis.process.env.NODE_ENV === "development" && globalThis.__tamaguiEvaluationConfig !== globalThis.__tamaguiConfig && !globalThis.__tamaguiHasWarnedGlobalFallback && !globalThis.__tamaguiPendingCheck) {
2557
2560
  globalThis.__tamaguiPendingCheck = true;
2558
2561
  setTimeout(function() {
2559
2562
  if (!setConfigCalledByThisInstance && !globalThis.__tamaguiHasWarnedGlobalFallback) {
@@ -2573,7 +2576,7 @@ Tamagui: Using global config fallback. This may indicate duplicate tamagui insta
2573
2576
  };
2574
2577
  var getSetting = function getSetting2(key) {
2575
2578
  var config = getConfigFromGlobalOrLocal();
2576
- if (globalThis.process.env.NODE_ENV === "development") {
2579
+ if (!isProd$25 && globalThis.process.env.NODE_ENV === "development") {
2577
2580
  if (!config) throw new Error(haventCalledErrorMessage);
2578
2581
  }
2579
2582
  return config.settings[key];
@@ -2595,7 +2598,7 @@ var setConfig = function setConfig2(next) {
2595
2598
  };
2596
2599
  var setConfigFont = function setConfigFont2(name, font, fontParsed) {
2597
2600
  var config = getConfigFromGlobalOrLocal();
2598
- if (globalThis.process.env.NODE_ENV === "development") {
2601
+ if (!isProd$25 && globalThis.process.env.NODE_ENV === "development") {
2599
2602
  if (!config) throw new Error(haventCalledErrorMessage);
2600
2603
  }
2601
2604
  config.fonts[name] = font;
@@ -2620,7 +2623,7 @@ var getTokensParsed = function getTokensParsed2() {
2620
2623
  return (_ref = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _ref !== void 0 ? _ref : tokens;
2621
2624
  };
2622
2625
  var getTokens = function getTokens2() {
2623
- if (globalThis.process.env.NODE_ENV === "development") {
2626
+ if (!isProd$25 && globalThis.process.env.NODE_ENV === "development") {
2624
2627
  if (!getConfigFromGlobalOrLocal()) throw new Error(haventCalledErrorMessage);
2625
2628
  }
2626
2629
  return getTokensParsed();
@@ -2661,12 +2664,12 @@ var getFont = function getFont2(name) {
2661
2664
  })) === null || _Object_entries_find === void 0 ? void 0 : _Object_entries_find[1];
2662
2665
  };
2663
2666
  function setupDev(conf2) {
2664
- if (globalThis.process.env.NODE_ENV === "development");
2667
+ if (!isProd$25 && globalThis.process.env.NODE_ENV === "development");
2665
2668
  }
2666
2669
  function loadAnimationDriver(name, driver) {
2667
2670
  var config = getConfigFromGlobalOrLocal();
2668
2671
  if (!config) {
2669
- if (globalThis.process.env.NODE_ENV === "development") console.warn("loadAnimationDriver called before createTamagui");
2672
+ if (!isProd$25 && globalThis.process.env.NODE_ENV === "development") console.warn("loadAnimationDriver called before createTamagui");
2670
2673
  return;
2671
2674
  }
2672
2675
  if (config.animations && !("default" in config.animations)) config.animations = { default: config.animations };
@@ -2678,6 +2681,7 @@ function loadAnimationDriver(name, driver) {
2678
2681
  }
2679
2682
  //#endregion
2680
2683
  //#region ../web/dist/esm/createVariable.native.js
2684
+ var isProd$24 = globalThis.process.env.NODE_ENV === "production";
2681
2685
  function constructCSSVariableName(name) {
2682
2686
  return `var(--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${name})`;
2683
2687
  }
@@ -2738,7 +2742,7 @@ function getVariableValue(v, group) {
2738
2742
  }
2739
2743
  var createCSSVariable = function createCSSVariable2(nameProp) {
2740
2744
  var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
2741
- if (globalThis.process.env.NODE_ENV === "development") {
2745
+ if (!isProd$24 && globalThis.process.env.NODE_ENV === "development") {
2742
2746
  if (!nameProp || typeof nameProp !== "string") throw new Error(`createCSSVariable expected string, got: ${nameProp}`);
2743
2747
  }
2744
2748
  var name = simpleHash(nameProp, 60);
@@ -2778,13 +2782,14 @@ function mediaKeyMatch(key, dimensions) {
2778
2782
  }
2779
2783
  //#endregion
2780
2784
  //#region ../web/dist/esm/helpers/matchMedia.native.js
2785
+ var isProd$23 = globalThis.process.env.NODE_ENV === "production";
2781
2786
  var matchMediaImpl = matchMediaFallback;
2782
2787
  var matchMedia = function matchMedia2() {
2783
2788
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
2784
2789
  return matchMediaImpl(...args);
2785
2790
  };
2786
2791
  function matchMediaFallback(query) {
2787
- if (!process.env.IS_STATIC && globalThis.process.env.NODE_ENV === "development") {
2792
+ if (!process.env.IS_STATIC && !isProd$23 && globalThis.process.env.NODE_ENV === "development") {
2788
2793
  var keys = Object.keys(mediaQueryConfig).filter(function(key) {
2789
2794
  return mediaObjectToString(mediaQueryConfig[key]) === query;
2790
2795
  });
@@ -2803,7 +2808,7 @@ function matchMediaFallback(query) {
2803
2808
  };
2804
2809
  }
2805
2810
  function setupMatchMedia(_) {
2806
- if (globalThis.process.env.NODE_ENV === "development") {
2811
+ if (!isProd$23 && globalThis.process.env.NODE_ENV === "development") {
2807
2812
  if (typeof _ !== "function") {
2808
2813
  if (!process.env.IS_STATIC) console.trace(`setupMatchMedia was called without a function, this can cause issues on native`, _);
2809
2814
  }
@@ -2811,6 +2816,9 @@ function setupMatchMedia(_) {
2811
2816
  matchMediaImpl = _;
2812
2817
  globalThis["matchMedia"] = _;
2813
2818
  }
2819
+ //#endregion
2820
+ //#region ../web/dist/esm/hooks/useMedia.native.js
2821
+ var isProd$22 = globalThis.process.env.NODE_ENV === "production";
2814
2822
  var dispose = /* @__PURE__ */ new Set();
2815
2823
  var mediaVersion = 0;
2816
2824
  var configureMedia = function configureMedia2(config) {
@@ -2842,7 +2850,7 @@ function setupMediaListeners() {
2842
2850
  return matchMedia(str);
2843
2851
  };
2844
2852
  var match = getMatch();
2845
- if (!match) throw new Error(globalThis.process.env.NODE_ENV !== "production" ? formatDiagnostic("TAMAGUI_MEDIA_MATCH", "useMedia", "matchMedia returned no MediaQueryList", "Provide a matchMedia implementation that returns a MediaQueryList", "key,query,platform", {
2853
+ if (!match) throw new Error(!isProd$22 && globalThis.process.env.NODE_ENV !== "production" ? formatDiagnostic("TAMAGUI_MEDIA_MATCH", "useMedia", "matchMedia returned no MediaQueryList", "Provide a matchMedia implementation that returns a MediaQueryList", "key,query,platform", {
2846
2854
  key: key2,
2847
2855
  query: str,
2848
2856
  platform: "native"
@@ -3113,7 +3121,7 @@ function useMedia(emitter, debug, uid) {
3113
3121
  for (var _iterator = curKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3114
3122
  var key = _step.value;
3115
3123
  if (ms[key] !== (r.pendingState || lastState)[key]) {
3116
- if (globalThis.process.env.NODE_ENV === "development" && r.debug) console.warn(`useMedia() \u270D\uFE0F`, key, lastState[key], "=>", ms[key]);
3124
+ if (!isProd$22 && globalThis.process.env.NODE_ENV === "development" && r.debug) console.warn(`useMedia() \u270D\uFE0F`, key, lastState[key], "=>", ms[key]);
3117
3125
  changed = true;
3118
3126
  break;
3119
3127
  }
@@ -3280,6 +3288,7 @@ function ensureThemeVariable(theme, key) {
3280
3288
  }
3281
3289
  //#endregion
3282
3290
  //#region ../web/dist/esm/hooks/useThemeState.native.js
3291
+ var isProd$21 = globalThis.process.env.NODE_ENV === "production";
3283
3292
  var ThemeStateContext = (0, react.createContext)("");
3284
3293
  var allListeners = /* @__PURE__ */ new Map();
3285
3294
  var listenersByParent = {};
@@ -3349,7 +3358,7 @@ var useThemeState = function useThemeState2(props) {
3349
3358
  var _props__themeUpdate;
3350
3359
  var { disable } = props;
3351
3360
  var parentId = (0, react.useContext)(ThemeStateContext);
3352
- if (!parentId && !isRoot) throw new Error(globalThis.process.env.NODE_ENV === "development" ? `${MISSING_THEME_MESSAGE}
3361
+ if (!parentId && !isRoot) throw new Error(!isProd$21 && globalThis.process.env.NODE_ENV === "development" ? `${MISSING_THEME_MESSAGE}
3353
3362
 
3354
3363
  Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme context was found (parentId: ${parentId}).` : MISSING_THEME_MESSAGE);
3355
3364
  if (disable) return states.get(parentId) || {
@@ -3616,6 +3625,7 @@ function doesRootSchemeMatchSystem() {
3616
3625
  }
3617
3626
  //#endregion
3618
3627
  //#region ../web/dist/esm/hooks/getThemeProxied.native.js
3628
+ var isProd$20 = globalThis.process.env.NODE_ENV === "production";
3619
3629
  var trackingCache = /* @__PURE__ */ new WeakMap();
3620
3630
  var untrackedCache = /* @__PURE__ */ new WeakMap();
3621
3631
  var curKeys;
@@ -3632,7 +3642,7 @@ function track(key) {
3632
3642
  if (!curSchemeKeys.current) curSchemeKeys.current = /* @__PURE__ */ new Set();
3633
3643
  curSchemeKeys.current.add(key);
3634
3644
  }
3635
- if (globalThis.process.env.NODE_ENV === "development" && curProps.debug) console.info(` \u{1F3A8} useTheme() tracking key: ${key} schemeOptimized=${schemeOptimized}`);
3645
+ if (!isProd$20 && globalThis.process.env.NODE_ENV === "development" && curProps.debug) console.info(` \u{1F3A8} useTheme() tracking key: ${key} schemeOptimized=${schemeOptimized}`);
3636
3646
  }
3637
3647
  function getThemeProxied(_props, _state, _keys, _schemeKeys) {
3638
3648
  var optimizeForFirstRender = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
@@ -3656,7 +3666,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
3656
3666
  var fastSchemeChange = getSetting("fastSchemeChange");
3657
3667
  var rootMatchesSystem = doesRootSchemeMatchSystem();
3658
3668
  var shouldOptimize = scheme && platform !== "web" && supportsDynamicColorIOS && !curProps.deopt && !curState.inverses && fastSchemeChange && rootMatchesSystem;
3659
- if (globalThis.process.env.NODE_ENV === "development" && curProps.debug === "verbose") console.info(` \u{1F3A8} useTheme().get(${key}) theme=${name} scheme=${scheme}`, `
3669
+ if (!isProd$20 && globalThis.process.env.NODE_ENV === "development" && curProps.debug === "verbose") console.info(` \u{1F3A8} useTheme().get(${key}) theme=${name} scheme=${scheme}`, `
3660
3670
  shouldOptimize=${shouldOptimize} (dynamicColorIOS=${supportsDynamicColorIOS} deopt=${curProps.deopt} inverses=${curState.inverses} fastScheme=${fastSchemeChange} rootMatch=${rootMatchesSystem})`);
3661
3671
  var inlineLayer = (_curState_theme = curState.theme) === null || _curState_theme === void 0 ? void 0 : _curState_theme[themeUpdateStateKey];
3662
3672
  var inlineOverridden = !!(inlineLayer === null || inlineLayer === void 0 ? void 0 : inlineLayer.overridden.has(key));
@@ -3677,7 +3687,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
3677
3687
  var oppositeName = name.replace(scheme, oppositeScheme);
3678
3688
  var color = getVariable((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]);
3679
3689
  var oppositeColor = getVariable((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]);
3680
- if (globalThis.process.env.NODE_ENV === "development" && curProps.debug === "verbose") console.info(` \u{1F3A8} useTheme().get(${key}) using DynamicColorIOS`, `
3690
+ if (!isProd$20 && globalThis.process.env.NODE_ENV === "development" && curProps.debug === "verbose") console.info(` \u{1F3A8} useTheme().get(${key}) using DynamicColorIOS`, `
3681
3691
  color=${color} oppositeColor=${oppositeColor}`);
3682
3692
  var dynamicVal = getDynamicVal({
3683
3693
  scheme,
@@ -3687,7 +3697,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
3687
3697
  if (!optimizeForFirstRender) track(key, true);
3688
3698
  return dynamicVal;
3689
3699
  }
3690
- if (globalThis.process.env.NODE_ENV === "development" && curProps.debug) console.info(` \u{1F3A8} useTheme().get(${key}) tracking key (not optimizing)`, `
3700
+ if (!isProd$20 && globalThis.process.env.NODE_ENV === "development" && curProps.debug) console.info(` \u{1F3A8} useTheme().get(${key}) tracking key (not optimizing)`, `
3691
3701
  platform=${platform} dynamicColorIOS=${supportsDynamicColorIOS} deopt=${curProps.deopt} fastScheme=${fastSchemeChange}`);
3692
3702
  if (!optimizeForFirstRender) track(key, false);
3693
3703
  return outVal;
@@ -3708,6 +3718,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
3708
3718
  }
3709
3719
  //#endregion
3710
3720
  //#region ../web/dist/esm/hooks/useTheme.native.js
3721
+ var isProd$19 = globalThis.process.env.NODE_ENV === "production";
3711
3722
  var EMPTY = {};
3712
3723
  var useTheme = function useTheme2() {
3713
3724
  "use no memo";
@@ -3725,7 +3736,7 @@ var useThemeWithState = function useThemeWithState2(props) {
3725
3736
  };
3726
3737
  var { keys, schemeKeys, optimizeForFirstRender } = bag.current;
3727
3738
  var themeState = useThemeState(props, isRoot, keys, schemeKeys, forThemeView, optimizeForFirstRender);
3728
- if (globalThis.process.env.NODE_ENV === "development") {
3739
+ if (!isProd$19 && globalThis.process.env.NODE_ENV === "development") {
3729
3740
  if (!props.passThrough && !(themeState === null || themeState === void 0 ? void 0 : themeState.theme)) {
3730
3741
  if (process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== "1") console.error(`[tamagui] No theme found, this could be due to an invalid theme name (given theme name ${JSON.stringify(props.name)}).
3731
3742
 
@@ -3738,6 +3749,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
3738
3749
  //#region ../web/dist/esm/_withStableStyle.native.js
3739
3750
  var _excluded$8 = ["ref"];
3740
3751
  var _excluded2$4 = ["_expressions"];
3752
+ var isProd$18 = globalThis.process.env.NODE_ENV === "production";
3741
3753
  var EMPTY_EXPRESSIONS = [];
3742
3754
  var EMPTY_THEME = {};
3743
3755
  var FALLBACK_THEME_CACHE = /* @__PURE__ */ new WeakMap();
@@ -3772,7 +3784,7 @@ var _withStableStyle = function _withStableStyle2(Component, createStyle, hasThe
3772
3784
  resolvedTheme = gettableTheme;
3773
3785
  break;
3774
3786
  }
3775
- if (globalThis.process.env.NODE_ENV === "development") console.warn("[@tamagui] _withStableStyle: no ThemeStateContext found. This usually means duplicate tamagui instances in a monorepo. Falling back to default theme from config.");
3787
+ if (!isProd$18 && globalThis.process.env.NODE_ENV === "development") console.warn("[@tamagui] _withStableStyle: no ThemeStateContext found. This usually means duplicate tamagui instances in a monorepo. Falling back to default theme from config.");
3776
3788
  }
3777
3789
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, _objectSpread2({
3778
3790
  ref,
@@ -4287,8 +4299,9 @@ function mayRenderText(children) {
4287
4299
  }
4288
4300
  //#endregion
4289
4301
  //#region ../web/dist/esm/constants/isDevTools.native.js
4302
+ var isProd$17 = globalThis.process.env.NODE_ENV === "production";
4290
4303
  var isDevTools = (function() {
4291
- if (globalThis.process.env.NODE_ENV === "development") try {
4304
+ if (!isProd$17 && globalThis.process.env.NODE_ENV === "development") try {
4292
4305
  return new Function("try {return this===window;}catch(e){ return false;}")();
4293
4306
  } catch (unused) {}
4294
4307
  return false;
@@ -5144,6 +5157,7 @@ function mergeFrontendCondition(previous, value, condition) {
5144
5157
  }
5145
5158
  //#endregion
5146
5159
  //#region ../web/dist/esm/helpers/resolveSizing.native.js
5160
+ var isProd$16 = globalThis.process.env.NODE_ENV === "production";
5147
5161
  var defaultSizing = {
5148
5162
  default: "md",
5149
5163
  sizes: {
@@ -5224,7 +5238,7 @@ function resolveSizing(size, env) {
5224
5238
  paddingBlock: toPx$1(getVariableValue(tokens === null || tokens === void 0 ? void 0 : (_tokens_space = tokens.space) === null || _tokens_space === void 0 ? void 0 : _tokens_space[rung.paddingBlock]))
5225
5239
  };
5226
5240
  if (!Object.values(px).every(Number.isFinite)) {
5227
- if (globalThis.process.env.NODE_ENV === "development") console.warn(`[tamagui] size "${name}" references a missing token (fontSize "${rung.fontSize}", controlFontSize "${rung.controlFontSize}", paddingBlock "${rung.paddingBlock}"); resolving to no styles`);
5241
+ if (!isProd$16 && globalThis.process.env.NODE_ENV === "development") console.warn(`[tamagui] size "${name}" references a missing token (fontSize "${rung.fontSize}", controlFontSize "${rung.controlFontSize}", paddingBlock "${rung.paddingBlock}"); resolving to no styles`);
5228
5242
  return;
5229
5243
  }
5230
5244
  return _objectSpread2(_objectSpread2({ name }, keys), {}, {
@@ -5235,6 +5249,7 @@ function resolveSizing(size, env) {
5235
5249
  }
5236
5250
  //#endregion
5237
5251
  //#region ../web/dist/esm/helpers/styledDynamic.native.js
5252
+ var isProd$15 = globalThis.process.env.NODE_ENV === "production";
5238
5253
  function getFontsForLanguage(fonts, language) {
5239
5254
  var next = _objectSpread2({}, fonts);
5240
5255
  for (var name in language) {
@@ -5344,7 +5359,7 @@ function validateDynamicShape(fn) {
5344
5359
  }
5345
5360
  function styledDynamic(fn) {
5346
5361
  if (!fn) return bareStyledDynamic;
5347
- if (globalThis.process.env.NODE_ENV === "development") validateDynamicShape(fn);
5362
+ if (!isProd$15 && globalThis.process.env.NODE_ENV === "development") validateDynamicShape(fn);
5348
5363
  fn[styledDynamicSymbol] = true;
5349
5364
  return fn;
5350
5365
  }
@@ -5377,6 +5392,7 @@ function getDynamicEnv(styleState) {
5377
5392
  }
5378
5393
  //#endregion
5379
5394
  //#region ../web/dist/esm/helpers/insertStyleRule.native.js
5395
+ var isProd$14 = globalThis.process.env.NODE_ENV === "production";
5380
5396
  var totalSelectorsInserted = /* @__PURE__ */ new Map();
5381
5397
  var allSelectors = {};
5382
5398
  var allRules = {};
@@ -5405,7 +5421,7 @@ function scanAllSheets() {
5405
5421
  var collectThemes = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
5406
5422
  arguments.length > 1 && arguments[1];
5407
5423
  if (process.env.TAMAGUI_RUNTIME !== "island" || collectThemes) {
5408
- if (globalThis.process.env.NODE_ENV === "test") return;
5424
+ if (!isProd$14 && globalThis.process.env.NODE_ENV === "test") return;
5409
5425
  return;
5410
5426
  }
5411
5427
  }
@@ -5480,7 +5496,7 @@ function insertStyleRules(rulesToInsert) {
5480
5496
  }
5481
5497
  }
5482
5498
  } catch (err) {
5483
- if (globalThis.process.env.NODE_ENV === "development") {
5499
+ if (!isProd$14 && globalThis.process.env.NODE_ENV === "development") {
5484
5500
  var _sheet_constructor;
5485
5501
  var rule1 = rules[0] || "";
5486
5502
  var selectorEnd = rule1.indexOf("{");
@@ -5498,16 +5514,17 @@ var maxToInsert = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAG
5498
5514
  function shouldInsertStyleRules(identifier) {
5499
5515
  if (process.env.IS_STATIC === "is_static") return true;
5500
5516
  var total = totalSelectorsInserted.get(identifier) || 0;
5501
- if (globalThis.process.env.NODE_ENV === "development") {
5517
+ if (!isProd$14 && globalThis.process.env.NODE_ENV === "development") {
5502
5518
  if (total > +(process.env.TAMAGUI_STYLE_INSERTION_WARNING_LIMIT || 10)) console.warn(`Warning: inserting many CSS rules, you may be animating something and generating many CSS insertions, which can degrade performance. Instead, try using the "disableClassName" property on elements that change styles often. To disable this warning set TAMAGUI_STYLE_INSERTION_WARNING_LIMIT from 50000 to something higher`);
5503
5519
  }
5504
5520
  return total < maxToInsert;
5505
5521
  }
5506
5522
  //#endregion
5507
5523
  //#region ../web/dist/esm/helpers/log.native.js
5524
+ var isProd$13 = globalThis.process.env.NODE_ENV === "production";
5508
5525
  function log() {
5509
5526
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
5510
- if (globalThis.process.env.NODE_ENV === "development") {
5527
+ if (!isProd$13 && globalThis.process.env.NODE_ENV === "development") {
5511
5528
  _disableMediaTouch(true);
5512
5529
  try {
5513
5530
  return console.log(...args);
@@ -5985,6 +6002,9 @@ var webPropsToSkip = _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWit
5985
6002
  htmlFor: 1,
5986
6003
  dangerouslySetInnerHTML: 1
5987
6004
  });
6005
+ //#endregion
6006
+ //#region ../web/dist/esm/helpers/skipProps.native.js
6007
+ var isProd$12 = globalThis.process.env.NODE_ENV === "production";
5988
6008
  var skipProps = {
5989
6009
  untilMeasured: 1,
5990
6010
  transition: 1,
@@ -6002,8 +6022,8 @@ var skipProps = {
6002
6022
  container: 1,
6003
6023
  animatePresence: 1
6004
6024
  };
6005
- if (globalThis.process.env.NODE_ENV === "test") skipProps["data-test-renders"] = 1;
6006
- if (globalThis.process.env.NODE_ENV === "development") skipProps["__tamaguiStyleDebugReceipt"] = 1;
6025
+ if (!isProd$12 && globalThis.process.env.NODE_ENV === "test") skipProps["data-test-renders"] = 1;
6026
+ if (!isProd$12 && globalThis.process.env.NODE_ENV === "development") skipProps["__tamaguiStyleDebugReceipt"] = 1;
6007
6027
  Object.assign(skipProps, webPropsToSkip);
6008
6028
  //#endregion
6009
6029
  //#region ../web/dist/esm/helpers/styleOriginalValues.native.js
@@ -6060,7 +6080,8 @@ function transformsToString(transforms) {
6060
6080
  }
6061
6081
  //#endregion
6062
6082
  //#region ../web/dist/esm/helpers/getSplitStyles.native.js
6063
- var shouldTrackStyleTokenProvenance = globalThis.process.env.NODE_ENV === "development" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === "1";
6083
+ var isProd$11 = globalThis.process.env.NODE_ENV === "production";
6084
+ var shouldTrackStyleTokenProvenance = !isProd$11 && globalThis.process.env.NODE_ENV === "development" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === "1";
6064
6085
  var conditionValue = 0;
6065
6086
  var conditionPlatform = 1;
6066
6087
  var conditionKey = 2;
@@ -6096,7 +6117,7 @@ function setConditionUnresolved(condition) {
6096
6117
  var name = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
6097
6118
  var _condition;
6098
6119
  condition[conditionValue] &= ~conditionResolvedFlag;
6099
- if (globalThis.process.env.NODE_ENV !== "production") (_condition = condition).problem || (_condition.problem = name);
6120
+ if (!isProd$11 && globalThis.process.env.NODE_ENV !== "production") (_condition = condition).problem || (_condition.problem = name);
6100
6121
  }
6101
6122
  function appendConditionWrapper(condition, wrapper) {
6102
6123
  var wrappers = condition[conditionWrappers];
@@ -6156,7 +6177,7 @@ function resolveConditionModifier(state, condition, authored) {
6156
6177
  }
6157
6178
  var component = (_state_componentState_group = state.componentState.group) === null || _state_componentState_group === void 0 ? void 0 : _state_componentState_group[groupName];
6158
6179
  var context = (_state_flatGroupContext = state.flatGroupContext) === null || _state_flatGroupContext === void 0 ? void 0 : _state_flatGroupContext[groupName];
6159
- if (globalThis.process.env.NODE_ENV === "development" && containerName && !component && !context && ((_state_flatGroupContext1 = state.flatGroupContext) === null || _state_flatGroupContext1 === void 0 ? void 0 : _state_flatGroupContext1[containerName])) warnOnce(`group-container:${containerName}`, `@${size}/${containerName}: targets group="${containerName}", but groups no longer establish query containers. Add container="${containerName}" to that group.`);
6180
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && containerName && !component && !context && ((_state_flatGroupContext1 = state.flatGroupContext) === null || _state_flatGroupContext1 === void 0 ? void 0 : _state_flatGroupContext1[containerName])) warnOnce(`group-container:${containerName}`, `@${size}/${containerName}: targets group="${containerName}", but groups no longer establish query containers. Add container="${containerName}" to that group.`);
6160
6181
  var match = component === null || component === void 0 ? void 0 : (_component_media = component.media) === null || _component_media === void 0 ? void 0 : _component_media[size];
6161
6182
  if (!(match !== null && match !== void 0 ? match : (context === null || context === void 0 ? void 0 : context.state.layout) && mediaKeyMatch(size, context.state.layout))) condition[conditionValue] &= -2;
6162
6183
  ((_state1 = state).flatGroupKeys || (_state1.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName);
@@ -6207,7 +6228,7 @@ function commitCondition(condition) {
6207
6228
  var ranks = condition[conditionRanks];
6208
6229
  var depth = ranks.length;
6209
6230
  if (depth > 5) {
6210
- if (globalThis.process.env.NODE_ENV !== "production") throw new Error(`a flat value clause supports at most 5 non-platform conditions; received ${depth} in "${condition[conditionKey]}:"`);
6231
+ if (!isProd$11 && globalThis.process.env.NODE_ENV !== "production") throw new Error(`a flat value clause supports at most 5 non-platform conditions; received ${depth} in "${condition[conditionKey]}:"`);
6211
6232
  return 0;
6212
6233
  }
6213
6234
  var precedence = condition[conditionPlatform] * 6 + depth;
@@ -6325,8 +6346,8 @@ function contributeProp(pass, keyOg, valOg) {
6325
6346
  }
6326
6347
  if (keyInit === "ref") return;
6327
6348
  if (keyInit[0] === "d" && keyInit.startsWith("data-")) return;
6328
- if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`before-prop-${keyInit}`;
6329
- if (globalThis.process.env.NODE_ENV === "test" && keyInit === "jestAnimatedStyle") return;
6349
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`before-prop-${keyInit}`;
6350
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "test" && keyInit === "jestAnimatedStyle") return;
6330
6351
  if (!disableExpandShorthands) {
6331
6352
  if (keyInit in shorthands) keyInit = shorthands[keyInit];
6332
6353
  }
@@ -6349,7 +6370,7 @@ function contributeProp(pass, keyOg, valOg) {
6349
6370
  }
6350
6371
  if (condition2 !== void 0) {
6351
6372
  if (isValidStyleKey(property3, validStyles)) contributeValue(styleState, property3, entry2[1], void 0, false, condition2);
6352
- else if (globalThis.process.env.NODE_ENV === "development") console.warn(`[tamagui] "${property3}" is not a valid style on this component; the frontend value is dropped.`);
6373
+ else if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") console.warn(`[tamagui] "${property3}" is not a valid style on this component; the frontend value is dropped.`);
6353
6374
  return;
6354
6375
  }
6355
6376
  if (property3 === "group") pass[passFrontendGroup] = entry2[1];
@@ -6367,7 +6388,7 @@ function contributeProp(pass, keyOg, valOg) {
6367
6388
  var candidate = valInit.slice(start, index);
6368
6389
  var preserveRaw = resolveClassName ? resolveClassName(candidate, conf, sink) : true;
6369
6390
  if (preserveRaw === null) {
6370
- if (globalThis.process.env.NODE_ENV === "development") warnOnce(`[tamagui] frontend candidate "${candidate}" is unavailable on this platform and was dropped.`);
6391
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") warnOnce(`[tamagui] frontend candidate "${candidate}" is unavailable on this platform and was dropped.`);
6371
6392
  } else if (preserveRaw) {
6372
6393
  pass[passClassName] = pass[passClassName] ? `${pass[passClassName]} ${candidate}` : candidate;
6373
6394
  if (resolveClassName) {
@@ -6498,7 +6519,7 @@ function contributeProp(pass, keyOg, valOg) {
6498
6519
  var defaultVal = (_defaultProps_keyOg = defaultProps[keyOg]) !== null && _defaultProps_keyOg !== void 0 ? _defaultProps_keyOg : defaultProps[keyInit];
6499
6520
  if (defaultVal !== void 0 && valInit === defaultVal) return;
6500
6521
  }
6501
- if (globalThis.process.env.NODE_ENV === "development") {
6522
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") {
6502
6523
  if (!isValidStyleKey(keyInit, validStyles) && (keyInit === "animation" || !(keyInit in stylePropsAll)) && (!variants || !(keyInit in variants))) {
6503
6524
  var replacement;
6504
6525
  if (keyInit === "animation") replacement = "transition=";
@@ -6530,7 +6551,7 @@ function contributeProp(pass, keyOg, valOg) {
6530
6551
  } else if (keyInit.startsWith("data-")) return;
6531
6552
  }
6532
6553
  if (pass[passVariantOutput] && !isValidStyleKeyInit && !keyInit.startsWith("aria-") && !(keyInit in stylePropsAll) && !(keyInit in skipProps) && !(variants && keyInit in variants) && !(parentVariants && keyInit in parentVariants) && !(styledContextKeys === null || styledContextKeys === void 0 ? void 0 : styledContextKeys.has(keyInit)) && !(styledContext && keyInit in styledContext)) {
6533
- if (globalThis.process.env.NODE_ENV === "development") warnOnce(`variant-non-style:${keyInit}`, `a variant set "${keyInit}", which is not a style. Variants hold styles and aria/data attributes only: set "${keyInit}" on the component one level up.`);
6554
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") warnOnce(`variant-non-style:${keyInit}`, `a variant set "${keyInit}", which is not a style. Variants hold styles and aria/data attributes only: set "${keyInit}" on the component one level up.`);
6534
6555
  return;
6535
6556
  }
6536
6557
  var isVariant = !isValidStyleKeyInit && variants && keyInit in variants;
@@ -6539,7 +6560,7 @@ function contributeProp(pass, keyOg, valOg) {
6539
6560
  var shouldPassProp = !isStyleProp && isHOC || isHOC && keyInit === "disabled" || parentVariants && keyInit in parentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));
6540
6561
  var isHOCShouldPassThrough = isHOC && keyInit in skipProps;
6541
6562
  var shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
6542
- if (globalThis.process.env.NODE_ENV === "development" && debug === "verbose") {
6563
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && debug === "verbose") {
6543
6564
  console.groupCollapsed(` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`);
6544
6565
  log({
6545
6566
  isVariant,
@@ -6557,13 +6578,13 @@ function contributeProp(pass, keyOg, valOg) {
6557
6578
  if (shouldPassThrough) {
6558
6579
  if (keyInit in viewProps) delete viewProps[keyInit];
6559
6580
  viewProps[keyInit] = valInit;
6560
- if (globalThis.process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
6581
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
6561
6582
  if (!isVariant) return;
6562
6583
  }
6563
6584
  if (!isNativeInputColor && shouldCheckSkipProps && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {
6564
6585
  var _getTransitionResolver;
6565
6586
  if (keyInit in skipProps && !(keyInit === "transition" && typeof valInit === "string" && !((_getTransitionResolver = getTransitionResolver()) === null || _getTransitionResolver === void 0 ? void 0 : _getTransitionResolver.resolve(valInit, { animations: driverAnimations }).fused))) {
6566
- if (globalThis.process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
6587
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
6567
6588
  return;
6568
6589
  }
6569
6590
  }
@@ -6606,15 +6627,15 @@ function contributeProp(pass, keyOg, valOg) {
6606
6627
  var transport = previous && typeof previous === "object" && !Array.isArray(previous) && "default" in previous ? previous : { default: previous };
6607
6628
  transport[condition[conditionKey]] = valInit;
6608
6629
  viewProps[keyInit] = transport;
6609
- } else if (globalThis.process.env.NODE_ENV === "development") console.warn(`[tamagui] "${keyInit}" is not a valid style on this component; the conditional variant value is dropped.`);
6630
+ } else if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") console.warn(`[tamagui] "${keyInit}" is not a valid style on this component; the conditional variant value is dropped.`);
6610
6631
  return;
6611
6632
  }
6612
6633
  if (keyInit in stylePropsAll || isRemovedVendorStyleProp(keyInit)) {
6613
- if (globalThis.process.env.NODE_ENV === "development" && false);
6634
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && false);
6614
6635
  return;
6615
6636
  }
6616
6637
  viewProps[keyInit] = valInit;
6617
- if (globalThis.process.env.NODE_ENV === "development" && debug === "verbose") {
6638
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && debug === "verbose") {
6618
6639
  try {
6619
6640
  log(` \u2714\uFE0F expand complete`, keyInit);
6620
6641
  log("style", _objectSpread2({}, styleState.style));
@@ -6649,7 +6670,7 @@ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeN
6649
6670
  var className = staticPassthroughClassName;
6650
6671
  if (staticPassthroughClassName) shouldDoClasses = false;
6651
6672
  var validStyles$1 = staticConfig.validStyles || (staticConfig.isInput ? stylePropsInput : staticConfig.isText ? stylePropsText : validStyles);
6652
- if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-setup`;
6673
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-setup`;
6653
6674
  var styleState = {
6654
6675
  classNames,
6655
6676
  conf,
@@ -6676,8 +6697,8 @@ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeN
6676
6697
  styleState.flatStyleChanged = false;
6677
6698
  styleState.flatStyleKeyCount = 0;
6678
6699
  }
6679
- if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`style-state`;
6680
- if (globalThis.process.env.NODE_ENV === "development" && debug === "verbose" && true) {
6700
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`style-state`;
6701
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && debug === "verbose" && true) {
6681
6702
  if (isDevTools) {
6682
6703
  console.groupCollapsed("🔹 getSplitStyles 👇");
6683
6704
  log({
@@ -6723,7 +6744,7 @@ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeN
6723
6744
  styledContextKeys,
6724
6745
  (noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0),
6725
6746
  debug,
6726
- globalThis.process.env.NODE_ENV === "development" ? parentStaticConfig : void 0,
6747
+ !isProd$11 && globalThis.process.env.NODE_ENV === "development" ? parentStaticConfig : void 0,
6727
6748
  defaultProps,
6728
6749
  driverAnimations,
6729
6750
  driverOutputStyle,
@@ -6787,7 +6808,7 @@ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeN
6787
6808
  frontendGroup = pass[passFrontendGroup];
6788
6809
  frontendContainer = pass[passFrontendContainer];
6789
6810
  frontendContainerType = pass[passFrontendContainerType];
6790
- if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-propsend`;
6811
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-propsend`;
6791
6812
  conditionalStates = styleState.flatStateKeys || null;
6792
6813
  usesSafeArea = !!styleState.flatUsesSafeArea;
6793
6814
  hasMedia = ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) ? styleState.flatMediaKeys : false;
@@ -6897,10 +6918,10 @@ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeN
6897
6918
  delete style1.fontStyle;
6898
6919
  }
6899
6920
  }
6900
- if (globalThis.process.env.NODE_ENV === "development" && debug && debug !== "profile") log(`Found fontFamily native: ${style1.fontFamily}`, faceInfo);
6921
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && debug && debug !== "profile") log(`Found fontFamily native: ${style1.fontFamily}`, faceInfo);
6901
6922
  }
6902
6923
  if (styleState.style) styleState.style = normalizeNativeStyle(styleState.style);
6903
- if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-pre-result`;
6924
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-pre-result`;
6904
6925
  if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
6905
6926
  var provenance = {};
6906
6927
  var hasProvenance = false;
@@ -6994,7 +7015,7 @@ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeN
6994
7015
  if (style2) viewProps.style = style2;
6995
7016
  }
6996
7017
  }
6997
- if (globalThis.process.env.NODE_ENV === "development" && debug === "verbose") {
7018
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && debug === "verbose") {
6998
7019
  if (isDevTools) {
6999
7020
  console.groupEnd();
7000
7021
  console.groupCollapsed("🔹 getSplitStyles ===>");
@@ -7011,7 +7032,7 @@ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeN
7011
7032
  console.groupEnd();
7012
7033
  }
7013
7034
  }
7014
- if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-done`;
7035
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-done`;
7015
7036
  return result;
7016
7037
  };
7017
7038
  var stylePieceStaticConfig = {
@@ -7330,7 +7351,7 @@ function emitAtParentCondition(state, property, value, originalValue, contextOnl
7330
7351
  function emitUnderCondition(state, property, value, cursor, originalValue, contextOnly, warnMode, warnSource) {
7331
7352
  var condition = cursor[conditionValue];
7332
7353
  if (!(condition & conditionResolvedFlag)) {
7333
- if (warnMode && globalThis.process.env.NODE_ENV !== "production") warnRefusedValue(property, warnSource, `unknown modifier "${cursor.problem}"`);
7354
+ if (warnMode && !isProd$11 && globalThis.process.env.NODE_ENV !== "production") warnRefusedValue(property, warnSource, `unknown modifier "${cursor.problem}"`);
7334
7355
  return 0;
7335
7356
  }
7336
7357
  emitValue(state, property, value, cursor, warnMode === 2 ? originalValue : originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
@@ -7344,7 +7365,7 @@ var formatScanFailure = function formatScanFailure2(failure, source, failureInde
7344
7365
  return failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : failure === "over-deep-clause" ? `a clause with more than 5 non-platform conditions` : "an unterminated \"(\"";
7345
7366
  };
7346
7367
  var warnScanFailure = function warnScanFailure2(property, source, failure, failureIndex) {
7347
- if (globalThis.process.env.NODE_ENV === "development") warnRefusedValue(property, source, formatScanFailure(failure, source, failureIndex));
7368
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") warnRefusedValue(property, source, formatScanFailure(failure, source, failureIndex));
7348
7369
  };
7349
7370
  var borderTargets = {
7350
7371
  border: [
@@ -7467,7 +7488,7 @@ function configuredValue(state, property, raw) {
7467
7488
  }
7468
7489
  }
7469
7490
  }
7470
- if (globalThis.process.env.NODE_ENV === "development") {
7491
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") {
7471
7492
  var _state_conf_tokensParsed_color1;
7472
7493
  var category1 = grammar.tokenCategory(property) || grammar.tokenCategory(state.conf.shorthands[property] || property);
7473
7494
  if (category1 && category1 !== "color" && category1 !== "boxShadow" && category1 !== "textShadow" && ((_state_conf_tokensParsed_color1 = state.conf.tokensParsed.color) === null || _state_conf_tokensParsed_color1 === void 0 ? void 0 : _state_conf_tokensParsed_color1[name])) warnOnce(`"${name}" contributes to "color", not "${property}"`);
@@ -7653,7 +7674,7 @@ function resolveNumericValue(value) {
7653
7674
  }
7654
7675
  function emitBorder(state, property, raw, cursor, originalValue, contextOnly) {
7655
7676
  if (property === "borderBlock" || property === "borderInline") {
7656
- if (globalThis.process.env.NODE_ENV === "development") warnOnce(`RN has no logical border shorthand "${property}"; dropping it`);
7677
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") warnOnce(`RN has no logical border shorthand "${property}"; dropping it`);
7657
7678
  return;
7658
7679
  }
7659
7680
  var { width, style, color } = classifyBorderComponents(raw, property === "outline");
@@ -7753,14 +7774,14 @@ function emitValue(state, property, raw, cursor, originalValue, contextOnly) {
7753
7774
  emitResolved(state, "backgroundColor", parts[0], cursor, originalValue, contextOnly);
7754
7775
  return;
7755
7776
  }
7756
- if (globalThis.process.env.NODE_ENV === "development") warnOnce(`native background cannot represent "${raw}"; dropping it`);
7777
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") warnOnce(`native background cannot represent "${raw}"; dropping it`);
7757
7778
  return;
7758
7779
  }
7759
7780
  if (property === "x" || property === "y" || property === "scale" || property === "scaleX" || property === "scaleY" || property === "rotate") {
7760
7781
  var value2 = typeof raw === "string" ? configuredValue(state, property, raw) : raw;
7761
7782
  if (typeof value2 === "string" && !value2.startsWith("theme:")) {
7762
7783
  if (property === "rotate" && !isFinite(numericUnitValue(value2, "deg", "rad")) && true) {
7763
- if (globalThis.process.env.NODE_ENV === "development") warnOnce(`native transform "${property}" cannot represent "${value2}"; dropping it`);
7784
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") warnOnce(`native transform "${property}" cannot represent "${value2}"; dropping it`);
7764
7785
  if (condition & 1) {
7765
7786
  removeTransformValue(state.transformAccumulator, property);
7766
7787
  writeStyleRecord(state, property, void 0, cursor, void 0, recordRetract);
@@ -7853,7 +7874,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
7853
7874
  if (typeof value === "string") {
7854
7875
  var parsed = getConfigRevisionState(state.conf).parseFlatValue(value);
7855
7876
  var [segments, failure, failureIndex] = parsed;
7856
- if (globalThis.process.env.NODE_ENV === "development") {
7877
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") {
7857
7878
  if (getSetting("styleValueSyntax") === "object") {
7858
7879
  if (segments.length > 5 || segments.length >= 5 && segments[2] !== -1 || value.includes(":")) warnOnce(`syntax:string:${property}=${value}`, `string syntax is disabled by config (styleValueSyntax: 'object'); received "${property}=${value}"`);
7859
7880
  }
@@ -7877,7 +7898,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
7877
7898
  var payload = (_ = (_slices = slices)[_index = index]) !== null && _ !== void 0 ? _ : _slices[_index] = value.slice(start, end);
7878
7899
  emitConditionalValue(state, property, payload, parentCondition, payload, sink, warnMode, contextOnly);
7879
7900
  hasBase = true;
7880
- } else if (globalThis.process.env.NODE_ENV !== "production" && warnMode && !chainCount && (failure === "invalid-character" || failure === "stray-comment-close")) {
7901
+ } else if (!isProd$11 && globalThis.process.env.NODE_ENV !== "production" && warnMode && !chainCount && (failure === "invalid-character" || failure === "stray-comment-close")) {
7881
7902
  emitConditionalValue(state, property, value, parentCondition, value, sink, warnMode, contextOnly);
7882
7903
  hasBase = true;
7883
7904
  } else if (warnMode) warnScanFailure(property, value, failure, failureIndex);
@@ -7895,7 +7916,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
7895
7916
  }
7896
7917
  lastPayloadStart = start1;
7897
7918
  if (start1 === end1) {
7898
- if (warnMode && globalThis.process.env.NODE_ENV === "development") warnRefusedValue(property, value, "a conditional clause has no value");
7919
+ if (warnMode && !isProd$11 && globalThis.process.env.NODE_ENV === "development") warnRefusedValue(property, value, "a conditional clause has no value");
7899
7920
  continue;
7900
7921
  }
7901
7922
  var cursor = conditionFromKey(state, (_1 = (_slices1 = slices)[_ref = index1 + 2]) !== null && _1 !== void 0 ? _1 : _slices1[_ref] = value.slice(segments[index1 + 2], segments[index1 + 3]), parentCondition);
@@ -7905,10 +7926,10 @@ function walkConditionalValue(state, property, value, parent, sink) {
7905
7926
  emitConditionalValue(state, property, (_2 = (_slices2 = slices)[_index1 = index1]) !== null && _2 !== void 0 ? _2 : _slices2[_index1] = value.slice(start1, end1), cursor, value, sink, warnMode, contextOnly);
7906
7927
  }
7907
7928
  }
7908
- if (globalThis.process.env.NODE_ENV !== "production") lastPayload = value.slice(lastPayloadStart);
7929
+ if (!isProd$11 && globalThis.process.env.NODE_ENV !== "production") lastPayload = value.slice(lastPayloadStart);
7909
7930
  } else {
7910
7931
  if (!value || typeof value !== "object" || Array.isArray(value) || isVariable(value) || !classifyConditionalObject(value, state)) return false;
7911
- if (globalThis.process.env.NODE_ENV === "development") {
7932
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") {
7912
7933
  if (getSetting("styleValueSyntax") === "string") warnOnce(`syntax:object:${property}=${JSON.stringify(value)}`, `object-form conditional syntax is disabled by config (styleValueSyntax: 'string'); received "${property}"`);
7913
7934
  }
7914
7935
  if (value.default != null) {
@@ -7922,7 +7943,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
7922
7943
  if (cursor1[conditionValue] & conditionResolvedFlag || warnMode) emitConditionalValue(state, property, value[key], cursor1, value[key], sink, warnMode, contextOnly);
7923
7944
  }
7924
7945
  }
7925
- if (warnMode && globalThis.process.env.NODE_ENV === "development" && typeof value === "string" && !hasBase && conditions && getConfigRevisionState(state.conf).tokenCategory(property) && getConfigRevisionState(state.conf).propertyKind(property) !== 8 && property !== "boxShadow" && property !== "textShadow" && property !== "fontFamily" && property !== "gap" && splitComponents(lastPayload).length > 1) warnOnce(`${property}="${value}" has multiple values after its first conditional. Write the base value before the first conditional.`);
7946
+ if (warnMode && !isProd$11 && globalThis.process.env.NODE_ENV === "development" && typeof value === "string" && !hasBase && conditions && getConfigRevisionState(state.conf).tokenCategory(property) && getConfigRevisionState(state.conf).propertyKind(property) !== 8 && property !== "boxShadow" && property !== "textShadow" && property !== "fontFamily" && property !== "gap" && splitComponents(lastPayload).length > 1) warnOnce(`${property}="${value}" has multiple values after its first conditional. Write the base value before the first conditional.`);
7926
7947
  if (warnMode === 1 && conditions & 12 && !hasBase) {
7927
7948
  var resting = property === "opacity" || property.startsWith("scale") ? 1 : property === "rotate" ? "0deg" : property === "x" || property === "y" ? 0 : null;
7928
7949
  var layers = state.flatPropertyLayers;
@@ -7952,7 +7973,7 @@ function contributeValue(state, property, value, originalValue) {
7952
7973
  }
7953
7974
  var compositeKind = 0;
7954
7975
  if (compositeKind > 0 && compositeKind < 6 && (typeof value === "string" && value.indexOf(":") !== -1 || value && typeof value === "object" && !Array.isArray(value) && !isVariable(value) && classifyConditionalObject(value, state))) {
7955
- if (globalThis.process.env.NODE_ENV === "development") warnOnce(`conditional "${property}" needs its composite property; dropping it`);
7976
+ if (!isProd$11 && globalThis.process.env.NODE_ENV === "development") warnOnce(`conditional "${property}" needs its composite property; dropping it`);
7956
7977
  return true;
7957
7978
  }
7958
7979
  if (value === "safe") {
@@ -8177,6 +8198,7 @@ function setElementProps(element) {
8177
8198
  }
8178
8199
  //#endregion
8179
8200
  //#region ../web/dist/esm/helpers/subscribeToContextGroup.native.js
8201
+ var isProd$10 = globalThis.process.env.NODE_ENV === "production";
8180
8202
  var useGroupSetRevision = function useGroupSetRevision2(pseudoGroups, mediaGroups) {
8181
8203
  var previous = (0, react.useRef)({
8182
8204
  pseudoGroups,
@@ -8214,7 +8236,7 @@ var setsEqual = function setsEqual2(a, b) {
8214
8236
  var subscribeToContextGroup = function subscribeToContextGroup2(props) {
8215
8237
  var { pseudoGroups, mediaGroups, groupContext } = props;
8216
8238
  if (pseudoGroups || mediaGroups) {
8217
- if (globalThis.process.env.NODE_ENV === "development" && !groupContext) console.debug(`No context group found`);
8239
+ if (!isProd$10 && globalThis.process.env.NODE_ENV === "development" && !groupContext) console.debug(`No context group found`);
8218
8240
  var disposables = /* @__PURE__ */ new Set();
8219
8241
  if (pseudoGroups) {
8220
8242
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -8512,10 +8534,11 @@ function ThemeDebug(param) {
8512
8534
  ThemeDebug["displayName"] = "ThemeDebug";
8513
8535
  //#endregion
8514
8536
  //#region ../web/dist/esm/views/Theme.native.js
8537
+ var isProd$9 = globalThis.process.env.NODE_ENV === "production";
8515
8538
  var Theme = createRefComponent(function Theme2(props, ref) {
8516
8539
  "use no memo";
8517
8540
  if (props.disable) return props.children;
8518
- if (globalThis.process.env.NODE_ENV === "development") {
8541
+ if (!isProd$9 && globalThis.process.env.NODE_ENV === "development") {
8519
8542
  for (var key in props) if (!reservedThemeProps[key] && key !== "srcloc" && !key.startsWith("data-")) warnOnce(`theme-update:${key}`, `<Theme ${key}=...> no longer accepts inline values. Wrap the subtree in <ThemeUpdate ${key}=...> instead.`);
8520
8543
  }
8521
8544
  var { passThrough } = props;
@@ -8544,7 +8567,7 @@ function getThemedChildren(themeState, children, props) {
8544
8567
  var { shallow, forceClassName } = props;
8545
8568
  var state = stateRef.current;
8546
8569
  var shouldRenderChildrenWithTheme = state.hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props);
8547
- if (globalThis.process.env.NODE_ENV === "development" && props.debug === "visualize") children = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeDebug, {
8570
+ if (!isProd$9 && globalThis.process.env.NODE_ENV === "development" && props.debug === "visualize") children = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeDebug, {
8548
8571
  themeState,
8549
8572
  themeProps: props,
8550
8573
  children
@@ -8561,7 +8584,7 @@ function getThemedChildren(themeState, children, props) {
8561
8584
  if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
8562
8585
  if (shallow) if (!themeState.parentId) {} else {
8563
8586
  var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
8564
- if (!parentState) throw new Error(globalThis.process.env.NODE_ENV !== "production" ? formatDiagnostic("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
8587
+ if (!parentState) throw new Error(!isProd$9 && globalThis.process.env.NODE_ENV !== "production" ? formatDiagnostic("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
8565
8588
  name: themeState.name,
8566
8589
  parentId: themeState.parentId
8567
8590
  }) : "❌ Error 014");
@@ -8572,7 +8595,7 @@ function getThemedChildren(themeState, children, props) {
8572
8595
  })) : child;
8573
8596
  });
8574
8597
  }
8575
- if (globalThis.process.env.NODE_ENV === "development") {
8598
+ if (!isProd$9 && globalThis.process.env.NODE_ENV === "development") {
8576
8599
  if (!passThrough && props.debug) console.warn(` getThemedChildren`, {
8577
8600
  requiresExtraWrapper,
8578
8601
  forceClassName,
@@ -8626,6 +8649,7 @@ var _excluded2$2 = [
8626
8649
  "onClick",
8627
8650
  "theme"
8628
8651
  ];
8652
+ var isProd$8 = globalThis.process.env.NODE_ENV === "production";
8629
8653
  var time$1;
8630
8654
  var debugKeyListeners;
8631
8655
  var startVisualizer;
@@ -8654,7 +8678,7 @@ var hasSetupBaseViews = false;
8654
8678
  var lastInteractionWasKeyboard = { value: false };
8655
8679
  var lastInteractionWasTouch = { value: false };
8656
8680
  function createComponent(staticConfig) {
8657
- if (process.env.TAMAGUI_RUNTIME === "zero") throw new Error(globalThis.process.env.NODE_ENV !== "production" ? `[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.` : "❌ Error 010");
8681
+ if (process.env.TAMAGUI_RUNTIME === "zero") throw new Error(!isProd$8 && globalThis.process.env.NODE_ENV !== "production" ? `[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.` : "❌ Error 010");
8658
8682
  var config = null;
8659
8683
  var resolvedDefaultProps;
8660
8684
  var resolvedStyleRevision = -1;
@@ -8678,8 +8702,8 @@ function createComponent(staticConfig) {
8678
8702
  }
8679
8703
  var styleStaticConfig = resolvedStyleStaticConfig;
8680
8704
  styleStaticConfig.styledContextKeys;
8681
- var internalID = globalThis.process.env.NODE_ENV === "development" ? react.default.useId() : "";
8682
- if (globalThis.process.env.NODE_ENV === "development") {
8705
+ var internalID = !isProd$8 && globalThis.process.env.NODE_ENV === "development" ? react.default.useId() : "";
8706
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development") {
8683
8707
  if (startVisualizer) {
8684
8708
  startVisualizer();
8685
8709
  startVisualizer = void 0;
@@ -8694,7 +8718,7 @@ function createComponent(staticConfig) {
8694
8718
  BaseView = baseViews.View;
8695
8719
  }
8696
8720
  }
8697
- if (globalThis.process.env.NODE_ENV === "test") {
8721
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "test") {
8698
8722
  var testRenderCount = propsIn["data-test-renders"];
8699
8723
  if (testRenderCount && typeof testRenderCount === "object" && !Object.isFrozen(testRenderCount)) {
8700
8724
  var _testRenderCount_current;
@@ -8709,13 +8733,13 @@ function createComponent(staticConfig) {
8709
8733
  var componentContext = react.default.useContext(ComponentContext);
8710
8734
  var hasTextAncestor = false;
8711
8735
  var isInsideNativeMenu = isAndroid ? react.default.useContext(NativeMenuContext) : false;
8712
- if (globalThis.process.env.NODE_ENV === "development" && !time$1 && globalThis.time) time$1 = globalThis.time;
8713
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`non-tamagui time (ignore)`;
8736
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && !time$1 && globalThis.time) time$1 = globalThis.time;
8737
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`non-tamagui time (ignore)`;
8714
8738
  var props = propsIn;
8715
8739
  var [nextProps, overrides] = mergeComponentProps(resolvedDefaultProps, styledContextValue, propsIn);
8716
8740
  props = nextProps;
8717
8741
  overriddenContextProps = overrides;
8718
- if (globalThis.process.env.NODE_ENV === "development" && true) react.default.useEffect(function() {
8742
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && true) react.default.useEffect(function() {
8719
8743
  var node;
8720
8744
  var overlay = null;
8721
8745
  var remove = function remove2() {
@@ -8803,7 +8827,7 @@ function createComponent(staticConfig) {
8803
8827
  });
8804
8828
  }, [platformPseudo, props.disabled]);
8805
8829
  var setStateShallow = componentState.setStateShallow;
8806
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`use-state`;
8830
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`use-state`;
8807
8831
  var renderProp = props.render;
8808
8832
  var element = Component;
8809
8833
  var BaseComponent = isText ? BaseText || element || "span" : BaseView || element || (hasTextAncestor ? "span" : "div");
@@ -8813,7 +8837,7 @@ function createComponent(staticConfig) {
8813
8837
  var disableThemeProp = false;
8814
8838
  var hocThemesSelf = isHOC && "theme" in props;
8815
8839
  var disableTheme = disableThemeProp || isHOC && !hocThemesSelf;
8816
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`theme-props`;
8840
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`theme-props`;
8817
8841
  var themeStateProps = {
8818
8842
  disable: disableTheme,
8819
8843
  shallow: props.themeShallow,
@@ -8830,7 +8854,7 @@ function createComponent(staticConfig) {
8830
8854
  var _stateRef_current_nativeStyleUpdate, _stateRef_current3;
8831
8855
  return (_ref9 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _ref9 !== void 0 ? _ref9 : false;
8832
8856
  });
8833
- if (globalThis.process.env.NODE_ENV === "development") {
8857
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development") {
8834
8858
  if (debugProp && debugProp !== "profile") {
8835
8859
  var name = `${displayName || (Component === null || Component === void 0 ? void 0 : Component.displayName) || (Component === null || Component === void 0 ? void 0 : Component.name) || "[Unnamed Component]"}`;
8836
8860
  var type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState === null || presenceState === void 0 ? void 0 : presenceState.isPresent) === false ? "(EXIT)" : "");
@@ -8858,13 +8882,13 @@ ${banner}
8858
8882
  });
8859
8883
  }
8860
8884
  }
8861
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`pre-theme-media`;
8885
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`pre-theme-media`;
8862
8886
  var [theme, themeState] = useThemeWithState(themeStateProps);
8863
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`theme`;
8887
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`theme`;
8864
8888
  if (!isAnimatedCustomComponent) elementType = element || elementType;
8865
8889
  var mediaState = useMedia(stateRef.current, debugProp, stateRef.current);
8866
8890
  setDidGetVariableValue(false);
8867
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`media`;
8891
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`media`;
8868
8892
  var styleProps = {
8869
8893
  mediaState,
8870
8894
  noClass,
@@ -8878,7 +8902,7 @@ ${banner}
8878
8902
  prevStyle: stateRef.current.prevStyle
8879
8903
  };
8880
8904
  var themeName = (themeState === null || themeState === void 0 ? void 0 : themeState.name) || "";
8881
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`split-styles-prepare`;
8905
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`split-styles-prepare`;
8882
8906
  var splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
8883
8907
  var finalizedComponentState = componentState.finalizeStyleFlags(!!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasEnterStyle), !!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.platformPseudo));
8884
8908
  hasEnterStyle = finalizedComponentState.hasEnterStyle;
@@ -9111,7 +9135,7 @@ ${banner}
9111
9135
  stateRef.current.nextState = updatedState;
9112
9136
  if (canAvoidReRender) {
9113
9137
  var _stateRef_current_updateStyleListener, _stateRef_current3;
9114
- if (globalThis.process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
9138
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
9115
9139
  console.groupCollapsed(`[\u26A1\uFE0F] avoid setState`, displayName, next, {
9116
9140
  updatedState,
9117
9141
  props
@@ -9122,7 +9146,7 @@ ${banner}
9122
9146
  updateGroupListeners2();
9123
9147
  (_stateRef_current_updateStyleListener = (_stateRef_current3 = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current3);
9124
9148
  } else {
9125
- if (globalThis.process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") console.info(`[\u{1F40C}] re-render`, {
9149
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") console.info(`[\u{1F40C}] re-render`, {
9126
9150
  canAvoidReRender,
9127
9151
  next
9128
9152
  });
@@ -9134,7 +9158,7 @@ ${banner}
9134
9158
  (_stateRef_current_setStateShallow = (_stateRef_current3 = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current3, state2);
9135
9159
  };
9136
9160
  }
9137
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`split-styles`;
9161
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`split-styles`;
9138
9162
  if (splitStyles) {
9139
9163
  if (props.group && props.untilMeasured === "hide" && !stateRef.current.hasMeasured) {
9140
9164
  splitStyles.style = splitStyles.style || {};
@@ -9144,7 +9168,7 @@ ${banner}
9144
9168
  var hasRuntimeMediaKeys = (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasMedia) && splitStyles.hasMedia !== true;
9145
9169
  var shouldListenForMedia = didGetVariableValue() || hasRuntimeMediaKeys || noClass && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasMedia) === true;
9146
9170
  var mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
9147
- if (globalThis.process.env.NODE_ENV === "development" && debugProp === "verbose") console.info(`useMedia() createComponent`, shouldListenForMedia, mediaListeningKeys);
9171
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && debugProp === "verbose") console.info(`useMedia() createComponent`, shouldListenForMedia, mediaListeningKeys);
9148
9172
  setMediaShouldUpdate(stateRef.current, shouldListenForMedia, mediaListeningKeys, stateRef.current.optimizeForFirstRender);
9149
9173
  var { viewProps: viewPropsIn, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};
9150
9174
  var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
@@ -9196,10 +9220,10 @@ ${banner}
9196
9220
  if (animations.className) viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`;
9197
9221
  }
9198
9222
  }
9199
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`animations`;
9223
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`animations`;
9200
9224
  }
9201
- if (globalThis.process.env.NODE_ENV === "development" && props.untilMeasured && !isContainer) console.warn(`You set untilMeasured without establishing a container. Set it on the parent with container or container="name", not on the child using a container clause.`);
9202
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`destructure`;
9225
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && props.untilMeasured && !isContainer) console.warn(`You set untilMeasured without establishing a container. Set it on the parent with container or container="name", not on the child using a container clause.`);
9226
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`destructure`;
9203
9227
  if (!isPassthrough && groupContext && isContainer) nonTamaguiProps.onLayout = composeEventHandlers(nonTamaguiProps.onLayout, function(e) {
9204
9228
  var _stateRef_current_group;
9205
9229
  var layout = e.nativeEvent.layout;
@@ -9229,15 +9253,15 @@ ${banner}
9229
9253
  if (stateRef.current.host) setRef(forwardedRef, stateRef.current.host);
9230
9254
  }, [forwardedRef]);
9231
9255
  usePointerEvents(props, viewProps);
9232
- if (globalThis.process.env.NODE_ENV === "development") {}
9233
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`events-hooks`;
9256
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development") {}
9257
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`events-hooks`;
9234
9258
  var unPress = function unPress2() {
9235
9259
  setStateShallow({
9236
9260
  press: false,
9237
9261
  pressIn: false
9238
9262
  });
9239
9263
  };
9240
- if (globalThis.process.env.NODE_ENV === "development" && false);
9264
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && false);
9241
9265
  useIsomorphicLayoutEffect(function() {
9242
9266
  if (state.unmounted === true && hasEnterStyle) {
9243
9267
  setStateShallow({ unmounted: "should-enter" });
@@ -9317,8 +9341,8 @@ ${banner}
9317
9341
  var attachHover = isNativeDesktop && !!(hasDynamicGroupChildren || needsHoverState || onMouseEnter || onMouseLeave);
9318
9342
  var shouldAttach = !disabled && !props.asChild && Boolean(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle);
9319
9343
  var needsPressState = Boolean(hasDynamicGroupChildren || runtimePressStyle);
9320
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`events-setup`;
9321
- if (globalThis.process.env.NODE_ENV === "development" && debugProp === "verbose") log(`\u{1FAA9} events()`, {
9344
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`events-setup`;
9345
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && debugProp === "verbose") log(`\u{1FAA9} events()`, {
9322
9346
  runtimeFocusStyle,
9323
9347
  runtimePressStyle,
9324
9348
  runtimeHoverStyle,
@@ -9415,8 +9439,8 @@ ${banner}
9415
9439
  delayPressOut: viewProps.delayPressOut,
9416
9440
  minPressDuration: 0
9417
9441
  });
9418
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`events`;
9419
- if (globalThis.process.env.NODE_ENV === "development" && debugProp === "verbose") log(`events`, {
9442
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`events`;
9443
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && debugProp === "verbose") log(`events`, {
9420
9444
  events,
9421
9445
  attachHover,
9422
9446
  attachPress
@@ -9430,7 +9454,7 @@ ${banner}
9430
9454
  var pressDebugName = displayName ? pressDebugDetail ? `${displayName}:${pressDebugDetail}` : displayName : pressDebugDetail || null;
9431
9455
  hasRealPressEvents = !!(onPress || onPressIn || onPressOut || onLongPress);
9432
9456
  pressGesture = useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNativeMenu, pressDebugName, hasRealPressEvents);
9433
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`hooks`;
9457
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`hooks`;
9434
9458
  if (asChild && !isHOC) {
9435
9459
  elementType = Slot;
9436
9460
  Object.assign(viewProps, {
@@ -9438,7 +9462,7 @@ ${banner}
9438
9462
  onLongPress
9439
9463
  });
9440
9464
  }
9441
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`spaced-as-child`;
9465
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`spaced-as-child`;
9442
9466
  var content;
9443
9467
  var childrenFromHooks = hooks.useChildren ? hooks.useChildren(elementType, children, viewProps, isPassthrough) : void 0;
9444
9468
  if (isPassthrough) content = /* @__PURE__ */ react.default.createElement(BaseComponent, { style: { display: "contents" } }, propsIn.children);
@@ -9465,7 +9489,7 @@ ${banner}
9465
9489
  isInput: staticConfig.isInput
9466
9490
  });
9467
9491
  }
9468
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`use-children`;
9492
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`use-children`;
9469
9493
  }
9470
9494
  content = wrapWithGestureDetector(content, pressGesture, stateRef, isHOC, !isHOC && Component && typeof Component !== "string", hasRealPressEvents && !isInsideNativeMenu);
9471
9495
  var ResetPresence = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.ResetPresence;
@@ -9476,7 +9500,7 @@ ${banner}
9476
9500
  disabled: !needsReset,
9477
9501
  children: content
9478
9502
  });
9479
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`create-element`;
9503
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`create-element`;
9480
9504
  if (groupName || isContainer) content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GroupContext.Provider, {
9481
9505
  value: allGroupContexts,
9482
9506
  children: content
@@ -9495,18 +9519,18 @@ ${banner}
9495
9519
  children: content
9496
9520
  }));
9497
9521
  }
9498
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`group-context`;
9522
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`group-context`;
9499
9523
  content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef);
9500
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`themed-children`;
9524
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`themed-children`;
9501
9525
  if (overriddenContextProps && contextForOverride) {
9502
9526
  var Provider = contextForOverride.Provider;
9503
9527
  for (var key2 in styledContextValue) if (!(key2 in overriddenContextProps)) overriddenContextProps[key2] = styledContextValue[key2];
9504
9528
  content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Provider, _objectSpread2(_objectSpread2({ __disableMergeDefaultValues: true }, overriddenContextProps), {}, { children: content }));
9505
9529
  }
9506
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`context-override`;
9530
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`context-override`;
9507
9531
  if (process.env.TAMAGUI_RUNTIME !== "island" && false);
9508
- if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`style-tags`;
9509
- if (globalThis.process.env.NODE_ENV === "development") {
9532
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) time$1`style-tags`;
9533
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development") {
9510
9534
  if (debugProp && debugProp !== "profile") {
9511
9535
  log(`render <${typeof elementType === "string" ? elementType : "Component"} /> (${internalID}) with props`);
9512
9536
  log(`state: `, state);
@@ -9515,7 +9539,7 @@ ${banner}
9515
9539
  for (var key3 in splitStylesStyle) log(key3, splitStylesStyle[key3]);
9516
9540
  }
9517
9541
  }
9518
- if (globalThis.process.env.NODE_ENV === "development" && time$1) {
9542
+ if (!isProd$8 && globalThis.process.env.NODE_ENV === "development" && time$1) {
9519
9543
  time$1`rest`;
9520
9544
  if (!globalThis["willPrint"]) {
9521
9545
  globalThis["willPrint"] = true;
@@ -9909,6 +9933,7 @@ function resolveAnimationDriver(driver) {
9909
9933
  }
9910
9934
  //#endregion
9911
9935
  //#region ../web/dist/esm/helpers/createDesignSystem.native.js
9936
+ var isProd$7 = globalThis.process.env.NODE_ENV === "production";
9912
9937
  function createTokenCSS(tokens, shouldTokenCategoryHaveUnits) {
9913
9938
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
9914
9939
  var declarations = [];
@@ -9988,7 +10013,7 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
9988
10013
  return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}${sep}{${sep}${[...decs].join(`;${sep}`)}${developmentWhitespace ? "\n" : ""}}`;
9989
10014
  };
9990
10015
  var cssRuleSets = [];
9991
- var developmentWhitespace = globalThis.process.env.NODE_ENV === "development";
10016
+ var developmentWhitespace = !isProd$7 && globalThis.process.env.NODE_ENV === "development";
9992
10017
  var sep = developmentWhitespace ? " " : "";
9993
10018
  if (declarations.length) cssRuleSets.push(declarationsToRuleSet2(declarations));
9994
10019
  var fontSelectors = [];
@@ -10152,6 +10177,7 @@ function proxyThemeToParents(themeName, theme) {
10152
10177
  }
10153
10178
  //#endregion
10154
10179
  //#region ../web/dist/esm/helpers/variableValue.native.js
10180
+ var isProd$6 = globalThis.process.env.NODE_ENV === "production";
10155
10181
  var unitlessSuffixes = [
10156
10182
  "opacity",
10157
10183
  "scale",
@@ -10177,7 +10203,7 @@ var tokenCategoryOrder = [
10177
10203
  "zIndex"
10178
10204
  ];
10179
10205
  var findVariableToken = function findVariableToken2(tokensParsed, name) {
10180
- if (globalThis.process.env.NODE_ENV === "development") {
10206
+ if (!isProd$6 && globalThis.process.env.NODE_ENV === "development") {
10181
10207
  var found;
10182
10208
  var foundCategory;
10183
10209
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -10352,8 +10378,9 @@ function _define_property$1(obj, key, value) {
10352
10378
  else obj[key] = value;
10353
10379
  return obj;
10354
10380
  }
10381
+ var isProd$5 = globalThis.process.env.NODE_ENV === "production";
10355
10382
  var Tamagui = (function() {
10356
- if (globalThis.process.env.NODE_ENV === "development") return new (/* @__PURE__ */ (function() {
10383
+ if (!isProd$5 && globalThis.process.env.NODE_ENV === "development") return new (/* @__PURE__ */ (function() {
10357
10384
  "use strict";
10358
10385
  function TamaguiManager2() {
10359
10386
  _class_call_check$1(this, TamaguiManager2);
@@ -10398,6 +10425,7 @@ var identifierToValue = /* @__PURE__ */ new Map();
10398
10425
  //#endregion
10399
10426
  //#region ../web/dist/esm/createTamagui.native.js
10400
10427
  var _excluded$3 = ["defaultSize", "defaultTokens"];
10428
+ var isProd$4 = globalThis.process.env.NODE_ENV === "production";
10401
10429
  var reservedCssIdentsLower = /* @__PURE__ */ new Set([
10402
10430
  "inherit",
10403
10431
  "initial",
@@ -10563,7 +10591,7 @@ function createTamagui$2(configIn) {
10563
10591
  defaultFontToken
10564
10592
  });
10565
10593
  initializeTamaguiConfig(config);
10566
- if (globalThis.process.env.NODE_ENV !== "development") return config;
10594
+ if (isProd$4 || globalThis.process.env.NODE_ENV !== "development") return config;
10567
10595
  if ((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0 ? void 0 : _process_env_DEBUG.startsWith("tamagui")) console.info("Tamagui config:", config);
10568
10596
  if (!globalThis["Tamagui"]) globalThis["Tamagui"] = Tamagui;
10569
10597
  return config;
@@ -10655,9 +10683,10 @@ var builtinShorthands = {
10655
10683
  };
10656
10684
  //#endregion
10657
10685
  //#region ../web/dist/esm/createTokens.native.js
10686
+ var isProd$3 = globalThis.process.env.NODE_ENV === "production";
10658
10687
  function createTokens(tokens) {
10659
10688
  var _process_env_TAMAGUI_TOKEN_PREFIX;
10660
- if (globalThis.process.env.NODE_ENV !== "production") validateNoTrueTokenKeys(tokens);
10689
+ if (!isProd$3 && globalThis.process.env.NODE_ENV !== "production") validateNoTrueTokenKeys(tokens);
10661
10690
  return createVariables(tokens, (_process_env_TAMAGUI_TOKEN_PREFIX = process.env.TAMAGUI_TOKEN_PREFIX) !== null && _process_env_TAMAGUI_TOKEN_PREFIX !== void 0 ? _process_env_TAMAGUI_TOKEN_PREFIX : "t");
10662
10691
  }
10663
10692
  function validateNoTrueTokenKeys(tokens) {
@@ -10815,6 +10844,7 @@ var _excluded$2 = [
10815
10844
  "context",
10816
10845
  "contextProps"
10817
10846
  ];
10847
+ var isProd$2 = globalThis.process.env.NODE_ENV === "production";
10818
10848
  function styledFn() {
10819
10849
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
10820
10850
  return styledImpl(void 0, ...args);
@@ -10827,7 +10857,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10827
10857
  var config = hasBaseClassName ? maybeConfig : configOrOptions;
10828
10858
  var options = optionsIn;
10829
10859
  var displayName = options === null || options === void 0 ? void 0 : options.displayName;
10830
- if (!ComponentIn) throw new Error(globalThis.process.env.NODE_ENV === "development" ? "No component given to styled()" : "❌ Error 006");
10860
+ if (!ComponentIn) throw new Error(!isProd$2 && globalThis.process.env.NODE_ENV === "development" ? "No component given to styled()" : "❌ Error 006");
10831
10861
  var parentStaticConfig = ComponentIn["staticConfig"];
10832
10862
  Boolean((config === null || config === void 0 ? void 0 : config.isReactNative) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isReactNative));
10833
10863
  var isReactNative = Boolean((config === null || config === void 0 ? void 0 : config.isReactNative) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isReactNative));
@@ -10911,14 +10941,15 @@ var useIsTouchDevice = function useIsTouchDevice2() {
10911
10941
  };
10912
10942
  //#endregion
10913
10943
  //#region ../web/dist/esm/hooks/useAnimationDriver.native.js
10944
+ var isProd$1 = globalThis.process.env.NODE_ENV === "production";
10914
10945
  function useAnimationDriver() {
10915
10946
  var { animationDriver } = useConfiguration();
10916
- if (!animationDriver || animationDriver.isStub) throw new Error(globalThis.process.env.NODE_ENV !== "production" ? `No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations` : "❌ Error 011");
10947
+ if (!animationDriver || animationDriver.isStub) throw new Error(!isProd$1 && globalThis.process.env.NODE_ENV !== "production" ? `No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations` : "❌ Error 011");
10917
10948
  return animationDriver;
10918
10949
  }
10919
10950
  function useAnimatedNumberDriver() {
10920
10951
  var animatedDriver = useAnimationDriver();
10921
- if (typeof animatedDriver.useAnimatedNumber !== "function" || typeof animatedDriver.useAnimatedNumberStyle !== "function" || typeof animatedDriver.useAnimatedNumbersStyle !== "function" || typeof animatedDriver.useAnimatedNumberReaction !== "function") throw new Error(globalThis.process.env.NODE_ENV !== "production" ? `The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css` : "❌ Error 012");
10952
+ if (typeof animatedDriver.useAnimatedNumber !== "function" || typeof animatedDriver.useAnimatedNumberStyle !== "function" || typeof animatedDriver.useAnimatedNumbersStyle !== "function" || typeof animatedDriver.useAnimatedNumberReaction !== "function") throw new Error(!isProd$1 && globalThis.process.env.NODE_ENV !== "production" ? `The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css` : "❌ Error 012");
10922
10953
  return animatedDriver;
10923
10954
  }
10924
10955
  function useAnimatedNumber(initial) {
@@ -12588,6 +12619,7 @@ var ThemeProvider = function ThemeProvider2(props) {
12588
12619
  };
12589
12620
  //#endregion
12590
12621
  //#region ../web/dist/esm/views/TamaguiProvider.native.js
12622
+ var isProd = globalThis.process.env.NODE_ENV === "production";
12591
12623
  var _cachedFirstKey;
12592
12624
  var _cachedConfig;
12593
12625
  function firstThemeKey(config) {
@@ -12638,7 +12670,7 @@ function TamaguiProvider$2(param) {
12638
12670
  });
12639
12671
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
12640
12672
  !process.env.TAMAGUI_DID_OUTPUT_CSS && false,
12641
- globalThis.process.env.NODE_ENV !== "production" && false,
12673
+ !isProd && globalThis.process.env.NODE_ENV !== "production" && false,
12642
12674
  hasSafeAreaTracker() && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SafeAreaTracker, {}),
12643
12675
  contents
12644
12676
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "3.0.18",
3
+ "version": "3.1.0",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -137,23 +137,23 @@
137
137
  "clean:build": "tamagui-build clean:build"
138
138
  },
139
139
  "dependencies": {
140
- "@tamagui/compose-refs": "3.0.18",
141
- "@tamagui/constants": "3.0.18",
142
- "@tamagui/helpers": "3.0.18",
143
- "@tamagui/react-native-media-driver": "3.0.18",
144
- "@tamagui/react-native-use-pressable": "3.0.18",
145
- "@tamagui/use-element-layout": "3.0.18",
146
- "@tamagui/use-event": "3.0.18",
147
- "@tamagui/web": "3.0.18"
140
+ "@tamagui/compose-refs": "3.1.0",
141
+ "@tamagui/constants": "3.1.0",
142
+ "@tamagui/helpers": "3.1.0",
143
+ "@tamagui/react-native-media-driver": "3.1.0",
144
+ "@tamagui/react-native-use-pressable": "3.1.0",
145
+ "@tamagui/use-element-layout": "3.1.0",
146
+ "@tamagui/use-event": "3.1.0",
147
+ "@tamagui/web": "3.1.0"
148
148
  },
149
149
  "devDependencies": {
150
- "@tamagui/build": "3.0.18",
151
- "@tamagui/native-bundle": "3.0.18",
152
- "@tamagui/react-native-web-lite": "3.0.18",
150
+ "@tamagui/build": "3.1.0",
151
+ "@tamagui/native-bundle": "3.1.0",
152
+ "@tamagui/react-native-web-lite": "3.1.0",
153
153
  "@testing-library/react": "^16.1.0",
154
154
  "csstype": "^3.0.10",
155
- "react": "19.2.3",
156
- "react-native": "0.87.1",
155
+ "react": "19.3.0",
156
+ "react-native": "0.88.0",
157
157
  "typescript": "7.0.2",
158
158
  "vitest": "4.1.0"
159
159
  },
@@ -164,5 +164,5 @@
164
164
  "./dist/cjs": "./dist/esm/index.native.js",
165
165
  "./theme-update": "./dist/esm/theme-update.native.js"
166
166
  },
167
- "releaseSourceCommit": "e7ebeed9d446eee3e0eda4b0dd5e55dd8ec46bf7"
167
+ "releaseSourceCommit": "690ee7d9f451e684f0f197d160c261cdf37dd79f"
168
168
  }