@tamagui/core 1.129.3 → 1.129.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/native.js CHANGED
@@ -2763,57 +2763,6 @@ var require_defaultComponentState_native = __commonJS({
2763
2763
  }
2764
2764
  });
2765
2765
 
2766
- // ../web/dist/cjs/helpers/consoleLog.native.js
2767
- var require_consoleLog_native = __commonJS({
2768
- "../web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
2769
- "use strict";
2770
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
2771
- for (var name in all) __defProp2(target, name, {
2772
- get: all[name],
2773
- enumerable: !0
2774
- });
2775
- }, __copyProps2 = function(to, from, except, desc) {
2776
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
2777
- if (from && typeof from == "object" || typeof from == "function") try {
2778
- for (var _loop = function() {
2779
- var key = _step.value;
2780
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
2781
- get: function() {
2782
- return from[key];
2783
- },
2784
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
2785
- });
2786
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
2787
- } catch (err) {
2788
- _didIteratorError = !0, _iteratorError = err;
2789
- } finally {
2790
- try {
2791
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
2792
- } finally {
2793
- if (_didIteratorError)
2794
- throw _iteratorError;
2795
- }
2796
- }
2797
- return to;
2798
- }, __toCommonJS2 = function(mod) {
2799
- return __copyProps2(__defProp2({}, "__esModule", {
2800
- value: !0
2801
- }), mod);
2802
- }, consoleLog_native_exports = {};
2803
- __export2(consoleLog_native_exports, {
2804
- groupCollapsed: function() {
2805
- return groupCollapsed;
2806
- },
2807
- groupEnd: function() {
2808
- return groupEnd;
2809
- }
2810
- });
2811
- module2.exports = __toCommonJS2(consoleLog_native_exports);
2812
- var groupEnd = function() {
2813
- }, groupCollapsed = console.info;
2814
- }
2815
- });
2816
-
2817
2766
  // ../web/dist/cjs/helpers/getShorthandValue.native.js
2818
2767
  var require_getShorthandValue_native = __commonJS({
2819
2768
  "../web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
@@ -5346,7 +5295,7 @@ var require_getSplitStyles_native = __commonJS({
5346
5295
  }
5347
5296
  });
5348
5297
  module2.exports = __toCommonJS2(getSplitStyles_exports);
5349
- var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_consoleLog = require_consoleLog_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
5298
+ var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
5350
5299
  function isValidStyleKey(key, validStyles2, accept) {
5351
5300
  return key in validStyles2 ? !0 : accept && key in accept;
5352
5301
  }
@@ -5359,7 +5308,7 @@ var require_getSplitStyles_native = __commonJS({
5359
5308
  var accepted = accept[keyInit];
5360
5309
  if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass), "continue";
5361
5310
  }
5362
- if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_consoleLog.groupEnd)(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
5311
+ if (process.env.NODE_ENV, disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
5363
5312
  if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
5364
5313
  if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
5365
5314
  return "continue";
@@ -5391,7 +5340,7 @@ var require_getSplitStyles_native = __commonJS({
5391
5340
  if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
5392
5341
  var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
5393
5342
  isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
5394
- if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupCollapsed)(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
5343
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
5395
5344
  isVariant,
5396
5345
  valInit,
5397
5346
  shouldPassProp
@@ -5410,7 +5359,7 @@ var require_getSplitStyles_native = __commonJS({
5410
5359
  viewProps[key4] = val2;
5411
5360
  return;
5412
5361
  }
5413
- if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(" \u{1F4A0} expanded", keyInit, "=>", key4), (0, import_log.log)(val2), (0, import_consoleLog.groupEnd)()), val2 != null && !(key4 in usedKeys)) {
5362
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" \u{1F4A0} expanded", keyInit, "=>", key4), (0, import_log.log)(val2), console.groupEnd()), val2 != null && !(key4 in usedKeys)) {
5414
5363
  if (key4 === "pointerEvents") {
5415
5364
  viewProps[key4] = val2;
5416
5365
  return;
@@ -5425,12 +5374,12 @@ var require_getSplitStyles_native = __commonJS({
5425
5374
  }
5426
5375
  var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
5427
5376
  if (shouldPassThrough2) {
5428
- passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(` - passing down prop ${key4}`), (0, import_log.log)({
5377
+ passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key4}`), (0, import_log.log)({
5429
5378
  val: val2,
5430
5379
  after: {
5431
5380
  ...viewProps[key4]
5432
5381
  }
5433
- }), (0, import_consoleLog.groupEnd)());
5382
+ }), console.groupEnd());
5434
5383
  return;
5435
5384
  }
5436
5385
  if (isPseudo) {
@@ -5466,14 +5415,14 @@ var require_getSplitStyles_native = __commonJS({
5466
5415
  }
5467
5416
  if (!shouldDoClasses || isExit || isEnter) {
5468
5417
  var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
5469
- isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)("pseudo", key4, {
5418
+ isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key4, {
5470
5419
  isDisabled
5471
5420
  }), (0, import_log.log)({
5472
5421
  pseudoStyleObject,
5473
5422
  isDisabled,
5474
5423
  descriptor,
5475
5424
  componentState
5476
- }), (0, import_consoleLog.groupEnd)());
5425
+ }), console.groupEnd());
5477
5426
  var importance = descriptor.priority;
5478
5427
  for (var pkey in pseudoStyleObject) {
5479
5428
  var _$val = pseudoStyleObject[pkey];
@@ -5625,7 +5574,7 @@ var require_getSplitStyles_native = __commonJS({
5625
5574
  });
5626
5575
  } catch {
5627
5576
  }
5628
- (0, import_consoleLog.groupEnd)();
5577
+ console.groupEnd();
5629
5578
  }
5630
5579
  };
5631
5580
  conf = conf || (0, import_config.getConfig)();
@@ -5655,7 +5604,7 @@ var require_getSplitStyles_native = __commonJS({
5655
5604
  }
5656
5605
  }));
5657
5606
  }
5658
- process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && ((0, import_consoleLog.groupCollapsed)("getSplitStyles (collapsed)"), (0, import_log.log)({
5607
+ process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
5659
5608
  props,
5660
5609
  staticConfig,
5661
5610
  shouldDoClasses,
@@ -5666,7 +5615,7 @@ var require_getSplitStyles_native = __commonJS({
5666
5615
  theme: {
5667
5616
  ...theme
5668
5617
  }
5669
- }), (0, import_consoleLog.groupEnd)());
5618
+ }), console.groupEnd());
5670
5619
  var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
5671
5620
  for (var keyOg in props) _loop(keyOg);
5672
5621
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
@@ -5749,7 +5698,7 @@ var require_getSplitStyles_native = __commonJS({
5749
5698
  } else style2 && (viewProps.style = style2);
5750
5699
  }
5751
5700
  if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
5752
- (0, import_consoleLog.groupCollapsed)("\u{1F539} getSplitStyles ===>");
5701
+ console.groupCollapsed("\u{1F539} getSplitStyles ===>");
5753
5702
  try {
5754
5703
  var logs = {
5755
5704
  ...result,
@@ -5762,7 +5711,7 @@ var require_getSplitStyles_native = __commonJS({
5762
5711
  for (var key3 in logs) (0, import_log.log)(key3, logs[key3]);
5763
5712
  } catch {
5764
5713
  }
5765
- (0, import_consoleLog.groupEnd)();
5714
+ console.groupEnd();
5766
5715
  }
5767
5716
  return process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-done`, result;
5768
5717
  };
@@ -6984,6 +6933,62 @@ var require_wrapStyleTags_native = __commonJS({
6984
6933
  }
6985
6934
  });
6986
6935
 
6936
+ // ../use-did-finish-ssr/dist/cjs/ClientOnly.native.js
6937
+ var require_ClientOnly_native = __commonJS({
6938
+ "../use-did-finish-ssr/dist/cjs/ClientOnly.native.js"(exports2, module2) {
6939
+ "use strict";
6940
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6941
+ for (var name in all) __defProp2(target, name, {
6942
+ get: all[name],
6943
+ enumerable: !0
6944
+ });
6945
+ }, __copyProps2 = function(to, from, except, desc) {
6946
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6947
+ if (from && typeof from == "object" || typeof from == "function") try {
6948
+ for (var _loop = function() {
6949
+ var key = _step.value;
6950
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6951
+ get: function() {
6952
+ return from[key];
6953
+ },
6954
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6955
+ });
6956
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
6957
+ } catch (err) {
6958
+ _didIteratorError = !0, _iteratorError = err;
6959
+ } finally {
6960
+ try {
6961
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6962
+ } finally {
6963
+ if (_didIteratorError)
6964
+ throw _iteratorError;
6965
+ }
6966
+ }
6967
+ return to;
6968
+ }, __toCommonJS2 = function(mod) {
6969
+ return __copyProps2(__defProp2({}, "__esModule", {
6970
+ value: !0
6971
+ }), mod);
6972
+ }, ClientOnly_exports = {};
6973
+ __export2(ClientOnly_exports, {
6974
+ ClientOnly: function() {
6975
+ return ClientOnly2;
6976
+ },
6977
+ ClientOnlyContext: function() {
6978
+ return ClientOnlyContext2;
6979
+ }
6980
+ });
6981
+ module2.exports = __toCommonJS2(ClientOnly_exports);
6982
+ var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
6983
+ var { children } = param;
6984
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClientOnlyContext2.Provider, {
6985
+ value: !0,
6986
+ children
6987
+ });
6988
+ };
6989
+ }
6990
+ });
6991
+
6987
6992
  // ../use-did-finish-ssr/dist/cjs/index.native.js
6988
6993
  var require_index_native6 = __commonJS({
6989
6994
  "../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
@@ -7034,6 +7039,12 @@ var require_index_native6 = __commonJS({
7034
7039
  }), mod);
7035
7040
  }, index_exports2 = {};
7036
7041
  __export2(index_exports2, {
7042
+ ClientOnly: function() {
7043
+ return import_ClientOnly2.ClientOnly;
7044
+ },
7045
+ ClientOnlyContext: function() {
7046
+ return import_ClientOnly2.ClientOnlyContext;
7047
+ },
7037
7048
  useClientValue: function() {
7038
7049
  return useClientValue;
7039
7050
  },
@@ -7042,8 +7053,9 @@ var require_index_native6 = __commonJS({
7042
7053
  }
7043
7054
  });
7044
7055
  module2.exports = __toCommonJS2(index_exports2);
7045
- var React3 = __toESM2(require("react"));
7056
+ var React3 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native();
7046
7057
  function useDidFinishSSR(value) {
7058
+ var clientOnly = React3.useContext(import_ClientOnly.ClientOnlyContext);
7047
7059
  return value ?? !0;
7048
7060
  }
7049
7061
  function useClientValue(value) {
@@ -7414,7 +7426,7 @@ var require_createComponent_native = __commonJS({
7414
7426
  }
7415
7427
  });
7416
7428
  module2.exports = __toCommonJS2(createComponent_exports);
7417
- var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_consoleLog = require_consoleLog_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
7429
+ var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
7418
7430
  typeof document < "u" && (cancelTouches = function() {
7419
7431
  componentSetStates.forEach(function(setState) {
7420
7432
  return setState(function(prev) {
@@ -7543,7 +7555,7 @@ var require_createComponent_native = __commonJS({
7543
7555
  if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
7544
7556
  return !!stateRef.current.isListeningToTheme;
7545
7557
  }), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
7546
- var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `${internalID} ${name}${dataIs ? ` ${dataIs}` : ""} ${type}`;
7558
+ var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `<${name} /> ${internalID} ${dataIs ? ` ${dataIs}` : ""} ${type.trim()}`;
7547
7559
  if (console.info(`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`, "background: green; color: white;"), import_constants2.isServer) (0, import_log.log)({
7548
7560
  noClass,
7549
7561
  isAnimated,
@@ -7551,9 +7563,9 @@ var require_createComponent_native = __commonJS({
7551
7563
  supportsCSSVars
7552
7564
  });
7553
7565
  else {
7554
- (0, import_consoleLog.groupEnd)();
7566
+ console.groupEnd();
7555
7567
  var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
7556
- childLog.length && (childLog = `(children: ${childLog})`), (0, import_consoleLog.groupCollapsed)(`${childLog} Props:`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
7568
+ childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog} [inspect props, state, context \u{1F447}]`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
7557
7569
  state,
7558
7570
  staticConfig,
7559
7571
  elementType,
@@ -7567,7 +7579,7 @@ var require_createComponent_native = __commonJS({
7567
7579
  isHOC,
7568
7580
  hasAnimationProp,
7569
7581
  useAnimations
7570
- }), (0, import_consoleLog.groupEnd)();
7582
+ }), console.groupEnd();
7571
7583
  }
7572
7584
  }
7573
7585
  process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
@@ -7639,7 +7651,7 @@ var require_createComponent_native = __commonJS({
7639
7651
  staticConfig,
7640
7652
  stateRef
7641
7653
  });
7642
- (isAnimated || supportsCSSVars) && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)), process.env.NODE_ENV === "development" && time2 && time2`animations`;
7654
+ animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)), process.env.NODE_ENV === "development" && time2 && time2`animations`;
7643
7655
  }
7644
7656
  process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
7645
7657
 
@@ -7673,7 +7685,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
7673
7685
  }
7674
7686
  return styleObject;
7675
7687
  }, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host));
7676
- (0, import_consoleLog.groupCollapsed)(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), (0, import_consoleLog.groupEnd)();
7688
+ console.groupCollapsed(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), console.groupEnd();
7677
7689
  }
7678
7690
  }), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
7679
7691
  if (state.unmounted === !0 && hasEnterStyle) {
@@ -7889,7 +7901,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
7889
7901
  if (process.env.NODE_ENV === "development" && time2 && time2`context-override`, process.env.NODE_ENV === "development" && time2 && time2`style-tags`, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
7890
7902
  var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
7891
7903
  if (import_constants2.isWeb) {
7892
- (0, import_consoleLog.groupCollapsed)(title);
7904
+ console.groupCollapsed(title);
7893
7905
  try {
7894
7906
  (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
7895
7907
  propsIn,
@@ -7920,7 +7932,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
7920
7932
  });
7921
7933
  } catch {
7922
7934
  } finally {
7923
- (0, import_consoleLog.groupEnd)();
7935
+ console.groupEnd();
7924
7936
  }
7925
7937
  } else {
7926
7938
  (0, import_log.log)(title), (0, import_log.log)("state: ", state), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
@@ -9206,9 +9218,9 @@ var require_styled_native = __commonJS({
9206
9218
  });
9207
9219
  module2.exports = __toCommonJS2(styled_exports);
9208
9220
  var import_createComponent = require_createComponent_native(), import_mergeVariants = require_mergeVariants_native(), import_setupReactNative = require_setupReactNative_native();
9209
- function styled(ComponentIn, options, staticExtractionOptions) {
9221
+ function styled(ComponentIn, options, config) {
9210
9222
  if (process.env.NODE_ENV !== "production" && !ComponentIn) throw new Error("No component given to styled()");
9211
- var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || staticExtractionOptions != null && staticExtractionOptions.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = function() {
9223
+ var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || config != null && config.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = function() {
9212
9224
  var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
9213
9225
  if (parentStaticConfig) {
9214
9226
  var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
@@ -9227,9 +9239,9 @@ var require_styled_native = __commonJS({
9227
9239
  ...defaultProps,
9228
9240
  ...defaultVariants
9229
9241
  }), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
9230
- var isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), _staticExtractionOptions_acceptsClassName, _ref, acceptsClassName = (_ref = (_staticExtractionOptions_acceptsClassName = staticExtractionOptions == null ? void 0 : staticExtractionOptions.acceptsClassName) !== null && _staticExtractionOptions_acceptsClassName !== void 0 ? _staticExtractionOptions_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
9242
+ var isText = !!(config != null && config.isText || parentStaticConfig != null && parentStaticConfig.isText), _config_acceptsClassName, _ref, acceptsClassName = (_ref = (_config_acceptsClassName = config == null ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
9231
9243
  ...parentStaticConfig,
9232
- ...staticExtractionOptions,
9244
+ ...config,
9233
9245
  ...!isPlainStyledComponent && {
9234
9246
  Component
9235
9247
  },
@@ -10272,13 +10284,13 @@ var require_TamaguiProvider_native = __commonJS({
10272
10284
  }
10273
10285
  });
10274
10286
  module2.exports = __toCommonJS2(TamaguiProvider_exports);
10275
- var import_jsx_runtime = require("react/jsx-runtime"), import_constants2 = require_index_native2(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_ThemeProvider = require_ThemeProvider_native(), import_useMedia = require_useMedia_native(), listeners = /* @__PURE__ */ new Set(), didRender = !1;
10287
+ var import_jsx_runtime = require("react/jsx-runtime"), import_constants2 = require_index_native2(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native(), listeners = /* @__PURE__ */ new Set(), didRender = !1;
10276
10288
  function ___onDidFinishClientRender2(cb) {
10277
10289
  didRender ? cb() : listeners.add(cb);
10278
10290
  }
10279
10291
  function TamaguiProvider(param) {
10280
10292
  var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
10281
- return (0, import_react3.useEffect)(function() {
10293
+ (0, import_react3.useEffect)(function() {
10282
10294
  return listeners.forEach(function(cb) {
10283
10295
  return cb();
10284
10296
  }), didRender = !0, function() {
@@ -10296,21 +10308,25 @@ var require_TamaguiProvider_native = __commonJS({
10296
10308
  disableInjectCSS
10297
10309
  ]), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
10298
10310
  (0, import_useMedia.updateMediaListeners)();
10299
- }, []), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10311
+ }, []);
10312
+ var contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnmountedClassName, {
10313
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
10314
+ animationDriver: config == null ? void 0 : config.animations,
10315
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, {
10316
+ themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
10317
+ disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
10318
+ defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
10319
+ reset,
10320
+ className,
10321
+ children
10322
+ })
10323
+ })
10324
+ });
10325
+ return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_use_did_finish_ssr.ClientOnly, {
10326
+ children: contents
10327
+ })), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10300
10328
  children: [
10301
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnmountedClassName, {
10302
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
10303
- animationDriver: config == null ? void 0 : config.animations,
10304
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, {
10305
- themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
10306
- disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
10307
- defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
10308
- reset,
10309
- className,
10310
- children
10311
- })
10312
- })
10313
- }),
10329
+ contents,
10314
10330
  !1
10315
10331
  ]
10316
10332
  });
@@ -10386,12 +10402,14 @@ var require_Configuration_native = __commonJS({
10386
10402
  }
10387
10403
  });
10388
10404
  module2.exports = __toCommonJS2(Configuration_exports);
10389
- var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration = function(props) {
10390
- var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
10391
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
10405
+ var import_jsx_runtime = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration = function(props) {
10406
+ var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), clientOnly = (0, import_react3.useContext)(import_use_did_finish_ssr.ClientOnlyContext), children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
10392
10407
  ...current,
10393
10408
  ...props
10394
10409
  });
10410
+ return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_use_did_finish_ssr.ClientOnly, {
10411
+ children
10412
+ }) : children;
10395
10413
  };
10396
10414
  Configuration.displayName = "Configuration";
10397
10415
  }