tamagui 1.129.2 → 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
@@ -3862,57 +3862,6 @@ var require_defaultComponentState_native = __commonJS({
3862
3862
  }
3863
3863
  });
3864
3864
 
3865
- // ../../core/web/dist/cjs/helpers/consoleLog.native.js
3866
- var require_consoleLog_native = __commonJS({
3867
- "../../core/web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
3868
- "use strict";
3869
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
3870
- for (var name in all) __defProp2(target, name, {
3871
- get: all[name],
3872
- enumerable: !0
3873
- });
3874
- }, __copyProps2 = function(to, from, except, desc) {
3875
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
3876
- if (from && typeof from == "object" || typeof from == "function") try {
3877
- for (var _loop = function() {
3878
- var key = _step.value;
3879
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
3880
- get: function() {
3881
- return from[key];
3882
- },
3883
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
3884
- });
3885
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
3886
- } catch (err) {
3887
- _didIteratorError = !0, _iteratorError = err;
3888
- } finally {
3889
- try {
3890
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
3891
- } finally {
3892
- if (_didIteratorError)
3893
- throw _iteratorError;
3894
- }
3895
- }
3896
- return to;
3897
- }, __toCommonJS2 = function(mod) {
3898
- return __copyProps2(__defProp2({}, "__esModule", {
3899
- value: !0
3900
- }), mod);
3901
- }, consoleLog_native_exports = {};
3902
- __export2(consoleLog_native_exports, {
3903
- groupCollapsed: function() {
3904
- return groupCollapsed;
3905
- },
3906
- groupEnd: function() {
3907
- return groupEnd;
3908
- }
3909
- });
3910
- module2.exports = __toCommonJS2(consoleLog_native_exports);
3911
- var groupEnd = function() {
3912
- }, groupCollapsed = console.info;
3913
- }
3914
- });
3915
-
3916
3865
  // ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
3917
3866
  var require_getShorthandValue_native = __commonJS({
3918
3867
  "../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
@@ -6445,7 +6394,7 @@ var require_getSplitStyles_native = __commonJS({
6445
6394
  }
6446
6395
  });
6447
6396
  module2.exports = __toCommonJS2(getSplitStyles_exports);
6448
- var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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 = "-";
6397
+ var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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 = "-";
6449
6398
  function isValidStyleKey(key, validStyles, accept) {
6450
6399
  return key in validStyles ? !0 : accept && key in accept;
6451
6400
  }
@@ -6458,7 +6407,7 @@ var require_getSplitStyles_native = __commonJS({
6458
6407
  var accepted = accept[keyInit];
6459
6408
  if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass), "continue";
6460
6409
  }
6461
- 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";
6410
+ if (process.env.NODE_ENV, disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
6462
6411
  if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
6463
6412
  if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
6464
6413
  return "continue";
@@ -6490,7 +6439,7 @@ var require_getSplitStyles_native = __commonJS({
6490
6439
  if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
6491
6440
  var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
6492
6441
  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;
6493
- 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)({
6442
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
6494
6443
  isVariant,
6495
6444
  valInit,
6496
6445
  shouldPassProp
@@ -6509,7 +6458,7 @@ var require_getSplitStyles_native = __commonJS({
6509
6458
  viewProps[key4] = val2;
6510
6459
  return;
6511
6460
  }
6512
- 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)) {
6461
+ 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)) {
6513
6462
  if (key4 === "pointerEvents") {
6514
6463
  viewProps[key4] = val2;
6515
6464
  return;
@@ -6524,12 +6473,12 @@ var require_getSplitStyles_native = __commonJS({
6524
6473
  }
6525
6474
  var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
6526
6475
  if (shouldPassThrough2) {
6527
- passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(` - passing down prop ${key4}`), (0, import_log.log)({
6476
+ passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key4}`), (0, import_log.log)({
6528
6477
  val: val2,
6529
6478
  after: {
6530
6479
  ...viewProps[key4]
6531
6480
  }
6532
- }), (0, import_consoleLog.groupEnd)());
6481
+ }), console.groupEnd());
6533
6482
  return;
6534
6483
  }
6535
6484
  if (isPseudo) {
@@ -6565,14 +6514,14 @@ var require_getSplitStyles_native = __commonJS({
6565
6514
  }
6566
6515
  if (!shouldDoClasses || isExit || isEnter) {
6567
6516
  var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
6568
- isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)("pseudo", key4, {
6517
+ isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key4, {
6569
6518
  isDisabled
6570
6519
  }), (0, import_log.log)({
6571
6520
  pseudoStyleObject,
6572
6521
  isDisabled,
6573
6522
  descriptor,
6574
6523
  componentState
6575
- }), (0, import_consoleLog.groupEnd)());
6524
+ }), console.groupEnd());
6576
6525
  var importance = descriptor.priority;
6577
6526
  for (var pkey in pseudoStyleObject) {
6578
6527
  var _$val = pseudoStyleObject[pkey];
@@ -6724,7 +6673,7 @@ var require_getSplitStyles_native = __commonJS({
6724
6673
  });
6725
6674
  } catch {
6726
6675
  }
6727
- (0, import_consoleLog.groupEnd)();
6676
+ console.groupEnd();
6728
6677
  }
6729
6678
  };
6730
6679
  conf = conf || (0, import_config.getConfig)();
@@ -6754,7 +6703,7 @@ var require_getSplitStyles_native = __commonJS({
6754
6703
  }
6755
6704
  }));
6756
6705
  }
6757
- process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants4.isClient && ((0, import_consoleLog.groupCollapsed)("getSplitStyles (collapsed)"), (0, import_log.log)({
6706
+ process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants4.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
6758
6707
  props,
6759
6708
  staticConfig,
6760
6709
  shouldDoClasses,
@@ -6765,7 +6714,7 @@ var require_getSplitStyles_native = __commonJS({
6765
6714
  theme: {
6766
6715
  ...theme
6767
6716
  }
6768
- }), (0, import_consoleLog.groupEnd)());
6717
+ }), console.groupEnd());
6769
6718
  var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
6770
6719
  for (var keyOg in props) _loop(keyOg);
6771
6720
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
@@ -6848,7 +6797,7 @@ var require_getSplitStyles_native = __commonJS({
6848
6797
  } else style2 && (viewProps.style = style2);
6849
6798
  }
6850
6799
  if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
6851
- (0, import_consoleLog.groupCollapsed)("\u{1F539} getSplitStyles ===>");
6800
+ console.groupCollapsed("\u{1F539} getSplitStyles ===>");
6852
6801
  try {
6853
6802
  var logs = {
6854
6803
  ...result,
@@ -6861,7 +6810,7 @@ var require_getSplitStyles_native = __commonJS({
6861
6810
  for (var key3 in logs) (0, import_log.log)(key3, logs[key3]);
6862
6811
  } catch {
6863
6812
  }
6864
- (0, import_consoleLog.groupEnd)();
6813
+ console.groupEnd();
6865
6814
  }
6866
6815
  return process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-done`, result;
6867
6816
  };
@@ -8083,6 +8032,62 @@ var require_wrapStyleTags_native = __commonJS({
8083
8032
  }
8084
8033
  });
8085
8034
 
8035
+ // ../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js
8036
+ var require_ClientOnly_native = __commonJS({
8037
+ "../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js"(exports2, module2) {
8038
+ "use strict";
8039
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
8040
+ for (var name in all) __defProp2(target, name, {
8041
+ get: all[name],
8042
+ enumerable: !0
8043
+ });
8044
+ }, __copyProps2 = function(to, from, except, desc) {
8045
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
8046
+ if (from && typeof from == "object" || typeof from == "function") try {
8047
+ for (var _loop = function() {
8048
+ var key = _step.value;
8049
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
8050
+ get: function() {
8051
+ return from[key];
8052
+ },
8053
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
8054
+ });
8055
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
8056
+ } catch (err) {
8057
+ _didIteratorError = !0, _iteratorError = err;
8058
+ } finally {
8059
+ try {
8060
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
8061
+ } finally {
8062
+ if (_didIteratorError)
8063
+ throw _iteratorError;
8064
+ }
8065
+ }
8066
+ return to;
8067
+ }, __toCommonJS2 = function(mod) {
8068
+ return __copyProps2(__defProp2({}, "__esModule", {
8069
+ value: !0
8070
+ }), mod);
8071
+ }, ClientOnly_exports = {};
8072
+ __export2(ClientOnly_exports, {
8073
+ ClientOnly: function() {
8074
+ return ClientOnly2;
8075
+ },
8076
+ ClientOnlyContext: function() {
8077
+ return ClientOnlyContext2;
8078
+ }
8079
+ });
8080
+ module2.exports = __toCommonJS2(ClientOnly_exports);
8081
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
8082
+ var { children } = param;
8083
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClientOnlyContext2.Provider, {
8084
+ value: !0,
8085
+ children
8086
+ });
8087
+ };
8088
+ }
8089
+ });
8090
+
8086
8091
  // ../../core/use-did-finish-ssr/dist/cjs/index.native.js
8087
8092
  var require_index_native13 = __commonJS({
8088
8093
  "../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
@@ -8133,6 +8138,12 @@ var require_index_native13 = __commonJS({
8133
8138
  }), mod);
8134
8139
  }, index_exports2 = {};
8135
8140
  __export2(index_exports2, {
8141
+ ClientOnly: function() {
8142
+ return import_ClientOnly2.ClientOnly;
8143
+ },
8144
+ ClientOnlyContext: function() {
8145
+ return import_ClientOnly2.ClientOnlyContext;
8146
+ },
8136
8147
  useClientValue: function() {
8137
8148
  return useClientValue;
8138
8149
  },
@@ -8141,8 +8152,9 @@ var require_index_native13 = __commonJS({
8141
8152
  }
8142
8153
  });
8143
8154
  module2.exports = __toCommonJS2(index_exports2);
8144
- var React4 = __toESM2(require("react"));
8155
+ var React4 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native();
8145
8156
  function useDidFinishSSR2(value) {
8157
+ var clientOnly = React4.useContext(import_ClientOnly.ClientOnlyContext);
8146
8158
  return value ?? !0;
8147
8159
  }
8148
8160
  function useClientValue(value) {
@@ -8513,7 +8525,7 @@ var require_createComponent_native = __commonJS({
8513
8525
  }
8514
8526
  });
8515
8527
  module2.exports = __toCommonJS2(createComponent_exports);
8516
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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();
8528
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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();
8517
8529
  typeof document < "u" && (cancelTouches = function() {
8518
8530
  componentSetStates.forEach(function(setState) {
8519
8531
  return setState(function(prev) {
@@ -8642,7 +8654,7 @@ var require_createComponent_native = __commonJS({
8642
8654
  if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
8643
8655
  return !!stateRef.current.isListeningToTheme;
8644
8656
  }), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
8645
- 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}`;
8657
+ 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()}`;
8646
8658
  if (console.info(`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`, "background: green; color: white;"), import_constants4.isServer) (0, import_log.log)({
8647
8659
  noClass,
8648
8660
  isAnimated,
@@ -8650,9 +8662,9 @@ var require_createComponent_native = __commonJS({
8650
8662
  supportsCSSVars
8651
8663
  });
8652
8664
  else {
8653
- (0, import_consoleLog.groupEnd)();
8665
+ console.groupEnd();
8654
8666
  var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
8655
- 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)({
8667
+ 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)({
8656
8668
  state,
8657
8669
  staticConfig,
8658
8670
  elementType,
@@ -8666,7 +8678,7 @@ var require_createComponent_native = __commonJS({
8666
8678
  isHOC,
8667
8679
  hasAnimationProp,
8668
8680
  useAnimations
8669
- }), (0, import_consoleLog.groupEnd)();
8681
+ }), console.groupEnd();
8670
8682
  }
8671
8683
  }
8672
8684
  process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
@@ -8738,7 +8750,7 @@ var require_createComponent_native = __commonJS({
8738
8750
  staticConfig,
8739
8751
  stateRef
8740
8752
  });
8741
- (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`;
8753
+ 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`;
8742
8754
  }
8743
8755
  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.
8744
8756
 
@@ -8772,7 +8784,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8772
8784
  }
8773
8785
  return styleObject;
8774
8786
  }, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host));
8775
- (0, import_consoleLog.groupCollapsed)(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), (0, import_consoleLog.groupEnd)();
8787
+ console.groupCollapsed(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), console.groupEnd();
8776
8788
  }
8777
8789
  }), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
8778
8790
  if (state.unmounted === !0 && hasEnterStyle) {
@@ -8988,7 +9000,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8988
9000
  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") {
8989
9001
  var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
8990
9002
  if (import_constants4.isWeb) {
8991
- (0, import_consoleLog.groupCollapsed)(title);
9003
+ console.groupCollapsed(title);
8992
9004
  try {
8993
9005
  (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
8994
9006
  propsIn,
@@ -9019,7 +9031,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9019
9031
  });
9020
9032
  } catch {
9021
9033
  } finally {
9022
- (0, import_consoleLog.groupEnd)();
9034
+ console.groupEnd();
9023
9035
  }
9024
9036
  } else {
9025
9037
  (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:");
@@ -9047,7 +9059,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9047
9059
  return Component2.staticConfig = extendStyledConfig(extended), Component2.styleable = styleable, Component2;
9048
9060
  }
9049
9061
  function styleable(Component2, options) {
9050
- var _Component_render, skipForwardRef = import_constants4.IS_REACT_19 && typeof Component2 == "function" || ((_Component_render = Component2.render) === null || _Component_render === void 0 ? void 0 : _Component_render.length) === 2, out = skipForwardRef ? Component2 : /* @__PURE__ */ import_react3.default.forwardRef(Component2), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
9062
+ var _Component_render, skipForwardRef = import_constants4.IS_REACT_19 && typeof Component2 == "function" && Component2.length === 1 || ((_Component_render = Component2.render) === null || _Component_render === void 0 ? void 0 : _Component_render.length) === 2, out = skipForwardRef ? Component2 : /* @__PURE__ */ import_react3.default.forwardRef(Component2), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
9051
9063
  return out = options != null && options.disableTheme ? out : (0, import_themeable.themeable)(out, extendedConfig, !0), process.env.TAMAGUI_MEMOIZE_STYLEABLE && (out = /* @__PURE__ */ import_react3.default.memo(out)), out.staticConfig = extendedConfig, out.styleable = styleable, out;
9052
9064
  }
9053
9065
  return res.extractable = extractable, res.styleable = styleable, res;
@@ -10305,9 +10317,9 @@ var require_styled_native = __commonJS({
10305
10317
  });
10306
10318
  module2.exports = __toCommonJS2(styled_exports);
10307
10319
  var import_createComponent = require_createComponent_native(), import_mergeVariants = require_mergeVariants_native(), import_setupReactNative = require_setupReactNative_native();
10308
- function styled8(ComponentIn, options, staticExtractionOptions) {
10320
+ function styled8(ComponentIn, options, config) {
10309
10321
  if (process.env.NODE_ENV !== "production" && !ComponentIn) throw new Error("No component given to styled()");
10310
- 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() {
10322
+ 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() {
10311
10323
  var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
10312
10324
  if (parentStaticConfig) {
10313
10325
  var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
@@ -10326,9 +10338,9 @@ var require_styled_native = __commonJS({
10326
10338
  ...defaultProps,
10327
10339
  ...defaultVariants
10328
10340
  }), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
10329
- 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 = {
10341
+ 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 = {
10330
10342
  ...parentStaticConfig,
10331
- ...staticExtractionOptions,
10343
+ ...config,
10332
10344
  ...!isPlainStyledComponent && {
10333
10345
  Component
10334
10346
  },
@@ -11371,13 +11383,13 @@ var require_TamaguiProvider_native = __commonJS({
11371
11383
  }
11372
11384
  });
11373
11385
  module2.exports = __toCommonJS2(TamaguiProvider_exports);
11374
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), 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;
11386
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), 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;
11375
11387
  function ___onDidFinishClientRender(cb) {
11376
11388
  didRender ? cb() : listeners.add(cb);
11377
11389
  }
11378
11390
  function TamaguiProvider2(param) {
11379
11391
  var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
11380
- return (0, import_react3.useEffect)(function() {
11392
+ (0, import_react3.useEffect)(function() {
11381
11393
  return listeners.forEach(function(cb) {
11382
11394
  return cb();
11383
11395
  }), didRender = !0, function() {
@@ -11395,21 +11407,25 @@ var require_TamaguiProvider_native = __commonJS({
11395
11407
  disableInjectCSS
11396
11408
  ]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
11397
11409
  (0, import_useMedia.updateMediaListeners)();
11398
- }, []), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
11410
+ }, []);
11411
+ var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
11412
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11413
+ animationDriver: config == null ? void 0 : config.animations,
11414
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
11415
+ themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
11416
+ disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
11417
+ defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
11418
+ reset,
11419
+ className,
11420
+ children
11421
+ })
11422
+ })
11423
+ });
11424
+ return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
11425
+ children: contents
11426
+ })), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
11399
11427
  children: [
11400
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
11401
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11402
- animationDriver: config == null ? void 0 : config.animations,
11403
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
11404
- themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
11405
- disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
11406
- defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
11407
- reset,
11408
- className,
11409
- children
11410
- })
11411
- })
11412
- }),
11428
+ contents,
11413
11429
  !1
11414
11430
  ]
11415
11431
  });
@@ -11485,12 +11501,14 @@ var require_Configuration_native = __commonJS({
11485
11501
  }
11486
11502
  });
11487
11503
  module2.exports = __toCommonJS2(Configuration_exports);
11488
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
11489
- var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
11490
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11504
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native13(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
11505
+ 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_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11491
11506
  ...current,
11492
11507
  ...props
11493
11508
  });
11509
+ return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
11510
+ children
11511
+ }) : children;
11494
11512
  };
11495
11513
  Configuration2.displayName = "Configuration";
11496
11514
  }
@@ -16575,10 +16593,9 @@ var require_GorhomPortal_native = __commonJS({
16575
16593
  });
16576
16594
  });
16577
16595
  function PortalHostWeb(props) {
16578
- var [mounted, setMounted] = (0, import_react3.useState)(!1);
16579
16596
  return (0, import_react3.useEffect)(function() {
16580
- return setMounted(!0), function() {
16581
- setMounted(!1), import_constants22.allPortalHosts.delete(props.name);
16597
+ return function() {
16598
+ import_constants22.allPortalHosts.delete(props.name);
16582
16599
  };
16583
16600
  }, [
16584
16601
  props.name
@@ -16587,7 +16604,7 @@ var require_GorhomPortal_native = __commonJS({
16587
16604
  display: "contents"
16588
16605
  },
16589
16606
  ref: function(node) {
16590
- if (node && mounted) {
16607
+ if (node) {
16591
16608
  var _portalListeners_props_name;
16592
16609
  import_constants22.allPortalHosts.set(props.name, node), (_portalListeners_props_name = import_constants22.portalListeners[props.name]) === null || _portalListeners_props_name === void 0 || _portalListeners_props_name.forEach(function(x) {
16593
16610
  return x(node);
@@ -20825,6 +20842,8 @@ var require_Square_native = __commonJS({
20825
20842
  ":number": import_getShapeSize.getShapeSize
20826
20843
  }
20827
20844
  }
20845
+ }, {
20846
+ memo: !0
20828
20847
  });
20829
20848
  }
20830
20849
  });